/* WHOOK appearance. Loaded after app.css; photographs and brand artwork retain
   their original colours. System mode also works without JavaScript. */
:root {
    color-scheme:light;
    --theme-surface:#fff;
    --theme-input:#fff;
    --theme-input-border:#c2d3e9;
    --theme-input-hover:#94afd5;
    --theme-placeholder:#7e91af;
    --theme-soft-border:#e2eaf5;
    --theme-header-border:#edf2f9;
    --theme-label:#001860;
    --theme-quiet:#7388a8;
    --theme-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001860' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --theme-info-bg:#eef7ff;--theme-info-text:#193a71;--theme-info-border:#b8d7f7;
    --theme-success-bg:#edf9f3;--theme-success-text:#115c42;--theme-success-border:#b9e4ce;
    --theme-error-bg:#fff1f2;--theme-error-text:#92273c;--theme-error-border:#efbdc6;
    --theme-warning-bg:#fff9eb;--theme-warning-text:#7b5915;--theme-warning-border:#ead69f;
    --theme-neutral-bg:#edf1f6;--theme-neutral-text:#586b89;
    --theme-paid-bg:#e1f6ec;--theme-paid-text:#12694b;
    --theme-unpaid-bg:#fff4d9;--theme-unpaid-text:#866018;
    --theme-production-bg:#e8edff;--theme-production-text:#254da0;
    --theme-dispatch-bg:#f0eaff;--theme-dispatch-text:#5c3ca0;
    --theme-delivery-bg:#dff5ff;--theme-delivery-text:#086485;
    --theme-delivered-bg:#dcf4e7;--theme-delivered-text:#156145;
    --theme-cancelled-bg:#fce9ed;--theme-cancelled-text:#9d3048;
    --theme-refunded-bg:#f1eafa;--theme-refunded-text:#68418c;
    --theme-new-bg:#e0eeff;--theme-read-bg:#f0f3f7;--theme-read-text:#657491;
    --theme-filter-bg:#f1f7ff;--theme-filter-border:#97befa;--theme-filter-count:#dfeeff;
    --theme-step-text:#8292ab;--theme-step-border:#d6e1f0;--theme-step-line:#e2eaf4;
    --theme-complete-border:#9dd5ba;--theme-complete-line:#a5d7c0;
    --theme-current-bg:#e8f1ff;
    --theme-choose:#e8f2ff;--theme-details:#f0f5fc;--theme-tap:#e5f6ff;--theme-stage:#dceeff;
    --theme-orbit:#a8ccf2;--theme-ring:#b4ddf7;
    --theme-social-hover:#ccecff;--theme-social-border:#d8e9f8;
}

:root[data-theme="dark"] {
    color-scheme:dark;
    --white:#0a1222;--paper:#0d182b;--ice:#172d49;
    --ink:#edf4ff;--muted:#b3c5df;--line:#314661;
    --royal:#88bdff;--electric:#59cbff;--danger:#ffbac4;--success:#92e8c2;
    --shadow:0 14px 44px rgba(0,0,0,.24);
    --theme-surface:#111e34;--theme-input:#0c172a;
    --theme-input-border:#58718f;--theme-input-hover:#96baff;--theme-placeholder:#9cb0cb;
    --theme-soft-border:#344b69;--theme-header-border:#314661;
    --theme-label:#edf4ff;--theme-quiet:#a7bcd6;
    --theme-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edf4ff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --theme-info-bg:#142e48;--theme-info-text:#c4e4ff;--theme-info-border:#426c91;
    --theme-success-bg:#15392e;--theme-success-text:#acf0d0;--theme-success-border:#3d725d;
    --theme-error-bg:#402333;--theme-error-text:#ffc5cf;--theme-error-border:#915365;
    --theme-warning-bg:#3b3019;--theme-warning-text:#ffe1a0;--theme-warning-border:#8a713b;
    --theme-neutral-bg:#26364d;--theme-neutral-text:#d2dff0;
    --theme-paid-bg:#15392e;--theme-paid-text:#acf0d0;
    --theme-unpaid-bg:#3b3019;--theme-unpaid-text:#ffe1a0;
    --theme-production-bg:#1d3052;--theme-production-text:#b9d2ff;
    --theme-dispatch-bg:#332749;--theme-dispatch-text:#e0c5ff;
    --theme-delivery-bg:#13394b;--theme-delivery-text:#9eeaff;
    --theme-delivered-bg:#15392e;--theme-delivered-text:#acf0d0;
    --theme-cancelled-bg:#402333;--theme-cancelled-text:#ffc5cf;
    --theme-refunded-bg:#332749;--theme-refunded-text:#e0c5ff;
    --theme-new-bg:#1b3253;--theme-read-bg:#26364d;--theme-read-text:#cad8eb;
    --theme-filter-bg:#193252;--theme-filter-border:#6298d9;--theme-filter-count:#23446d;
    --theme-step-text:#a8bad3;--theme-step-border:#58718f;--theme-step-line:#314661;
    --theme-complete-border:#45836b;--theme-complete-line:#376f5a;
    --theme-current-bg:#1b3253;
    --theme-choose:#122a45;--theme-details:#14253d;--theme-tap:#102f43;--theme-stage:#112b45;
    --theme-orbit:#355574;--theme-ring:#3b6989;
    --theme-social-hover:#224766;--theme-social-border:#3d5d7c;
}

