:root{color-scheme:dark;--bg:#0f1926;--panel:#172536;--line:#263f5a;--ink:#f4f7fa;--muted:#bdccdd;--cyan:#e6ad55;--gold:#e6ad55}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 78% 7%,#1b2c3f,transparent 41rem),var(--bg);color:var(--ink);font:16px/1.6 system-ui,Arial,sans-serif}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{line-height:1.1;letter-spacing:-.04em}
h1{font-size:clamp(3.05rem,7vw,6.2rem);max-width:13ch;margin:12px 0 20px}
h2{font-size:clamp(1.8rem,4vw,2.8rem)}
h3{font-size:1.25rem}
a{color:var(--cyan);text-underline-offset:4px}
a:hover{text-decoration:underline}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.shell{width:min(1600px,calc(100% - 64px));margin:auto}
.top{background:#0f1926ed;border-bottom:1px solid var(--line);position:relative;z-index:4}
.bar,.footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0}
.brand{display:inline-flex;align-items:center;flex-shrink:0}
.brand img{display:block;max-width:100%;height:auto;object-fit:contain;border-radius:6px}
@media(max-width:570px){.bar .brand img{width:150px}}
nav,.footer div{display:flex;align-items:center;gap:clamp(12px,3vw,30px);flex-wrap:wrap}
nav a,.footer a{color:var(--ink);text-decoration:none;font-weight:650}
.nav-group{position:relative;display:flex;align-items:center;gap:3px}
.nav-toggle{background:transparent;border:0;padding:5px 7px;color:var(--cyan)}
.menu{display:none;position:absolute;top:100%;left:0;min-width:245px;padding:10px;background:#172534;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 30px #0006}
.nav-group.menu-open .menu{display:block}
@media(hover:hover) and (pointer:fine){.nav-group:hover .menu{display:block}.nav-group.menu-dismissed .menu{display:none}}
.menu a{display:block;padding:9px 11px;border-radius:7px}
.menu a:hover,.menu a:focus-visible{background:#22374e}
.menu small{display:block;color:var(--muted);font-weight:400}
.nav-contact{border:1px solid var(--line);border-radius:8px;padding:7px 12px}
.hero{display:grid;grid-template-columns:1.12fr .88fr;align-items:center;gap:35px;padding:clamp(42px,8vw,106px) 0}
.label{font-size:.78rem;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--cyan)}
.lead,.card p,.section p,.prose li,.feature figcaption,.footer small{color:var(--muted)}
.lead{font-size:1.18rem;max-width:630px}
.cta{display:inline-flex;align-items:center;gap:12px;margin:20px 10px 0 0;padding:10px 16px;border:0;border-radius:8px;background:var(--cyan);color:#0f1926;font-weight:750;text-decoration:none}
.cta:hover{background:#f6e4c4}
.feature{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#111c27}
.model-bar,.feature figcaption{padding:12px 16px;font-size:.8rem}
.model-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);color:var(--cyan);font-weight:700}
.model-bar button,.chat-close,.suggestions button{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:5px 8px}
.scene{display:grid;place-items:center;height:300px;perspective:840px;background:radial-gradient(ellipse at 50% 52%,#795114,#0f1822 72%);overflow:hidden}
.orbit,.building,.slab,.wall{transform-style:preserve-3d}
.orbit{animation:turn 18s linear infinite}
.orbit.paused{animation-play-state:paused}
.building{position:relative;width:185px;height:150px;transform:rotateX(-20deg)}
.slab,.wall{position:absolute;border:2px solid #edc283;background:repeating-linear-gradient(0deg,#e7b76f1c 0 1px,transparent 1px 16px),#95631840;box-shadow:0 0 14px #ebc2843a}
.slab{inset:0;transform:rotateX(90deg)}
.floor{transform:translateY(65px) rotateX(90deg)}
.ceiling{transform:translateY(-65px) rotateX(90deg);opacity:.56}
.wall{width:185px;height:132px;top:9px}
.back{transform:translateZ(-75px)}
.front{transform:translateZ(75px);width:72px;left:113px}
.left{width:150px;left:17px;transform:translateX(-92px) rotateY(90deg)}
.partition{width:110px;left:38px;transform:translateX(15px) rotateY(90deg);border-color:var(--gold);background-color:#cd994c24}
@keyframes turn{from{transform:rotateY(-35deg) rotateX(7deg)}to{transform:rotateY(325deg) rotateX(7deg)}}
.section{border-top:1px solid var(--line);padding:38px 0 46px}
.section-head p,.section p,.prose ul{margin-top:10px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}
.card{display:flex;align-items:flex-start;flex-direction:column;gap:10px;padding:23px;background:var(--panel);border:1px solid var(--line);border-radius:14px}
.card h3 a{color:var(--ink);text-decoration:none}
.card .arrow{margin-top:auto}
.icon,.status{display:inline-flex;align-items:center;border-radius:7px;font-size:.78rem;font-weight:750}
.icon{padding:6px 8px;color:var(--cyan);background:#263e58}
.status{padding:3px 8px;border:1px solid #6a4a14;color:var(--gold)}
.arrow{font-weight:700;text-decoration:none}
.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.page-intro{padding:54px 0 40px}
.split,.founder{display:grid;grid-template-columns:1fr 1.2fr;gap:25px;align-items:center}
.portrait{overflow:hidden;border-radius:16px;background:#162534;border:1px solid var(--line);box-shadow:0 14px 30px #0004;max-width:480px;aspect-ratio:5/4}
.portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 27%}
.prose{max-width:820px}
.founder .label{margin:0 0 8px}
.footer{border-top:1px solid var(--line);padding:22px 0 70px}
details{margin-top:12px;padding:12px 15px;background:var(--panel);border:1px solid var(--line);border-radius:8px}
summary{cursor:pointer;font-weight:650}
.feedback-form{display:grid;gap:9px;max-width:620px}
.feedback-form label{font-weight:700}
.feedback-form button{justify-self:start}
input,textarea,select{width:100%;background:#0f1923;border:1px solid #465f7a;border-radius:7px;padding:9px 11px}
.chat-toggle{position:fixed;right:16px;bottom:16px;z-index:5;background:var(--cyan);color:#0f1926;border:0;border-radius:100px;padding:10px 17px;font-weight:750}
.assistant{position:fixed;right:16px;bottom:68px;width:min(380px,calc(100% - 32px));max-height:calc(100dvh - 90px);overflow:auto;background:#162432;border:1px solid var(--line);border-radius:14px;padding:14px;box-shadow:0 14px 30px #0008;z-index:6}
.assistant header,.assistant form div{display:flex;align-items:center;justify-content:space-between;gap:9px}
.assistant h2{font-size:1.25rem}
.assistant p,.assistant form{margin-top:8px}
.suggestions{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0;font-size:.83rem}
.assistant form button{background:var(--cyan);color:#0f1926;border:0;border-radius:7px;padding:8px;font-weight:700}
.skip{position:absolute;top:8px;left:8px;z-index:8;transform:translateY(-150%);background:var(--bg);padding:6px 10px}
.skip:focus{transform:none}
@media(max-width:800px){.hero,.split{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.shell{width:calc(100% - 30px)}.bar,.footer{align-items:flex-start;flex-wrap:wrap}nav{gap:8px 14px;font-size:.9rem}.grid,.founder{grid-template-columns:1fr}.scene{height:245px}.menu{min-width:220px}.nav-group:nth-child(2) .menu{left:auto;right:-45px}}
@media(prefers-reduced-motion:reduce){.orbit{animation-play-state:paused}.orbit:not(.paused){animation-play-state:running}}
.founder{grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:clamp(20px,5vw,55px)}
.portrait{width:100%;max-width:300px;aspect-ratio:1/1}
.portrait img{object-position:50% 24%}
@media(max-width:570px){.founder{grid-template-columns:1fr}.portrait{max-width:260px}}

/* Soft depth for the model viewport and product cards. */
.model {
  position: relative;
  border-color: #956318;
  box-shadow: 0 26px 48px #05090d99, 0 8px 0 -3px #121e2a, inset 0 1px 0 #d1dae438;
}
.scene {
  position: relative;
  isolation: isolate;
}
.scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 140%;
  height: 115%;
  bottom: -40%;
  left: -20%;
  background: repeating-linear-gradient(0deg, #e9bb7632 0 1px, transparent 1px 25px), repeating-linear-gradient(90deg, #e9bb7632 0 1px, transparent 1px 25px);
  transform: rotateX(65deg);
  mask-image: radial-gradient(ellipse, black 5%, transparent 68%);
  pointer-events: none;
}
.scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 58%;
  height: 25%;
  bottom: 13%;
  background: radial-gradient(ellipse, #040608d9, transparent 68%);
  pointer-events: none;
}
.card {
  background: linear-gradient(145deg, #1d2f43, var(--panel) 66%);
  box-shadow: 0 5px 0 -2px #0f1926, 0 15px 25px #05090d60, inset 0 1px 0 #e9edf21e;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:focus-within { border-color: #57789b; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: perspective(750px) translateY(-4px) rotateX(2deg);
    border-color: #57789b;
    box-shadow: 0 8px 0 -3px #0f1926, 0 20px 35px #05090d8c, inset 0 1px 0 #e9edf234;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

[hidden]{display:none!important}
.utility-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:32px}
.utility-layout>aside{align-self:start}
.utility-panel{display:block;min-width:0}
.utility-form,.utility-form label{display:grid;gap:7px}
.utility-form{gap:14px}
.utility-form .cta{justify-self:start;margin:0}
.utility-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:12px}
.utility-check{display:flex!important;align-items:start}
.utility-check input{width:auto;margin-top:.35em}
.utility-status:empty{display:none}
.utility-status{overflow-wrap:anywhere}
.image-previews img{display:block;width:100%;max-height:260px;object-fit:contain;background:#0f1926;border-radius:8px}
.image-previews figcaption{font-size:.83rem;margin-top:5px}
#pdf-order{padding:0;margin:0;list-style:none}
#pdf-order li{display:flex;gap:6px;align-items:center;margin:5px 0}
#pdf-order span{flex:1;overflow-wrap:anywhere}
#pdf-order button{border:1px solid var(--line);border-radius:5px;background:var(--bg);padding:3px 9px}
#pdf-order button:disabled,.utility-form button:disabled{opacity:.5;cursor:default}
.tool-intro{max-width:780px}
.tool-intro h1{max-width:18ch}
@media(max-width:720px){.utility-layout{grid-template-columns:1fr}}

/* Light surfaces and larger controls keep the tools easy to scan. */
:root{color-scheme:light;--bg:#f9fbfd;--panel:#ffffff;--line:#d8e3ef;--ink:#1b2c3e;--muted:#475d75;--cyan:#8a5410;--gold:#8a5410}
body{background:radial-gradient(ellipse at 78% 8%,#eff3f8,transparent 44rem),var(--bg);font-family:"Inter",system-ui,Arial,sans-serif}
.top{background:#ffffff;border-bottom:1px solid var(--line)}
nav a,.footer a{color:var(--ink)}
.nav-contact{background:#f3f6fa}
.menu{background:#ffffff;box-shadow:0 12px 30px #2b476525}
.menu a:hover,.menu a:focus-visible{background:#f3f6fa}
.page-intro{padding:54px 0 34px}
.page-intro h1{font-size:clamp(2.55rem,6vw,4.7rem);max-width:19ch}
.tool-intro{max-width:860px}
.tool-intro h1{max-width:none}
.lead{font-size:clamp(1.04rem,2.4vw,1.22rem)}
.section{padding:30px 0 40px}
.cta,.chat-toggle,.assistant form button{min-height:44px;background:#8a5410;color:#ffffff}
.cta:hover,.chat-toggle:hover,.assistant form button:hover{background:#956318}
.cta:disabled{background:#527eae;color:#ffffff}
.grid{gap:18px}
.card{background:#ffffff;border-color:var(--line);box-shadow:0 6px 18px #2d4a6a10}
.card:hover{border-color:#ebc182;box-shadow:0 12px 25px #2d4a6a1b}
.card .icon{min-width:50px;min-height:46px;justify-content:center;background:#eff3f8;color:#956318;font-size:.83rem}
.tool-card:nth-child(2) .icon{background:#ffe9df;color:#963b24}
.tool-card:nth-child(3) .icon{background:#e5eaef;color:#1f3247}
.tool-card h3{font-size:clamp(1.3rem,3vw,1.55rem)}
.tool-card .cta{margin-top:auto;align-self:flex-start}
.tool-card p{margin:0 0 8px}
.status{background:#fbf0dc;border-color:#e0b46c;color:#7a4a0e}
.portrait{background:#f2f6fa;box-shadow:0 12px 24px #2d4a6a20}
.utility-layout{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:26px}
.utility-panel{padding:clamp(16px,3vw,28px)}
.utility-form label{font-weight:650}
input,textarea,select{background:#ffffff;border:1px solid #a9bcd1;color:var(--ink);min-height:44px}
input[type=file]{background:#f6f9fc;max-width:100%}
input[type=file]::file-selector-button{min-height:36px;border:0;border-radius:6px;padding:5px 10px;background:#e8eff6;color:#6a4310;font:inherit;font-weight:650;margin-right:8px;cursor:pointer}
.utility-check input{min-height:auto}
.utility-help{padding:18px;background:#f2f6fa;border-radius:12px;border:1px solid var(--line)}
.utility-help h2{font-size:1.35rem}
.utility-help ol{padding-left:1.35rem;margin:10px 0 18px;color:var(--muted)}
.utility-help li+li{margin-top:5px}
.utility-status:not(:empty){padding:10px 12px;border-radius:8px;background:#f2f6fa;color:var(--ink)}
#pdf-order button{background:#f2f6fa;border-color:#a9bcd1}
.image-previews img{background:#f2f6fa}
.assistant{background:#ffffff;box-shadow:0 14px 30px #2b476530}
.model{color:#f4f7fa}
.model-bar{color:#edc283}
.model-bar button{background:#172536;border-color:#405973}
.model figcaption{color:#cddbea}
@media(max-width:720px){.utility-layout{grid-template-columns:1fr}.utility-help{order:-1}}
@media(max-width:570px){.page-intro{padding:35px 0 22px}.section{padding:22px 0 30px}.nav-contact{padding:6px 9px}.utility-form .cta{margin-bottom:4px}}

.visual-guide{scroll-margin-top:20px}
.guide-steps{list-style:none;margin:23px 0 0;padding:0;display:grid;gap:24px}
.guide-step{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);align-items:center;gap:24px;padding:clamp(14px,3vw,28px);border:1px solid var(--line);border-radius:16px;background:#ffffff}
.guide-instruction{display:flex;gap:12px;align-items:flex-start}
.guide-number{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#8a5410;color:#ffffff;font-weight:750}
.guide-instruction p{margin-top:6px}
.guide-screen{border:1px solid #b7cce2;border-radius:12px;background:#f9fbfd;overflow:hidden;box-shadow:0 6px 0 -2px #c8d7e8,0 12px 24px #2d4a6a21}
.guide-window{display:flex;align-items:center;gap:5px;padding:8px 11px;background:#ebf1f7;border-bottom:1px solid #cfddeb;font-size:.72rem}
.guide-window span{width:6px;height:6px;border-radius:50%;background:#6387ad}
.guide-window b{margin-left:5px}
.guide-screen-body{padding:clamp(10px,2vw,18px)}
.guide-screen-title{display:block;margin-bottom:10px;font-size:clamp(1rem,2.5vw,1.3rem)}
.guide-screen-controls{display:grid;gap:8px}
.guide-field{display:grid;gap:3px;background:#ffffff;border:1px solid #c4d4e5;border-radius:7px;padding:6px 9px;font-size:.82rem}
.guide-field span{color:#475d75}
.guide-action{justify-self:start;padding:5px 9px;border-radius:7px;background:#8a5410;color:white;font-size:.82rem;font-weight:700}
.guide-focus,.guide-step:last-child .guide-result{outline:2px solid #8a5410;outline-offset:2px}
.guide-result{background:#e5eaef;color:#1f3247;padding:6px 9px;border-radius:7px;font-size:.82rem;font-weight:650}
@media(max-width:700px){.guide-step{grid-template-columns:1fr;gap:14px}}

/* Homepage layout and decorative previews. */
.tools-home .home-intro{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);gap:26px;align-items:center;min-height:300px;padding:32px 0 24px}
.home-intro h1{margin:0 0 14px;max-width:none;font-size:clamp(2.65rem,6.1vw,5rem)}
.home-intro-copy .cta{margin-top:17px}
.home-art{position:relative;isolation:isolate;min-height:230px;overflow:hidden;border:1px solid #dce6f0;border-radius:25px;background:radial-gradient(ellipse at 48% 78%,#d5e1ee 0%,transparent 68%),linear-gradient(135deg,#f6f9fc,#ecf1f7);perspective:780px}
.home-art::before{content:"";position:absolute;inset:48% -16% -80%;transform:rotateX(52deg);background:repeating-linear-gradient(0deg,#759cc626 0 1px,transparent 1px 22px),repeating-linear-gradient(90deg,#759cc626 0 1px,transparent 1px 22px);mask-image:radial-gradient(ellipse,#000000,transparent 67%)}
.art-card{position:absolute;border-radius:13px;background:#ffffff;border:1px solid #ccdaea;box-shadow:0 17px 25px #375d852d,0 4px 0 #b2c8df}
.art-photo{width:36%;height:58%;top:25%;left:14%;transform:rotate(-12deg) rotateY(-10deg);padding:9px;color:#956318}
.art-landscape{position:relative;overflow:hidden;height:75%;border-radius:7px;background:#cddbea}
.art-landscape::before,.art-landscape::after{content:"";position:absolute;bottom:-35%;width:80%;aspect-ratio:1;border-radius:12%;transform:rotate(45deg)}
.art-landscape::before{left:-10%;background:#e5ae5c}
.art-landscape::after{right:-10%;background:#4678ad}
.art-landscape i{position:absolute;right:17%;top:15%;width:20%;aspect-ratio:1;border-radius:50%;background:#edc283}
.art-photo strong{display:block;margin:4px 2px 0;font-size:clamp(.66rem,1.3vw,.9rem)}
.art-paper{width:25%;height:66%;top:19%;left:42%;z-index:2;transform:rotate(9deg) rotateY(-12deg);padding:12px;color:#91331f}
.art-paper span{position:absolute;right:0;top:0;width:26%;aspect-ratio:1;background:#ffddce;clip-path:polygon(0 0,100% 100%,0 100%);border-radius:0 0 0 4px}
.art-paper strong{display:block;font-size:clamp(.92rem,2.2vw,1.55rem);margin:15% 0 6px}
.art-paper i{display:block;width:90%;height:4px;margin:7px 0;border-radius:8px;background:#ead3cb}
.art-paper i:nth-of-type(2){width:65%}
.art-paper small{font-size:clamp(.56rem,1.15vw,.75rem);white-space:nowrap}
.art-calendar{width:27%;height:49%;top:24%;left:63%;transform:rotate(15deg) rotateY(-10deg);overflow:hidden}
.art-calendar-top{height:22%;background:#8597ab}
.art-calendar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:10%}
.art-calendar-grid i{aspect-ratio:1;border-radius:4px;background:#e5eaef}
.art-calendar-grid i:nth-child(5){background:#32475d}
.home-tools{scroll-margin-top:18px}
.home-tools .grid{margin-top:18px}
.home-shortcuts{padding:20px 22px;border:1px solid var(--line);border-radius:15px;background:#f2f6fa;margin-bottom:28px}
.home-shortcuts h2,.home-guides h2{font-size:clamp(1.4rem,3vw,1.85rem)}
.shortcut-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:13px}
.shortcut-links a{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:6px 12px;border:1px solid #bdd0e4;border-radius:8px;background:#ffffff;color:#6a4310;text-decoration:none;font-weight:650}
.shortcut-links a:hover{background:#f8fafc;text-decoration:underline}
.home-guides{display:grid;grid-template-columns:1fr 1.25fr;gap:18px;align-items:start;padding-bottom:22px}
.home-guides ul{list-style:none;margin:0;padding:0}
.home-guides li+li{border-top:1px solid var(--line)}
.home-guides a{display:flex;justify-content:space-between;gap:8px;padding:9px 0;font-weight:650;text-decoration:none}
.home-guides a:hover{text-decoration:underline}
.home-privacy{color:var(--muted);padding:0 0 24px}
@media(max-width:680px){.tools-home .home-intro,.home-guides{grid-template-columns:1fr}.tools-home .home-intro{gap:18px;padding-top:28px}.home-art{min-height:175px}.home-shortcuts{padding:15px}.home-guides{gap:8px}}

/* Warm canvas, teal actions, and dimensional Zysnor branding. */
:root{--bg:#f6f8fa;--panel:#ffffff;--line:#cad4df;--ink:#14202d;--muted:#32475d;--cyan:#1f3247;--gold:#8a5410}
body{background:radial-gradient(ellipse at 90% 5%,#e4e9ee 0%,transparent 39rem),var(--bg)}
.top{background:#ffffff}
.top .brand{position:relative;margin:3px 0 7px}
.top .brand img{border-radius:8px;box-shadow:0 4px 0 #1f3247,0 8px 15px #18273840;outline:1px solid #b1bdc9;outline-offset:0}
.top .brand:focus-visible{outline:2px solid var(--gold);outline-offset:6px}
.nav-contact,.menu a:hover,.menu a:focus-visible{background:#eceff3}
.cta,.chat-toggle,.assistant form button{background:#1f3247;color:#ffffff;box-shadow:0 2px 0 #172535}
.cta:hover,.chat-toggle:hover,.assistant form button:hover{background:#1a2a3c}
.cta:disabled{background:#32475d}
.tools-home .home-intro{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);min-height:340px}
.home-intro h1{letter-spacing:-.065em}
.home-art{min-height:290px;border-color:#c3ccd5;background:radial-gradient(ellipse at 58% 65%,#ccd6e1,transparent 72%),linear-gradient(145deg,#f4f6f9,#dfe5eb)}
.home-art::before{background:repeating-linear-gradient(0deg,#32475d25 0 1px,transparent 1px 22px),repeating-linear-gradient(90deg,#32475d25 0 1px,transparent 1px 22px)}
.brand-plaque{position:absolute;left:18%;top:18%;width:66%;z-index:3;transform:rotate(-7deg) rotateY(-12deg);border-radius:12px;box-shadow:0 6px 0 #32475d,0 12px 0 -1px #1f3247,0 25px 26px #1a2b3e55;isolation:isolate}
.brand-plaque img{display:block;width:100%;height:auto;border-radius:12px}
.brand-plaque::after{content:"";position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:1px solid #a5b3c1;background:linear-gradient(148deg,#ffffff19,transparent 39%)}
.art-card{border-color:#b9c4cf;box-shadow:0 16px 25px #1f324725,0 4px 0 #a9b6c3}
.art-photo{width:29%;height:39%;left:13%;top:52%;transform:rotate(-13deg) rotateY(-8deg);color:#1f3247}
.art-landscape{background:#c3cfdb}
.art-landscape::before{background:#7c8fa4}
.art-landscape::after{background:#32475d}
.art-paper{width:21%;height:46%;left:43%;top:48%;transform:rotate(6deg) rotateY(-10deg);padding:9px}
.art-paper strong{margin:8% 0 4px}
.art-calendar{width:22%;height:36%;left:68%;top:53%;transform:rotate(16deg) rotateY(-10deg)}
.card{background:var(--panel);box-shadow:0 6px 20px #1f324713}
.card:hover,.card:focus-within{border-color:#8092a6;box-shadow:0 12px 26px #1f324720}
.card .icon{background:#e5eaef;color:#1f3247}
.tool-card:nth-child(2) .icon{background:#fbf0dc;color:#8b4524}
.tool-card:nth-child(3) .icon{background:#eaf0f7;color:#365b83}
.home-shortcuts,.utility-help,.utility-status:not(:empty){background:#eaeef2}
.shortcut-links a{border-color:#acb8c5;color:#1f3247}
.shortcut-links a:hover,#pdf-order button{background:#f2f4f7}
input,textarea,select,#pdf-order button{border-color:#96a5b6}
input[type=file]{background:#f1f3f6}
input[type=file]::file-selector-button{background:#dde3ea;color:#1e3146}
.image-previews img{background:#eceff3}
.guide-number,.guide-action{background:#1f3247}
.guide-screen{border-color:#b2bdc9;background:#f2f5f7;box-shadow:0 6px 0 -2px #c3ccd5,0 12px 24px #1f324720}
.guide-window{background:#e2e7ed;border-color:#c8d3de}
.guide-window span{background:#32475d}
.guide-field{border-color:#bac4cf}
.guide-field span{color:var(--muted)}
@media(max-width:680px){.tools-home .home-intro{grid-template-columns:1fr;min-height:0}.home-art{min-height:clamp(200px,58vw,265px)}.brand-plaque{width:61%;left:20%}}

/* Language selection and right-to-left navigation. */
.language-picker{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:6px 9px;font-size:.82rem}
.language-picker label{font-weight:700;color:var(--muted)}
.language-picker select{width:auto;min-width:112px;max-width:165px;min-height:38px;padding:4px 7px;background:#ffffff}
.language-translate{font-weight:700;white-space:nowrap}
.language-status{max-width:175px;color:var(--muted);font-size:.73rem;line-height:1.3}
[dir=rtl] .menu{left:auto;right:0}
[dir=rtl] .guide-help ol,[dir=rtl] .utility-help ol{padding-left:0;padding-right:1.35rem}
[dir=rtl] input[type="file"],[dir=rtl] input[type="date"],[dir=rtl] input[type="number"]{direction:ltr}
@media(max-width:680px){.bar{flex-wrap:wrap}.language-picker{justify-content:flex-start}}

/* Batch image selection and study-tool results. */
.resize-drop{display:grid;gap:7px;border:2px dashed #a0aebd;border-radius:12px;background:#eff2f5;padding:14px}
.resize-drop.is-dragging{border-color:#1f3247;background:#dde4eb}
.resize-files-list,.resize-results{margin:0;padding:0;list-style:none}
.resize-files-list li,.resize-results li{overflow-wrap:anywhere}
.resize-results li{display:grid;grid-template-columns:70px 1fr;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.resize-results img{width:70px;height:58px;object-fit:contain;background:#edf0f4;border-radius:6px}
.resize-results .cta{grid-column:2;justify-self:start;margin:0}
.study-output{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#eceff3;border-radius:8px;margin-top:12px}
.study-output:empty,.study-output:empty+.study-copy{display:none}
.study-copy{margin-top:10px}

/* Section-specific footer and searchable tool catalog. */
.site-footer{background:#13202d;color:#eff2f5;margin-top:18px}
.site-footer .footer-columns{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:22px;padding:30px 0 22px}
.site-footer h2{font-size:1rem;margin-bottom:9px}
.site-footer a{color:#e3e8ee;text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:6px 0}
.site-footer .footer-bottom{padding:13px 0 18px;border-top:1px solid #32475d;color:#c7d2dd;font-size:.86rem}
.site-footer .brand img{display:block}
.catalog-search{display:block;max-width:460px;margin-top:12px}
.catalog-search input{margin-top:4px}
.catalog-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.catalog-links a{font-weight:700}
#pdf-edit-list{margin:0;padding-left:20px}
#pdf-edit-list li{margin-bottom:7px}
#pdf-edit-list button{margin-left:5px}
@media(max-width:660px){.site-footer .footer-columns{grid-template-columns:1fr 1fr}.site-footer .footer-brand{grid-column:1/-1}}

#signature-canvas{display:block;width:100%;height:auto;background:white;border:1px solid var(--line);border-radius:8px;touch-action:none}

/* Founder profile and professional background. */
.founder-feature{margin:10px 0 28px;padding:clamp(18px,4vw,42px);border:1px solid #bec7d1;border-radius:22px;background:linear-gradient(135deg,#e6ebf0,#ffffff 72%);box-shadow:0 13px 30px #1f324712;grid-template-columns:minmax(0,310px) minmax(0,1fr);gap:clamp(20px,5vw,62px)}
.founder-feature .founder-photo{width:100%;max-width:310px;border:5px solid #ffffff;border-radius:18px;box-shadow:0 7px 0 -3px #7e91a6,0 12px 24px #1f324728}
.founder-feature .founder-photo img{object-position:center}
.founder-copy h2{font-size:clamp(2.05rem,4.4vw,3.5rem)}
.founder-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.founder-facts div{display:grid;gap:2px;padding:9px 12px;border-left:3px solid #32475d;background:#eaeef2;border-radius:4px 8px 8px 4px}
.founder-facts strong{color:#1f3247;font-size:1.18rem}
.founder-facts span{font-size:.85rem;color:var(--muted)}
.founder-background .card p{margin-top:0}
@media(max-width:720px){.founder-feature{grid-template-columns:1fr}.founder-feature .founder-photo{max-width:270px}}

/* Tool categories in the online tools navigation. */
.top .bar:has(.tool-header-nav){position:relative}
.tool-header-nav{gap:6px 12px}
.tool-header-nav>a,.tool-menu summary{display:inline-flex;align-items:center;min-height:42px;padding:5px 8px;font-size:.88rem;font-weight:700}
.tool-menu{margin:0;padding:0;border:0;background:transparent}
.tool-menu summary{cursor:pointer;list-style:none;gap:5px;border-radius:7px}
.tool-menu summary::-webkit-details-marker{display:none}
.tool-menu summary::after{content:"";width:6px;height:6px;border-inline-end:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(45deg);margin-top:-3px}
.tool-menu[open] summary,.tool-menu summary:hover{background:#eceff3;color:#1f3247}
.tool-menu[open] summary::after{transform:rotate(225deg);margin-top:3px}
.tool-menu-panel{position:absolute;z-index:7;inset-inline:0;top:100%;max-height:min(65vh,440px);overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 12px 26px #18283929;padding:12px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:6px}
.tool-menu-panel a{padding:8px 10px;border-radius:6px;line-height:1.35;color:var(--ink)}
.tool-menu-panel a:hover,.tool-menu-panel a:focus-visible{background:#eceff3;color:#1f3247}
@media(max-width:1040px){.top .bar:has(.tool-header-nav){flex-wrap:wrap;gap:5px 14px}.tool-header-nav{order:3;width:100%}}
@media(max-width:570px){.tool-header-nav{gap:2px 5px}.tool-header-nav>a,.tool-menu summary{min-height:38px;padding:3px 6px;font-size:.82rem}.tool-menu-panel{padding:8px}}

/* Visual walkthroughs highlight the control or result once when a step enters view. */
.visual-guide .guide-return { display: inline-block; margin-top: 1rem; }
.tool-card .tool-guide-link { display: inline-block; margin-inline-start: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .guide-in-view .guide-focus,
  .guide-in-view .guide-result {
    animation: guide-highlight 850ms ease-out;
  }
  @keyframes guide-highlight {
    35% { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(31, 50, 71, 0.28); }
    100% { transform: translateY(0); }
  }
}

/* Feedback sits beside the tool workflow without taking space until opened. */
.tool-feedback { margin-block: 1.5rem; padding: 1rem 1.25rem; border: 1px solid currentColor; border-radius: 0.75rem; }
.tool-feedback summary { cursor: pointer; font-weight: 700; }
.tool-feedback summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.tool-feedback .feedback-form { margin-block-start: 1rem; }
.tool-feedback .feedback-form p { margin: 0; }

/* Match the workspace to the task while keeping controls in a predictable order. */
.tool-workspace .utility-panel { min-inline-size: 0; align-self: start; }
.workspace-heading { font-size: clamp(1.25rem, 2.1vw, 1.65rem); margin: 0 0 1rem; }
.tool-workspace .utility-help h2:first-child { font-size: 1.2rem; }
.workspace-example { border-inline-start: 3px solid currentColor; padding-inline-start: .7rem; overflow-wrap: anywhere; }
.workspace-example span { display: block; white-space: pre-line; }
.workspace-citation .utility-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-citation .utility-form > :is(div, label:has([name="title"]), label:has([name="url"])) { grid-column: 1 / -1; }
.workspace-number .utility-form[data-tool="final-grade-calculator"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workspace-number .utility-form[data-tool="final-grade-calculator"] > div { grid-column: 1 / -1; }
.workspace-number .study-output, .workspace-timer .study-output { font-size: 1.3rem; font-weight: 700; }
.workspace-timer .study-output { font-size: clamp(2rem, 6vw, 4rem); font-variant-numeric: tabular-nums; text-align: center; }
.workspace-compare { grid-template-columns: minmax(0, 1fr); }
.workspace-compare .utility-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-compare .utility-form > div { grid-column: 1 / -1; }
.workspace-compare .study-output { font-family: ui-monospace, monospace; }
.workspace-file input[type="file"], .workspace-image input[type="file"] { border-style: dashed; padding: .85rem; }
.workspace-grammar .study-output { border-inline-start: 3px solid currentColor; }
.workspace-speech #media-text { min-block-size: 12rem; }
@media (max-width: 720px) {
  .tool-workspace .utility-help { order: 0; }
  .workspace-compare .utility-form, .workspace-citation .utility-form,
  .workspace-number .utility-form[data-tool="final-grade-calculator"] { grid-template-columns: minmax(0, 1fr); }
}

/* Extend the primary link to the whole card. Keep the guide separately clickable. */
.tool-card { position: relative; }
.tool-card-open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tool-card-open:focus-visible::after { outline: 2px solid currentColor; outline-offset: 3px; }
.tool-card .tool-guide-link { position: relative; z-index: 2; }
@media (hover: hover) {
  .tool-card:has(.tool-card-open:hover) { border-color: currentColor; }
}

/* The layered example shows what goes into each tool and what comes out. */
.tool-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.tool-intro-copy { min-inline-size: 0; }
@media (max-width: 780px) { .tool-intro { grid-template-columns: minmax(0, 1fr); } }

.feedback-inbox { padding-block-end: 3rem; }
.feedback-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; margin-block: 1.5rem; }
.feedback-filters .cta { margin: 0; }
.feedback-messages { display: grid; gap: 1rem; }
.feedback-messages .card :is(h2, p) { margin: 0; }
.feedback-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-pagination { display: flex; gap: 1rem; margin-block-start: 1.5rem; }
@media (max-width: 640px) { .feedback-filters { grid-template-columns: minmax(0, 1fr); } }

/* Keep tool controls, results and messages readable as their content grows. */
.tool-workspace .utility-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.tool-workspace .utility-panel > :is(.workspace-heading, .study-output, .utility-status, [role="status"]),
.tool-workspace .utility-form > .utility-status,
#number-words-result > :is(h3, .study-output) {
  margin: 0;
}
.tool-workspace :is(.utility-panel, .utility-help, .utility-form, .utility-fields, .utility-form label, .study-output) {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.tool-workspace :is(.utility-form, .utility-fields) > * { min-inline-size: 0; }
.tool-workspace .utility-form :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-inline-size: 0;
  max-inline-size: 100%;
}
.tool-workspace .utility-form > div:has(> button) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.tool-workspace :is(.utility-panel, .utility-form) > :is(.cta, .text-link),
#number-words-result > .text-link {
  justify-self: start;
}
.tool-workspace :is(.cta, .text-link) {
  max-inline-size: 100%;
  white-space: normal;
  text-align: start;
  line-height: 1.35;
}
.tool-workspace button.text-link {
  min-block-size: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--panel);
  font-weight: 650;
}
.tool-workspace button.text-link:hover { border-color: currentColor; }
.tool-workspace :is(.utility-form > .cta, .utility-form > div > .cta) { margin: 0; }
.tool-workspace .study-output {
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: anywhere;
}
#number-words-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}
.tool-workspace :is(.utility-panel, .utility-form) > [role="status"]:empty,
.tool-workspace :is(#pdf-render-results, #pdf-edit-list, #pdf-order):empty {
  display: none;
}
#pdf-render-results:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
#pdf-render-results .cta { margin: 0; }
.resize-results li { grid-template-columns: minmax(0, 70px) minmax(0, 1fr); }
#pdf-order li, #pdf-edit-list li { overflow-wrap: anywhere; }
#pdf-order li { flex-wrap: wrap; }
#pdf-order span { flex: 1 1 8rem; min-inline-size: 0; }
.tool-workspace .image-previews :is(figure, img) { min-inline-size: 0; max-inline-size: 100%; }
.guide-field, .guide-window b, .scene-caption span { min-inline-size: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .tool-workspace .utility-fields { grid-template-columns: minmax(0, 1fr); }
  .tool-workspace .utility-form > div:has(> button) { row-gap: .75rem; }
}

/* Merge PDF: first-page thumbnails and larger touch targets for reordering */
#pdf-edit-list li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;list-style-position:inside}
#pdf-edit-list .pdf-thumb{width:48px;height:auto;border:1px solid #d4e0ed;border-radius:4px;background:#ffffff;flex:none}
#pdf-edit-list .pdf-pages{color:#4a6078}
@media (pointer:coarse){#pdf-edit-list button{min-height:44px;min-width:44px;padding:8px 14px}}
#extra-result .ref-actions{display:inline-block;margin-left:8px;white-space:nowrap}
#extra-result .ref-action{font:inherit;font-size:.8em;padding:2px 8px;min-height:28px;border:1px solid #d4e0ed;border-radius:6px;background:#ffffff;cursor:pointer}
@media (pointer:coarse){#extra-result .ref-action{min-height:44px;padding:6px 14px}}
#pdf-edit-list .pdf-drag{cursor:grab;touch-action:none;user-select:none;font-size:1.3rem;line-height:1;padding:6px 8px;color:#4a6078}
#pdf-edit-list li.is-dragging{opacity:.55}
#pdf-edit-list li.is-drop{outline:2px solid #8a5410;outline-offset:2px;border-radius:6px}
@media (pointer:coarse){#pdf-edit-list .pdf-drag{padding:12px}}

/* Share this tool: sits under the tool result; the platforms open in a row below the button */
.share-tool{margin:18px 0 4px;padding-top:14px;border-top:1px solid #e3ebf4}
.share-tool-btn{display:inline-flex;align-items:center;gap:6px}
.share-tool-row{display:flex;flex-wrap:wrap;gap:8px 10px;margin-top:12px}
.share-tool-row[hidden]{display:none}
.share-pill{display:inline-flex;flex-direction:column;align-items:center;gap:5px;min-width:64px;padding:6px 4px;border:0;border-radius:10px;background:none;font:inherit;font-size:.78rem;font-weight:600;color:#0f1926;text-decoration:none;cursor:pointer}
.share-pill:hover,.share-pill:focus-visible{background:#f5f8fb;outline:2px solid transparent}
.share-pill:focus-visible{outline-color:#8a5410}
.share-dot{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:#ffffff;font-weight:800;font-size:1.05rem;line-height:1}
.share-dot svg{width:20px;height:20px;stroke:#ffffff}
html[data-theme=dark] .share-tool{border-top-color:#253d57}
html[data-theme=dark] .share-pill{color:#f0f4f9}
html[data-theme=dark] .share-pill:hover{background:#2a3d54}
.share-tool .share-pill{border:0;background:none;box-shadow:none;color:#0f1926;font-size:.78rem;font-weight:600;min-height:0;text-decoration:none}
.share-tool a.share-pill:hover,.share-tool a.share-pill:visited{color:#0f1926}
.share-tool .share-pill:hover,.share-tool .share-pill:focus-visible{background:#f5f8fb}
html[data-theme=dark] .share-tool .share-pill,html[data-theme=dark] .share-tool a.share-pill:visited{color:#f0f4f9}
html body .share-tool .share-pill{border:0 !important;background:transparent !important;box-shadow:none !important;color:#0f1926 !important;font-size:.78rem !important;font-weight:600 !important;min-height:0 !important;text-decoration:none !important;padding:6px 4px !important}
html body .share-tool .share-pill:hover,html body .share-tool .share-pill:focus-visible{background:#f5f8fb !important}
html[data-theme=dark] body .share-tool .share-pill{color:#f0f4f9 !important}
html[data-theme=dark] body .share-tool .share-pill:hover{background:#2a3d54 !important}
html body .share-tool .share-dot{color:#ffffff !important}

/* Phones: the header menu scrolls inside its own strip instead of widening the whole page */
@media (max-width:760px){.product-header .product-bar{min-width:0}.product-header .product-nav{min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}.product-header .product-nav::-webkit-scrollbar{display:none}}

/* Wide tables scroll inside themselves on phones */
@media (max-width:760px){html body main table{display:block;max-width:100%;overflow-x:auto}}

.pdf-merge-extras{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.5rem 0}
.pdf-merge-extras label{margin-left:.5rem}
.pdf-merge-extras input{min-width:0;flex:1 1 10rem}
/* Checkbox options sit beside their text instead of above it. */
.utility-form label.inline-check{display:flex;flex-direction:row;align-items:center;gap:.6rem;font-weight:500}
.utility-form label.inline-check input[type=checkbox]{width:auto;flex:none;margin:0}

/* Image Resizer: the Preview and print button sits in the result column, not squeezed into the thumbnail column. */
.resize-results .zy-pv-open{grid-column:2;justify-self:start;width:auto;white-space:nowrap;margin:0}
.resize-form .utility-fields,#resize-form .utility-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}

/* Shared file list (Merge PDF, JPG to PDF): one separated row per file */
.zy-file-list{list-style:none;margin:.5rem 0;padding:0;display:grid;gap:.5rem}
#pdf-edit-list.zy-file-list > li, #pdf-order.zy-file-list > li{display:grid;grid-template-columns:1.6rem auto 52px minmax(0,1fr) auto;align-items:center;gap:.6rem;margin:0;padding:.55rem .65rem;border:1px solid #d4e0ed;border-radius:10px;background:#ffffff;list-style:none;min-width:0}
.zy-file-n{font-weight:700;color:#4a6078;text-align:center}
.zy-file-drag{cursor:grab;touch-action:none;user-select:none;font-size:1.3rem;line-height:1;padding:6px 4px;color:#4a6078;width:1.4rem;text-align:center}
.zy-file-drag-off{cursor:default}
.zy-file-thumb{width:52px;height:68px;border:1px solid #d4e0ed;border-radius:5px;background:linear-gradient(110deg,#eff4f9 30%,#fafbfd 50%,#eff4f9 70%);background-size:200% 100%;animation:zy-shimmer 1.2s linear infinite;display:flex;align-items:center;justify-content:center;overflow:hidden}
.zy-file-thumb.is-ready{animation:none;background:#ffffff}
.zy-file-thumb.is-missing{animation:none;background:#f1f4f8}
.zy-file-thumb.is-missing::after{content:"No preview";font-size:.62rem;color:#6b8199;text-align:center;line-height:1.2}
.zy-file-thumb canvas,.zy-file-thumb img{max-width:100%;max-height:100%;width:auto;height:auto;display:block}
@keyframes zy-shimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.zy-file-thumb{animation:none}}
.zy-file-main{min-width:0;display:grid;gap:.15rem}
.zy-file-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.zy-file-meta{color:#4a6078}
.zy-file-meta.is-error{color:#a3361d}
.zy-file-actions{display:flex;gap:.35rem;flex-wrap:nowrap;align-items:center}
#pdf-edit-list .zy-file-btn,#pdf-order .zy-file-btn{margin:0;padding:.35rem .7rem;min-height:36px;white-space:nowrap;font:inherit;font-size:.9rem;border:1px solid #a9bcd1;border-radius:7px;background:#f2f6fa;color:inherit;cursor:pointer}
#pdf-edit-list .zy-file-btn:disabled,#pdf-order .zy-file-btn:disabled{opacity:.45;cursor:not-allowed}
#pdf-edit-list .zy-file-remove,#pdf-order .zy-file-remove{background:#ffffff;border-color:#d9a79c;color:#8a2c17}
@media (pointer:coarse){#pdf-edit-list .zy-file-btn,#pdf-order .zy-file-btn{min-height:44px;padding:.5rem .85rem}.zy-file-drag{padding:12px 4px}}
@media (max-width:640px){
  #pdf-edit-list.zy-file-list > li, #pdf-order.zy-file-list > li{grid-template-columns:1.4rem 52px minmax(0,1fr);row-gap:.4rem}
  .zy-file-drag{display:none}
  .zy-file-actions{grid-column:1 / -1;flex-wrap:wrap}
  .zy-file-actions .zy-file-btn{flex:1 1 auto}
}
.zy-file-list > li.is-dragging{opacity:.55}
.zy-file-list > li.is-drop{outline:2px solid #8a5410;outline-offset:2px}
.share-note{margin:.4rem 0 0;font-size:.9rem;color:#4a6078;flex-basis:100%}
.share-note.is-error{color:#a3361d}
.share-fallback{flex-basis:100%;margin:.4rem 0 0;font-size:.9rem}
.share-fallback input{width:100%;margin-top:.25rem}
.zy-pv-wrap{overscroll-behavior:contain}
.dropzone, .dropzone-files { min-width: 0; max-width: 100%; box-sizing: border-box; }
.dropzone-files li { min-width: 0; }

.ta-row{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center}.ta-btn[hidden]{display:none}


.tool-scene {
  --scene-accent: #1f3247;
  margin: 0;
  padding: clamp(.7rem, 2vw, 1.15rem);
  color: var(--scene-accent);
  background: #f6f8fa;
  border: 1px solid color-mix(in srgb, var(--scene-accent) 30%, white);
  border-radius: 1.35rem;
  box-shadow: 0 12px 32px #15233110;
}
.tool-scene .scene-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-block-size: 14rem;
  border-radius: .9rem;
  perspective: 670px;
  background:
    radial-gradient(ellipse at 28% 8%, #ffffff 0%, transparent 67%),
    color-mix(in srgb, var(--scene-accent) 14%, white);
}
.scene-stage::before {
  content: "";
  position: absolute;
  inset: 33% -30% -36%;
  background: repeating-linear-gradient(90deg, transparent 0 24px, currentColor 25px 26px),
              repeating-linear-gradient(0deg, transparent 0 24px, currentColor 25px 26px);
  transform: rotateX(58deg);
  opacity: .13;
}
.scene-prop {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  left: var(--scene-x);
  top: var(--scene-y);
  opacity: var(--scene-opacity);
  transform: translate(-50%, -50%) translateZ(18px) rotateX(9deg) rotateY(-9deg) rotateZ(var(--scene-r)) scale(var(--scene-s));
  inline-size: max-content;
  max-inline-size: 63%;
  min-inline-size: 2.2rem;
  padding: .48rem .72rem;
  border: 1px solid color-mix(in srgb, var(--scene-accent) 33%, white);
  border-radius: .55rem;
  background: #ffffff;
  box-shadow: 0 .28rem 0 color-mix(in srgb, var(--scene-accent) 42%, white), 0 .65rem 1rem #14223026;
  font-size: clamp(.72rem, 1.2vw, .97rem);
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.scene-prop:is(.badge,.tray,.total,.back,.flash-back,.proof,.reference,.citation,.tab,.word,.progress,.counter,.transcript,.bubble,.delta,.flag,.meter,.jpg,.hijri,.booklet) {
  background: var(--scene-accent); color: #ffffff; box-shadow: 0 .28rem 0 #1b2d40, 0 .65rem 1rem #14223035;
}
.scene-prop:is(.document,.sheet,.report,.scan,.stack,.mini-stack,.webp,.jpg) {
  min-block-size: 4.15rem;
  padding-block-start: 1.15rem;
  background-image: repeating-linear-gradient(0deg, transparent 0 5px, #6a809825 5px 6px);
}
.scene-prop:is(.wide,.frame,.image,.polaroid,.pixel-grid) {
  min-block-size: 4.35rem;
  min-inline-size: 33%;
  align-items: end;
  background-image: radial-gradient(circle at 69% 28%, #e6ad55 0 8%, transparent 9%),
    linear-gradient(145deg, transparent 0 36%, #afbbc8 37% 61%, #dde4eb 62%);
}
.scene-prop.pixel-grid { background-image: conic-gradient(#dde7f1 25%, #ffffff 0 50%, #dde7f1 0 75%, #ffffff 0); background-size: 16px 16px; }
.scene-prop.polaroid { border: .32rem solid white; border-block-end-width: .7rem; }
.scene-prop:is(.seal,.noise,.dash,.comma,.letter,.token,.key,.tile) { min-inline-size: 1.9rem; }
.scene-prop:is(.key,.tile,.cube) { min-block-size: 2.5rem; }
.scene-prop:is(.clock,.dial,.hub) {
  aspect-ratio: 1;
  min-inline-size: 6.8rem;
  border: .35rem double var(--scene-accent);
  border-radius: 50%;
  background: radial-gradient(circle, white 55%, #e4e9ef 56% 68%, white 69%);
  font-variant-numeric: tabular-nums;
}
.scene-prop.clock { font-size: 1.45rem; }
.scene-prop.dial { min-inline-size: 5.5rem; }
.scene-prop.ink { border: .18rem solid currentColor; background: #fff9; letter-spacing: .15em; }
.scene-prop:is(.front,.back,.flash-front,.flash-back) { min-inline-size: 55%; min-block-size: 5.1rem; }
.scene-prop.ribbon { padding-inline: .45rem; border-radius: .25rem; }
.scene-prop.redline { text-decoration: underline wavy #ad334b; text-underline-offset: .25em; }
.scene-prop.diff-old { background: #fae3e3; }
.scene-prop.diff-new { background: #e4e9ee; }
.scene-prop.spine { border-inline-start: .55rem solid var(--scene-accent); min-block-size: 4rem; }
.scene-prop.signature { font-family: cursive; font-style: italic; }
.scene-prop.wave { min-block-size: 3.3rem; padding-block-start: 1.3rem; background-image: repeating-linear-gradient(90deg, transparent 0 5px, #a0b7d0 5px 7px); }
.scene-prop:is(.greg,.hijri) { border-block-start: .65rem solid color-mix(in srgb, var(--scene-accent) 70%, white); min-block-size: 4rem; }
.scene-prop.digits { font-size: 1.6rem; letter-spacing: .08em; }
.scene-prop:is(.step,.weight) { border-block-end: .25rem solid var(--scene-accent); }
.scene-prop.scanline { background-image: linear-gradient(transparent 45%, #94a3b4 46% 54%, transparent 55%); }
.scene-prop:is(.quote,.year,.date) { border-radius: 1rem .25rem; }
.scene-prop:is(.mic,.speaker) { border-radius: 1.2rem; min-block-size: 3.1rem; }
.scene-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding-block-start: .65rem;
  font-size: .84rem;
  line-height: 1.35;
}
.scene-replay {
  flex: none;
  padding: .38rem .65rem;
  border: 1px solid currentColor;
  border-radius: .5rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.scene-replay:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .scene-replay { display: none; } }
@media (max-width: 780px) { .tool-scene { inline-size: min(100%, 33rem); } }

/* The scenery supports the action shown by the moving props. */
.scene--turntable .scene-stage::after,
.scene--wheel .scene-stage::after,
.scene--clock .scene-stage::after {
  content: "";
  position: absolute;
  inset: 12% 23%;
  z-index: -1;
  border: 2px dashed currentColor;
  border-radius: 50%;
  opacity: .28;
  transform: rotateX(40deg);
}
.scene--stack .scene-stage::after,
.scene--vice .scene-stage::after {
  content: "";
  position: absolute;
  inset: 15% 19% 23%;
  z-index: -1;
  border: .55rem solid color-mix(in srgb, var(--scene-accent) 32%, white);
  border-block-width: 1rem;
  border-radius: .5rem;
  transform: translateZ(8px) rotateX(8deg);
}
.scene--goal .scene-stage::after {
  content: "";
  position: absolute;
  inset: 24% 13% 19%;
  z-index: -1;
  background: color-mix(in srgb, var(--scene-accent) 23%, white);
  clip-path: polygon(0 75%, 33% 75%, 33% 50%, 66% 50%, 66% 20%, 100% 20%, 100% 100%, 0 100%);
}
.scene--balance .scene-stage::after {
  content: "";
  position: absolute;
  inset: 48% 18% 21%;
  z-index: -1;
  background: color-mix(in srgb, var(--scene-accent) 32%, white);
  clip-path: polygon(0 0, 100% 18%, 100% 32%, 54% 23%, 57% 100%, 42% 100%, 47% 23%, 0 14%);
}
.scene--lines .scene-stage::before {
  inset: 13% 6% 14%;
  transform: none;
  background: repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 1.6rem);
}
.scene--shelf .scene-stage::after {
  content: "";
  position: absolute;
  inset: 60% 6% auto;
  block-size: .7rem;
  z-index: -1;
  background: color-mix(in srgb, var(--scene-accent) 38%, white);
  border-block-end: .2rem solid currentColor;
  transform: skewX(-16deg);
}
.scene--signature .pad {
  min-block-size: 4rem;
  background: linear-gradient(transparent 65%, #9cb1c7 66% 68%, transparent 69%), white;
}
.scene--mic .mic {
  border-block-end: .4rem double currentColor;
  background: repeating-linear-gradient(90deg, #ffffff 0 5px, #ebe1f9 6px 8px);
}
.scene--message .progress { min-inline-size: 43%; border-radius: 1rem; }
.scene--tokens .total { border-radius: 50%; min-block-size: 4rem; aspect-ratio: 1.5; }
.scene--format .webp { border-block-start: .45rem solid #d48824; }
.scene--format .jpg { border-block-start: .45rem solid #e9bd7a; }
.scene--digits .word { border-radius: 1rem .35rem 1rem .35rem; }

.scene-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-stage--mesh .scene-prop { display: none; }
.tool-scene .scene-stage--mesh { min-block-size: clamp(13.5rem, 23vw, 17rem); }


/* Shared site navigation and public status. */
.product-header { background: #ffffff; }
.product-header .product-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .7rem 1.7rem;
  align-items: center;
  padding-block: .8rem;
}
.product-header .brand { display: inline-flex; }
.product-header .brand img { width: clamp(7rem, 17vw, 9.4rem); height: auto; }
.product-nav { display: flex; flex-wrap: wrap; gap: .25rem; justify-self: center; min-width: 0; }
.product-nav a {
  display: inline-flex; align-items: center; min-block-size: 44px;
  padding: .35rem .82rem; border-radius: .55rem; color: #182738;
  font-weight: 700; text-decoration: none; line-height: 1.25; overflow-wrap: anywhere;
}
.product-nav a:hover { background: #eff2f5; }
.product-nav a[aria-current], .product-nav a[data-active] { background: #e1e7ed; color: #172636; box-shadow: inset 0 -2px #1f3247; }
.product-header .language-picker { justify-content: end; min-inline-size: 0; }
.product-header .language-status { flex-basis: 100%; max-inline-size: 18rem; text-align: end; }
.product-status-strip { background: #f6e8cf; border-block-start: 1px solid #ecd2a2; }
.product-status-strip .shell { display: flex; align-items: center; min-block-size: 2.05rem; }
.construction-label { display: inline-block; color: #4a3210; font-size: .85rem; font-weight: 750; line-height: 1.4; padding-block: .3rem; }
.product-header :focus-visible, .product-footer :focus-visible, .product-main :focus-visible {
  outline: 2px solid #1f3247; outline-offset: 4px;
}
.product-footer :focus-visible { outline-color: #b3bfcb; }
@media (max-width: 680px) {
  .product-header .product-bar { grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .65rem; }
  .product-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .product-nav a { padding-inline: .65rem; }
  .product-header .language-picker { grid-column: 2; grid-row: 1; max-inline-size: 10rem; }
  .product-header .language-picker select { max-inline-size: 8rem; }
}
@media (max-width: 370px) {
  .product-header .language-picker label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .product-nav a { padding-inline: .48rem; }
}
.product-footer .footer-columns { gap: 1.3rem; }
.product-footer .footer-columns a { overflow-wrap: anywhere; }

/* Landing page and catalog layouts. */
.product-home {
  display: grid; grid-template-columns: 1.25fr .8fr; gap: clamp(1.5rem, 6vw, 5rem);
  align-items: center; padding-block: clamp(2.25rem, 6vw, 5.25rem);
}
.product-home > *, .product-paths > *, .software-products > *, .catalog-group .grid > * { min-inline-size: 0; }
.product-home h1 { max-inline-size: 16ch; margin: 0; }
.product-home .lead { max-inline-size: 50ch; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block-start: 1.35rem; }
.product-actions .cta { margin: 0; }
.secondary-action {
  display: inline-flex; align-items: center; min-block-size: 44px; padding: .55rem .9rem;
  border: 1px solid #8b9cae; border-radius: .55rem; color: #1b2c3e; font-weight: 750; text-decoration: none;
}
.secondary-action:hover { background: #e1e7ed; }
.product-home-visual {
  position: relative; isolation: isolate; min-block-size: clamp(13rem, 27vw, 22rem);
  background: radial-gradient(ellipse at 26% 13%, #f4f6f8, #d2dbe4 64%, #bbc5cf);
  border: 1px solid #acb8c5; border-radius: 1.55rem; overflow: hidden; perspective: 720px;
}
.product-home-visual::before {
  content: ""; position: absolute; inset: 28% -30% -60%;
  background: repeating-linear-gradient(0deg, transparent 0 22px, #32475d38 23px 24px),
              repeating-linear-gradient(90deg, transparent 0 22px, #32475d38 23px 24px);
  transform: rotateX(58deg);
}
.product-visual-sheet, .product-visual-model { position: absolute; border-radius: .85rem; }
.product-visual-sheet {
  inset: 20% 45% 26% 14%; padding: 12% 6% 0;
  background: #ffffff; border: 1px solid #b5c0cc;
  transform: rotateX(12deg) rotateZ(-15deg);
  box-shadow: 0 .5rem #b1bcc8, 0 1.2rem 2rem #17263740;
}
.product-visual-sheet span { display: block; block-size: .22rem; margin-block: .65rem; background: #788ca2; border-radius: 1rem; }
.product-visual-sheet span:last-child { inline-size: 63%; }
.product-visual-model {
  inset: 32% 13% 24% 43%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; align-items: end; padding: 9%;
  background: #1e3247; transform: rotateX(12deg) rotateZ(12deg);
  box-shadow: 0 .6rem #131f2c, 0 1.3rem 2rem #17263750;
}
.product-visual-model i { background: #b5c0cb; block-size: 46%; box-shadow: 4px 4px #32475d; }
.product-visual-model i:nth-child(2) { block-size: 77%; }
.product-visual-model i:nth-child(3) { block-size: 60%; }
.product-paths, .software-products { display: grid; gap: 1rem; }
.product-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.software-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-path h2, .software-products h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin: 0; }
.product-path p, .software-products p { margin: 0; }
.software-products .status { align-self: start; }
.software-products .product-audience { font-size: .9rem; }
.software-related { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; padding-block: 1rem 2.5rem; }
.compact-intro { padding-block: clamp(1.5rem, 4vw, 3.25rem) 1rem; }
.compact-intro .lead { max-inline-size: 65ch; margin-block: .55rem 0; }
.catalog-controls { display: grid; gap: .75rem; padding-block: .8rem 1.35rem; }
.catalog-search { display: grid; gap: .35rem; max-inline-size: 32rem; font-weight: 700; }
.catalog-shortcuts { display: flex; flex-wrap: wrap; gap: .45rem; }
.catalog-shortcuts a {
  display: inline-flex; align-items: center; min-block-size: 40px; padding: .3rem .65rem;
  color: #1e3145; background: #eef1f4; border: 1px solid #b5c0cb; border-radius: .5rem;
  font-weight: 650; text-decoration: none; overflow-wrap: anywhere;
}
.catalog-group { padding-block: 1.15rem 1.8rem; }
.catalog-group h2 { margin-block: 0 .8rem; font-size: clamp(1.35rem, 3vw, 2rem); }
.catalog-group .tool-card-open { margin-block-start: auto; min-block-size: 40px; display: inline-flex; align-items: center; gap: .35rem; }
.catalog-group .tool-guide-link { margin: 0; }
.tool-return { display: flex; align-items: center; gap: .45rem; inline-size: fit-content; min-block-size: 44px; margin-block-start: .6rem; font-weight: 750; color: #1e3247; }
[dir="rtl"] .tool-return-icon { transform: scaleX(-1); }
.product-main .tool-intro { padding-block-start: .35rem; }
@media (max-width: 820px) { .software-products { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .product-home { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .product-home-visual { min-block-size: 10rem; }
  .product-paths { grid-template-columns: minmax(0, 1fr); }
  .product-main .tool-intro { gap: .8rem; padding-block-end: 1rem; }
  .product-main .tool-intro .scene-stage { min-block-size: 10.5rem; }
}

.product-header .brand:focus-visible { outline-color: #1f3247; }
.catalog-group .tool-card-open { padding-inline: .72rem; border: 1px solid #94a3b4; border-radius: .55rem; color: #1c2e42; background: #f2f5f7; }
.catalog-group .tool-card-open:hover { background: #e1e7ed; }

.category-directory h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.category-directory .tool-card-open { margin-block-start: auto; min-block-size: 44px; display: inline-flex; align-items: center; gap: .35rem; }
.tools-section-nav { gap: .15rem; }
.tools-section-nav a { padding-inline: .55rem; }
@media (max-width: 680px) { .tools-section-nav a { padding-inline: .48rem; } }

.catalog-group .tool-card h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.55rem); }

/* Unified site footer: brand + four link columns. */
.product-footer .footer-columns { grid-template-columns: 1.4fr repeat(4, 1fr); }
.product-footer .footer-tagline { margin: 10px 0 0; color: #c7d2dd; font-size: .9rem; line-height: 1.5; max-width: 26ch; }
@media (max-width: 900px) { .product-footer .footer-columns { grid-template-columns: repeat(2, 1fr); } .product-footer .footer-brand { grid-column: 1 / -1; } }

/* Legal pages. */
.legal-body { max-width: 72ch; padding-bottom: 40px; }
.legal-body h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal-body p, .legal-body li { line-height: 1.65; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: .95rem; }
.legal-body th, .legal-body td { border: 1px solid #cdd5df; padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-updated { color: #5b6660; font-size: .92rem; }

/* Transparent logo: no plaque, border or shadow behind the mark. */
.brand img, .product-header .brand img, .product-footer .brand img { border-radius: 0; box-shadow: none; outline: none; background: none; }
.product-header .brand img { width: 180px; height: auto; }
.product-footer .brand img { width: 150px; height: auto; }
.product-footer.footer-tools .footer-columns, .product-footer.footer-software .footer-columns { grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 900px) { .product-footer.footer-tools .footer-columns, .product-footer.footer-software .footer-columns { grid-template-columns: repeat(2, 1fr); } }

/* Owner site report (/admin/report). */
.site-report section { margin-block: 2rem; }
.site-report h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.report-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.report-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; background: var(--panel); }
.report-kpis strong { display: block; font-size: 1.7rem; line-height: 1.1; }
.report-kpis span { color: var(--muted); font-size: .9rem; }
.report-actions { padding-left: 1.2rem; display: grid; gap: .5rem; }
.report-tag { display: inline-block; font-size: .75rem; font-weight: 750; padding: .1rem .5rem; border-radius: 999px; border: 1px solid currentColor; margin-right: .3rem; }
.report-tag[data-level="Fix now"] { color: #a1260d; }
.report-tag[data-level="Security"] { color: #6b3fa0; }
.report-tag[data-level="Customer request"] { color: #8a5410; }
.report-tag[data-level="Improve"] { color: #8a5410; }
.report-tag[data-level="All clear"] { color: #1f3247; }
.report-table { overflow-x: auto; }
.report-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.report-table th, .report-table td { border-bottom: 1px solid var(--line); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.report-note { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.report-kpis small { display: block; color: var(--muted); font-size: .78rem; margin-top: .2rem; }
.report-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .report-split { grid-template-columns: 1fr; } }

.product-footer.footer-software .footer-columns { grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 900px) { .product-footer.footer-software .footer-columns { grid-template-columns: repeat(2, 1fr); } }

/* Tools home v4 */
.hero-tasks{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:1rem 0 0;font-size:var(--fs-sm);color:var(--muted)}
.hero-tasks span{font-weight:700}
.hero-tasks a{padding:.3rem .8rem;border:1px solid var(--line);border-radius:999px;background:var(--panel);font-weight:600;text-decoration:none}
.home-statsband{padding-block:var(--sp-4)}
.home-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--sp-3);margin:0;padding:1.2rem;list-style:none;border:1px solid var(--line);border-radius:18px;background:var(--panel);text-align:center}
.home-stats strong{display:block;font-family:var(--font-display);font-size:var(--fs-2xl);color:var(--accent)}
.home-stats span{color:var(--muted);font-size:var(--fs-sm);font-weight:600}
.home-directory{padding-block:var(--sp-5)}
.dir-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:var(--sp-4) var(--sp-5)}
.dir-grid h3{margin:0 0 .5rem;font-size:var(--fs-lg)}
.dir-grid ul{margin:0;padding:0;list-style:none;display:grid;gap:.35rem}
.dir-grid li a{font-size:var(--fs-sm);font-weight:500}
.home-guide{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-4);margin-block:var(--sp-5);padding:clamp(1.4rem,4vw,2.2rem);border:1px solid var(--line);border-radius:20px;background:var(--panel)}
.home-guide h2{margin:.2rem 0 .5rem}
.home-guide p{margin:0;max-width:44rem;color:var(--muted)}
@media(max-width:640px){.home-stats{grid-template-columns:repeat(2,1fr)}}

/* promise band */
.home-promise{padding:clamp(1.6rem,4vw,2.6rem);border-radius:22px;color:#eaf0f6;text-align:center;background:#0f1926;background-image:radial-gradient(ellipse 60% 90% at 85% 0%,#d9962f2e,transparent 70%),linear-gradient(#ffffff0a 1px,transparent 1px),linear-gradient(90deg,#ffffff0a 1px,transparent 1px);background-size:auto,40px 40px,40px 40px}
.home-promise .promise-line{margin:0 0 1.6rem;font-family:var(--font-display);font-size:clamp(1.5rem,3.6vw,2.4rem);line-height:1.15;font-weight:800;color:#ffffff}
.home-promise .promise-line span{color:#b0701d}
.home-promise ul{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-3);margin:0;padding:0;list-style:none;text-align:left}
.home-promise li{display:grid;gap:.25rem;padding:1.1rem 1.2rem;border:1px solid #ffffff1f;border-radius:16px;background:#ffffff0d}
.home-promise li strong{font-size:var(--fs-lg);color:#ffffff}
.home-promise li>span:last-child{color:#b9c9da;font-size:var(--fs-sm)}
.promise-ico{display:grid;place-items:center;width:42px;height:42px;margin-bottom:.4rem;border-radius:12px;background:#d9962f26;color:#d9962f}
.promise-ico svg{width:22px;height:22px}
@media(max-width:760px){.home-promise ul{grid-template-columns:1fr}}
.home-promise li{align-content:start}

/* compact FAQ */
.home-faq{max-width:1100px}
.home-faq .faq-cols{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem var(--sp-3);align-items:start}
.home-faq details{margin:0}
.home-faq details summary{padding:.7rem 1rem;font-size:var(--fs-sm)}
.home-faq details p{padding:0 1rem .8rem;margin:0;font-size:var(--fs-sm)}
@media(max-width:760px){.home-faq .faq-cols{grid-template-columns:1fr}}
.theme-home .home-faq details > summary{min-height:0;padding:.55rem 2.2rem .55rem 1rem;line-height:1.3}
.theme-home .home-faq details{margin-bottom:0;border-radius:12px}
.theme-home .home-faq.prose{max-width:1160px}

/* tool directory cards */
.dir-grid{grid-template-columns:repeat(5,1fr);gap:var(--sp-3);align-items:start}
.dir-card{padding:1.1rem 1rem 1rem;border:1px solid var(--line);border-top:4px solid var(--tile);border-radius:16px;background:var(--panel)}
.dir-card h3{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;margin:0 0 .7rem;padding-bottom:.6rem;border-bottom:1px solid var(--line);font-size:var(--fs-lg)}
.dir-card h3 a{color:var(--ink)!important;text-decoration:none!important}
.dir-card h3 span{font-family:var(--font);font-size:var(--fs-xs);font-weight:700;color:var(--tile)}
.dir-card ul{gap:0}
.dir-card li a{display:block;padding:.32rem .4rem;margin-inline:-.4rem;border-radius:8px;color:var(--ink)!important;text-decoration:none!important;font-size:var(--fs-sm);font-weight:500}
.dir-card li a:hover,.dir-card li a:focus-visible{background:color-mix(in srgb,var(--tile) 12%,var(--panel));color:var(--tile)!important}
@media(max-width:1100px){.dir-grid{grid-template-columns:repeat(auto-fit,minmax(13rem,1fr))}}

/* why + how */
.home-why,.home-how{padding-block:var(--sp-5)}
.home-why h2,.home-how h2{margin-bottom:var(--sp-4)}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-3)}
.why-grid article{padding:1.4rem;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.why-grid h3{margin:.2rem 0 .5rem;font-size:var(--fs-lg)}
.why-grid p{margin:0;color:var(--muted);font-size:var(--fs-sm)}
.why-ico{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:color-mix(in srgb,var(--accent) 14%,var(--panel));color:var(--accent)}
.why-ico svg{width:22px;height:22px}
.how-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-3);margin:0;padding:0;list-style:none}
.how-steps li{position:relative;padding:1.3rem 1.3rem 1.3rem 1.3rem;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.how-steps li>span{display:grid;place-items:center;width:34px;height:34px;margin-bottom:.6rem;border-radius:50%;background:var(--accent);color:#ffffff;font-weight:800}
.how-steps h3{margin:0 0 .3rem;font-size:var(--fs-lg)}
.how-steps p{margin:0;color:var(--muted);font-size:var(--fs-sm)}
.theme-home .home-about.prose{max-width:1160px}
@media(max-width:860px){.why-grid,.how-steps{grid-template-columns:1fr}}
.theme-home .home-about p{margin:0 0 .9rem;line-height:1.7}.theme-home .home-about h2{margin-bottom:.8rem}

.about-cols{display:grid;grid-template-columns:repeat(2,1fr);gap:.4rem var(--sp-5);margin:var(--sp-3) 0}
.about-cols h3{margin:1rem 0 .4rem}
.about-cols p{margin:0 0 .6rem}
.about-lead{font-size:var(--fs-lg)}
@media(max-width:860px){.about-cols{grid-template-columns:1fr}}

/* tools footer v2 */
.product-footer.footer-tools .footer-columns{grid-template-columns:1.7fr repeat(4,1fr)}
.product-footer.footer-tools .footer-slogan{margin:14px 0 0;font-family:var(--font-display);font-size:1.15rem;font-weight:800;line-height:1.2;color:#ffffff}
.product-footer.footer-tools .footer-tagline{margin-top:8px;color:#b9c9da}
.product-footer.footer-tools .footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.4rem 1rem}
@media(max-width:900px){.product-footer.footer-tools .footer-columns{grid-template-columns:repeat(2,1fr)}.product-footer.footer-tools .footer-brand{grid-column:1/-1}}

.product-footer.footer-software .footer-slogan{margin:14px 0 0;font-family:var(--font-display);font-size:1.15rem;font-weight:800;line-height:1.2;color:#ffffff}
.product-footer.footer-software .footer-tagline{margin-top:8px}

.product-footer .footer-also{margin:12px 0 0;font-size:.88rem;color:#b9c9da}
.product-footer .footer-also a{color:#ffffff;font-weight:700;text-decoration:none;border-bottom:1px solid #ffffff55}
.product-footer .footer-also a:hover{border-bottom-color:#b0701d;color:#b0701d}
.product-footer .footer-also a{border-bottom:0;text-decoration:underline;text-decoration-color:#ffffff55;text-underline-offset:3px}
.product-footer .footer-also a:hover{text-decoration-color:#b0701d}

/*
 * Zysnor section themes.
 * theme-tools    : bright "workbench" look for the free browser tools.
 * theme-software : dark "blueprint" look for CAD, BIM and Windows software.
 * theme-home     : neutral gateway that introduces both sections.
 * Brand colours come from the logo: cyan stroke (#d9962f) and amber corners (#d48824).
 */

/* ---------- Shared brand tokens ---------- */
:root {
  --brand-amber-light: #d9962f;
  --brand-amber: #d48824;
  --brand-navy: #0f1926;
}
.product-header .brand img { width: 172px; height: auto; }

/* =========================================================
   TOOLS — bright workbench
   ========================================================= */
body.theme-tools, body.theme-home {
  --bg: #f8f9fa;
  --panel: #ffffff;
  --line: #e5e7eb;
  --ink: #1f2937;
  --muted: #4b5563;
  --cyan: #8a5410;
  --gold: #8a5410;
  color-scheme: light;
  background:
    radial-gradient(circle at 1px 1px, #e4e9ef 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--bg);
  color: var(--ink);
}
.theme-tools .product-header, .theme-home .product-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.theme-tools .product-nav a, .theme-home .product-nav a { color: var(--ink); }
.theme-tools .product-nav a:hover, .theme-home .product-nav a:hover { background: #fbf0dc; }
.theme-tools .product-nav a[aria-current], .theme-tools .product-nav a[data-active],
.theme-home .product-nav a[aria-current] {
  background: #f8e6c6; color: #172536; box-shadow: inset 0 -3px var(--brand-amber);
}
.theme-tools .cta, .theme-home .cta {
  background: var(--brand-amber); color: #172536; border-radius: 10px;
  box-shadow: 0 2px 0 #8f5a14;
}
.theme-tools .cta:hover, .theme-home .cta:hover { background: #b0701d; }
.theme-tools .cta:disabled { background: #ecd2a2; color: #172536; box-shadow: none; }
.theme-tools .label, .theme-home .label { color: var(--cyan); }
.theme-tools .card, .theme-home .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 0 #e4e9ef, 0 10px 24px -18px #17253640;
}
.theme-tools .card:hover { border-color: #e6ad55; }
.theme-tools main a:not(.cta):not(.secondary-action), .theme-home main a:not(.cta):not(.secondary-action) { color: var(--cyan); }
.theme-tools :focus-visible, .theme-home :focus-visible { outline-color: var(--cyan); }
.theme-tools .secondary-action, .theme-home .secondary-action { border-color: #c5ced9; color: var(--ink); background: #ffffff; }
.theme-tools .secondary-action:hover, .theme-home .secondary-action:hover { background: #fbf0dc; }
.theme-tools .utility-form, .theme-tools .tool-workspace, .theme-tools .utility-help {
  border-radius: 14px;
}
.theme-tools .utility-help, .theme-tools aside.prose {
  background: #f6f8fa; border-color: #d8e1ea;
}
.theme-tools input, .theme-tools select, .theme-tools textarea {
  border-radius: 9px; border-color: #cdd5df; background: #ffffff;
}
.theme-tools input:focus, .theme-tools select:focus, .theme-tools textarea:focus {
  outline: 2px solid var(--brand-amber-light); outline-offset: 1px;
}
.theme-tools .product-footer, .theme-home .product-footer { background: #172536; }
.theme-tools .product-footer .footer-bottom, .theme-home .product-footer .footer-bottom { border-color: #28415c; color: #b9c8d8; }
.theme-tools .product-footer a, .theme-home .product-footer a { color: #e9eff6; }
.theme-tools .product-footer .footer-tagline, .theme-home .product-footer .footer-tagline { color: #b9c8d8; }
.theme-tools .product-footer :focus-visible { outline-color: var(--brand-amber); }

/* =========================================================
   SOFTWARE — dark blueprint
   ========================================================= */
body.theme-software {
  --bg: #0f1926;
  --panel: #152230;
  --line: #27405a;
  --ink: #ebf1f7;
  --muted: #a7b9cc;
  --cyan: #e6ad55;
  --gold: #d48824;
  color-scheme: dark;
  color: var(--ink);
  background:
    linear-gradient(#ffffff08 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, #ffffff08 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(ellipse at 85% -10%, #20354c 0%, transparent 55%),
    var(--bg);
}
.theme-software h1, .theme-software h2, .theme-software h3, .theme-software strong, .theme-software dt { color: #0f1926; }
.theme-software p, .theme-software li, .theme-software dd, .theme-software .lead { color: var(--muted); }
.theme-software .product-header { background: rgba(11, 19, 27, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.theme-software .product-nav a { color: #dde7f1; }
.theme-software .product-nav a:hover { background: #1b2e44; }
.theme-software .product-nav a[aria-current] { background: #1e3047; color: #ffffff; box-shadow: inset 0 -3px var(--brand-amber-light); }
.theme-software .language-picker label { color: #c4d2e1; }
.theme-software .language-picker select { background: #15283c; color: #ebf1f7; border-color: #2f4a66; }
.theme-software .label {
  color: var(--brand-amber); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .14em;
}
.theme-software .cta {
  background: var(--brand-amber-light); color: #0f1926; border-radius: 6px; box-shadow: 0 0 0 1px #edc283 inset;
}
.theme-software .cta:hover { background: #edc283; }
.theme-software .secondary-action { border-color: #345579; color: #ebf1f7; background: transparent; }
.theme-software .secondary-action:hover { background: #1b2e44; }
.theme-software main a:not(.cta):not(.secondary-action) { color: var(--cyan); }
.theme-software .card, .theme-software details, .theme-software .software-card {
  background: linear-gradient(180deg, #172636, #13202d); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px -28px #000000;
}
.theme-software .card:hover { border-color: #3a6089; }
.theme-software .status-pill, .theme-software .product-status, .theme-software [class*="status"] {
  border-color: #6a4310;
}
.theme-software input, .theme-software select, .theme-software textarea {
  background: #111c28; color: var(--ink); border-color: #2f4a66; border-radius: 6px;
}
.theme-software :focus-visible { outline-color: var(--brand-amber-light); }
.theme-software hr, .theme-software .section { border-color: var(--line); }
.theme-software .product-footer { background: #0a1016; border-top: 1px solid var(--line); }
.theme-software .product-footer .footer-bottom { border-color: #1f3247; color: #8fa4ba; }
.theme-software .product-footer .footer-tagline { color: #8fa4ba; }
.theme-software .product-footer a { color: #dae5f0; }
.theme-software .chat-toggle { background: var(--brand-amber-light); color: #0f1926; }
.theme-software .assistant { background: #15283c; color: var(--ink); border-color: var(--line); }

/* =========================================================
   HOME — gateway split between Tools and Software
   ========================================================= */
.gateway { padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem); }
.gateway-intro { max-width: 52rem; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.gateway-intro h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.03; letter-spacing: -.04em; margin: .2rem 0 .9rem; max-width: 18ch; }
.gateway-intro .lead { max-width: 46ch; }
.gateway-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 1.6rem); }
.gateway-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .9rem;
  border-radius: 20px; padding: clamp(1.4rem, 3.4vw, 2.4rem); min-height: 25rem;
}
.gateway-panel h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.03em; margin: 0; }
.gateway-panel p { margin: 0; }
.gateway-panel ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.gateway-panel li { display: flex; gap: .6rem; align-items: baseline; }
.gateway-panel li::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 2px; background: var(--brand-amber); transform: translateY(-.05rem); }
.gateway-panel .gateway-actions { margin-top: auto; padding-top: .8rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.gateway-panel .cta { margin: 0; }
.gateway-kicker { font: 700 .76rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.gateway-tools { background: #ffffff; border: 1px solid var(--line); box-shadow: 0 24px 50px -38px #17253680; }
.gateway-tools .gateway-kicker { color: #8a5410; }
.gateway-tools p, .gateway-tools li { color: #4f5f70; }
.gateway-tools .chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.gateway-tools .chip-row a {
  border: 1px solid #dde3ea; border-radius: 999px; padding: .38rem .8rem; background: #fdf8ee;
  color: #172536 !important; text-decoration: none; font-weight: 650; font-size: .92rem; min-height: 0;
}
.gateway-tools .chip-row a:hover { background: #f8e6c6; border-color: #e6ad55; }
.gateway-software {
  color: #ebf1f7;
  background:
    linear-gradient(#ffffff0b 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, #ffffff0b 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(ellipse at 100% 0%, #263f59 0%, transparent 60%),
    #0f1926;
  border: 1px solid #27405a;
}
.gateway-software h2 { color: #f5f8fb; }
.gateway-software .gateway-kicker { color: var(--brand-amber); }
.gateway-software p, .gateway-software li { color: #a7b9cc; }
.gateway-software li::before { background: var(--brand-amber-light); }
.gateway-software .cta { background: var(--brand-amber-light); color: #0f1926; box-shadow: none; }
.gateway-software .cta:hover { background: #edc283; }
.gateway-software .secondary-action { background: transparent; color: #ebf1f7; border-color: #345579; }
.gateway-software .secondary-action:hover { background: #1b2e44; }
.gateway-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.gateway-trust div { border-top: 2px solid var(--brand-amber); padding-top: .7rem; }
.gateway-trust strong { display: block; color: var(--ink); }
.gateway-trust span { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) {
  .gateway-split, .gateway-trust { grid-template-columns: 1fr; }
  .gateway-panel { min-height: 0; }
}

/* =========================================================
   ABOUT — software section
   ========================================================= */
.about2 { padding-bottom: 2.5rem; }
.about2-hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr); gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(2.2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.about2-hero h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.04; letter-spacing: -.04em; max-width: 17ch; margin: .35rem 0 1rem; }
.about2-hero .lead { max-width: 52ch; font-size: 1.12rem; }
.about2-portrait { margin: 0; justify-self: end; max-width: 330px; width: 100%; }
.about2-portrait .frame {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid #2f4a66;
  box-shadow: 0 30px 60px -35px #000000, 0 0 0 6px #15283c;
}
.about2-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.about2-portrait figcaption { margin-top: .9rem; display: grid; gap: .1rem; }
.about2-portrait figcaption strong { font-size: 1.05rem; }
.about2-portrait figcaption span { color: var(--muted); font-size: .92rem; }
.about2-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px;
  background: #131f2b; margin: 0 0 clamp(2rem, 5vw, 3.2rem);
}
.about2-facts div { padding: 1.1rem 1.25rem; border-inline-start: 1px solid var(--line); }
.about2-facts div:first-child { border-inline-start: 0; }
.about2-facts strong { display: block; font-size: clamp(1.35rem, 2.6vw, 1.9rem); letter-spacing: -.02em; color: #ffffff; }
.about2-facts span { color: var(--muted); font-size: .92rem; }
.about2-row {
  display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.4fr); gap: clamp(1.2rem, 5vw, 4rem);
  padding-block: clamp(1.6rem, 4vw, 2.6rem); border-top: 1px solid var(--line); scroll-margin-top: 90px;
}
.about2-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; margin: .3rem 0 0; }
.about2-row p + p { margin-top: .8rem; }
.about2-row .cta { margin-top: 1.2rem; }
.about2-career { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.about2-career li {
  border: 1px solid #2f4a66; border-radius: 6px; padding: .3rem .65rem; font-size: .88rem; color: #d1deec;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.about2-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: .2rem; }
.about2-principles article { padding: 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: #15283c; }
.about2-principles .num { font: 700 .8rem ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--brand-amber); letter-spacing: .1em; }
.about2-principles h3 { font-size: 1.12rem; margin: .45rem 0 .35rem; }
.about2-products { display: grid; gap: .75rem; }
.about2-products a.product-line {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 10px; background: #15283c;
  text-decoration: none; color: inherit !important; min-height: 0;
}
.about2-products a.product-line:hover { border-color: #3a6089; background: #172637; }
.about2-products .platform { font: 700 .74rem ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .1em; color: var(--brand-amber-light); text-transform: uppercase; min-width: 6.5rem; }
.about2-products strong { display: block; font-size: 1.05rem; }
.about2-products span.desc { display: block; color: var(--muted); font-size: .94rem; margin-top: .15rem; }
.about2-products .state { font-size: .8rem; font-weight: 700; color: #e6ad55; border: 1px solid #6a4310; border-radius: 999px; padding: .2rem .6rem; white-space: nowrap; }
.about2-name {
  display: flex; gap: 1rem; align-items: center; margin-top: 1.2rem; padding: 1rem 1.15rem;
  border: 1px dashed #35567a; border-radius: 10px;
}
.about2-name .squares { display: grid; grid-template-columns: repeat(2, 12px); gap: 5px; flex: none; }
.about2-name .squares i { width: 12px; height: 12px; border-radius: 2px; background: var(--brand-amber); }
.about2-cta {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  margin-top: clamp(1.5rem, 4vw, 2.5rem); padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid #2f4a66; border-radius: 12px; background: linear-gradient(120deg, #1c2f42, #15283c);
}
.about2-cta h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0 0 .3rem; }
.about2-cta p { margin: 0; }
.about2-cta .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.about2-cta .cta { margin: 0; }
@media (max-width: 820px) {
  .about2-hero, .about2-row { grid-template-columns: 1fr; }
  .about2-portrait { justify-self: start; max-width: 260px; }
  .about2-facts { grid-template-columns: repeat(2, 1fr); }
  .about2-facts div:nth-child(3) { border-inline-start: 0; }
  .about2-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about2-principles { grid-template-columns: 1fr; }
  .about2-products a.product-line { grid-template-columns: 1fr; gap: .35rem; }
  .about2-products .state { justify-self: start; }
}

/* ---------- Tools: replace leftover green accents ---------- */
.theme-tools .guide-number, .theme-tools .guide-action { background: var(--brand-amber); color: #172536; }
.theme-tools .guide-window { background: #f4f7fa; border-color: #e1e8ef; }
.theme-tools .guide-window span { background: var(--brand-amber-light); }
.theme-tools .guide-result, .theme-tools .art-calendar-grid i { background: #e8eef5; color: #6a4310; }
.theme-tools input[type=file]::file-selector-button { background: #f8e6c6; color: #172536; border: 1px solid #e6ad55; }
.theme-tools .resize-drop.is-dragging { border-color: var(--brand-amber-light); background: #e8eef5; }
.theme-tools .study-output, .theme-tools .utility-status:not(:empty) { background: #f6f8fa; border: 1px solid #d8e1ea; }
.theme-tools .tool-feedback { border: 1px solid var(--line); background: #ffffff; color: var(--ink); }
.theme-tools .catalog-group .tool-card-open:hover, .theme-tools .tool-menu[open] summary,
.theme-tools .tool-menu summary:hover, .theme-tools .tool-menu-panel a:hover { background: #f8e6c6; color: var(--ink); }
.theme-tools .tool-card .icon { background: #e8eef5; color: #6a4310; }
.theme-tools .shortcut-links a { border-color: #dde3ea; color: var(--ink); }
.theme-tools .chat-toggle { background: var(--brand-amber); color: #172536; }

/* ---------- Software: leftover light surfaces ---------- */
.theme-software .guide-window, .theme-software .study-output { background: #15283c; border-color: var(--line); color: var(--ink); }
.theme-software input[type=file]::file-selector-button { background: #1e3047; color: #ebf1f7; }
.theme-software summary { color: var(--ink); }

/*
 * Zysnor design system. Loaded last on every page, so it sets the final
 * type scale, spacing, controls and colour tokens for both sections.
 * Light and dark mode: follows the system setting unless the visitor picks
 * one with the theme button (stored as data-theme on <html>).
 */

/* ---------- Scale ---------- */
:root {
  --fs-xs: .8125rem;     /* 13px: captions, badges */
  --fs-sm: .875rem;      /* 14px: secondary text */
  --fs-base: .9375rem;   /* 15px: body */
  --fs-lg: 1.0625rem;    /* 17px: lead */
  --fs-xl: 1.1875rem;    /* 19px: h3 */
  --fs-2xl: clamp(1.25rem, 1.05rem + .8vw, 1.55rem);    /* h2: 22-28px */
  --fs-3xl: clamp(1.55rem, 1.2rem + 1.2vw, 2.1rem);  /* page h1: 28-40px */
  --fs-display: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem); /* landing h1: 34-52px */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-7: 2.25rem; --sp-8: 3rem;
  --radius-sm: 10px; --radius: 14px; --radius-lg: 20px;
  --tap: 48px;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Colour tokens: tools, home and legal pages ---------- */
body.theme-tools, body.theme-home {
  --bg: #f8f9fa; --panel: #ffffff; --panel-2: #f1f3f5; --line: #e5e7eb; --line-strong: #d1d5db;
  --ink: #1f2937; --muted: #4b5563; --accent: #8a5410; --accent-ink: #ffffff;
  --cta: #d48824; --cta-hover: #b0701d; --cta-ink: #172536; --cta-edge: #8f5a14;
  --ok-bg: #e5f5ec; --ok-ink: #135235; --err-bg: #fdecea; --err-ink: #8a1f17; --info-bg: #e8eef5; --info-ink: #172536;
  --drop: #fdf8ee; --drop-active: #f8e6c6; --shadow: 0 1px 2px #17253614, 0 8px 24px -16px #17253640;
  --cyan: var(--accent);
}
html[data-theme="dark"] body.theme-tools, html[data-theme="dark"] body.theme-home {
  --bg: #0f1926; --panel: #172536; --panel-2: #1e3047; --line: #2a3d54; --line-strong: #3a5069;
  --ink: #eaf0f6; --muted: #aab8c8; --accent: #e6ad55; --accent-ink: #0f1926;
  --cta: #d48824; --cta-hover: #b0701d; --cta-ink: #172536; --cta-edge: #8f5a14;
  --ok-bg: #12372a; --ok-ink: #a6ecc8; --err-bg: #3f1a17; --err-ink: #ffc2bc; --info-bg: #15283c; --info-ink: #f1d9ae;
  --drop: #1b2e44; --drop-active: #233a52; --shadow: 0 1px 2px #0006, 0 10px 28px -18px #000c;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.theme-tools, html:not([data-theme="light"]) body.theme-home {
    --bg: #0f1926; --panel: #172536; --panel-2: #1e3047; --line: #2a3d54; --line-strong: #3a5069;
    --ink: #eaf0f6; --muted: #aab8c8; --accent: #e6ad55; --accent-ink: #0f1926;
    --cta: #d48824; --cta-hover: #b0701d; --cta-ink: #172536; --cta-edge: #8f5a14;
    --ok-bg: #12372a; --ok-ink: #a6ecc8; --err-bg: #3f1a17; --err-ink: #ffc2bc; --info-bg: #15283c; --info-ink: #f1d9ae;
    --drop: #1b2e44; --drop-active: #233a52; --shadow: 0 1px 2px #0006, 0 10px 28px -18px #000c;
    color-scheme: dark;
  }
}
body.theme-software {
  --panel-2: #1b2e44; --line-strong: #2f4d6e; --accent: #e6ad55; --accent-ink: #0f1926;
  --cta: #d48824; --cta-hover: #b0701d; --cta-ink: #172536; --cta-edge: #8f5a14;
  --ok-bg: #12372a; --ok-ink: #a6ecc8; --err-bg: #3f1a17; --err-ink: #ffc2bc; --info-bg: #15283c; --info-ink: #f1d9ae;
  --drop: #172535; --drop-active: #20354c; --shadow: 0 1px 2px #0006, 0 12px 30px -18px #000c;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body.theme-tools, body.theme-home, body.theme-software {
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.theme-tools, body.theme-home { background: var(--bg); color: var(--ink); }
.theme-tools h1, .theme-tools h2, .theme-tools h3,
.theme-home h1, .theme-home h2, .theme-home h3,
.theme-software h1, .theme-software h2, .theme-software h3 {
  line-height: 1.18; letter-spacing: -.02em; font-weight: 750; text-wrap: balance;
}
body h1, body .page-intro h1, body .home-intro h1, body .product-home h1 {
  font-size: var(--fs-3xl); max-width: 24ch; margin: 0 0 var(--sp-3);
}
body.theme-home .gateway h1, body .home-intro h1, body .product-home h1, body.theme-software .software-hero h1 {
  font-size: var(--fs-display);
}
body h2, body .founder-copy h2 { font-size: var(--fs-2xl); }
body h3, body .tool-card h3 { font-size: var(--fs-xl); }
body p, body li, body dd { font-size: inherit; }
body .lead { font-size: var(--fs-lg); line-height: 1.55; max-width: 60ch; color: var(--muted); }
body .label, body .gateway-kicker, body .guide-number { font-size: var(--fs-xs); letter-spacing: .08em; }
body small, body .language-status, body figcaption, body .scene-caption { font-size: var(--fs-xs); }
body .guide-window b, body .guide-field b, body .guide-field, body .guide-action, body .guide-result, body .guide-window { font-size: var(--fs-xs); }
.theme-tools p, .theme-home p { text-wrap: pretty; }

/* Readable links */
.theme-tools main a:not(.cta):not(.secondary-action):not(.chip):not(.tool-tile),
.theme-home main a:not(.cta):not(.secondary-action):not(.chip):not(.tool-tile) {
  color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px;
}

/* ---------- Focus ---------- */
body :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
body .cta, body button.cta, body a.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--tap); padding: .7rem 1.35rem; border: 0; border-radius: var(--radius-sm);
  background: var(--cta); color: var(--cta-ink); box-shadow: 0 2px 0 var(--cta-edge);
  font: 750 var(--fs-base)/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
body .cta:hover { background: var(--cta-hover); }
body .cta:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--cta-edge); }
body .cta:disabled, body .cta[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
body .secondary-action, body .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .6rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink); font: 700 var(--fs-sm)/1.2 var(--font); text-decoration: none; cursor: pointer;
}
body .secondary-action:hover, body .btn-ghost:hover { border-color: var(--accent); }
.theme-tools button:not(.cta):not(.btn-ghost):not(.icon-btn):not(.chip):not(.scene-replay),
.theme-tools .utility-form button:not(.cta) {
  min-height: 44px; padding: .5rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 650 var(--fs-sm)/1.2 var(--font); cursor: pointer;
}
.cta .ico, .btn-ghost .ico, .icon-btn .ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Forms ---------- */
.theme-tools label, .theme-home label { font-weight: 650; font-size: var(--fs-sm); color: var(--ink); }
.theme-tools input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),
.theme-tools select, .theme-tools textarea, .theme-home input:not([type=checkbox]):not([type=radio]), .theme-home select, .theme-home textarea {
  min-height: var(--tap); padding: .65rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink); font: 500 var(--fs-base)/1.4 var(--font); width: 100%; max-width: 100%;
}
.theme-tools textarea { min-height: 9rem; line-height: 1.55; resize: vertical; }
.theme-tools input[type=checkbox], .theme-tools input[type=radio] { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
.theme-tools input::placeholder, .theme-tools textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.theme-tools input:focus, .theme-tools select:focus, .theme-tools textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent); }

/* Status messages: one style for success, error and progress */
.theme-tools .utility-status:not(:empty), .theme-tools [role=status].study-status:not(:empty) {
  display: flex; align-items: flex-start; gap: .55rem; margin: var(--sp-3) 0 0; padding: .75rem .95rem;
  border-radius: var(--radius-sm); background: var(--info-bg); color: var(--info-ink); font-weight: 600; font-size: var(--fs-sm);
}
.theme-tools .utility-status[data-state=ok], .theme-tools .is-ok { background: var(--ok-bg) !important; color: var(--ok-ink) !important; }
.theme-tools .utility-status[data-state=error], .theme-tools .is-error { background: var(--err-bg) !important; color: var(--err-ink) !important; }
.theme-tools .utility-status[data-state=busy]::before {
  content: ""; width: 1rem; height: 1rem; margin-top: .15rem; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: zy-spin .8s linear infinite;
}
@keyframes zy-spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.theme-tools .product-header, .theme-home .product-header {
  background: color-mix(in srgb, var(--panel) 92%, transparent); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(1.4) blur(8px);
}
.product-header .product-bar { padding-block: .35rem; gap: .5rem 1.2rem; }
.product-header .product-nav a { min-height: 44px; padding: .3rem .7rem; font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.theme-tools .product-nav a, .theme-home .product-nav a { color: var(--ink); }
.theme-tools .product-nav a:hover, .theme-home .product-nav a:hover { background: var(--panel-2); }
.theme-tools .product-nav a[data-active], .theme-tools .product-nav a[aria-current], .theme-home .product-nav a[aria-current] {
  background: color-mix(in srgb, var(--cta) 22%, var(--panel)); color: var(--ink); box-shadow: inset 0 -3px var(--cta);
}
.header-tools { display: flex; align-items: center; gap: .35rem; justify-self: end; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--panel-2); border-color: var(--line); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-software .icon-btn { color: #dde7f1; }
.theme-software .icon-btn:hover { background: #1b2e44; border-color: #27405a; }
.install-btn[hidden] { display: none; }
.install-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .8rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 700 var(--fs-xs)/1 var(--font); cursor: pointer; }
.install-btn svg { width: 18px; height: 18px; }
.product-header .language-picker label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product-header .language-picker select { min-height: 40px; max-width: 9.5rem; padding: .35rem .6rem; font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.theme-tools .language-picker select, .theme-home .language-picker select { background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); }
html[data-theme="dark"] .theme-tools .product-header .brand img, html[data-theme="dark"] .theme-home .product-header .brand img { content: url("/brand/zysnor-logo-on-dark.svg?v=4"); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-tools .product-header .brand img, html:not([data-theme="light"]) .theme-home .product-header .brand img { content: url("/brand/zysnor-logo-on-dark.svg?v=4"); }
}
@media (max-width: 760px) {
  .product-header .product-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .product-header .product-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    justify-self: stretch; margin-inline: -4px; padding: 0 4px 2px; -webkit-mask-image: linear-gradient(90deg, #000000 88%, transparent); mask-image: linear-gradient(90deg, #000000 88%, transparent); }
  .product-header .product-nav::-webkit-scrollbar { display: none; }
  .product-header .product-nav a { white-space: nowrap; flex: none; }
  .product-header .language-picker { grid-column: auto; grid-row: auto; }
  .product-header .language-picker select { max-width: 7.2rem; }
  .product-header .brand img { width: 128px; }
  .install-btn .install-label { display: none; }
}

/* ---------- Layout ---------- */
.theme-tools .product-main, .theme-home .product-main { padding-block: var(--sp-5) var(--sp-8); }
.theme-tools .section, .theme-home .section { padding-block: var(--sp-6); }
.theme-tools .card, .theme-home .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink);
}
.theme-tools .card:hover { border-color: var(--line-strong); }
.theme-tools .utility-help, .theme-tools aside.prose { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); }
.theme-tools .prose p, .theme-tools .prose li, .theme-tools p { color: inherit; }
.theme-tools .lead, .theme-tools .muted { color: var(--muted); }

/* Breadcrumb that replaces the separate back link */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; margin: 0 0 var(--sp-2); padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; text-decoration: none !important; }
.crumbs a:hover { text-decoration: underline !important; }

/* ---------- Tool page ---------- */
.theme-tools .tool-intro { display: block; padding: var(--sp-2) 0 var(--sp-4); margin: 0; border: 0; min-height: 0; }
.theme-tools .tool-intro .lead { margin: 0; }
.theme-tools .tool-intro-copy { max-width: none; }
.tool-trust { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
.tool-trust li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); font-weight: 650; }
.tool-trust svg { width: 15px; height: 15px; color: var(--accent); }
.theme-tools .tool-workspace { padding-top: 0; gap: var(--sp-5); border: 0; }
.theme-tools .utility-panel { padding: clamp(1rem, 3vw, 1.75rem); border-radius: var(--radius-lg); }
.theme-tools .workspace-heading { font-size: var(--fs-xl); margin: 0 0 var(--sp-4); }
.theme-tools .utility-form { display: grid; gap: var(--sp-3); }
.theme-tools .utility-form > .cta { justify-self: start; min-width: 12rem; }
@media (max-width: 560px) { .theme-tools .utility-form > .cta, .theme-tools .utility-form > a.cta { width: 100%; justify-self: stretch; } }
.theme-tools .utility-help { border-radius: var(--radius-lg); padding: var(--sp-5); font-size: var(--fs-sm); }
.theme-tools .utility-help h2 { font-size: var(--fs-lg) !important; }
.theme-tools .utility-help ol { padding-inline-start: 1.2rem; }
.theme-tools .utility-help li { margin-bottom: .35rem; }
.workspace-example { border-inline-start: 3px solid var(--cta); padding-inline-start: .8rem; }

/* Drop zone added by zysnor-app.js to every file input */
.dropzone {
  position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center;
  padding: clamp(1.25rem, 4vw, 2.25rem) 1rem; border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--drop); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone.is-dragover { background: var(--drop-active); border-color: var(--cta); border-style: solid; transform: scale(1.01); }
.dropzone:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.dropzone > input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-icon { width: 44px; height: 44px; color: var(--accent); }
.dropzone-title { font-size: var(--fs-lg); font-weight: 750; }
.dropzone-hint { font-size: var(--fs-sm); color: var(--muted); }
.dropzone-btn { pointer-events: none; margin-top: .35rem; }
.dropzone-files { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.dropzone-files li { max-width: 100%; padding: .25rem .6rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone-error { margin: 0; padding: .6rem .85rem; border-radius: var(--radius-sm); background: var(--err-bg); color: var(--err-ink); font-weight: 650; font-size: var(--fs-sm); }
.dropzone-error[hidden] { display: none; }
label.dropzone-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Result actions added after a result appears */
.result-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--sp-3); }
.result-actions[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 150%);
  max-width: min(92vw, 28rem); padding: .75rem 1.1rem; border-radius: 999px; background: #172536; color: #ffffff; font-weight: 650; font-size: var(--fs-sm);
  box-shadow: 0 10px 30px #0005; transition: transform .25s var(--ease); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); }

/* Bookmark and install tip: small inline strip, never a pop-up */
.save-tip { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; margin: var(--sp-4) 0 0; padding: .6rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--muted); font-size: var(--fs-sm); }
.save-tip[hidden] { display: none; }
.save-tip svg { width: 18px; height: 18px; color: var(--cta-edge); flex: none; }
.save-tip kbd { padding: .05rem .4rem; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; font: 650 var(--fs-xs) var(--font); color: var(--ink); background: var(--panel-2); }
.save-tip .tip-close { margin-inline-start: auto; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0 !important; background: transparent !important; color: var(--muted) !important; font-size: 1.25rem; line-height: 1; }

/* Reserved ad space: sits below the tool, never above it */
.ad-slot { margin: var(--sp-5) auto; min-height: 0; text-align: center; }
.ad-slot[hidden] { display: none; }
.ad-slot.is-live { min-height: 280px; }
.ad-slot::before { content: "Advertisement"; display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: .25rem; }

/* Visual guide: animation sits below the tool */
.theme-tools .visual-guide { display: grid; gap: var(--sp-4); }
.theme-tools .visual-guide .tool-scene { margin: 0; max-width: 34rem; }
.guide-skip { justify-self: start; font-size: var(--fs-sm); }
.theme-tools .guide-step { background: var(--panel); border-color: var(--line); color: var(--ink); }
.theme-tools .guide-screen { background: var(--panel-2); border-color: var(--line); }
.theme-tools .guide-window { background: var(--panel-2); border-color: var(--line); color: var(--muted); }
.theme-tools .guide-field { background: var(--panel); border-color: var(--line-strong); color: var(--ink); }

/* FAQ */
.theme-tools details, .theme-home details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: .6rem; }
.theme-tools details > summary, .theme-home details > summary {
  display: flex; align-items: center; gap: .6rem; min-height: var(--tap); padding: .7rem 1rem; cursor: pointer; font-weight: 700; list-style: none;
}
.theme-tools details > summary::-webkit-details-marker { display: none; }
.theme-tools details > summary::after, .theme-home details > summary::after {
  content: ""; margin-inline-start: auto; width: .6rem; height: .6rem; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.theme-tools details[open] > summary::after, .theme-home details[open] > summary::after { transform: rotate(-135deg); }
.theme-tools details > :not(summary), .theme-home details > :not(summary) { padding: 0 1rem .9rem; margin: 0; }

/* Related and recent tools */
.tool-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.tool-tile { display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tool-tile:hover { border-color: var(--cta); transform: translateY(-2px); }
.tool-tile .tile-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--tile, var(--accent)) 16%, var(--panel)); color: var(--tile, var(--accent)); }
.tool-tile .tile-icon svg { width: 22px; height: 22px; }
.tool-tile strong { display: block; font-size: var(--fs-base); line-height: 1.25; }
.tool-tile span.tile-desc { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.35; margin-top: .15rem; }
.recent-tools[hidden] { display: none; }

/* Search */
.site-search { position: relative; max-width: 40rem; }
.site-search input[type=search] { padding-inline-start: 2.9rem !important; min-height: 56px !important; font-size: var(--fs-lg) !important; border-radius: 999px !important; box-shadow: var(--shadow); }
.site-search svg { position: absolute; left: 1rem; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-results { margin-top: var(--sp-3); }
.search-empty { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--ink); font: 650 var(--fs-sm)/1 var(--font); text-decoration: none; cursor: pointer; }
.chip:hover, .chip[aria-pressed=true] { border-color: var(--cta); background: color-mix(in srgb, var(--cta) 18%, var(--panel)); }
.chip svg { width: 18px; height: 18px; color: var(--tile, var(--accent)); }

/* Feedback panel */
.theme-tools .tool-feedback { margin-top: var(--sp-5); }

/* Footer */
.theme-tools .product-footer, .theme-home .product-footer { background: #111c27; color: #c7d3e0; }
.site-footer h2 { font-size: var(--fs-sm) !important; letter-spacing: .04em; }
.site-footer a { display: inline-flex; min-height: 36px; align-items: center; font-size: var(--fs-sm); }
.site-footer .footer-bottom { font-size: var(--fs-xs); }

/* Legal pages and long text */
.theme-tools .legal, .theme-home .legal, .legal { max-width: 72ch; }
.legal h2 { margin-top: var(--sp-6); }

/* Tap targets inside content */
.theme-tools main a.arrow, .theme-home main a.arrow { display: inline-flex; align-items: center; min-height: 44px; }
.theme-tools .contact-list a, .theme-home .legal a, .theme-tools .legal a { padding-block: .35rem; display: inline-block; }

/* ---------- Software section ---------- */
.theme-software .label, .theme-software .gateway-kicker { font-size: var(--fs-xs); }
.theme-software .software-products a, .theme-software main .arrow { min-height: 44px; display: inline-flex; align-items: center; }
.theme-software .chip { background: #15283c; color: #ebf1f7; border-color: #2f4a66; }
.theme-software button:not(.icon-btn):not(.cta):not(.chip) { min-height: 44px; font-size: var(--fs-sm); }
.theme-software details > summary { min-height: var(--tap); display: flex; align-items: center; }
.theme-software span, .theme-software button { font-size: max(var(--fs-xs), 1em); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Dark mode: fix hard-coded light surfaces in older styles ---------- */
html[data-theme="dark"] .theme-tools .tool-scene, html[data-theme="dark"] .theme-tools .scene-stage { filter: brightness(.92); }
html[data-theme="dark"] .theme-tools .icon, html[data-theme="dark"] .theme-tools .card .icon { background: var(--panel-2); color: var(--accent); }
html[data-theme="dark"] .theme-tools mark { background: #6a4310; color: #ffffff; }
html[data-theme="dark"] .theme-tools table, html[data-theme="dark"] .theme-tools th, html[data-theme="dark"] .theme-tools td { border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .theme-tools canvas.signature-pad, html[data-theme="dark"] .theme-tools .image-previews img { background: #ffffff; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-tools .tool-scene, html:not([data-theme="light"]) .theme-tools .scene-stage { filter: brightness(.92); }
  html:not([data-theme="light"]) .theme-tools .icon, html:not([data-theme="light"]) .theme-tools .card .icon { background: var(--panel-2); color: var(--accent); }
  html:not([data-theme="light"]) .theme-tools mark { background: #6a4310; color: #ffffff; }
  html:not([data-theme="light"]) .theme-tools table, html:not([data-theme="light"]) .theme-tools th, html:not([data-theme="light"]) .theme-tools td { border-color: var(--line); color: var(--ink); }
}

/* Utility */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Header tools group ---------- */
.product-header .header-tools .language-picker { display: flex; align-items: center; gap: .3rem; }
.product-header .header-tools .language-translate { font-size: var(--fs-xs); }

/* ---------- Tools hub ---------- */
.tools-hub .hub-intro { padding: var(--sp-5) 0 var(--sp-4); border: 0; }
.tools-hub .hub-intro h1 { font-size: var(--fs-display); }
.tools-hub .site-search { margin-top: var(--sp-5); }
.tool-group .group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: var(--sp-4); }
.tool-group h2 { display: flex; align-items: center; gap: .65rem; margin: 0; }
.tool-group h2 .tile-icon, .theme-tools .tool-card .tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: color-mix(in srgb, var(--tile) 16%, var(--panel)); color: var(--tile); }
.tool-group h2 .tile-icon svg, .theme-tools .tool-card .tile-icon svg { width: 22px; height: 22px; }
.tools-hub .tool-group { padding-block: var(--sp-5); border-top: 1px solid var(--line); }

/* Category pages: the whole card opens the tool */
.theme-tools .tool-card[data-catalog-tool] { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-content: start; padding: 1.1rem 1.2rem; }
.theme-tools .tool-card[data-catalog-tool] .tile-icon { grid-row: span 2; }
.theme-tools .tool-card[data-catalog-tool] h2 { font-size: var(--fs-lg); margin: 0; align-self: center; }
.theme-tools .tool-card[data-catalog-tool] p { grid-column: 2; margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.theme-tools .tool-card[data-catalog-tool] .tool-card-open { grid-column: 2; position: static; min-height: 44px; font-weight: 700; }
.theme-tools .tool-card[data-catalog-tool] .tool-card-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.theme-tools .tool-card[data-catalog-tool] .tool-guide-link { grid-column: 2; position: relative; z-index: 1; min-height: 44px; font-size: var(--fs-sm); }
.theme-tools .tool-card[data-catalog-tool]:hover { border-color: var(--cta); }
.theme-tools .catalog-controls { max-width: 40rem; }
.theme-tools .catalog-search { display: grid; gap: .35rem; }
.dropzone .dropzone-btn { justify-self: center; background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; font-size: var(--fs-sm); min-height: 44px; }
.dropzone:hover .dropzone-btn { border-color: var(--accent); }

@media (min-width: 1100px) {
  .theme-tools .visual-guide { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start; column-gap: var(--sp-6); }
  .theme-tools .visual-guide > h2, .theme-tools .visual-guide > .guide-skip, .theme-tools .visual-guide > .guide-return { grid-column: 1 / -1; }
  .theme-tools .visual-guide .tool-scene { position: sticky; top: 6rem; grid-column: 1; grid-row: 3 / span 4; }
  .theme-tools .visual-guide > :not(h2):not(.guide-skip):not(.guide-return):not(.tool-scene) { grid-column: 2; }
}
.theme-tools .guide-steps { display: grid; gap: var(--sp-3); margin: 0; padding: 0; }
.theme-tools .guide-step { padding: var(--sp-4); gap: var(--sp-4); }
.theme-tools .guide-step h3 { font-size: var(--fs-lg); margin: 0 0 .2rem; }
.theme-tools .guide-number { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--cta); color: var(--cta-ink); font-weight: 800; letter-spacing: 0; }
.theme-tools .tool-feedback { background: var(--panel); color: var(--ink); border-color: var(--line); }
.theme-tools .tool-feedback summary { color: var(--ink); }
body .tool-tile, body .tool-tile strong { color: var(--ink) !important; text-decoration: none !important; }
.theme-tools .tool-card[data-catalog-tool] .tool-card-open { justify-self: start; padding: 0; border: 0; background: none; box-shadow: none; color: var(--accent); }
.theme-tools .compact-intro { padding-top: var(--sp-2); }
/* Tap targets for links that sit outside running text */
.theme-tools .guide-skip, .theme-tools .guide-return, .theme-tools .utility-help a, .theme-tools .related-tools h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.theme-tools .scene-replay { min-height: 44px; min-width: 64px; padding: .4rem .9rem; font-size: var(--fs-sm); }
.theme-tools .related-tools .card { position: relative; }
.theme-tools .related-tools h3 a { color: var(--ink) !important; text-decoration: none !important; }
.theme-tools .related-tools h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.theme-tools .related-tools .card:hover { border-color: var(--cta); }
.theme-tools .related-tools .card p { color: var(--muted); font-size: var(--fs-sm); }

/* =========================================================
   Direction A · Workbench (approved 11 Nov 2026)
   Headings: Inter Display (self-hosted, OFL). Body: system UI font.
   ========================================================= */
@font-face { font-family: "Inter Display"; src: url("/fonts/InterDisplay-ExtraBold.woff2") format("woff2"), url("/fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/InterDisplay-Bold.woff2") format("woff2"), url("/fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
:root { --font-display: "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; }
body h1, body h2, body .dropzone-title, body .workspace-heading { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; }
body h3, body .tool-tile strong { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }

/* Micro-interactions */
body .cta { will-change: transform; }
@media (hover: hover) {
  body .cta:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--cta-edge), 0 10px 22px -12px var(--cta-edge); }
  .theme-tools .card, .tool-tile, .cat-tile, .product-card { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
  .theme-tools .related-tools .card:hover, .cat-tile:hover, .product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px #17253680; }
}
.dropzone.is-dragover .dropzone-icon { animation: zy-bob .7s var(--ease) infinite alternate; }
@keyframes zy-bob { to { transform: translateY(-6px); } }

/* Home */
.home-a { padding: 0; }
.eyebrow { display: inline-flex; align-self: flex-start; margin: 0; padding: .35rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--accent); font-weight: 700; font-size: var(--fs-xs); }
.eyebrow-dark { background: #233a52; color: #e6ad55; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; }
.hero-a { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.hero-a-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.hero-a-copy { display: flex; flex-direction: column; gap: var(--sp-4); }
.hero-a-copy h1 { font-size: var(--fs-display); max-width: 18ch; margin: 0; line-height: 1.08; }
.hero-a-copy .lead { margin: 0; }
.hero-search { display: flex; align-items: center; gap: .5rem; padding: .4rem .4rem .4rem 1rem; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow); max-width: 36rem; }
.hero-search .search-icon { position: static; transform: none; width: 22px; height: 22px; flex: none; color: var(--muted); }
.hero-search input[type=search] { border: 0 !important; box-shadow: none !important; min-height: 48px !important; padding: 0 .25rem !important; background: transparent !important; font-size: var(--fs-lg) !important; }
.hero-search input[type=search]:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.hero-search .cta { border-radius: 999px; min-height: 48px; flex: none; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent); }
.hero-art { position: relative; min-height: 360px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(160deg, var(--panel), var(--panel-2)); }
.hero-art .grip { position: absolute; width: 12px; height: 12px; border-radius: 2px; background: var(--cta); }
.hero-art .g1 { left: 20px; top: 20px; } .hero-art .g2 { right: 20px; bottom: 20px; }
.float-card { position: absolute; display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--panel); color: var(--ink); box-shadow: 0 18px 40px -20px #17253688; animation: zy-float 6s ease-in-out infinite alternate; }
.float-card strong { font-family: var(--font-display); font-size: 1rem; }
.fc-1 { left: 8%; top: 12%; width: 46%; transform: rotate(-6deg); }
.fc-2 { right: 7%; top: 9%; width: 44%; background: #0f1926; color: #ffffff; transform: rotate(5deg); animation-delay: -2s; }
.fc-3 { left: 26%; bottom: 9%; width: 54%; animation-delay: -4s; }
.fc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--tile) 18%, transparent); color: var(--tile); }
.fc-icon svg { width: 22px; height: 22px; }
.fc-line { display: block; height: 8px; border-radius: 4px; background: var(--panel-2); } .fc-line.short { width: 65%; }
.fc-note { font-size: var(--fs-xs); color: var(--muted); } .fc-2 .fc-note { color: #aab8c8; }
.fc-big { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--accent); }
@keyframes zy-float { from { translate: 0 0; } to { translate: 0 -8px; } }
.home-cats, .home-a .recent-tools { padding-block: var(--sp-5); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.cat-tile { display: flex; flex-direction: column; gap: .6rem; min-height: 9rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--ink) !important; text-decoration: none !important; box-shadow: var(--shadow); }
.cat-tile .tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--tile) 15%, var(--panel)); color: var(--tile); }
.cat-tile .tile-icon svg { width: 24px; height: 24px; }
.cat-tile strong { font-family: var(--font-display); font-size: var(--fs-lg); }
.cat-tile .tile-desc { color: var(--muted); font-size: var(--fs-sm); }
.home-software { margin-top: var(--sp-6); padding: clamp(2.5rem, 6vw, 4rem) 0; background: #0f1926 linear-gradient(#ffffff0a 1px, transparent 1px) 0 0 / 40px 40px; color: #eaf0f6;
  background-image: radial-gradient(ellipse 50% 70% at 90% 0%, #d9962f2e, transparent 70%), linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px; }
.home-software h2 { color: #ffffff; margin: .6rem 0 0; }
.home-software .group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: var(--sp-5); }
.btn-ghost.on-dark { background: transparent; color: #ffffff; border-color: #3a5069; }
.product-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.product-card { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.5rem; border-radius: 18px; background: #1b2e44; border: 1px solid #2a3d54; color: #aab8c8 !important; text-decoration: none !important; }
.product-card strong { font-family: var(--font-display); font-size: var(--fs-xl); color: #ffffff; }
.product-card .arrow-link { margin-top: auto; color: #e6ad55; font-weight: 700; }
.status-pill { align-self: flex-start; padding: .25rem .7rem; border-radius: 999px; background: #233a52; color: #e6ad55; font-size: var(--fs-xs); font-weight: 700; }
.home-founder { margin: var(--sp-5) 0 0; color: #aab8c8; }
.home-founder a { color: #e6ad55 !important; }
@media (max-width: 820px) {
  .hero-a-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 260px; order: 2; }
  .hero-search .cta { padding-inline: 1rem; }
}

/* Software section: Direction A with a soft glow */
body.theme-software { background:
  radial-gradient(ellipse 55% 40% at 85% -5%, #d9962f38, transparent 70%),
  linear-gradient(#ffffff08 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, #ffffff08 1px, transparent 1px) 0 0 / 40px 40px, #0f1926; }
.theme-software h1 { font-size: var(--fs-display); max-width: 20ch; }
.theme-software .card, .theme-software article { border-radius: 18px; }
.home-cats .group-head, .home-a .group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: var(--sp-4); }
.home-cats h2 { margin: 0; }
.cat-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }
body .btn-ghost.on-dark { color: #ffffff !important; text-decoration: none !important; }
body .btn-ghost.on-dark:hover { border-color: #e6ad55; }
@media (max-width: 560px) { .hero-art { display: none; } }

/* ---------- Software product pages ---------- */
.sw-page { padding-bottom: var(--sp-8); }
.sw-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; padding: clamp(2rem, 6vw, 4rem) 0 var(--sp-5); }
.sw-hero-centered { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sw-hero-centered .product-actions { justify-content: center; }
.sw-hero-copy { display: flex; flex-direction: column; gap: var(--sp-3); }
.sw-hero-copy h1 { margin: 0; line-height: 1.06; }
.sw-hero-copy .lead { margin: 0; color: var(--muted); max-width: 62ch; }
.sw-hero .label { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-size: var(--fs-xs); margin: 0; }
.sw-figure { margin: 0; padding: 14px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sw-figure figcaption { margin-top: .7rem; color: var(--muted); }
.sw-art { position: relative; height: clamp(220px, 26vw, 300px); border-radius: 14px; overflow: hidden; background: var(--panel-2) linear-gradient(color-mix(in srgb, var(--accent) 20%, transparent) 1px, transparent 1px) 0 0 / 24px 24px; }
.sw-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 20%, transparent) 1px, transparent 1px) 0 0 / 24px 24px; }
.art-room { position: absolute; left: 9%; top: 16%; width: 48%; height: 62%; border: 6px solid var(--accent); border-radius: 3px; box-shadow: 0 0 28px color-mix(in srgb, var(--cta-edge) 20%, transparent); }
.art-wall { position: absolute; left: 9%; top: 47%; width: 26%; height: 6px; background: var(--accent); }
.art-wall.blue { background: #ebc182; }
.art-tag { position: absolute; left: 60%; z-index: 1; padding: .4rem .65rem; border-radius: 8px; font: 600 var(--fs-xs) ui-monospace, Consolas, monospace; }
.art-tag.t1 { top: 22%; background: #d48824; color: #172536; } .art-tag.t2 { top: 48%; background: var(--cta-edge); color: #0f1926; }
.art-grip { position: absolute; width: 12px; height: 12px; background: #d48824; border-radius: 2px; z-index: 1; }
.art-grip.g1 { left: calc(9% - 6px); top: calc(16% - 6px); } .art-grip.g2 { left: calc(57% - 6px); top: calc(16% - 6px); }
.art-grip.g3 { left: calc(9% - 6px); top: calc(78% - 6px); } .art-grip.g4 { left: calc(57% - 6px); top: calc(78% - 6px); }
.art-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: #182738; border-top: 1px solid var(--line-strong); }
.art-buddy { position: absolute; left: 14%; bottom: 14%; width: 70px; height: 92px; border-radius: 34px 34px 22px 22px; background: linear-gradient(180deg, var(--cta-edge), #956318); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--cta-edge) 20%, transparent); animation: zy-float 3s ease-in-out infinite alternate; }
.art-buddy::before, .art-buddy::after { content: ""; position: absolute; top: 30px; width: 10px; height: 14px; border-radius: 6px; background: var(--panel-2); }
.art-buddy::before { left: 20px; } .art-buddy::after { right: 20px; }
.art-bubble { position: absolute; left: 32%; bottom: 52%; padding: .55rem .8rem; border-radius: 14px 14px 14px 2px; background: #ffffff; color: #172536; font-weight: 700; font-size: var(--fs-sm); z-index: 1; }
.art-note { position: absolute; right: 9%; top: 14%; width: 34%; padding: .8rem; border-radius: 6px; background: #e6ad55; color: #0f1926; font-weight: 700; font-size: var(--fs-sm); transform: rotate(3deg); z-index: 1; }
.sw-section { padding-block: var(--sp-5); border-top: 1px solid var(--line); }
.sw-section h2 { margin: 0 0 var(--sp-4); color: var(--ink); }
.sw-intro { margin: calc(-1 * var(--sp-2)) 0 var(--sp-4); color: var(--muted); }
.sw-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; max-width: 70ch; }
.sw-list li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.sw-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: #d48824; }
.sw-list strong { color: var(--ink); }
.sw-chips { display: flex; flex-wrap: wrap; gap: .6rem; max-width: none; }
.sw-chips li { padding: .6rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); }
.sw-chips li::before { display: none; }
.sw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.sw-steps li { display: flex; gap: .9rem; padding: 1.25rem; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.sw-step-no { flex: none; font: 600 var(--fs-sm) ui-monospace, Consolas, monospace; color: var(--accent); }
.sw-steps h3 { margin: 0 0 .35rem; color: var(--ink); font-size: var(--fs-lg); }
.sw-steps p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.sw-facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 860px; }
.sw-facts div { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 1rem; padding: .9rem 1.2rem; background: var(--panel); }
.sw-facts div + div { border-top: 1px solid var(--line); }
.sw-facts dt { color: var(--ink); font-weight: 700; margin: 0; }
.sw-facts dd { color: var(--ink); margin: 0; }
@media (max-width: 560px) { .sw-facts div { grid-template-columns: 1fr; gap: .2rem; } }
.sw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--sp-3); }
.sw-card { padding: 1.3rem; background: var(--panel); border: 1px solid var(--line); }
.sw-card h3 { margin: 0 0 .4rem; }
.sw-card p { margin: 0; }
.sw-faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: .6rem; padding: 0 1rem; }
.sw-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.sw-faq details p { margin: 0 0 1rem; color: var(--ink); }
@media (max-width: 860px) { .sw-hero { grid-template-columns: 1fr; } }

/* Inquiry form */
.inquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; max-width: 860px; padding: clamp(1rem, 3vw, 1.75rem); border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.inquiry-form .form-row { display: grid; gap: .35rem; }
.inquiry-form .form-wide { grid-column: 1 / -1; }
.inquiry-form label { color: var(--ink); font-weight: 650; }
.inquiry-form .optional, .inquiry-form .field-hint { color: var(--muted); font-weight: 400; font-size: var(--fs-sm); margin: 0; }
.inquiry-form input:not([type=checkbox]), .inquiry-form select, .inquiry-form textarea {
  min-height: 48px; padding: .65rem .85rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel-2); color: var(--ink); font: 500 var(--fs-base)/1.4 var(--font); width: 100%; }
.inquiry-form textarea { min-height: 9rem; }
.inquiry-form .form-check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.inquiry-form .form-check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--cta-edge); }
.inquiry-form .form-check label { font-weight: 500; color: var(--ink); }
.inquiry-form .form-check a { color: var(--accent); }
.inquiry-form .utility-status:not(:empty) { margin: .75rem 0 0; padding: .75rem .95rem; border-radius: 10px; background: var(--info-bg); color: var(--info-ink); font-weight: 600; }
.inquiry-form .utility-status[data-state=ok] { background: var(--ok-bg); color: var(--ok-ink); }
.inquiry-form .utility-status[data-state=error] { background: var(--err-bg); color: var(--err-ink); }
@media (max-width: 640px) { .inquiry-form { grid-template-columns: 1fr; } }

/* Policies */
.policy-updated { color: var(--muted, #a7b9cc); margin: 0; }
.legal .table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid #27405a; border-radius: 14px; }
.legal table { width: 100%; border-collapse: collapse; min-width: 640px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid #27405a; font-size: var(--fs-sm); }
.theme-software .legal th { color: #ffffff; background: #1b2e44; }
.theme-software .legal td { color: #c7d3e0; }
.theme-software .legal h2 { margin-top: var(--sp-6); }
.theme-software .legal code { color: #e6ad55; }

/* ===== Languages: switcher, suggestion, Urdu and Arabic type, right-to-left layout ===== */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 .7rem; border-radius: 999px;
  color: var(--ink); font: 700 var(--fs-sm)/1 var(--font); text-decoration: none; }
.lang-switch a[lang=ur] { font-family: var(--font-ur); font-size: var(--fs-base); }
.lang-switch a[lang=ar] { font-family: var(--font-ar); }
.lang-switch a:hover { background: var(--panel-2); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--panel); }
.lang-switch a:focus-visible { outline: 3px solid var(--focus, #d9962f); outline-offset: 2px; }
.theme-software .lang-switch { background: #15283c; border-color: #2f4a66; }
.theme-software .lang-switch a { color: #ebf1f7; }
.theme-software .lang-switch a[aria-current] { background: #ebf1f7; color: #0f1926; }

.lang-suggest { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; padding: .55rem max(16px, env(safe-area-inset-right, 0px)) .55rem max(16px, env(safe-area-inset-left, 0px));
  background: var(--panel-2); border-bottom: 1px solid var(--line); color: var(--ink); font-size: var(--fs-sm); }
.lang-suggest[lang=ur] { font-family: var(--font-ur); font-size: var(--fs-base); }
.lang-suggest[lang=ar] { font-family: var(--font-ar); }
.lang-suggest a { font-weight: 750; min-height: 44px; display: inline-flex; align-items: center; }
.lang-suggest button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font-size: 1.4rem; cursor: pointer; }

.translation-notice { padding: .8rem 1rem; border-inline-start: 4px solid #d48824; border-radius: 8px; background: #d488241a; font-size: var(--fs-sm); }
.translation-notice a { margin-inline-start: .35rem; font-weight: 700; }

:root {
  --font-ar: "Noto Naskh Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", "Arabic Typesetting", system-ui, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}
/* Arabic-script text needs a slightly larger size and taller lines to stay readable at the same scale. */
html[lang=ar] { font-size: 103%; }
html[lang=ur] { font-size: 104%; }
html[lang=ar] body, html[lang=ar] button, html[lang=ar] input, html[lang=ar] select, html[lang=ar] textarea { font-family: var(--font-ar); }
html[lang=ur] body, html[lang=ur] button, html[lang=ur] input, html[lang=ur] select, html[lang=ur] textarea { font-family: var(--font-ur); }
html[lang=ar] body { line-height: 1.8; }
html[lang=ur] body { line-height: 2; }
html[lang=ar] :is(h1, h2, h3, h4, .display, .hero-a h1) { font-family: var(--font-ar); line-height: 1.45; letter-spacing: 0; }
html[lang=ur] :is(h1, h2, h3, h4, .display, .hero-a h1) { font-family: var(--font-ur); line-height: 1.7; letter-spacing: 0; }
/* Letter spacing breaks the joins between Arabic letters. */
html[dir=rtl] * { letter-spacing: 0 !important; }
html[dir=rtl] :is(code, kbd, samp, pre, .ltr) { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, Consolas, monospace; }
/* Numbers, file names, e-mail addresses and URLs keep left-to-right order inside right-to-left text. */
html[dir=rtl] :is(input[type=number], input[type=email], input[type=url], input[type=date]) { direction: ltr; text-align: right; }
html[dir=rtl] bdi, html[dir=rtl] [dir=ltr] { unicode-bidi: isolate; }

/* Mirror direction-specific layout for right-to-left pages. */
html[dir=rtl] .site-search svg { left: auto; right: 1rem; }
html[dir=rtl] .sw-list li { padding-left: 0; padding-right: 1.6rem; }
html[dir=rtl] .sw-list li::before { left: auto; right: 0; }
html[dir=rtl] :is(.legal th, .legal td, .legal-body th, .legal-body td, .report-table th, .report-table td) { text-align: right; }
html[dir=rtl] .legal-body ul, html[dir=rtl] #pdf-edit-list { padding-left: 0; padding-right: 1.2rem; }
html[dir=rtl] #pdf-edit-list button { margin-left: 0; margin-right: 5px; }
html[dir=rtl] .guide-window b { margin-left: 0; margin-right: 5px; }
html[dir=rtl] input[type=file]::file-selector-button { margin-right: 0; margin-left: 8px; }
html[dir=rtl] .founder-facts div { border-left: 0; border-right: 3px solid #32475d; border-radius: 8px 4px 4px 8px; }
html[dir=rtl] .skip { left: auto; right: 8px; }
html[dir=rtl] :is(.chat-toggle, .assistant) { right: auto; left: 16px; }
html[dir=rtl] .report-tag { margin-right: 0; margin-left: .3rem; }
html[dir=rtl] .ico-dir, html[dir=rtl] .tool-return-icon { transform: scaleX(-1); }
html[dir=rtl] .art-bubble { border-radius: 14px 14px 2px 14px; }
html[lang=ar] { --font: var(--font-ar); --font-display: var(--font-ar); }
html[lang=ur] { --font: var(--font-ur); --font-display: var(--font-ur); }

/* Hijri converter: month name lists, with the current or converted month highlighted. */
.month-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: var(--sp-4, 1rem); margin-top: var(--sp-4, 1rem); }
.month-list h3 { margin: 0 0 .5rem; font-size: var(--fs-base); }
.month-list ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
#date-result { white-space: pre-line; }
.month-list li { display: grid; grid-template-columns: 1.6em 1fr; align-items: baseline; column-gap: .45rem; padding: .4rem .6rem; border-radius: 8px; color: var(--muted); font-size: var(--fs-sm); }
.month-list .month-num { font-variant-numeric: tabular-nums; font-weight: 700; }
.month-list .month-local { grid-column: 2; justify-self: start; font-family: var(--font-ar); }
.month-list li[aria-current] { opacity: 1; color: var(--ink); background: #d4882433; outline: 2px solid #d48824; font-weight: 750; }

/* ---------- Header dropdown (Tools, later Guides) ---------- */
.product-header .nav-drop { position: static; }
.product-header .nav-drop summary {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .9rem;
  border-radius: var(--radius-sm); font: 700 var(--fs-sm)/1 var(--font); color: var(--ink);
  cursor: pointer; list-style: none; user-select: none;
  background: color-mix(in srgb, var(--cta) 22%, var(--panel)); box-shadow: inset 0 -3px var(--cta);
}
.product-header .nav-drop summary::-webkit-details-marker { display: none; }
.product-header .nav-drop summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s;
}
.product-header .nav-drop[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.product-header .nav-drop summary:hover { background: color-mix(in srgb, var(--cta) 32%, var(--panel)); }
.product-header .nav-drop-panel {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: min(760px, calc(100vw - 32px)); padding: .6rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgb(23 37 54 / .16);
}
.product-header .nav-drop-panel a {
  display: grid; gap: .15rem; min-height: 0; padding: .7rem .85rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; box-shadow: none; background: transparent;
}
.product-header .nav-drop-panel a b { font-size: var(--fs-sm); }
.product-header .nav-drop-panel a small { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.product-header .nav-drop-panel a:hover, .product-header .nav-drop-panel a:focus-visible { background: var(--panel-2); }
.product-header .nav-drop-panel a[aria-current] { background: color-mix(in srgb, var(--cta) 18%, var(--panel)); box-shadow: inset 3px 0 var(--cta); }
.product-header .nav-drop-panel .nav-drop-all { grid-column: 1 / -1; border-bottom: 1px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
@media (max-width: 760px) {
  .product-header .product-nav:has(.nav-drop) { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .product-header .nav-drop-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); top: 100%; max-height: 70vh; overflow: auto; }
}
@media (max-width: 420px) {
  .product-header .nav-drop-panel { grid-template-columns: 1fr; }
}
.product-header details.nav-drop { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
@media (max-width: 760px) {
  .product-header .product-bar:has(.nav-drop) { grid-template-columns: minmax(0, 1fr) auto auto; }
  .product-header .product-nav:has(.nav-drop) { grid-column: auto; grid-row: auto; justify-self: end; margin: 0; padding: 0; }
  .product-header .nav-drop summary { padding-inline: .7rem; }
}
@media (max-width: 380px) { .product-header .brand img { width: 108px; } }
.home-popular { padding-block: 1rem 2rem; }
.home-popular .tool-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1000px) { .home-popular .tool-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .home-popular .tool-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  body .home-popular .tool-tile .tile-desc { display: none; }
  body .home-popular .tool-tile .tile-icon { width: 36px; height: 36px; flex: none; }
  .home-popular .tool-tile { padding: .8rem; gap: .6rem; align-items: center; }
  .home-popular .tool-tile strong { font-size: var(--fs-sm); line-height: 1.25; }
}

/* ---------- Zysnor voice bubble ---------- */
.zy-say { display: flex; gap: .75rem; align-items: flex-start; margin: .2rem 0 1rem; padding: .8rem .95rem;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.zy-say img { width: 36px; height: 36px; flex: none; border-radius: 10px; }
.zy-say p { margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink); }
.zy-say .zy-say-next:empty { display: none; }
.zy-say .zy-say-next { margin-top: .35rem; color: var(--muted); }
.zy-say .zy-say-next a { font-weight: 700; }
.zy-say[data-mood="busy"] img { animation: zy-bob 1s ease-in-out infinite; }
.zy-say[data-mood="done"] { border-color: color-mix(in srgb, #16a34a 45%, var(--line)); background: color-mix(in srgb, #16a34a 8%, var(--panel)); }
.zy-say[data-mood="oops"] { border-color: color-mix(in srgb, #dc2626 40%, var(--line)); background: color-mix(in srgb, #dc2626 6%, var(--panel)); }
@keyframes zy-bob { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .zy-say[data-mood="busy"] img { animation: none; } }

.quick-picks { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.chip-btn { min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--ink); font: 650 var(--fs-xs)/1 var(--font); cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); }
.theme-tools .quick-picks .chip-btn.chip-btn.chip-btn.chip-btn.chip-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--cta) 22%, var(--panel)); border-color: var(--cta-edge); }

/* ---------- Print preview (HP / Windows print dialog style) ---------- */
.zy-preview { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; box-shadow: 0 10px 30px rgb(23 37 54 / .08); }
.zy-pv-bar { display: flex; align-items: center; gap: .5rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
.zy-pv-title { margin: 0 auto 0 0; font: 700 var(--fs-sm)/1.3 var(--font); color: var(--ink); }
.zy-pv-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.zy-pv-left { display: grid; grid-template-rows: 1fr auto; background: color-mix(in srgb, var(--ink) 7%, var(--panel-2)); outline: none; }
.zy-pv-wrap { display: grid; place-items: center; padding: 1rem; min-height: 280px; }
.zy-pv-sheet { display: grid; place-items: center; box-sizing: border-box; background: #ffffff; box-shadow: 0 1px 2px rgb(0 0 0 / .15), 0 10px 26px rgb(23 37 54 / .2); overflow: hidden; transition: width .15s, height .15s; }
.zy-pv-sheet > canvas, .zy-pv-sheet > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.zy-pv-sheet[data-scale="fill"] > canvas, .zy-pv-sheet[data-scale="fill"] > img { object-fit: cover; }
.zy-pv-sheet.is-gray > canvas, .zy-pv-sheet.is-gray > img { filter: grayscale(1); }
.zy-pv-wait { color: #6b7280; font-size: var(--fs-xs); }
.zy-pv-navrow { display: flex; justify-content: center; align-items: center; gap: .6rem; padding: .5rem; }
.zy-pv-count { min-width: 7.5rem; text-align: center; font: 650 var(--fs-xs)/1 var(--font); color: var(--ink); }
.zy-pv-settings { display: grid; gap: .7rem; padding: .9rem; border-top: 1px solid var(--line); background: var(--panel); }
.zy-pv-field { display: grid; gap: .3rem; font: 650 var(--fs-xs)/1.2 var(--font); color: var(--muted); }
.theme-tools .zy-pv-settings select, .theme-tools .zy-pv-settings input { width: 100%; min-height: 40px; padding: .4rem .6rem; font: 500 var(--fs-sm)/1.2 var(--font); color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-sizing: border-box; }
.zy-pv-stepper { display: grid; grid-template-columns: 40px 1fr 40px; gap: .35rem; }
.theme-tools .zy-pv-stepper input { text-align: center; }
.zy-pv-range { margin-top: .35rem; }
.zy-pv-range[hidden] { display: none; }
.zy-pv-summary { margin: .2rem 0 0; font: 650 var(--fs-xs)/1.4 var(--font); color: var(--ink); }
.zy-pv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.zy-pv-actions .zy-pv-btn[hidden] { display: none; }
.zy-preview[data-mode="input"] .zy-pv-actions { grid-template-columns: 1fr; }
.theme-tools .zy-preview .zy-pv-btn.zy-pv-x.zy-pv-x.zy-pv-x.zy-pv-x.zy-pv-x { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; padding: .35rem .8rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 700 var(--fs-sm)/1 var(--font); text-decoration: none; cursor: pointer; }
.theme-tools .zy-preview button.zy-pv-btn.zy-pv-x.zy-pv-x.zy-pv-x.zy-pv-x.zy-pv-x:disabled { opacity: .4; cursor: default; }
.theme-tools .zy-preview button.zy-pv-print.zy-pv-x.zy-pv-x.zy-pv-x.zy-pv-x.zy-pv-x { background: var(--cta); border-color: var(--cta-edge); color: var(--cta-ink); min-height: 44px; }
.theme-tools .zy-preview .zy-pv-actions .zy-pv-btn.zy-pv-x.zy-pv-x.zy-pv-x.zy-pv-x.zy-pv-x { min-height: 44px; }
.zy-pv-open { margin-top: .5rem; width: 100%; }
/* Beside the tool on wide screens */
.tool-workspace.zy-has-viewer > .zy-preview { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: start; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.tool-workspace.zy-has-viewer > aside.utility-help { grid-column: 1; }
@media (max-width: 720px) {
  .tool-workspace.zy-has-viewer > .zy-preview { grid-column: auto; grid-row: auto; position: static; max-height: none; }
  .tool-workspace.zy-has-viewer > aside.utility-help { grid-column: auto; order: 5; }
}
/* Full screen: a real print dialog, preview left and settings right */
html.zy-pv-open { overflow: hidden; }
html.zy-pv-open body::after { content: ""; position: fixed; inset: 0; z-index: 90; background: rgb(10 17 24 / .6); }
.tool-workspace .zy-preview.is-full { position: fixed; inset: 3vh 3vw; z-index: 100; margin: 0; max-height: none; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 30px 80px rgb(0 0 0 / .45); }
.zy-preview.is-full .zy-pv-body { grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; }
.zy-preview.is-full .zy-pv-settings { border-top: 0; border-left: 1px solid var(--line); overflow: auto; align-content: start; }
@media (max-width: 760px) {
  .tool-workspace .zy-preview.is-full { inset: 0; border-radius: 0; overflow: auto; }
  .zy-preview.is-full .zy-pv-body { grid-template-columns: minmax(0, 1fr); }
  .zy-preview.is-full .zy-pv-settings { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Edit PDF (desktop-editor style) ---------- */
.edit-workspace.is-editing { grid-template-columns: minmax(0, 1fr); }
.edit-workspace.is-editing > aside.utility-help { order: 5; }
.edit-workspace .utility-panel, .edit-workspace .utility-panel:hover { border-color: var(--line); transition: none; }
.edit-workspace.is-editing .dropzone { min-height: 0; padding: .45rem .8rem; flex-direction: row; gap: .6rem; }
.edit-workspace.is-editing .dropzone-icon, .edit-workspace.is-editing .dropzone-hint { display: none; }
.edit-workspace.is-editing .dropzone-title { font-size: var(--fs-sm); }
.ep-toolbar { position: sticky; top: 72px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .45rem .6rem; margin: .4rem 0 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.ep-toolbar[hidden] { display: none; }
.ep-sep { width: 1px; height: 22px; background: var(--line); }
.ep-pageno { font: 650 var(--fs-xs)/1 var(--font); color: var(--ink); white-space: nowrap; }
.ep-tip { margin: 0 0 0 auto; font-size: var(--fs-xs); color: var(--muted); }
.theme-tools .ep-toolbar button.ep-mini.ep-mini.ep-mini.ep-mini.ep-mini, .theme-tools .ep-panel button.ep-mini.ep-mini.ep-mini.ep-mini.ep-mini {
  flex: none; min-height: 32px; padding: .2rem .65rem; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 700 var(--fs-xs)/1 var(--font); cursor: pointer; transform: none; box-shadow: none; }
.theme-tools .ep-panel button.ep-mini.ep-mini.ep-mini.ep-mini.ep-mini[aria-pressed="true"] { background: var(--cta); border-color: var(--cta-edge); color: var(--cta-ink); }
.theme-tools button.ep-mini.ep-mini.ep-mini.ep-mini.ep-mini:disabled { opacity: .45; cursor: default; }
.ep-shell { display: grid; grid-template-columns: 128px minmax(0, 1fr) 210px; margin: 0 0 1rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: color-mix(in srgb, var(--ink) 9%, var(--panel-2)); }
.ep-shell[hidden] { display: none; }
.ep-side { display: flex; flex-direction: column; gap: .7rem; padding: .7rem .7rem 1.6rem; max-height: 80vh; overflow: auto; background: var(--panel); border-right: 1px solid var(--line); }
.ep-thumb { position: relative; display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #ffffff; cursor: pointer; box-shadow: 0 1px 4px rgb(23 37 54 / .18); flex: none; contain: strict; }
.ep-thumb canvas { width: 100%; height: 100%; display: block; }
.ep-thumb span { position: absolute; left: 50%; bottom: -1.15rem; transform: translateX(-50%); font: 650 11px/1 var(--font); color: var(--muted); }
.ep-thumb.is-current { border-color: #d9962f; }
.ep-thumb + .ep-thumb { margin-top: .8rem; }
.ep-panel { padding: .7rem; max-height: 80vh; overflow: auto; background: var(--panel); border-left: 1px solid var(--line); }
.ep-ptitle { margin: .6rem 0 .3rem; font: 750 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ep-ptitle:first-child { margin-top: 0; }
.ep-list { display: grid; gap: 2px; }
.theme-tools .ep-panel button.ep-tool.ep-tool.ep-tool.ep-tool.ep-tool { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 34px; padding: .3rem .5rem; border: 0; border-radius: 6px;
  background: transparent; color: var(--ink); font: 600 var(--fs-xs)/1.2 var(--font); text-align: left; cursor: pointer; transform: none; box-shadow: none; }
.theme-tools .ep-panel button.ep-tool.ep-tool.ep-tool.ep-tool.ep-tool:hover { background: var(--panel-2); }
.theme-tools .ep-panel button.ep-tool.ep-tool.ep-tool.ep-tool.ep-tool[aria-pressed="true"] { background: rgb(217 150 47 / .12); color: #8a5410; box-shadow: inset 3px 0 #d9962f; }
.ep-tool svg { width: 18px; height: 18px; flex: none; }
.ep-format { display: grid; grid-template-columns: 1fr auto; gap: .45rem; align-items: center; }
.ep-format label { display: grid; gap: .2rem; font: 650 11px/1.2 var(--font); color: var(--muted); }
.ep-format .ep-wide { grid-column: 1 / -1; }
.theme-tools .ep-format select { width: 100%; min-height: 32px; font-size: var(--fs-xs); }
.ep-format input[type="color"] { width: 100%; height: 32px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); }
.ep-page.is-drop { outline: 3px dashed #d9962f; outline-offset: 4px; }
.ep-pages { display: grid; justify-items: center; gap: 1.6rem; padding: 1rem .75rem 2rem; max-height: 80vh; overflow: auto; contain: layout paint; }
.ep-page { position: relative; background: #ffffff; box-shadow: 0 2px 10px rgb(23 37 54 / .18); touch-action: none; user-select: none; contain: layout paint size; flex: none; }
.ep-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ep-runs, .ep-layer { position: absolute; inset: 0; }
.ep-ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ep-ink path { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: stroke; }
.ep-ink path.is-selected { filter: drop-shadow(0 0 2px #8a5410); }
.ep-layer { pointer-events: none; }
.ep-layer > * { pointer-events: auto; }
.ep-num { position: absolute; right: 4px; bottom: -1.3rem; font-size: 11px; color: var(--muted); }
.ep-run { position: absolute; border: 1px solid transparent; border-radius: 2px; cursor: text; }
.ep-run:hover { border-color: #d9962f; background: rgb(217 150 47 / .08); }
.ep-pages[data-tool="edittext"] .ep-run { outline: 1px dashed rgb(217 150 47 / .22); }
.ep-pages[data-tool="text"] .ep-page, .ep-pages[data-tool="note"] .ep-page { cursor: text; }
.ep-pages[data-tool="ink"] .ep-page, .ep-pages[data-tool="whiteout"] .ep-page, .ep-pages[data-tool="highlight"] .ep-page,
.ep-pages[data-tool="box"] .ep-page, .ep-pages[data-tool="underline"] .ep-page, .ep-pages[data-tool="strike"] .ep-page { cursor: crosshair; }
.ep-cover { position: absolute; pointer-events: none; }
.ep-obj { position: absolute; box-sizing: border-box; }
.ep-text, .ep-note { min-width: 1ch; padding: 0 1px; line-height: 1.2; white-space: pre; outline: 1px dashed transparent; cursor: text; user-select: text; }
.ep-note { white-space: pre-wrap; padding: 3px 4px; border: 1px solid #d48824; box-shadow: 0 2px 6px rgb(0 0 0 / .15); }
.ep-text.is-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.ep-run.is-hot { border-color: #d9962f; background: rgb(217 150 47 / .08); }
.ep-style { display: flex; gap: .3rem; }
.theme-tools .ep-panel .ep-style button.ep-mini.ep-mini.ep-mini.ep-mini.ep-mini { flex: 1; min-width: 0; padding-inline: .3rem; display: inline-flex; align-items: center; justify-content: center; }
.ep-handle.ep-handle--w { top: 50%; bottom: auto; right: -6px; width: 9px; height: 18px; margin-top: -9px; border-radius: 3px; cursor: ew-resize; }
.ep-text:focus, .ep-text.is-selected { outline-color: #d9962f; background: rgb(217 150 47 / .05); }
.ep-text:empty::before, .ep-note:empty::before { content: "Type here"; color: #9aa6b2; }
.ep-pages[data-tool="select"] .ep-obj { cursor: move; }
.ep-whiteout { background: #ffffff; outline: 1px dashed #c7ced6; }
.ep-highlight { background: rgb(230 179 102 / .45); mix-blend-mode: multiply; }
.ep-box { border: 2px solid var(--c); }
.ep-underline { border-bottom: 1.5px solid var(--c); }
.ep-strike { background: linear-gradient(transparent calc(55% - 1px), var(--c) calc(55% - 1px), var(--c) calc(55% + 1px), transparent calc(55% + 1px)); }
.ep-image img { width: 100%; height: 100%; display: block; pointer-events: none; }
.ep-obj.is-selected:not(.ep-text) { outline: 2px solid #d9962f; outline-offset: 1px; }
.ep-handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: #d9962f; border: 2px solid #ffffff; cursor: nwse-resize; display: none; }
.ep-obj.is-selected .ep-handle { display: block; }
@media (max-width: 900px) {
  .ep-shell { grid-template-columns: minmax(0, 1fr); }
  .ep-side { display: none; }
  .ep-panel { order: -1; max-height: none; border-left: 0; border-bottom: 1px solid var(--line); display: flex; gap: .3rem; overflow-x: auto; padding: .4rem; scrollbar-width: none; position: sticky; top: 112px; z-index: 15; }
  .ep-panel::-webkit-scrollbar { display: none; }
  .ep-ptitle { display: none; }
  .ep-list { display: flex; gap: .25rem; }
  .theme-tools .ep-panel button.ep-tool.ep-tool.ep-tool.ep-tool.ep-tool { width: auto; flex: none; flex-direction: column; gap: .15rem; min-height: 46px; padding: .25rem .45rem; font-size: 10.5px; text-align: center; }
  .ep-format { display: flex; gap: .35rem; flex: none; }
  .ep-format label { display: flex; align-items: center; gap: .25rem; }
  .theme-tools .ep-format select { width: auto; }
  .ep-format input[type="color"] { width: 34px; }
  .ep-pages { max-height: none; overflow: visible; padding: .6rem .3rem 1.5rem; }
  .ep-toolbar { top: 64px; }
  .ep-tip { display: none; }
}
/* Big working areas never tilt or lift on hover (it made the page shake, worst with large files). */
.tool-workspace .card, .tool-workspace .card:hover, .tool-workspace .card:focus-within { transform: none; transition: border-color .2s ease; }
.theme-tools .ep-toolbar select { width: auto; min-width: 0; }
/* Let fingers scroll the page in text modes; only drawing tools capture touch. */
.ep-pages[data-tool="edittext"] .ep-page, .ep-pages[data-tool="text"] .ep-page, .ep-pages[data-tool="note"] .ep-page { touch-action: pan-x pan-y pinch-zoom; }
@media (max-width: 900px) {
  .ep-list { flex: none; }
  .theme-tools .ep-panel button.ep-tool.ep-tool.ep-tool.ep-tool.ep-tool { min-width: max-content; white-space: nowrap; }
  .ep-panel { top: 64px; }
  .ep-toolbar { position: static; }
}
/* ---------- Edit PDF: Organize pages ---------- */
.ep-shell.is-organizing { grid-template-columns: minmax(0, 1fr) 210px; }
.ep-shell.is-organizing .ep-side, .ep-shell.is-organizing .ep-pages { display: none; }
.ep-org { padding: .8rem; max-height: 80vh; overflow: auto; }
.ep-org[hidden] { display: none; }
.ep-org-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .8rem; }
.ep-org-count { color: var(--muted); font-size: var(--fs-xs); margin-right: auto; }
.theme-tools .ep-org button.ep-mini.ep-mini.ep-mini.ep-mini.ep-mini { flex: none; min-height: 34px; padding: .25rem .7rem; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 700 var(--fs-xs)/1 var(--font); cursor: pointer; transform: none; box-shadow: none; }
.theme-tools .ep-org button.ep-done.ep-done.ep-done.ep-done.ep-done.ep-done { background: var(--cta); border-color: var(--cta-edge); color: var(--cta-ink); }
.ep-org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.ep-card { display: grid; gap: .35rem; justify-items: center; padding: .55rem; border: 2px solid transparent; border-radius: 10px; background: var(--panel); box-shadow: 0 1px 4px rgb(23 37 54 / .12); cursor: grab; }
.ep-card.is-dragging { opacity: .4; }
.ep-card.is-target { border-color: #d9962f; }
.ep-card-pic { display: grid; place-items: center; width: 150px; height: 150px; }
.ep-card-pic canvas { max-width: 150px; max-height: 150px; background: #ffffff; box-shadow: 0 1px 4px rgb(23 37 54 / .25); }
.ep-card-no { font: 650 11px/1 var(--font); color: var(--muted); }
.ep-card-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.theme-tools .ep-card button.ep-cbtn.ep-cbtn.ep-cbtn.ep-cbtn.ep-cbtn.ep-cbtn { min-width: 28px; min-height: 28px; padding: 0 .3rem; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 700 14px/1 var(--font); cursor: pointer; transform: none; box-shadow: none; }
.theme-tools .ep-card button.ep-cbtn.ep-cbtn.ep-cbtn.ep-cbtn.ep-cbtn.ep-cbtn:hover:not(:disabled) { border-color: #d9962f; color: #8a5410; }
.theme-tools .ep-card button.ep-cbtn.ep-cbtn.ep-cbtn.ep-cbtn.ep-cbtn.ep-cbtn:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) {
  .ep-shell.is-organizing { grid-template-columns: minmax(0, 1fr); }
  .ep-org { max-height: none; overflow: visible; }
  .ep-org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .ep-card-pic { width: 120px; height: 120px; }
  .ep-card-pic canvas { max-width: 120px; max-height: 120px; }
}
.ep-imgbox { position: absolute; border: 1px dashed rgb(217 150 47 / .55); border-radius: 2px; cursor: pointer; }
.ep-imgbox:hover { border-style: solid; border-color: #d9962f; background: rgb(217 150 47 / .1); }
/* Trust line under the main tool button */
.zy-trust { display: flex; align-items: center; gap: .4rem; margin: .45rem 0 0; font: 600 var(--fs-xs)/1.35 var(--font); color: var(--muted); }
.zy-trust svg { width: 15px; height: 15px; flex: none; color: #1f9d55; }
/* ---------- Guides (Rule 11) ---------- */
.guide-article { max-width: 780px; margin: 0 auto; padding: 1.2rem 0 2rem; }
.guide-head h1 { margin: .3rem 0 .4rem; }
.guide-meta { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.guide-answer { margin: 1.2rem 0; padding: 1rem 1.15rem; border-left: 4px solid var(--cta); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--cta) 12%, var(--panel)); }
.guide-answer p { margin: 0; line-height: 1.55; }
.guide-answer .guide-answer-label { margin-bottom: .3rem; font: 750 var(--fs-xs)/1 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: 1.2rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.guide-cta div { display: grid; gap: .15rem; }
.guide-cta span { font-size: var(--fs-sm); color: var(--muted); }
.guide-body h2 { margin-top: 2rem; }
.guide-formula { padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--panel-2); font: 650 1rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-x: auto; }
.guide-body .table-wrap, .tool-method .table-wrap { overflow-x: auto; margin: 1rem 0; }
.guide-body table, .tool-method table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.guide-body th, .guide-body td, .tool-method th, .tool-method td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.guide-body caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: .4rem; }
.guide-sources li { overflow-wrap: anywhere; }
.guide-note { font-size: var(--fs-xs); color: var(--muted); }
.guide-cat .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-fig { margin: 1.4rem 0; }
.guide-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; }
.guide-fig figcaption { margin-top: .5rem; font-size: var(--fs-sm); color: var(--muted); }
.guide-sources { margin: 1.6rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.guide-sources summary { cursor: pointer; font: 700 var(--fs-sm)/1.4 var(--font); color: var(--muted); list-style-position: inside; }
.guide-sources ul { margin: .6rem 0 0; padding-left: 1.1rem; font-size: var(--fs-xs); line-height: 1.5; }
.guide-sources a { color: var(--muted); display: inline-block; padding-block: .3rem; }
.guide-sources a:hover { color: var(--ink); }
.guide-sources details h3 { margin: 1.1rem 0 .3rem; font-size: 1rem; }
.guide-sources details > p { font-size: var(--fs-sm); }
.guide-sources details > p + p { margin-top: .6rem; }
/* Keep the logo full size on phones now that the header has Tools and Guides */
.product-header .brand { flex: none; }
.product-header .product-nav { min-width: 0; }
@media (max-width: 420px) { .product-header .nav-drop summary, .product-header .product-nav > a { padding-inline: .6rem; } }
.guide-embed { max-width: 820px; margin-inline: auto; }
.guide-embed > h2 { margin: .2rem 0 .3rem; }
.guide-toc { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.guide-toc summary { cursor: pointer; font-weight: 750; }
.guide-toc ul { list-style: none; margin: .6rem 0 0; padding-left: 0; columns: 2 260px; column-gap: 2rem; font-size: var(--fs-sm); }
.guide-toc li { break-inside: avoid; margin: .15rem 0; }
.guide-toc a { display: inline-block; padding-block: .25rem; }
.guide-back { margin: 1.4rem 0 .4rem; }
.guide-link { margin: .6rem 0 0; }
.guide-link a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); font: 700 var(--fs-sm)/1.2 var(--font); color: var(--ink); text-decoration: none; }
.guide-link a:hover { background: var(--panel-2); }
.guide-link .ico { width: 18px; height: 18px; color: #d9962f; }
.guide-more { display: inline-block; margin-top: .4rem; }
/* Tool button in the header of a guide article */
.guide-tool-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .8rem; border-radius: var(--radius-sm); background: var(--cta); color: var(--cta-ink, #172536); font: 750 var(--fs-sm)/1 var(--font); text-decoration: none; white-space: nowrap; box-shadow: inset 0 -3px var(--cta-edge, #8f5a14); }
.guide-tool-btn:hover { filter: brightness(1.04); }
.guide-tool-btn .ico { width: 18px; height: 18px; }
/* Phones: on an article page the logo, the tool button, search and theme fit in one row;
   Tools stays reachable from search and the logo. */
.product-header .product-bar > .brand { min-width: 96px; }
@media (max-width: 760px) {
  .is-guide .product-header .product-nav { display: none; }
  .is-guide .product-header .product-bar { grid-template-columns: auto minmax(0, 1fr); }
  .is-guide .product-header .header-tools { justify-self: end; }
  .guide-tool-btn { padding-inline: .65rem; }
  .is-guide .product-header .brand img { width: 108px; }
  .is-guide .product-header .product-bar > .brand { min-width: 0; }
  .is-guide .product-header .header-tools { gap: .25rem; }
  .is-guide #theme-toggle { display: none; }
}
@media (max-width: 760px) { .guide-tool-btn span { max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; } }
/* Very narrow phones: the guide header button shows "Open tool" so the logo, button, search and install icons fit in one row. */
@media (max-width: 480px) {
  .guide-tool-btn span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .guide-tool-btn::after { content: "Open tool"; }
}
.guide-research { margin: 1.4rem 0 .5rem; padding: .35rem .9rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--panel); max-width: 34rem; }
.guide-research summary { cursor: pointer; padding-block: .4rem; font: 700 var(--fs-sm)/1.4 var(--font); color: var(--muted); }
.guide-research[open] summary { color: var(--ink); }
.guide-research p { font-size: var(--fs-sm); }
.guide-research p + p { margin-top: .6rem; }
.guide-research h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
.guide-research ul { margin: 0 0 .6rem; padding-left: 1.1rem; }
.guide-research li a { display: inline-block; padding-block: .3rem; }

/* Phones: logo | Tools + Guides (scroll sideways if needed) | icons — nothing overlaps */
@media (max-width: 760px) {
  .product-header:has(.nav-drop) .product-bar { grid-template-columns: 104px minmax(0, 1fr) auto; column-gap: .5rem; }
  .product-header:has(.nav-drop) .product-bar > .brand { grid-column: 1; grid-row: 1; min-width: 0; width: 104px; }
  .product-header:has(.nav-drop) .product-bar > .brand img { height: auto; }
  .product-header:has(.nav-drop) .product-bar > .brand img { width: 104px; }
  .product-header:has(.nav-drop) .product-bar > .product-nav { grid-column: 2; grid-row: 1; justify-self: start; min-width: 0; max-width: 100%; }
  .product-header:has(.nav-drop) .product-bar > .header-tools { grid-column: 3; grid-row: 1; }
  .product-header .product-nav > a, .product-header .nav-drop summary { padding-inline: .55rem; }
}
@media (max-width: 400px) { .product-header:has(.nav-drop) .product-nav > a[href$="guides/"] { display: none; } }
.guide-link--end { margin: 1.2rem auto 1.6rem; text-align: center; }
/* Readers' questions on guide pages */
.guide-readers { margin: 2rem 0 1rem; padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.guide-readers h2 { margin: .4rem 0 .6rem; font-size: 1.2rem; }
.guide-vote-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.guide-vote-row > p { margin: 0; font-weight: 700; }
.guide-vote { display: flex; gap: .5rem; }
.guide-vote button { min-height: 40px; padding: .35rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel-2); color: var(--ink); font: 700 var(--fs-sm)/1 var(--font); cursor: pointer; }
.guide-vote-status { flex-basis: 100%; margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.guide-vote-status:empty { display: none; }
.guide-ask { display: grid; gap: .5rem; }
.guide-ask label { font-weight: 700; }
.guide-ask textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg, #ffffff); color: var(--ink); font: inherit; }
.guide-ask-note, .guide-ask-status { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.guide-ask .cta { justify-self: start; }
.guide-qa { margin: .4rem 0; }
.guide-sent { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border: 2px solid #1f9d55; border-radius: var(--radius); background: color-mix(in srgb, #1f9d55 12%, var(--panel)); }
.guide-sent svg { width: 34px; height: 34px; flex: none; color: #1f9d55; }
.guide-sent b { font-size: 1.05rem; }
.guide-sent p { margin: .2rem 0 .6rem; font-size: var(--fs-sm); }
.guide-sent-again { padding: .4rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--ink); font: 700 var(--fs-sm)/1 var(--font); cursor: pointer; }
.guide-vote-status.is-sent { color: #1f9d55; font-weight: 700; }
#tool-feedback-status.is-sent { padding: .6rem .8rem; border: 2px solid #1f9d55; border-radius: var(--radius-sm); background: color-mix(in srgb, #1f9d55 12%, var(--panel)); color: var(--ink); font-weight: 700; }
/* Homepage: about + FAQ (SEO content) */
.home-about { max-width: 860px; margin-top: var(--sp-6); }
.home-about h3 { margin-top: 1.4rem; }
.home-about li { margin: .3rem 0; }
.home-faq { max-width: 860px; margin-top: var(--sp-5); }
/* Notify me at launch */
.notify-section { max-width: 760px; }
.notify-form { display: grid; gap: .5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.notify-form > label { font-weight: 700; }
.notify-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.notify-row input { flex: 1 1 220px; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg, #ffffff); color: var(--ink); font: inherit; }
.notify-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.notify-consent input { margin-top: .2rem; }
.notify-status { margin: 0; font-size: var(--fs-sm); color: #c43d3d; }
.notify-status:empty { display: none; }
.notify-consent input[type=checkbox] { flex: none; width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: #d9962f; }
.guide-author { display: flex; gap: .8rem; align-items: flex-start; margin: 2rem 0 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.guide-author img { flex: none; border-radius: 10px; }
.guide-author p { margin: 0; font-size: var(--fs-sm); }
.guide-author .guide-author-label { margin-bottom: .25rem; font: 750 var(--fs-xs)/1 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.uc-banner { margin: var(--sp-3) 0 0; padding: .75rem 1rem; border: 1px solid #e6ad55; border-radius: 10px; background: #233a52; color: #e6ad55; font-size: var(--fs-sm, .95rem); }
.uc-banner strong { color: #e6ad55; }

/* Tool pages: the five categories sit in the header */
.product-header .tools-section-nav { display: flex; align-items: center; gap: .15rem; justify-self: center; }
.product-header .tools-section-nav a { text-transform: uppercase; letter-spacing: .03em; font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .product-header .tools-section-nav a { font-size: var(--fs-xs); padding-inline: .6rem; }
}

/* R35: the whole guide card is one link (stretched link on the title). */
.guide-cat .card { position: relative; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.guide-cat .card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.guide-cat .card:hover { border-color: var(--cta); box-shadow: 0 6px 18px rgb(0 0 0 / .08); }
.guide-cat .card:has(a:focus-visible) { outline: 3px solid var(--cta); outline-offset: 2px; }
.guide-cat .card h3 a:focus-visible { outline: none; }

/* Guide tables: the keyboard-focusable wrapper scrolls, not the table itself (WCAG 2.1.1, R33). */
@media (max-width: 760px) { html body main .guide-body table, html body main .tool-method table { display: table; max-width: none; overflow: visible; } }
.guide-body .table-wrap:focus-visible, .tool-method .table-wrap:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

/* R39: the brand name is written ZYSNOR everywhere and links to its section home (Tools "/" or Software "/software"). */
html body a.zysnor-name { color: inherit !important; font: inherit; letter-spacing: .02em; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: .18em; }
html body a.zysnor-name:hover { color: var(--cta, currentColor) !important; text-decoration-style: solid; }
a.zysnor-name:focus-visible { outline: 3px solid var(--cta, currentColor); outline-offset: 2px; border-radius: 3px; }

/* Tools About: Meet the Team (same two-card row as the Software About page) */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 3vw, 1.5rem); align-items: start; margin-top: 1rem; }
.team-card { min-width: 0; margin: 0; padding: clamp(.5rem, 2vw, 1rem); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); }
.team-card picture { display: block; border-radius: 10px; overflow: hidden; background: #0f1926; }
.team-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.team-card h3 { margin: .8rem 0 .15rem; font-size: clamp(1.02rem, 3.6vw, 1.35rem); line-height: 1.15; overflow-wrap: anywhere; }
.team-card p { margin: 0; }
.team-card .team-role { color: var(--muted); font-size: clamp(.82rem, 2.9vw, 1rem); overflow-wrap: anywhere; }
.team-card .team-bio { margin-top: .6rem; color: var(--muted); font-size: clamp(.8rem, 2.8vw, .95rem); overflow-wrap: anywhere; }
.team-card .team-link { margin-top: .6rem; display: inline-block; font-weight: 600; font-size: clamp(.8rem, 2.8vw, .95rem); overflow-wrap: anywhere; }
.home-about .team-grid { max-width: 640px; }
.home-about .team-grid { margin-bottom: 1.8rem; }

/* Home: hero buttons, byline and the Software section */
.hero-ctas { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-ctas .hero-cta { border-radius: 999px; padding-inline: 1.15rem; }
.hero-ctas .hero-cta:last-child { border-color: var(--accent); color: var(--accent); }
.hero-by { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.fc-2 .fc-note { white-space: nowrap; font-size: .72rem; }
.soft-lead { margin: 0 0 var(--sp-4); max-width: 46rem; color: #aab8c8; }
.soft-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.soft-card { display: flex; flex-direction: column; height: 100%; border: 1px solid #2a3d54; border-radius: 18px; background: #1b2e44; overflow: hidden; text-decoration: none !important; color: #aab8c8 !important; transition: transform .15s ease, border-color .15s ease; }
.soft-card:hover { border-color: #e6ad55; transform: translateY(-2px); }
.soft-shot { display: block; aspect-ratio: 16 / 10; background: #0f1926; overflow: hidden; border-bottom: 1px solid #2a3d54; }
.soft-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.soft-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.soft-kind { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #e6ad55; }
.soft-body strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; color: #ffffff; }
.soft-desc { font-size: var(--fs-sm); line-height: 1.45; }
.soft-go { margin-top: auto; padding-top: .6rem; font-weight: 700; font-size: var(--fs-sm); color: #e6ad55; }
.soft-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: var(--sp-4); padding: 1.25rem 1.4rem; border-radius: 18px; border: 1px solid #2a3d54; background: #14202d; }
.soft-cta-text { display: flex; flex-direction: column; gap: .25rem; max-width: 40rem; }
.soft-cta-text strong { font-family: var(--font-display); font-size: 1.15rem; color: #ffffff; }
.soft-cta-text span { color: #aab8c8; font-size: var(--fs-sm); }
.soft-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 560px) { .hero-ctas .hero-cta, .soft-cta-actions > a { flex: 1 1 100%; } }

/* About: one page for Tools and Software */
.about-page { max-width: 62rem; }
.about-hero { padding-bottom: var(--sp-4); }
.about-hero h1 { max-width: 20ch; }
.about-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: var(--sp-4) 0 0; }
.about-story { max-width: 44rem; margin: var(--sp-5) 0; padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.about-story h2 { margin: .2rem 0 .3rem; font-size: var(--fs-xl, 1.6rem); }
.about-story h3 { margin: 1.6rem 0 .4rem; font-size: 1.2rem; }
.about-story p { font-size: 1.08rem; line-height: 1.75; margin: 0 0 1rem; }
.about-by { font-size: var(--fs-sm) !important; color: var(--muted); font-style: italic; }
.about-sign { margin-top: 1.6rem !important; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 1.25rem !important; font-weight: 800; }
.about-sign span { font: 500 var(--fs-sm)/1.5 var(--font); color: var(--muted); }
.about-two h2 { margin-bottom: var(--sp-4); }
.about-two-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--sp-4); }
.about-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.about-card h3 { margin: .2rem 0 .5rem; }
.about-card ul { margin: .6rem 0 1rem; padding-left: 1.1rem; }
.about-card li { margin: .35rem 0; }
.about-team { margin-top: var(--sp-5); }
.about-faq details { margin: .5rem 0; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin: var(--sp-6, 2.5rem) 0; padding: 1.5rem; border-radius: 18px; background: #0f1926; color: #eaf0f6; }
.about-cta h2 { margin: 0 0 .25rem; color: #ffffff; font-size: 1.4rem; }
.about-cta p { margin: 0; color: #aab8c8; }
.about-cta .about-actions { margin: 0; }
body .about-cta .btn-ghost { background: transparent; color: #ffffff; border-color: #3a5069; }
@media (max-width: 560px) { .about-actions > a { flex: 1 1 100%; } }

/* One footer for the whole site: brand column plus five link columns */
.product-footer.footer-tools .footer-columns { grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .product-footer.footer-tools .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); } .product-footer.footer-tools .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .product-footer.footer-tools .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* About page, professional layout */
.about-page.about-wide { max-width: 72rem; }
.about-hero2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.2rem, 3vw, 2.2rem) 0 1rem; }
.about-hero2 h1 { font-size: var(--fs-display); line-height: 1.08; margin: .3rem 0 .9rem; max-width: 16ch; }
.about-hero2 .lead { max-width: 38rem; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0; }
.about-facts div { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.about-facts dt { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--accent); }
.about-facts dd { margin: .3rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.about-wide .about-story { max-width: none; margin-inline: 0; }
.about-wide .about-story > * { max-width: 46rem; }
.about-timeline, .about-promise, .about-next, .about-two { margin: clamp(1.6rem, 4vw, 2.6rem) 0; }
.about-timeline h2, .about-promise h2, .about-next h2, .about-two h2, .about-team h2 { font-size: var(--fs-2xl); margin: .2rem 0 1.2rem; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.1rem; }
.tl::before { content: ""; position: absolute; left: 9.4rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line-strong); }
.tl-item { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); gap: 2.2rem; align-items: start; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 8.9rem; top: .55rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--cta); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--cta-edge); }
.tl-next::before { background: var(--panel); box-shadow: 0 0 0 2px var(--line-strong); }
.tl-date { padding-top: .35rem; text-align: right; font-weight: 800; color: var(--ink); font-size: var(--fs-sm); }
.tl-card { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.tl-card h3 { margin: 0 0 .35rem; font-size: var(--fs-xl); }
.tl-card p { margin: 0; color: var(--muted); }
.about-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.about-grid3 .about-card p { margin: 0; color: var(--muted); }
.about-lead { max-width: 44rem; color: var(--muted); margin: 0 0 1.2rem; }
.nx { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.nx li { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.nx p { margin: 0; }
.nx-n { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .7rem; border-radius: 50%; background: var(--cta); color: var(--cta-ink); font-weight: 800; }
.about-two-grid { align-items: stretch; }
.about-two-grid .about-card { display: flex; flex-direction: column; }
.about-two-grid .about-card > p:last-child { margin-top: auto; }
@media (max-width: 860px) {
  .about-hero2 { grid-template-columns: 1fr; }
  .tl::before { left: .55rem; }
  .tl-item { grid-template-columns: 1fr; gap: .3rem; padding-left: 2rem; }
  .tl-item::before { left: 0; top: .3rem; }
  .tl-date { text-align: left; padding-top: 0; }
}
.about-wide .about-story { max-width: 54rem; margin-inline: auto; }
.about-wide .about-story > * { max-width: none; }

/* About: dark hero band and editorial story */
.about-hero2 { margin-top: .5rem; padding: clamp(1.2rem, 3vw, 2.2rem); border-radius: 20px; background: #0f1926; color: #eaf0f6; }
.about-hero2 h1 { color: #ffffff; }
.about-hero2 .lead { color: #b4c3d4; }
.about-hero2 .label, .about-hero2 .label a { color: #d48824; }
.about-hero2 a.zysnor-name { color: inherit; }
.about-hero2 .about-facts div { background: #ffffff0f; border-color: #263f59; box-shadow: none; }
.about-hero2 .about-facts dt { color: #d48824; }
.about-hero2 .about-facts dd { color: #b4c3d4; }
.about-story2 { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); margin: clamp(1.6rem, 4vw, 2.6rem) 0; }
.as-side { position: sticky; top: 5rem; align-self: start; }
.as-side h2 { margin: .2rem 0 .6rem; font-size: var(--fs-2xl); line-height: 1.2; }
.as-text p { font-size: 1.08rem; line-height: 1.8; margin: 0 0 1.1rem; max-width: 42rem; }
.as-text h3 { margin: 1.8rem 0 .4rem; font-size: var(--fs-xl); }
.about-story2 .about-sign { margin-top: 1.2rem !important; }
@media (max-width: 860px) { .about-story2 { grid-template-columns: 1fr; } .as-side { position: static; } }

/* FAQ: compact everywhere */
body :is(.seo-faq, .guide-faq, .swh-faq, .sw-faq, .about-faq, .swh-acc, .swh-faq-grid) details { margin: 0 0 .35rem; padding: 0; border-radius: 10px; }
body :is(.seo-faq, .guide-faq, .swh-faq, .sw-faq, .about-faq, .swh-acc, .swh-faq-grid) details > summary { min-height: 0; padding: .5rem .85rem; font-size: var(--fs-sm); font-weight: 650; line-height: 1.35; }
body :is(.seo-faq, .guide-faq, .swh-faq, .sw-faq, .about-faq, .swh-acc, .swh-faq-grid) details > :not(summary) { padding: 0 .85rem .7rem; font-size: var(--fs-sm); line-height: 1.55; }
body :is(.seo-faq, .guide-faq, .swh-faq, .sw-faq, .about-faq) > h2 { font-size: var(--fs-xl); margin: 0 0 .6rem; }
@media (min-width: 900px) {
  body .seo-faq:not(.guide-faq):not(.home-faq) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .9rem; align-items: start; max-width: none; }
  body .seo-faq:not(.guide-faq):not(.home-faq) > :not(details) { grid-column: 1 / -1; }
}
.tool-feedback > summary { min-height: 0; padding: .55rem .9rem; font-size: var(--fs-sm); }
.tool-feedback { padding: 0; }
.about-hero2 { padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2.2rem); }
.about-hero2 .about-actions { margin-bottom: 0; }
.about-actions { align-items: center; }
.about-actions > a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.about-actions > a, .product-actions > a { font-size: var(--fs-base); font-weight: 750; padding: .7rem 1.35rem; box-sizing: border-box; }
.about-actions > .cta, .product-actions > .cta { border: 1px solid transparent; }
.about-hero2 .btn-ghost.on-dark { border-color: #5b728a; }

/* About: refinements */
.as-quote { margin: 1.4rem 0 0; padding: 0 0 0 1.1rem; border-left: 4px solid var(--cta); }
.as-quote p { margin: 0; font-size: 1.25rem; line-height: 1.45; font-weight: 700; color: var(--ink); }
.about-wide .about-story2 .about-sign { margin-top: 1.4rem !important; }
.about-grid3 .about-card { padding: 1.1rem 0 0; border: 0; border-top: 3px solid var(--cta); border-radius: 0; background: transparent; box-shadow: none; }
.about-grid3 .about-card h3 { margin: 0 0 .4rem; }
.tl-card, .nx li { box-shadow: none; }
.about-wide .team-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1rem; }
.about-wide .team-card { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0 1.2rem; align-items: center; padding: 1rem; }
.about-wide .team-card picture { grid-row: 1 / span 4; width: 9rem; height: 9rem; }
.about-wide .team-card img { width: 100%; height: 100%; object-position: top; }
.about-wide .team-card h3 { margin: 0 0 .1rem; }
@media (max-width: 560px) { .about-wide .team-card { grid-template-columns: 6rem minmax(0, 1fr); } .about-wide .team-card picture { width: 6rem; height: 6rem; } }

/* Wider layout on large screens */
.about-page.about-wide { max-width: none; }
.product-header .tools-section-nav { flex-wrap: nowrap; white-space: nowrap; }
.as-text p { max-width: 54rem; }
@media (min-width: 861px) { .about-story2 { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); } }

/* Tool pages: the whole tool fits on first view (compact intro, bubble, drop zone) */
body.theme-tools:has(.tool-workspace) .tool-intro { padding: .15rem 0 .55rem; }
body.theme-tools:has(.tool-workspace) .tool-intro-copy { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; row-gap: .15rem; }
body.theme-tools:has(.tool-workspace) .tool-intro-copy > nav { flex: 0 0 100%; }
body.theme-tools:has(.tool-workspace) .tool-intro .crumbs { margin: 0; font-size: var(--fs-sm); }
body.theme-tools:has(.tool-workspace) .tool-intro h1 { margin: 0; font-size: clamp(1.55rem, 1.1rem + 1vw, 2.1rem); line-height: 1.15; max-width: none; }
body.theme-tools:has(.tool-workspace) .tool-intro .tool-trust { margin: 0; }
body.theme-tools:has(.tool-workspace) .tool-intro .lead { flex: 0 0 100%; font-size: var(--fs-base); }
body.theme-tools:has(.tool-workspace) .utility-panel { padding: .9rem 1.25rem 1rem; }
body.theme-tools:has(.tool-workspace) .workspace-heading { font-size: var(--fs-lg); margin: 0 0 .5rem; }
body.theme-tools:has(.tool-workspace) .zy-say { margin: 0 0 .6rem; padding: .4rem .7rem; gap: .6rem; align-items: center; }
body.theme-tools:has(.tool-workspace) .zy-say img { width: 28px; height: 28px; }
body.theme-tools:has(.tool-workspace) .tool-workspace .dropzone { padding: .85rem 1rem; gap: .15rem; }
body.theme-tools:has(.tool-workspace) .tool-workspace .dropzone-icon { width: 30px; height: 30px; }
body.theme-tools:has(.tool-workspace) .tool-workspace .dropzone-title { font-size: var(--fs-base); }
body.theme-tools:has(.tool-workspace) .tool-workspace .dropzone-btn { margin-top: .2rem; min-height: 0; padding-block: .35rem; }
@media (max-height: 720px) and (min-width: 900px) {
  body.theme-tools:has(.tool-workspace) .tool-intro .tool-trust, body.theme-tools:has(.tool-workspace) .zy-say { display: none; }
}
@media (min-width: 900px) {
  body.theme-tools:has(.tool-workspace) .tool-workspace .utility-form:not(:has(textarea)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; align-items: end; }
  body.theme-tools:has(.tool-workspace) .tool-workspace .utility-form:not(:has(textarea)) > :not(label),
  body.theme-tools:has(.tool-workspace) .tool-workspace .utility-form:not(:has(textarea)) > label:has(:is(textarea, input[type="file"], input[type="range"], .dropzone, fieldset)),
  body.theme-tools:has(.tool-workspace) .tool-workspace .utility-form:not(:has(textarea)) > label.dropzone-label { grid-column: 1 / -1; }
  body.theme-tools:has(.tool-workspace) .tool-workspace .utility-form:not(:has(textarea)) > .cta { justify-self: start; }
}

/* Phones: form controls stay at 16px so iOS does not zoom on focus */
@media (max-width: 720px) { body :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"]) { font-size: 16px; } }

/* ---------- Home page ---------- */
.hero-a { padding: clamp(1.25rem, 3.5vw, 2.5rem) 0 clamp(1rem, 2.5vw, 1.75rem); }
.hero-a-grid { align-items: center; }
.hero-start { padding: 1.1rem 1.2rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.hero-start h2 { margin: 0 0 .6rem; font-size: var(--fs-lg); }
.hero-start ul { display: grid; gap: .1rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.hero-start li a { display: flex; align-items: center; gap: .8rem; padding: .55rem .5rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; transition: background .15s; }
.hero-start li a:hover { background: var(--panel-2); }
.hero-start .hs-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: color-mix(in srgb, var(--tile) 15%, var(--panel)); color: var(--tile); }
.hero-start .hs-ico svg { width: 20px; height: 20px; }
.hero-start strong { display: block; font-size: var(--fs-base); }
.hero-start small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.hero-start .arrow { display: inline-block; margin: .15rem .5rem 0; font-weight: 700; }
.home-trust { padding-block: var(--sp-3) var(--sp-5); }
.home-trust ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); margin: 0; padding: 1rem 1.2rem; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.home-trust li { display: flex; gap: .7rem; align-items: flex-start; }
.home-trust .ht-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--panel-2); color: var(--accent); }
.home-trust .ht-ico svg { width: 20px; height: 20px; }
.home-trust strong { display: block; font-size: var(--fs-base); }
.home-trust li > span:last-child > span { display: block; color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; }
.cat-tile .cat-eg { margin-top: auto; color: var(--muted); font-size: var(--fs-xs); line-height: 1.35; }
.cat-tile { min-height: 8rem; padding: 1rem; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.guide-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.guide-card .gc-body { display: grid; align-content: start; gap: .25rem; padding: .85rem 1rem 1rem; }
.guide-card .gc-kind { color: var(--accent); font-size: var(--fs-xs); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.guide-card strong { font-size: var(--fs-lg); line-height: 1.25; }
.guide-card .gc-body > span:last-child { color: var(--muted); font-size: var(--fs-sm); }
.home-guides { padding-block: var(--sp-6); display: block; }
.home-guides .group-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: var(--sp-4); }
.home-guides .group-head h2, .home-guides .group-head p { margin: 0; }
@media (max-width: 900px) { .home-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guide-cards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .home-trust ul { grid-template-columns: 1fr; } }

/* Home polish (2026-11-19): whole figures in guide cards, equal-height directory, text aligned with the page grid. */
.guide-card img { aspect-ratio: 16 / 10; object-fit: contain; object-position: center; background: #ffffff; padding: .4rem; box-sizing: border-box; border-bottom: 1px solid var(--line); }
.soft-shot { aspect-ratio: 16 / 9; }
.soft-shot img { object-position: left top; }
.home-directory .dir-grid { align-items: stretch; }
.home-directory .dir-card { height: auto; }
body.theme-home .home-about.prose, body.theme-home .home-faq.prose { max-width: none; }
.home-about > p, .home-about > h2, .home-about > h3 { max-width: 72ch; }
.home-about .team-grid { max-width: 640px; }
.site-footer .footer-bottom { align-items: center; }

/* Header with the Home link: below 1180px the menu moves to its own scrollable row (same as phones). */
@media (max-width: 1180px) {
  .product-header .product-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .product-header .product-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-self: stretch; margin-inline: -4px; padding: 0 4px 2px; }
  .product-header .product-nav::-webkit-scrollbar { display: none; }
  .product-header .product-nav a { white-space: nowrap; flex: none; }
}

/* Software section buttons: one size, one height (2026-11-19). */
.soft-cta-actions { align-items: center; }
.home-software .btn-ghost.on-dark, .home-software .cta { min-height: 48px; padding: .7rem 1.35rem; font: 750 var(--fs-base)/1.2 var(--font); border-radius: var(--radius-sm); }
.home-software .cta { box-shadow: none; }

/* Compact software and guide sections, one button colour (2026-11-19). */
.home-software { margin-top: var(--sp-5); padding: clamp(1.75rem, 4vw, 2.5rem) 0; }
.home-software .group-head { margin-bottom: var(--sp-3); }
.home-software h2 { margin-top: .4rem; font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.soft-lead { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); max-width: 42rem; }
.soft-cards { gap: var(--sp-3); }
.soft-card { border-radius: 14px; }
.soft-shot { aspect-ratio: 2 / 1; }
.soft-body { padding: .8rem 1rem .9rem; gap: .2rem; }
.soft-body strong { font-size: 1.05rem; }
.soft-desc { font-size: var(--fs-sm); line-height: 1.4; }
.soft-go { padding-top: .35rem; }
.soft-cta { margin-top: var(--sp-3); padding: .9rem 1.1rem; border-radius: 14px; }
.soft-cta-text strong { font-size: 1.05rem; }
.home-founder { margin-top: var(--sp-3); font-size: var(--fs-sm); }
body .home-software .btn-ghost.on-dark, body .home-software .cta { min-height: 44px; padding: .55rem 1.2rem; font: 750 var(--fs-sm)/1.2 var(--font); background: var(--cta); color: var(--cta-ink) !important; border: 0; box-shadow: none; text-decoration: none; }
body .home-software .btn-ghost.on-dark:hover, body .home-software .cta:hover { background: var(--cta-hover); }
.home-guides { padding-block: var(--sp-5); }
.home-guides .group-head { margin-bottom: var(--sp-3); }
.guide-cards { gap: var(--sp-3); }
.guide-card { border-radius: 14px; }
.guide-card img { aspect-ratio: 2 / 1; padding: .25rem; }
.guide-card .gc-body { padding: .65rem .9rem .8rem; gap: .15rem; }
.guide-card strong { font-size: var(--fs-base); }
.guide-card .gc-body > span:last-child { font-size: var(--fs-sm); line-height: 1.4; }
.soft-shot { aspect-ratio: 9 / 4; }
.guide-card img { aspect-ratio: 5 / 2; }

/* Guides slider on the home page (2026-11-19). */
.guide-track { display: flex; gap: var(--sp-3); margin: 0; padding: 2px 2px 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.guide-track::-webkit-scrollbar { display: none; }
.guide-track > li { flex: 0 0 calc((100% - 2 * var(--sp-3)) / 3); scroll-snap-align: start; }
@media (max-width: 900px) { .guide-track > li { flex-basis: calc((100% - var(--sp-3)) / 2); } }
@media (max-width: 560px) { .guide-track > li { flex-basis: 86%; } }
@media (prefers-reduced-motion: reduce) { .guide-track { scroll-behavior: auto; } }
.slider-controls { display: flex; align-items: center; gap: .4rem; }
.slider-controls .arrow { margin-left: .6rem; }
.slider-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--ink); cursor: pointer; }
.slider-btn:hover { border-color: var(--accent); }
.slider-btn[aria-pressed="true"] { background: var(--panel-2); }
.guide-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Smaller guide cards: four in view on desktop (2026-11-19). */
.guide-track > li { flex-basis: calc((100% - 3 * var(--sp-3)) / 4); }
@media (max-width: 1100px) { .guide-track > li { flex-basis: calc((100% - 2 * var(--sp-3)) / 3); } }
@media (max-width: 800px) { .guide-track > li { flex-basis: calc((100% - var(--sp-3)) / 2); } }
@media (max-width: 520px) { .guide-track > li { flex-basis: 78%; } }
.guide-card img { aspect-ratio: 16 / 7; }
.guide-card .gc-body { padding: .5rem .75rem .65rem; }
.guide-card .gc-kind { font-size: .68rem; }
.guide-card strong { font-size: var(--fs-sm); line-height: 1.3; }
.guide-card .gc-body > span:last-child { font-size: var(--fs-xs); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Guides slider runs continuously: no snapping (2026-11-19). */
.guide-track { scroll-snap-type: none; scroll-behavior: auto; }
.guide-track > li { scroll-snap-align: none; }

/* Header hover menu (nav-mega.js) */
:where(.product-header) { position: relative; }
.product-header .mega { position: absolute; left: 50%; top: calc(100% - 2px); z-index: 60; width: min(1120px, calc(100vw - 2rem)); transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(21, 34, 48, .38); animation: mega-in .16s ease-out; }
.product-header .mega[hidden] { display: none; }
.product-header .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.product-header .mega-inner { padding: 1rem 1.1rem 1.1rem; }
.product-header .mega-head { display: flex; align-items: center; gap: .6rem; padding: 0 .35rem .75rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); }
.product-header .mega-head strong { font-size: var(--fs-md, 1.05rem); font-weight: 800; }
.product-header .mega-count { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: .15rem .55rem; }
.product-header .mega-all { margin-left: auto; font-size: var(--fs-sm); font-weight: 800; text-decoration: none; color: var(--ink, inherit); background: var(--cta); border-radius: 999px; padding: .4rem .95rem; }
.product-header .mega-all:hover, .product-header .mega-all:focus-visible { filter: brightness(.95); }
.product-header .mega-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem; }
.product-header .mega-list a { display: flex; align-items: center; gap: .7rem; height: 100%; padding: .55rem .6rem; border-radius: 12px; color: inherit; text-decoration: none; }
.product-header .mega-list a:hover, .product-header .mega-list a:focus-visible { background: var(--panel-2); }
.product-header .mega-tile { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--cta) 30%, var(--panel)); }
.product-header .mega[data-ic="image"] .mega-tile { background: #edf2f7; color: #8a5410; }
.product-header .mega[data-ic="pdf"] .mega-tile { background: #fde8e8; color: #c23a3a; }
.product-header .mega[data-ic="writing"] .mega-tile { background: #e3f6ec; color: #1c8a4f; }
.product-header .mega[data-ic="student"] .mega-tile { background: #efe8fb; color: #4e80b6; }
.product-header .mega[data-ic="date"] .mega-tile { background: #fbf0dc; color: #a8691a; }
.product-header .mega[data-ic="guide"] .mega-tile { background: #e8eef5; color: #785014; }
.product-header .mega[data-ic="code"] .mega-tile { background: #e8edf3; color: #233950; }
.product-header .mega-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.product-header .mega-txt { display: grid; gap: .1rem; min-width: 0; }
.product-header .mega-txt b { font-size: var(--fs-sm); font-weight: 750; line-height: 1.25; }
.product-header .mega-txt small { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-header .product-nav > a[aria-expanded="true"] { background: color-mix(in srgb, var(--cta) 32%, var(--panel)); }
@keyframes mega-in { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 1100px) { .product-header .mega-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .product-header .mega { animation: none; } }
[data-theme="dark"] .product-header .mega-tile { filter: brightness(.9) saturate(.9); }

/* Tool logos (icons/tools/*.svg, rule R45): document outline, label badge, action glyph */
.tool-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.tool-tile .tile-icon:has(.tool-logo), .theme-tools .tool-card .tile-icon:has(.tool-logo), .hero-start .hs-ico:has(.tool-logo), .mega-tile:has(.tool-logo) {
  background: #ffffff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); padding: 2px; width: 56px; height: 56px; border-radius: 14px;
}
body .home-popular .tool-tile .tile-icon:has(.tool-logo) { width: 50px; height: 50px; }
.mega-tile:has(.tool-logo) { width: 50px !important; height: 50px !important; }
.product-header .mega .mega-tile:has(.tool-logo) { background: #ffffff !important; color: inherit; box-shadow: inset 0 0 0 1px var(--line); padding: 2px; }
.home-directory .dir-card li a { display: flex; align-items: center; gap: .6rem; }
.dir-logo { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #ffffff; box-shadow: inset 0 0 0 1px var(--line); padding: 1px; }
.cat-tile .tile-icon:has(.tool-logo), .tool-group h2 .tile-icon:has(.tool-logo) { background: #ffffff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); padding: 2px; width: 60px; height: 60px; border-radius: 15px; }

/* Contact page: one place for feedback, software inquiry and email */
.contact-choices { display: grid; align-items: stretch; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 0 0 1.2rem; }
.contact-choices a { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.contact-choices a:hover, .contact-choices a:focus-visible { border-color: var(--cta); box-shadow: 0 10px 22px -14px rgba(21, 34, 48, .45); transform: translateY(-1px); }
.cc-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fbf0dc; color: #a8691a; }
.cc-ico[data-k="software-inquiry"] { background: #edf2f7; color: #8a5410; }
.cc-ico[data-k="email"] { background: #e3f6ec; color: #1c8a4f; }
.cc-ico svg { width: 22px; height: 22px; }
.cc-txt { display: grid; gap: .1rem; min-width: 0; }
.cc-txt strong { font-size: var(--fs-md, 1.05rem); }
.cc-txt span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.contact-grid #email { grid-column: 1 / -1; }
.contact-block { display: flex; flex-direction: column; scroll-margin-top: 5rem; padding: 1.4rem 1.5rem 1.5rem; margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); max-width: none; }
.contact-block h2 { margin: 0 0 .25rem; }
.contact-block .sw-intro { margin: 0 0 1rem; color: var(--muted); }
.contact-block form { flex: 1; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.contact-block label { display: block; margin: 0 0 .3rem; font-size: var(--fs-sm); font-weight: 700; }
.contact-block label .optional { display: inline; font-weight: 500; color: var(--muted); }
.contact-block input:not([type=checkbox]), .contact-block select, .contact-block textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: .6rem .8rem; border: 1px solid color-mix(in srgb, var(--ink, #111111) 22%, var(--line)); border-radius: 10px; background: var(--panel); color: inherit; font: inherit; }
.contact-block textarea { min-height: 150px; resize: vertical; }
.contact-block input:focus-visible, .contact-block select:focus-visible, .contact-block textarea:focus-visible { outline: 2px solid var(--cta); outline-offset: 1px; }
#contact-feedback-form { display: flex; flex-direction: column; gap: .3rem; }
#contact-feedback-form label { margin-top: .7rem; }
#contact-feedback-form label:first-child { margin-top: 0; }
#contact-feedback-form textarea { flex: 1; }
#contact-feedback-form .field-hint { margin: .6rem 0 .2rem; }
#contact-feedback-form button { align-self: flex-start; margin-top: .6rem; }
.contact-block .inquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; align-content: start; }
.contact-block .inquiry-form .form-row { margin: 0; }
.contact-block .inquiry-form .form-wide { grid-column: 1 / -1; }
.contact-block .form-check { display: flex; align-items: flex-start; gap: .6rem; }
.contact-block .form-check input { width: auto; min-height: 0; margin-top: .25rem; flex: none; }
.contact-block .form-check label { margin: 0; font-weight: 500; line-height: 1.45; }
.contact-block .field-hint { margin: .4rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .contact-choices { grid-template-columns: 1fr; } .contact-block { padding: 1.1rem; } .contact-block .inquiry-form { grid-template-columns: 1fr; } }

/* Showcase slider (Home and Software) */
.zy-slider { position: relative; max-width: 1100px; margin: 1.6rem auto; }
.zys-view { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.zys-track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.zys-slide { flex: 0 0 100%; box-sizing: border-box; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.4rem; padding: 1.8rem 2rem; min-height: 150px; }
.zys-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: var(--ib); color: var(--if); }
.zys-ico svg { width: 34px; height: 34px; }
.zys-txt h3 { margin: .2rem 0 .3rem; font-size: var(--fs-xl); }
.zys-txt p { margin: 0; color: var(--muted); max-width: 60ch; }
.zys-tag { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: #fbf0dc; color: #8a5410; font-size: var(--fs-xs); font-weight: 700; }
.zys-cta { white-space: nowrap; padding: .65rem 1.1rem; border-radius: 10px; background: var(--cta); color: #172536; font-weight: 700; text-decoration: none; }
.zys-cta:hover, .zys-cta:focus-visible { filter: brightness(.95); }
.zys-bar { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .8rem; }
.zys-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.zys-btn:hover, .zys-btn:focus-visible { border-color: var(--cta); }
.zys-dots { display: flex; gap: .5rem; }
.zys-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--ink, #111111) 25%, var(--line)); cursor: pointer; transition: width .25s, background .25s; }
.zys-dot[aria-current="true"] { width: 28px; background: var(--cta); }
@media (max-width: 720px) { .zys-slide { grid-template-columns: 1fr; justify-items: start; padding: 1.3rem; gap: 1rem; } .zys-ico { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .zys-track { transition: none; } }

.svc-3d { width: 64px; height: 64px; display: block; margin: -.2rem 0 .1rem -.2rem; filter: drop-shadow(0 8px 10px rgba(21, 34, 48, .12)); }
.swh-grid .swh-card .svc-3d { margin-bottom: .2rem; }
/* Continuous marquee (services, industries, highlights) */
.zym { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000000 4%, #000000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000000 4%, #000000 96%, transparent); }
.zym-track, #services .swh-svcgrid.zym-track, [aria-labelledby="swh-ind-h"] .swh-grid.zym-track, .zym-cards { display: flex !important; flex-wrap: nowrap; gap: 1rem; width: max-content; overflow: visible !important; scroll-snap-type: none !important; margin: 0 !important; padding: .4rem 0 1rem !important; animation: zym-run linear infinite; will-change: transform; }
.zym:hover .zym-track, .zym:focus-within .zym-track, .zym.zym-held .zym-track { animation-play-state: paused !important; }
@keyframes zym-run { to { transform: translateX(calc(-1 * var(--mq-dist, 0px))); } }
.zym-track > * { flex: 0 0 var(--mq-w, 300px) !important; width: var(--mq-w, 300px); box-sizing: border-box; scroll-snap-align: none !important; }
#services .zym-track { --mq-w: 290px; }
[aria-labelledby="swh-ind-h"] .zym-track { --mq-w: 340px; }
.zym-static { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.zym-static .zym-track { animation: none !important; }
.zym-host { max-width: none; }
.zym-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); color: inherit; text-decoration: none; min-height: 100%; }
.zym-cards { --mq-w: 340px; }
.zym-card:hover, .zym-card:focus-visible { border-color: var(--cta); }
.zym-card h3 { margin: .2rem 0 .3rem; font-size: var(--fs-xl); }
.zym-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.zym-go { margin-top: auto; font-weight: 700; font-size: var(--fs-sm); color: var(--accent); }
.zym-host { margin: 1.6rem 0; }
@media (prefers-reduced-motion: reduce) { .zym-track { animation: none !important; } }
.zym-card h3 { color: var(--ink); text-decoration: none; } .zym-card p { text-decoration: none; }

.swh-mq-track.zym-track { gap: .6rem; padding: .2rem 0 !important; }
.swh-mq-track.zym-track > * { flex: 0 0 auto !important; width: auto; white-space: nowrap; }

.home-popular .zym-track { --mq-w: 390px; list-style: none; }
.home-popular .zym-track > li { display: flex; }
.home-popular .zym-track > li > a { flex: 1; }

.home-guides .zym-track { --mq-w: 380px; list-style: none; }
.home-guides .zym-track > li { display: flex; scroll-snap-align: none; }
.home-guides .zym-track > li > a { flex: 1; }

/* Home software section follows the site theme (light and dark), no separate dark band */
.home-software { background: var(--panel-2); color: var(--ink); border-block: 1px solid var(--line); }
.home-software h2, .soft-body strong, .soft-cta-text strong, .product-card strong { color: var(--ink); }
.soft-lead, .soft-cta-text span, .home-founder { color: var(--muted); }
.home-software .eyebrow-dark { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--accent); }
.soft-card, .product-card { background: var(--panel); border-color: var(--line); color: var(--muted) !important; box-shadow: var(--shadow); }
.soft-card:hover { border-color: var(--cta); }
.soft-shot { background: var(--panel-2); border-bottom-color: var(--line); }
.soft-kind { color: #8a5410; }
.soft-go { color: var(--accent); }
.soft-cta { background: var(--panel); border-color: var(--line); }
.home-founder a { color: var(--accent) !important; }
.home-software .btn-ghost.on-dark { color: var(--ink); border-color: var(--line-strong); }
[data-theme="dark"] .soft-kind, html.dark .soft-kind { color: #e6ad55; }
.home-software { background: transparent; border-block: 0; }

/* Marquee cards: one compact size, full 3D (extruded edge, depth shadow, cursor tilt and gloss, gentle float) */
.zym-track:not(.swh-mq-track) { --mq-w: 272px !important; gap: 1.1rem; padding: .8rem .3rem 1.4rem !important; }
.zym-track:not(.swh-mq-track) > * { position: relative; transform-style: preserve-3d; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out, filter .25s; filter: drop-shadow(0 1px 0 rgba(21, 34, 48, .08)) drop-shadow(0 12px 12px rgba(21, 34, 48, .13)); animation: zym-bob 5.5s ease-in-out infinite; }
.zym-track:not(.swh-mq-track) > *:nth-child(3n+2) { animation-delay: -1.8s; }
.zym-track:not(.swh-mq-track) > *:nth-child(3n) { animation-delay: -3.6s; }
@keyframes zym-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.zym-track:not(.swh-mq-track) > *.zym-tilt { filter: drop-shadow(0 1px 0 rgba(21, 34, 48, .1)) drop-shadow(0 22px 18px rgba(21, 34, 48, .22)); z-index: 2; }
.zym-track:not(.swh-mq-track) > *::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; opacity: 0; transition: opacity .2s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .5), transparent 55%); mix-blend-mode: soft-light; }
.zym-track:not(.swh-mq-track) > *.zym-tilt::after { opacity: 1; }
.zym-track:not(.swh-mq-track) > .swh-svc, .zym-track:not(.swh-mq-track) > .swh-card, .zym-track:not(.swh-mq-track) > .zym-card, .zym-track:not(.swh-mq-track) > li > a { border-bottom: 4px solid color-mix(in srgb, var(--line-strong) 80%, #000000 10%); border-radius: 16px; }
.zym-track:not(.swh-mq-track) > li { border-radius: 16px; }
/* compact content */
.zym-track:not(.swh-mq-track) .svc-3d { width: 48px; height: 48px; margin: 0 0 .1rem; }
.zym-track:not(.swh-mq-track) h3 { font-size: 1rem; line-height: 1.25; margin: .1rem 0 .15rem; }
.zym-track:not(.swh-mq-track) p, .zym-track:not(.swh-mq-track) .tile-desc, .zym-track:not(.swh-mq-track) .gc-body > span:last-child { font-size: .82rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.zym-track:not(.swh-mq-track) > .swh-svc, .zym-track:not(.swh-mq-track) > .swh-card, .zym-track:not(.swh-mq-track) > .zym-card { padding: .95rem 1rem .85rem; gap: .35rem; }
.zym-track:not(.swh-mq-track) .swh-more, .zym-track:not(.swh-mq-track) .zym-go { font-size: .82rem; padding-top: .3rem; }
.zym-track:not(.swh-mq-track) .guide-card .gc-body { padding: .6rem .8rem .75rem; gap: .15rem; }
.zym-track:not(.swh-mq-track) .guide-card strong { font-size: .95rem; line-height: 1.25; }
.zym-track:not(.swh-mq-track) .guide-card .gc-kind { font-size: .68rem; }
.zym-track:not(.swh-mq-track) .guide-card img { aspect-ratio: 16 / 9; }
.zym-track:not(.swh-mq-track) .tool-tile { padding: .75rem .8rem; gap: .6rem; align-items: flex-start; }
.zym-track:not(.swh-mq-track) .tool-tile strong { font-size: .95rem; }
.zym-track:not(.swh-mq-track) .tool-logo { width: 34px; height: 34px; }
@media (prefers-reduced-motion: reduce) { .zym-track:not(.swh-mq-track) > * { animation: none; } }
.zym-track a, .zym-track a:hover, .zym-track a * { text-decoration: none !important; } .zym-track:not(.swh-mq-track) .guide-card .gc-body > span:last-child { color: var(--muted); font-weight: 400; }

/* Home restructure: hero chips, privacy proof, slim software band, founder strip */
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.hero-chips li { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: var(--fs-xs); font-weight: 700; }
.hero-chips li::before { content: "✓"; margin-right: .4rem; color: var(--accent); }
.home-safe { padding-block: var(--sp-5); }
.safe-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin-bottom: var(--sp-3); }
.safe-head h2 { margin: 0; }
.safe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.safe-grid li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; border: 1px solid var(--line); border-bottom: 4px solid color-mix(in srgb, var(--line-strong) 80%, #000000 10%); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.safe-grid strong { display: block; margin-bottom: .15rem; }
.safe-grid span:not(.hs-ico2) { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.hs-ico2 { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #e3f6ec; color: #1c8a4f; }
.hs-ico2 svg { width: 22px; height: 22px; }
.home-sw-band { padding-block: var(--sp-3); }
.hsb-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.hsb-inner .svc-3d { width: 48px; height: 48px; margin: 0; }
.hsb-text { display: grid; gap: .15rem; flex: 1 1 22rem; }
.hsb-text span { color: var(--muted); font-size: var(--fs-sm); }
.home-founder-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; padding-block: var(--sp-4); }
.home-founder-strip img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.home-founder-strip p { margin: 0; flex: 1 1 20rem; color: var(--muted); }
.home-founder-strip p strong { color: var(--ink); }
@media (max-width: 800px) { .safe-grid { grid-template-columns: 1fr; } }

/* tool-trust: compact badge row with links */
.tool-trust a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* Home hero: single column after removing the task list */
.hero-a-grid { grid-template-columns: minmax(0, 46rem); }
.hero-a-copy h1 { max-width: 20ch; }

/* WCAG 2.2.2: pause control and equal-height cards in moving strips */
.zym-ctl { display: flex; justify-content: flex-end; margin: 0 0 .15rem; }
.zym-pause { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: .2rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--ink); font: inherit; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; }
.zym-pause:hover, .zym-pause:focus-visible { border-color: var(--cta); }
.zym.zym-paused .zym-track, .zym.zym-paused .zym-track > * { animation-play-state: paused !important; }
.zym-track { align-items: stretch; }
.zym-track > * { height: auto; }
.home-popular .zym-track > li, .home-guides .zym-track > li { align-self: stretch; }
.zym-track:not(.swh-mq-track) .tile-desc, .zym-track:not(.swh-mq-track) .gc-body > span:last-child { min-height: calc(1.4em * 3); }

/* ---------- Brand logo: header (compact wordmark, monogram on phones) and footer (full logo with tagline) ---------- */
.product-header .brand img.brand-full { height: 48px !important; width: auto !important; max-width: none; }
.product-header .brand img.brand-icon { display: none; height: 38px !important; width: auto !important; }
html[data-theme="dark"] .product-header .brand img.brand-icon { content: url("/brand/zysnor-icon-dark.svg?v=4"); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .product-header .brand img.brand-icon { content: url("/brand/zysnor-icon-dark.svg?v=4"); } }
@media (max-width: 479px) {
  .product-header .brand img.brand-full { display: none !important; }
  .product-header .brand img.brand-icon { display: block; }
  .product-header .product-bar > .brand, .product-header:has(.nav-drop) .product-bar > .brand { min-width: 0; width: auto; }
}
.product-footer .footer-brand .brand img { width: min(240px, 100%) !important; height: auto !important; }

/* ---------- ZYSNOR brand palette (final): navy #172536 / #0F1926, amber #d48824 / #B0701D, surfaces #FFFFFF / #F6F8FA ---------- */
:root { --brand-navy: #172536; --brand-navy-dark: #0f1926; --brand-amber: #d48824; --brand-amber-dark: #b0701d; --brand-surface: #f6f8fa; }
body.theme-tools, body.theme-home {
  --bg: #f8f9fa; --panel: #ffffff; --panel-2: #f1f3f5; --line: #e5e7eb; --line-strong: #d1d5db;
  --ink: #1f2937; --muted: #4b5563; --accent: #8a5410; --accent-ink: #ffffff;
  --cta: #d48824; --cta-hover: #b0701d; --cta-ink: #172536; --cta-edge: #8f5a14;
  --info-bg: #e8eef5; --info-ink: #172536; --drop: #fdf8ee; --drop-active: #f8e6c6;
  --shadow: 0 1px 2px #17253614, 0 8px 24px -16px #17253640; --cyan: var(--accent);
}
html[data-theme="dark"] body.theme-tools, html[data-theme="dark"] body.theme-home {
  --bg: #0f1926; --panel: #172536; --panel-2: #1e3047; --line: #2a3d54; --line-strong: #3a5069;
  --ink: #eaf0f6; --muted: #aebbcb; --accent: #e6ad55; --accent-ink: #0f1926;
  --cta: #d48824; --cta-hover: #b0701d; --cta-ink: #0f1926; --cta-edge: #8f5a14;
  --info-bg: #1e3047; --info-ink: #eaf0f6; --drop: #172536; --drop-active: #233a52;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.theme-tools, html:not([data-theme="light"]) body.theme-home {
    --bg: #0f1926; --panel: #172536; --panel-2: #1e3047; --line: #2a3d54; --line-strong: #3a5069;
    --ink: #eaf0f6; --muted: #aebbcb; --accent: #e6ad55; --accent-ink: #0f1926;
    --cta: #d48824; --cta-hover: #b0701d; --cta-ink: #0f1926; --cta-edge: #8f5a14;
    --info-bg: #1e3047; --info-ink: #eaf0f6; --drop: #172536; --drop-active: #233a52;
  }
}
.cta:hover, .cta:focus-visible { background: var(--cta-hover); }
.site-footer { background: #0f1926; color: #eaf0f6; }
.theme-tools .product-nav a:hover, .theme-home .product-nav a:hover, .theme-tools .secondary-action:hover, .theme-home .secondary-action:hover { background: #f8e6c6; }
html[data-theme="dark"] .theme-tools .product-nav a:hover, html[data-theme="dark"] .theme-home .product-nav a:hover { background: #1e3047; }

/* =====================================================================
   BUTTON SYSTEM (final). Primary = amber with navy text, secondary = outline that inverts on hover.
   Specificity is raised with :not(#zy) so these win over the older page and theme layers.
   ===================================================================== */
:root { --btn-edge: #0f1926; --btn-ease: transform .14s ease, background-color .14s ease, box-shadow .14s ease, color .14s ease, border-color .14s ease; }
html[data-theme="dark"] { --btn-edge: #8f5a14; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { --btn-edge: #8f5a14; } }
body.theme-tools, body.theme-home { --cta: #d48824; --cta-hover: #e09632; --cta-ink: #0f1926; --cta-edge: #0f1926; }
html[data-theme="dark"] body.theme-tools, html[data-theme="dark"] body.theme-home { --cta-edge: #8f5a14; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) body.theme-tools, html:not([data-theme="light"]) body.theme-home { --cta-edge: #8f5a14; } }

/* Primary */
body .cta:not(#zy), body button.cta:not(#zy), body a.cta:not(#zy), body .guide-tool-btn:not(#zy), body .assistant form button:not(#zy) {
  background: #d48824; color: #0f1926; border: 1.5px solid #0f1926; box-shadow: 0 3px 0 var(--btn-edge);
  font-weight: 800; text-decoration: none; cursor: pointer; transform: none; transition: var(--btn-ease);
}
body .cta:not(#zy):hover, body button.cta:not(#zy):hover, body a.cta:not(#zy):hover, body .guide-tool-btn:not(#zy):hover, body .assistant form button:not(#zy):hover {
  background: #e09632; color: #0f1926; transform: translateY(-2px); box-shadow: 0 5px 0 var(--btn-edge); filter: none;
}
body .cta:not(#zy):active, body button.cta:not(#zy):active, body a.cta:not(#zy):active, body .guide-tool-btn:not(#zy):active, body .assistant form button:not(#zy):active {
  transform: translateY(1px); box-shadow: 0 1px 0 var(--btn-edge);
}
body .cta:not(#zy):disabled, body .cta:not(#zy)[aria-disabled="true"] { background: #d48824; color: #0f1926; opacity: .5; transform: none; box-shadow: 0 3px 0 var(--btn-edge); cursor: not-allowed; }

/* Secondary / outline */
body .secondary-action:not(#zy), body .btn-ghost:not(#zy):not(.on-dark),
body.theme-tools :is(button, .utility-form button):not(.cta):not(.btn-ghost):not(.icon-btn):not(.chip):not(.chip-btn):not(.scene-replay):not(.tip-close):not(.install-btn):not(.zym-pause):not(.proof-lb-x):not(.chat-toggle):not(.guide-tool-btn):not(:disabled):not(#zy) {
  background: #ffffff; color: #172536; border: 2px solid #172536; box-shadow: 0 3px 0 #172536; font-weight: 800;
  text-decoration: none; cursor: pointer; transform: none; transition: var(--btn-ease);
}
body .secondary-action:not(#zy):hover, body .btn-ghost:not(#zy):not(.on-dark):hover,
body.theme-tools :is(button, .utility-form button):not(.cta):not(.btn-ghost):not(.icon-btn):not(.chip):not(.chip-btn):not(.scene-replay):not(.tip-close):not(.install-btn):not(.zym-pause):not(.proof-lb-x):not(.chat-toggle):not(.guide-tool-btn):not(:disabled):not(#zy):hover {
  background: #172536; color: #ffffff; border-color: #172536; transform: translateY(-2px); box-shadow: 0 5px 0 #0f1926;
}
body .secondary-action:not(#zy):active, body .btn-ghost:not(#zy):not(.on-dark):active,
body.theme-tools :is(button, .utility-form button):not(.cta):not(.btn-ghost):not(.icon-btn):not(.chip):not(.chip-btn):not(.scene-replay):not(.tip-close):not(.install-btn):not(.zym-pause):not(.proof-lb-x):not(.chat-toggle):not(.guide-tool-btn):not(:disabled):not(#zy):active {
  transform: translateY(1px); box-shadow: 0 1px 0 #172536;
}
body.theme-tools :is(button, .utility-form button):disabled:not(.cta):not(.icon-btn):not(.chip):not(.chip-btn):not(.install-btn):not(.zym-pause):not(.tip-close):not(#zy) {
  background: #eef2f6; color: #44546a; border: 2px solid #c5ced9; box-shadow: none; cursor: not-allowed; transform: none;
}
/* Compact secondary: header install button */
body .install-btn:not(#zy) { background: #ffffff; color: #172536; border: 2px solid #172536; box-shadow: 0 2px 0 #172536; font-weight: 800; transition: var(--btn-ease); }
body .install-btn:not(#zy):hover { background: #172536; color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 0 #0f1926; }
body .install-btn:not(#zy):active { transform: translateY(1px); box-shadow: 0 1px 0 #172536; }
body .chip-btn:not(#zy) { color: #172536; border: 1.5px solid #172536; font-weight: 800; transition: var(--btn-ease); }
body .chip-btn:not(#zy):hover { background: #172536; color: #ffffff; border-color: #172536; }
/* Floating assistant button: navy with an amber edge */
body .chat-toggle:not(#zy) { background: #172536; color: #ffffff; border: 1.5px solid #0f1926; box-shadow: 0 3px 0 #d48824; font-weight: 800; transition: var(--btn-ease); }
body .chat-toggle:not(#zy):hover { background: #0f1926; color: #ffffff; transform: translateY(-2px); box-shadow: 0 5px 0 #d48824; }
body .chat-toggle:not(#zy):active { transform: translateY(1px); box-shadow: 0 1px 0 #d48824; }
/* Secondary on dark sections (About hero, About CTA) */
body .about-hero2 .btn-ghost.on-dark:not(#zy), body .about-cta .btn-ghost:not(#zy) {
  background: transparent; color: #ffffff; border: 2px solid #ffffff; box-shadow: 0 3px 0 rgba(255,255,255,.6); font-weight: 800; transition: var(--btn-ease);
}
body .about-hero2 .btn-ghost.on-dark:not(#zy):hover, body .about-cta .btn-ghost:not(#zy):hover { background: #ffffff; color: #172536; transform: translateY(-2px); box-shadow: 0 5px 0 rgba(255,255,255,.6); }

/* Dark mode: secondary buttons flip to light outline on navy */
html[data-theme="dark"] body .secondary-action:not(#zy), html[data-theme="dark"] body .btn-ghost:not(#zy):not(.on-dark), html[data-theme="dark"] body .install-btn:not(#zy),
html[data-theme="dark"] body.theme-tools :is(button, .utility-form button):not(.cta):not(.btn-ghost):not(.icon-btn):not(.chip):not(.chip-btn):not(.scene-replay):not(.tip-close):not(.install-btn):not(.zym-pause):not(.proof-lb-x):not(.chat-toggle):not(.guide-tool-btn):not(:disabled):not(#zy) {
  background: #172536; color: #eaf0f6; border-color: #eaf0f6; box-shadow: 0 3px 0 #eaf0f6;
}
html[data-theme="dark"] body .secondary-action:not(#zy):hover, html[data-theme="dark"] body .btn-ghost:not(#zy):not(.on-dark):hover, html[data-theme="dark"] body .install-btn:not(#zy):hover,
html[data-theme="dark"] body.theme-tools :is(button, .utility-form button):not(.cta):not(.btn-ghost):not(.icon-btn):not(.chip):not(.chip-btn):not(.scene-replay):not(.tip-close):not(.install-btn):not(.zym-pause):not(.proof-lb-x):not(.chat-toggle):not(.guide-tool-btn):not(:disabled):not(#zy):hover {
  background: #eaf0f6; color: #172536; box-shadow: 0 5px 0 #eaf0f6;
}
html[data-theme="dark"] body .chip-btn:not(#zy) { color: #eaf0f6; border-color: #eaf0f6; }
html[data-theme="dark"] body .chip-btn:not(#zy):hover { background: #eaf0f6; color: #172536; }
html[data-theme="dark"] body.theme-tools :is(button, .utility-form button):disabled:not(.cta):not(.icon-btn):not(.chip):not(.chip-btn):not(.install-btn):not(.zym-pause):not(.tip-close):not(#zy) { background: #1e3047; color: #aebbcb; border-color: #3a5069; }

/* Keyboard focus on every button */
body :is(.cta, .secondary-action, .btn-ghost, .install-btn, .chip-btn, .chat-toggle, .guide-tool-btn, .icon-btn, .assistant form button, .zym-pause, .proof-lb-x):focus-visible:not(#zy),
body.theme-tools button:focus-visible:not(#zy) { outline: 2.5px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  body :is(.cta, .secondary-action, .btn-ghost, .install-btn, .chip-btn, .chat-toggle, .guide-tool-btn, button):not(#zy) { transition: none; }
  body :is(.cta, .secondary-action, .btn-ghost, .install-btn, .chat-toggle, .guide-tool-btn, button):not(#zy):hover { transform: none; }
}
body .about-hero2 .btn-ghost:not(#zy):hover, body .about-cta .btn-ghost:not(#zy):hover { color: #172536 !important; background: #fff !important; }

/* ---- Focus ring (WCAG 2.4.7 / 1.4.11): navy on light surfaces, amber on dark ones ---- */
:root { --focus: #172536; }
html[data-theme="dark"] { --focus: #e09632; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { --focus: #e09632; } }
html body :focus-visible:not(#zy) { outline: 2.5px solid var(--focus); outline-offset: 2px; }
html body :is(.product-footer, .about-hero2, .about-cta, .home-software) :focus-visible:not(#zy) { outline-color: #e09632; }
html[data-theme="dark"] body :is(.product-footer, .about-hero2, .about-cta, .home-software) :focus-visible:not(#zy) { outline-color: #e09632; }
body .about-mission { margin: .9rem 0 0; max-width: 60ch; color: inherit; }
body .swh-tag { margin: 0 0 .4rem; font: 800 .8rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 479px) { .product-header .brand img.brand-full { display: none !important; } }

/* ---- Batch 1: Home flow, bigger header logo ---- */
body .hero-audience { margin: .35rem 0 1rem; max-width: 56ch; font: 600 var(--fs-base)/1.45 var(--font); color: var(--ink); }
body .recent-tools[hidden], body [data-recent-tools][hidden] { display: none !important; }
body .home-end { text-align: center; padding-block: var(--sp-6, 3rem); }
body .home-end h2 { margin: 0 0 1rem; }
body .home-end .site-search { margin-inline: auto; max-width: 640px; }
body .home-end-links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1.1rem 0 0; }
@media (min-width: 1024px) { .product-header .brand img.brand-full { height: 58px !important; } }
@media (min-width: 480px) and (max-width: 1023px) { .product-header .brand img.brand-full { height: 44px !important; } }

/* ---- Batch 2: About, service pages, notify, contact ---- */
body .about-privacy-line { margin: 1.1rem 0 0; font-weight: 600; }
body .reply-note { margin: -.25rem 0 .9rem; color: var(--muted); font-weight: 600; }
body .swh-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
body .swh-example dl { margin: .5rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; padding: 1.1rem 1.25rem; background: var(--panel); border: 1px solid var(--line-strong, #c5ced9); border-radius: var(--radius-sm, 10px); }
body .swh-example dt { font-weight: 800; color: var(--ink); }
body .swh-example dd { margin: 0; }
body .swh-ex-note { margin: 0 0 .5rem; color: var(--muted); }
@media (max-width: 560px) { body .swh-example dl { grid-template-columns: 1fr; } }

/* Team photos: circular */
.team-card picture:not(#zy){border-radius:50%;aspect-ratio:1/1;overflow:hidden}
.team-card img:not(#zy){border-radius:50%;object-position:center top}

/* FAQ questions: one compact size on every page (also Contact and any FAQ block without .seo-faq) */
body :is(#faq, [aria-labelledby="faq-heading"], [aria-labelledby="faq-h"], [aria-labelledby="svc-faq"]) details:not(#zy) { margin: 0 0 .35rem; padding: 0; border-radius: 10px; }
body :is(#faq, [aria-labelledby="faq-heading"], [aria-labelledby="faq-h"], [aria-labelledby="svc-faq"]) details:not(#zy) > summary { min-height: 0; padding: .5rem .85rem; font-size: var(--fs-sm); font-weight: 650; line-height: 1.35; }
body :is(#faq, [aria-labelledby="faq-heading"], [aria-labelledby="faq-h"], [aria-labelledby="svc-faq"]) details:not(#zy) > :not(summary) { padding: 0 .85rem .7rem; font-size: var(--fs-sm); line-height: 1.55; }
body :is(#faq, [aria-labelledby="faq-heading"], [aria-labelledby="faq-h"]) > h2 { font-size: var(--fs-xl); margin: 0 0 .6rem; }

/* ---------- Edit PDF: the whole page is visible (fit page), the editor fills the screen ---------- */
.tool-workspace .utility-form > div.ep-shell:not(#zy) { display: grid; }
.tool-workspace .utility-form > div.ep-shell[hidden]:not(#zy) { display: none; }
@media (min-width: 901px) {
  .ep-shell:not(.is-organizing) .ep-side, .ep-shell:not(.is-organizing) .ep-pages, .ep-shell:not(.is-organizing) .ep-panel { height: clamp(420px, calc(100vh - 170px), 940px); max-height: none; }
  .ep-shell:not(.is-organizing) .ep-pages { align-content: start; }
}
.ep-pages { scroll-snap-type: y proximity; }
.ep-page { scroll-snap-align: center; }

/* ---------- Print preview: opens full screen on demand; the sheet fills the area ---------- */
.zy-pv-open.zy-pv-in { width: auto; margin-top: .6rem; }
.tool-workspace .zy-preview.is-full .zy-pv-body, .zy-preview.is-full .zy-pv-left { min-height: 0; }
.zy-preview.is-full .zy-pv-wrap { min-height: 0; overflow: hidden; padding: .75rem; }
@media (max-width: 720px) { .zy-preview.is-full .zy-pv-wrap { min-height: calc(62vh + 1.5rem); overflow: visible; } }
@media (min-width: 901px) {
  .ep-shell:not(.is-organizing), .ep-toolbar { width: var(--ep-w, auto); max-width: 100%; margin-inline: auto; }
  .ep-toolbar { box-sizing: border-box; }
}

/* FAQ blocks: one slim column, centred on the page (all pages) */
body :is(.seo-faq, .guide-faq, .home-faq, .swh-faq, .sw-faq, .about-faq, #faq, [aria-labelledby="faq-heading"], [aria-labelledby="faq-h"], [aria-labelledby="svc-faq"]):not(#zy) { display: block; max-width: 46rem; margin-inline: auto; }
body :is(.seo-faq, .guide-faq, .home-faq, .swh-faq, .sw-faq, .about-faq, #faq, [aria-labelledby="faq-heading"], [aria-labelledby="faq-h"], [aria-labelledby="svc-faq"]):not(#zy) > h2 { text-align: center; }
body :is(.swh-faq-grid, .swh-acc):not(#zy) { display: block; max-width: 46rem; margin-inline: auto; }
/* Learn menu: Glossary and Updates shown first, highlighted (2026-11-20) */
.product-header .mega-list li.mega-feature > a { background: color-mix(in srgb, var(--cta) 12%, var(--panel)); border-radius: 12px; }
.product-header .mega-list li.mega-feature .mega-tile { background: #fff3df; color: #8a5410; }
[data-theme="dark"] .product-header .mega-list li.mega-feature .mega-tile { background: #3b2405; color: #fcd9a0; }
/* Learn menu in three groups: Tool guides, Glossary, Updates (2026-11-20) */
.product-header .mega-cols { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1.2rem; }
.product-header .mega-col { min-width: 0; display: flex; flex-direction: column; }
.product-header .mega-col-head { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem .55rem; margin-bottom: .2rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1rem; }
.product-header .mega .mega-col-head .mega-tile { width: 32px; height: 32px; background: #fff3df; color: #8a5410; }
[data-theme="dark"] .product-header .mega .mega-col-head .mega-tile { background: #3b2405; color: #fcd9a0; }
.product-header .mega-col-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.product-header .mega-col-list a { display: block; padding: .42rem .5rem; border-radius: 10px; color: inherit; text-decoration: none; }
.product-header .mega-col-list a:hover, .product-header .mega-col-list a:focus-visible { background: var(--panel-2); }
.product-header .mega-col-list b { display: block; font-size: .92rem; line-height: 1.3; }
.product-header .mega-col-list small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.product-header .mega-col-all { margin: .35rem .5rem 0; font-weight: 700; font-size: .9rem; color: var(--accent); text-decoration: none; }
/* Tool logos on guides (R45 logos, 2026-11-20): each logo is as tall as the text beside it */
.tl-h1 { display: inline-block; height: 1.12em; width: 1.12em; vertical-align: -0.16em; margin-right: .32em; padding: .06em; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: .2em; object-fit: contain; }
.tl-inline { display: inline-block; height: 1.15em; width: 1.15em; vertical-align: -0.22em; margin-right: .28em; padding: 1px; box-sizing: border-box; background: #fff; border-radius: 4px; object-fit: contain; }
.tl-card-title { display: flex; align-items: flex-start; gap: 10px; }
img.tl-card { flex: none; width: 2.6em; height: 2.6em; padding: 3px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; }
.product-header .mega-col-list a.has-logo { display: flex; align-items: center; gap: .6rem; }
.product-header .mega-col-list .mega-col-logo { flex: none; width: 2.5em; height: 2.5em; padding: 2px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.tl-gc { display: inline-block; height: 1.25em; width: 1.25em; vertical-align: -0.28em; margin-right: .35em; padding: 1px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 5px; object-fit: contain; }
.guide-card img.tl-gc { display: inline-block; width: 1.25em !important; height: 1.25em !important; aspect-ratio: 1 / 1; max-width: none; margin: 0 .35em 0 0; padding: 1px; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; background: #fff; vertical-align: -0.28em; }
/* ===== R53 hub standard (2026-11-20): search bar, filter pills, standard cards ===== */
.lh-tools { margin: 6px 0 18px; }
.lh-search { position: relative; margin: 0 0 14px; }
.lh-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.lh-search input, .gl-search, .up-search input { width: 100%; box-sizing: border-box; padding: 14px 18px 14px 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 1rem; }
.gl-search { padding-left: 18px; }
.lh-search input:focus-visible, .gl-search:focus-visible, .up-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lh-pills, .gl-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.lh-pill, .gl-pill { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; min-height: 36px; }
.lh-pill[aria-pressed="true"], .gl-pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lh-none { margin: 10px 0; color: var(--muted); }
@media (max-width: 640px) { .lh-pills, .gl-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .lh-pill, .gl-pill { white-space: nowrap; } }
.guide-cat .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .guide-cat .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .guide-cat .grid { grid-template-columns: 1fr; } }
.lh-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px 20px; box-sizing: border-box; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.lh-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.lh-card > p:not(.guide-meta) { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lh-card .lh-meta { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.lh-badge { align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; }
.lh-badge--images { background: #e6f0ff; color: #1d4ed8; border-color: #bfd4ff; }
.lh-badge--pdf { background: #fde8e8; color: #b42318; border-color: #f8c4c4; }
.lh-badge--software { background: #e7f6f0; color: #0f6b4a; border-color: #b7e3d0; }
.lh-badge--student { background: #f1ebfd; color: #6b3fd0; border-color: #d9cbf7; }
.lh-badge--writing { background: #e8f6ee; color: #146b3a; border-color: #bfe5cf; }
.lh-badge--dates-and-time { background: #fff3df; color: #8a4b00; border-color: #f3d39b; }
html[data-theme="dark"] .lh-badge { background: var(--panel-2); color: var(--ink); border-color: var(--line); }
.guide-cat[hidden] { display: none; }
.theme-tools .lh-tools .lh-search input[type="search"], .theme-tools .up-search input[type="search"] { padding: 14px 18px 14px 48px !important; border-radius: 999px !important; border: 1px solid var(--line) !important; box-shadow: none !important; min-height: 50px; background: var(--panel); }
.theme-tools .lh-tools .lh-pill, .theme-tools .gl-pills .gl-pill { box-shadow: none !important; transform: none !important; border: 1px solid var(--line) !important; background: var(--panel); color: var(--accent); border-radius: 999px !important; padding: 7px 16px !important; min-height: 38px; font-weight: 600; }
.theme-tools .lh-tools .lh-pill[aria-pressed="true"], .theme-tools .gl-pills .gl-pill[aria-pressed="true"] { background: var(--ink) !important; color: var(--bg) !important; border-color: var(--ink) !important; }
.lh-card .lh-meta { max-width: none; }
/* R53 iconography: Lucide-style inline icons (1.75 stroke, currentColor) */
.zy-ico { flex: none; display: inline-block; vertical-align: -0.15em; }
.lh-pill, .lh-badge, .up-tag, .up-filter a { display: inline-flex; align-items: center; gap: 6px; }
.lh-pill .zy-ico, .lh-badge .zy-ico, .up-tag .zy-ico, .up-filter a .zy-ico { width: 14px; height: 14px; }

/* ===== Header v2 (owner's reference, 2026-11-20): floating navy pill bar on every page ===== */
.theme-tools .product-header, .theme-home .product-header { background: transparent; border-bottom: 0; padding: 10px 0 4px; backdrop-filter: none; }
.product-header .product-bar { background: #172536; border-radius: 22px; padding: 8px 10px 8px 18px; box-shadow: 0 14px 34px -22px #17253699, inset 0 1px 0 #ffffff14; }
.product-header .brand img.brand-full { content: url("/brand/zysnor-logo-on-dark.svg?v=4"); height: 42px !important; }
.product-header .brand img.brand-icon { content: url("/brand/zysnor-icon-dark.svg?v=4"); }
.theme-tools .product-header .product-nav a, .theme-home .product-header .product-nav a { color: #e5ecf4; font-weight: 600; letter-spacing: .02em; }
.theme-tools .product-header .product-nav a:hover, .theme-home .product-header .product-nav a:hover { background: #ffffff17; color: #fff; }
.theme-tools .product-header .product-nav a[aria-current], .theme-home .product-header .product-nav a[aria-current],
.theme-tools .product-header .product-nav a[data-active], .theme-tools .product-header .product-nav a.active, .theme-home .product-header .product-nav a.active { background: #d48824 !important; color: #172536 !important; box-shadow: none !important; }
.product-header .product-nav a[aria-haspopup]::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: translateY(-.2em) rotate(45deg); opacity: .8; }
.product-header .header-tools .icon-btn { color: #e5ecf4; background: transparent; border-color: #ffffff2e; }
.product-header .header-tools .icon-btn:hover { background: #ffffff17; }
.product-header .install-btn { background: #d48824; color: #172536; border: 0; border-radius: 999px; font-weight: 700; box-shadow: none; }
html[data-theme="dark"] .product-header .product-bar { background: #0b1522; border: 1px solid #22344a; }

/* ===== R53 section 8: shared content card (updates, glossary, articles) ===== */
.zc-grid{list-style:none;padding:0;margin:14px 0 28px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.zc-grid>li{display:flex;min-width:0}
.zc-grid>li[hidden]{display:none}
.zc-card{display:flex;flex-direction:column;width:100%;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden;text-decoration:none!important;color:var(--ink)!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.zc-card:hover{transform:translateY(-3px);border-color:var(--line-strong);box-shadow:0 16px 32px -20px #17253680}
.zc-card:focus-visible{outline:3px solid var(--cta);outline-offset:3px}
.zc-band{position:relative;height:104px;display:flex;align-items:center;gap:14px;padding:0 18px;border-bottom:1px solid var(--line);background-repeat:no-repeat,repeat,repeat,no-repeat;background-position:right -14px center,0 0,0 0,0 0;background-size:auto 100%,22px 22px,22px 22px,100% 100%}
.zc--blue .zc-band{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22200%22%20height%3D%22170%22%20viewBox%3D%2240%20-24%20200%20170%22%20fill%3D%22none%22%20stroke%3D%22%231d4ed8%22%20stroke-width%3D%221.1%22%20stroke-linejoin%3D%22round%22%20stroke-opacity%3D%22.5%22%3E%3Cpath%20d%3D%22M130.0%2050.0%20L190.6%2085.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22%20fill%3D%22%231d4ed8%22%20fill-opacity%3D%22.10%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M190.6%20131.0%20L156.0%20151.0%20L156.0%20105.0%20L190.6%2085.0%20Z%22%20fill%3D%22%231d4ed8%22%20fill-opacity%3D%22.18%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M95.4%20116.0%20L156.0%20151.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22%20fill%3D%22%231d4ed8%22%20fill-opacity%3D%22.06%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M131.7%2037.0%20L157.7%2052.0%20L138.7%2063.0%20L112.7%2048.0%20Z%22%20fill%3D%22%231d4ed8%22%20fill-opacity%3D%22.12%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M130.0%2050.0%20L190.6%2085.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22/%3E%3Cpath%20d%3D%22M95.4%20116.0%20L156.0%20151.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22/%3E%3Cpath%20d%3D%22M190.6%20131.0%20L156.0%20151.0%20L156.0%20105.0%20L190.6%2085.0%20Z%22/%3E%3Cpath%20d%3D%22M95.4%20100.0%20L156.0%20135.0%22/%3E%3Cpath%20d%3D%22M190.6%20115.0%20L156.0%20135.0%22/%3E%3Cpath%20d%3D%22M95.4%2085.0%20L156.0%20120.0%22/%3E%3Cpath%20d%3D%22M190.6%20100.0%20L156.0%20120.0%22/%3E%3Cpath%20d%3D%22M107.5%20120.0%20L114.4%20124.0%20L114.4%20115.0%20L107.5%20111.0%20Z%22/%3E%3Cpath%20d%3D%22M107.5%20105.0%20L114.4%20109.0%20L114.4%20100.0%20L107.5%2096.0%20Z%22/%3E%3Cpath%20d%3D%22M107.5%2090.0%20L114.4%2094.0%20L114.4%2085.0%20L107.5%2081.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%20127.0%20L126.5%20131.0%20L126.5%20122.0%20L119.6%20118.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%20112.0%20L126.5%20116.0%20L126.5%20107.0%20L119.6%20103.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%2097.0%20L126.5%20101.0%20L126.5%2092.0%20L119.6%2088.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20134.0%20L138.7%20138.0%20L138.7%20129.0%20L131.7%20125.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20119.0%20L138.7%20123.0%20L138.7%20114.0%20L131.7%20110.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20104.0%20L138.7%20108.0%20L138.7%2099.0%20L131.7%2095.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20141.0%20L150.8%20145.0%20L150.8%20136.0%20L143.9%20132.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20126.0%20L150.8%20130.0%20L150.8%20121.0%20L143.9%20117.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20111.0%20L150.8%20115.0%20L150.8%20106.0%20L143.9%20102.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%2037.0%20L157.7%2052.0%20L138.7%2063.0%20L112.7%2048.0%20Z%22/%3E%3Cpath%20d%3D%22M112.7%2070.0%20L112.7%2048.0%22/%3E%3Cpath%20d%3D%22M138.7%2085.0%20L138.7%2063.0%22/%3E%3Cpath%20d%3D%22M157.7%2074.0%20L157.7%2052.0%22/%3E%3Cpath%20d%3D%22M130.0%2086.0%20L69.4%20121.0%22/%3E%3Cpath%20d%3D%22M143.0%2093.5%20L82.4%20128.5%22/%3E%3Cpath%20d%3D%22M156.0%20101.0%20L95.4%20136.0%22/%3E%3Cpath%20d%3D%22M169.0%20108.5%20L108.3%20143.5%22/%3E%3Cpath%20d%3D%22M182.0%20116.0%20L121.3%20151.0%22/%3E%3Cpath%20d%3D%22M195.0%20123.5%20L134.3%20158.5%22/%3E%3Cpath%20d%3D%22M207.9%20131.0%20L147.3%20166.0%22/%3E%3Cpath%20d%3D%22M130.0%2086.0%20L220.9%20138.5%22/%3E%3Cpath%20d%3D%22M117.0%2093.5%20L207.9%20146.0%22/%3E%3Cpath%20d%3D%22M104.0%20101.0%20L195.0%20153.5%22/%3E%3Cpath%20d%3D%22M91.0%20108.5%20L182.0%20161.0%22/%3E%3Cpath%20d%3D%22M78.0%20116.0%20L169.0%20168.5%22/%3E%3Cpath%20d%3D%22M86.7%20121.0%20L147.3%20156.0%22/%3E%3Cpath%20d%3D%22M89.3%20119.5%20L84.1%20122.5%22/%3E%3Cpath%20d%3D%22M149.9%20154.5%20L144.7%20157.5%22/%3E%3C/svg%3E"),linear-gradient(#1d4ed814 1px,transparent 1px),linear-gradient(90deg,#1d4ed814 1px,transparent 1px),linear-gradient(135deg,#e6f0ff,#f5f9ff)}
.zc--amber .zc-band{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22200%22%20height%3D%22170%22%20viewBox%3D%2240%20-24%20200%20170%22%20fill%3D%22none%22%20stroke%3D%22%23a16207%22%20stroke-width%3D%221.1%22%20stroke-linejoin%3D%22round%22%20stroke-opacity%3D%22.5%22%3E%3Cpath%20d%3D%22M130.0%2050.0%20L190.6%2085.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22%20fill%3D%22%23a16207%22%20fill-opacity%3D%22.10%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M190.6%20131.0%20L156.0%20151.0%20L156.0%20105.0%20L190.6%2085.0%20Z%22%20fill%3D%22%23a16207%22%20fill-opacity%3D%22.18%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M95.4%20116.0%20L156.0%20151.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22%20fill%3D%22%23a16207%22%20fill-opacity%3D%22.06%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M131.7%2037.0%20L157.7%2052.0%20L138.7%2063.0%20L112.7%2048.0%20Z%22%20fill%3D%22%23a16207%22%20fill-opacity%3D%22.12%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M130.0%2050.0%20L190.6%2085.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22/%3E%3Cpath%20d%3D%22M95.4%20116.0%20L156.0%20151.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22/%3E%3Cpath%20d%3D%22M190.6%20131.0%20L156.0%20151.0%20L156.0%20105.0%20L190.6%2085.0%20Z%22/%3E%3Cpath%20d%3D%22M95.4%20100.0%20L156.0%20135.0%22/%3E%3Cpath%20d%3D%22M190.6%20115.0%20L156.0%20135.0%22/%3E%3Cpath%20d%3D%22M95.4%2085.0%20L156.0%20120.0%22/%3E%3Cpath%20d%3D%22M190.6%20100.0%20L156.0%20120.0%22/%3E%3Cpath%20d%3D%22M107.5%20120.0%20L114.4%20124.0%20L114.4%20115.0%20L107.5%20111.0%20Z%22/%3E%3Cpath%20d%3D%22M107.5%20105.0%20L114.4%20109.0%20L114.4%20100.0%20L107.5%2096.0%20Z%22/%3E%3Cpath%20d%3D%22M107.5%2090.0%20L114.4%2094.0%20L114.4%2085.0%20L107.5%2081.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%20127.0%20L126.5%20131.0%20L126.5%20122.0%20L119.6%20118.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%20112.0%20L126.5%20116.0%20L126.5%20107.0%20L119.6%20103.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%2097.0%20L126.5%20101.0%20L126.5%2092.0%20L119.6%2088.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20134.0%20L138.7%20138.0%20L138.7%20129.0%20L131.7%20125.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20119.0%20L138.7%20123.0%20L138.7%20114.0%20L131.7%20110.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20104.0%20L138.7%20108.0%20L138.7%2099.0%20L131.7%2095.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20141.0%20L150.8%20145.0%20L150.8%20136.0%20L143.9%20132.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20126.0%20L150.8%20130.0%20L150.8%20121.0%20L143.9%20117.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20111.0%20L150.8%20115.0%20L150.8%20106.0%20L143.9%20102.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%2037.0%20L157.7%2052.0%20L138.7%2063.0%20L112.7%2048.0%20Z%22/%3E%3Cpath%20d%3D%22M112.7%2070.0%20L112.7%2048.0%22/%3E%3Cpath%20d%3D%22M138.7%2085.0%20L138.7%2063.0%22/%3E%3Cpath%20d%3D%22M157.7%2074.0%20L157.7%2052.0%22/%3E%3Cpath%20d%3D%22M130.0%2086.0%20L69.4%20121.0%22/%3E%3Cpath%20d%3D%22M143.0%2093.5%20L82.4%20128.5%22/%3E%3Cpath%20d%3D%22M156.0%20101.0%20L95.4%20136.0%22/%3E%3Cpath%20d%3D%22M169.0%20108.5%20L108.3%20143.5%22/%3E%3Cpath%20d%3D%22M182.0%20116.0%20L121.3%20151.0%22/%3E%3Cpath%20d%3D%22M195.0%20123.5%20L134.3%20158.5%22/%3E%3Cpath%20d%3D%22M207.9%20131.0%20L147.3%20166.0%22/%3E%3Cpath%20d%3D%22M130.0%2086.0%20L220.9%20138.5%22/%3E%3Cpath%20d%3D%22M117.0%2093.5%20L207.9%20146.0%22/%3E%3Cpath%20d%3D%22M104.0%20101.0%20L195.0%20153.5%22/%3E%3Cpath%20d%3D%22M91.0%20108.5%20L182.0%20161.0%22/%3E%3Cpath%20d%3D%22M78.0%20116.0%20L169.0%20168.5%22/%3E%3Cpath%20d%3D%22M86.7%20121.0%20L147.3%20156.0%22/%3E%3Cpath%20d%3D%22M89.3%20119.5%20L84.1%20122.5%22/%3E%3Cpath%20d%3D%22M149.9%20154.5%20L144.7%20157.5%22/%3E%3C/svg%3E"),linear-gradient(#a1620714 1px,transparent 1px),linear-gradient(90deg,#a1620714 1px,transparent 1px),linear-gradient(135deg,#fff3df,#fffaf2)}
.zc-logo{position:relative;z-index:1;width:56px;height:56px;flex:none;box-sizing:border-box;border-radius:14px;background:linear-gradient(180deg,#fff,#f3f5f8);border:1px solid #dbe3ef;box-shadow:0 4px 0 #d5dce6,0 12px 18px -10px #17253680;display:grid;place-items:center}
.zc-logo img,.zc-logo .up-ph-brand{width:42px!important;height:42px!important;padding:0!important;border:0!important;box-shadow:none!important;background:none!important;border-radius:0!important}
.zc-logo .zy-ico{width:30px;height:30px}
.zc--blue .zc-logo .zy-ico{color:#1d4ed8}.zc--amber .zc-logo .zy-ico{color:#a16207}
.zc-band-name{position:relative;z-index:1;font-weight:800;font-size:1.08rem;padding:2px 8px;margin-left:-4px;border-radius:8px;background:color-mix(in srgb,var(--panel) 90%,transparent);box-shadow:0 2px 8px -4px #17253633;line-height:1.2;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.zc--blue .zc-band-name{color:#1d4ed8}.zc--amber .zc-band-name{color:#8a4b00}
.zc-body{display:flex;flex-direction:column;gap:8px;padding:14px 18px 16px;flex:1;min-width:0}
.zc-badge{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:.78rem;font-weight:700}
.zc-badge .zy-ico{width:14px;height:14px}
.zc--blue .zc-badge{background:#e6efff;color:#1d4ed8}.zc--amber .zc-badge{background:#fdf1e1;color:#8a4b00}
.zc-title{margin:0!important;font-size:1.06rem!important;line-height:1.32;color:var(--ink);font-weight:800}
.zc-desc{color:var(--muted);font-size:.93rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.zc-meta{margin-top:auto;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:.84rem}
.zc-grid--small .zc-band{height:84px}.zc-grid--small .zc-logo{width:48px;height:48px}.zc-grid--small .zc-logo img,.zc-grid--small .zc-logo .up-ph-brand{width:36px!important;height:36px!important}.zc-grid--small .zc-band-name{font-size:1.02rem}
html[data-theme="dark"] .zc--blue .zc-band{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22200%22%20height%3D%22170%22%20viewBox%3D%2240%20-24%20200%20170%22%20fill%3D%22none%22%20stroke%3D%22%2393c5fd%22%20stroke-width%3D%221.1%22%20stroke-linejoin%3D%22round%22%20stroke-opacity%3D%22.5%22%3E%3Cpath%20d%3D%22M130.0%2050.0%20L190.6%2085.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22%20fill%3D%22%2393c5fd%22%20fill-opacity%3D%22.10%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M190.6%20131.0%20L156.0%20151.0%20L156.0%20105.0%20L190.6%2085.0%20Z%22%20fill%3D%22%2393c5fd%22%20fill-opacity%3D%22.18%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M95.4%20116.0%20L156.0%20151.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22%20fill%3D%22%2393c5fd%22%20fill-opacity%3D%22.06%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M131.7%2037.0%20L157.7%2052.0%20L138.7%2063.0%20L112.7%2048.0%20Z%22%20fill%3D%22%2393c5fd%22%20fill-opacity%3D%22.12%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M130.0%2050.0%20L190.6%2085.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22/%3E%3Cpath%20d%3D%22M95.4%20116.0%20L156.0%20151.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22/%3E%3Cpath%20d%3D%22M190.6%20131.0%20L156.0%20151.0%20L156.0%20105.0%20L190.6%2085.0%20Z%22/%3E%3Cpath%20d%3D%22M95.4%20100.0%20L156.0%20135.0%22/%3E%3Cpath%20d%3D%22M190.6%20115.0%20L156.0%20135.0%22/%3E%3Cpath%20d%3D%22M95.4%2085.0%20L156.0%20120.0%22/%3E%3Cpath%20d%3D%22M190.6%20100.0%20L156.0%20120.0%22/%3E%3Cpath%20d%3D%22M107.5%20120.0%20L114.4%20124.0%20L114.4%20115.0%20L107.5%20111.0%20Z%22/%3E%3Cpath%20d%3D%22M107.5%20105.0%20L114.4%20109.0%20L114.4%20100.0%20L107.5%2096.0%20Z%22/%3E%3Cpath%20d%3D%22M107.5%2090.0%20L114.4%2094.0%20L114.4%2085.0%20L107.5%2081.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%20127.0%20L126.5%20131.0%20L126.5%20122.0%20L119.6%20118.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%20112.0%20L126.5%20116.0%20L126.5%20107.0%20L119.6%20103.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%2097.0%20L126.5%20101.0%20L126.5%2092.0%20L119.6%2088.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20134.0%20L138.7%20138.0%20L138.7%20129.0%20L131.7%20125.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20119.0%20L138.7%20123.0%20L138.7%20114.0%20L131.7%20110.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20104.0%20L138.7%20108.0%20L138.7%2099.0%20L131.7%2095.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20141.0%20L150.8%20145.0%20L150.8%20136.0%20L143.9%20132.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20126.0%20L150.8%20130.0%20L150.8%20121.0%20L143.9%20117.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20111.0%20L150.8%20115.0%20L150.8%20106.0%20L143.9%20102.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%2037.0%20L157.7%2052.0%20L138.7%2063.0%20L112.7%2048.0%20Z%22/%3E%3Cpath%20d%3D%22M112.7%2070.0%20L112.7%2048.0%22/%3E%3Cpath%20d%3D%22M138.7%2085.0%20L138.7%2063.0%22/%3E%3Cpath%20d%3D%22M157.7%2074.0%20L157.7%2052.0%22/%3E%3Cpath%20d%3D%22M130.0%2086.0%20L69.4%20121.0%22/%3E%3Cpath%20d%3D%22M143.0%2093.5%20L82.4%20128.5%22/%3E%3Cpath%20d%3D%22M156.0%20101.0%20L95.4%20136.0%22/%3E%3Cpath%20d%3D%22M169.0%20108.5%20L108.3%20143.5%22/%3E%3Cpath%20d%3D%22M182.0%20116.0%20L121.3%20151.0%22/%3E%3Cpath%20d%3D%22M195.0%20123.5%20L134.3%20158.5%22/%3E%3Cpath%20d%3D%22M207.9%20131.0%20L147.3%20166.0%22/%3E%3Cpath%20d%3D%22M130.0%2086.0%20L220.9%20138.5%22/%3E%3Cpath%20d%3D%22M117.0%2093.5%20L207.9%20146.0%22/%3E%3Cpath%20d%3D%22M104.0%20101.0%20L195.0%20153.5%22/%3E%3Cpath%20d%3D%22M91.0%20108.5%20L182.0%20161.0%22/%3E%3Cpath%20d%3D%22M78.0%20116.0%20L169.0%20168.5%22/%3E%3Cpath%20d%3D%22M86.7%20121.0%20L147.3%20156.0%22/%3E%3Cpath%20d%3D%22M89.3%20119.5%20L84.1%20122.5%22/%3E%3Cpath%20d%3D%22M149.9%20154.5%20L144.7%20157.5%22/%3E%3C/svg%3E"),linear-gradient(#93c5fd14 1px,transparent 1px),linear-gradient(90deg,#93c5fd14 1px,transparent 1px),linear-gradient(135deg,#172554,#1e2a4a)}
html[data-theme="dark"] .zc--amber .zc-band{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22200%22%20height%3D%22170%22%20viewBox%3D%2240%20-24%20200%20170%22%20fill%3D%22none%22%20stroke%3D%22%23fcd9a0%22%20stroke-width%3D%221.1%22%20stroke-linejoin%3D%22round%22%20stroke-opacity%3D%22.5%22%3E%3Cpath%20d%3D%22M130.0%2050.0%20L190.6%2085.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22%20fill%3D%22%23fcd9a0%22%20fill-opacity%3D%22.10%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M190.6%20131.0%20L156.0%20151.0%20L156.0%20105.0%20L190.6%2085.0%20Z%22%20fill%3D%22%23fcd9a0%22%20fill-opacity%3D%22.18%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M95.4%20116.0%20L156.0%20151.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22%20fill%3D%22%23fcd9a0%22%20fill-opacity%3D%22.06%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M131.7%2037.0%20L157.7%2052.0%20L138.7%2063.0%20L112.7%2048.0%20Z%22%20fill%3D%22%23fcd9a0%22%20fill-opacity%3D%22.12%22%20stroke%3D%22none%22/%3E%3Cpath%20d%3D%22M130.0%2050.0%20L190.6%2085.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22/%3E%3Cpath%20d%3D%22M95.4%20116.0%20L156.0%20151.0%20L156.0%20105.0%20L95.4%2070.0%20Z%22/%3E%3Cpath%20d%3D%22M190.6%20131.0%20L156.0%20151.0%20L156.0%20105.0%20L190.6%2085.0%20Z%22/%3E%3Cpath%20d%3D%22M95.4%20100.0%20L156.0%20135.0%22/%3E%3Cpath%20d%3D%22M190.6%20115.0%20L156.0%20135.0%22/%3E%3Cpath%20d%3D%22M95.4%2085.0%20L156.0%20120.0%22/%3E%3Cpath%20d%3D%22M190.6%20100.0%20L156.0%20120.0%22/%3E%3Cpath%20d%3D%22M107.5%20120.0%20L114.4%20124.0%20L114.4%20115.0%20L107.5%20111.0%20Z%22/%3E%3Cpath%20d%3D%22M107.5%20105.0%20L114.4%20109.0%20L114.4%20100.0%20L107.5%2096.0%20Z%22/%3E%3Cpath%20d%3D%22M107.5%2090.0%20L114.4%2094.0%20L114.4%2085.0%20L107.5%2081.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%20127.0%20L126.5%20131.0%20L126.5%20122.0%20L119.6%20118.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%20112.0%20L126.5%20116.0%20L126.5%20107.0%20L119.6%20103.0%20Z%22/%3E%3Cpath%20d%3D%22M119.6%2097.0%20L126.5%20101.0%20L126.5%2092.0%20L119.6%2088.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20134.0%20L138.7%20138.0%20L138.7%20129.0%20L131.7%20125.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20119.0%20L138.7%20123.0%20L138.7%20114.0%20L131.7%20110.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%20104.0%20L138.7%20108.0%20L138.7%2099.0%20L131.7%2095.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20141.0%20L150.8%20145.0%20L150.8%20136.0%20L143.9%20132.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20126.0%20L150.8%20130.0%20L150.8%20121.0%20L143.9%20117.0%20Z%22/%3E%3Cpath%20d%3D%22M143.9%20111.0%20L150.8%20115.0%20L150.8%20106.0%20L143.9%20102.0%20Z%22/%3E%3Cpath%20d%3D%22M131.7%2037.0%20L157.7%2052.0%20L138.7%2063.0%20L112.7%2048.0%20Z%22/%3E%3Cpath%20d%3D%22M112.7%2070.0%20L112.7%2048.0%22/%3E%3Cpath%20d%3D%22M138.7%2085.0%20L138.7%2063.0%22/%3E%3Cpath%20d%3D%22M157.7%2074.0%20L157.7%2052.0%22/%3E%3Cpath%20d%3D%22M130.0%2086.0%20L69.4%20121.0%22/%3E%3Cpath%20d%3D%22M143.0%2093.5%20L82.4%20128.5%22/%3E%3Cpath%20d%3D%22M156.0%20101.0%20L95.4%20136.0%22/%3E%3Cpath%20d%3D%22M169.0%20108.5%20L108.3%20143.5%22/%3E%3Cpath%20d%3D%22M182.0%20116.0%20L121.3%20151.0%22/%3E%3Cpath%20d%3D%22M195.0%20123.5%20L134.3%20158.5%22/%3E%3Cpath%20d%3D%22M207.9%20131.0%20L147.3%20166.0%22/%3E%3Cpath%20d%3D%22M130.0%2086.0%20L220.9%20138.5%22/%3E%3Cpath%20d%3D%22M117.0%2093.5%20L207.9%20146.0%22/%3E%3Cpath%20d%3D%22M104.0%20101.0%20L195.0%20153.5%22/%3E%3Cpath%20d%3D%22M91.0%20108.5%20L182.0%20161.0%22/%3E%3Cpath%20d%3D%22M78.0%20116.0%20L169.0%20168.5%22/%3E%3Cpath%20d%3D%22M86.7%20121.0%20L147.3%20156.0%22/%3E%3Cpath%20d%3D%22M89.3%20119.5%20L84.1%20122.5%22/%3E%3Cpath%20d%3D%22M149.9%20154.5%20L144.7%20157.5%22/%3E%3C/svg%3E"),linear-gradient(#fcd9a014 1px,transparent 1px),linear-gradient(90deg,#fcd9a014 1px,transparent 1px),linear-gradient(135deg,#3b2405,#2c2110)}
html[data-theme="dark"] .zc--blue .zc-band-name{color:#bfdbfe}html[data-theme="dark"] .zc--amber .zc-band-name{color:#fcd9a0}
html[data-theme="dark"] .zc--blue .zc-badge{background:#1e3a8a;color:#dbeafe}html[data-theme="dark"] .zc--amber .zc-badge{background:#4a2e07;color:#fde7c4}
@media (max-width:900px){.zc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media (max-width:600px){.zc-grid{grid-template-columns:1fr}.zc-band{height:88px}}
/* Learn cards: the whole card is the link (stretched title link) */
.lh-card{position:relative;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.lh-card h3 a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.lh-card:hover{transform:translateY(-3px);border-color:var(--line-strong);box-shadow:0 16px 32px -20px #17253680}
.lh-card:focus-within{outline:3px solid var(--cta);outline-offset:3px}
.lh-card h3 a:focus-visible{outline:none}
.zc-grid.gl-recent,.zc-grid.gl-all{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:14px 0 28px;padding:0}
@media (max-width:900px){.zc-grid.gl-recent,.zc-grid.gl-all{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media (max-width:600px){.zc-grid.gl-recent,.zc-grid.gl-all{grid-template-columns:1fr}}
.zc-grid.gl-recent a{display:flex;padding:0;height:auto;border:1px solid var(--line);border-radius:16px}
.zc-grid.gl-recent small{display:block;margin-top:auto}
/* Learn section tiles: distinct colours, two-line text on phones */
.ll--guides .ll-icon{background:#fff3df;color:#8a5410}
.ll--glossary .ll-icon{background:#e6efff;color:#1d4ed8}
.ll--updates .ll-icon{background:#dcfce7;color:#15803d}
html[data-theme="dark"] .ll--guides .ll-icon{background:#3b2405;color:#fcd9a0}
html[data-theme="dark"] .ll--glossary .ll-icon{background:#172554;color:#bfdbfe}
html[data-theme="dark"] .ll--updates .ll-icon{background:#14361f;color:#86efac}
.learn-link{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.learn-link:hover{transform:translateY(-2px);box-shadow:0 12px 24px -18px #17253680}
@media (max-width:760px){
  .learn-link .ll-text small{white-space:normal;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .learn-link{padding:12px;gap:12px}
}
/* Pill rows and the header menu scroll sideways without a visible scrollbar */
.lh-pills,.gl-pills,.product-header .product-nav{scrollbar-width:none}
.lh-pills::-webkit-scrollbar,.gl-pills::-webkit-scrollbar,.product-header .product-nav::-webkit-scrollbar{display:none}
/* Header v2: solid page colour behind the floating bar so text never shows above it; compact on phones */
.theme-tools .product-header,.theme-home .product-header{background:var(--bg)!important}
@media (max-width:760px){
  .theme-tools .product-header,.theme-home .product-header{padding:6px 0 4px}
  .product-header .product-bar{border-radius:18px;padding:6px 8px 4px 12px;row-gap:2px}
  .product-header .brand img.brand-icon{height:32px!important;width:auto}
  .product-header .header-tools .icon-btn{width:44px;height:44px;min-width:44px;min-height:44px}
  .theme-tools .product-header .product-nav a,.theme-home .product-header .product-nav a{font-size:.8rem;padding:.42rem .62rem}
}
/* Animated 3D charts (zysnor-charts.js): figures start when they scroll into view; bars grow from zero */
svg.zy-chart{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.zy-anim:not(.zy-play) *{animation-play-state:paused!important}
.zy-anim .zy-gx .b3,.zy-anim .zy-gy .b3{animation:none!important;opacity:1!important;transform:none!important}
.zy-anim .zy-gx,.zy-anim .zy-gy{transform-box:fill-box;opacity:0}
.zy-anim .zy-gx{transform-origin:0 50%;transform:scaleX(.02)}
.zy-anim .zy-gy{transform-origin:50% 100%;transform:scaleY(.02)}
.zy-anim.zy-play .zy-gx{animation:zyGrowX 1.1s cubic-bezier(.2,.8,.2,1) both}
.zy-anim.zy-play .zy-gy{animation:zyGrowY 1s cubic-bezier(.2,.8,.2,1) both}
.zy-anim.zy-play .zy-gx:nth-of-type(2),.zy-anim.zy-play .zy-gy:nth-of-type(2){animation-delay:.12s}
.zy-anim.zy-play .zy-gx:nth-of-type(3),.zy-anim.zy-play .zy-gy:nth-of-type(3){animation-delay:.24s}
.zy-anim.zy-play .zy-gx:nth-of-type(4),.zy-anim.zy-play .zy-gy:nth-of-type(4){animation-delay:.36s}
.zy-anim.zy-play .zy-gx:nth-of-type(n+5),.zy-anim.zy-play .zy-gy:nth-of-type(n+5){animation-delay:.48s}
@keyframes zyGrowX{from{transform:scaleX(.02);opacity:0}to{transform:scaleX(1);opacity:1}}
@keyframes zyGrowY{from{transform:scaleY(.02);opacity:0}to{transform:scaleY(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.zy-anim .zy-gx,.zy-anim .zy-gy{transform:none!important;opacity:1!important;animation:none!important}}
/* About: contact list in the closing band */
.about-cta .about-contact{list-style:none;margin:.6rem 0 0;padding:0;display:grid;gap:.3rem}
.about-cta .about-contact a{color:#f0b35a!important;text-decoration:underline;text-underline-offset:3px;font-weight:600}
/* Learn hub: Finance and Software guides sections (owner 2026-11-21) */
.lh-badge--finance { background: #e3f4f1; color: #0f766e; border-color: #b4e0d8; }
.lh-badge--software-guides { background: #e7f6f0; color: #0f6b4a; border-color: #b7e3d0; }
.lh-sec-note { margin: -.4rem 0 1rem; color: var(--muted); }
.card--guide { border-color: var(--cta); }
/* Owner 2026-11-21: the brand name is plain text in the brand style, never a link (only the logo links home). */
span.zysnor-name { letter-spacing: .02em; }
.guide-fig.is-narrow img { width: auto; max-width: 100%; margin: 0 auto; }

/* PageSpeed (2026-11-21): on the home page the browser skips layout and paint of the lower sections until they come near
   the screen. The content stays in the page, searchable and readable by screen readers. */
.theme-home .home-safe, .theme-home .home-guides, .theme-home .home-sw-band, .theme-home .home-founder-strip, .theme-home .home-faq, .theme-home .home-end { content-visibility: auto; contain-intrinsic-size: auto 640px; }

/* Learn navigation: sections strip, section previews on the Learn page */
.learn-tabs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 18px}
.learn-tabs a{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--ink);font-weight:600;font-size:.95rem;text-decoration:none}
.learn-tabs a:hover,.learn-tabs a:focus-visible{border-color:var(--accent)}
.learn-tabs a[aria-current]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.theme-tools main .learn-tabs a[aria-current]:not(.cta):not(.secondary-action):not(.chip):not(.tool-tile),.theme-home main .learn-tabs a[aria-current]:not(.cta):not(.secondary-action):not(.chip):not(.tool-tile){color:var(--bg)}
.learn-tabs .lt-back{border-style:dashed}
.lh-preview{margin:34px 0 8px;scroll-margin-top:90px}
.lh-preview .zc-grid{margin-top:14px}
.learn-more{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--accent-strong,var(--accent));text-decoration:none;border-bottom:2px solid currentColor;padding-bottom:1px}
.learn-more:hover,.learn-more:focus-visible{opacity:.8}
@media (max-width:640px){.learn-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}.learn-tabs a{white-space:nowrap}}
/* Search: guides, glossary and updates under the tool results */
.search-more{margin-top:var(--sp-4,1.5rem);display:grid;gap:var(--sp-4,1.5rem)}
.search-group h2{margin:0 0 8px;font-size:1.1rem}
.search-group ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.search-group li{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.search-group li a{font-weight:700;color:var(--ink);text-decoration:none}
.search-group li a:hover,.search-group li a:focus-visible{text-decoration:underline}
.search-group li span{color:var(--muted);font-size:.92rem}
/* Home: "What ZYSNOR offers" text */
.home-about{margin-block:var(--sp-7,3rem)}
.home-about .about-copy{max-width:780px}
.home-about .about-copy p{margin:0 0 1rem;line-height:1.7;font-size:1.05rem}
.home-about .about-copy a{font-weight:600}

/* Compact header menu (owner request 24 Nov 2026): small icons, one-line names, more columns */
.product-header .mega { width: min(1180px, calc(100vw - 2rem)); }
.product-header .mega-inner { padding: .75rem .9rem .85rem; }
.product-header .mega-head { padding-bottom: .5rem; margin-bottom: .35rem; }
.product-header .mega-head strong { font-size: var(--fs-base); }
.product-header .mega-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 .5rem; }
.product-header .mega-list a { align-items: center; gap: .55rem; padding: .25rem .45rem; min-height: 44px; border-radius: 10px; }
.product-header .mega-tile { width: 28px; height: 28px; border-radius: 8px; }
.product-header .mega-tile:has(.tool-logo), .product-header .mega .mega-tile:has(.tool-logo) { width: 30px !important; height: 30px !important; padding: 1px; border-radius: 8px; }
.product-header .mega-ico { width: 16px; height: 16px; }
.product-header .mega-txt b { font-size: var(--fs-sm); font-weight: 650; }
.product-header .mega-txt small { display: none; }
.product-header .mega .mega-col-head .mega-tile { width: 26px; height: 26px; }
@media (max-width: 1250px) { .product-header .mega-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .product-header .mega-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Planned tools shown in the menu without a link */
.product-header .mega-list .mega-soon-item { display: flex; align-items: center; gap: .55rem; padding: .25rem .45rem; min-height: 44px; opacity: .6; cursor: default; }
.product-header .mega-list .mega-txt small.mega-soon-badge { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--muted); }

/* Equal-height tiles on the Tools page (owner request 24 Nov 2026) */
.tool-tiles > li { display: flex; }
.tool-tiles > li > .tool-tile { flex: 1 1 auto; width: 100%; }
.tool-tiles .tool-tile span.tile-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Hub cards: every link sits in the text column, so an extra link (for example the Arabic version) cannot widen the icon column */
.theme-tools .tool-card[data-catalog-tool] > a { grid-column: 2; justify-self: start; }
.theme-tools .tool-card[data-catalog-tool] .tool-guide-link { white-space: nowrap; }

/* Full header width layout for guide articles (owner rule, 24 Nov 2026). Applied by scripts/wide_layout.py. */
body .guide-article.guide-wide{max-width:none;width:100%;margin-inline:0}
.guide-wide > *,.guide-wide .guide-head,.guide-wide .guide-answer,.guide-wide .guide-body,.guide-wide .guide-sources,.guide-wide .guide-author{max-width:none}
body .guide-wide .guide-faq:not(#zy):not(#zz){max-width:none;margin-inline:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem;align-items:start}
body .guide-wide .guide-faq:not(#zy):not(#zz) > h2{grid-column:1/-1;text-align:start}
@media (min-width:1100px){
  .guide-article.guide-wide{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);column-gap:2.5rem;grid-auto-flow:row dense}
  .guide-wide > *{grid-column:1/-1}
  .guide-wide > .guide-toc{grid-column:2;align-self:start;position:sticky;top:96px;margin-top:0}
  .guide-wide > .guide-body{grid-column:1}
}
@media (max-width:760px){body .guide-wide .guide-faq:not(#zy):not(#zz){grid-template-columns:minmax(0,1fr)}}

/* ZYSNOR Glossary (R51) */
.gl-try{border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:12px;padding:14px 16px;margin:22px 0;background:var(--panel)}
.gl-try p{margin:0 0 6px}.gl-try-title{font-weight:700}
.gl-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:10px 0 0}
.gl-chips a,.gl-chips span{display:inline-block;padding:6px 12px;border:1px solid var(--line);border-radius:999px;text-decoration:none}
.gl-chips span{color:var(--muted)}
.gl-table-wrap{overflow-x:auto;margin:12px 0}
.gl-table{width:100%;border-collapse:collapse}.gl-table th,.gl-table td{border:1px solid var(--line);padding:6px 8px;text-align:left}
.gl-search-wrap label{display:block;font-weight:600;margin-bottom:4px}
.gl-search{width:100%;max-width:520px;padding:12px 14px;border:1px solid var(--line-strong,var(--line));border-radius:12px;font-size:16px;background:var(--bg);color:var(--ink)}
.gl-search-wrap{margin:8px 0 18px}
.gl-az{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 22px}
.gl-az a,.gl-az span{min-width:34px;text-align:center;padding:6px 0;border:1px solid var(--line);border-radius:8px;text-decoration:none}
.gl-az span{opacity:.4}
.gl-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin:12px 0 26px}
.gl-group{border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--panel)}
.gl-group h3{margin:0 0 6px}.gl-group p{margin:0 0 10px;color:var(--muted)}.gl-group ul{margin:0;padding-left:18px}
.gl-recent{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin:10px 0 26px;padding:0;list-style:none}
.gl-recent a{display:block;height:100%;border:1px solid var(--line);border-radius:12px;padding:12px;text-decoration:none;background:var(--panel)}
.gl-recent small{display:block;color:var(--muted);margin-top:4px}
.gl-az-list small{color:var(--muted)}
.gl-back{margin-top:28px}
.home-glossary{margin-top:8px}
.gl-guides-box{max-width:760px}
/* v2: compact hub, group chips, jump links */
.gl-group .gl-chips{margin:0}.gl-group .gl-chips a{font-size:.92rem;padding:5px 10px}
.gl-count{display:inline-block;min-width:1.6em;padding:0 .4em;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font-size:.75rem;vertical-align:middle;text-align:center}
.gl-jump{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:-8px 0 22px;font-size:.9rem}
.gl-jump span{color:var(--muted);font-weight:600;margin-right:4px}
.gl-jump a{padding:4px 10px;border:1px solid var(--line);border-radius:999px;text-decoration:none}
@media (max-width:640px){
 .gl-recent{grid-template-columns:1fr 1fr;gap:8px}
 .gl-recent a{padding:10px;font-size:.92rem}
 .gl-groups{grid-template-columns:1fr;gap:10px}
 .gl-group{padding:14px}
 .gl-az a,.gl-az span{min-width:30px;padding:5px 0}
}
.gl-group ul.gl-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0;list-style:none}
.gl-group ul.gl-chips li{margin:0}
@media (max-width:640px){.gl-jump{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}.gl-jump a{white-space:nowrap}}
/* Learn page: compact Glossary and Updates links (v4) */
.learn-link{display:inline-flex;align-items:center;gap:12px;width:calc((100% - 28px) / 3);min-width:0;vertical-align:top;margin:0 14px 14px 0;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);text-decoration:none;color:var(--ink)}
.learn-link + .learn-link + .learn-link{margin-right:0}
.learn-link:hover,.learn-link:focus-visible{border-color:var(--accent)}
.ll-icon{flex:0 0 40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#fff3df;color:#8a5410}
[data-theme="dark"] .ll-icon,html.dark .ll-icon{background:#3b2405;color:#fcd9a0}
.ll-icon svg{width:22px;height:22px}
.ll-text{display:flex;flex-direction:column;min-width:0;flex:1}
.ll-text strong{font-size:1rem}
.ll-text small{color:var(--muted);font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ll-arrow{color:var(--accent);font-weight:700}
@media (max-width:760px){.learn-link{display:flex;width:auto;margin:0 0 10px}}
.gl-note{margin:14px 0 6px;padding:12px 14px;border:1px solid #f3d39b;border-left:4px solid #b0701d;border-radius:12px;background:#fff8ec;color:var(--ink)}
[data-theme="dark"] .gl-note,html.dark .gl-note{background:#2a1b06;border-color:#7a4a0c}
.learn-sec-title{margin:8px 0 4px;font-size:1.6rem}
/* R53: capped group cards with "+X more", pills */
.gl-groups{align-items:stretch}
.gl-group{display:flex;flex-direction:column}
.gl-more{margin-top:10px}
.gl-more summary{cursor:pointer;font-weight:700;color:var(--accent);list-style:none;display:inline-block;padding:4px 0}
.gl-more summary::-webkit-details-marker{display:none}
.gl-more[open] summary{margin-bottom:6px}
.gl-pills{margin:0 0 22px}
.gl-search-wrap label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.gl-recent[hidden]{display:none}
.gl-groups .gl-group ul.gl-chips{display:flex!important;flex-wrap:wrap;gap:6px;padding:0!important;margin:0;list-style:none}
.gl-groups .gl-group ul.gl-chips li{margin:0!important}
.gl-groups .gl-group ul.gl-chips a{display:inline-block;white-space:normal}
.gl-groups details.gl-more{border:0!important;background:none!important;padding:0!important;margin:10px 0 0!important;box-shadow:none!important;border-radius:0!important}
.gl-groups details.gl-more>summary{border:0!important;background:none!important;padding:4px 0!important;margin:0!important;min-height:0!important;box-shadow:none!important;font-size:.95rem}
.gl-groups details.gl-more>summary::after{content:none!important;display:none!important}
.gl-groups details.gl-more[open]>summary{margin-bottom:8px!important}
.gl-group h3{display:flex;align-items:flex-start;gap:8px;flex-wrap:nowrap}
.gl-gico{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:#fff3df;color:#8a5410}
.gl-gico .zy-ico{width:18px;height:18px}
[data-theme="dark"] .gl-gico{background:#3b2405;color:#fcd9a0}
.gl-gname{flex:0 1 auto;min-width:0;padding-top:2px}
.gl-group h3 .gl-count{flex:none;margin-top:5px}
/* Hub search: button, suggestions, results line, compact pills (2026-11-21) */
.gl-search-form{position:relative;display:flex;gap:8px;max-width:640px}
.gl-search-form .gl-search{max-width:none;flex:1;min-width:0}
.gl-search-btn{padding:0 20px;min-height:48px;border:0;border-radius:12px;background:var(--ink);color:var(--bg);font:inherit;font-weight:700;cursor:pointer}
.gl-search-btn:hover{opacity:.9}
.gl-search-btn:focus-visible,.gl-search:focus-visible{outline:3px solid var(--accent,#d48824);outline-offset:2px}
.gl-suggest{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;background:var(--bg);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.14);max-height:360px;overflow:auto}
.gl-suggest [role=option]{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:8px;color:var(--ink);cursor:pointer}
.gl-suggest [role=option]:hover,.gl-suggest [role=option][aria-selected="true"]{background:var(--panel,#f2f4f7)}
.gl-sugg-name{font-weight:600}.gl-sugg-name mark{background:none;color:inherit;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.gl-sugg-group{color:var(--muted);font-size:.85rem;white-space:nowrap}
.gl-sugg-none{padding:10px 12px;color:var(--muted)}
.gl-count-line{margin:10px 0 0;color:var(--muted);font-size:.95rem}
.gl-count-line:empty{display:none}
.theme-tools .gl-pills{display:flex;flex-wrap:wrap;gap:8px}
.theme-tools .gl-pills .gl-pill{padding:5px 12px !important;min-height:32px;font-size:.9rem;font-weight:600}
.theme-tools .gl-pills .gl-pill-more{border-style:dashed !important;color:var(--muted)}
.gl-pills .gl-pill[hidden]{display:none !important}
@media (max-width:640px){.gl-search-btn{padding:0 14px}.gl-sugg-group{display:none}}
.gl-sugg-head{padding:8px 12px 4px;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.gl-other{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:8px}
.gl-other a{display:block;padding:12px 14px;border:1px solid var(--line);border-radius:12px;text-decoration:none;color:var(--ink)}
.gl-other small{color:var(--muted)}
.gl-suggest .gl-sugg-split{margin-top:6px;border-top:1px solid var(--line);border-radius:0 0 8px 8px;padding-top:14px}
/* Hub pages use the full content width like the header; reading text stays narrow */
.guide-article.gl-hub{max-width:1280px}
.guide-article.gl-hub>p,.guide-article.gl-hub>.gl-search-wrap{max-width:780px}
