/* Dark mode follows the approved typography, composition and brand palette.
   Every override is scoped so the original light artwork remains available. */
.industry-panel{background:var(--industry-accent,var(--lime))}
html[data-theme="dark"] ::selection{background:var(--lime);color:#151614}
html[data-theme="dark"] :is(a,button,input,select,textarea,summary):focus-visible{outline-color:var(--lime)}
html[data-theme="dark"] :is(input,select,textarea){color-scheme:dark}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:var(--quiet);opacity:1}
html[data-theme="dark"] .chrona-master{filter:brightness(0) invert(.95)}
html[data-theme="dark"] :is(.hero-calzy,.calzy-mascot,.sidebar-calzy .calzy-small,.chat-head .calzy-small,.final-calzy){filter:drop-shadow(0 0 1px #f4c9a8)}
html[data-theme="dark"] .site-header{background:#18191c;border-color:var(--line)}
html[data-theme="dark"] .theme-toggle{color:var(--muted);background:var(--surface)}
html[data-theme="dark"] .underlined{background:linear-gradient(#a8bd55,#a8bd55) 0 95%/100% 3px no-repeat}
html[data-theme="dark"] .hero .status-dot{color:var(--lime)}
html[data-theme="dark"] .block-button{background:var(--raised);border-color:#646b76;box-shadow:4px 4px 0 var(--shadow);color:var(--ink)}
html[data-theme="dark"] .block-button:hover{background:#34383f;box-shadow:2px 2px 0 var(--shadow);border-color:#969da8}
html[data-theme="dark"] .block-button.large{box-shadow:7px 7px 0 var(--shadow)}
html[data-theme="dark"] .block-button.large:hover{box-shadow:3px 3px 0 var(--shadow)}
html[data-theme="dark"] .block-button:active{box-shadow:none}
html[data-theme="dark"] :is(.header-cta,.hero-cta .block-button,.final-right .block-button){background:var(--lime);color:#151614;border-color:var(--lime)}
html[data-theme="dark"] .solid-button{background:var(--lime);color:#151614;border-color:var(--lime)}
html[data-theme="dark"] .solid-button:hover{background:#e1ff72;border-color:#e1ff72}
html[data-theme="dark"] .solid-button:disabled{background:var(--lime-deep);color:var(--lime);border-color:#677d35}
html[data-theme="dark"] .skip-link{color:#151614}

/* Product previews keep distinct surfaces and fully legible category colors. */
html[data-theme="dark"] .product-section{background:#202226;border-block:1px solid var(--line)}
html[data-theme="dark"] .calendar-app{background:#1a1c20;border-color:#4b505a;box-shadow:0 28px 65px #00000040,0 1px 0 #ffffff08 inset}
html[data-theme="dark"] .app-sidebar{background:#24272d;border-color:#41454e}
html[data-theme="dark"] .avatar{background:var(--lavender);color:#24202c}
html[data-theme="dark"] .sidebar-active{background:#343e29;border-color:#5b6a43;color:var(--lime-soft);box-shadow:inset 3px 0 0 var(--lime)}
html[data-theme="dark"] :is(.app-account small,.sidebar-calzy small,.sidebar-label,.calendar-toolbar .small-label,.today-badge,.time-head,.day-head,.time-column span){color:var(--muted)}
html[data-theme="dark"] .today-badge{background:var(--raised);border-color:#50555f}
html[data-theme="dark"] .segmented{background:#101216;box-shadow:inset 0 0 0 1px #383d46}
html[data-theme="dark"] .segmented button{color:var(--muted)}
html[data-theme="dark"] .segmented button.active{background:#3b414b;color:var(--ink);box-shadow:0 1px 5px #00000040,inset 0 0 0 1px #666d79}
html[data-theme="dark"] .day-head.current b{background:var(--lime-deep);color:var(--lime);box-shadow:inset 0 0 0 1px #788d46}
html[data-theme="dark"] .day-column{border-color:#30343c;background:repeating-linear-gradient(to bottom,#30343c 0,#30343c 1px,transparent 1px,transparent 140.8px)}
html[data-theme="dark"] .event.lime{--event-accent:#d6fa46;--event-detail:#d3dfb8;background:#3b462b;color:#edf5d5;border-color:#6b8046}
html[data-theme="dark"] .event.lavender{--event-accent:#d0b9f2;--event-detail:#d9c9ee;background:#453b55;color:#f1e9ff;border-color:#8b74a7}
html[data-theme="dark"] .event.peach{--event-accent:#efb98f;--event-detail:#f0cfb9;background:#534035;color:#ffecdf;border-color:#a67d60}
html[data-theme="dark"] .event.outline{--event-detail:#c7cbd3;background:#292e36;border-color:#8a929e;color:var(--ink)}
html[data-theme="dark"] .event:hover{box-shadow:0 6px 18px #00000040;filter:brightness(1.08)}
html[data-theme="dark"] .calendar-key i{border-color:#ffffff26}
html[data-theme="dark"] .app-foot{background:#202329;border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .app-foot .status-dot{background:var(--lime)}
html[data-theme="dark"] .round-sticker{background:var(--lime);color:#151614;border-color:#151614;box-shadow:3px 3px 0 var(--shadow)}
html[data-theme="dark"] .product-caption p{color:var(--muted)}
html[data-theme="dark"] .demo-label{background:#25282e;border-color:#565d69;color:#c6cbd4}

/* The editorial sections retain their original geometry and illustrations. */
html[data-theme="dark"] .ticker{background:#101114;color:#d4d7de;border-color:#30333a}
html[data-theme="dark"] :is(.industry-list,.industry-tab,.features-grid,.feature,.family-section,.faq-section,.faq-list,details,.footer-bottom,.space-inventory,.capacity-resource-list>div,.menu-footer){border-color:var(--line)}
html[data-theme="dark"] .industry-tab em{color:var(--muted)}
html[data-theme="dark"] .industry-tab.active .tab-arrow{background:var(--lime);color:#151614;border-color:var(--lime)}
html[data-theme="dark"] .industry-panel{background:color-mix(in srgb,var(--industry-accent,var(--lime)) 16%,#191b20);border-color:color-mix(in srgb,var(--industry-accent,var(--lime)) 42%,#191b20);box-shadow:var(--card-shadow)}
html[data-theme="dark"] .industry-panel .mono{color:var(--industry-accent,var(--lime))}
html[data-theme="dark"] .industry-panel h3{color:var(--ink)}
html[data-theme="dark"] .industry-art [stroke="#10110e"]{stroke:var(--industry-accent,var(--lime))}
html[data-theme="dark"] .industry-art [fill="#10110e"]{fill:var(--industry-accent,var(--lime))}
html[data-theme="dark"] .industry-art [fill="#fafaf6"]{fill:#30343c}
html[data-theme="dark"] .tags span{background:#17191e38;border-color:#c1c6ce66;color:var(--ink)}
html[data-theme="dark"] .industry-capacity{background:#21242a;border-color:#464c56;box-shadow:var(--card-shadow)}
html[data-theme="dark"] .capacity-metrics{background:#2c3038;color:var(--lime-soft);border-color:#4c535e}
html[data-theme="dark"] .capacity-metrics>div{border-color:#4c535e}
html[data-theme="dark"] .capacity-metrics span{color:#c6cbd3}
html[data-theme="dark"] :is(.capacity-heading p,.capacity-resource-list span,.inventory-note,.industry-capacity>small){color:var(--muted);opacity:1}
html[data-theme="dark"] .space-inventory th{background:#30343d;border-color:#626a77;color:#dde0e6}
html[data-theme="dark"] .space-inventory td:first-child span{color:var(--muted)}
html[data-theme="dark"] .stock-status{background:var(--lime-deep);color:#e2f7aa}
html[data-theme="dark"] .stock-status.low{background:var(--peach-deep);color:#ffdfc8}
html[data-theme="dark"] :is(.stock-actions button,.inventory-add input,.inventory-add select){background:var(--raised);color:var(--ink);border-color:var(--edge)}
html[data-theme="dark"] .team-section{background:#25222e;color:var(--ink);border-block:1px solid #494153}
html[data-theme="dark"] :is(.team-copy>.eyebrow,.team-caption){color:var(--muted)}
html[data-theme="dark"] .team-copy p{color:#c9c3d2}
html[data-theme="dark"] .text-link.light{color:var(--ink);border-color:var(--edge)}
html[data-theme="dark"] .swap-card{background:#303039;color:var(--ink);border-color:#676172;box-shadow:7px 7px 0 #16131d,0 20px 35px #00000030}
html[data-theme="dark"] .badge{background:var(--peach-deep);border-color:#a07961;color:var(--peach-soft)}
html[data-theme="dark"] .person-avatar{color:#151614;border-color:#151614}
html[data-theme="dark"] :is(.swap-people small,.shift-info small,.swap-note,.feature>p,.more-features>span){color:var(--muted)}
html[data-theme="dark"] .availability{color:var(--lime-soft)}
html[data-theme="dark"] .receipt{background:#e5edc2;color:#272c1c;border-color:#b7c487;box-shadow:5px 5px 0 #0b0d08,0 15px 30px #00000030}
html[data-theme="dark"] .receipt>div{border-color:#8c9970}
html[data-theme="dark"] .form-page{background:var(--lavender);color:#30263f;border-color:#ad9dc5;box-shadow:5px 5px 0 #100d16,0 15px 30px #00000030}
html[data-theme="dark"] .form-line{background:#7c698f66}
html[data-theme="dark"] .signed{border-color:#7c698f66}
html[data-theme="dark"] .mini-browser{border-color:#84796f;box-shadow:5px 5px 0 #16110e,0 15px 30px #00000030}
html[data-theme="dark"] .browser-bar{background:#30333a;color:#e3e4e8}
html[data-theme="dark"] .browser-bar i{border-color:var(--muted)}
html[data-theme="dark"] .mini-site{background:var(--peach);color:#362c25}
html[data-theme="dark"] .mini-site svg{color:#78523c}
html[data-theme="dark"] .mini-book{border-color:#78523c}

/* Work / life and the interactive family-sharing workspace. */
html[data-theme="dark"] .life-section{background:#302722;border-color:#634b3d}
html[data-theme="dark"] .life-copy h2{color:#f5e5d9}
html[data-theme="dark"] .orbit{border-color:#c2977959}
html[data-theme="dark"] .life-window{background:#24272d;border-color:#8b7363;box-shadow:7px 7px 0 #1a1410,0 20px 40px #00000030}
html[data-theme="dark"] :is(.life-window-top,.life-window-bottom){border-color:var(--line)}
html[data-theme="dark"] .life-event.work{background:var(--lavender-deep);color:var(--lavender-soft);border-color:#89749f}
html[data-theme="dark"] .private-event{background:var(--peach-deep);color:#ffdfc8;border-color:#936e53}
html[data-theme="dark"] .private-event.team-view{background:#30343d;color:#d4d8e0;border-color:#89919e}
html[data-theme="dark"] .switch-track{background:#424752;border-color:#88909d}
html[data-theme="dark"] .switch-track>span{background:var(--ink)}
html[data-theme="dark"] .privacy-toggle[aria-checked="true"] .switch-track>span{background:#151614}
html[data-theme="dark"] .life-sticker{background:var(--lime);color:#151614;border-color:#151614;box-shadow:5px 5px 0 var(--shadow)}
html[data-theme="dark"] .family-flow{background:#23262c;border-color:#5b606b;box-shadow:var(--card-shadow)}
html[data-theme="dark"] :is(.family-flow-head,.family-flow-status){background:#2d3037;border-color:#4b505a}
html[data-theme="dark"] .family-steps{border-color:var(--line)}
html[data-theme="dark"] .family-steps button{background:#1b1d22;color:var(--muted);border-color:#454b55}
html[data-theme="dark"] .family-steps button.active{background:#3d354b;color:var(--lavender-soft);box-shadow:inset 0 -3px 0 #c6b2e4}
html[data-theme="dark"] .family-steps button:not(.active):hover{background:var(--raised);color:var(--ink)}
html[data-theme="dark"] .family-demo-context{background:#2b2e35}
html[data-theme="dark"] .family-person-dot{background:var(--peach);color:#352a23;border-color:#b5967f}
html[data-theme="dark"] .family-demo-chip{color:var(--muted);border-color:var(--edge)}
html[data-theme="dark"] :is(.family-demo-context div>span,.family-role,.family-intro,.family-field small,.permission-option small,.family-titles>small,.family-request-permission small,.family-demo-note,.family-date>span,.family-slot time,.family-slot small,.family-request-card-top small,.family-reply>span,.family-sharing-key,.family-privacy-foot){color:var(--muted)}
html[data-theme="dark"] :is(.family-field input,.family-field select,.family-field textarea){background:var(--control);color:var(--ink);border-color:#727985}
html[data-theme="dark"] .permission-option:has(input:checked){background:#323c29;border-color:#8b9e62}
html[data-theme="dark"] :is(.permission-option input,.family-titles input,.family-request-permission input){accent-color:var(--lime)}
html[data-theme="dark"] .family-titles{background:var(--raised);border-color:var(--edge)}
html[data-theme="dark"] .family-preview{background:#372c27;border-color:#705645}
html[data-theme="dark"] :is(.family-preview-banner,.family-preview-empty){background:#49392f;border-color:#98765f;color:var(--peach-soft)}
html[data-theme="dark"] .family-shared-calendar{background:#23262c;border-color:#72675f;box-shadow:0 10px 28px #00000026}
html[data-theme="dark"] .family-date{border-color:var(--line)}
html[data-theme="dark"] .family-slot>div{background:#30343c;border-color:#727985}
html[data-theme="dark"] .family-slot.shared>div{background:var(--lime-deep);border-color:#627c32;color:#e2f7aa}
html[data-theme="dark"] .family-slot.free>div{background:transparent}
html[data-theme="dark"] :is(.family-preview-request,.family-explanation){background:var(--peach-deep);color:#ffdfc8;border-color:#936e53}
html[data-theme="dark"] :is(.family-invite-card,.family-success){background:var(--lime-deep);color:#e2f7aa;border-color:#627c32}
html[data-theme="dark"] .family-invite-policy{border-color:#627c32}
html[data-theme="dark"] .family-time-status{background:var(--lime-deep);color:#e2f7aa;border-color:#627c32}
html[data-theme="dark"] .family-time-status.conflict{background:var(--peach-deep);color:#ffdfc8;border-color:#936e53}
html[data-theme="dark"] .family-request-card{background:#292d34;border-color:#616976}
html[data-theme="dark"] :is(.family-request-note,.family-owner-checks){background:var(--raised)}
html[data-theme="dark"] :is(.request-presets button,.family-slot-picker button,.family-decline){background:var(--raised);border-color:var(--edge)}
html[data-theme="dark"] .request-presets button.selected{background:var(--lavender-deep);color:#e2d7fc;border-color:#78658e}
html[data-theme="dark"] .family-slot-picker button.selected{background:var(--lime-deep);color:#e2f7aa;border-color:#627c32;box-shadow:3px 3px 0 var(--shadow)}
html[data-theme="dark"] .family-decision-buttons>.solid-button:disabled{background:var(--raised);color:var(--muted);border-color:var(--edge)}

/* Calzy, plans, menu and booking dialogs receive the same theme treatment. */
html[data-theme="dark"] .chat-demo{background:#272a31;border-color:#62616f;box-shadow:var(--card-shadow)}
html[data-theme="dark"] .message.user{background:var(--lavender-deep);color:#e2d7fc;border-color:#74638c}
html[data-theme="dark"] .message.assistant{background:#343941;border-color:#5e6570}
html[data-theme="dark"] .message-kicker{color:var(--lime-soft)}
html[data-theme="dark"] .chat-options button{background:var(--raised);border-color:var(--edge)}
html[data-theme="dark"] :is(.chat-options button.active,.chat-options button:hover){background:var(--lime-deep);color:#e2f7aa;border-color:#627c32}
html[data-theme="dark"] .chat-action>small{color:var(--muted)}
html[data-theme="dark"] .pricing-section{background:#1d1f23;border-color:#444953}
html[data-theme="dark"] .pricing-heading .circled{color:var(--lime)}
html[data-theme="dark"] :is(.pricing-heading>p,.billing-note,.pricing-foot,.faq-list details p,.footer-top small,.footer-bottom,.booking-detail-row span:first-child,.dialog-demo-note){color:var(--muted)}
html[data-theme="dark"] .billing-toggle{border-color:var(--edge)}
html[data-theme="dark"] .billing-toggle button>span{background:#d6fa46;color:#151614}
html[data-theme="dark"] .price-card{background:#292d34;border-color:#585f6c;box-shadow:var(--card-shadow)}
html[data-theme="dark"] .price-card li{border-color:var(--line)}
html[data-theme="dark"] .price-card .block-button{box-shadow:4px 4px 0 var(--shadow)}
html[data-theme="dark"] .featured-plan{background:#313b26;border-color:#9db76a;box-shadow:inset 0 3px 0 var(--lime),0 16px 40px #00000030}
html[data-theme="dark"] .featured-plan :is(.price>b,.plan-heading h3){color:var(--lime)}
html[data-theme="dark"] .featured-plan .block-button{background:var(--lime);color:#151614;border-color:var(--lime);box-shadow:4px 4px 0 var(--shadow)!important}
html[data-theme="dark"] .plan-ribbon{background:var(--lime);color:#151614}
html[data-theme="dark"] .final-cta{background:#2b3323;border-block:1px solid #5d6d43}
html[data-theme="dark"] .final-cta .serif-word{color:var(--lime)}
html[data-theme="dark"] .final-right .block-button.large{box-shadow:6px 6px 0 var(--shadow)}
html[data-theme="dark"] .menu-dialog nav a{border-color:var(--line)}
html[data-theme="dark"] .booking-dialog{background:#2a2e35;border-color:#858d99;box-shadow:0 25px 80px #00000080}
html[data-theme="dark"] .booking-dialog .status-detail{background:var(--lime-deep);color:#e2f7aa;border-color:#627c32}
html[data-theme="dark"] dialog::backdrop{background:#0b0c10c9}

/* A restrained hierarchy: neutral structure, tinted contexts, solid action color. */
html[data-theme="dark"] .hero{background:#151618}
html[data-theme="dark"] :is(.industries,.faq-section){background:#17181b}
html[data-theme="dark"] .features-section{background:#1b1d21}
html[data-theme="dark"] .family-section{background:#191b1f}
html[data-theme="dark"] .calzy-section{background:#24212b;border-block:1px solid #494452}
html[data-theme="dark"] .site-footer{background:#121316}
html[data-theme="dark"] :is(.hero-top,.hero-scroll,.product-heading>.eyebrow){color:var(--muted)}
html[data-theme="dark"] .section-heading>p{color:#c1c4cc}
html[data-theme="dark"] .calzy-title .eyebrow{color:#c8b7e3}
html[data-theme="dark"] .life-copy>.eyebrow{color:#e8bda0}
html[data-theme="dark"] .team-copy>.eyebrow{color:#cbb9e6}
html[data-theme="dark"] .header-cta:hover,
html[data-theme="dark"] .hero-cta .block-button:hover,
html[data-theme="dark"] .final-right .block-button:hover{background:#e4ff7d;border-color:#e4ff7d}
html[data-theme="dark"] .theme-toggle:hover{color:var(--ink);background:#30343b}
html[data-theme="dark"] .calendar-toolbar{background:#22262c}
html[data-theme="dark"] .calendar-controls{padding-top:8px;background:#22262c}
html[data-theme="dark"] .calendar-scroll{padding-top:15px}
html[data-theme="dark"] .event:not(.outline){border-left:3px solid var(--event-accent);box-shadow:0 3px 10px #00000024}
html[data-theme="dark"] .event :is(small,span,em){color:var(--event-detail)}
html[data-theme="dark"] .event b{font-weight:600}
html[data-theme="dark"] .event:not(.outline):hover{box-shadow:0 6px 18px #00000040}
html[data-theme="dark"] .capacity-metrics>div:nth-child(2) strong{color:var(--lavender)}
html[data-theme="dark"] .capacity-metrics>div:nth-child(3) strong{color:var(--peach)}
html[data-theme="dark"] .space-inventory tbody tr:hover{background:#2b2f36}
html[data-theme="dark"] .inventory-add :is(input,select){background:var(--control);border-color:#727985}
html[data-theme="dark"] .stock-actions button:hover{background:#3d444f;border-color:#939caa}
html[data-theme="dark"] .swap-card:has(#approveSwap:disabled) .badge,
html[data-theme="dark"] #familyRequestBadge[data-status="accepted"]{background:var(--lime-deep);border-color:#8b9e62;color:var(--lime-soft)}
html[data-theme="dark"] #familyRequestBadge[data-status="proposed"]{background:var(--lavender-deep);border-color:#9884ae;color:var(--lavender-soft)}
html[data-theme="dark"] #familyRequestBadge:is([data-status="declined"],[data-status="revoked"]){background:#343942;border-color:#77808d;color:#d1d6df}
html[data-theme="dark"] .feature-payment .feature-top{color:var(--lime-soft)}
html[data-theme="dark"] .feature-forms .feature-top{color:var(--lavender)}
html[data-theme="dark"] .feature-booking .feature-top{color:var(--peach)}
html[data-theme="dark"] .chat-head{background:#30323c;border-color:#535565}
html[data-theme="dark"] .chat-options button{color:#c8cdd6}
html[data-theme="dark"] .chat-options button.active{color:var(--lime-soft)}
html[data-theme="dark"] .billing-toggle{border-color:#656c78}
html[data-theme="dark"] .billing-toggle button>span{background:#3f4c2b;color:var(--lime-soft)}
html[data-theme="dark"] .featured-plan .billing-note{color:#c3ceb1}
html[data-theme="dark"] .featured-plan li{border-color:#526140}
html[data-theme="dark"] .price-card:last-child .plan-heading h3{color:var(--lavender)}
html[data-theme="dark"] .family-slot.free>div{border-color:#a5af9c;color:var(--lime-soft)}
html[data-theme="dark"] .family-slot.free small{color:#becab1}
html[data-theme="dark"] .family-decline:hover{background:#3a414d;border-color:#a3acb9}
html[data-theme="dark"] .family-decline:disabled{background:var(--raised)}

@media(max-width:1100px){.header-actions{gap:12px}.theme-toggle{padding:8px}.theme-toggle>span{display:none}}
@media(max-width:520px){.header-actions{gap:10px}.theme-toggle{width:40px;min-width:40px;padding:8px;border-color:transparent}.site-header .chrona-master{width:120px}html[data-theme="dark"] .calendar-app{box-shadow:0 14px 32px #00000040}}
@media(max-width:370px){.site-header{gap:8px}.site-header .chrona-master{width:106px}.header-actions{gap:6px}.header-cta{padding:9px 8px;gap:5px}}
