:root{--bg:#fff;--alt:#f4f6fa;--ink:#111c33;--mut:#4d5a6b;--line:#d6dce6;--acc:#1f4e9c;--acc-d:#163a75;--soft:#e5edf9;--hot:#c2410c;--hot-b:#ea580c;--r:10px;
--font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
body{margin:0;background:var(--bg);color:var(--ink);font:1.0625rem/1.6 var(--font)}
img{max-width:100%;height:auto;display:block}
a{color:var(--acc);text-underline-offset:3px}
a:hover{color:var(--ink)}
:focus-visible{outline:3px solid var(--hot);outline-offset:3px;border-radius:4px}
main:focus{outline:none}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:8px;top:-60px;background:var(--ink);color:#fff;padding:10px 16px;border-radius:6px;z-index:20}
.skip:focus{top:8px;color:#fff}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.narrow{max-width:800px}
h1,h2,h3{line-height:1.2;margin:0 0 .5em;letter-spacing:-.01em}
h1{font-size:clamp(2rem,4.5vw,2.75rem);font-weight:750}
h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:700}
h3{font-size:1.2rem;font-weight:650}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em}
.site-header{border-bottom:1px solid var(--line);background:#fff}
.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;min-height:72px;padding-top:8px;padding-bottom:8px}
.brand{font-weight:800;font-size:1.35rem;color:var(--ink);text-decoration:none}
.brand span{color:var(--hot)}
.site-header ul,.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 20px}
.site-header nav a{display:inline-block;padding:12px 6px;color:var(--ink);font-weight:600;text-decoration:none}
.site-header nav a:hover,.site-header nav a[aria-current]{color:var(--acc);text-decoration:underline;text-decoration-color:var(--hot-b);text-decoration-thickness:2px;text-underline-offset:8px}
.hero{padding:36px 0 0}
.hero .lead{margin-bottom:0}
.hero+.section{padding-top:28px}
.hero+.section h2{margin-bottom:0}
.hero+.section .filter{margin-top:14px}
.hero+.section .cards{margin-top:18px}
.hero h1{max-width:20em}
.site-name{display:block;font-size:1rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--hot);margin-bottom:14px}
.lead{font-size:1.25rem;color:var(--mut);max-width:42em}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 0}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:2px solid var(--ink);border-radius:var(--r);background:#fff;color:var(--ink);font:inherit;font-weight:650;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--alt);color:var(--ink)}
.btn.primary{background:var(--acc);border-color:var(--acc);color:#fff}
.btn.primary:hover{background:var(--acc-d);border-color:var(--acc-d);color:#fff}
.section{padding:64px 0}
.section.alt{background:var(--alt)}
.cards{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:24px}
.card{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:box-shadow .15s,border-color .15s}
.card:hover,.card:focus-within{border-color:var(--hot-b);box-shadow:0 0 0 2px var(--hot-b)}
.section h2::after,.page h1::after{content:"";display:block;width:100%;max-width:7em;height:9px;margin-top:6px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c20-5 38 3 58-1s38-3 58 1' fill='none' stroke='%23ea580c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left/100% 9px no-repeat}
.about-head h1::after{display:none}
.filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:20px 0 0}
.filter-label{font-weight:500;margin-right:4px}
.chip{min-height:44px;padding:0 16px;border:2px solid var(--acc);border-radius:999px;background:#fff;color:var(--acc-d);font:inherit;font-weight:500;cursor:pointer}
.chip:hover{background:var(--soft)}
.chip[aria-pressed="true"]{background:var(--acc);color:#fff}
.card[hidden]{display:none}
@font-face{font-family:"EDT Accent";src:url("../fonts/brico.woff") format("woff");font-weight:700;font-display:swap}
.accent-word{font-family:"EDT Accent",var(--font);font-size:1.15em;font-weight:700;color:var(--ink);white-space:nowrap;padding-bottom:7px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c20-5 38 3 58-1s38-3 58 1' fill='none' stroke='%23ea580c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") bottom/100% 9px no-repeat}
.guide h2{margin-top:36px}
.guide table{width:100%;border-collapse:collapse;margin:14px 0 20px;font-size:.98rem}
.guide th,.guide td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.guide thead th{background:var(--alt)}
.guide tbody th{width:30%}
.guide .note{border-left:4px solid var(--acc);background:var(--soft);padding:12px 16px;margin:16px 0}
.guide code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.92em;background:var(--alt);padding:1px 5px;border-radius:4px;overflow-wrap:anywhere}
.guide ol,.guide ul{padding-left:1.4em}
.guide li{margin-bottom:8px}
.guide-contact{margin-top:36px;padding-top:18px;border-top:1px solid var(--line)}
.table-wrap{overflow-x:auto}
.accept{font-size:.95rem;color:var(--mut);margin:12px 0 0;max-width:44em}
.tool-lead{font-size:1.2rem;color:var(--mut);max-width:44em;margin:0 0 10px}
.card-img{display:block;border-bottom:1px solid var(--line);background:var(--alt)}
.card-img img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top left}
.card-body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.card h3 a{color:var(--ink);text-decoration:none}
.card h3 a:hover{color:var(--acc);text-decoration:underline}
.ver{font-size:.85rem;font-weight:500;color:var(--mut);white-space:nowrap}
.card p{color:var(--mut);flex:1}
.more{font-weight:650;display:inline-block;padding:8px 0}
.card-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px}
.tags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.tag{font-size:.82rem;font-weight:650;line-height:1.3;padding:4px 10px;border-radius:999px;background:var(--soft);color:var(--acc-d)}
.facts{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.facts li{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:22px 24px}
.facts p{margin:0;color:var(--mut)}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:40px}
.page{padding-top:28px;padding-bottom:72px}
.crumbs ol{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.95rem;color:var(--mut)}
.crumbs li+li::before{content:"/";margin-right:6px;color:var(--mut)}
.crumbs a{display:inline-block;padding:4px 0}
.meta{color:var(--mut);margin:0}
.cols{display:flex;flex-wrap:wrap;gap:40px;margin-top:36px;align-items:flex-start}
.content{flex:999 1 520px;min-width:0}
.content section{margin-top:32px}
.shot{margin:0;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.steps{padding-left:1.4em}
.steps li{margin-bottom:.5em}
.side{flex:1 1 240px;background:var(--alt);border-radius:var(--r);padding:24px}
.side h2{font-size:1.15rem}
.side ul{list-style:none;margin:0;padding:0}
.side a{display:inline-block;padding:8px 0;font-weight:600}
.about-head{display:flex;flex-wrap:wrap;align-items:center;gap:20px 28px;margin-bottom:24px}
.about-head h1{margin:0}
.portrait{width:132px;height:132px;border-radius:50%;object-fit:cover;border:1px solid var(--line)}
.plain{padding-left:1.3em}
.plain li{margin-bottom:.4em}
.eyebrow{font-size:.85rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--acc);margin-bottom:8px}
.measure{max-width:46em}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:28px 0}
.stats div{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:18px 20px;display:flex;flex-direction:column-reverse}
.stats dd{margin:0;font-size:2.1rem;font-weight:750;color:var(--acc);line-height:1.1}
.stats dt{color:var(--ink)}
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;margin-bottom:24px}
.gallery figure{margin:0}
.gallery img{width:100%;border:1px solid var(--line);border-radius:var(--r)}
.gallery figcaption{font-size:.95rem;color:var(--mut);margin-top:6px}
.other-contact{margin-top:40px}
.other-contact h2{font-size:1.4rem}
.contact-list{list-style:none;padding:0;margin:0}
.contact-list li{display:flex;align-items:center;gap:12px;padding:8px 0}
.contact-list img{flex:none;margin-right:-4px}
.contact-list svg{flex:none;color:var(--acc)}
.contact-list a{font-weight:600}
.contact-list span{min-width:0;overflow-wrap:anywhere}
.form{margin-top:24px;border:1px solid var(--line);border-radius:var(--r);padding:28px;background:var(--alt)}
.form h2{font-size:1.4rem}
.hint{color:var(--mut)}
.field{margin-bottom:18px}
.field label{display:block;font-weight:650;margin-bottom:6px}
.field input,.field textarea{width:100%;min-height:48px;padding:10px 12px;border:1px solid #5b6878;border-radius:6px;background:#fff;color:var(--ink);font:inherit}
.field [aria-invalid="true"]{border:2px solid #b3261e}
.err{color:#b3261e;font-weight:600;margin:6px 0 0}
.status{margin:14px 0 0;font-weight:600}
.legal-page section{margin-top:28px}
.legal-page h2{font-size:1.3rem}
.site-footer{border-top:1px solid var(--line);padding:36px 0 48px;color:var(--mut);font-size:.97rem}
.site-footer .resp{color:var(--ink);font-weight:600}
.site-footer nav{margin:0 0 14px}
.site-footer nav a{display:inline-block;padding:8px 0}
.site-footer .legal{margin:0}
@media (max-width:600px){.section{padding:48px 0}.btn{width:100%}}

/* ===== v1.7 design ===== */
:root{--r:14px;--warm:#fdeee3;--sh:0 1px 2px rgba(17,28,51,.06),0 10px 28px -14px rgba(17,28,51,.25)}

body{background:#fff}
.site-header{border-bottom:1px solid var(--line)}
.bar{min-height:64px}
.ico{flex:none;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--soft);color:var(--acc)}
.k-story .ico,.k-story.rail-a .ico{background:var(--warm);color:var(--hot)}
.rail{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);z-index:10}
.rail ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 6px}
.rail-a{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 12px;color:var(--ink);text-decoration:none;font-size:.95rem;font-weight:500;white-space:nowrap;border-bottom:3px solid transparent}
.rail-a .ico{width:auto;height:auto;background:none;color:var(--acc)}
.rail-a.k-story .ico{background:none;color:var(--hot)}
.rail-a .ico svg{width:18px;height:18px}
.rail li:first-child .rail-a{padding-left:0}
.rail-p{display:none}
.rail-a:hover{color:var(--acc);border-bottom-color:var(--line)}
.rail-a[aria-current]{font-weight:650;color:var(--acc-d);border-bottom-color:var(--hot-b)}
@media (min-width:1000px) and (min-height:620px){.rail{position:sticky;top:0}}
@media (max-width:600px){.rail-a{min-height:44px;font-size:.9rem;padding:0 8px}}
.hero{padding:22px 0 22px;background:linear-gradient(120deg,var(--soft) 0%,#f4f6fa 55%,var(--warm) 130%);border-bottom:1px solid var(--line)}
.hero h1{margin-bottom:.3em}
.hero+.section{padding-top:26px}
.tools-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px 28px}
.tools-head h2::after{margin-top:2px}
.page h1::after{max-width:110px;margin-top:10px}
.tools-head h2{margin:0}
.hero+.section .filter,.tools-head .filter{margin:0}
.filter{gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--alt)}
.chip{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 12px 0 14px;border:0;background:transparent;color:var(--ink);transition:background .15s}
.chip:hover{background:#fff;box-shadow:0 0 0 1px var(--line)}
.chip svg{color:var(--acc)}
.count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#fff;box-shadow:0 0 0 1px var(--line);color:var(--mut);font-size:.8rem;font-weight:650}
.chip[aria-pressed="true"]{background:var(--acc);color:#fff;box-shadow:0 2px 6px -2px rgba(17,28,51,.5)}
.chip[aria-pressed="true"] svg{color:#fff}
.chip[aria-pressed="true"] .count{background:#fff;color:var(--acc-d);box-shadow:none}
@media (max-width:600px){.filter{border-radius:18px}}
.cards{gap:26px}
.card{border-radius:var(--r);box-shadow:var(--sh);transition:transform .15s,box-shadow .15s,border-color .15s}
.card:hover,.card:focus-within{transform:translateY(-4px);border-color:var(--acc);box-shadow:0 2px 4px rgba(17,28,51,.08),0 18px 36px -16px rgba(17,28,51,.35)}
.card-img img{aspect-ratio:16/9}
.card-img{padding:14px 14px 0;border-bottom:1px solid var(--line);background:linear-gradient(160deg,var(--soft),#f4f6fa)}
.card.k-story .card-img{background:linear-gradient(160deg,var(--warm),#f8f4f1)}
.card-img img{border:1px solid var(--line);border-bottom:0;border-radius:8px 8px 0 0;box-shadow:0 -2px 14px -6px rgba(17,28,51,.25)}
.card-top{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.card-top .tags{justify-content:flex-start}
.k-story .tag{background:var(--warm);color:#8a2c06}
.more{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;min-height:44px;padding:0 16px;border-radius:999px;background:var(--acc);color:#fff;text-decoration:none;font-weight:600}
.more:hover{background:var(--acc-d);color:#fff}
.tool-hero{padding:18px 0 0;background:linear-gradient(120deg,var(--soft) 0%,#f4f6fa 70%);border-bottom:1px solid var(--line)}
.tool-hero.k-story{background:linear-gradient(120deg,var(--warm) 0%,#f6f4f3 70%)}
.tool-hero .crumbs ol{margin-bottom:14px}
.tool-hero .ico{background:#fff;box-shadow:0 0 0 1px var(--line)}
.tool-hero .tag{background:#fff;box-shadow:0 0 0 1px var(--line)}
.th-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:36px;align-items:center}
.th-grid h1{font-size:clamp(1.7rem,3.2vw,2.3rem)}
.tool-hero .tool-lead{font-size:1.1rem;color:#3d4a5c}
.tool-hero .meta{color:#3d4a5c}
.tool-hero .accept{color:#3d4a5c}
.tool-hero .actions{margin-top:16px}
.btn{gap:8px;border-radius:10px}
.frame{background:#fff;box-shadow:var(--sh);border-radius:12px}
.frame::before{content:"";display:block;height:26px;border-bottom:1px solid var(--line);background:radial-gradient(circle at 16px 13px,#c3ccda 4.5px,transparent 5.5px),radial-gradient(circle at 32px 13px,#c3ccda 4.5px,transparent 5.5px),radial-gradient(circle at 48px 13px,#c3ccda 4.5px,transparent 5.5px),#eef1f6}
@media (max-width:900px){.th-grid{grid-template-columns:1fr;gap:20px}}
.tabs ul{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.tabs a{display:inline-flex;align-items:center;gap:6px;min-height:46px;padding:0 18px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;color:var(--ink);font-weight:600;text-decoration:none}
.tabs a:hover{background:rgba(255,255,255,.7)}
.tabs a[aria-current]{background:#fff;border-color:var(--line);box-shadow:inset 0 3px 0 var(--hot-b);position:relative;top:1px}
.guide .tabs ul{border-bottom:1px solid var(--line);margin-top:18px}
.tool-body{padding-top:36px}
.tool-body>section{margin-top:36px;max-width:820px}
.tool-body>section.guide{margin-top:56px;padding-top:36px;border-top:1px solid var(--line)}
.guide:focus{outline:none}
.guide h2{margin-top:0}
.guide h3{font-size:1.4rem;margin-top:34px}
.guide h4{font-size:1.1rem;margin:22px 0 .4em}
.guide .eyebrow{color:var(--hot);margin-bottom:6px}
.ps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:24px}
.pcard{border:1px solid var(--line);border-top:5px solid var(--hot-b);border-radius:var(--r);padding:22px 24px 8px;background:#fff;box-shadow:var(--sh)}
.pcard.sol{border-top-color:var(--acc)}
.pcard h2{font-size:1.35rem}
.steps{list-style:none;padding:0;counter-reset:s;margin-top:18px}
.steps li{counter-increment:s;position:relative;padding:5px 0 18px 54px;margin:0}
.steps li::before{content:counter(s);position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;background:var(--acc);color:#fff;font-weight:700;display:grid;place-items:center}
.steps li:not(:last-child)::after{content:"";position:absolute;left:17px;top:40px;bottom:2px;width:2px;background:var(--line)}
.pager{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;margin-top:48px;padding-top:24px;border-top:1px solid var(--line)}
.pager a{display:inline-flex;align-items:center;gap:12px;min-height:60px;padding:8px 18px;border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;background:#fff}
.pager a:hover{border-color:var(--acc);box-shadow:var(--sh)}
.pager .next{text-align:right;margin-left:auto}
.pg-l{display:block;font-size:.82rem;color:var(--mut)}
.pg-n{display:block;font-weight:650}
.form{box-shadow:var(--sh)}
.site-footer{border-top:0;background:var(--ink);color:#d5ddec;padding:44px 0 36px}
.site-footer a{color:#fff}
.site-footer a:hover{color:#ffd2b3}
.site-footer :focus-visible{outline-color:#ffb37a}
.foot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:28px 40px;margin-bottom:28px}
.foot-mail{color:#fff;overflow-wrap:anywhere}
.foot-brand{font-weight:800;font-size:1.3rem;color:#fff;margin-bottom:8px}
.foot-brand span{color:#ff9d5c}
.site-footer h2{font-size:1rem;color:#fff;margin-bottom:8px;letter-spacing:0}
.site-footer ul{display:block}
.site-footer nav{margin:0}
.site-footer nav a{padding:6px 0}
.site-footer .legal{border-top:1px solid #33405c;padding-top:20px;font-size:.92rem}
.card-body{padding:20px 22px 6px}
.card-img{border-top:1px solid var(--line)}
.card-foot{padding:14px 22px 18px;display:block}
@media (max-width:600px){.hero{padding:22px 0}.tools-head{align-items:flex-start;flex-direction:column}}