@media (prefers-color-scheme:dark) {
    :root:not([data-theme]) {
        color-scheme:dark;
        --white:#0a1222;--paper:#0d182b;--ice:#172d49;
        --ink:#edf4ff;--muted:#b3c5df;--line:#314661;
        --royal:#88bdff;--electric:#59cbff;--danger:#ffbac4;--success:#92e8c2;
        --shadow:0 14px 44px rgba(0,0,0,.24);
        --theme-surface:#111e34;--theme-input:#0c172a;
        --theme-input-border:#58718f;--theme-input-hover:#96baff;--theme-placeholder:#9cb0cb;
        --theme-soft-border:#344b69;--theme-header-border:#314661;
        --theme-label:#edf4ff;--theme-quiet:#a7bcd6;
        --theme-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edf4ff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        --theme-info-bg:#142e48;--theme-info-text:#c4e4ff;--theme-info-border:#426c91;
        --theme-success-bg:#15392e;--theme-success-text:#acf0d0;--theme-success-border:#3d725d;
        --theme-error-bg:#402333;--theme-error-text:#ffc5cf;--theme-error-border:#915365;
        --theme-warning-bg:#3b3019;--theme-warning-text:#ffe1a0;--theme-warning-border:#8a713b;
        --theme-neutral-bg:#26364d;--theme-neutral-text:#d2dff0;
        --theme-paid-bg:#15392e;--theme-paid-text:#acf0d0;
        --theme-unpaid-bg:#3b3019;--theme-unpaid-text:#ffe1a0;
        --theme-production-bg:#1d3052;--theme-production-text:#b9d2ff;
        --theme-dispatch-bg:#332749;--theme-dispatch-text:#e0c5ff;
        --theme-delivery-bg:#13394b;--theme-delivery-text:#9eeaff;
        --theme-delivered-bg:#15392e;--theme-delivered-text:#acf0d0;
        --theme-cancelled-bg:#402333;--theme-cancelled-text:#ffc5cf;
        --theme-refunded-bg:#332749;--theme-refunded-text:#e0c5ff;
        --theme-new-bg:#1b3253;--theme-read-bg:#26364d;--theme-read-text:#cad8eb;
        --theme-filter-bg:#193252;--theme-filter-border:#6298d9;--theme-filter-count:#23446d;
        --theme-step-text:#a8bad3;--theme-step-border:#58718f;--theme-step-line:#314661;
        --theme-complete-border:#45836b;--theme-complete-line:#376f5a;
        --theme-current-bg:#1b3253;
        --theme-choose:#122a45;--theme-details:#14253d;--theme-tap:#102f43;--theme-stage:#112b45;
        --theme-orbit:#355574;--theme-ring:#3b6989;
        --theme-social-hover:#224766;--theme-social-border:#3d5d7c;
    }
}

/* The mode selector is a native control, usable with keyboard and touch. */
.theme-control{display:none;align-items:center;gap:8px;flex-shrink:0;font-size:.875rem;font-weight:600;color:var(--theme-label);white-space:nowrap;margin:0}
.theme-ready .theme-control{display:inline-flex}
.theme-control select{width:100px;min-width:0;min-height:42px;font-size:.875rem;padding:9px 29px 9px 10px;border-radius:9px;background-position:right 9px center;background-size:14px;line-height:1.4}
.theme-control select:focus-visible{outline:2px solid var(--electric);outline-offset:3px}
.theme-control .icon{width:18px;height:18px}
.header-tools{display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0}
.nav-bar{gap:22px}
.workspace-topbar .theme-control{margin-left:auto}
.workspace-topbar .topbar-title{min-width:0}
.profile-site-header .header-tools .text-link{margin-left:5px}
.setup-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:25px}
.setup-tools>.brand{font-family:var(--font-heading);font-size:2rem;font-weight:850;letter-spacing:-.075em;line-height:1;margin:0}
.sharing-preview{display:block;width:100%;max-width:480px;height:auto;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:12px;margin-top:12px}

