:root{--c-bg: #f7f8fb; --c-surface: #ffffff; --c-surface-2: #f1f3f9; --c-border: #e6e8f0; --c-text: #0f172a; --c-text-muted: #5b6478; --c-text-soft: #606a7e; --c-primary: #6366f1; --c-primary-700: #4f46e5; --c-primary-ink: #4f46e5; --c-violet: #8b5cf6; --c-apps: #6366f1; --c-apps-2: #8b5cf6; --c-tools: #0ea5b7; --c-tools-2: #06b6d4; --c-tools-ink: #0e7490; --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%); --grad-apps: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); --grad-tools: linear-gradient(135deg, #0ea5b7 0%, #06b6d4 100%); --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05); --shadow-md: 0 4px 14px rgba(15,23,42,.08); --shadow-lg: 0 18px 40px -12px rgba(15,23,42,.22); --radius: 14px; --radius-lg: 22px; --radius-pill: 999px; --maxw: 1180px; --header-h: 66px; --font: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}
@font-face{font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter/inter-greek.woff2') format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;}
@font-face{font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter/inter-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family: 'Inter Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 100 500; size-adjust: 106.85%; ascent-override: 90.66%; descent-override: 22.57%; line-gap-override: 0%;}
@font-face{font-family: 'Inter Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600 700; size-adjust: 102.3%; ascent-override: 94.7%; descent-override: 23.58%; line-gap-override: 0%;}
@font-face{font-family: 'Inter Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 800 900; size-adjust: 104%; ascent-override: 93.15%; descent-override: 23.19%; line-gap-override: 0%;}
@media (prefers-color-scheme: dark){
:root{--c-bg: #0b0f1a; --c-surface: #131826; --c-surface-2: #1b2233; --c-border: #262e42; --c-text: #eef1f8; --c-text-muted: #a8b1c6; --c-text-soft: #8b95ac; --c-primary-ink: #a5b4fc; --c-tools-ink: #0ea5b7; --shadow-lg: 0 18px 40px -12px rgba(0,0,0,.6);}
}
*, *::before, *::after{box-sizing: border-box;}
*{margin: 0;}
html{scroll-behavior: smooth; -webkit-text-size-adjust: 100%;}
body{font-family: var(--font); background: var(--c-bg); color: var(--c-text); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;}
img{max-width: 100%; display: block;}
a{color: inherit; text-decoration: none;}
ul{list-style: none; padding: 0;}
h1, h2, h3, h4{line-height: 1.2; font-weight: 800; letter-spacing: -.02em;}
.container{width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px;}
.container.container-wide{max-width: none; padding: 0 28px;}
.container-wide > .tool-stage{margin-top: 26px;}
header{position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--c-surface) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--c-border);}
.header-content{max-width: var(--maxw); margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;}
.logo{display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.16rem; letter-spacing: -.03em;}
.logo .logo-mark{width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 1rem; box-shadow: var(--shadow-sm);}
.logo b{color: var(--c-primary-ink);}
@media (prefers-color-scheme: dark){
.logo b{color: #a5b4fc;}
}
nav ul{display: flex; align-items: center; gap: 6px;}
nav a{display: block; padding: 9px 14px; border-radius: var(--radius-pill); color: var(--c-text-muted); font-weight: 600; font-size: .94rem; transition: background .18s, color .18s;}
nav a:hover{background: var(--c-surface-2); color: var(--c-text);}
nav a.active{color: var(--c-primary-ink); background: color-mix(in srgb, var(--c-primary) 12%, transparent);}
.nav-toggle{display: none; border: 0; background: var(--c-surface-2); color: var(--c-text); width: 42px; height: 42px; border-radius: 12px; font-size: 1.2rem; cursor: pointer;}
.btn{display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: .96rem; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s; white-space: nowrap;}
.btn:active{transform: translateY(1px);}
.btn:disabled, .btn[disabled]{opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; pointer-events: none;}
.btn-primary{background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-md);}
.btn-primary:hover{box-shadow: var(--shadow-lg); transform: translateY(-2px);}
.btn-ghost{background: var(--c-surface); color: var(--c-text); border-color: var(--c-border);}
.btn-ghost:hover{background: var(--c-surface-2);}
.btn-lg{padding: 14px 28px; font-size: 1.02rem;}
.hero{position: relative; overflow: hidden; padding: 84px 0 72px;}
.hero::before{content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 15% 0%, rgba(99,102,241,.16), transparent 60%), radial-gradient(50% 80% at 90% 10%, rgba(6,182,212,.16), transparent 60%);}
.hero-eyebrow{display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text-muted); font-weight: 600; font-size: .82rem; margin-bottom: 22px; box-shadow: var(--shadow-sm);}
.hero-eyebrow .dot{width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18);}
.hero h1{font-size: clamp(2.1rem, 5.2vw, 3.6rem); max-width: 760px;}
.hero-actions{display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px;}
.hero-stats{display: flex; flex-wrap: wrap; gap: 38px; margin-top: 52px;}
.hero-grid{display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;}
.hero-media img{width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--c-border);}
@media (max-width: 920px){
.hero-grid{grid-template-columns: 1fr; gap: 32px;}
.hero-media{max-width: 580px;}
}
.page-hero{padding: 56px 0 28px; position: relative;}
.page-hero .breadcrumb{font-size: .86rem; color: var(--c-text-soft); margin-bottom: 14px; font-weight: 600;}
.page-hero .breadcrumb a:hover{color: var(--c-primary);}
.page-hero h1{font-size: clamp(1.9rem, 4vw, 2.8rem); display: flex; align-items: center; gap: 14px;}
.page-hero p{color: var(--c-text-muted); max-width: 620px; margin-top: 12px; font-size: 1.05rem;}
.page-hero .hero-icon{width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.4rem; flex: none;}
.hero-icon.apps{background: var(--grad-apps);}
.hero-icon.tools{background: var(--grad-tools);}
.page-hero-top{display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px;}
.page-hero-top .breadcrumb{margin-bottom: 0; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.lang-select{position: relative; flex: none; font-weight: 600;}
.lang-select > summary{list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--c-border); border-radius: 11px; background: var(--c-surface); color: var(--c-text); font-size: .86rem; white-space: nowrap;}
.lang-select > summary::-webkit-details-marker{display: none;}
.lang-select > summary:hover{background: var(--c-surface-2);}
.lang-select > summary .flag{font-size: 1.05rem;}
.lang-select > summary .fa-chevron-down{font-size: .68rem; color: var(--c-text-soft); transition: transform .15s;}
.lang-select[open] > summary .fa-chevron-down{transform: rotate(180deg);}
.lang-menu{position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px; list-style: none; min-width: 190px; max-height: 60vh; overflow: auto; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 13px; box-shadow: 0 14px 40px rgba(0,0,0,.16);}
.lang-menu li{margin: 0;}
.lang-menu a{display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--c-text); text-decoration: none; font-size: .9rem; font-weight: 600;}
.lang-menu a .flag{font-size: 1.1rem;}
.lang-menu a:hover{background: var(--c-surface-2);}
.lang-menu a[aria-current="true"]{color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 12%, var(--c-surface-2));}
.lang-menu .lang-soon{display: flex; align-items: center; gap: 10px; padding: 9px 11px; font-size: .9rem; font-weight: 600; color: var(--c-text-soft); opacity: .5; cursor: default;}
.lang-menu .lang-soon .flag{filter: grayscale(1);}
section.block{padding: 46px 0;}
.section-head{display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap;}
.section-head h2{font-size: clamp(1.4rem, 3vw, 1.9rem);}
.section-head p{color: var(--c-text-muted); margin-top: 6px;}
.section-head a.see-all{color: var(--c-primary-ink); font-weight: 700; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center;}
.section-head a.see-all:hover{gap: 10px;}
.split{display: grid; grid-template-columns: 1fr 1fr; gap: 22px;}
.cat-panel{position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 34px; color: #fff; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s;}
.cat-panel:hover{transform: translateY(-4px); box-shadow: var(--shadow-lg);}
.cat-panel.apps{background: var(--grad-apps);}
.cat-panel.tools{background: var(--grad-tools);}
.cat-panel .cat-ic{font-size: 1.8rem; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; backdrop-filter: blur(4px);}
.cat-panel h2{font-size: 1.7rem; margin-top: 18px;}
.cat-panel p{color: rgba(255,255,255,.86); margin-top: 8px; max-width: 90%;}
.cat-panel .cat-go{margin-top: 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;}
.cat-panel .cat-go i{transition: transform .2s;}
.cat-panel:hover .cat-go i{transform: translateX(5px);}
.cat-panel .cat-bg{position: absolute; right: -30px; bottom: -40px; font-size: 12rem; opacity: .12; transform: rotate(-12deg);}
.grid{display: grid; gap: 20px;}
.grid.apps-grid{grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));}
.grid.tools-grid{grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));}
.card{background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s, border-color .2s; overflow: hidden;}
.card:hover{transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border));}
.app-card{padding: 22px; display: flex; flex-direction: column; gap: 14px; height: 100%;}
.app-card .app-top{display: flex; gap: 14px; align-items: center;}
.app-icon{width: 60px; height: 60px; border-radius: 16px; flex: none; display: grid; place-items: center; color: #fff; font-size: 1.6rem; box-shadow: var(--shadow-sm);}
img.app-icon{object-fit: cover; background: var(--c-surface-2);}
.app-card h3{font-size: 1.12rem;}
.app-card .app-cat{color: var(--c-text-soft); font-size: .82rem; font-weight: 600;}
.app-shots{display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;}
.app-shots img{width: 100%; height: auto; aspect-ratio: 1080 / 2316; object-fit: cover; border-radius: 10px; background: var(--c-surface-2); border: 1px solid var(--c-border); transition: transform .15s;}
.app-card:hover .app-shots img{transform: translateY(-2px);}
@media (max-width: 420px){
.app-shots{grid-template-columns: repeat(3, 1fr); gap: 6px;}
}
.app-card p.desc{color: var(--c-text-muted); font-size: .92rem; flex: 1;}
.app-card .app-foot{display: flex; align-items: center; justify-content: space-between;}
.platforms{display: flex; gap: 7px;}
.platform{width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-text-muted); font-size: .9rem;}
.tool-card{padding: 22px; display: flex; flex-direction: column; gap: 12px; height: 100%;}
.tool-ic{width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; background: var(--grad-tools);}
.tool-card h3{font-size: 1.08rem;}
.tool-card p{color: var(--c-text-muted); font-size: .92rem; flex: 1;}
.tool-card .tool-go{color: var(--c-tools-ink); font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center;}
.tool-card:hover .tool-go{gap: 10px;}
.chips{display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;}
.chip{padding: 8px 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: .88rem; background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text-muted); cursor: pointer; transition: all .15s;}
.chip:hover{border-color: var(--c-primary); color: var(--c-primary);}
.chip.active{background: var(--c-primary); border-color: var(--c-primary); color: #fff;}
.home-cats{display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px;}
.home-cats-label{color: var(--c-text-muted); font-weight: 600; font-size: .88rem; margin-right: 2px;}
.home-cat{display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: var(--radius-pill); font-weight: 600; font-size: .88rem; background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text-muted); transition: all .15s;}
.home-cat:hover{border-color: var(--c-tools); color: var(--c-tools-ink);}
.home-cat span{font-size: .76rem; font-weight: 700; color: var(--c-text-soft); background: var(--c-surface-2); border-radius: var(--radius-pill); padding: 1px 7px;}
.home-cat:hover span{color: var(--c-tools-ink);}
.badge{display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700;}
.badge.lang{background: color-mix(in srgb, var(--c-primary) 12%, transparent); color: var(--c-primary);}
.store-buttons{display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px;}
.store-btn{display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 14px; background: #0f172a; color: #fff; transition: transform .15s, box-shadow .2s; box-shadow: var(--shadow-sm);}
.store-btn:hover{transform: translateY(-2px); box-shadow: var(--shadow-lg);}
.store-btn i{font-size: 1.7rem;}
.store-btn small{display: block; font-size: .68rem; opacity: .8; line-height: 1;}
.store-btn b{display: block; font-size: 1rem; line-height: 1.2;}
@media (prefers-color-scheme: dark){
.store-btn{background: #fff; color: #0f172a;}
}
.layout{display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; padding: 30px 0 60px;}
.prose h2{font-size: 1.4rem; margin: 28px 0 12px;}
.prose p{color: var(--c-text-muted); margin-bottom: 14px;}
.prose ul{list-style: none; padding-left: 2px; margin: 0 0 18px;}
.prose ul li{display: flex; gap: 12px; align-items: flex-start; color: var(--c-text-muted); margin-bottom: 10px;}
.prose ul li > div:first-child{flex: none; position: relative; width: 8px; align-self: stretch;}
.prose ul li > div:first-child .bullet.icon{position: absolute; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary);}
.prose ul li > div:first-child .bullet.line{display: none;}
.prose ul li > div:last-child{flex: 1;}
.shots{display: flex; gap: 16px; overflow-x: auto; padding: 10px 2px 20px; scroll-snap-type: x mandatory; scroll-padding: 2px;}
.shots::-webkit-scrollbar{height: 8px;}
.shots::-webkit-scrollbar-track{background: transparent;}
.shots::-webkit-scrollbar-thumb{background: var(--c-border); border-radius: var(--radius-pill);}
.shots::-webkit-scrollbar-thumb:hover{background: var(--c-text-soft);}
.shots .shot{flex: none; width: 200px; aspect-ratio: 9/19; border-radius: 22px; scroll-snap-align: start; background: var(--grad-apps); box-shadow: var(--shadow-md); display: grid; place-items: center; color: rgba(255,255,255,.7); font-size: 2rem; border: 5px solid var(--c-surface);}
.shots img.shot-img{flex: none; height: 400px; width: auto; border-radius: 18px; scroll-snap-align: start; box-shadow: var(--shadow-md); border: 1px solid var(--c-border); background: var(--c-surface-2); cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease;}
.shots img.shot-img:hover{transform: translateY(-4px); box-shadow: var(--shadow-lg);}
@media (max-width: 760px){
.shots img.shot-img{height: 320px;}
}
.app-feature{margin: 4px 0 20px;}
.app-feature img{display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--c-border); box-shadow: var(--shadow-md); background: var(--c-surface-2);}
.lightbox{position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(8,12,22,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 24px;}
.lightbox.open{display: flex;}
.lightbox img{max-width: 92vw; max-height: 86vh; border-radius: 16px; box-shadow: var(--shadow-lg);}
.lightbox button{position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; display: grid; place-items: center; transition: background .15s;}
.lightbox button:hover{background: rgba(255,255,255,.28);}
.lightbox .lb-close{top: 20px; right: 20px;}
.lightbox .lb-prev{left: 20px; top: 50%; transform: translateY(-50%);}
.lightbox .lb-next{right: 20px; top: 50%; transform: translateY(-50%);}
.lightbox .lb-counter{position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 600; letter-spacing: .03em;}
@media (max-width: 600px){
.lightbox button{width: 42px; height: 42px;}
.lightbox .lb-prev{left: 10px;}
.lightbox .lb-next{right: 10px;}
}
.side-card{background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 20px;}
.side-card h3{font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-soft); margin-bottom: 14px;}
.side-card .info-row{display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--c-border); font-size: .92rem;}
.side-card .info-row:last-child{border-bottom: 0;}
.side-card .info-row span{color: var(--c-text-muted);}
.aat-ad{margin: 0 0 28px; min-height: 90px; overflow: hidden;}
.aat-ad .adsbygoogle{display: block; width: 100%;}
.aat-ad-side{margin: 0 0 20px; min-height: 250px;}
.aat-ad-footer{margin: 10px 0 40px;}
.tool-stage{background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;}
.tool-stage .stage-body{padding: 26px;}
.tool-privacy{display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 10px 16px; border-radius: var(--radius-pill); background: color-mix(in srgb, #22c55e 12%, transparent); color: #166534; font-weight: 600; font-size: .9rem; line-height: 1.4;}
.tool-privacy i{font-size: 1rem; flex: none;}
@media (prefers-color-scheme: dark){
.tool-privacy{color: #4ade80;}
}
.wr-group{margin-bottom: 16px;}
.wr-group > label, .wr-group > .wr-grouplabel{display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px;}
.wr-select, .wr-input{width: 100%; padding: 11px 14px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-bg); color: var(--c-text); font-family: var(--font); font-size: .98rem;}
.wr-select:focus, .wr-input:focus{outline: 2px solid var(--c-primary); border-color: transparent;}
.wr-check{display: flex; align-items: center; gap: 10px;}
.wr-check input{width: 18px; height: 18px; accent-color: var(--c-primary); flex: none;}
.wr-check > label{margin: 0; font-weight: 500; font-size: .94rem;}
.wr-status{padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; margin: 18px 0;}
.wr-status.warning{background: rgba(245,158,11,.12); color: #b45309;}
.wr-status.error{background: rgba(239,68,68,.12); color: #dc2626;}
.wr-actions{display: flex; gap: 12px;}
.wr-actions .btn{flex: 1; justify-content: center;}
.wr-next{text-align: center; font-weight: 700; color: var(--c-tools-ink); margin-top: 16px; font-size: 1.05rem;}
.wr-settings{margin-top: 16px; padding: 16px 18px; background: var(--c-surface-2); border-radius: 12px; font-size: .9rem;}
.wr-settings strong{display: block; margin-bottom: 8px;}
.wr-hint{margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c-tools) 10%, transparent); color: var(--c-text-muted); font-size: .88rem; line-height: 1.5;}
.wr-hint i{color: var(--c-tools-ink);}
.wr-hint strong{color: var(--c-text);}
.md{border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden;}
.md-toolbar{display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--c-surface-2); border-bottom: 1px solid var(--c-border);}
.md-tb-group{display: flex; flex-wrap: wrap; gap: 2px; align-items: center;}
.md-tb{width: 32px; height: 32px; border: 0; background: transparent; border-radius: 7px; cursor: pointer; color: var(--c-text-muted); font-size: .9rem;}
.md-tb:hover{background: var(--c-surface); color: var(--c-primary);}
.md-tb-sep{width: 1px; height: 20px; background: var(--c-border); margin: 0 5px;}
.md-tb-right{display: flex; gap: 8px; align-items: center; flex-wrap: wrap;}
.md-tb-right .btn{padding: 7px 11px; font-size: .84rem;}
.md-view{display: inline-flex; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden;}
.md-view button{border: 0; background: var(--c-surface); padding: 7px 11px; cursor: pointer; color: var(--c-text-soft);}
.md-view button.active{background: var(--c-primary); color: #fff;}
.md-panes{display: grid; grid-template-columns: 1fr 1fr; height: 560px;}
.md-input{border: 0; resize: none; padding: 16px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.7; background: var(--c-surface); color: var(--c-text); outline: none; overflow: auto; width: 100%;}
.md-editor{display: flex; min-width: 0; height: 100%; overflow: hidden; background: var(--c-surface);}
.md-editor .md-input{flex: 1 1 auto; width: auto; min-width: 0;}
.md-gutter{flex: none; overflow: hidden; background: var(--c-surface-2); border-right: 1px solid var(--c-border);}
.md-gutter-in{padding: 16px 8px 16px 10px; text-align: right; color: var(--c-text-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.7; user-select: none;}
.md-gutter-in > div{white-space: nowrap;}
.md-preview{padding: 14px 22px; overflow: auto; border-left: 1px solid var(--c-border); background: var(--c-surface);}
.md-preview > :first-child{margin-top: 0;}
.md-preview table{border-collapse: collapse; width: 100%; margin: 16px 0; font-size: .92rem;}
.md-preview th, .md-preview td{border: 1px solid var(--c-border); padding: 8px 12px; text-align: left; vertical-align: top;}
.md-preview thead th{background: var(--c-surface-2); font-weight: 700;}
.md-preview tbody tr:nth-child(even) td{background: color-mix(in srgb, var(--c-surface-2) 45%, transparent);}
.md-preview ul:has(> li > input[type=checkbox]){list-style: none; padding-left: 2px;}
.md-preview li:has(> input[type=checkbox]){list-style: none;}
.md-preview li > input[type=checkbox]{width: 16px; height: 16px; margin: 0 9px 0 0; vertical-align: -2px; accent-color: var(--c-primary);}
.md-panes[data-view="write"]{grid-template-columns: 1fr;}
.md-panes[data-view="write"] .md-preview{display: none;}
.md-panes[data-view="preview"]{grid-template-columns: 1fr;}
.md-panes[data-view="preview"] .md-editor{display: none;}
.md-panes[data-view="preview"] .md-preview{border-left: 0;}
@media (max-width: 680px){
.md-panes, .md-panes[data-view="split"]{grid-template-columns: 1fr; height: auto;}
.md-panes[data-view="split"] .md-editor{height: 280px;}
.md-panes[data-view="split"] .md-preview{border-left: 0; border-top: 1px solid var(--c-border); max-height: 360px;}
}
.diff-ins{display: grid; grid-template-columns: 1fr 1fr; gap: 14px;}
.diff-pane{display: flex; flex-direction: column;}
.diff-panehead{display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px;}
.diff-fileinput{display: none;}
.diff-file{display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--c-primary); padding: 4px 9px; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-surface); white-space: nowrap;}
.diff-file:hover{background: var(--c-surface-2);}
.diff-opts{display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 14px 0; font-size: .9rem;}
.diff-opts label{display: inline-flex; align-items: center; gap: 7px; cursor: pointer;}
.diff-opts input{accent-color: var(--c-primary);}
.diff-legend{display: inline-flex; gap: 8px; margin-left: auto; align-items: center;}
.diff-key{font-size: .74rem; padding: 2px 9px; border-radius: 999px;}
.diff-key.add{background: rgba(34,197,94,.18); color: #15803d;}
.diff-stat{font-size: .9rem; margin: 0 0 10px; min-height: 1.2em;}
.diff-chgn{color: #a16207;}
.diff-addn{color: #16a34a;}
.diff-deln{color: #dc2626;}
.diff-same-note{color: #16a34a;}
.diff-out{border: 1px solid var(--c-border); border-radius: 12px; overflow: auto; max-height: 68vh; background: var(--c-surface); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.55;}
.diff-out:empty{display: none;}
.diff-row{display: grid; grid-template-columns: 3.2em minmax(0,1fr) 3.2em minmax(0,1fr);}
.diff-ln{text-align: right; padding: 1px 8px; color: var(--c-text-soft); background: var(--c-surface-2); border-right: 1px solid var(--c-border); user-select: none; font-size: .78rem;}
.diff-tx{padding: 1px 10px; white-space: pre-wrap; word-break: break-word;}
.diff-txl{border-right: 1px solid var(--c-border);}
.diff-chg .diff-txl, .diff-chg .diff-txr{background: rgba(250,204,21,.14);}
.diff-del .diff-txl{background: rgba(239,68,68,.14);}
.diff-add .diff-txr{background: rgba(34,197,94,.14);}
.diff-chg .diff-ln{background: rgba(250,204,21,.22); color: #a16207; font-weight: 700;}
.diff-del .diff-lnl{background: rgba(239,68,68,.2); color: #b91c1c; font-weight: 700;}
.diff-add .diff-lnr{background: rgba(34,197,94,.2); color: #15803d; font-weight: 700;}
.diff-del .diff-txr, .diff-add .diff-txl, .diff-del .diff-lnr, .diff-add .diff-lnl{background-color: var(--c-surface-2); background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(120,130,150,.16) 4px, rgba(120,130,150,.16) 8px);}
.diff-txl mark.diff-ch{background: rgba(239,68,68,.32); color: inherit; border-radius: 2px;}
.diff-txr mark.diff-ch{background: rgba(34,197,94,.34); color: inherit; border-radius: 2px;}
@media (max-width: 700px){
.diff-ins{grid-template-columns: 1fr;}
.diff-legend{margin-left: 0;}
.diff-out{font-size: .82rem;}
.diff-row{grid-template-columns: 2.9em minmax(0,1fr);}
.diff-txl{border-right: 0;}
.diff-same .diff-lnr, .diff-same .diff-txr{display: none;}
.diff-del .diff-lnr, .diff-del .diff-txr{display: none;}
.diff-add .diff-lnl, .diff-add .diff-txl{display: none;}
.diff-chg .diff-txl::before{content: "− "; color: #b91c1c; font-weight: 700;}
.diff-chg .diff-txr::before{content: "+ "; color: #15803d; font-weight: 700;}
.diff-chg .diff-txl{background: rgba(239,68,68,.12);}
.diff-chg .diff-txr{background: rgba(34,197,94,.12);}
.diff-chg .diff-lnl{background: rgba(239,68,68,.18); color: #b91c1c;}
.diff-chg .diff-lnr{background: rgba(34,197,94,.18); color: #15803d;}
.diff-row + .diff-row{border-top: 1px solid color-mix(in srgb, var(--c-border) 55%, transparent);}
.diff-head{display: none !important;}
}
.fr-count{margin-left: auto; font-size: .84rem; font-weight: 600; color: var(--c-text-soft);}
.sw-main{display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start;}
.sw-wheelwrap{position: relative; flex: 1 1 300px; display: flex; justify-content: center; align-items: center; min-width: 280px;}
.sw-canvas{width: 100%; max-width: 440px; height: auto; touch-action: manipulation; cursor: pointer; filter: drop-shadow(0 6px 20px rgba(0,0,0,.18));}
.sw-pointer{position: absolute; top: 50%; right: -4px; transform: translateY(-50%); font-size: 2.6rem; color: #ef4444; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); pointer-events: none;}
.sw-hub{position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; background: #0f172a; color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .04em; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.35); transition: transform .12s;}
.sw-hub:hover{transform: translate(-50%,-50%) scale(1.06);}
.sw-hub:disabled, .sw-hub[aria-disabled="true"]{opacity: .6; cursor: default;}
.sw-msg{margin: 8px 0 0; color: #b45309; font-weight: 600; font-size: .9rem;}
@media (prefers-color-scheme: dark){
.sw-msg{color: #fbbf24;}
}
.sw-side{flex: 1 1 260px; min-width: 240px;}
.sw-entries{width: 100%; resize: vertical;}
.sw-opts{margin: 12px 0 6px;}
.sw-check{display: inline-flex; align-items: center; gap: 9px; font-weight: 500; cursor: pointer;}
.sw-check input{width: 17px; height: 17px; accent-color: var(--c-primary);}
.sw-fills{display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;}
.sw-fills .btn{min-height: 40px;}
.sw-fills .btn[aria-pressed="true"]{border-color: var(--c-primary); box-shadow: 0 0 0 2px var(--c-primary);}
.sw-winner{display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 16px 20px; border-radius: 14px; background: color-mix(in srgb, var(--c-primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c-primary) 30%, transparent);}
.sw-winner > span{font-weight: 600; color: var(--c-text-soft); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em;}
.sw-winner b{font-size: 1.5rem; font-weight: 800; color: var(--c-primary);}
.sw-close{margin-left: auto; width: 34px; height: 34px; border-radius: 8px; border: none; background: transparent; color: var(--c-text-soft); cursor: pointer;}
.sw-close:hover{background: var(--c-surface-2); color: var(--c-text);}
.sgn-imgprev img, .btn-sm{max-width: 100%;}
.btn-sm{padding: 7px 12px; font-size: .86rem;}
.note-autosave{display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; font-size: .92rem; line-height: 1.5; color: #15803d; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);}
.note-autosave > i{margin-top: 2px; font-size: 1.05rem;}
.note-area{width: 100%; min-height: 360px;}
.note-bar{display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px;}
.note-stats{color: var(--c-text-muted); font-size: .9rem;}
.note-saved{font-size: .82rem; color: #16a34a; opacity: 0; transition: opacity .2s;}
.note-saved.on{opacity: 1;}
.note-actions{margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap;}
.ts-cta{margin: 0 0 12px; font-size: .92rem; font-weight: 600; color: var(--c-primary);}
.ts-cta i{margin-right: 5px;}
.ts-in:focus{box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 22%, transparent);}
.ts-now{display: flex; align-items: center; gap: 14px; flex-wrap: wrap;}
.ts-now > span{font-size: .74rem; color: var(--c-text-soft); text-transform: uppercase; letter-spacing: .05em;}
.ts-now > b{font-size: 1.5rem; font-variant-numeric: tabular-nums;}
.ts-now .btn{margin-left: auto;}
.ts-row{display: flex; gap: 10px;}
.ts-in{flex: 1; width: auto; font-family: ui-monospace, Menlo, Consolas, monospace;}
.ts-unit{flex: none; width: auto;}
.ts-date{width: 100%;}
.ts-out{margin-top: 12px; display: flex; flex-direction: column; gap: 1px;}
.ts-line{display: flex; justify-content: space-between; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--c-border);}
.ts-line:last-child{border-bottom: 0;}
.ts-line span{color: var(--c-text-soft);}
.ts-line b{font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all;}
.ts-err{color: #dc2626;}
.loan-out, .tip-out{margin-top: 18px;}
.tip-each{margin: 14px 0 0;}
.pw-out{display: flex; align-items: stretch; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); overflow: hidden;}
.pw-out input{flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .5px; color: var(--c-text);}
.pw-out input:focus{outline: none;}
.pw-icon{border: 0; border-left: 1px solid var(--c-border); background: var(--c-surface-2); padding: 0 15px; cursor: pointer; color: var(--c-text-soft);}
.pw-icon:hover{color: var(--c-primary);}
.pw-strength{height: 7px; border-radius: 99px; background: var(--c-surface-2); overflow: hidden; margin: 12px 0 4px;}
.pw-strength span{display: block; height: 100%; width: 0; border-radius: 99px; transition: width .2s, background .2s;}
.pw-strength-label{font-size: .85rem; font-weight: 600; margin: 0 0 14px; min-height: 1.1em;}
.pw-checks{display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px;}
.pw-checks label{display: flex; align-items: center; gap: 9px; font-weight: 500; cursor: pointer;}
.pw-checks input{width: 16px; height: 16px; accent-color: var(--c-primary);}
.unit-grid{display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end;}
.unit-col{display: flex; flex-direction: column; gap: 8px; min-width: 0;}
.unit-num{width: 100%; font-size: 1rem; padding: 11px 13px;}
.unit-swap{align-self: center; margin-bottom: 6px; width: 40px; height: 40px; border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 10px; cursor: pointer; color: var(--c-text-soft);}
.unit-swap:hover{color: var(--c-primary); border-color: var(--c-primary);}
@media (max-width: 560px){
.unit-grid{grid-template-columns: 1fr;}
.unit-swap{transform: rotate(90deg); justify-self: center;}
}
.calc{display: flex; flex-direction: column; gap: 16px;}
.calc-card{border: 1px solid var(--c-border); border-radius: 14px; padding: 16px 18px; background: var(--c-surface);}
.calc-card .cp-h{margin: 0 0 10px;}
.calc-line{display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.02rem;}
.calc-in{width: 110px; border: 1px solid var(--c-border); border-radius: 9px; padding: 9px 11px; background: var(--c-bg, var(--c-surface)); color: var(--c-text); font-size: 1rem;}
.calc-in:focus{outline: none; border-color: var(--c-primary);}
.calc-res{color: var(--c-primary-ink); font-size: 1.15rem; font-weight: 800;}
.cp{max-width: 600px;}
.cp-chk{background-color: #fff; background-image: linear-gradient(45deg, #c2c8d2 25%, transparent 25%), linear-gradient(-45deg, #c2c8d2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #c2c8d2 75%), linear-gradient(-45deg, transparent 75%, #c2c8d2 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0;}
.cp-main{display: flex; gap: 14px;}
.cp-area{position: relative; flex: 1; min-width: 0; aspect-ratio: 1.35 / 1; border-radius: 14px; overflow: hidden; cursor: crosshair; touch-action: none; user-select: none;}
.cp-area-sat, .cp-area-val{position: absolute; inset: 0;}
.cp-area-sat{background: linear-gradient(to right, #fff, rgba(255,255,255,0));}
.cp-area-val{background: linear-gradient(to top, #000, rgba(0,0,0,0));}
.cp-area-handle{position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 1px 5px rgba(0,0,0,.4); pointer-events: none;}
.cp-preview{width: 64px; flex: none; border-radius: 14px; border: 1px solid var(--c-border); overflow: hidden;}
.cp-preview span{display: block; width: 100%; height: 100%;}
.cp-rails{display: flex; flex-direction: column; gap: 16px; margin-top: 16px;}
.cp-rail{position: relative; height: 14px; border-radius: 99px; cursor: pointer; touch-action: none; user-select: none;}
.cp-hue{background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);}
.cp-alpha-fill{position: absolute; inset: 0; border-radius: 99px;}
.cp-rail-handle{position: absolute; top: 50%; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 1px 5px rgba(0,0,0,.4); pointer-events: none;}
.cp-actions{display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;}
.cp-native{position: relative; overflow: hidden;}
.cp-native input[type=color]{position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;}
.cp-outputs{display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-top: 20px;}
.cp-field > label{display: block; font-size: .72rem; font-weight: 700; color: var(--c-text-soft); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px;}
.cp-inp{display: flex; border: 1px solid var(--c-border); border-radius: 9px; overflow: hidden; background: var(--c-surface); transition: border-color .15s;}
.cp-inp:focus-within{border-color: var(--c-primary);}
.cp-inp input{flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 11px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; color: var(--c-text);}
.cp-inp input:focus{outline: none;}
.cp-copy{border: 0; border-left: 1px solid var(--c-border); background: var(--c-surface-2); padding: 0 13px; cursor: pointer; color: var(--c-text-soft); transition: color .15s;}
.cp-copy:hover{color: var(--c-primary);}
.cp-copy.ok{color: #16a34a;}
.cp-group{margin-top: 20px;}
.cp-h{font-size: .78rem; font-weight: 700; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 9px;}
.cp-swatches{display: flex; flex-wrap: wrap; gap: 8px;}
.cp-sw{width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--c-border); padding: 0; cursor: pointer; transition: transform .1s, box-shadow .1s;}
.cp-sw:hover{transform: scale(1.09); box-shadow: 0 3px 10px rgba(0,0,0,.18);}
.cp-honey{overflow-x: auto; padding: 4px 2px 8px;}
.cp-honey-row{display: flex; gap: 2px;}
.cp-honey-row + .cp-honey-row{margin-top: -6px;}
.cp-honey-row:nth-child(even){margin-left: 12px;}
.cp-hex{flex: none; width: 22px; height: 25px; border: 0; padding: 0; cursor: pointer; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: transform .1s;}
.cp-hex:hover{transform: scale(1.3); position: relative; z-index: 2;}
.bg-options{display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 4px 0 14px;}
.bg-row{display: flex; align-items: center; flex-wrap: wrap; gap: 12px;}
.bg-thresh{background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 12px; padding: 14px 16px;}
.bg-thresh-head{display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px;}
.bg-thresh-head label{font-weight: 600;}
.bg-thresh-head output{font-weight: 700; color: var(--c-primary); font-variant-numeric: tabular-nums;}
.bg-thresh input[type="range"]{width: 100%; accent-color: var(--c-primary); cursor: pointer;}
.bg-thresh-hint{margin: 9px 0 0; font-size: .86rem; color: var(--c-text-soft); line-height: 1.55;}
.bg-check{display: inline-flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; user-select: none;}
.bg-check input{width: 17px; height: 17px; accent-color: var(--c-primary); cursor: pointer;}
.bg-check-hint{font-weight: 500; color: var(--c-text-soft);}
.bg-cropinfo{font-size: .9rem; font-weight: 600; color: var(--c-text-muted);}
.bg-compare{display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; align-items: stretch;}
.bg-pane{display: flex; flex-direction: column; gap: 8px;}
.bg-tag{font-size: .8rem; font-weight: 700; color: var(--c-text-soft); text-transform: uppercase; letter-spacing: .03em;}
.bg-img{flex: 1; display: grid; place-items: center; padding: 10px; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface); min-height: 180px;}
.bg-img img{max-width: 100%; max-height: 420px; height: auto; border-radius: 6px; display: block;}
.bg-checker{background-color: var(--c-surface); background-image: linear-gradient(45deg, rgba(120,130,150,.18) 25%, transparent 25%), linear-gradient(-45deg, rgba(120,130,150,.18) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(120,130,150,.18) 75%), linear-gradient(-45deg, transparent 75%, rgba(120,130,150,.18) 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0;}
.bg-loading{display: none; place-items: center; width: 100%; min-height: 160px; color: var(--c-text-soft); font-size: 2.2rem;}
@media (max-width: 620px){
.bg-compare{grid-template-columns: 1fr;}
}
.vl-stage{display: grid; place-items: center; padding: 12px; border: 1px solid var(--c-border); border-radius: 16px; background-color: #0b1220; background-image: linear-gradient(45deg, rgba(120,130,150,.10) 25%, transparent 25%), linear-gradient(-45deg, rgba(120,130,150,.10) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(120,130,150,.10) 75%), linear-gradient(-45deg, transparent 75%, rgba(120,130,150,.10) 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0;}
.vl-stage canvas{max-width: 100%; max-height: 460px; height: auto; border-radius: 8px; display: block;}
.vl-playbar{margin: 14px 0 2px;}
.vl-logobar{display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 18px;}
.vl-logoname{font-size: .9rem; color: var(--c-text-soft);}
.vl-format{display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 4px;}
.vl-format-label{font-weight: 600; color: var(--c-text-muted);}
.vl-seg{display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--c-border); border-radius: 10px; cursor: pointer; font-weight: 600; transition: all .15s;}
.vl-seg em{font-style: normal; font-weight: 500; color: var(--c-text-soft); font-size: .82rem;}
.vl-seg input{accent-color: var(--c-primary); cursor: pointer;}
.vl-seg:has(input:checked){border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 9%, transparent);}
.vl-seg:has(input:checked) em{color: var(--c-primary);}
.vl-fmt-hint{font-size: .88rem; color: var(--c-text-soft); margin: 6px 0 2px;}
.vl-options{display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin: 14px 0 4px;}
.vl-group{margin-bottom: 14px;}
.vl-group > label{display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--c-text-muted);}
.vl-group > label b{float: right; font-weight: 700; color: var(--c-text);}
.vl-poswrap{display: flex; gap: 18px; align-items: center;}
.vl-pos{display: grid; grid-template-columns: repeat(2, 40px); grid-template-rows: repeat(2, 40px); gap: 6px;}
.vl-dpad{display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 34px); gap: 5px;}
.vl-dpad-mid{display: grid; place-items: center; color: var(--c-text-soft); font-size: .8rem;}
.vl-posbtn{border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 9px; cursor: pointer; font-size: 1rem; color: var(--c-text-soft); display: grid; place-items: center; transition: all .15s;}
.vl-posbtn:hover{border-color: var(--c-primary); color: var(--c-primary);}
.vl-posbtn.active{background: var(--c-primary); border-color: var(--c-primary); color: #fff;}
.vl-sliders{min-width: 0;}
.vl-status{margin: 14px 0 0; font-weight: 600; color: var(--c-text-muted);}
.vl-output{width: 100%; max-height: 460px; border-radius: 12px; margin-bottom: 14px; background: #000;}
.vl-progress{height: 8px; border-radius: 99px; background: var(--c-surface-2); overflow: hidden; margin: 12px 0 6px;}
.vl-progress span{display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #8b5cf6, #ec4899); transition: width .2s;}
.vl-mp4note{font-size: .88rem; color: var(--c-text-soft); margin: 8px 0 0;}
@media (max-width: 620px){
.vl-options{grid-template-columns: 1fr; gap: 8px;}
}
.ve-controls{display: flex; flex-direction: column; gap: 16px; margin: 16px 0 4px;}
.ve-section{padding: 14px 16px; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface);}
.ve-label{display: block; font-weight: 600; font-size: .9rem; color: var(--c-text-muted); margin-bottom: 10px;}
.ve-btnrow{display: flex; flex-wrap: wrap; align-items: center; gap: 8px;}
.ve-btnrow .btn{min-width: 42px; justify-content: center;}
.ve-btnrow .btn.active{border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 12%, transparent); color: var(--c-primary);}
.ve-rotread{margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c-text);}
.ve-grid2{display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;}
.ve-grid3{display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;}
.ve-grid3 .vl-group{margin: 0;}
.ve-inline{display: flex; align-items: center; gap: 16px; flex-wrap: wrap;}
.ve-adjust-head{display: flex; align-items: center; justify-content: space-between; gap: 12px;}
.ve-adjust-head .ve-label{margin-bottom: 0;}
.btn-sm{padding: 6px 12px; font-size: .84rem;}
.ve-mini-hint{font-size: .82rem; color: var(--c-text-soft); margin: 10px 0 0; line-height: 1.5;}
.ve-crop-toggle{margin: 14px 0 4px; font-weight: 600;}
.ve-crop-toggle i{color: var(--c-primary);}
.ve-vidwrap{position: relative; display: inline-block; max-width: 100%; line-height: 0;}
.ve-vidwrap video{width: auto; max-width: 100%; max-height: 52vh; display: block;}
.ve-ovl-layer{position: absolute; inset: 0; pointer-events: none; overflow: hidden;}
.ve-insert-flash{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: none;}
.ve-place{position: absolute; pointer-events: auto; cursor: move; border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 0 0 1.5px rgba(0,0,0,.35); touch-action: none; line-height: 0;}
.ve-place img, .ve-place video{width: 100%; height: auto; display: block; pointer-events: none; background: #0b1220;}
.ve-place.ve-place-ghost{border-style: dashed; border-color: var(--c-primary); box-shadow: 0 0 0 1.5px rgba(0,0,0,.35), 0 0 0 3px color-mix(in srgb, var(--c-primary) 40%, transparent);}
.ve-place-move{position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; font-size: .62rem; line-height: 1; padding: 3px 5px; border-radius: 5px; pointer-events: none;}
.ve-place-handle{position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; background: var(--c-primary); border: 2px solid #fff; border-radius: 50%; cursor: nwse-resize; touch-action: none;}
.ve-place-hint{font-size: .78rem; color: var(--c-text-soft); margin: 8px 0 0;}
.ve-tracklist{display: flex; flex-direction: column; gap: 10px; margin-top: 10px;}
.ve-track{display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface-2);}
.ve-track.ve-track-off{opacity: .55;}
.ve-track-i{width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--c-surface); color: var(--c-text-muted); font-size: .9rem;}
.ve-track-thumb{width: 46px; height: 46px; flex: none; object-fit: cover; border-radius: 8px; background: #0b1220;}
.ve-track-main{flex: 1; min-width: 0;}
.ve-track-name{font-weight: 600; font-size: .9rem; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.ve-track-row{display: flex; align-items: center; gap: 12px;}
.ve-track-lab{font-size: .82rem; color: var(--c-text-muted); white-space: nowrap;}
.ve-track-fields{display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end;}
.ve-fld{display: flex; flex-direction: column; gap: 5px; font-size: .78rem; color: var(--c-text-muted);}
.ve-fld > span{font-weight: 600;}
.ve-fld-grow{flex: 1; min-width: 150px;}
.ve-fld-check{flex-direction: row; align-items: center; gap: 8px; align-self: center;}
.ve-fld-check span{font-weight: 500; color: var(--c-text);}
.ve-track-mute{flex: none; align-self: center; font-size: .84rem;}
.ve-track-rm{flex: none; border: 0; background: transparent; color: var(--c-text-soft); cursor: pointer; padding: 4px; font-size: 1rem; align-self: center;}
.ve-track-rm:hover{color: #dc2626;}
.ve-imgcard .ve-track-fields{align-items: flex-end;}
.ve-timeline{margin: 8px 0 4px;}
.ve-tl-head{display: flex; justify-content: flex-end; margin-bottom: 4px;}
.ve-tl-time{font-size: .84rem; color: var(--c-text-muted); font-variant-numeric: tabular-nums;}
.ve-tl-time b{color: var(--c-text);}
.ve-tl-body{position: relative; cursor: pointer; touch-action: none; user-select: none;}
.ve-tl-ruler{position: relative; height: 16px; margin: 0 0 4px; border-bottom: 1px solid var(--c-border);}
.ve-tl-tick{position: absolute; top: 0; transform: translateX(-50%); font-size: .68rem; color: var(--c-text-soft); font-variant-numeric: tabular-nums; white-space: nowrap;}
.ve-tl-tick:first-child{transform: none;}
.ve-tl-tick:last-child{transform: translateX(-100%);}
.ve-tl-rows{display: flex; flex-direction: column; gap: 6px;}
.ve-tl-track{position: relative; height: 32px; border-radius: 8px; background: var(--c-surface-2); overflow: hidden;}
.ve-tl-clip{position: absolute; top: 3px; bottom: 3px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 6px; font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden;}
.ve-tl-vclip{left: 0; right: 0; background: linear-gradient(90deg,#6366f1,#8b5cf6);}
.ve-tl-aclip{background: linear-gradient(90deg,#0ea5e9,#22c55e); cursor: grab; touch-action: none; box-shadow: 0 1px 3px rgba(0,0,0,.25);}
.ve-tl-oaclip{background: linear-gradient(90deg,#64748b,#94a3b8);}
.ve-tl-vidclip{background: linear-gradient(90deg,#06b6d4,#3b82f6); cursor: grab; touch-action: none; box-shadow: 0 1px 3px rgba(0,0,0,.25);}
.ve-tl-vidclip-ins{background: linear-gradient(90deg,#0ea5e9,#6366f1);}
.ve-tl-vidclip:active{cursor: grabbing;}
.ve-tl-off{opacity: .5;}
.ve-tl-iclip{background: linear-gradient(90deg,#f59e0b,#ec4899); cursor: grab; touch-action: none; box-shadow: 0 1px 3px rgba(0,0,0,.25);}
.ve-tl-iclip-ins{background: linear-gradient(90deg,#8b5cf6,#6366f1);}
.ve-tl-aclip:active, .ve-tl-iclip:active{cursor: grabbing;}
.ve-tl-cname{overflow: hidden; text-overflow: ellipsis; pointer-events: none;}
.ve-tl-handle{position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; background: rgba(255,255,255,.45); touch-action: none;}
.ve-tl-handle:hover{background: rgba(255,255,255,.8);}
.ve-tl-handle-l{left: 0; border-radius: 6px 0 0 6px; box-shadow: inset 2px 0 0 rgba(0,0,0,.18);}
.ve-tl-handle-r{right: 0; border-radius: 0 6px 6px 0; box-shadow: inset -2px 0 0 rgba(0,0,0,.18);}
.ve-tl-clip.ve-tl-selected{z-index: 4; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-primary), 0 1px 6px rgba(0,0,0,.4);}
.ve-toolbar{display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 8px;}
.ve-toolbar-hint{font-size: .82rem; color: var(--c-text-soft); margin-left: auto;}
.ve-settings{border: 1px solid var(--c-border); border-radius: 14px; padding: 16px 18px; background: var(--c-surface);}
.ve-set-title{display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .96rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border);}
.ve-set-title i{color: var(--c-primary);}
.ve-settings .ve-controls{margin: 0;}
.ve-settings .ve-track{border: 0; background: transparent; padding: 0;}
.ve-settings .ve-tracklist{margin: 0;}
.ve-tl-band{position: absolute; top: 0; bottom: 0; z-index: 3; pointer-events: none; display: none; background: color-mix(in srgb, var(--c-primary) 14%, transparent); border-left: 2px solid var(--c-primary); border-right: 2px solid var(--c-primary);}
.ve-tl-playhead{position: absolute; top: 0; bottom: 0; left: 0; width: 2px; z-index: 6; background: #ef4444; pointer-events: none;}
.ve-tl-playhead::before{content: ""; position: absolute; top: -2px; left: -4px; border: 5px solid transparent; border-top-color: #ef4444;}
.json-bar{display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 14px 0;}
.json-bar .wr-group{margin: 0;}
.json-bar .btn{height: 44px;}
.json-out{margin: 0; padding: 18px 20px; background: #0f172a; color: #e2e8f0; border-radius: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.65; overflow: auto; max-height: 540px; white-space: pre;}
.json-placeholder{color: #64748b;}
.json-error{padding: 14px 16px; border-radius: 12px; background: rgba(239,68,68,.12); color: #dc2626; font-size: .9rem; font-family: ui-monospace, Menlo, Consolas, monospace;}
.ic-drop{display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 44px 20px; border: 2px dashed var(--c-border); border-radius: 16px; background: var(--c-surface-2); cursor: pointer; transition: border-color .15s, background .15s;}
.ic-drop:hover, .ic-drop.drag{border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 6%, var(--c-surface-2));}
.ic-drop-icon{font-size: 2.2rem; color: var(--c-tools-ink);}
.ic-url{display: flex; gap: 10px; margin-top: 12px;}
.ic-url input{flex: 1; min-width: 0;}
.ic-url .btn{flex: none;}
.ic-url-err{margin: 10px 0 0; padding: 11px 14px; border-radius: 12px; background: rgba(239,68,68,.12); color: #dc2626; font-size: .86rem; line-height: 1.5;}
.ic-drop p{margin: 4px 0 0;}
.ic-drop span{color: var(--c-text-soft); font-size: .85rem;}
.ic-drop:focus-visible{outline: 3px solid var(--c-primary); outline-offset: 2px;}
.ic-drop-err{margin: 10px 0 0; text-align: center; color: #dc2626; font-weight: 600;}
@media (prefers-color-scheme: dark){
.ic-drop-err{color: #f87171;}
}
.ic-canvas-wrap{position: relative; display: inline-block; max-width: 100%; line-height: 0;}
.ic-loupe{position: absolute; left: 0; top: 0; pointer-events: none; display: none; border-radius: 10px; border: 2px solid #fff; box-shadow: var(--shadow-lg); z-index: 5;}
.ic-hint{display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; color: var(--c-text-muted); font-size: .88rem;}
.ic-hint i{color: var(--c-tools-ink);}
.ic-reset{margin-left: auto; background: var(--c-surface-2); border: 1px solid var(--c-border); color: var(--c-text); padding: 6px 12px; border-radius: var(--radius-pill); font-weight: 600; font-size: .82rem; cursor: pointer;}
.ic-reset:hover{background: var(--c-bg);}
.ic-result{display: flex; gap: 18px; align-items: center; margin-top: 18px; padding: 16px; background: var(--c-surface-2); border-radius: 14px;}
.ic-swatch{width: 84px; height: 84px; flex: none; border-radius: 14px; border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); background: #fff;}
.ic-values{flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0;}
.ic-val{display: flex; align-items: center; gap: 10px;}
.ic-tag{font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--c-text-soft); text-transform: uppercase; width: 34px; flex: none;}
.ic-val code{flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; background: var(--c-bg); padding: 7px 12px; border-radius: 9px; overflow: auto;}
.ic-cp{flex: none; width: 36px; height: 34px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-muted); border-radius: 9px; cursor: pointer;}
.ic-cp:hover{color: var(--c-primary); border-color: var(--c-primary);}
.ic-palette-wrap{margin-top: 16px;}
.ic-palette{display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;}
.ic-chip{width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--c-border); cursor: pointer; box-shadow: var(--shadow-sm);}
.ic-chip:hover{transform: translateY(-2px);}
.ic-chip.is-on{border-color: var(--c-primary); box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 4px var(--c-primary);}
@media (max-width: 560px){
.ic-result{flex-direction: column; align-items: stretch;}
.ic-swatch{width: 100%; height: 64px;}
}
.code-inline{font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--c-surface-2); padding: 2px 6px; border-radius: 6px; font-size: .88em;}
footer{border-top: 1px solid var(--c-border); background: var(--c-surface); margin-top: 40px;}
.footer-grid{display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 34px;}
.footer-brand .logo{margin-bottom: 14px;}
.footer-brand p{color: var(--c-text-muted); font-size: .92rem; max-width: 280px;}
.footer-col h4{font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-soft); margin-bottom: 14px;}
.footer-col a{display: block; color: var(--c-text-muted); padding: 5px 0; font-size: .93rem; transition: color .15s;}
.footer-col a:hover{color: var(--c-primary);}
.footer-bottom{border-top: 1px solid var(--c-border); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--c-text-soft); font-size: .88rem;}
.footer-bottom .socials{display: flex; gap: 10px;}
.footer-bottom .socials a{width: 36px; height: 36px; border-radius: 10px; background: var(--c-surface-2); display: grid; place-items: center; color: var(--c-text-muted); transition: all .15s;}
.footer-bottom .socials a:hover{background: var(--c-primary); color: #fff;}
@media (max-width: 920px){
.layout{grid-template-columns: minmax(0, 1fr);}
.footer-grid{grid-template-columns: 1fr 1fr;}
}
@media (max-width: 760px){
.nav-toggle{display: grid;}
nav{position: fixed; inset: var(--header-h) 0 auto 0; background: var(--c-surface); border-bottom: 1px solid var(--c-border); transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow-lg);}
nav.open{transform: translateY(0);}
nav ul{flex-direction: column; align-items: stretch; gap: 2px; padding: 14px;}
nav a{padding: 14px 16px; border-radius: 12px;}
.split{grid-template-columns: 1fr;}
.hero{padding: 56px 0 48px;}
.hero-stats{gap: 26px;}
.store-buttons{flex-direction: column; gap: 10px;}
.store-buttons .store-btn{width: 100%; justify-content: center;}
}
@media (max-width: 460px){
.footer-grid{grid-template-columns: 1fr; gap: 26px;}
.hero-actions .btn{flex: 1; justify-content: center;}
}
@media (pointer: coarse){
.gm-check, .diff-opts label, .tmr-sound, .wm-tile, .wr-check{min-height: 44px; padding-block: 4px;}
.gm-check input[type=checkbox], .gm-check input[type=radio], .diff-opts input[type=checkbox], .wm-tile input, .wr-check input{width: 20px; height: 20px; flex: none;}
}
.csvg-box{display: flex; align-items: center; justify-content: center; padding: 14px; flex: 1 1 auto; min-height: 0; overflow: hidden; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface);}
.csvg-wrap{position: relative; flex: 0 0 auto; overflow: hidden; line-height: 0; background-color: var(--c-surface); background-image: linear-gradient(45deg, rgba(120, 130, 150, .18) 25%, transparent 25%), linear-gradient(-45deg, rgba(120, 130, 150, .18) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(120, 130, 150, .18) 75%), linear-gradient(-45deg, transparent 75%, rgba(120, 130, 150, .18) 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0;}
.csvg-wrap img{display: block; width: 100%; height: 100%;}
.csvg-marq{position: absolute; border: 2px dashed #0ea5e9; border-radius: 2px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .18);}
.csvg-dim{font-size: .8rem; color: var(--c-text-muted); text-align: center;}
.csvg-unit{font-weight: 400; font-style: normal; color: var(--c-text-muted); font-size: .8rem;}
.csvg-vb{margin: 6px 0 0; font-size: .82rem; color: var(--c-text-soft); word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;}
.diff-head{display: grid; grid-template-columns: 3.2em minmax(0,1fr) 3.2em minmax(0,1fr); margin-top: 12px; font-weight: 700; font-size: .86rem; color: var(--c-text-muted);}
.diff-head span:nth-child(1){grid-column: 2; padding-left: 10px;}
.diff-head span:nth-child(2){grid-column: 4; padding-left: 10px;}
.sb-board{display: flex; gap: 12px; align-items: stretch; justify-content: center; max-width: 680px; margin: 0 auto; position: relative;}
.sb-side{flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; border-radius: 18px; background: var(--ca); color: var(--ta); box-shadow: var(--shadow-sm); outline: 3px solid transparent; transition: outline-color .2s;}
.sb-side[data-team="b"]{background: var(--cb); color: var(--tb);}
.sb-name{width: 100%; max-width: 220px; text-align: center; font-weight: 700; font-size: 1.05rem; color: inherit; border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; background: transparent;}
.sb-name::placeholder{color: currentColor; opacity: .6;}
.sb-name:hover{border-color: rgba(255, 255, 255, .5);}
.sb-name:focus{border-color: currentColor; background: rgba(255, 255, 255, .15); outline: none;}
.sb-score{font-size: clamp(3rem, 13vw, 5.5rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: inherit;}
.sb-vs{align-self: center; flex: none; font-weight: 800; color: var(--c-text-soft); font-size: 1.05rem;}
.sb-btns{display: flex; gap: 12px; justify-content: center; max-width: 680px; margin: 16px auto 0;}
.sb-btncol{flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px;}
.sb-btn-spacer{flex: none; width: 34px;}
.sb-plus{padding: 20px; border: 0; border-radius: 14px; cursor: pointer; color: var(--ta); background: var(--ca); font-size: 1.5rem; font-weight: 800; box-shadow: var(--shadow-sm); transition: transform .06s ease, filter .15s; user-select: none; -webkit-tap-highlight-color: transparent;}
.sb-plus[data-team="b"]{color: var(--tb); background: var(--cb);}
.sb-plus:hover{filter: brightness(1.06);}
.sb-plus:active{transform: scale(.97);}
.sb-minus{width: 100%;}
.sb-controls{display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: end; margin: 24px 0 6px;}
.sb-controls .wr-group{min-width: 130px; margin: 0;}
.sb-opts{display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; margin: 10px 0 4px;}
.sb-color{display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-text-muted); cursor: pointer;}
.sb-color input[type="color"]{width: 34px; height: 28px; padding: 2px; border: 1px solid var(--c-border); border-radius: 8px; background: none; cursor: pointer;}
.sb-fs-only{display: none;}
.sb-board.sb-fs{gap: 0; background: #000; position: relative;}
.sb-board.sb-fs-fixed{position: fixed; inset: 0; z-index: 9999; max-width: none; margin: 0;}
.sb-board.sb-fs .sb-side{position: relative; border-radius: 0; justify-content: center; cursor: pointer; box-shadow: none; padding: 20px;}
.sb-board.sb-fs .sb-score{font-size: min(60vh, 44vw); line-height: .9;}
.sb-board.sb-fs .sb-name{pointer-events: none; font-size: clamp(1.6rem, 7vw, 4.5rem); font-weight: 800; max-width: 96%;}
.sb-board.sb-fs .sb-vs{display: none;}
.sb-board.sb-fs .sb-fs-only{display: flex;}
.sb-fs-exit{position: absolute; top: 14px; right: 16px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.05rem; align-items: center; justify-content: center;}
.sb-fs-plus, .sb-fs-minus{position: absolute; bottom: 42px; width: 54px; height: 54px; border: 0; border-radius: 50%; cursor: pointer; color: inherit; font-size: 1.2rem; align-items: center; justify-content: center;}
.sb-fs-minus{left: 50%; transform: translateX(-60px); background: rgba(0, 0, 0, .32);}
.sb-fs-plus{left: 50%; transform: translateX(6px); background: rgba(255, 255, 255, .28);}
.sb-fs-hint{position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: .82rem; pointer-events: none;}
@media (max-width: 560px){
.sb-board{flex-direction: column;}
.sb-btns{flex-direction: column;}
.sb-vs, .sb-btn-spacer{display: none;}
.sb-board.sb-fs{flex-direction: row;}
}
.aat-fs-only{display: none;}
.aat-fs{position: relative; background: var(--c-bg);}
.aat-fs-fixed{position: fixed; inset: 0; z-index: 9999;}
.aat-fs .aat-fs-only{display: flex;}
.aat-fs-exit{position: absolute; top: 14px; right: 16px; z-index: 3; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.05rem; align-items: center; justify-content: center;}
.aat-fs-hint{position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; color: var(--c-text-soft); font-size: .85rem; pointer-events: none;}
.ac{text-align: center;}
.ac-clock{font-size: clamp(3rem, 14vw, 5.5rem); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--c-text); line-height: 1;}
.ac-date{color: var(--c-text-soft); margin-top: 6px;}
.ac-next{color: var(--c-primary); font-weight: 600; margin-top: 8px; min-height: 1.3em;}
.ac-board.aat-fs{display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh;}
.ac-board.aat-fs .ac-clock{font-size: min(30vh, 26vw);}
.ac-board.aat-fs .ac-date{font-size: clamp(1rem, 3vw, 2rem);}
.ac-board.aat-fs .ac-next{font-size: clamp(1rem, 2.5vw, 1.6rem);}
.ac-add{display: flex; gap: 12px; align-items: end; justify-content: center; flex-wrap: wrap; margin: 18px 0 16px;}
.ac-add .wr-group{min-width: 150px; margin: 0; text-align: left;}
.ac-list{display: flex; flex-direction: column; gap: 8px; max-width: 480px; margin: 0 auto 16px;}
.ac-empty{color: var(--c-text-soft);}
.ac-item{display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface);}
.ac-item.off{opacity: .55;}
.ac-item-info{flex: 1; display: flex; align-items: baseline; gap: 10px; text-align: left; min-width: 0;}
.ac-item-info b{font-size: 1.4rem; font-variant-numeric: tabular-nums;}
.ac-item-info span{color: var(--c-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.ac-toggle{width: 44px; height: 26px; border-radius: 999px; border: 0; background: var(--c-border); position: relative; cursor: pointer; flex: none; transition: background .15s;}
.ac-toggle::after{content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-sm);}
.ac-toggle[aria-checked="true"]{background: var(--c-primary);}
.ac-toggle[aria-checked="true"]::after{transform: translateX(18px);}
.ac-del{border: 0; background: transparent; color: var(--c-text-soft); cursor: pointer; padding: 6px; flex: none;}
.ac-del:hover{color: #dc2626;}
.ac-opts{display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto 12px;}
.ac-opts .wr-group{min-width: 160px; margin: 0; text-align: left;}
.ac-ring{position: fixed; inset: 0; z-index: 9999; background: rgba(15, 23, 42, .86); align-items: center; justify-content: center;}
.ac-ring-inner{text-align: center; color: #fff; padding: 30px;}
.ac-ring-icon{font-size: 3rem; color: #fbbf24; animation: ac-shake .6s infinite;}
@keyframes ac-shake{0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); }}
.ac-ring-time{font-size: clamp(3rem, 16vw, 6rem); font-weight: 800; font-variant-numeric: tabular-nums; margin: 10px 0 4px;}
.ac-ring-label{font-size: 1.4rem; color: #e2e8f0; margin-bottom: 24px; min-height: 1.4em;}
.ac-ring-btns{display: flex; gap: 12px; justify-content: center;}
.it{text-align: center;}
.it-setup{display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; max-width: 560px; margin: 0 auto 18px; text-align: left;}
.it-setup .wr-group{margin: 0;}
.it-board{border-radius: 18px; padding: 30px 16px; background: var(--c-surface-2); border: 1px solid var(--c-border); transition: background .2s;}
.it-board.it-prep{background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; border-color: transparent;}
.it-board.it-work{background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; border-color: transparent;}
.it-board.it-rest{background: linear-gradient(135deg, #0ea5e9, #22c55e); color: #fff; border-color: transparent;}
.it-board.it-done{background: linear-gradient(135deg, #22c55e, #10b981); color: #fff; border-color: transparent;}
.it-phase{font-size: 1.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;}
.it-time{font-size: clamp(3.5rem, 18vw, 7rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; margin: 4px 0;}
.it-round{font-weight: 600; opacity: .9; min-height: 1.4em;}
.it-board.aat-fs{display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 0;}
.it-board.aat-fs .it-phase{font-size: clamp(1.6rem, 6vw, 4rem);}
.it-board.aat-fs .it-time{font-size: min(46vh, 60vw);}
.it-board.aat-fs .it-round{font-size: clamp(1.2rem, 3vw, 2.2rem);}
.lc-editor{position: relative; display: flex; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: var(--c-surface);}
.lc-fab{position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer; background: var(--c-primary); color: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; font-size: 1.25rem; transition: transform .08s ease, filter .15s; -webkit-tap-highlight-color: transparent;}
.lc-fab:hover{filter: brightness(1.06);}
.lc-fab:active{transform: translateX(-50%) scale(.94);}
.lc-gutter{flex: none; padding: 12px 8px 12px 12px; text-align: right; color: var(--c-text-soft); background: var(--c-surface-2); border-right: 1px solid var(--c-border); white-space: pre; overflow: hidden; user-select: none; min-width: 2.2em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; line-height: 1.6;}
.lc-area{flex: 1; min-width: 0; resize: vertical; border: 0; outline: none; padding: 12px 14px; background: transparent; color: var(--c-text); white-space: pre; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; line-height: 1.6;}
.lc-trim{white-space: nowrap;}
.lc-bar{display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 12px 0 6px;}
.lc-keyfield{display: flex; align-items: center; gap: 8px;}
.lc-keyfield label{font-weight: 600; color: var(--c-text-muted); font-size: .9rem;}
.lc-extra-field{display: flex; align-items: center; gap: 8px;}
.lc-extra-field label{font-weight: 600; color: var(--c-text-muted); font-size: .9rem; white-space: nowrap;}
.lc-extra{max-width: 150px; padding: 6px 10px;}
.lc-keybtn{font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; min-width: 96px;}
.lc-status{color: var(--c-tools-ink); font-size: .9rem; flex: 1; min-width: 140px;}
.lc-actions{display: flex; gap: 8px; margin-left: auto;}
.lc-count{color: var(--c-text-soft); font-size: .85rem; margin: 4px 0 0;}
.video-container{width: 100%; padding-top: 10px; margin: 18px 0;}
.video-wrapper{position: relative; width: 100%; padding-top: 56.25%;}
.video-frame{position: absolute; inset: 0;}
.video-frame iframe{width: 100%; height: 100%; border: 0; border-radius: 14px;}
.calc-form{display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; max-width: min(620px, 100%); margin: 0 auto 18px; text-align: left;}
.calc-form .wr-group{margin: 0;}
.calc-modes{display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 auto 16px;}
.calc-mode{display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--c-border); border-radius: 12px; cursor: pointer; font-weight: 600;}
.calc-mode:has(input:checked){border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 6%, var(--c-surface));}
.calc-out{display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px;}
.calc-stat{min-width: 150px; padding: 16px 18px; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface-2); text-align: center;}
.calc-stat b{display: block; font-size: 1.7rem; font-weight: 800; color: var(--c-text); font-variant-numeric: tabular-nums; word-break: break-word;}
.calc-stat span{font-size: .78rem; color: var(--c-text-soft); text-transform: uppercase; letter-spacing: .03em;}
.calc-stat span:empty{display: none;}
.calc-stat.calc-wide{min-width: 260px;}
.calc-stat.calc-wide b{font-size: 1.3rem;}
.sn-controls{align-items: center;}
.sn-sep-label{font-weight: 600; font-size: .92rem;}
.sn-result{margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 14px;}
.sn-sum{background: var(--c-surface-2); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;}
.sn-sum-label{color: var(--c-text-soft); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;}
.sn-sum b{display: block; font-size: 2.4rem; line-height: 1.1; word-break: break-all; background: var(--grad-tools); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.sn-copy{margin-top: 2px;}
.sn-copy.done{color: #16a34a;}
.sn-tiles{display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;}
.sn-tile{background: var(--c-surface-2); border-radius: 14px; padding: 16px 12px; text-align: center;}
.sn-tile b{display: block; font-size: 1.4rem; word-break: break-all;}
.sn-tile span{color: var(--c-text-soft); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;}
@media (max-width: 640px){
.sn-result{grid-template-columns: 1fr;}
.sn-tiles{grid-template-columns: 1fr 1fr;}
}
.yt-note{display: flex; align-items: baseline; gap: 9px; margin: 0; padding: 18px 0 4px; border-top: 1px solid var(--c-border); color: var(--c-text-muted); font-size: .93rem; line-height: 1.6;}
.yt-note i{flex: none; color: var(--c-text-soft); font-size: 1rem;}
.yt-note a{color: var(--c-primary-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;}
.yt-note a:hover{text-decoration: none;}
.xl-dir{display: flex;}
.xl-sheets{display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px;}
.xl-tab{padding: 7px 14px; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-surface); color: var(--c-text-muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;}
.xl-tab:hover{border-color: var(--c-primary); color: var(--c-primary);}
.xl-tab.active{background: var(--c-primary); border-color: var(--c-primary); color: #fff;}
.xl-inbar{display: flex; align-items: center; gap: 12px; margin-bottom: 12px;}
.xl-prevwrap{border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); overflow: auto; max-height: 340px;}
.xl-prev table{border-collapse: collapse; width: 100%; font-size: .89rem;}
.xl-prev th, .xl-prev td{border: 1px solid var(--c-border); padding: 7px 11px; text-align: left; white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis;}
.xl-prev th{background: var(--c-surface-2); font-weight: 700; position: sticky; top: 0;}
.xl-prev .xl-more, .xl-prevempty{margin: 0; padding: 10px 12px; font-size: .86rem; color: var(--c-text-soft);}
.grp-aggs, .opt-checks{display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface);}
.opt-checks{margin-bottom: 16px;}
.btn-danger{background: #dc2626; color: #fff; border-color: transparent;}
.btn-danger:hover{background: #b91c1c;}
.bms-tbl{width: 100%; border-collapse: collapse; font-size: .88rem;}
.bms-tbl th{padding: 8px 10px; text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-soft); border-bottom: 1px solid var(--c-border);}
.bms-tbl td{padding: 7px 10px; border-bottom: 1px solid var(--c-border);}
.bms-name{font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all;}
.bms-cut{color: #991b1b; font-weight: 600;}
.bms-clean{color: var(--c-text-soft);}
.bms-saved{color: #166534; font-weight: 700;}
.aat-dl-wait, .bcd-wait{opacity: .5; cursor: progress;}
a.btn[aria-disabled="true"]{pointer-events: auto;}
a.btn{text-decoration: none;}
.wr-range{width: 100%;}
.btn-sm{padding: 5px 10px; font-size: .8rem;}
.asv-nofile a, .asv-note a, .enc-note a, .enc-detected a, .enc-why a, .zip-multinote a, .zip-namehint a, .bdc-note a, .chm-customnote a, .wr-hint a{color: var(--c-primary-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;}
.asv-nofile a:hover, .asv-note a:hover, .enc-note a:hover, .enc-detected a:hover, .zip-multinote a:hover, .bdc-note a:hover, .wr-hint a:hover{color: var(--c-primary-700);}
.btn-sm{padding: 4px 10px; font-size: .82rem;}
@keyframes cmapSpin{to { transform: rotate(360deg); }}
.vl-status.is-bad{color: #c0392b;}
@media (prefers-color-scheme: dark){
.vl-status.is-bad{color: #ff8a80;}
}
.btn-red{background: #dc2626; color: #fff; border-color: #dc2626; box-shadow: var(--shadow-sm);}
.btn-red:hover{background: #b91c1c; border-color: #b91c1c; box-shadow: var(--shadow-md); transform: translateY(-2px);}
.btn-green{background: #16a34a; color: #fff; border-color: #16a34a; box-shadow: var(--shadow-sm);}
.btn-green:hover{background: #15803d; border-color: #15803d; box-shadow: var(--shadow-md); transform: translateY(-2px);}
.btn-blue{background: #0284c7; color: #fff; border-color: #0284c7; box-shadow: var(--shadow-sm);}
.btn-blue:hover{background: #0369a1; border-color: #0369a1; box-shadow: var(--shadow-md); transform: translateY(-2px);}
@media print{
body > header, body > footer, .tool-hero, aside, .wc-toolbar, .cv-actions, .wr-hint, .tsh-setup, .ad-banner, .tsh-actions{display: none !important;}
}
.gt-read{display:flex;align-items:baseline;justify-content:center;gap:16px;flex-wrap:wrap;margin:18px 0 10px}
.gt-note{font-size:clamp(46px,11vw,84px);line-height:1;font-weight:800;color:#0f172a;min-width:1.6em;text-align:center}
.gt-freq{font-size:16px;color:#64748b;font-variant-numeric:tabular-nums}
@media (prefers-color-scheme: dark){
.gt-freq{color:#94a3b8}
}
.gt-cents{font-size:16px;font-weight:700;color:#475569;font-variant-numeric:tabular-nums}
.gt-meter{display:flex;align-items:center;gap:10px;margin:6px 0 4px}
.gt-scale{font-size:20px;color:#94a3b8;flex:none}
.gt-bar{position:relative;flex:1;height:20px;border-radius:999px; background:linear-gradient(90deg,#fecaca 0%,#fde68a 32%,#bbf7d0 47%,#bbf7d0 53%,#fde68a 68%,#fecaca 100%); border:1px solid #e2e8f0}
.gt-center{position:absolute;left:50%;top:-4px;bottom:-4px;width:2px;background:#16a34a;transform:translateX(-50%)}
.gt-needle{position:absolute;left:50%;top:-7px;bottom:-7px;width:5px;border-radius:3px;background:#0f172a; transform:translateX(-50%);transition:left .07s linear,background .1s linear}
.gt-needle.gt-needle-ok{background:#16a34a;box-shadow:0 0 10px 2px rgba(22,163,74,.5)}
.gt-verdict{text-align:center;font-size:15px;font-weight:700;min-height:1.4em;margin:6px 0 2px;color:#64748b}
.gt-verdict.gt-ok{color:#16a34a}
.gt-verdict.gt-off{color:#b45309}
.gt-strings{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:14px 0}
.gt-string{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:64px;padding:8px 10px; border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.gt-string b{font-size:18px;color:#0f172a}
.gt-string b small{font-size:11px;color:#556274;vertical-align:super}
.gt-string i{font-style:normal;font-size:11px;color:#556274}
.gt-string.gt-active{background:#ecfdf5;border-color:#6ee7b7;box-shadow:0 0 0 2px rgba(16,185,129,.18)}
.gt-level{height:6px;border-radius:999px;background:#eef2f7;overflow:hidden;margin:4px 0 12px}
.gt-level i{display:block;height:100%;width:0;background:#38bdf8;transition:width .1s linear}
.gt-a4{max-width:340px;margin:0 auto}
.cc-setup{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.cc-board{display:flex;flex-direction:column;gap:10px;margin-top:18px;background:var(--c-bg)}
.cc-board:fullscreen{justify-content:center;padding:14px;height:100%}
.cc-side{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px; padding:30px 16px;border-radius:var(--radius-lg);cursor:pointer;font:inherit; background:var(--c-surface);border:2px solid var(--c-border);color:var(--c-text); transition:background .15s,border-color .15s}
.cc-board:fullscreen .cc-side{flex:1}
.cc-top{transform:rotate(180deg)}
.cc-name{font-size:.86rem;font-weight:700;color:var(--c-text-soft);text-transform:uppercase;letter-spacing:.04em}
.cc-time{font-size:clamp(2.6rem,11vw,5rem);font-weight:800;font-variant-numeric:tabular-nums;line-height:1}
.cc-moves{font-size:.82rem;color:var(--c-text-soft);font-weight:600}
.cc-side.is-active{border-color:var(--c-tools);background:color-mix(in srgb,var(--c-tools) 14%,var(--c-surface))}
.cc-side.is-low .cc-time{color:#f59e0b}
.cc-side.is-flagged{border-color:#ef4444;background:color-mix(in srgb,#ef4444 16%,var(--c-surface))}
.cc-side.is-flagged .cc-time{color:#ef4444}
.cc-bar{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.st-full{position:fixed;inset:0;z-index:9999;background:#000;cursor:pointer}
.st-full.is-grid{background: repeating-linear-gradient(0deg,#fff 0 1px,#000 1px 2px), repeating-linear-gradient(90deg,#fff 0 1px,#000 1px 2px); background-blend-mode:difference}
.st-hud{position:absolute;left:50%;top:26px;transform:translateX(-50%);display:flex;flex-direction:column; align-items:center;gap:4px;padding:10px 18px;border-radius:var(--radius-pill); background:rgba(0,0,0,.62);color:#fff;font-size:.85rem;text-align:center; transition:opacity .5s;pointer-events:none}
.st-hud b{font-size:1rem}
.st-hud.is-hidden{opacity:0}
.hcd-themes{grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));}
.hcd-sw{display: flex; align-items: center; justify-content: center; font-size: 19px; line-height: 1;}
.hcd-board{--hcd-ink: #fff; --hcd-tile: rgba(255,255,255,.1); --hcd-edge: rgba(255,255,255,.24); --hcd-num: #fff; --hcd-lab: rgba(255,255,255,.75); --hcd-line: #fde68a; --hcd-pill: rgba(0,0,0,.28); --hcd-fx: #ffffff; position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 12px; padding: 44px 14px clamp(70px, 12vw, 130px); min-height: 360px; display: flex; flex-direction: column; justify-content: center; text-align: center; color: var(--hcd-ink); background: #0b1026;}
.hcd-fx{position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;}
.hcd-board > .hcd-decor{position: absolute; inset: 0; z-index: 0; pointer-events: none;}
.hcd-board > .cd-title, .hcd-board > .cd-display, .hcd-board > .hcd-big, .hcd-board > .hcd-sleeps, .hcd-board > .hcd-date{position: relative; z-index: 1;}
.hcd-decor span{position: absolute; line-height: 1; font-size: clamp(34px, 6.5vw, 88px); filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));}
.hcd-decor span:empty{display: none;}
.hcd-dl{left: 3%; bottom: 3%;}
.hcd-dr{right: 3%; bottom: 3%;}
.hcd-decor .hcd-dt{left: 4%; top: 7%; font-size: clamp(24px, 4.2vw, 56px);}
.hcd-title{display: flex; align-items: center; justify-content: center; gap: .3em; flex-wrap: wrap; align-self: center; max-width: 100%; margin: 0 0 12px; padding: 2px 14px; border-radius: 16px; background: var(--hcd-title-bg, transparent); color: var(--hcd-ink); font-family: var(--hcd-font, inherit); font-weight: 800; font-size: clamp(1.25rem, 4vw, 2rem); text-shadow: var(--hcd-tshadow, none);}
.hcd-emoji{font-size: 2em; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3));}
.hcd-sleeps{display: inline-block; align-self: center; margin: 8px 0 0; padding: 4px 14px; border-radius: 999px; background: var(--hcd-pill); color: var(--hcd-line); font-size: 1.05rem; font-weight: 600;}
.hcd-date{align-self: center; margin: 8px 0 0; padding: 2px 12px; border-radius: 999px; background: var(--hcd-date-bg, transparent); color: var(--hcd-ink); font-size: .95rem; opacity: .92;}
.hcd-sleeps:empty, .hcd-date:empty{display: none;}
.hcd-big{display: none; font-size: clamp(5rem, 26vw, 11rem); font-weight: 900; line-height: 1; margin: 4px 0; color: var(--hcd-num); font-family: var(--hcd-numfont, inherit); font-variant-numeric: tabular-nums; text-shadow: var(--hcd-glow, 0 6px 26px rgba(0,0,0,.3));}
.hcd-final .hcd-big{display: block;}
.hcd-pop{animation: hcdPop .9s ease-out;}
@keyframes hcdPop{0% { transform: scale(1.6); opacity: .15; } 30% { opacity: 1; } 100% { transform: scale(1); }}
.hcd-party .hcd-title{animation: hcdCheer 1.1s ease-in-out 6;}
@keyframes hcdCheer{50% { transform: scale(1.08) rotate(-1deg); }}
@media (prefers-reduced-motion: reduce){
.hcd-pop, .hcd-party .hcd-title{animation: none;}
}
@media (max-width: 640px){
.hcd-decor span{opacity: .8;}
}
.hcd-years{display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 8px; margin: 0 0 16px;}
.hcd-years-h{flex-basis: 100%; font-weight: 700; font-size: .9rem; color: var(--c-text-soft);}
.hcd-yr{display: flex; flex-direction: column; min-width: 0; padding: 6px 12px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface-2); font-size: .88rem; line-height: 1.35;}
.hcd-yr b{font-size: .8rem; color: var(--c-text-soft);}
.hcd-yr em{font-style: normal; font-size: .75rem; color: var(--c-text-soft);}
.hcd-yr.is-next{border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 16%, transparent);}
.hcd-yr.is-next b{color: #4f46e5;}
@media (prefers-color-scheme: dark){
.hcd-yr.is-next b{color: #a5b4fc;}
}
.hcd-yr.is-past{border-style: dashed;}
.hcd-checks{display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;}
.hcd-board.aat-fs{border-radius: 0; padding-bottom: 18vh;}
.hcd-board.aat-fs .hcd-title{display: flex; font-size: min(6.5vh, 4.4vw); flex-wrap: nowrap; white-space: nowrap;}
.hcd-board.aat-fs .hcd-sleeps{font-size: min(3.2vh, 2.2vw);}
.hcd-board.aat-fs .hcd-date{font-size: min(2.6vh, 1.8vw);}
.hcd-board.aat-fs .hcd-big{font-size: min(48vh, 36vw);}
.hcd-board.aat-fs .hcd-decor span{font-size: min(14vh, 9vw);}
.hcd-board.aat-fs .hcd-decor .hcd-dt{font-size: min(9vh, 6vw);}
.hcd-th-ny-gold{background: radial-gradient(1.5px 1.5px at 14% 22%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 38% 9%, #fff 50%, transparent), radial-gradient(2px 2px at 63% 18%, #fde68a 50%, transparent), radial-gradient(1.5px 1.5px at 86% 32%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 74% 8%, #fff 50%, transparent), radial-gradient(ellipse at 50% 0%, #1e3a8a, #0b1026 62%, #05060f); --hcd-ink: #fff7d6; --hcd-tile: rgba(0,0,0,.35); --hcd-edge: #d4a017; --hcd-num: #fcd34d; --hcd-lab: #fde68a; --hcd-line: #fde68a; --hcd-blend: lighter; --hcd-fx: #fcd34d #fde68a #ffffff #f59e0b #fb7185 #60a5fa;}
.hcd-th-ny-champagne{background: radial-gradient(circle at 20% 70%, rgba(255,255,255,.75) 0 3px, transparent 4px), radial-gradient(circle at 76% 40%, rgba(255,255,255,.65) 0 4px, transparent 5px), radial-gradient(circle at 60% 84%, rgba(255,255,255,.6) 0 2px, transparent 3px), radial-gradient(circle at 34% 28%, rgba(255,255,255,.55) 0 2px, transparent 3px), linear-gradient(165deg, #fdf6e3, #f1dca6 55%, #d4a857); --hcd-ink: #4a3410; --hcd-tile: rgba(255,255,255,.7); --hcd-edge: #b8892f; --hcd-num: #6b4a12; --hcd-lab: #8a6420; --hcd-line: #4a3410; --hcd-pill: rgba(255,255,255,.65); --hcd-font: Georgia, "Times New Roman", serif; --hcd-numfont: Georgia, "Times New Roman", serif; --hcd-fx: #b45309 #d97706 #be123c #7c2d12 #ca8a04;}
.hcd-th-ny-neon{background: radial-gradient(circle at 15% 25%, rgba(236,72,153,.45), transparent 42%), radial-gradient(circle at 85% 75%, rgba(34,211,238,.38), transparent 44%), #0a0016; --hcd-ink: #f5d0fe; --hcd-tile: rgba(10,0,22,.6); --hcd-edge: #e879f9; --hcd-num: #a5f3fc; --hcd-lab: #f0abfc; --hcd-line: #a5f3fc; --hcd-pill: rgba(0,0,0,.45); --hcd-glow: 0 0 10px #22d3ee, 0 0 24px rgba(34,211,238,.6); --hcd-shadow: 0 0 14px rgba(232,121,249,.55), inset 0 0 10px rgba(232,121,249,.35); --hcd-blend: lighter; --hcd-fx: #f0abfc #22d3ee #a3e635 #f472b6 #facc15;}
.hcd-th-ny-times{background: radial-gradient(circle at 50% 0, rgba(250,204,21,.22), transparent 45%), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px), linear-gradient(180deg, #0f172a, #1e1b4b 70%, #312e81); --hcd-ink: #fff; --hcd-tile: #050505; --hcd-edge: #dc2626; --hcd-num: #facc15; --hcd-lab: #fca5a5; --hcd-line: #fff; --hcd-pill: #dc2626; --hcd-r: 8px; --hcd-numfont: "Courier New", Consolas, monospace; --hcd-glow: 0 0 10px rgba(250,204,21,.8); --hcd-font: Impact, "Arial Black", sans-serif; --hcd-blend: lighter; --hcd-fx: #ef4444 #ffffff #3b82f6 #facc15;}
.hcd-th-ny-times .hcd-title{font-weight: 400; letter-spacing: .02em;}
.hcd-th-ny-confetti{background: radial-gradient(circle, #facc15 0 2.5px, transparent 3px) 0 0 / 46px 46px, radial-gradient(circle, #22d3ee 0 2.5px, transparent 3px) 23px 17px / 46px 46px, radial-gradient(circle, #fff 0 2px, transparent 2.5px) 11px 31px / 46px 46px, radial-gradient(circle, #a3e635 0 2px, transparent 2.5px) 35px 5px / 46px 46px, linear-gradient(135deg, #7c3aed, #db2777); --hcd-ink: #fff; --hcd-tile: #fff; --hcd-edge: #fff; --hcd-num: #7c3aed; --hcd-lab: #9d174d; --hcd-line: #fff; --hcd-pill: rgba(0,0,0,.25); --hcd-shadow: 0 6px 18px rgba(0,0,0,.25); --hcd-fx: #facc15 #22d3ee #ffffff #a3e635 #fb7185;}
.hcd-th-ny-minimal, .hcd-th-tg-minimal, .hcd-th-hw-minimal, .hcd-th-vd-minimal, .hcd-th-ea-minimal, .hcd-th-sm-minimal, .hcd-th-wi-minimal, .hcd-th-hk-minimal, .hcd-th-cn-minimal{background: var(--c-surface-2); --hcd-ink: var(--c-text); --hcd-tile: var(--c-surface); --hcd-edge: var(--c-border); --hcd-num: var(--c-text); --hcd-lab: var(--c-text-soft); --hcd-line: var(--c-text); --hcd-pill: var(--c-surface);}
.hcd-board.hcd-th-ny-minimal, .hcd-board.hcd-th-tg-minimal, .hcd-board.hcd-th-hw-minimal, .hcd-board.hcd-th-vd-minimal, .hcd-board.hcd-th-ea-minimal, .hcd-board.hcd-th-sm-minimal, .hcd-board.hcd-th-wi-minimal, .hcd-board.hcd-th-hk-minimal, .hcd-board.hcd-th-cn-minimal{box-shadow: inset 0 0 0 1px var(--c-border);}
.hcd-th-wi-minimal{--hcd-fx: #93c5fd #60a5fa #cbd5e1;}
.hcd-th-hk-minimal{--hcd-fx: #2563eb #60a5fa #ca8a04;}
.hcd-th-cn-minimal{--hcd-fx: #dc2626 #ca8a04 rgba(250,204,21,.45);}
.hcd-th-sm-minimal{--hcd-fx: #0ea5e9 #f59e0b #14b8a6 #f472b6;}
.hcd-th-ny-minimal{--hcd-fx: #6366f1 #f59e0b #10b981 #ef4444;}
.hcd-th-tg-minimal{--hcd-fx: #ea580c #b91c1c #ca8a04 #92400e;}
.hcd-th-hw-minimal{--hcd-fx: #1e293b #94a3b8 #f1f5f9;}
.hcd-th-vd-minimal{--hcd-fx: #e11d48 #fb7185 #f43f5e;}
.hcd-th-ea-minimal{--hcd-fx: #f9a8d4 #fde68a #c4b5fd #86efac;}
.hcd-th-tg-harvest{background: radial-gradient(ellipse at 50% 0, rgba(253,186,116,.35), transparent 60%), linear-gradient(180deg, #c2410c, #9a3412 55%, #431407); --hcd-ink: #fff7ed; --hcd-tile: #fff7ed; --hcd-edge: #fed7aa; --hcd-num: #9a3412; --hcd-lab: #c2410c; --hcd-line: #ffedd5; --hcd-shadow: 0 6px 18px rgba(67,20,7,.35); --hcd-fx: #facc15 #dc2626 #fde68a #f59e0b #7c2d12;}
.hcd-th-tg-turkey{background: repeating-conic-gradient(from 270deg at 50% 112%, #7c2d12 0 10deg, #9a3412 10deg 20deg, #b45309 20deg 30deg); --hcd-ink: #fff7ed; --hcd-tile: #431407; --hcd-edge: #f59e0b; --hcd-num: #fde68a; --hcd-lab: #fdba74; --hcd-line: #fff7ed; --hcd-pill: rgba(0,0,0,.4); --hcd-title-bg: rgba(67,20,7,.55); --hcd-fx: #f59e0b #dc2626 #fde68a #ea580c;}
.hcd-th-tg-maple{background: linear-gradient(90deg, #d52b1e 0 15%, #fff 15% 85%, #d52b1e 85%); --hcd-ink: #b91c1c; --hcd-tile: #d52b1e; --hcd-edge: #d52b1e; --hcd-num: #fff; --hcd-lab: #fee2e2; --hcd-line: #991b1b; --hcd-pill: #fee2e2; --hcd-title-bg: #fff; --hcd-date-bg: #fff; --hcd-fx: #dc2626 #ef4444 #f97316 #b91c1c;}
.hcd-th-tg-pie{background: radial-gradient(circle at 50% 45%, #fef3c7, #fed7aa 70%, #fdba74); --hcd-ink: #7c2d12; --hcd-tile: #ea580c; --hcd-edge: #fbbf24; --hcd-bs: dashed; --hcd-num: #fff; --hcd-lab: #ffedd5; --hcd-line: #7c2d12; --hcd-pill: rgba(255,255,255,.7); --hcd-r: 22px; --hcd-fx: #c2410c #b45309 #dc2626 #ca8a04;}
.hcd-board.hcd-th-tg-pie{box-shadow: inset 0 0 0 10px #d97706, inset 0 0 0 14px #fbbf24;}
.hcd-th-tg-plaid{background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(250,204,21,.35) 40px 42px, transparent 42px 88px), repeating-linear-gradient(0deg, rgba(0,0,0,.32) 0 22px, transparent 22px 44px), repeating-linear-gradient(90deg, rgba(0,0,0,.32) 0 22px, transparent 22px 44px), #9a3412; --hcd-ink: #fff7ed; --hcd-tile: #fffbeb; --hcd-edge: #fde68a; --hcd-num: #7c2d12; --hcd-lab: #9a3412; --hcd-line: #fef3c7; --hcd-pill: rgba(0,0,0,.5); --hcd-title-bg: rgba(0,0,0,.45); --hcd-date-bg: rgba(0,0,0,.45); --hcd-shadow: 0 6px 16px rgba(0,0,0,.35); --hcd-fx: #f59e0b #fde68a #ea580c #dc2626;}
.hcd-th-hw-pumpkin{background: radial-gradient(ellipse 80% 55% at 50% 115%, #f97316, #9a3412 45%, transparent 75%), radial-gradient(circle at 93% 11%, #fef3c7 0 4%, rgba(254,243,199,.18) 5%, transparent 11%), #0c0a09; --hcd-tshadow: 0 2px 10px rgba(0,0,0,.9); --hcd-ink: #fed7aa; --hcd-tile: rgba(0,0,0,.55); --hcd-edge: #f97316; --hcd-num: #fb923c; --hcd-lab: #fdba74; --hcd-line: #fed7aa; --hcd-pill: rgba(0,0,0,.5); --hcd-glow: 0 0 14px rgba(249,115,22,.6); --hcd-fx: #0c0a09 #fb923c #fff7ed;}
.hcd-th-hw-haunted{background: radial-gradient(circle at 92% 13%, #fefce8 0 6%, rgba(254,252,232,.22) 7%, transparent 14%), linear-gradient(180deg, #1e1b4b, #4c1d95 65%, #2e1065); --hcd-tshadow: 0 2px 10px rgba(15,10,40,.95); --hcd-ink: #ede9fe; --hcd-tile: rgba(15,10,40,.55); --hcd-edge: #a78bfa; --hcd-num: #fff; --hcd-lab: #c4b5fd; --hcd-line: #ede9fe; --hcd-fx: #0b0820 #a78bfa #ede9fe;}
.hcd-th-hw-ghost{background: radial-gradient(ellipse at 50% 120%, rgba(148,163,184,.45), transparent 60%), linear-gradient(180deg, #0f172a, #1e293b); --hcd-ink: #f8fafc; --hcd-tile: #f8fafc; --hcd-edge: #f8fafc; --hcd-num: #1e293b; --hcd-lab: #475569; --hcd-line: #e2e8f0; --hcd-r: 46px 46px 12px 12px; --hcd-fx: #020617 #94a3b8 #ffffff;}
.hcd-th-hw-witch{background: radial-gradient(ellipse 70% 50% at 50% 115%, #65a30d, #14532d 45%, transparent 75%), linear-gradient(180deg, #1a0b2e, #2e1065); --hcd-ink: #ecfccb; --hcd-tile: #3b0764; --hcd-edge: #a3e635; --hcd-num: #bef264; --hcd-lab: #d9f99d; --hcd-line: #ecfccb; --hcd-pill: rgba(0,0,0,.4); --hcd-glow: 0 0 12px rgba(163,230,53,.55); --hcd-fx: #0a0514 #a3e635 #ecfccb;}
.hcd-th-hw-candy{background: linear-gradient(180deg, #fef3c7 0 30%, #fb923c 30% 70%, #facc15 70%); --hcd-ink: #431407; --hcd-tile: #3b0764; --hcd-edge: #fffbeb; --hcd-num: #fde68a; --hcd-lab: #e9d5ff; --hcd-line: #431407; --hcd-pill: rgba(255,251,235,.85); --hcd-date-bg: rgba(255,251,235,.7); --hcd-fx: #1c1917 #431407 #ffffff;}
.hcd-th-vd-rose{background: radial-gradient(circle at 50% 35%, #be123c, #881337 60%, #4c0519); --hcd-ink: #fff1f2; --hcd-tile: rgba(255,255,255,.12); --hcd-edge: rgba(255,228,230,.45); --hcd-num: #fff; --hcd-lab: #fecdd3; --hcd-line: #ffe4e6; --hcd-fx: #fecdd3 #fb7185 #ffffff #fda4af;}
.hcd-th-vd-pink{background: radial-gradient(circle at 20% 15%, #fff, transparent 40%), linear-gradient(180deg, #ffe4e6, #fbcfe8); --hcd-ink: #9f1239; --hcd-tile: #fff; --hcd-edge: #fda4af; --hcd-num: #e11d48; --hcd-lab: #be185d; --hcd-line: #9f1239; --hcd-pill: rgba(255,255,255,.75); --hcd-shadow: 0 6px 16px rgba(225,29,72,.15); --hcd-fx: #f43f5e #fb7185 #e11d48 #f472b6;}
.hcd-th-vd-letter{background: repeating-linear-gradient(180deg, transparent 0 29px, rgba(190,18,60,.14) 29px 30px), linear-gradient(180deg, #fffaf0, #fdf2e9); --hcd-ink: #9f1239; --hcd-tile: rgba(255,255,255,.6); --hcd-edge: #e11d48; --hcd-bs: dashed; --hcd-num: #be123c; --hcd-lab: #9f1239; --hcd-line: #881337; --hcd-pill: rgba(255,228,230,.8); --hcd-font: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; --hcd-numfont: Georgia, "Times New Roman", serif; --hcd-fx: #e11d48 #be123c #fb7185;}
.hcd-board.hcd-th-vd-letter{border: 12px solid transparent; border-image: repeating-linear-gradient(45deg, #e11d48 0 12px, #fff 12px 24px, #f9a8d4 24px 36px, #fff 36px 48px) 12; border-radius: 0; padding-top: 32px;}
.hcd-th-vd-letter .hcd-title{font-weight: 700;}
.hcd-th-vd-candy{background: radial-gradient(circle, #fbcfe8 0 5px, transparent 6px) 0 0 / 40px 40px, radial-gradient(circle, #bae6fd 0 4px, transparent 5px) 20px 20px / 40px 40px, #fdf4ff; --hcd-ink: #a21caf; --hcd-tile: #fbcfe8; --hcd-edge: #fff; --hcd-num: #831843; --hcd-lab: #9d174d; --hcd-line: #86198f; --hcd-pill: #fff; --hcd-r: 24px; --hcd-shadow: 0 4px 0 rgba(0,0,0,.08); --hcd-fx: #f9a8d4 #c4b5fd #fde68a #a7f3d0 #fda4af;}
.hcd-th-vd-night{background: radial-gradient(1.5px 1.5px at 16% 18%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 42% 10%, #fff 50%, transparent), radial-gradient(2px 2px at 70% 22%, #fbcfe8 50%, transparent), radial-gradient(1.5px 1.5px at 88% 12%, #fff 50%, transparent), linear-gradient(180deg, #1e1b4b, #4a044e); --hcd-ink: #fdf2f8; --hcd-tile: rgba(0,0,0,.3); --hcd-edge: #f9a8d4; --hcd-num: #fde68a; --hcd-lab: #fbcfe8; --hcd-line: #fde68a; --hcd-font: Georgia, "Times New Roman", serif; --hcd-fx: #f9a8d4 #fb7185 #fde68a #f472b6;}
.hcd-th-ea-spring{background: radial-gradient(circle at 14% 16%, #fef08a 0 6%, rgba(254,240,138,.35) 7%, transparent 14%), linear-gradient(180deg, #7dd3fc, #e0f2fe 74%, #86efac 74%, #4ade80); --hcd-ink: #0c4a6e; --hcd-tile: #fff; --hcd-edge: #fff; --hcd-num: #15803d; --hcd-lab: #0369a1; --hcd-line: #14532d; --hcd-pill: rgba(255,255,255,.75); --hcd-shadow: 0 6px 16px rgba(12,74,110,.15); --hcd-fx: #f472b6 #f9a8d4 #facc15 #ffffff;}
.hcd-th-ea-eggs{background: repeating-linear-gradient(135deg, #fde68a 0 22px, #fbcfe8 22px 44px, #bfdbfe 44px 66px, #bbf7d0 66px 88px, #e9d5ff 88px 110px); --hcd-ink: #581c87; --hcd-title-bg: rgba(255,255,255,.88); --hcd-tile: #fff; --hcd-edge: #c4b5fd; --hcd-num: #7c3aed; --hcd-lab: #6d28d9; --hcd-line: #581c87; --hcd-pill: rgba(255,255,255,.92); --hcd-date-bg: rgba(255,255,255,.85); --hcd-r: 50% 50% 46% 46% / 58% 58% 42% 42%; --hcd-fx: #f472b6 #a78bfa #60a5fa #34d399 #fbbf24;}
.hcd-th-ea-bunny{background: radial-gradient(circle at 50% 0, #fff, #fce7f3 55%, #fbcfe8); --hcd-ink: #9d174d; --hcd-tile: #fff; --hcd-edge: #f9a8d4; --hcd-num: #db2777; --hcd-lab: #be185d; --hcd-line: #831843; --hcd-pill: rgba(255,255,255,.8); --hcd-r: 28px; --hcd-fx: #f9a8d4 #f472b6 #fde68a #ffffff;}
.hcd-th-ea-lily{background: radial-gradient(circle at 50% 40%, #fffef7, #fef9c3 60%, #fde68a); --hcd-ink: #713f12; --hcd-tile: #fff; --hcd-edge: #d4a017; --hcd-num: #854d0e; --hcd-lab: #a16207; --hcd-line: #713f12; --hcd-pill: rgba(255,255,255,.7); --hcd-font: Georgia, "Times New Roman", serif; --hcd-numfont: Georgia, "Times New Roman", serif; --hcd-fx: #fbbf24 #f59e0b #fde68a #a3e635;}
.hcd-th-ea-sunrise{background: radial-gradient(ellipse 60% 45% at 50% 105%, #fef08a, #fb923c 40%, transparent 70%), linear-gradient(180deg, #6d28d9, #db2777 60%, #fb923c); --hcd-ink: #fff; --hcd-tile: rgba(255,255,255,.18); --hcd-edge: rgba(255,255,255,.5); --hcd-num: #fff; --hcd-lab: #ffe4e6; --hcd-line: #fff7ed; --hcd-pill: rgba(0,0,0,.25); --hcd-fx: #fbcfe8 #ffffff #fde68a #fda4af;}
.hcd-th-sm-beach{background: radial-gradient(circle at 86% 14%, #fef08a 0 6%, rgba(254,240,138,.4) 7%, transparent 15%), linear-gradient(180deg, #38bdf8, #bae6fd 58%, #22d3ee 58%, #0891b2 72%, #fde68a 72%, #fcd34d); --hcd-ink: #0c4a6e; --hcd-tile: #fff; --hcd-edge: #fff; --hcd-num: #0369a1; --hcd-lab: #0e7490; --hcd-line: #713f12; --hcd-pill: rgba(255,255,255,.8); --hcd-title-bg: rgba(255,255,255,.7); --hcd-date-bg: rgba(255,255,255,.75); --hcd-shadow: 0 6px 16px rgba(12,74,110,.18); --hcd-fx: #ffffff #e0f2fe #fef9c3;}
.hcd-th-sm-sunshine{background: repeating-conic-gradient(from 0deg at 50% 0, rgba(255,255,255,.28) 0 8deg, transparent 8deg 16deg), radial-gradient(circle at 50% 0, #fef08a, #facc15 45%, #f59e0b); --hcd-ink: #713f12; --hcd-tile: #fff; --hcd-edge: #fde68a; --hcd-num: #c2410c; --hcd-lab: #a16207; --hcd-line: #713f12; --hcd-pill: rgba(255,255,255,.75); --hcd-r: 28px; --hcd-shadow: 0 6px 16px rgba(161,98,7,.25); --hcd-fx: #ffffff #fff7ed #fef3c7;}
.hcd-th-sm-ocean{background: repeating-radial-gradient(ellipse 60px 22px at 50% 100%, rgba(255,255,255,.14) 0 3px, transparent 3px 22px), linear-gradient(180deg, #0284c7, #0e7490 60%, #164e63); --hcd-ink: #ecfeff; --hcd-tile: rgba(255,255,255,.14); --hcd-edge: rgba(207,250,254,.55); --hcd-num: #fff; --hcd-lab: #a5f3fc; --hcd-line: #cffafe; --hcd-pill: rgba(0,0,0,.25); --hcd-fx: #cffafe #ffffff #67e8f9;}
.hcd-th-sm-tropical{background: radial-gradient(circle at 12% 88%, rgba(244,114,182,.55), transparent 35%), radial-gradient(circle at 90% 20%, rgba(250,204,21,.45), transparent 35%), linear-gradient(135deg, #14b8a6, #0d9488 50%, #065f46); --hcd-ink: #fff; --hcd-tile: #fff; --hcd-edge: #fbcfe8; --hcd-num: #db2777; --hcd-lab: #0f766e; --hcd-line: #f0fdfa; --hcd-pill: rgba(0,0,0,.25); --hcd-r: 22px; --hcd-shadow: 0 6px 18px rgba(6,95,70,.35); --hcd-fx: #fbcfe8 #fef08a #ffffff #a7f3d0;}
.hcd-th-sm-sunset{background: radial-gradient(ellipse 55% 40% at 50% 100%, #fde047, #fb923c 45%, transparent 72%), linear-gradient(180deg, #4c1d95, #be185d 55%, #f97316); --hcd-ink: #fff7ed; --hcd-tile: rgba(255,255,255,.16); --hcd-edge: rgba(255,237,213,.55); --hcd-num: #fff; --hcd-lab: #fed7aa; --hcd-line: #fff7ed; --hcd-pill: rgba(0,0,0,.25); --hcd-blend: lighter; --hcd-fx: #fed7aa #fde68a #fbcfe8;}
.hcd-th-wi-snowy{background: radial-gradient(1.5px 1.5px at 18% 20%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 72% 12%, #fff 50%, transparent), radial-gradient(ellipse 90% 30% at 50% 110%, #f8fafc 60%, transparent 61%), linear-gradient(180deg, #0f172a, #1e3a8a 70%, #3b82f6); --hcd-ink: #f1f5f9; --hcd-tile: rgba(255,255,255,.12); --hcd-edge: rgba(226,232,240,.5); --hcd-num: #fff; --hcd-lab: #bfdbfe; --hcd-line: #e0f2fe; --hcd-pill: rgba(15,23,42,.55); --hcd-date-bg: rgba(15,23,42,.55); --hcd-fx: #ffffff #e0f2fe #f8fafc;}
.hcd-th-wi-frost{background: repeating-linear-gradient(60deg, rgba(255,255,255,.22) 0 1px, transparent 1px 34px), repeating-linear-gradient(-60deg, rgba(255,255,255,.22) 0 1px, transparent 1px 34px), linear-gradient(180deg, #e0f2fe, #bae6fd 60%, #7dd3fc); --hcd-ink: #0c4a6e; --hcd-tile: #fff; --hcd-edge: #e0f2fe; --hcd-num: #0369a1; --hcd-lab: #0e7490; --hcd-line: #0c4a6e; --hcd-pill: rgba(255,255,255,.8); --hcd-shadow: 0 6px 16px rgba(12,74,110,.18); --hcd-fx: #ffffff #f0f9ff #e0f2fe;}
.hcd-th-wi-cabin{background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 30px), linear-gradient(180deg, #7c2d12, #431407); --hcd-ink: #fff7ed; --hcd-tile: #fef3c7; --hcd-edge: #f59e0b; --hcd-num: #7c2d12; --hcd-lab: #9a3412; --hcd-line: #fde68a; --hcd-pill: rgba(0,0,0,.4); --hcd-r: 18px; --hcd-font: Georgia, "Times New Roman", serif; --hcd-fx: #ffffff #fef3c7 #fde68a;}
.hcd-th-wi-pine{background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,.05) 40px 42px), radial-gradient(ellipse 80% 40% at 50% 112%, #f8fafc 60%, transparent 61%), linear-gradient(180deg, #14532d, #052e16); --hcd-ink: #f0fdf4; --hcd-tile: #f8fafc; --hcd-edge: #bbf7d0; --hcd-num: #14532d; --hcd-lab: #166534; --hcd-line: #dcfce7; --hcd-pill: rgba(0,0,0,.4); --hcd-date-bg: rgba(5,46,22,.6); --hcd-fx: #ffffff #f0fdf4 #e2e8f0;}
.hcd-th-wi-aurora{background: radial-gradient(ellipse 70% 35% at 30% 25%, rgba(74,222,128,.45), transparent 70%), radial-gradient(ellipse 60% 30% at 75% 35%, rgba(167,139,250,.4), transparent 70%), linear-gradient(180deg, #020617, #0f172a 60%, #1e1b4b); --hcd-ink: #ecfeff; --hcd-tile: rgba(2,6,23,.55); --hcd-edge: #5eead4; --hcd-num: #a7f3d0; --hcd-lab: #99f6e4; --hcd-line: #ccfbf1; --hcd-pill: rgba(0,0,0,.4); --hcd-glow: 0 0 12px rgba(94,234,212,.6); --hcd-blend: lighter; --hcd-fx: #e0f2fe #a7f3d0 #ffffff;}
.hcd-th-hk-blue{background: radial-gradient(circle at 50% 0, rgba(255,255,255,.2), transparent 55%), linear-gradient(180deg, #1e3a8a, #1d4ed8 60%, #1e40af); --hcd-ink: #eff6ff; --hcd-tile: rgba(255,255,255,.14); --hcd-edge: #cbd5e1; --hcd-num: #fff; --hcd-lab: #dbeafe; --hcd-line: #e2e8f0; --hcd-pill: rgba(0,0,0,.25); --hcd-menorah: #cbd5e1; --hcd-fx: #e2e8f0 #ffffff #bfdbfe;}
.hcd-th-hk-gold{background: radial-gradient(ellipse 60% 45% at 50% 100%, rgba(250,204,21,.35), transparent 70%), linear-gradient(180deg, #0b1026, #1e1b4b); --hcd-ink: #fef9c3; --hcd-tile: rgba(0,0,0,.35); --hcd-edge: #d4a017; --hcd-num: #fcd34d; --hcd-lab: #fde68a; --hcd-line: #fde68a; --hcd-font: Georgia, "Times New Roman", serif; --hcd-glow: 0 0 10px rgba(250,204,21,.55); --hcd-menorah: #d4a017; --hcd-blend: lighter; --hcd-fx: #fcd34d #fde68a #f59e0b;}
.hcd-th-hk-night{background: radial-gradient(1.5px 1.5px at 14% 22%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 40% 10%, #fff 50%, transparent), radial-gradient(2px 2px at 66% 20%, #bfdbfe 50%, transparent), radial-gradient(1.5px 1.5px at 88% 30%, #fff 50%, transparent), linear-gradient(180deg, #020617, #172554); --hcd-ink: #e0f2fe; --hcd-tile: rgba(255,255,255,.08); --hcd-edge: #60a5fa; --hcd-num: #fff; --hcd-lab: #93c5fd; --hcd-line: #bfdbfe; --hcd-menorah: #93c5fd; --hcd-blend: lighter; --hcd-fx: #93c5fd #ffffff #fde68a;}
.hcd-th-hk-treats{background: radial-gradient(circle, #fde68a 0 4px, transparent 5px) 0 0 / 44px 44px, radial-gradient(circle, #93c5fd 0 3px, transparent 4px) 22px 22px / 44px 44px, #fffbeb; --hcd-ink: #1e3a8a; --hcd-tile: #2563eb; --hcd-edge: #fff; --hcd-num: #fff; --hcd-lab: #dbeafe; --hcd-line: #1e3a8a; --hcd-pill: #fff; --hcd-r: 24px; --hcd-shadow: 0 4px 0 rgba(0,0,0,.08); --hcd-menorah: #ca8a04; --hcd-fx: #2563eb #f59e0b #60a5fa;}
.hcd-th-hk-white{background: linear-gradient(180deg, #fff 0 16%, #2563eb 16% 22%, #fff 22% 78%, #2563eb 78% 84%, #fff 84%); --hcd-ink: #1e3a8a; --hcd-tile: #fff; --hcd-edge: #2563eb; --hcd-num: #1d4ed8; --hcd-lab: #1e40af; --hcd-line: #1e3a8a; --hcd-pill: #eff6ff; --hcd-title-bg: #fff; --hcd-date-bg: #fff; --hcd-menorah: #2563eb; --hcd-fx: #2563eb #60a5fa #1d4ed8;}
.hcd-menorah{display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin: 14px auto 2px; padding-bottom: 6px; position: relative; z-index: 1; border-bottom: 3px solid var(--hcd-menorah, var(--hcd-line, currentColor)); width: max-content; max-width: 100%;}
.hcd-menorah i{position: relative; width: 9px; height: 30px; border-radius: 2px; background: var(--hcd-menorah, var(--hcd-line, currentColor)); opacity: .55;}
.hcd-menorah i.is-shamash{height: 42px; margin: 0 6px;}
.hcd-menorah i.is-lit{opacity: 1;}
.hcd-menorah i.is-lit::before{content: ""; position: absolute; left: 50%; bottom: 100%; width: 9px; height: 14px; margin-left: -4.5px; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; background: radial-gradient(circle at 50% 70%, #fff7ad, #fbbf24 55%, #f97316); box-shadow: 0 0 10px rgba(251,191,36,.8); animation: hcd-flicker 1.6s ease-in-out infinite alternate;}
@keyframes hcd-flicker{from { transform: scale(1) rotate(-2deg); } to { transform: scale(.9, 1.06) rotate(2deg); }}
@media (prefers-reduced-motion: reduce){
.hcd-menorah i.is-lit::before{animation: none;}
}
.hcd-th-cn-red{background: radial-gradient(circle at 50% 0, rgba(254,202,202,.25), transparent 55%), linear-gradient(180deg, #b91c1c, #7f1d1d); --hcd-ink: #fef3c7; --hcd-tile: #fef3c7; --hcd-edge: #facc15; --hcd-num: #b91c1c; --hcd-lab: #991b1b; --hcd-line: #fde68a; --hcd-pill: rgba(0,0,0,.25); --hcd-shadow: 0 6px 18px rgba(69,10,10,.35); --hcd-fx: #ef4444 #facc15 rgba(250,204,21,.5);}
.hcd-th-cn-gold{background: repeating-radial-gradient(circle at 50% 50%, transparent 0 18px, rgba(250,204,21,.12) 18px 20px), linear-gradient(135deg, #991b1b, #dc2626 50%, #991b1b); --hcd-ink: #fde68a; --hcd-tile: #facc15; --hcd-edge: #fde68a; --hcd-num: #7f1d1d; --hcd-lab: #991b1b; --hcd-line: #fde68a; --hcd-pill: rgba(0,0,0,.3); --hcd-font: Georgia, "Times New Roman", serif; --hcd-numfont: Georgia, "Times New Roman", serif; --hcd-fx: #b91c1c #fde68a rgba(253,230,138,.55);}
.hcd-th-cn-lantern{background: radial-gradient(circle at 86% 16%, #fef9c3 0 6%, rgba(254,249,195,.25) 7%, transparent 14%), linear-gradient(180deg, #0c0a09, #292524 60%, #450a0a); --hcd-ink: #fef2f2; --hcd-tile: rgba(0,0,0,.45); --hcd-edge: #ef4444; --hcd-num: #fca5a5; --hcd-lab: #fecaca; --hcd-line: #fde68a; --hcd-pill: rgba(0,0,0,.45); --hcd-glow: 0 0 12px rgba(239,68,68,.6); --hcd-blend: lighter; --hcd-fx: #ef4444 #facc15 rgba(248,113,113,.55);}
.hcd-th-cn-blossom{background: radial-gradient(circle at 12% 18%, #fbcfe8 0 10px, transparent 11px), radial-gradient(circle at 88% 78%, #fbcfe8 0 12px, transparent 13px), radial-gradient(circle at 80% 14%, #fda4af 0 7px, transparent 8px), linear-gradient(180deg, #fff7ed, #fee2e2); --hcd-ink: #881337; --hcd-tile: #fff; --hcd-edge: #fda4af; --hcd-num: #be123c; --hcd-lab: #9f1239; --hcd-line: #881337; --hcd-pill: rgba(255,255,255,.8); --hcd-shadow: 0 6px 16px rgba(190,18,60,.15); --hcd-fx: #e11d48 #f59e0b rgba(251,113,133,.45);}
.hcd-th-cn-papercut{background: repeating-conic-gradient(from 45deg at 50% 50%, #dc2626 0 25%, #b91c1c 0 50%) 0 0 / 36px 36px; --hcd-ink: #fff; --hcd-tile: #fff; --hcd-edge: #fff; --hcd-num: #b91c1c; --hcd-lab: #7f1d1d; --hcd-line: #fff; --hcd-pill: rgba(0,0,0,.35); --hcd-title-bg: rgba(127,29,29,.75); --hcd-date-bg: rgba(127,29,29,.75); --hcd-r: 4px; --hcd-fx: #f87171 #fde68a rgba(253,230,138,.45);}
.unit-formula{margin: 14px 0 0; text-align: center; font-size: .95rem; color: var(--c-text-soft); font-variant-numeric: tabular-nums;}
.unit-formula:empty{display: none;}
.prose .md-table{overflow-x: auto; margin: 0 0 1.2em;}
.prose .md-table table{border-collapse: collapse; min-width: 260px; font-variant-numeric: tabular-nums;}
.prose .md-table th, .prose .md-table td{padding: 7px 16px; border-bottom: 1px solid var(--c-border); text-align: left;}
.prose .md-table th{font-weight: 700; color: var(--c-text); background: var(--c-surface-2);}
.prose .md-table tbody tr:nth-child(even) td{background: color-mix(in srgb, var(--c-surface-2) 50%, transparent);}
@media (max-width: 480px){
.prose .md-table table{font-size: .9375rem;}
.prose .md-table th, .prose .md-table td{padding: 7px 8px;}
.prose .md-table th:first-child, .prose .md-table td:first-child{padding-left: 4px;}
.prose .md-table th, .prose .md-table td{hyphens: auto; overflow-wrap: break-word;}
}
.unit-list{margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--c-border);}
.unit-list-h{margin: 0 0 4px; font-size: 1.05rem; color: var(--c-text);}
.unit-list-h i{color: var(--c-primary); margin-right: 6px;}
.unit-list-grid{display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px;}
.unit-list-ta{width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; line-height: 1.5; resize: vertical;}
.unit-list-u{font-weight: 400; color: var(--c-text-soft);}
.unit-list-opts{display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px;}
.unit-list-opt{display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--c-text-soft);}
.unit-list-opt .wr-select{width: auto; padding-top: 6px; padding-bottom: 6px;}
.unit-list-btns{display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap;}
@media (max-width: 560px){
.unit-list-grid{grid-template-columns: 1fr 1fr; gap: 8px;}
.unit-list-btns{margin-left: 0;}
}
.unit-list-u{display: block; font-size: .85rem;}
.wb-sw-white{background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='34'%3E%3Crect width='80' height='34' fill='%23ffffff'/%3E%3Cpath d='M10 24 Q25 6 40 20 T70 12' stroke='%23111827' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / cover no-repeat;}
.wb-sw-grid{background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='34'%3E%3Crect width='80' height='34' fill='%23ffffff'/%3E%3Cpath d='M10 0V34M20 0V34M30 0V34M40 0V34M50 0V34M60 0V34M70 0V34M0 10H80M0 20H80M0 30H80' stroke='%2394a3b8' stroke-opacity='.4'/%3E%3Cpath d='M10 24 Q25 6 40 20 T70 12' stroke='%23111827' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / cover no-repeat;}
.wb-sw-dots{background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='34'%3E%3Crect width='80' height='34' fill='%23ffffff'/%3E%3Cg fill='%2394a3b8'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='20' cy='10' r='1'/%3E%3Ccircle cx='30' cy='10' r='1'/%3E%3Ccircle cx='40' cy='10' r='1'/%3E%3Ccircle cx='50' cy='10' r='1'/%3E%3Ccircle cx='60' cy='10' r='1'/%3E%3Ccircle cx='70' cy='10' r='1'/%3E%3Ccircle cx='10' cy='22' r='1'/%3E%3Ccircle cx='20' cy='22' r='1'/%3E%3Ccircle cx='30' cy='22' r='1'/%3E%3Ccircle cx='40' cy='22' r='1'/%3E%3Ccircle cx='50' cy='22' r='1'/%3E%3Ccircle cx='60' cy='22' r='1'/%3E%3Ccircle cx='70' cy='22' r='1'/%3E%3C/g%3E%3Cpath d='M10 24 Q25 6 40 20 T70 12' stroke='%23111827' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / cover no-repeat;}
.wb-sw-lined{background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='34'%3E%3Crect width='80' height='34' fill='%23fffef8'/%3E%3Cpath d='M0 9H80M0 18H80M0 27H80' stroke='%2393c5fd'/%3E%3Cpath d='M8 0V34' stroke='%23fca5a5'/%3E%3Cpath d='M14 24 Q28 8 42 20 T72 12' stroke='%231e3a8a' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / cover no-repeat;}
.wb-sw-chalk{background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='34'%3E%3Crect width='80' height='34' fill='%2324452f'/%3E%3Crect x='1.5' y='1.5' width='77' height='31' fill='none' stroke='%236b4423' stroke-width='3'/%3E%3Cpath d='M10 24 Q25 6 40 20 T70 12' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / cover no-repeat;}
.wb-sw-dark{background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='34'%3E%3Crect width='80' height='34' fill='%23111827'/%3E%3Cpath d='M10 24 Q25 6 40 20 T70 12' stroke='%23f8fafc' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / cover no-repeat;}
.wb{position: relative; display: flex; flex-direction: column; gap: 10px;}
.wb-bar{display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface);}
.wb-group{display: flex; flex-wrap: wrap; align-items: center; gap: 4px;}
.wb-tool{width: 36px; height: 36px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--c-text); cursor: pointer; font-size: .95rem;}
.wb-tool:hover{background: var(--c-surface-2);}
.wb-tool.is-on{background: color-mix(in srgb, var(--c-primary) 14%, transparent); color: var(--c-primary); border-color: color-mix(in srgb, var(--c-primary) 40%, transparent);}
.wb-tool:disabled{opacity: .35; cursor: default;}
.wb-col{width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-border); cursor: pointer; padding: 0;}
.wb-col.is-on{outline: 2px solid var(--c-primary); outline-offset: 2px;}
.wb-pick{width: 30px; height: 26px; padding: 0; border: 1px solid var(--c-border); border-radius: 6px; background: none; cursor: pointer;}
.wb-sizeg label{font-size: .85rem; color: var(--c-text-soft); white-space: nowrap;}
.wb-wrap{position: relative; width: 100%; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden;}
.wb-canvas{display: block; touch-action: none; cursor: crosshair;}
.wb-canvas.wb-t-text, .wb-canvas.wb-t-note{cursor: text;}
.wb-canvas.wb-t-er{cursor: cell;}
.wb-editor{position: absolute; display: none; min-width: 160px; min-height: 2.4em; padding: 4px 6px; border: 2px dashed var(--c-primary); border-radius: 6px; font-family: 'Segoe UI', Arial, sans-serif; font-weight: 600; line-height: 1.25; resize: both; z-index: 2;}
.wb.aat-fs{background: var(--c-bg); padding: 10px;}
.wb.aat-fs .wb-wrap{flex: 1 1 auto;}
.wb.aat-fs .wb-bgs, .wb.aat-fs #wbStatus{display: none;}
@media (max-width: 600px){
.wb-tool{width: 32px; height: 32px;}
}
.wb-canvas.wb-t-er{cursor: none;}
.wb-cursor{position: absolute; display: none; pointer-events: none; border-radius: 50%; border: 1.5px solid #111827; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.6); background: rgba(255,255,255,.15); z-index: 1;}
.wb-fullbtn .wb-full-off{display: none;}
.wb.aat-fs .wb-fullbtn .wb-full-on{display: none;}
.wb.aat-fs .wb-fullbtn .wb-full-off{display: inline;}
.wb.aat-fs .wb-fullbtn i::before{content: "\f066";}
.wb.aat-fs > .aat-fs-exit{display: none;}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .exs){padding: 14px;}
}
.tool-stage:has(.rul){overflow: visible;}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .rul){padding: 12px;}
}
.hc-top{display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px;}
.hc-units{display: inline-flex; padding: 3px; border-radius: 999px; background: var(--c-surface-2); border: 1px solid var(--c-border);}
.hc-units button{border: 0; background: none; padding: 8px 16px; min-height: 38px; border-radius: 999px; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--c-text-muted); cursor: pointer;}
.hc-units button.is-on{background: var(--c-surface); color: var(--c-text); box-shadow: 0 1px 3px rgba(0,0,0,.12);}
.hc-grid{display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 20px; align-items: start;}
.hc-main{min-width: 0;}
.hc-items{display: flex; flex-direction: column; gap: 12px;}
.hc-item{position: relative; padding: 14px; border: 1px solid var(--c-border); border-radius: 16px; background: var(--c-surface);}
.hc-item.is-cut{border-style: dashed; background: color-mix(in srgb, #ef4444 5%, var(--c-surface));}
.hc-ihead{display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 10px;}
.hc-ihead b{font-size: .98rem;}
.hc-shape{width: auto; flex: 0 1 auto; min-width: 0; padding-top: 7px; padding-bottom: 7px; font-size: .9rem;}
.hc-cut{display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: .86rem; color: var(--c-text-soft); cursor: pointer;}
.hc-cut input{width: 17px; height: 17px; accent-color: #ef4444;}
.hc-ihead{padding-right: 40px;}
.hc-x{position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--c-text-soft); cursor: pointer;}
.hc-x:hover:not(:disabled){background: var(--c-surface-2); color: #dc2626;}
.hc-x:disabled{opacity: .3; cursor: default;}
.hc-fields, .hc-opts{display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 10px 12px;}
.hc-opts{grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));}
.hc-f{display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0;}
.hc-l{font-size: .84rem; font-weight: 600; color: var(--c-text-muted);}
.hc-in{position: relative; display: flex; align-items: center;}
.hc-in input{width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-bg); color: var(--c-text); font-family: inherit; font-size: 1rem; font-variant-numeric: tabular-nums;}
.hc-in input:focus{outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent);}
.hc-in input.is-bad{border-color: #dc2626;}
.hc-in i{position: absolute; right: 10px; font-style: normal; font-size: .8rem; color: var(--c-text-soft); pointer-events: none;}
.hc-in i ~ input, .hc-in:has(i) input{padding-right: 52px;}
.hc-check{flex-direction: row; align-items: center; align-self: end; min-height: 44px; font-size: .92rem; font-weight: 500;}
.hc-more{grid-column: 1 / -1; border: 1px dashed var(--border-color, #d0d7de); border-radius: 10px; padding: 0 12px;}
.hc-more > summary{cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--c-primary-ink); user-select: none;}
@media (pointer: coarse){
.hc-units button, #hcReset, #hcCopy, .hc-x{min-height: 44px; min-width: 44px;}
}
.hc-more > summary::-webkit-details-marker{display: none;}
.hc-more > summary::after{content: "\25BE"; margin-left: auto; transition: transform .15s;}
.hc-more[open] > summary::after{transform: rotate(180deg);}
.hc-more-in{display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px 12px; padding: 4px 0 12px;}
.hc-add{margin: 12px 0 4px;}
.hc-h{margin: 18px 0 10px; font-size: 1rem;}
.hc-side{position: sticky; top: 84px;}
.hc-card{padding: 16px; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--c-primary) 10%, var(--c-surface)), var(--c-surface)); border: 2px solid color-mix(in srgb, var(--c-primary) 35%, var(--c-border));}
.hc-cap{display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-soft); margin-bottom: 6px;}
.hc-row{display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 6px 0; border-top: 1px solid var(--c-border); font-variant-numeric: tabular-nums;}
.hc-row:first-child{border-top: 0;}
.hc-row b{font-size: 1.05rem;}
.hc-row span{color: var(--c-text-soft); font-size: .9rem;}
.hc-row.is-main b{font-size: 2.3rem; font-weight: 800; line-height: 1.05; color: var(--c-text);}
.hc-row.is-main span{font-size: 1rem; font-weight: 600; color: var(--c-text-muted);}
.hc-row.is-sub b{font-size: 1.15rem; color: var(--c-primary);}
.hc-row.is-sub span{color: var(--c-text-muted);}
.hc-note{margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 14%, var(--c-surface)); font-size: .85rem; line-height: 1.45;}
.hc-copy{width: 100%; justify-content: center; margin-top: 12px;}
.hc-mini{display: none;}
@media (max-width: 760px){
.hc-grid{grid-template-columns: minmax(0, 1fr);}
.hc-side{position: static;}
.hc-mini{position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: block; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--c-text); color: var(--c-bg); font-family: inherit; font-size: .95rem; text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0; transform: translateY(120%); transition: opacity .2s, transform .2s; pointer-events: none; font-variant-numeric: tabular-nums;}
.hc-mini b{font-size: 1.2rem;}
.hc-mini span{opacity: .75;}
.hc-mini.is-on{opacity: 1; transform: none; pointer-events: auto;}
}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .hc){padding: 14px;}
.hc-item{padding: 12px;}
.hc-fields{grid-template-columns: repeat(2, minmax(0, 1fr));}
.hc-units{flex: 1 1 auto;}
.hc-units button{flex: 1 1 50%; padding: 8px 10px;}
.hc-add{width: 100%; justify-content: center; min-height: 46px;}
}
.r3-line{margin: 10px 0 -4px; font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-soft);}
.r3-x{font-weight: 800; color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 8%, var(--c-surface));}
.page-hero h1{overflow-wrap: anywhere; hyphens: auto;}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .pst), .tool-stage .stage-body:has(> .mcc){padding: 14px;}
}
.bc-name{min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;}
.bc-note{padding: 0 10px 8px; font-size: .78rem; color: var(--c-text-soft);}
.bc-bad{color: #dc2626;}
@media (prefers-color-scheme: dark){
.bc-bad{color: #f87171;}
}
.d30-opts{margin-top: 4px;}
.d30-pair{margin-top: 18px;}
.d30-now{margin: -4px 0 12px; font-size: .9rem; color: var(--c-text-muted);}
.d30-custom{display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;}
.d30-checks{display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 2px 0 6px;}
.d30-small{font-size: .84rem; color: var(--c-text-soft); margin: 0; min-height: 1em;}
.d30-thumbs{display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px;}
@media (max-width: 720px){
.d30-custom{grid-template-columns: 1fr 1fr;}
.d30-custom .wr-group:last-child{grid-column: 1 / -1;}
}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .s2p){padding: 14px;}
}
.hcd-th-sp-minimal, .hcd-th-fa-minimal, .hcd-th-rm-minimal, .hcd-th-md-minimal, .hcd-th-pd-minimal, .hcd-th-jl-minimal{background: var(--c-surface-2); --hcd-ink: var(--c-text); --hcd-tile: var(--c-surface); --hcd-edge: var(--c-border); --hcd-num: var(--c-text); --hcd-lab: var(--c-text-soft); --hcd-line: var(--c-text); --hcd-pill: var(--c-surface);}
.hcd-board.hcd-th-sp-minimal, .hcd-board.hcd-th-fa-minimal, .hcd-board.hcd-th-rm-minimal, .hcd-board.hcd-th-md-minimal, .hcd-board.hcd-th-pd-minimal, .hcd-board.hcd-th-jl-minimal{box-shadow: inset 0 0 0 1px var(--c-border);}
.hcd-th-sp-minimal{--hcd-fx: #f9a8d4 #f472b6 #fde68a #86efac;}
.hcd-th-fa-minimal{--hcd-fx: #ea580c #dc2626 #ca8a04 #92400e;}
.hcd-th-rm-minimal{--hcd-fx: #ca8a04 #0f766e rgba(202,138,4,.3);}
.hcd-th-md-minimal{--hcd-fx: #f472b6 #fb7185 #c084fc #fbbf24;}
.hcd-th-pd-minimal{--hcd-fx: #16a34a #22c55e #15803d;}
.hcd-th-jl-minimal{--hcd-fx: #dc2626 #2563eb #ca8a04 #64748b;}
.hcd-years-note{flex-basis: 100%; margin-top: 6px; font-size: .8rem; color: var(--c-text-soft); text-align: center;}
.hcd-th-sp-blossom{background: radial-gradient(circle at 10% 12%, #fbcfe8 0 22px, transparent 23px), radial-gradient(circle at 18% 6%, #f9a8d4 0 14px, transparent 15px), radial-gradient(circle at 92% 88%, #fbcfe8 0 26px, transparent 27px), radial-gradient(circle at 84% 95%, #f9a8d4 0 16px, transparent 17px), linear-gradient(180deg, #e0f2fe, #fdf2f8 70%, #fce7f3); --hcd-ink: #831843; --hcd-tile: #fff; --hcd-edge: #fbcfe8; --hcd-num: #db2777; --hcd-lab: #be185d; --hcd-line: #831843; --hcd-pill: rgba(255,255,255,.8); --hcd-shadow: 0 6px 16px rgba(190,24,93,.14); --hcd-fx: #f9a8d4 #fbcfe8 #ffffff #f472b6;}
.hcd-th-sp-meadow{background: radial-gradient(circle, #f472b6 0 3px, transparent 4px) 0 78% / 34px 22px repeat-x, radial-gradient(circle, #facc15 0 3px, transparent 4px) 17px 88% / 34px 22px repeat-x, linear-gradient(180deg, #7dd3fc, #e0f2fe 66%, #86efac 66%, #22c55e); --hcd-ink: #0c4a6e; --hcd-tile: #fff; --hcd-edge: #fff; --hcd-num: #15803d; --hcd-lab: #0369a1; --hcd-line: #14532d; --hcd-pill: rgba(255,255,255,.8); --hcd-date-bg: rgba(255,255,255,.75); --hcd-fx: #f472b6 #facc15 #ffffff #c4b5fd;}
.hcd-th-sp-showers{background: radial-gradient(circle at 50% 118%, transparent 36%, #ef4444 36% 39%, #f97316 39% 42%, #facc15 42% 45%, #22c55e 45% 48%, #3b82f6 48% 51%, #8b5cf6 51% 54%, transparent 54%), repeating-linear-gradient(105deg, transparent 0 22px, rgba(255,255,255,.18) 22px 23px), linear-gradient(180deg, #475569, #64748b 55%, #93c5fd); --hcd-ink: #fff; --hcd-tile: rgba(255,255,255,.92); --hcd-edge: #fff; --hcd-num: #1e40af; --hcd-lab: #334155; --hcd-line: #fff; --hcd-pill: rgba(15,23,42,.5); --hcd-date-bg: rgba(15,23,42,.5); --hcd-fx: #bfdbfe #ffffff #fbcfe8;}
.hcd-th-sp-garden{background: repeating-linear-gradient(125deg, transparent 0 46px, rgba(22,101,52,.08) 46px 48px), linear-gradient(180deg, #f0fdf4, #bbf7d0 70%, #86efac); --hcd-ink: #14532d; --hcd-tile: #fff; --hcd-edge: #86efac; --hcd-num: #15803d; --hcd-lab: #166534; --hcd-line: #14532d; --hcd-pill: rgba(255,255,255,.75); --hcd-r: 20px; --hcd-fx: #fde68a #f9a8d4 #ffffff #fda4af;}
.hcd-th-sp-pastel{background: linear-gradient(135deg, #fde68a, #fbcfe8 35%, #c4b5fd 70%, #bae6fd); --hcd-ink: #4c1d95; --hcd-tile: #fff; --hcd-edge: #fff; --hcd-num: #7c3aed; --hcd-lab: #6d28d9; --hcd-line: #4c1d95; --hcd-pill: rgba(255,255,255,.8); --hcd-r: 26px; --hcd-shadow: 0 6px 16px rgba(76,29,149,.14); --hcd-fx: #ffffff #fbcfe8 #fde68a #c4b5fd;}
.hcd-th-fa-maple{background: radial-gradient(ellipse at 50% 0, rgba(253,186,116,.35), transparent 60%), linear-gradient(180deg, #b91c1c, #c2410c 60%, #7c2d12); --hcd-ink: #fff7ed; --hcd-tile: #fff7ed; --hcd-edge: #fed7aa; --hcd-num: #991b1b; --hcd-lab: #c2410c; --hcd-line: #ffedd5; --hcd-pill: rgba(0,0,0,.25); --hcd-shadow: 0 6px 18px rgba(69,10,10,.35); --hcd-fx: #dc2626 #f97316 #facc15 #fde68a;}
.hcd-th-fa-pumpkin{background: radial-gradient(circle at 50% 40%, #ffedd5, #fdba74 55%, #ea580c); --hcd-ink: #431407; --hcd-tile: #7c2d12; --hcd-edge: #fdba74; --hcd-num: #fff7ed; --hcd-lab: #fed7aa; --hcd-line: #431407; --hcd-pill: rgba(255,247,237,.75); --hcd-r: 20px; --hcd-fx: #9a3412 #c2410c #b45309 #78350f;}
.hcd-th-fa-forest{background: repeating-linear-gradient(90deg, transparent 0 54px, rgba(0,0,0,.12) 54px 60px), linear-gradient(180deg, #14532d, #3f6212 50%, #713f12); --hcd-ink: #fef3c7; --hcd-tile: rgba(0,0,0,.35); --hcd-edge: #f59e0b; --hcd-num: #fcd34d; --hcd-lab: #fde68a; --hcd-line: #fef3c7; --hcd-pill: rgba(0,0,0,.35); --hcd-glow: 0 0 10px rgba(245,158,11,.4); --hcd-fx: #f59e0b #dc2626 #ea580c #facc15;}
.hcd-th-fa-harvest{background: repeating-linear-gradient(80deg, transparent 0 14px, rgba(161,98,7,.12) 14px 16px), linear-gradient(180deg, #fef3c7, #fcd34d 60%, #d97706); --hcd-ink: #713f12; --hcd-tile: #fff; --hcd-edge: #f59e0b; --hcd-num: #b45309; --hcd-lab: #92400e; --hcd-line: #713f12; --hcd-pill: rgba(255,255,255,.7); --hcd-date-bg: rgba(255,255,255,.6); --hcd-font: Georgia, "Times New Roman", serif; --hcd-fx: #b45309 #dc2626 #ea580c #a16207;}
.hcd-th-fa-sweater{background: repeating-linear-gradient(45deg, rgba(255,255,255,.09) 0 7px, transparent 7px 14px), repeating-linear-gradient(-45deg, rgba(255,255,255,.09) 0 7px, transparent 7px 14px), #92400e; --hcd-ink: #fffbeb; --hcd-tile: #fffbeb; --hcd-edge: #fde68a; --hcd-num: #78350f; --hcd-lab: #92400e; --hcd-line: #fef3c7; --hcd-pill: rgba(0,0,0,.35); --hcd-r: 18px; --hcd-font: Georgia, "Times New Roman", serif; --hcd-fx: #f59e0b #ea580c #dc2626 #fde68a;}
.hcd-th-rm-night{background: radial-gradient(1.5px 1.5px at 14% 22%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 38% 12%, #fff 50%, transparent), radial-gradient(2px 2px at 64% 18%, #fde68a 50%, transparent), radial-gradient(1.5px 1.5px at 86% 30%, #fff 50%, transparent), linear-gradient(180deg, #0b1026, #172554 65%, #1e3a8a); --hcd-ink: #fef3c7; --hcd-tile: rgba(255,255,255,.08); --hcd-edge: #d4a017; --hcd-num: #fcd34d; --hcd-lab: #fde68a; --hcd-line: #fef3c7; --hcd-pill: rgba(0,0,0,.35); --hcd-font: Georgia, "Times New Roman", serif; --hcd-glow: 0 0 10px rgba(250,204,21,.45); --hcd-blend: lighter; --hcd-fx: #fde68a #ffffff rgba(253,230,138,.35);}
.hcd-th-rm-lantern{background: radial-gradient(ellipse 60% 45% at 50% 105%, rgba(251,191,36,.45), transparent 70%), radial-gradient(circle at 12% 15%, rgba(251,191,36,.25), transparent 22%), linear-gradient(180deg, #1c1917, #451a03); --hcd-ink: #fef3c7; --hcd-tile: rgba(0,0,0,.4); --hcd-edge: #f59e0b; --hcd-num: #fbbf24; --hcd-lab: #fde68a; --hcd-line: #fde68a; --hcd-pill: rgba(0,0,0,.4); --hcd-glow: 0 0 12px rgba(245,158,11,.55); --hcd-blend: lighter; --hcd-fx: #fbbf24 #fde68a rgba(251,191,36,.4);}
.hcd-th-rm-emerald{background: repeating-linear-gradient(45deg, rgba(253,230,138,.06) 0 2px, transparent 2px 22px), repeating-linear-gradient(-45deg, rgba(253,230,138,.06) 0 2px, transparent 2px 22px), linear-gradient(180deg, #064e3b, #047857); --hcd-ink: #fef9c3; --hcd-tile: #fef9c3; --hcd-edge: #ca8a04; --hcd-num: #065f46; --hcd-lab: #047857; --hcd-line: #fef3c7; --hcd-pill: rgba(0,0,0,.3); --hcd-font: Georgia, "Times New Roman", serif; --hcd-numfont: Georgia, "Times New Roman", serif; --hcd-fx: #fde68a #fef9c3 rgba(253,230,138,.35);}
.hcd-th-rm-mosaic{background: radial-gradient(circle, rgba(253,230,138,.55) 0 2px, transparent 2.5px) 0 0 / 40px 40px, conic-gradient(from 45deg, #0e7490 25%, #155e75 0 50%, #0e7490 0 75%, #155e75 0) 0 0 / 40px 40px; --hcd-ink: #ecfeff; --hcd-tile: #ecfeff; --hcd-edge: #fde68a; --hcd-num: #155e75; --hcd-lab: #0e7490; --hcd-line: #ecfeff; --hcd-pill: rgba(8,51,68,.65); --hcd-title-bg: rgba(8,51,68,.65); --hcd-date-bg: rgba(8,51,68,.65); --hcd-fx: #fde68a #ffffff rgba(253,230,138,.3);}
.hcd-th-rm-iftar{background: radial-gradient(ellipse 55% 40% at 50% 100%, #fde047, #fb923c 45%, transparent 72%), linear-gradient(180deg, #312e81, #9d174d 58%, #f97316); --hcd-ink: #fff7ed; --hcd-tile: rgba(255,255,255,.16); --hcd-edge: rgba(255,237,213,.55); --hcd-num: #fff; --hcd-lab: #fed7aa; --hcd-line: #fff7ed; --hcd-pill: rgba(0,0,0,.25); --hcd-blend: lighter; --hcd-fx: #fde68a #ffffff rgba(253,230,138,.35);}
.hcd-th-md-bouquet{background: radial-gradient(circle at 8% 90%, #fda4af 0 26px, transparent 27px), radial-gradient(circle at 15% 97%, #fbbf24 0 16px, transparent 17px), radial-gradient(circle at 93% 10%, #f9a8d4 0 24px, transparent 25px), radial-gradient(circle at 86% 4%, #c4b5fd 0 15px, transparent 16px), linear-gradient(180deg, #fff1f2, #ffe4e6); --hcd-ink: #9f1239; --hcd-tile: #fff; --hcd-edge: #fda4af; --hcd-num: #e11d48; --hcd-lab: #be123c; --hcd-line: #881337; --hcd-pill: rgba(255,255,255,.8); --hcd-font: Georgia, "Times New Roman", serif; --hcd-shadow: 0 6px 16px rgba(225,29,72,.14); --hcd-fx: #fb7185 #fda4af #fbbf24 #c084fc #f9a8d4;}
.hcd-th-md-roses{background: radial-gradient(circle at 50% 35%, #f43f5e, #be123c 55%, #881337); --hcd-ink: #fff1f2; --hcd-tile: rgba(255,255,255,.14); --hcd-edge: rgba(255,228,230,.5); --hcd-num: #fff; --hcd-lab: #fecdd3; --hcd-line: #ffe4e6; --hcd-pill: rgba(0,0,0,.2); --hcd-fx: #fecdd3 #fda4af #ffffff #fb7185;}
.hcd-th-md-tulips{background: linear-gradient(180deg, #fdf2f8 0 72%, #bbf7d0 72% 76%, #86efac 76%); --hcd-ink: #831843; --hcd-tile: #f472b6; --hcd-edge: #fff; --hcd-num: #fff; --hcd-lab: #fce7f3; --hcd-line: #831843; --hcd-pill: rgba(255,255,255,.85); --hcd-r: 26px 26px 10px 10px; --hcd-shadow: 0 6px 14px rgba(219,39,119,.2); --hcd-fx: #f472b6 #fb923c #facc15 #ef4444;}
.hcd-th-md-breakfast{background: repeating-linear-gradient(0deg, rgba(244,114,182,.16) 0 18px, transparent 18px 36px), repeating-linear-gradient(90deg, rgba(244,114,182,.16) 0 18px, transparent 18px 36px), #fffbeb; --hcd-ink: #7c2d12; --hcd-tile: #fff; --hcd-edge: #fbcfe8; --hcd-num: #be185d; --hcd-lab: #9d174d; --hcd-line: #7c2d12; --hcd-pill: rgba(255,255,255,.9); --hcd-title-bg: rgba(255,251,235,.9); --hcd-date-bg: rgba(255,251,235,.9); --hcd-r: 50%; --hcd-fx: #f472b6 #fbbf24 #fda4af;}
.hcd-th-md-lavender{background: repeating-linear-gradient(100deg, transparent 0 30px, rgba(124,58,237,.07) 30px 32px), linear-gradient(180deg, #f5f3ff, #ddd6fe 60%, #c4b5fd); --hcd-ink: #4c1d95; --hcd-tile: #fff; --hcd-edge: #c4b5fd; --hcd-num: #7c3aed; --hcd-lab: #6d28d9; --hcd-line: #4c1d95; --hcd-pill: rgba(255,255,255,.75); --hcd-font: Georgia, "Times New Roman", serif; --hcd-fx: #a78bfa #c4b5fd #8b5cf6 #e9d5ff;}
.hcd-th-pd-shamrock{background: radial-gradient(circle at 50% 30%, #22c55e, #15803d 55%, #14532d); --hcd-ink: #f0fdf4; --hcd-tile: #f0fdf4; --hcd-edge: #bbf7d0; --hcd-num: #15803d; --hcd-lab: #166534; --hcd-line: #dcfce7; --hcd-pill: rgba(0,0,0,.3); --hcd-shadow: 0 6px 18px rgba(5,46,22,.35); --hcd-fx: #4ade80 #86efac #bbf7d0 #22c55e;}
.hcd-th-pd-gold{background: radial-gradient(circle at 50% -30%, transparent 40%, #ef4444 40% 43%, #f97316 43% 46%, #facc15 46% 49%, #22c55e 49% 52%, #3b82f6 52% 55%, #8b5cf6 55% 58%, transparent 58%), radial-gradient(circle, #facc15 0 5px, #ca8a04 5px 6px, transparent 7px) 0 100% / 30px 18px repeat-x, linear-gradient(180deg, #047857, #065f46); --hcd-ink: #fefce8; --hcd-tile: #facc15; --hcd-edge: #fde68a; --hcd-num: #14532d; --hcd-lab: #166534; --hcd-line: #fefce8; --hcd-pill: rgba(0,0,0,.35); --hcd-title-bg: rgba(6,78,59,.65); --hcd-fx: #22c55e #4ade80 #facc15 #86efac;}
.hcd-th-pd-flag{background: linear-gradient(90deg, #169b62 0 15%, #fff 15% 85%, #ff883e 85%); --hcd-ink: #14532d; --hcd-tile: #169b62; --hcd-edge: #169b62; --hcd-num: #fff; --hcd-lab: #dcfce7; --hcd-line: #14532d; --hcd-pill: #f0fdf4; --hcd-title-bg: #fff; --hcd-date-bg: #fff; --hcd-fx: #169b62 #22c55e #15803d;}
.hcd-th-pd-celtic{background: repeating-radial-gradient(circle at 0 0, transparent 0 18px, rgba(202,138,4,.18) 18px 20px), repeating-radial-gradient(circle at 100% 100%, transparent 0 18px, rgba(202,138,4,.18) 18px 20px), #052e16; --hcd-ink: #fde68a; --hcd-tile: rgba(0,0,0,.4); --hcd-edge: #ca8a04; --hcd-num: #fcd34d; --hcd-lab: #fde68a; --hcd-line: #fde68a; --hcd-pill: rgba(0,0,0,.45); --hcd-font: Georgia, "Times New Roman", serif; --hcd-glow: 0 0 10px rgba(250,204,21,.4); --hcd-fx: #22c55e #4ade80 #16a34a;}
.hcd-th-pd-parade{background: radial-gradient(circle, #fb923c 0 2.5px, transparent 3px) 0 0 / 42px 42px, radial-gradient(circle, #fff 0 2.5px, transparent 3px) 21px 15px / 42px 42px, radial-gradient(circle, #fde68a 0 2px, transparent 2.5px) 10px 30px / 42px 42px, linear-gradient(135deg, #22c55e, #15803d); --hcd-ink: #fff; --hcd-tile: #fff; --hcd-edge: #fff; --hcd-num: #15803d; --hcd-lab: #166534; --hcd-line: #fff; --hcd-pill: rgba(0,0,0,.25); --hcd-r: 22px; --hcd-shadow: 0 6px 16px rgba(5,46,22,.3); --hcd-fx: #ffffff #bbf7d0 #fde68a #86efac;}
.hcd-th-jl-flag{background: linear-gradient(#1e3a8a, #1e3a8a) 0 0 / 42% 54% no-repeat, repeating-linear-gradient(180deg, #b91c1c 0 7.69%, #fff 7.69% 15.38%); --hcd-ink: #fff; --hcd-tile: #fff; --hcd-edge: #1e3a8a; --hcd-num: #b91c1c; --hcd-lab: #1e3a8a; --hcd-line: #fff; --hcd-pill: rgba(30,58,138,.9); --hcd-title-bg: rgba(30,58,138,.9); --hcd-date-bg: rgba(30,58,138,.9); --hcd-shadow: 0 6px 16px rgba(0,0,0,.25); --hcd-fx: #ef4444 #ffffff #3b82f6 #facc15;}
.hcd-th-jl-night{background: radial-gradient(circle at 20% 30%, rgba(239,68,68,.25), transparent 35%), radial-gradient(circle at 80% 25%, rgba(59,130,246,.3), transparent 35%), linear-gradient(180deg, #020617, #1e1b4b); --hcd-ink: #fff; --hcd-tile: rgba(255,255,255,.08); --hcd-edge: #60a5fa; --hcd-num: #fff; --hcd-lab: #bfdbfe; --hcd-line: #e0e7ff; --hcd-pill: rgba(0,0,0,.4); --hcd-glow: 0 0 10px rgba(96,165,250,.6); --hcd-blend: lighter; --hcd-fx: #ef4444 #ffffff #3b82f6 #facc15 #f472b6;}
.hcd-th-jl-picnic{background: repeating-linear-gradient(0deg, rgba(220,38,38,.45) 0 20px, transparent 20px 40px), repeating-linear-gradient(90deg, rgba(220,38,38,.45) 0 20px, transparent 20px 40px), #fff; --hcd-ink: #7f1d1d; --hcd-tile: #1e3a8a; --hcd-edge: #fff; --hcd-num: #fff; --hcd-lab: #bfdbfe; --hcd-line: #7f1d1d; --hcd-pill: rgba(255,255,255,.92); --hcd-title-bg: rgba(255,255,255,.92); --hcd-date-bg: rgba(255,255,255,.92); --hcd-fx: #dc2626 #2563eb #ca8a04;}
.hcd-th-jl-liberty{background: radial-gradient(ellipse 70% 40% at 50% 0, rgba(253,230,138,.3), transparent 70%), linear-gradient(180deg, #0f766e, #115e59 60%, #134e4a); --hcd-ink: #f0fdfa; --hcd-tile: #ccfbf1; --hcd-edge: #fde68a; --hcd-num: #134e4a; --hcd-lab: #115e59; --hcd-line: #f0fdfa; --hcd-pill: rgba(0,0,0,.3); --hcd-font: Georgia, "Times New Roman", serif; --hcd-numfont: Georgia, "Times New Roman", serif; --hcd-fx: #fde68a #ffffff #5eead4 #fb923c;}
.hcd-th-jl-retro{background: radial-gradient(circle at 50% 40%, #fffbeb, #fdf6e3 60%, #f5e6c8); --hcd-ink: #1e3a8a; --hcd-tile: #b91c1c; --hcd-edge: #1e3a8a; --hcd-num: #fef3c7; --hcd-lab: #fecaca; --hcd-line: #7f1d1d; --hcd-pill: rgba(30,58,138,.1); --hcd-r: 4px; --hcd-font: Impact, "Arial Black", sans-serif; --hcd-numfont: Impact, "Arial Black", sans-serif; --hcd-fx: #b91c1c #1e3a8a #ca8a04;}
.hcd-board.hcd-th-jl-retro{box-shadow: inset 0 0 0 8px #b91c1c, inset 0 0 0 12px #fdf6e3, inset 0 0 0 16px #1e3a8a;}
.hcd-th-jl-retro .hcd-title{font-weight: 400; letter-spacing: .02em;}
.hcd-th-bf-sale{background: repeating-linear-gradient(135deg, #111 0 26px, #1c1c1c 26px 52px); --hcd-ink: #fde047; --hcd-tile: #fde047; --hcd-edge: #111; --hcd-num: #111; --hcd-lab: #3f3f46; --hcd-line: #fff; --hcd-pill: rgba(0,0,0,.55); --hcd-font: Impact, "Arial Black", sans-serif; --hcd-numfont: Impact, "Arial Black", sans-serif; --hcd-r: 6px; --hcd-fx: #fde047 #ef4444 #ffffff;}
.hcd-th-bf-neon{background: radial-gradient(circle at 20% 20%, rgba(236,72,153,.28), transparent 40%), radial-gradient(circle at 80% 80%, rgba(34,211,238,.25), transparent 40%), #0b0b14; --hcd-ink: #fff; --hcd-tile: rgba(255,255,255,.05); --hcd-edge: #f472b6; --hcd-num: #fff; --hcd-lab: #67e8f9; --hcd-line: #fbcfe8; --hcd-pill: rgba(0,0,0,.45); --hcd-glow: 0 0 12px rgba(244,114,182,.75); --hcd-blend: lighter; --hcd-fx: #f472b6 #22d3ee #a78bfa #facc15;}
.hcd-th-bf-red{background: linear-gradient(160deg, #dc2626, #991b1b); --hcd-ink: #fff; --hcd-tile: #fff; --hcd-edge: #7f1d1d; --hcd-num: #b91c1c; --hcd-lab: #7f1d1d; --hcd-line: #fff; --hcd-pill: rgba(0,0,0,.25); --hcd-shadow: 0 6px 16px rgba(0,0,0,.25); --hcd-fx: #ffffff #fde047 #fecaca;}
.hcd-th-bf-gold{background: radial-gradient(ellipse 80% 50% at 50% 0, rgba(250,204,21,.18), transparent 70%), linear-gradient(180deg, #0a0a0a, #1f1f1f); --hcd-ink: #fde68a; --hcd-tile: #171717; --hcd-edge: #ca8a04; --hcd-num: #facc15; --hcd-lab: #d4d4d4; --hcd-line: #fde68a; --hcd-pill: rgba(250,204,21,.12); --hcd-font: Georgia, "Times New Roman", serif; --hcd-fx: #facc15 #eab308 #fef3c7;}
.hcd-th-bf-cyber{background: linear-gradient(180deg, #0c4a6e, #1e3a8a); --hcd-ink: #e0f2fe; --hcd-tile: rgba(255,255,255,.1); --hcd-edge: #38bdf8; --hcd-num: #fff; --hcd-lab: #bae6fd; --hcd-line: #e0f2fe; --hcd-pill: rgba(0,0,0,.3); --hcd-numfont: ui-monospace, "Cascadia Code", Consolas, monospace; --hcd-fx: #38bdf8 #a5f3fc #facc15;}
.hcd-th-bf-minimal{background: var(--c-surface-2); --hcd-ink: var(--c-text); --hcd-tile: var(--c-surface); --hcd-edge: var(--c-border); --hcd-num: var(--c-text); --hcd-lab: var(--c-text-soft); --hcd-line: var(--c-text); --hcd-pill: var(--c-surface); --hcd-fx: #111 #ef4444 #ca8a04;}
.hcd-board.hcd-th-bf-minimal{box-shadow: inset 0 0 0 1px var(--c-border);}
@media (max-width: 480px){
.tool-stage:has(.gpt) .stage-body{padding: 18px 12px;}
}
.tool-stage:has(.prt){overflow: visible;}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .prt){padding: 12px;}
}
.org-sw-cards{background: linear-gradient(#e2e8f0,#e2e8f0) 50% 40%/2px 22% no-repeat, linear-gradient(#fff,#fff) 50% 8%/42% 30% no-repeat, linear-gradient(#fff,#fff) 18% 92%/34% 30% no-repeat, linear-gradient(#fff,#fff) 82% 92%/34% 30% no-repeat, radial-gradient(circle 3px at 38% 22%, #6366f1 95%, transparent) , radial-gradient(circle 3px at 8% 80%, #14b8a6 95%, transparent), radial-gradient(circle 3px at 72% 80%, #f59e0b 95%, transparent), #e8edf3;}
.org-sw-boxes{background: linear-gradient(#64748b,#64748b) 50% 45%/2px 22% no-repeat, linear-gradient(#6366f1,#6366f1) 50% 8%/42% 12% no-repeat, linear-gradient(#fff,#fff) 50% 14%/42% 30% no-repeat, linear-gradient(#14b8a6,#14b8a6) 18% 74%/34% 12% no-repeat, linear-gradient(#fff,#fff) 18% 92%/34% 30% no-repeat, linear-gradient(#f59e0b,#f59e0b) 82% 74%/34% 12% no-repeat, linear-gradient(#fff,#fff) 82% 92%/34% 30% no-repeat, #eef0f4;}
.org-sw-minimal{background: linear-gradient(#cbd5e1,#cbd5e1) 50% 50%/1px 36% no-repeat, linear-gradient(#6366f1,#6366f1) 50% 22%/30% 2px no-repeat, linear-gradient(#14b8a6,#14b8a6) 18% 90%/26% 2px no-repeat, linear-gradient(#f59e0b,#f59e0b) 82% 90%/26% 2px no-repeat, linear-gradient(#94a3b8,#94a3b8) 50% 15%/22% 3px no-repeat, #fff;}
.org-sw-pills{background: radial-gradient(ellipse 22% 16% at 50% 20%, #dde0ff 90%, transparent), radial-gradient(ellipse 22% 16% at 22% 84%, #ccfbf1 90%, transparent), radial-gradient(ellipse 22% 16% at 78% 84%, #fef3c7 90%, transparent), linear-gradient(#a8b4c4,#a8b4c4) 50% 52%/2px 30% no-repeat, #fff;}
.org-sw-dark{background: linear-gradient(#64748b,#64748b) 50% 45%/2px 22% no-repeat, linear-gradient(#1e293b,#1e293b) 50% 8%/42% 30% no-repeat, linear-gradient(#1e293b,#1e293b) 18% 92%/34% 30% no-repeat, linear-gradient(#1e293b,#1e293b) 82% 92%/34% 30% no-repeat, #0f172a; box-shadow: inset 0 0 0 1px #818cf8;}
.org-sw-pastel{background: linear-gradient(#d2c4b6,#d2c4b6) 50% 45%/2px 22% no-repeat, linear-gradient(#dfe1ff,#dfe1ff) 50% 8%/42% 30% no-repeat, linear-gradient(#d3f5ee,#d3f5ee) 18% 92%/34% 30% no-repeat, linear-gradient(#fdecc8,#fdecc8) 82% 92%/34% 30% no-repeat, #fffaf5;}
.org-sw-bold{background: linear-gradient(#334155,#334155) 50% 45%/3px 22% no-repeat, linear-gradient(#6366f1,#6366f1) 50% 8%/42% 30% no-repeat, linear-gradient(#14b8a6,#14b8a6) 18% 92%/34% 30% no-repeat, linear-gradient(#f59e0b,#f59e0b) 82% 92%/34% 30% no-repeat, #fff;}
.org-sw-blueprint{background: linear-gradient(#e0ecff,#e0ecff) 50% 45%/1px 22% no-repeat, linear-gradient(#e0ecff,#e0ecff) 50% 8%/42% 1px no-repeat, linear-gradient(#e0ecff,#e0ecff) 50% 36%/42% 1px no-repeat, linear-gradient(#e0ecff,#e0ecff) 18% 70%/34% 1px no-repeat, linear-gradient(#e0ecff,#e0ecff) 18% 96%/34% 1px no-repeat, linear-gradient(#e0ecff,#e0ecff) 82% 70%/34% 1px no-repeat, linear-gradient(#e0ecff,#e0ecff) 82% 96%/34% 1px no-repeat, #0b3d91;}
.org-file{position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;}
.org-many, .org-ph-pick{position: relative;}
.org-ph-pick:focus-within{outline: 2px solid var(--c-primary); outline-offset: 2px;}
label.org-many:has(+ #orgMany:focus-visible){outline: 2px solid var(--c-primary); outline-offset: 2px;}
.org-ph-list{margin-top: 10px; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;}
.org-ph-row{display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 3px 6px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-surface);}
.org-ph-row:hover{border-color: color-mix(in srgb, var(--c-primary) 50%, var(--c-border));}
.org-ph-thumb{flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--c-surface-2); color: var(--c-text-soft); font-weight: 700; font-size: .78rem;}
.org-ph-thumb img{width: 100%; height: 100%; object-fit: cover; display: block;}
.org-ph-name{flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; color: var(--c-text);}
.org-ph-pick, .org-ph-del{min-height: 36px; flex: 0 0 auto;}
.org-ov{position: absolute; right: 12px; bottom: 12px; z-index: 2; border: 2px solid var(--c-primary); border-radius: 6px; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; overflow: hidden; line-height: 0; opacity: .94;}
.org-ov[hidden]{display: none;}
.org-ov-pic{pointer-events: none;}
.org-ov-view{position: absolute; border: 2px solid #ef4444; background: rgba(239,68,68,.12); box-sizing: border-box; pointer-events: none;}
.wr-check:has(#spdmBeep){min-height: 44px; align-items: center;}
.wr-check label[for=spdmBeep]{padding: 10px 0;}
.tool-stage:has(> .stage-body > .sot){overflow: visible;}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .dtt){padding: 14px;}
}
.gt-oct{font-size: .4em; font-weight: 700; color: var(--c-text-muted); vertical-align: baseline; margin-left: .06em;}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .tgc){padding: 14px;}
}
.mm{display: flex; flex-direction: column; gap: 12px; min-width: 0;}
.mm [hidden]{display: none !important;}
.mm-tools{display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px;}
.mm-tools .btn{min-height: 44px;}
.mm-f{display: flex; flex-direction: column; gap: 5px; margin: 0; min-width: 0;}
.mm-f > span{font-size: .84rem; font-weight: 600; color: var(--c-text-muted);}
.mm-unitf{flex: 0 1 170px;}
.mm-rf{flex: 0 1 130px;}
.mm .wr-input, .mm .wr-select{min-height: 44px; padding: 9px 12px; font-size: 1rem; width: 100%;}
.mm-quick{display: flex; flex-wrap: wrap; gap: 6px;}
.mm-colors{display: flex; flex-wrap: wrap; align-items: center; gap: 8px;}
.mm-clab{font-size: .84rem; font-weight: 600; color: var(--c-text-muted); margin-right: 2px;}
.mm-colors button{width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--c-surface); box-shadow: 0 0 0 1px var(--c-border); background: var(--mm-c); cursor: pointer; padding: 0;}
.mm-colors button:hover, .mm-colors button:focus-visible{box-shadow: 0 0 0 2px var(--c-primary); outline: none;}
.mm-help{margin: 0; font-size: .9rem; color: var(--c-text-soft); min-height: 2.9em;}
.mm-stage{position: relative;}
.mm-map{width: 100%; height: 460px; border-radius: 12px; border: 1px solid var(--c-border); overflow: hidden; background: var(--c-surface-2); z-index: 0;}
.mm-loading{display: flex; align-items: center; justify-content: center;}
.mm-loading::after{content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--c-border); border-top-color: var(--c-primary); animation: cmapSpin .8s linear infinite;}
@media (prefers-reduced-motion: reduce){
.mm-loading::after{animation: none;}
}
.mm-map .leaflet-control-attribution{background: rgba(255,255,255,.85); color: #222;}
.mm-map .leaflet-control-attribution a{color: #0b5ea8;}
.mm-map.leaflet-container{cursor: crosshair;}
.mm-stage.aat-fs{width: 100vw; height: 100vh;}
.mm-stage.aat-fs .mm-map{height: 100%; border-radius: 0; border: 0;}
.mm-stage .mm-exit{z-index: 1100;}
.mm-vxwrap{background: none; border: 0;}
.mm-vx{display: block; width: 16px; height: 16px; margin: 3px; border-radius: 50%; background: #fff; border: 3px solid #2563eb; box-shadow: 0 1px 3px rgba(0,0,0,.4); box-sizing: border-box; cursor: move;}
.mm-vx-first{background: #2563eb; border-color: #fff;}
.mm-vx-mid{width: 12px; height: 12px; margin: 5px; border-width: 2px; opacity: .75;}
.mm-vx-center{width: 18px; height: 18px; margin: 2px; background: #111827; border-color: #fff;}
.mm-vx-dim{opacity: .7;}
.leaflet-tooltip.mm-label{background: rgba(255,255,255,.94); color: #111827; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.35); font: 700 13px Arial, sans-serif; padding: 2px 7px; border-radius: 6px;}
.leaflet-tooltip.mm-label::before{display: none;}
.leaflet-tooltip.mm-label-sm{font-size: 11.5px; font-weight: 600; padding: 1px 5px;}
.mm-result{padding: 14px; border: 1px solid var(--c-border); border-radius: 16px; background: var(--c-surface); min-width: 0;}
.mm-big{font-size: 1.05rem; font-weight: 700; color: var(--c-text-soft); overflow-wrap: anywhere;}
.mm-big b{font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 900; color: var(--c-text); font-variant-numeric: tabular-nums;}
.mm-grid{display: grid; grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 1fr)); gap: 8px; margin-top: 10px;}
.mm-cell{padding: 8px 10px; border-radius: 10px; background: var(--c-surface-2); min-width: 0;}
.mm-cell span{display: block; font-size: .78rem; font-weight: 600; color: var(--c-text-muted);}
.mm-cell b{display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;}
.mm-cell.is-main{background: color-mix(in srgb, var(--c-primary) 14%, var(--c-surface));}
.mm-perim{margin: 10px 0 0; font-size: .92rem; color: var(--c-text-soft); overflow-wrap: anywhere; min-height: 1.5em;}
.mm-list{margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px;}
.mm-list:empty{display: none;}
.mm-item{display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px 6px; border: 1px solid var(--c-border); border-radius: 12px; min-width: 0;}
.mm-item.is-sel{border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary);}
.mm-pick{display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--c-text); cursor: pointer; padding: 0 4px; white-space: nowrap;}
.mm-sw{width: 14px; height: 14px; border-radius: 50%; display: inline-block;}
.mm-iv{flex: 1 1 auto; min-width: 0; font-size: .88rem; color: var(--c-text-soft); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;}
.mm-x{width: 40px; height: 40px; border: 0; background: none; color: var(--c-text-soft); font-size: 1.3rem; cursor: pointer; border-radius: 50%; flex: 0 0 auto;}
.mm-x:hover{color: var(--c-text);}
.mm-det{border: 1px solid var(--c-border); border-radius: 12px; padding: 4px 14px 12px; background: var(--c-surface);}
.mm-det summary{cursor: pointer; font-weight: 700; padding: 10px 0;}
.mm-det textarea{font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem;}
.mm-p{margin: 4px 0 8px; font-size: .9rem; color: var(--c-text-soft);}
@media (max-width: 760px){
.mm-map{height: 380px;}
}
.hcd-th-fd-minimal, .hcd-th-ed-minimal, .hcd-th-dw-minimal, .hcd-th-ds-minimal{background: var(--c-surface-2); --hcd-ink: var(--c-text); --hcd-tile: var(--c-surface); --hcd-edge: var(--c-border); --hcd-num: var(--c-text); --hcd-lab: var(--c-text-soft); --hcd-line: var(--c-text); --hcd-pill: var(--c-surface);}
.hcd-board.hcd-th-fd-minimal, .hcd-board.hcd-th-ed-minimal, .hcd-board.hcd-th-dw-minimal, .hcd-board.hcd-th-ds-minimal{box-shadow: inset 0 0 0 1px var(--c-border);}
.hcd-th-fd-minimal{--hcd-fx: #1e40af #dc2626 #0ea5e9 #64748b;}
.hcd-th-ed-minimal{--hcd-fx: #ca8a04 #059669 rgba(202,138,4,.3);}
.hcd-th-dw-minimal{--hcd-fx: #b45309 #f59e0b rgba(245,158,11,.35) #facc15;}
.hcd-th-ds-minimal{--hcd-fx: #0f766e #f59e0b #64748b;}
.hcd-th-fd-tie{background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px), linear-gradient(180deg, #1e3a8a, #172554); --hcd-ink: #eff6ff; --hcd-tile: #fff; --hcd-edge: #bfdbfe; --hcd-num: #1e3a8a; --hcd-lab: #1d4ed8; --hcd-line: #eff6ff; --hcd-pill: rgba(0,0,0,.3); --hcd-shadow: 0 6px 16px rgba(0,0,0,.3); --hcd-fx: #dc2626 #f59e0b #38bdf8 #ffffff;}
.hcd-th-fd-bbq{background: radial-gradient(ellipse 70% 45% at 50% 108%, rgba(249,115,22,.55), transparent 70%), repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 6px, transparent 6px 40px), linear-gradient(180deg, #292524, #1c1917); --hcd-ink: #fff7ed; --hcd-tile: rgba(0,0,0,.45); --hcd-edge: #f97316; --hcd-num: #fdba74; --hcd-lab: #fed7aa; --hcd-line: #ffedd5; --hcd-pill: rgba(0,0,0,.45); --hcd-glow: 0 0 12px rgba(249,115,22,.6); --hcd-font: Impact, "Arial Black", sans-serif; --hcd-fx: #dc2626 #f97316 #facc15 #16a34a;}
.hcd-th-fd-bbq .hcd-title{font-weight: 400; letter-spacing: .02em;}
.hcd-th-fd-fishing{background: repeating-radial-gradient(ellipse 60px 14px at 50% 100%, transparent 0 10px, rgba(255,255,255,.12) 10px 12px), linear-gradient(180deg, #bae6fd, #38bdf8 45%, #0369a1); --hcd-ink: #082f49; --hcd-tile: #fff; --hcd-edge: #fff; --hcd-num: #0369a1; --hcd-lab: #075985; --hcd-line: #082f49; --hcd-pill: rgba(255,255,255,.8); --hcd-date-bg: rgba(255,255,255,.7); --hcd-r: 20px; --hcd-fx: #f97316 #dc2626 #facc15 #0c4a6e;}
.hcd-th-fd-tools{background: radial-gradient(circle, rgba(0,0,0,.28) 0 2.5px, transparent 3px) 0 0 / 24px 24px, linear-gradient(180deg, #d6b98c, #c19a6b); --hcd-ink: #1c1917; --hcd-tile: #facc15; --hcd-edge: #1c1917; --hcd-num: #1c1917; --hcd-lab: #422006; --hcd-line: #1c1917; --hcd-pill: rgba(255,255,255,.75); --hcd-title-bg: rgba(255,255,255,.75); --hcd-date-bg: rgba(255,255,255,.75); --hcd-r: 6px; --hcd-shadow: 0 4px 0 #1c1917; --hcd-font: Impact, "Arial Black", sans-serif; --hcd-numfont: Impact, "Arial Black", sans-serif; --hcd-fx: #dc2626 #2563eb #1f2937 #f59e0b;}
.hcd-th-fd-tools .hcd-title{font-weight: 400; letter-spacing: .02em;}
.hcd-th-fd-golf{background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 40px, transparent 40px 80px), radial-gradient(ellipse at 50% 0, #4ade80, #16a34a 55%, #14532d); --hcd-ink: #f0fdf4; --hcd-tile: #fff; --hcd-edge: #bbf7d0; --hcd-num: #15803d; --hcd-lab: #166534; --hcd-line: #f0fdf4; --hcd-pill: rgba(0,0,0,.28); --hcd-r: 50%; --hcd-shadow: 0 6px 16px rgba(5,46,22,.35); --hcd-fx: #ffffff #1e3a8a #dc2626 #facc15;}
.hcd-th-ed-night{background: radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 34% 10%, #fff 50%, transparent), radial-gradient(2px 2px at 70% 16%, #fde68a 50%, transparent), radial-gradient(1.5px 1.5px at 88% 34%, #fff 50%, transparent), linear-gradient(180deg, #1e1b4b, #312e81 60%, #4c1d95); --hcd-ink: #fef3c7; --hcd-tile: rgba(255,255,255,.08); --hcd-edge: #eab308; --hcd-num: #fde047; --hcd-lab: #fde68a; --hcd-line: #fef3c7; --hcd-pill: rgba(0,0,0,.35); --hcd-font: Georgia, "Times New Roman", serif; --hcd-glow: 0 0 10px rgba(250,204,21,.45); --hcd-blend: lighter; --hcd-fx: #fde68a #ffffff rgba(253,230,138,.35);}
.hcd-th-ed-gold{background: repeating-conic-gradient(from 22.5deg, rgba(253,230,138,.08) 0 12.5%, transparent 0 25%) 0 0 / 56px 56px, linear-gradient(180deg, #065f46, #064e3b); --hcd-ink: #fef9c3; --hcd-tile: #fef9c3; --hcd-edge: #ca8a04; --hcd-num: #065f46; --hcd-lab: #047857; --hcd-line: #fef3c7; --hcd-pill: rgba(0,0,0,.3); --hcd-font: Georgia, "Times New Roman", serif; --hcd-numfont: Georgia, "Times New Roman", serif; --hcd-shadow: 0 0 0 3px rgba(202,138,4,.35); --hcd-fx: #fde68a #fef9c3 rgba(253,230,138,.35);}
.hcd-th-ed-sweets{background: radial-gradient(circle, rgba(219,39,119,.16) 0 4px, transparent 5px) 0 0 / 34px 34px, radial-gradient(circle, rgba(245,158,11,.18) 0 3px, transparent 4px) 17px 17px / 34px 34px, linear-gradient(180deg, #fff1f2, #ffe4e6 60%, #fed7aa); --hcd-ink: #831843; --hcd-tile: #fff; --hcd-edge: #fbcfe8; --hcd-num: #db2777; --hcd-lab: #9d174d; --hcd-line: #831843; --hcd-pill: rgba(255,255,255,.85); --hcd-r: 22px; --hcd-shadow: 0 6px 16px rgba(219,39,119,.15); --hcd-fx: #db2777 #f59e0b rgba(219,39,119,.22);}
.hcd-th-ed-mosaic{background: radial-gradient(circle, rgba(253,230,138,.55) 0 2px, transparent 2.5px) 22px 22px / 44px 44px, conic-gradient(from 45deg, #1e3a8a 25%, #1d4ed8 0 50%, #1e3a8a 0 75%, #1d4ed8 0) 0 0 / 44px 44px; --hcd-ink: #eff6ff; --hcd-tile: #eff6ff; --hcd-edge: #fde68a; --hcd-num: #1e3a8a; --hcd-lab: #1d4ed8; --hcd-line: #eff6ff; --hcd-pill: rgba(23,37,84,.7); --hcd-title-bg: rgba(23,37,84,.7); --hcd-date-bg: rgba(23,37,84,.7); --hcd-fx: #fde68a #ffffff rgba(253,230,138,.3);}
.hcd-th-ed-morning{background: radial-gradient(circle at 50% 112%, #fde68a 0 18%, rgba(253,186,116,.7) 30%, transparent 55%), linear-gradient(180deg, #bae6fd, #e0f2fe 55%, #fed7aa); --hcd-ink: #134e4a; --hcd-tile: #fff; --hcd-edge: #99f6e4; --hcd-num: #0f766e; --hcd-lab: #115e59; --hcd-line: #134e4a; --hcd-pill: rgba(255,255,255,.8); --hcd-date-bg: rgba(255,255,255,.7); --hcd-shadow: 0 6px 16px rgba(15,118,110,.14); --hcd-fx: #d97706 #f59e0b rgba(253,186,116,.45);}
.hcd-th-dw-diya{background: radial-gradient(ellipse 80% 40% at 50% 105%, rgba(251,146,60,.55), transparent 70%), radial-gradient(circle at 15% 18%, rgba(250,204,21,.2), transparent 25%), linear-gradient(180deg, #2e1065, #4a044e 60%, #7c2d12); --hcd-ink: #fef3c7; --hcd-tile: rgba(0,0,0,.35); --hcd-edge: #f59e0b; --hcd-num: #fcd34d; --hcd-lab: #fde68a; --hcd-line: #fef3c7; --hcd-pill: rgba(0,0,0,.4); --hcd-glow: 0 0 12px rgba(245,158,11,.6); --hcd-blend: lighter; --hcd-fx: #b45309 #fbbf24 rgba(251,191,36,.5) #fde047;}
.hcd-th-dw-rangoli{background: repeating-radial-gradient(circle at 50% 50%, transparent 0 22px, rgba(255,255,255,.14) 22px 25px, transparent 25px 34px, rgba(250,204,21,.2) 34px 37px), linear-gradient(135deg, #db2777, #ea580c 50%, #0d9488); --hcd-ink: #fff; --hcd-tile: #fff; --hcd-edge: #fde047; --hcd-num: #be185d; --hcd-lab: #9a3412; --hcd-line: #fff; --hcd-pill: rgba(0,0,0,.28); --hcd-title-bg: rgba(0,0,0,.2); --hcd-r: 50% 50% 16px 16px; --hcd-shadow: 0 6px 16px rgba(0,0,0,.25); --hcd-fx: #9a3412 #fde047 rgba(250,204,21,.5) #fef08a;}
.hcd-th-dw-marigold{background: radial-gradient(circle, #f97316 0 11px, #ea580c 11px 13px, transparent 14px) 0 -8px / 30px 30px repeat-x, radial-gradient(circle, #facc15 0 9px, transparent 10px) 15px 4px / 30px 30px repeat-x, linear-gradient(180deg, #fff7ed, #fed7aa 70%, #fdba74); --hcd-ink: #7c2d12; --hcd-tile: #7f1d1d; --hcd-edge: #facc15; --hcd-num: #fde047; --hcd-lab: #fed7aa; --hcd-line: #7c2d12; --hcd-pill: rgba(255,255,255,.75); --hcd-date-bg: rgba(255,255,255,.65); --hcd-font: Georgia, "Times New Roman", serif; --hcd-fx: #7c2d12 #b91c1c rgba(234,88,12,.35) #fde047;}
.hcd-th-dw-night{background: radial-gradient(circle at 18% 22%, rgba(236,72,153,.35) 0 2px, transparent 30px), radial-gradient(circle at 80% 18%, rgba(250,204,21,.35) 0 2px, transparent 36px), radial-gradient(circle at 62% 30%, rgba(56,189,248,.3) 0 2px, transparent 26px), linear-gradient(180deg, #020617, #172554 70%, #431407); --hcd-ink: #fff7ed; --hcd-tile: rgba(255,255,255,.07); --hcd-edge: #fb923c; --hcd-num: #fff; --hcd-lab: #fed7aa; --hcd-line: #ffedd5; --hcd-pill: rgba(0,0,0,.4); --hcd-glow: 0 0 10px rgba(251,146,60,.6); --hcd-blend: lighter; --hcd-fx: #92400e #fbbf24 rgba(251,191,36,.45) #fef08a;}
.hcd-th-dw-royal{background: repeating-linear-gradient(45deg, rgba(250,204,21,.07) 0 2px, transparent 2px 18px), repeating-linear-gradient(-45deg, rgba(250,204,21,.07) 0 2px, transparent 2px 18px), linear-gradient(180deg, #581c87, #3b0764); --hcd-ink: #fef9c3; --hcd-tile: #fef3c7; --hcd-edge: #ca8a04; --hcd-num: #6b21a8; --hcd-lab: #7e22ce; --hcd-line: #fef9c3; --hcd-pill: rgba(0,0,0,.3); --hcd-font: Georgia, "Times New Roman", serif; --hcd-numfont: Georgia, "Times New Roman", serif; --hcd-fx: #a16207 #facc15 rgba(250,204,21,.4) #fef9c3;}
.hcd-board.hcd-th-dw-royal{box-shadow: inset 0 0 0 6px #ca8a04, inset 0 0 0 9px #581c87, inset 0 0 0 11px #facc15;}
.hcd-th-ds-spring{background: radial-gradient(circle at 8% 92%, #f9a8d4 0 20px, transparent 21px), radial-gradient(circle at 92% 90%, #fde68a 0 22px, transparent 23px), linear-gradient(180deg, #ccfbf1, #ecfccb 70%, #bbf7d0); --hcd-ink: #134e4a; --hcd-tile: #fff; --hcd-edge: #5eead4; --hcd-num: #0f766e; --hcd-lab: #115e59; --hcd-line: #134e4a; --hcd-pill: rgba(255,255,255,.8); --hcd-shadow: 0 6px 16px rgba(15,118,110,.14); --hcd-fx: #16a34a #ec4899 #0ea5e9 #f59e0b;}
.hcd-th-ds-fall{background: radial-gradient(ellipse at 50% 0, rgba(253,186,116,.35), transparent 60%), linear-gradient(180deg, #c2410c, #9a3412 60%, #7c2d12); --hcd-ink: #fff7ed; --hcd-tile: #fff7ed; --hcd-edge: #fed7aa; --hcd-num: #9a3412; --hcd-lab: #c2410c; --hcd-line: #ffedd5; --hcd-pill: rgba(0,0,0,.25); --hcd-shadow: 0 6px 18px rgba(69,10,10,.35); --hcd-fx: #b45309 #dc2626 #ca8a04 #78350f;}
.hcd-th-ds-night{background: radial-gradient(circle at 86% 18%, #fef9c3 0 22px, transparent 23px), radial-gradient(circle at 81% 15%, #1e1b4b 0 22px, transparent 23px), radial-gradient(1.5px 1.5px at 20% 25%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 45% 12%, #fff 50%, transparent), linear-gradient(180deg, #0f172a, #1e1b4b); --hcd-ink: #e0e7ff; --hcd-tile: rgba(255,255,255,.08); --hcd-edge: #818cf8; --hcd-num: #c7d2fe; --hcd-lab: #a5b4fc; --hcd-line: #e0e7ff; --hcd-pill: rgba(0,0,0,.35); --hcd-glow: 0 0 10px rgba(129,140,248,.55); --hcd-fx: #818cf8 #a78bfa #fde68a #60a5fa;}
.hcd-th-ds-sunny{background: radial-gradient(circle at 50% 118%, #fde047 0 22%, #fb923c 34%, transparent 58%), linear-gradient(180deg, #7dd3fc, #bae6fd 60%, #fef3c7); --hcd-ink: #7c2d12; --hcd-tile: #fff; --hcd-edge: #fdba74; --hcd-num: #ea580c; --hcd-lab: #9a3412; --hcd-line: #7c2d12; --hcd-pill: rgba(255,255,255,.82); --hcd-date-bg: rgba(255,255,255,.7); --hcd-r: 22px; --hcd-fx: #f59e0b #0ea5e9 #ef4444;}
.hcd-th-ds-flip{background: linear-gradient(180deg, #171717, #0a0a0a); --hcd-ink: #f5f5f5; --hcd-tile: #1f1f1f; --hcd-edge: #000; --hcd-num: #fafafa; --hcd-lab: #a3a3a3; --hcd-line: #f5f5f5; --hcd-pill: #262626; --hcd-r: 10px; --hcd-numfont: "Helvetica Neue", Arial, sans-serif; --hcd-shadow: 0 8px 18px rgba(0,0,0,.6); --hcd-fx: #f59e0b #e5e5e5 #737373;}
.hcd-sw.hcd-th-ds-flip{color: #fafafa;}
.hc[data-job="stair-calculator"] .hc-add, .hc[data-job="stair-calculator"] .hc-x{display: none;}
.hc[data-job="stair-calculator"] .hc-ihead{padding-right: 0;}
.hcs-draw{margin: 16px auto 0; max-width: 560px; aspect-ratio: 1 / 1; border: 1px solid var(--c-border); border-radius: 16px; background: var(--c-surface); overflow: hidden;}
.hcs-draw svg{display: block; width: 100%; height: 100%;}
.hcs-draw text{font-family: inherit; font-size: 14px; fill: var(--c-text);}
.hcs-draw .hcs-lab{font-weight: 600;}
.hcs-draw .hcs-leg{font-weight: 600; fill: var(--c-text-muted);}
.hcs-draw .hcs-rt{font-size: 12px; font-weight: 800; fill: #92400e;}
.hcs-ground{fill: color-mix(in srgb, var(--c-text) 22%, var(--c-surface));}
.hcs-slab{fill: color-mix(in srgb, var(--c-text) 12%, var(--c-surface)); stroke: color-mix(in srgb, var(--c-text) 35%, var(--c-surface)); stroke-width: 1;}
.hcs-str{fill: #f3d9ae; stroke: #a16207; stroke-width: 1.5; stroke-linejoin: round;}
.hcs-tread{fill: #b45309;}
.hcs-dim{stroke: var(--c-text-soft); stroke-width: 1.3; fill: none;}
.hcs-head{stroke: #16a34a; stroke-width: 2; stroke-dasharray: 5 4;}
.hcs-head.is-bad{stroke: #dc2626;}
.hcs-draw .hcs-halo{paint-order: stroke; stroke: var(--c-surface); stroke-width: 4px; stroke-linejoin: round;}
.hcs-draw .hcs-halo.is-bad{fill: #dc2626;}
@media (prefers-color-scheme: dark){
.hcs-str{fill: #7c5a2e; stroke: #f59e0b;}
.hcs-tread{fill: #f59e0b;}
.hcs-draw .hcs-rt{fill: #fde68a;}
}
@media (max-width: 560px){
.hcs-draw{margin-top: 14px; border-radius: 12px;}
.hcs-draw text{font-size: 16px;}
.hcs-draw .hcs-leg{font-size: 15px;}
}
@media (min-width: 1200px){
.hc[data-job="stair-calculator"] #hcItems:empty{min-height: 155px;}
.hc[data-job="stair-calculator"] #hcOpts:empty{min-height: 228px;}
.hc[data-job="stair-calculator"] #hcResult:empty{min-height: 971px;}
}
@media (min-width: 1200px){
.hc[data-job="paver-calculator"] #hcItems:empty{min-height: 144px;}
.hc[data-job="paver-calculator"] #hcOpts:empty{min-height: 366px;}
.hc[data-job="paver-calculator"] #hcResult:empty{min-height: 560px;}
.hc[data-job="brick-calculator"] #hcItems:empty{min-height: 222px;}
.hc[data-job="brick-calculator"] #hcOpts:empty{min-height: 369px;}
.hc[data-job="brick-calculator"] #hcResult:empty{min-height: 523px;}
.hc[data-job="sod-calculator"] #hcItems:empty{min-height: 144px;}
.hc[data-job="sod-calculator"] #hcOpts:empty{min-height: 209px;}
.hc[data-job="sod-calculator"] #hcResult:empty{min-height: 524px;}
.hc[data-job="pool-volume-calculator"] #hcItems:empty{min-height: 244px;}
.hc[data-job="pool-volume-calculator"] #hcOpts:empty{min-height: 69px;}
.hc[data-job="pool-volume-calculator"] #hcResult:empty{min-height: 471px;}
.hc[data-job="aquarium-volume-calculator"] #hcItems:empty{min-height: 144px;}
.hc[data-job="aquarium-volume-calculator"] #hcOpts:empty{min-height: 206px;}
.hc[data-job="aquarium-volume-calculator"] #hcResult:empty{min-height: 533px;}
.hc[data-job="board-foot-calculator"] #hcItems:empty{min-height: 212px;}
.hc[data-job="board-foot-calculator"] #hcOpts:empty{min-height: 150px;}
.hc[data-job="board-foot-calculator"] #hcResult:empty{min-height: 502px;}
}
.hcd-box{margin-top: 18px; aspect-ratio: 16 / 9; border: 1px solid var(--c-border); border-radius: 16px; background: var(--c-surface); overflow: hidden;}
.hcd-box svg{display: block; width: 100%; height: 100%;}
.hcd-wall{fill: color-mix(in srgb, var(--c-primary) 6%, var(--c-surface)); stroke: var(--c-border); stroke-width: 1.5;}
.hcd-floor{stroke: var(--c-text-muted); stroke-width: 3; stroke-linecap: round;}
.hcd-furn{fill: color-mix(in srgb, #a16207 22%, var(--c-surface)); stroke: color-mix(in srgb, #a16207 55%, var(--c-surface)); stroke-width: 1.5;}
.hcd-mid{stroke: #f59e0b; stroke-width: 1.5; stroke-dasharray: 6 4;}
.hcd-frame{fill: #8b5a2b;}
.hcd-mat{fill: color-mix(in srgb, #38bdf8 22%, #ffffff);}
.hcd-wire{fill: none; stroke: #334155; stroke-width: 1.2; stroke-dasharray: 3 3;}
.hcd-nail{fill: #dc2626; stroke: #ffffff; stroke-width: 1.5;}
.hcd-dim{stroke: var(--c-text-muted); stroke-width: 1.2;}
.hcd-dash{stroke-dasharray: 3 3;}
.hcd-txt{fill: var(--c-text); font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--c-surface); stroke-width: 3px; stroke-linejoin: round;}
.hcd-soft{fill: #d97706; font-size: 12px;}
@media (max-width: 560px){
.hcd-box{margin-top: 14px; border-radius: 12px; aspect-ratio: 4 / 3;}
}
@media (min-width: 1180px){
.hc[data-job="carpet-calculator"] #hcItems:empty{min-height: 144px;}
.hc[data-job="carpet-calculator"] #hcOpts:empty{min-height: 288px;}
.hc[data-job="carpet-calculator"] #hcResult:empty{min-height: 477px;}
.hc[data-job="fabric-calculator"] #hcItems:empty{min-height: 144px;}
.hc[data-job="fabric-calculator"] #hcOpts:empty{min-height: 291px;}
.hc[data-job="fabric-calculator"] #hcResult:empty{min-height: 353px;}
.hc[data-job="epoxy-resin-calculator"] #hcItems:empty{min-height: 222px;}
.hc[data-job="epoxy-resin-calculator"] #hcOpts:empty{min-height: 249px;}
.hc[data-job="epoxy-resin-calculator"] #hcResult:empty{min-height: 502px;}
.hc[data-job="picture-hanging-calculator"] #hcItems:empty{min-height: 212px;}
.hc[data-job="picture-hanging-calculator"] #hcOpts:empty{min-height: 366px;}
.hc[data-job="picture-hanging-calculator"] #hcResult:empty{min-height: 706px;}
.hc[data-job="christmas-lights-calculator"] #hcItems:empty{min-height: 144px;}
.hc[data-job="christmas-lights-calculator"] #hcOpts:empty{min-height: 206px;}
.hc[data-job="christmas-lights-calculator"] #hcResult:empty{min-height: 450px;}
.hc[data-job="wrapping-paper-calculator"] #hcItems:empty{min-height: 222px;}
.hc[data-job="wrapping-paper-calculator"] #hcOpts:empty{min-height: 182px;}
.hc[data-job="wrapping-paper-calculator"] #hcResult:empty{min-height: 464px;}
}
@media (min-width: 380px) and (max-width: 440px){
.hc[data-job="carpet-calculator"] #hcItems:empty{min-height: 140px;}
.hc[data-job="carpet-calculator"] #hcOpts:empty{min-height: 426px;}
.hc[data-job="carpet-calculator"] #hcResult:empty{min-height: 383px;}
.hc[data-job="fabric-calculator"] #hcItems:empty{min-height: 218px;}
.hc[data-job="fabric-calculator"] #hcOpts:empty{min-height: 529px;}
.hc[data-job="fabric-calculator"] #hcResult:empty{min-height: 283px;}
.hc[data-job="epoxy-resin-calculator"] #hcItems:empty{min-height: 251px;}
.hc[data-job="epoxy-resin-calculator"] #hcOpts:empty{min-height: 288px;}
.hc[data-job="epoxy-resin-calculator"] #hcResult:empty{min-height: 383px;}
.hc[data-job="picture-hanging-calculator"] #hcItems:empty{min-height: 208px;}
.hc[data-job="picture-hanging-calculator"] #hcOpts:empty{min-height: 605px;}
.hc[data-job="picture-hanging-calculator"] #hcResult:empty{min-height: 449px;}
.hc[data-job="christmas-lights-calculator"] #hcItems:empty{min-height: 173px;}
.hc[data-job="christmas-lights-calculator"] #hcOpts:empty{min-height: 288px;}
.hc[data-job="christmas-lights-calculator"] #hcResult:empty{min-height: 362px;}
.hc[data-job="wrapping-paper-calculator"] #hcItems:empty{min-height: 218px;}
.hc[data-job="wrapping-paper-calculator"] #hcOpts:empty{min-height: 260px;}
.hc[data-job="wrapping-paper-calculator"] #hcResult:empty{min-height: 348px;}
}
.mx-f3{grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));}
.mx-f2{grid-template-columns: repeat(2, minmax(0, 1fr));}
.mx-f3 > .hc-f, .mx-f2 > .hc-f, .mc:is([data-job="cd-calculator"], [data-job="amortization-schedule"], [data-job="student-loan-calculator"], [data-job="car-lease-calculator"], [data-job="commission-calculator"], [data-job="stock-average-calculator"], [data-job="rent-split-calculator"], [data-job="ev-charging-cost-calculator"], [data-preset="salary-to-hourly"]) .hc-opts > .hc-f:not(.hc-check){justify-content: flex-end;}
.mx-from{font-size: .84rem; color: var(--c-text-soft);}
.mx-nolimit{margin: 0; align-self: end; padding: 10px 0; font-size: .9rem; color: var(--c-text-muted);}
@media (max-width: 560px){
.mx-f3{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 600px){
.tool-stage .stage-body:has(> #mtcTool){padding: 14px;}
}
.rep-area{min-height: 110px;}
.rep-grid{display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 0 22px; margin-top: 14px;}
.rep-grid .vl-format{margin-top: 0;}
.rep-out{min-height: 200px;}
@media (max-width: 640px){
.rep-grid{grid-template-columns: 1fr;}
}
.fv-head{display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface-2);}
.fv-head > i{color: var(--c-tools-ink); font-size: 1.15rem;}
.fv-name{font-weight: 700; overflow-wrap: anywhere; min-width: 0;}
.fv-meta{color: var(--c-text-soft); font-size: .88rem;}
.fv-head .btn{margin-left: auto;}
.fv-bar{display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0;}
.fv-find{display: flex; align-items: center; gap: 6px; flex: 1 1 300px; min-width: 0;}
.fv-find .wr-input{flex: 1 1 auto; min-width: 0; width: auto; padding: 8px 12px; font-size: .94rem;}
.fv-colsel{width: auto; max-width: 170px; padding: 8px 10px; font-size: .9rem;}
.fv-count{font-size: .86rem; color: var(--c-text-muted);}
.fv-acts{display: flex; flex-wrap: wrap; gap: 6px;}
.fv-note{margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #f59e0b 13%, transparent); color: var(--c-text); font-size: .9rem; line-height: 1.5;}
.fv-note a{color: var(--c-primary-ink); text-decoration: underline;}
.fv-more{margin: 12px 0 0; border: 1px solid var(--c-border); border-radius: 10px; padding: 8px 12px; background: var(--c-surface);}
.fv-more summary{cursor: pointer; font-weight: 600;}
.fv-opts{display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 12px 0 0;}
.fv-opts .wr-group{margin: 0; min-width: 170px;}
.fv-opts .wr-select{padding: 8px 10px; font-size: .92rem;}
.fv-chk{margin: 0 0 8px;}
.fv-seg{display: inline-flex; gap: 6px; flex-wrap: wrap;}
@media (max-width: 600px){
.fv-find{flex-basis: 100%; flex-wrap: wrap;}
.fv-find .wr-input{flex-basis: 60%;}
.fv-opts .wr-group{min-width: 0; flex: 1 1 140px;}
}
@media (max-width: 600px){
.tool-stage .stage-body:has(> .dxv){padding: 14px;}
}
.fv-tabs{margin: 12px 0 0;}
@media (max-width: 600px){
.tool-stage .stage-body:has(> .shv){padding: 12px;}
}
@media (max-width: 600px){
.tool-stage .stage-body:has(> .ppv){padding: 14px;}
}
@media (max-width: 600px){
.tool-stage .stage-body:has(> .pgs){padding: 14px;}
}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .tnf){padding: 14px;}
}
.tool-stage .stage-body:has(> .prd), .tool-stage .stage-body:has(> .epr){padding: 14px;}
.ppc-pick{display: flex; justify-content: center; margin: 12px 0 0;}
.ppc-cards{display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 4px;}
.ppc-card{display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 8px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface-2); text-align: center;}
.ppc-card b{font-size: 1.45rem; line-height: 1.2; font-variant-numeric: tabular-nums;}
.ppc-card span{font-size: .8rem; color: var(--c-text-soft);}
.ppc-card.ppc-main{border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-border)); background: color-mix(in srgb, var(--c-primary) 8%, var(--c-surface));}
.ppc-card.ppc-main b{color: var(--c-primary-ink); font-size: 1.85rem;}
.ppc-wrap{width: 0; min-width: 100%; max-height: 520px; overflow: auto; margin-top: 14px; border: 1px solid var(--c-border); border-radius: 12px;}
.ppc-wrap:focus-visible{outline: 3px solid var(--c-primary); outline-offset: 2px;}
.ppc-table{width: 100%; border-collapse: collapse; font-size: .88rem;}
.ppc-table th, .ppc-table td{padding: 8px 10px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top;}
.ppc-table thead th{position: sticky; top: 0; z-index: 1; background: var(--c-surface-2); font-weight: 700; white-space: nowrap;}
.ppc-table tfoot th, .ppc-table tfoot td{position: sticky; bottom: 0; background: var(--c-surface-2); font-weight: 700; border-bottom: 0; border-top: 1px solid var(--c-border); white-space: nowrap;}
.ppc-table .ppc-num{text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;}
.ppc-table .ppc-n{width: 1%; color: var(--c-text-soft);}
.ppc-name{min-width: 150px;}
.ppc-name span{display: block; font-weight: 600; overflow-wrap: break-word;}
.ppc-name small{display: block; color: var(--c-text-soft); font-size: .78rem; overflow-wrap: break-word;}
.ppc-table .ppc-sz-m, .ppc-table .ppc-enc-m{display: none; color: var(--c-text-muted);}
.ppc-table .ppc-enc-m.ppc-lock{color: #b45309;}
.ppc-size{min-width: 130px;}
.ppc-lock{color: #b45309; font-weight: 600;}
.ppc-bad td{color: #dc2626;}
.ppc-table .ppc-x{width: 1%; padding: 2px 4px;}
.ppc-sort{border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap;}
.ppc-sort::after{content: " \2195"; color: var(--c-text-soft); font-weight: 400;}
th[aria-sort="ascending"] .ppc-sort::after{content: " \2191"; color: var(--c-primary-ink);}
th[aria-sort="descending"] .ppc-sort::after{content: " \2193"; color: var(--c-primary-ink);}
.ppc-sort:focus-visible{outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px;}
.ppc-sr{position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;}
@media (max-width: 560px){
.ppc-card b{font-size: 1.1rem;}
.ppc-card.ppc-main b{font-size: 1.35rem;}
.ppc-card span{font-size: .74rem;}
.ppc-table .ppc-n, .ppc-table .ppc-size, .ppc-table .ppc-enc{display: none;}
.ppc-table .ppc-sz-m, .ppc-table .ppc-enc-m{display: block;}
.ppc-table th, .ppc-table td{padding: 8px 6px;}
.ppc-name{min-width: 0;}
.ppc-name span, .ppc-name small{overflow-wrap: anywhere;}
}
@media (prefers-color-scheme: dark){
.ppc-lock, .ppc-table .ppc-enc-m.ppc-lock{color: #fbbf24;}
.ppc-bad td{color: #f87171;}
}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .vrt){padding: 14px;}
}
@media (max-width: 560px){
.tool-stage .stage-body:has(> .dm){padding: 12px;}
}
.avg-text{width: 100%; resize: vertical; min-height: 168px; line-height: 1.5; font-family: inherit; font-size: 1rem;}
.avg-count{display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 14px; font-size: .88rem; color: var(--c-text-muted); font-variant-numeric: tabular-nums;}
.avg-count .is-bad{color: #c0392b; font-weight: 700;}
.avg-opts, .a2m-opts{display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 22px;}
.avg-opts select{width: 100%; min-height: 44px;}
.avg-range{width: 100%; min-height: 44px; margin: 0; accent-color: var(--c-primary); cursor: pointer;}
.avg-range:focus-visible{outline: 3px solid var(--c-primary); outline-offset: 2px;}
.avg-opts label b, .a2m-opts label b{font-weight: 700; color: var(--c-primary); font-variant-numeric: tabular-nums;}
.avg-info{margin: 0 0 4px; font-size: .9rem; color: var(--c-text-muted);}
.avg-result{margin-top: 14px; min-height: 150px;}
@media (max-width: 560px){
.avg-result{min-height: 0;}
}
.try-sample{display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px;}
.try-sample .btn{min-height: 44px;}
.try-sample-msg{font-size: .86rem; color: #b91c1c;}
.info-row > span{white-space: nowrap;}
.info-row > b{text-align: right;}
.side-card .info-row{gap: 12px;}
.tool-stage:has(#vpTool) .stage-body{padding: 18px;}
@media (max-width: 560px){
.container-wide:has(#vpTool){padding: 0 10px;}
.tool-stage:has(#vpTool) .stage-body{padding: 8px;}
}
.gfe .btn, .cfp .btn, .apd .btn, .vp .btn, .try-sample .btn{font-family: inherit;}
.try-sample{justify-content: center;}
.aat-undo{border-color: var(--c-primary) !important; color: var(--c-primary-ink) !important;}
.hc-note a{color: var(--c-primary-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;}
.hc-h{line-height: 1.2; font-weight: 800; letter-spacing: -.02em;}
#hcTool:not(.is-ready) :is(.hc-grid, .hcd-box, .wr-hint){visibility: hidden;}
.hc[data-job="lawn-fertilizer-calculator"] .hc-f:has(> select[data-o="season"]), .hc[data-job="grass-seed-calculator"] .hc-f:has(> select[data-o="grass"]){grid-column: 1 / -1;}
.hc:is([data-job="grass-seed-calculator"], [data-job="lawn-fertilizer-calculator"]) #hcItems:empty{min-height: 144px;}
.hc[data-job="grass-seed-calculator"] #hcResult:empty{min-height: 717px;}
.hc[data-job="lawn-fertilizer-calculator"] #hcResult:empty{min-height: 964px;}
@media (max-width: 760px){
.hc[data-job="grass-seed-calculator"] #hcOpts:empty{min-height: 313px;}
.hc[data-job="grass-seed-calculator"] #hcResult:empty{min-height: 422px;}
.hc[data-job="lawn-fertilizer-calculator"] #hcOpts:empty{min-height: 476px;}
.hc[data-job="lawn-fertilizer-calculator"] #hcResult:empty{min-height: 542px;}
}
@media (max-width: 560px){
.hc:is([data-job="grass-seed-calculator"], [data-job="lawn-fertilizer-calculator"]) #hcItems:empty{min-height: 180px;}
.hc[data-job="grass-seed-calculator"] #hcOpts:empty{min-height: 473px;}
.hc[data-job="grass-seed-calculator"] #hcResult:empty{min-height: 512px;}
.hc[data-job="lawn-fertilizer-calculator"] #hcOpts:empty{min-height: 790px;}
.hc[data-job="lawn-fertilizer-calculator"] #hcResult:empty{min-height: 704px;}
}
@media (max-width: 375px){
.hc[data-job="grass-seed-calculator"] #hcResult:empty{min-height: 555px;}
.hc[data-job="lawn-fertilizer-calculator"] #hcResult:empty{min-height: 754px;}
}
@media (max-width: 370px){
.hc:is([data-job="grass-seed-calculator"], [data-job="lawn-fertilizer-calculator"]) #hcItems:empty{min-height: 213px;}
.hc[data-job="grass-seed-calculator"] #hcResult:empty{min-height: 580px;}
.hc[data-job="lawn-fertilizer-calculator"] #hcResult:empty{min-height: 802px;}
}
.tool-stage:has(.xbp){overflow: visible;}
@media (max-width: 700px){
.tool-stage .stage-body:has(> .xbp){padding: 14px;}
}
.tool-stage:has(#bsiTool){overflow: visible;}
@media (max-width: 760px){
.container-wide:has(#bsiTool){padding: 0 10px;}
.tool-stage .stage-body:has(> #bsiTool){padding: 14px 12px;}
}
.tool-stage:has(.cpl){overflow: visible;}
@media (max-width: 680px){
.container-wide:has(.pmt){padding: 0 10px;}
.tool-stage .stage-body:has(> .pmt){padding: 14px 12px;}
}
@media (max-width: 760px){
.container-wide:has(.wgl){padding: 0 10px;}
.tool-stage .stage-body:has(> .wgl){padding: 14px 12px;}
}
