/* 메카노트 — responsive static site. No external font or tracking dependency. */
:root{--ink:#162c2a;--ink2:#364a49;--muted:#6e7e7c;--line:#e3eae7;--bg:#f7f9f8;--paper:#fff;--green:#0f6a52;--mint:#d7f0e6;--dark:#142d2a;--shadow:0 14px 42px rgba(30,62,51,.065);--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Pretendard,'Apple SD Gothic Neo','Malgun Gothic',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;line-height:1.67;-webkit-font-smoothing:antialiased}a{text-decoration:none;color:inherit}button,input,select{font:inherit}button{cursor:pointer}img,svg{max-width:100%}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.045em;line-height:1.26}h1{font-size:clamp(2.45rem,5vw,4.15rem)}h2{font-size:clamp(1.75rem,3vw,2.55rem)}h3{font-size:1.23rem}p{color:var(--ink2)}.container{width:min(1160px,calc(100% - 48px));margin-inline:auto}.content-width{max-width:815px}.skip{position:absolute;left:-1000px;top:10px;z-index:20;background:white;padding:10px}.skip:focus{left:10px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #69cfae;outline-offset:3px}.site-header-wrap{position:relative;border-bottom:1px solid #ebefed;background:#fff;z-index:20}.site-header{height:84px;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;gap:11px;align-items:center}.brand-mark{font-weight:950;font-size:30px;background:var(--dark);color:#fff;width:46px;height:46px;border-radius:13px;display:grid;place-items:center;line-height:1;letter-spacing:-4px;padding-right:5px}.brand-dot{color:#7fd2ad}.brand-name{font-size:20px;line-height:1.12;font-weight:850;letter-spacing:-.065em}.brand-sub{display:block;font-size:9px;letter-spacing:.19em;color:#90a29e;font-weight:750;margin-top:5px}.desktop-nav{display:flex;gap:34px;align-items:center}.desktop-nav a{font-size:14px;font-weight:690;color:#697976;padding-block:32px;position:relative}.desktop-nav a:hover,.desktop-nav a.active{color:var(--green)}.desktop-nav a.active:after{content:'';height:3px;background:var(--green);position:absolute;bottom:0;left:0;right:0;border-radius:3px}.menu-toggle,.mobile-nav{display:none}.hero{background:linear-gradient(135deg,#f7fbf9 0%,#f6f9f8 58%,#f0f7f2 100%);border-bottom:1px solid #e9efec}.hero-grid{display:grid;grid-template-columns:1fr .95fr;gap:64px;align-items:center;min-height:570px;padding-top:64px;padding-bottom:74px}.eyebrow{display:inline-flex;align-items:center;gap:10px;color:#1d8166;background:#e0f2e8;border:1px solid #d0ebde;border-radius:99px;padding:7px 14px;font-weight:750;font-size:11px;letter-spacing:.16em}.live-dot,.art-status i{width:7px;height:7px;display:inline-block;background:#2db67f;border-radius:50%;box-shadow:0 0 0 4px rgba(45,182,127,.12)}.hero h1{margin:26px 0 24px;line-height:1.2;letter-spacing:-.062em}.hero h1 em{font-style:normal;color:#1c8d67}.hero-copy>p{font-size:17px;max-width:500px;line-height:1.85;color:#667875}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:17px;border-radius:10px;font-weight:750;font-size:14px;min-height:52px;padding:13px 22px;transition:transform .2s,background .2s}.btn:hover{transform:translateY(-2px)}.btn.primary{background:#17664f;color:white}.btn.primary:hover{background:#0b533f}.btn.secondary{border:1px solid #d8e4de;background:#fff;color:#355449}.btn.pale{background:#fff;color:#1e5845}.hero-facts{display:flex;gap:50px;margin-top:46px}.hero-facts>div{display:flex;flex-direction:column;gap:2px}.hero-facts strong{font-size:24px;letter-spacing:-.05em;font-weight:840}.hero-facts span{font-size:12px;color:#889995;font-weight:650}.hero-art{position:relative;background:#173b35;color:#fff;border-radius:26px;box-shadow:0 28px 60px rgba(15,67,48,.18);min-height:430px;overflow:hidden;padding:31px 34px}.art-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.038) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.038) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.95),transparent)}.art-top,.art-bottom,.art-two{display:flex;align-items:center;justify-content:space-between;position:relative}.tiny-label{font-size:10px;letter-spacing:.2em;font-weight:800;color:#8eaaa2}.art-top .tiny-label{color:#a5c7bb}.art-status{font-size:10px;color:#89dcbc;font-weight:800;letter-spacing:.12em;display:flex;gap:11px;align-items:center}.art-equation{font-size:clamp(32px,5vw,55px);font-weight:780;letter-spacing:-.07em;margin:38px 0 21px;position:relative}.art-line{height:1px;background:rgba(255,255,255,.13);margin:0 0 23px}.art-two{gap:15px}.art-two span{font-size:12px;color:#a4bab4;display:flex;flex-direction:column;gap:3px}.art-two b{font-size:17px;color:#f5fff8;letter-spacing:-.02em}.art-result{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:35px}.art-result>span{color:#b2cfc4;font-size:12px}.art-result strong{font-size:41px;letter-spacing:-.055em;font-variant-numeric:tabular-nums}.art-result small{font-size:17px;font-weight:500;color:#a8d5c5}.art-chart{height:80px;margin-top:5px;opacity:.85}.art-chart svg{width:100%;height:100%}.art-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:14px;font-size:10px;color:#7ea89a;font-weight:750;letter-spacing:.13em}.section-block{padding-top:93px;padding-bottom:100px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}.kicker{display:block;color:#157356;letter-spacing:.16em;font-weight:820;font-size:11px;margin-bottom:13px}.section-heading h2{margin:0 0 11px}.section-heading p{margin:0;color:#748681;font-size:15px}.text-arrow{white-space:nowrap;font-weight:770;color:#18654f;font-size:14px;padding-bottom:7px}.text-arrow span{margin-left:9px}.text-arrow:hover{text-decoration:underline}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.tool-card{display:block;background:#fff;border:1px solid #e3ece8;border-radius:17px;min-height:251px;padding:25px;transition:border-color .2s,box-shadow .2s,transform .2s}.tool-card:hover,.guide-card:hover{border-color:#badbcf;box-shadow:var(--shadow);transform:translateY(-3px)}.tool-symbol{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#e9f5ef;color:#147556;font-size:27px;line-height:1;font-weight:600}.tool-tag{float:right;font-size:11px;background:#f5f7f6;border:1px solid #ebf0ed;color:#768580;padding:4px 9px;border-radius:99px}.tool-card h3{font-size:18px;margin:25px 0 10px;letter-spacing:-.042em}.tool-card p{font-size:13px;line-height:1.7;color:#74837e;min-height:43px;margin-bottom:18px}.card-link{color:#16674f;font-weight:800;font-size:12px}.card-link span{margin-left:8px}.feature-band{background:#153b32;color:white;padding:74px 0}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:100px}.feature-grid h2{margin-bottom:22px;line-height:1.35}.feature-grid p{color:#aec9bf;line-height:1.8;max-width:460px}.feature-grid .btn{margin-top:12px}.kicker.light{color:#8bd7b7}.feature-items{display:flex;flex-direction:column;gap:28px;justify-content:center}.feature-items>div{display:flex;gap:21px;border-bottom:1px solid rgba(255,255,255,.13);padding-bottom:25px}.feature-items>div:last-child{border-bottom:0}.feature-items>div>span{background:#2a584a;color:#9be2c5;border-radius:10px;display:grid;place-items:center;width:47px;height:47px;flex:0 0 47px;font-weight:800;font-size:13px}.feature-items h3{margin:2px 0 5px;font-size:17px}.feature-items p{margin:0;font-size:13px}.guides-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.guide-card{border:1px solid var(--line);border-radius:16px;padding:26px;min-height:234px;transition:border-color .2s,box-shadow .2s,transform .2s}.guide-tag{font-size:11px;color:#167052;font-weight:800}.guide-card h3{font-size:18px;line-height:1.46;margin:17px 0 10px}.guide-card p{font-size:13px;color:#7a8985;min-height:45px}.guide-meta{font-size:12px;color:#9aa8a3;font-weight:700;display:flex;justify-content:space-between}.cta-panel{margin-bottom:95px;background:#f2f8f4;border:1px solid #e5efea;border-radius:22px;display:flex;justify-content:space-between;align-items:center;gap:25px;padding:42px 47px}.cta-panel h2{font-size:27px;margin-bottom:10px}.cta-panel p{font-size:14px;margin:0}.footer{border-top:1px solid var(--line);background:#f9fbfa}.footer-top{display:flex;justify-content:space-between;padding-top:58px;padding-bottom:58px;gap:35px}.footer-brand{display:inline-flex;gap:9px;font-weight:840;font-size:20px;align-items:center}.footer-logo{font-size:19px;color:#fff;background:var(--dark);border-radius:7px;padding:0 8px}.footer-top p{font-size:13px;color:#84928d;margin-top:15px}.footer-links{display:flex;gap:90px}.footer-links>div{display:flex;flex-direction:column;gap:9px}.footer-links b{font-size:12px;margin-bottom:9px}.footer-links a{font-size:13px;color:#72837c}.footer-links a:hover{color:#106e50}.footer-bottom{border-top:1px solid #e8eeeb;padding:22px 0 28px;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#9aa8a1}.page-intro{padding-top:75px;padding-bottom:57px;border-bottom:1px solid var(--line)}.page-intro h1{font-size:clamp(2.65rem,5vw,3.8rem);margin:0 0 22px}.page-intro p{max-width:700px;font-size:17px;line-height:1.9;color:#71837d;margin:0}.catalog{padding-top:41px;padding-bottom:105px}.catalog-head{display:flex;justify-content:space-between;margin-bottom:23px;align-items:center}.catalog-head span{font-size:14px;font-weight:780}.catalog-head strong{font-size:10px;letter-spacing:.14em;color:#9aa9a1}.notice{border-left:3px solid #428f74;background:#f5f9f7;padding:18px 22px;margin-top:37px}.notice b{font-size:13px}.notice p{font-size:13px;margin:5px 0 0;color:#788781}.crumb{padding-top:29px;display:flex;align-items:center;gap:12px;font-size:12px;color:#9aa9a3}.crumb a:hover{color:#0f7857}.tool-intro{padding-top:42px;padding-bottom:34px}.tool-intro h1{font-size:clamp(2.25rem,4.2vw,3.25rem);margin:0 0 13px}.tool-intro p{font-size:16px;color:#74837e}.tool-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:31px;padding-bottom:112px}.calculator{border:1px solid #e0e9e4;border-radius:21px;overflow:hidden;box-shadow:0 17px 36px rgba(22,63,48,.045)}.calc-heading{padding:25px 29px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.calc-heading h2{font-size:22px;margin:6px 0 0}.calc-icon{font-size:27px;background:#e7f5eb;border-radius:12px;color:#14704e;width:45px;height:45px;display:grid;place-items:center}.calculator form{padding:28px 29px 19px}.input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.input-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field span{font-size:13px;font-weight:730;color:#53645d}.field input,.field select{width:100%;height:51px;border:1px solid #dbe6de;border-radius:9px;background:white;padding:11px 12px;font-size:16px;font-weight:690;color:#1d4034;min-width:0}.field input:hover,.field select:hover{border-color:#9ec8b7}.calc-btn{border:0;background:#17684f;color:#fff;padding:13px 20px;display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:21px;border-radius:9px;font-weight:800;font-size:14px;min-height:50px}.calc-btn:hover{background:#12533f}.calc-btn span{font-size:19px}.results{background:#f4faf6;border:1px solid #e1efe5;border-radius:12px;padding:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}.results.three{grid-template-columns:repeat(3,minmax(0,1fr))}.results.four{grid-template-columns:repeat(2,minmax(0,1fr))}.results>div{min-width:0;display:flex;flex-direction:column;gap:6px}.results>div>span{font-size:12px;color:#608774;font-weight:720}.results strong{font-size:clamp(17px,2.5vw,24px);font-variant-numeric:tabular-nums;letter-spacing:-.035em;color:#19533e;overflow-wrap:anywhere;line-height:1.2}.results small{font-size:11px;color:#74988a}.calc-note{font-size:11px;color:#9aa8a0;margin:0;padding:0 28px 25px}.error{color:#b63a42;font-size:12px;margin:11px 0 0;min-height:0}.calc-extrainfo{font-size:12px;color:#537c69;line-height:1.5;padding-top:12px}.formula-info{margin-top:35px}.formula-info h2{font-size:23px}.info-label{color:#1b7659;letter-spacing:.15em;font-weight:820;font-size:10px;margin-bottom:13px}.article-prose{font-size:15px;line-height:2;color:#3e504b}.article-prose p{margin:0 0 22px;color:#546762}.article-prose h2{font-size:25px;margin:42px 0 15px}.article-prose h3{font-size:19px;margin:29px 0 12px}.article-prose ul{color:#536761;padding-left:25px;margin:15px 0 27px}.article-prose li{margin-bottom:9px}.article-prose a:not(.btn){color:#136e50;text-decoration:underline;text-underline-offset:3px}.article-prose a:not(.btn):hover{color:#0a4a37}.formula{padding:21px 24px;border:1px solid #d8e8df;border-left:4px solid #228a65;border-radius:8px;color:#174e3c;background:#f5faf7;font-size:clamp(13px,2.5vw,17px);font-weight:790;letter-spacing:-.035em;margin:26px 0;overflow-x:auto;white-space:nowrap}.source{font-size:12px!important;margin-top:24px!important}.tool-side{display:flex;flex-direction:column;gap:18px}.aside-card{padding:24px;border:1px solid #e0eae4;border-radius:16px;background:#fff}.aside-card h3{font-size:19px;margin:8px 0 11px}.aside-card p{font-size:13px;color:#74857e;line-height:1.76;margin-bottom:18px}.side-link{font-size:13px;font-weight:790;color:#177052}.aside-card.muted{background:#f8faf9}.small-icon{color:#358368;font-size:22px}.all-tools{font-size:12px;font-weight:750;color:#879790;padding:10px}.all-tools:hover{color:#106e50}.article-head{max-width:920px;margin:auto;padding-top:48px;padding-bottom:47px;border-bottom:1px solid var(--line)}.article-head h1{font-size:clamp(2.1rem,5vw,3.35rem);line-height:1.35;max-width:810px}.article-desc{font-size:17px;color:#6e8078;max-width:760px}.article-byline{display:flex;align-items:center;gap:9px;font-size:12px;color:#899991;margin-top:25px}.dot-sep{color:#bec9c2}.reading-layout{max-width:920px;display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:55px;padding-top:50px;padding-bottom:110px}.reading-side{display:flex;flex-direction:column;gap:20px}.main-article{font-size:16px}.main-article h2:first-child{margin-top:0}.article-footer{background:#f3f8f5;border:1px solid #e1ede5;border-radius:16px;padding:29px;margin-top:46px}.article-footer h3{margin:0 0 9px}.article-footer p{font-size:13px}.article-footer .btn{margin-top:9px}.simple-content{padding-top:42px;padding-bottom:105px;font-size:16px}.simple-content h2{font-size:22px;margin-top:45px}.simple-content h2:first-child{margin-top:8px}.simple-content p{line-height:2;color:#586c64}.simple-content a{color:#176a51;text-decoration:underline;text-underline-offset:4px}.contact-box{background:#f5f9f6;border:1px solid #deede4;border-radius:16px;padding:28px}.contact-box h2{margin:0 0 13px}.small-muted{font-size:13px;color:#789188!important}.contact-email-link{color:#fff!important;text-decoration:none!important}.missing{text-align:center;min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.missing-code{font-size:100px;color:#cbd9d1;letter-spacing:-.07em;font-weight:900}.missing h1{font-size:32px;margin-bottom:5px}.missing p{color:#82918a}.missing .btn{margin-top:20px}
@media (max-width:980px){.hero-grid{gap:28px}.hero-art{padding:26px;min-height:410px}.hero-facts{gap:27px}.feature-grid{gap:50px}.input-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-layout{grid-template-columns:minmax(0,1fr) 230px;gap:20px}}
@media (max-width:760px){.container{width:min(100% - 34px,1160px)}.site-header{height:68px}.brand-mark{width:40px;height:40px;font-size:25px}.brand-name{font-size:18px}.desktop-nav{display:none}.menu-toggle{border:0;background:transparent;width:43px;height:43px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:6px}.menu-toggle span{height:2px;width:22px;border-radius:2px;background:#25453a}.mobile-nav{display:flex;flex-direction:column;padding:12px 22px 22px;border-top:1px solid #eaf0eb;background:#fff}.mobile-nav[hidden]{display:none}.mobile-nav a{padding:12px 4px;color:#32584a;font-weight:690;font-size:14px;border-bottom:1px solid #edf2ee}.hero-grid{grid-template-columns:1fr;min-height:0;padding-top:54px;padding-bottom:57px;gap:38px}.hero h1{font-size:clamp(2.5rem,8.6vw,3.4rem)}.hero-copy>p{font-size:15px}.hero-facts{margin-top:30px}.hero-art{min-height:355px;max-width:560px;width:100%;margin:auto}.art-equation{margin-top:25px;font-size:39px}.art-result{margin-top:21px}.section-block{padding-top:64px;padding-bottom:68px}.section-heading{align-items:start;flex-direction:column;gap:14px}.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guides-grid{grid-template-columns:1fr 1fr}.feature-band{padding:65px 0}.feature-grid{grid-template-columns:1fr;gap:42px}.feature-items{gap:20px}.feature-items>div{padding-bottom:17px}.cta-panel{padding:32px;align-items:start;flex-direction:column;margin-bottom:65px}.tool-layout{grid-template-columns:1fr}.tool-side{display:grid;grid-template-columns:1fr 1fr;align-items:start}.tool-side .all-tools{grid-column:1/-1}.reading-layout{grid-template-columns:1fr;gap:20px;padding-top:35px}.reading-side{grid-row:2}.article-head{padding-top:35px}.page-intro{padding-top:50px;padding-bottom:38px}.catalog{padding-bottom:70px}.footer-links{gap:48px}}
@media (max-width:520px){.container{width:calc(100% - 30px)}.hero h1{font-size:2.35rem}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn{width:100%}.hero-art{padding:24px;min-height:350px}.art-result strong{font-size:35px}.art-two b{font-size:14px}.hero-facts{justify-content:space-between;gap:12px}.hero-facts strong{font-size:21px}.section-heading h2{font-size:27px}.cards-grid,.guides-grid{grid-template-columns:1fr}.tool-card{min-height:205px;padding:21px}.tool-card h3{margin-top:15px}.tool-card p{min-height:0}.guide-card{min-height:0}.guide-card p{min-height:0}.feature-band{padding:55px 0}.feature-grid h2{font-size:28px}.cta-panel h2{font-size:23px}.footer-top{flex-direction:column;padding-top:40px;padding-bottom:38px}.footer-bottom{flex-direction:column}.footer-links{justify-content:space-between;gap:20px;max-width:340px}.tool-intro{padding-top:32px;padding-bottom:15px}.tool-intro h1{font-size:2rem}.calculator form{padding:22px 18px 14px}.calc-heading{padding:20px}.input-grid,.input-grid.three{grid-template-columns:1fr}.results,.results.three,.results.four{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px;gap:21px 13px}.results strong{font-size:19px}.calc-note{padding:0 18px 22px}.tool-side{grid-template-columns:1fr}.reading-layout{padding-bottom:65px}.article-head h1{font-size:2rem}.article-prose h2{font-size:22px}.article-footer{padding:23px}.simple-content{padding-bottom:70px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #11806a; outline-offset: 4px; }
.field input[aria-invalid="true"] { border-color: #ab2b34; }
.results strong, .contact-box { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.calc-note, .results small, .small-muted { color: #466257 !important; }
.calc-note { font-size: 0.84rem; }
.results small { font-size: 0.8rem; }
.art-top .tiny-label { color: #c4e8db; }

/* Shared application theme */
:root {
  color-scheme: light;
  --ink: #18203a; --ink2: #414c68; --muted: #53617d; --line: #dfe4f1;
  --bg: #f5f7fd; --paper: #fff; --green: #4850c5; --mint: #eaeaff;
  --dark: #202955; --surface: #f0f2ff; --accent: #4c4dce;
  --accent-2: #6353bd; --on-accent: #fff; --result: #eef0ff;
  --shadow: 0 16px 45px #232c7210;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf0ff; --ink2: #c0c9e8; --muted: #a8b4d8; --line: #343e63;
  --bg: #111628; --paper: #191f35; --green: #b2b7ff; --mint: #292b53;
  --dark: #111628; --surface: #232b48; --accent: #ada9ff;
  --accent-2: #c5b6ff; --on-accent: #1c1943; --result: #2a2e54;
  --shadow: 0 12px 32px #080a1b32;
}
body { background: var(--bg); color: var(--ink); font-family: Inter, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
main { min-height: 52vh; }
.site-header-wrap, .site-header, .mobile-nav { background: var(--paper); border-color: var(--line); }
.site-header { gap: 18px; height: 66px; }
.brand { gap: 10px; white-space: nowrap; }
.brand-mark, .footer-logo { background: var(--accent); color: var(--on-accent); width: 33px; height: 33px; border-radius: 10px; font-size: 1.15rem; }
.brand-name { font-size: .94rem; font-weight: 820; letter-spacing: .035em; }
.desktop-nav { display: flex; flex: 1; justify-content: center; gap: 6px; }
.desktop-nav a, .mobile-nav a { color: var(--ink2); border-radius: 9px; padding: 8px 11px; }
.desktop-nav a.active, .desktop-nav a:hover, .mobile-nav a:hover { background: var(--surface); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { padding: 0 10px; height: 36px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 9px; font-size: .82rem; font-weight: 650; }
.theme-toggle { min-width: 38px; font-size: 1.2rem; }
.theme-sun, [data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: inline; }
.menu-toggle span { background: var(--ink); }
.hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 0; padding-block: 52px; gap: clamp(24px,6vw,90px); align-items: center; }
.hero h1, .tool-intro h1, .page-intro h1, .article-head h1 { font-size: clamp(1.85rem, 4vw, 3.25rem); letter-spacing: -.055em; line-height: 1.14; color: var(--ink); }
.hero-copy p, .tool-intro p, .page-intro p, .article-desc { color: var(--muted); max-width: 62ch; }
.hero-actions { margin: 22px 0 0; flex-wrap: wrap; }
.hero-art { display: block; padding: 24px; min-height: 0; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.hero-figure-label { display: flex; justify-content: space-between; color: var(--muted); font-weight: 650; }
.art-equation { margin: 15px 0; color: var(--accent); font-size: 2.45rem; }
.art-two { margin-block: 10px 14px; }
.art-two span, .art-result { color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.art-two b, .art-result strong, .art-result small { color: var(--ink); }
.art-result { padding: 12px 15px; }
.art-result strong { color: var(--accent); font-size: 2rem; }
.section-block { padding-block: 26px 36px; }
.section-heading h2 { font-size: 1.42rem; letter-spacing: -.025em; }
.tool-card, .guide-card, .calculator, .aside-card, .article-prose, .notice, .contact-box { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.term, .tool-card p, .guide-card p, .aside-card p, .article-prose p, .notice p, .notice b, .tool-tag, .guide-tag, .help { color: var(--muted); }
.tool-symbol, .calc-icon, .tool-tag, .guide-tag, .formula { background: var(--surface); color: var(--accent); }
.tool-symbol { font-size: 1.35rem; width: 38px; height: 38px; border-radius: 10px; }
.tool-card { min-height: 0; padding: 18px; }
.guide-card { min-height: 0; }
.card-link, .text-arrow, .side-link, .all-tools, .back-link, .source a, .article-prose a, .simple-content a, .crumb a { color: var(--accent); }
.tool-card:hover, .guide-card:hover, .hero-art:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-card, .guide-card, .hero-art, .btn, .math-keys button { transition: border-color .17s ease, background-color .17s ease, transform .17s ease; }
.btn.primary, .calc-btn { color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent); }
.btn.primary:hover, .calc-btn:hover { background: var(--accent-2); }
.btn.secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.tool-intro, .page-intro, .article-head { padding-block: 34px 23px; }
.tool-intro h1, .article-head h1 { margin-block: 10px 12px; }
.crumb { color: var(--muted); }
.calculator { background: var(--paper); border-radius: 16px; }
.calc-heading h2, .aside-card h2 { font-size: 1.12rem; color: var(--ink); }
.calc-heading { align-items: center; padding-bottom: 10px; }
.calc-formula { margin: 0 24px 16px; padding: 10px 13px; }
.calculator .field > span, .calc-extrainfo { color: var(--ink2); }
.calculator input, .calculator select, .template-picker select { border: 1px solid var(--line); color: var(--ink); background: var(--bg); border-radius: 8px; }
.calculator input:focus, .calculator select:focus { border-color: var(--accent); }
.unit-field { position: relative; min-width: 0; }
.unit-field .field input { padding-inline-end: 80px; width: 100%; }
.unit-field > select { position: absolute; right: 4px; bottom: 4px; width: 76px; min-width: 0; height: calc(100% - 34px); max-height: 40px; padding: 0 3px; font-size: .76rem; }
.results { background: none; }
.results > div { background: var(--result); border: 1px solid var(--line); min-width: 0; color: var(--ink); }
.results span, .results small, .calc-note, .small-muted { color: var(--muted) !important; }
.results strong { color: var(--accent); font-variant-numeric: tabular-nums; font-size: clamp(1rem, 2vw, 1.6rem); }
.error { color: #b82f49; }
[data-theme="dark"] .error { color: #ffaab8; }
.studio-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(200px,1fr); gap: 22px; align-items: start; padding-bottom: 55px; }
.studio-card, .tool-extra { padding: 20px 24px; }
.template-picker, .template-picker label, .expression-label { display: grid; gap: 9px; }
.template-picker select, .expression select { width: 100%; min-height: 38px; padding: 6px 9px; }
.expression-label { font-weight: 700; }
.expression-label input { width: 100%; padding: 10px 12px; font-family: ui-monospace, monospace; }
.help { font-size: .84rem; margin: 8px 0; }
.math-preview { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; border-radius: 10px; background: var(--surface); }
.math-preview math { font-size: 1.2rem; max-width: 100%; overflow-x: auto; }
.math-preview output { color: var(--accent); font-weight: 750; font-size: 1.4rem; overflow-wrap: anywhere; }
.angle-mode select { display: inline-block; width: auto; }
.math-keys { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; margin: 12px 0; }
.math-keys button { min-height: 40px; padding: 2px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; font-size: .92rem; }
.math-keys button:hover, .math-keys button:active { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.apply-row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-bottom: 10px; }
.apply-row .btn:disabled { opacity: .5; cursor: default; }
details > summary { color: var(--accent); cursor: pointer; font-weight: 750; min-height: 40px; display: list-item; padding-block: 8px; }
.palette,.worked-steps { border-top: 1px solid var(--line); }
.worked-steps p, .worked-steps li, .expression-steps li { overflow-wrap: anywhere; }
.worked-steps li, .expression-steps li { margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.result-graph { margin: 10px 0 0; background: var(--surface); padding: 12px; border-radius: 12px; color: var(--ink2); font-size: .82rem; }
.result-graph svg { display: block; max-height: 145px; width: 100%; margin: 5px auto; }
.result-graph svg line { stroke: var(--muted); stroke-width: .7; }
.result-graph svg polyline { fill: none; stroke: var(--accent); stroke-width: 2; }
.result-graph svg circle { fill: var(--accent); }
.result-graph p { font-variant-numeric: tabular-nums; margin: 0; }
.footer { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.footer-brand, .footer-links b { color: var(--ink); }
.footer-top p, .footer-links a, .footer-bottom { color: var(--muted); }
.footer-bottom { border-color: var(--line); }
:focus-visible { outline: 3px solid var(--accent); }
@media (max-width: 840px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 37px; height: 37px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
  .menu-toggle span { width: 16px; height: 2px; border-radius: 1px; }
  .mobile-nav { display: flex; flex-direction: column; padding: 8px 20px; }
}
@media (max-width: 660px) {
  .hero-grid { padding-block: 32px; gap: 20px; }
  .studio-layout { grid-template-columns: minmax(0,1fr); }
  .tool-extra, .studio-card { padding: 14px; }
  .calc-formula { margin-inline: 14px; }
  .art-two { gap: 6px; }
  .hero-art { padding: 15px; }
  .results { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.calculator input:focus, .calculator select:focus { box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 25%,transparent); }
.results { border: 0; padding: 0; gap: 8px; }
.results > div { border-radius: 10px; padding: 11px 12px; }
.calculator [data-error]:empty, .expression [data-expression-state]:empty { display: none; }
.model-diagram { margin: 12px 0 0; padding: 8px; background: var(--surface); border-radius: 11px; color: var(--muted); font-size: .8rem; }
.model-diagram svg { display: block; width: 100%; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.model-diagram svg .diagram-accent { stroke: var(--accent); stroke-width: 2; }
.model-diagram svg text { fill: var(--ink); stroke: none; font-size: 13px; }