/* Surface and text substitutions preserve the original light appearance. */
.site-header,.site-nav,.sidebar,.workspace-topbar,.panel,.card,.stat-card,.auth-card,
.public-profile,.store-header,.product-card,.message-card,table,.data-table,
.pricing-card.featured,.detail-line,.feature-icon,.skip-link{background-color:var(--theme-surface)}
.site-header{border-bottom-color:var(--theme-header-border)}
.feature-card{border-color:var(--theme-soft-border)}
.journey-icon{border-color:var(--theme-soft-border)}
.nav-toggle{background:var(--theme-surface);color:var(--theme-label)}
.text-link,.brand-text,.connection-strip strong,.contact-shortcuts strong,
.field>label,form>label,.control-label,.profile-avatar.placeholder,
.social-icons>a,.icon-link,.profile-footer strong,.profile-credit a,
.product-content>.product-price,.product-content>.price,
.order-filter-chips>a>strong,.tracking-reference>code,.tracking-courier strong,
.tracking-step.is-completed,.account-identity>strong{color:var(--theme-label)}
.price,.tracking-summary{color:var(--theme-label)!important}
.workspace-label,.sidebar-bottom>p,.workspace-footer{color:var(--theme-quiet)}
.brand img{background:#fff;padding:5px;border-radius:7px}
.brand,.brand:hover{color:var(--theme-label)}
.brand-preview,.image-preview,.artwork-preview{background:#fff}
.footer-brand .brand-text{color:#001860}

.btn.secondary,.btn-secondary,.button-secondary{background:var(--theme-surface);color:var(--theme-label)}
.btn.secondary:hover,.btn-secondary:hover,.button-secondary:hover{background:var(--ice);color:var(--theme-label);border-color:var(--theme-input-hover)}
.btn.ghost:hover,.btn-ghost:hover,.side-nav>a:hover{color:var(--theme-label)}
.btn.danger,.btn-danger,.btn.danger:hover,.btn-danger:hover{background:var(--theme-error-bg);color:var(--theme-error-text);border-color:var(--theme-error-border)}
.badge,.status{color:var(--theme-label)}
.badge.neutral{background:var(--theme-neutral-bg);color:var(--theme-neutral-text)}
.status.unpaid,.status-unpaid,.badge.unpaid{background:var(--theme-unpaid-bg);color:var(--theme-unpaid-text)}
.status.paid,.status-paid,.badge.paid,.status.active{background:var(--theme-paid-bg);color:var(--theme-paid-text)}
.status.preparing,.status-preparing,.badge.preparing{background:var(--theme-production-bg);color:var(--theme-production-text)}
.status.ready_for_dispatch,.status-ready_for_dispatch{background:var(--theme-dispatch-bg);color:var(--theme-dispatch-text)}
.status.shipped,.status-shipped,.badge.shipped,.status.out_for_delivery,.status-out_for_delivery{background:var(--theme-delivery-bg);color:var(--theme-delivery-text)}
.status.delivered,.status-delivered{background:var(--theme-delivered-bg);color:var(--theme-delivered-text)}
.status.cancelled,.status-cancelled,.badge.cancelled{background:var(--theme-cancelled-bg);color:var(--theme-cancelled-text)}
.status.refunded,.status-refunded,.badge.refunded{background:var(--theme-refunded-bg);color:var(--theme-refunded-text)}
.status.new,.badge.new{background:var(--theme-new-bg);color:var(--royal)}
.status.read,.badge.read{background:var(--theme-read-bg);color:var(--theme-read-text)}

input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]),select,textarea,.control{background-color:var(--theme-input);border-color:var(--theme-input-border);color:var(--theme-label)}
input:hover,select:hover,textarea:hover{border-color:var(--theme-input-hover)}
input:focus,select:focus,textarea:focus,.control:focus{border-color:var(--royal)}
input::placeholder,textarea::placeholder{color:var(--theme-placeholder)}
input[type=color]{background:var(--theme-input)}
input[type=file]::file-selector-button{color:var(--theme-label)}
select{background-image:var(--theme-select-chevron)}
select option{background:var(--theme-input);color:var(--theme-label)}
.upload-field input{background:var(--theme-input)!important}
.upload-field{border-color:var(--theme-input-border)}
input:-webkit-autofill{-webkit-text-fill-color:var(--theme-label);-webkit-box-shadow:0 0 0 1000px var(--theme-input) inset}
.notice,.alert{background:var(--theme-info-bg);color:var(--theme-info-text);border-color:var(--theme-info-border)}
.notice.success,.alert-success,.alert.success{background:var(--theme-success-bg);color:var(--theme-success-text);border-color:var(--theme-success-border)}
.notice.error,.alert-error,.alert.error,.alert-danger{background:var(--theme-error-bg);color:var(--theme-error-text);border-color:var(--theme-error-border)}
.notice.warning,.alert-warning,.alert.warning{background:var(--theme-warning-bg);color:var(--theme-warning-text);border-color:var(--theme-warning-border)}
.notice .text-link,.alert .text-link{color:inherit}

/* Keep product illustrations on their intended light artwork surfaces. */
.phone-screen,.physical-card{--ink:#001860;--muted:#4d6488;--royal:#0058f8;--ice:#e7f3fc;--line:#d5e4f4;color:#001860}
.phone-screen .mock-powered strong{color:#001860}
.mini-card.three{color:#001860}
.team-card-stack,.colour-swatches{--royal:#0058f8}
.choose-visual{background:var(--theme-choose)}
.details-visual{background:var(--theme-details)}
.tap-visual{background:var(--theme-tap)}
.product-stage{background:var(--theme-stage)}
.product-orbit{border-color:var(--theme-orbit)}
.tap-ring,.tap-ring::after{border-color:var(--theme-ring)}
.feature-large .feature-icon{background:#ffffff12;border-color:#5d7aae66;color:var(--cyan)}
.profile-avatar{border-color:var(--theme-surface)}
.social-icons>a,.icon-link{border-color:var(--theme-social-border)}
.social-icons>a:hover,.icon-link:hover{background:var(--theme-social-hover)}
.timeline>li::before,.order-timeline>li::before{border-color:var(--theme-surface)}
.checklist>li>span[aria-label=Complete]{color:var(--theme-paid-text);background:var(--theme-paid-bg)}
.order-filter-chips>a{background:var(--theme-surface)}
.order-filter-chips>a[aria-current=page]{background:var(--theme-filter-bg);border-color:var(--theme-filter-border)}
.order-filter-chips>a[aria-current=page]>strong{background:var(--theme-filter-count)}
.tracking-step{color:var(--theme-step-text)}
.tracking-step::before{background:var(--theme-step-line)}
.tracking-step-marker{background:var(--theme-surface);border-color:var(--theme-step-border)}
.tracking-step.is-completed .tracking-step-marker{background:var(--theme-paid-bg);border-color:var(--theme-complete-border);color:var(--theme-paid-text)}
.tracking-step.is-completed::before{background:var(--theme-complete-line)}
.tracking-step.is-current{color:var(--royal)}
.tracking-step.is-current>div>span{background:var(--theme-current-bg)}
.tracking-step.is-current .tracking-step-marker:not(:empty){background:var(--theme-paid-bg);color:var(--theme-paid-text)}

@media (max-width:1180px){.nav-bar{gap:16px}.site-nav{gap:16px}.theme-control{gap:6px}.theme-control select{width:94px}}
@media (min-width:1001px) and (max-width:1180px){.site-nav{font-size:.85rem}.site-nav>.btn{padding-inline:13px}}
@media (max-width:760px){
    .nav-bar{gap:12px}
    .header-tools{gap:10px}
    .theme-control{gap:6px;font-size:.875rem}
    .theme-control select{width:94px;min-height:42px}
    .theme-ready .workspace-topbar{height:auto;min-height:73px;flex-wrap:wrap;padding-block:12px;gap:10px 12px}
    .theme-ready .workspace-topbar>.topbar-title{display:none}
    .theme-ready .workspace-topbar>.account-chip{margin-left:0;flex:1 1 150px;max-width:none}
    .theme-ready .workspace-topbar .account-chip>.account-identity{max-width:none}
    .theme-ready .workspace-topbar>.theme-control{margin-left:auto}
    .theme-ready .sidebar{top:var(--whook-topbar-height,73px);height:calc(100vh - var(--whook-topbar-height,73px))}
}
@media (max-width:440px){
    .header-tools{gap:8px}
    .theme-control{gap:5px}
    .theme-control select{width:87px;padding-left:9px}
    .theme-ready .workspace-topbar .account-chip>.icon{display:none}
    .theme-ready .workspace-topbar .account-chip>.account-identity>small{white-space:normal}
}

/* Printed orders remain dark text on paper whichever mode is selected. */
@media print {
    :root,:root[data-theme="dark"],:root:not([data-theme]){color-scheme:light;--white:#fff;--paper:#f7fafc;--ice:#e7f3fc;--ink:#001860;--muted:#4d6488;--line:#d5e4f4;--royal:#0058f8;--theme-surface:#fff;--theme-label:#001860;--theme-step-text:#4d6488;--theme-step-line:#d5e4f4;--theme-step-border:#8191aa}
    .theme-control,.header-tools{display:none!important}
    .badge,.status,.notice,.alert,.tracking-step-marker,.tracking-step.is-current>div>span{background:white!important;color:#001860!important;border-color:#8091aa!important}
    .tracking-step,.tracking-step.is-current,.tracking-step.is-completed,.tracking-step.is-completed>div>span{color:#001860}
}
