/* Calendar-aware surfaces. Brand, content and functional colours keep their roles. */
html[data-appearance-surface] {
  --ap-paper:#d4cde0; --ap-panel:#e2dbea; --ap-soft:#c1b5d3; --ap-ink:#272238;
  --ap-muted:#50445f; --ap-line:#9d91ad; --ap-accent:#55317e; --ap-on-accent:#fff;
  --ap-season:#86522c; --ap-scene:#f2e6d7; --ap-sky:#dce9ed;
  --ap-danger:#922b39; --ap-success:#24623f;
  color-scheme:light; scrollbar-color:var(--ap-muted) var(--ap-paper);
}
html[data-appearance-brand="lehmannit"] {--ap-accent:#294f09;--ap-soft:#b7c7aa;--ap-panel:#dce2d0;--ap-ink:#1c2923;--ap-muted:#3e5046;--ap-paper:#cbd3be;--ap-line:#8d9f86}
html[data-appearance-brand="itmitblick"] {--ap-paper:#c0d2d5;--ap-panel:#d6e0df;--ap-soft:#aec4cc;--ap-ink:#1a303a;--ap-muted:#3a525b;--ap-line:#7f9ca6;--ap-accent:#174c5b}
html[data-appearance-season="spring"] {--ap-season:#28563f;--ap-scene:#bed0bb;--ap-sky:#b3d0cc}
html[data-appearance-season="summer"] {--ap-season:#674b07;--ap-scene:#ddca99;--ap-sky:#adcbd5}
html[data-appearance-season="autumn"] {--ap-season:#733e1f;--ap-scene:#d8bba7;--ap-sky:#bec5c8}
html[data-appearance-season="winter"] {--ap-season:#2d506e;--ap-scene:#bacdd9;--ap-sky:#aec5d5}
html[data-appearance-scheme="dark"][data-appearance-surface] {
  --ap-paper:#100e1b;--ap-panel:#1d192c;--ap-soft:#29223c;--ap-ink:#f4effb;
  --ap-muted:#c7bed5;--ap-line:#655773;--ap-accent:#c3a8ff;--ap-on-accent:#241139;
  --ap-danger:#ffb4bf;--ap-success:#a6dfb9;color-scheme:dark;
}
html[data-appearance-scheme="dark"][data-appearance-brand="lehmannit"] {--ap-paper:#0b1412;--ap-panel:#15221d;--ap-soft:#23342b;--ap-ink:#f0f7ec;--ap-muted:#c0cebd;--ap-line:#546853;--ap-accent:#bdff3f;--ap-on-accent:#112006}
html[data-appearance-scheme="dark"][data-appearance-brand="itmitblick"] {--ap-paper:#0a1421;--ap-panel:#15283a;--ap-soft:#21394c;--ap-ink:#edf4f7;--ap-muted:#bfced5;--ap-line:#526f81;--ap-accent:#89d4dc;--ap-on-accent:#102936}
html[data-appearance-scheme="dark"][data-appearance-season="spring"] {--ap-season:#a0d9b7;--ap-scene:#1d342c;--ap-sky:#172a31}
html[data-appearance-scheme="dark"][data-appearance-season="summer"] {--ap-season:#f0d88f;--ap-scene:#343022;--ap-sky:#172a38}
html[data-appearance-scheme="dark"][data-appearance-season="autumn"] {--ap-season:#efbc95;--ap-scene:#382821;--ap-sky:#242637}
html[data-appearance-scheme="dark"][data-appearance-season="winter"] {--ap-season:#b3d9f1;--ap-scene:#24303d;--ap-sky:#172334}
html[data-appearance-surface] body {background:var(--ap-paper);color:var(--ap-ink)}
html[data-appearance-surface] ::selection {background:var(--ap-accent);color:var(--ap-on-accent)}
html[data-appearance-surface] :focus-visible {outline-color:var(--ap-accent)}
html[data-appearance-surface] :is(input,textarea,select) {caret-color:var(--ap-accent)}
.season-mark {width:52px;height:52px;color:var(--ap-season);display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.season-mark>g {display:none}
[data-appearance-season="spring"] .season-mark>.spring,[data-appearance-season="summer"] .season-mark>.summer,[data-appearance-season="autumn"] .season-mark>.autumn,[data-appearance-season="winter"] .season-mark>.winter {display:block}

/* The two existing service websites share their original component structure. */
html[data-appearance-surface="marketing"] {--text:var(--ap-ink);--muted:var(--ap-muted);--muted-2:var(--ap-muted);--lime:var(--ap-accent);--line:var(--ap-line);--panel:var(--ap-panel);--panel-2:var(--ap-soft);--bg:var(--ap-paper);--bg-2:var(--ap-panel);--lime-soft:var(--ap-soft)}
html[data-appearance-surface="marketing"] .site-header {background:var(--ap-paper);border-color:var(--ap-line)}
html[data-appearance-surface="marketing"] .main-nav {background:transparent}
html[data-appearance-surface="marketing"] :is(.brand-easy,.brand-it,.service-area-note strong) {color:var(--ap-ink)}
html[data-appearance-surface="marketing"] :is(.brand-peasy,.lang-switch a.active,.sc-home-link a,.sc-size-links a,.sc-tap-link) {color:var(--ap-accent)}
html[data-appearance-surface="marketing"] .brand-mark:not(.ep-brand-mark) {color:var(--ap-on-accent)}
html[data-appearance-surface="marketing"] :is(.ep-hero,.hero-friendly) {background:linear-gradient(135deg,var(--ap-paper) 38%,var(--ap-scene))}
html[data-appearance-surface="marketing"] :is(.ep-copy h1 em,h1 em,h2 em,.hero-friendly h1 em,.services-intro h2 em) {color:var(--ap-accent);background:none;-webkit-text-fill-color:currentColor}
html[data-appearance-surface="marketing"] :is(.ep-answer,.hero-friendly h1>span,.choice-copy strong,.service-card strong,.sc-item-copy h3,.sc-basket-lines strong,.sc-basket-total strong,.sc-quantity span,.sc-price-line strong,.sc-help-grid h3) {color:var(--ap-ink)}
html[data-appearance-surface="marketing"] :is(p,small,.ep-intro,.ep-signature,.ep-story,.ep-release,.ep-secondary,.hero-lead,.hero-focus,.assurance-line,.brand-copy small,.route-copy small,.step-copy p,.risk-reversal span,.problem-map small,.proof-lines small,.contact-promise small,.service-card small,.services-cta small,.site-footer a,.site-footer span,.site-footer p,.legal-card p,.legal-card li,.service-area-note,.chaos-status,.sc-page li,.sc-item-action small,.sc-basket-lines small,.sc-price-line span) {color:var(--ap-muted)}
html[data-appearance-surface="marketing"] :is(.main-nav a,.text-link,.ep-quick a,.legal-card a,.privacy-note a,.sc-item-action strong,.sc-add,.sc-remove,.sc-contact-selection a,.sc-catalog-status) {color:var(--ap-accent)}
html[data-appearance-surface="marketing"] :is(.contact-form,.contact-form input,.contact-form textarea,.request-type label>span,.legal-card,.service-card,.hero-choice-tech,.sc-basket,.bot-bubble,.bot-chip,.float-chip,.notice-dialog,.notice-box) {background:var(--ap-panel);color:var(--ap-ink);border-color:var(--ap-line)}
html[data-appearance-surface="marketing"] :is(.contact-form label>span,.contact-form legend,.choice-copy small,.request-type small,.callback-toggle small,.email-display) {color:var(--ap-muted)}
html[data-appearance-surface="marketing"] :is(input,textarea)::placeholder {color:var(--ap-muted);opacity:1}
html[data-appearance-surface="marketing"] :is(.btn-primary,.ep-actions .btn,.skip-link,.chaos-start,.sc-cart-jump,.sc-filter[aria-pressed="true"]) {background:var(--ap-accent);color:var(--ap-on-accent)}
html[data-appearance-surface="marketing"] .hero-choice-simple {background:var(--ap-accent);color:var(--ap-on-accent)}
html[data-appearance-surface="marketing"] .hero-choice.hero-choice-simple .choice-copy :is(strong,small,.choice-kicker) {color:var(--ap-on-accent);opacity:1}
html[data-appearance-surface="marketing"] .hero-choice.hero-choice-tech .choice-copy :is(strong,.choice-kicker) {color:var(--ap-ink)}
html[data-appearance-surface="marketing"] .hero-choice.hero-choice-tech .choice-copy small {color:var(--ap-muted);opacity:1}
html[data-appearance-surface="marketing"] :is(.hero-choice-tech:hover,.service-card:hover,.request-type input:checked+span,.sc-add:hover:not(:disabled),.sc-filter:hover) {background:var(--ap-soft);border-color:var(--ap-accent);color:var(--ap-ink)}
html[data-appearance-surface="marketing"] :is(.sc-filter,.sc-quantity button,.chaos-reset,.copy-email,.assist-chip) {color:var(--ap-accent);border-color:var(--ap-line);background:var(--ap-panel)}
html[data-appearance-surface="marketing"] .menu-toggle span {background:var(--ap-ink)}
html[data-appearance-surface="marketing"] .season-mark {position:absolute;right:5%;top:3%;width:64px;height:64px;z-index:3}
html[data-appearance-surface="marketing"] .ep-world .season-mark {right:20%;top:0}
html[data-appearance-surface="marketing"] .ep-motion {color:var(--ap-muted);border-color:var(--ap-muted)}
html[data-appearance-surface="marketing"] .success-panel {background:var(--ap-soft);color:var(--ap-success)}
html[data-appearance-surface="marketing"] .success-panel strong {color:var(--ap-success)}
html[data-appearance-surface="marketing"] .error-panel {color:var(--ap-danger);background:var(--ap-panel)}

/* Staging's quieter existing design and the private tracker. Map imagery is not altered. */
html[data-appearance-surface="simple"],html[data-appearance-surface="tracker"] {--paper:var(--ap-paper);--ink:var(--ap-ink);--muted:var(--ap-muted);--accent:var(--ap-accent);--accent-dark:var(--ap-accent);--soft:var(--ap-soft);--line:var(--ap-line);--success:var(--ap-success);--danger:var(--ap-danger);background:var(--ap-paper);color:var(--ap-ink)}
html[data-appearance-surface="simple"] :is(.contact-form,.contact-form input,.contact-form textarea,.request-type label>span,.legal-card) {background:var(--ap-panel);color:var(--ap-ink);border-color:var(--ap-line)}
html[data-appearance-surface="simple"] :is(.btn-primary,.skip-link),html[data-appearance-surface="tracker"] :is(.button-primary,.checkpoint-list li:first-child .checkpoint-number) {color:var(--ap-on-accent);background:var(--ap-accent)}
html[data-appearance-surface="simple"] .season-mark {margin-bottom:20px}
html[data-appearance-surface="tracker"] .heading-row .season-mark {width:38px;height:38px;margin-bottom:12px}
html[data-appearance-surface="tracker"] :is(.button-secondary:hover:not(:disabled),.checkpoint:hover,.checkpoint[aria-pressed="true"]) {background:var(--ap-soft)}
html[data-appearance-surface="tracker"] :is(.map-fit,.map-fit:hover:not(:disabled),.skip-link) {background:var(--ap-panel);color:var(--ap-ink)}
html[data-appearance-surface="tracker"] .map-empty {color:#242e3a}
html[data-appearance-surface="tracker"] .empty-marker {color:#5142a0}
html[data-appearance-surface="tracker"] .button-danger {background:#9e2b3c;color:#fff;border-color:#9e2b3c}
html[data-appearance-surface="tracker"] .storage-state:is([data-state="offline"],[data-state="saving"]) {color:var(--ap-season)}

/* Survey: keep its friendly characters and use the existing scene/motion budget. */
html[data-appearance-surface="survey"] {--paper:var(--ap-paper);--white:var(--ap-panel);--ink:var(--ap-ink);--muted:var(--ap-muted);--purple:var(--ap-accent);--purple-deep:var(--ap-accent);--lavender:var(--ap-soft);--line:var(--ap-line);--control-border:var(--ap-muted);--on-action:var(--ap-on-accent);--error:var(--ap-danger);--success:var(--ap-success)}
html[data-appearance-surface="survey"] body {background:var(--ap-paper)}
html[data-appearance-surface="survey"] :is(.activity,.help-link,.idea-card,textarea,.help-dialog,.help-panel,.skip-link,.saved-choice) {background:var(--ap-panel);color:var(--ap-ink);border-color:var(--ap-line)}
html[data-appearance-surface="survey"] :is(.activity-name,.success-panel h2,.help-panel summary,.help-default) {color:var(--ap-ink)}
html[data-appearance-surface="survey"] textarea::placeholder {color:var(--ap-muted)}
html[data-appearance-surface="survey"] :is(.activity:hover,.activity:has(input:checked),.secondary-button) {background:var(--ap-soft);border-color:var(--ap-accent);color:var(--ap-accent)}
html[data-appearance-surface="survey"] .submit-bar {background:var(--ap-paper);border-color:var(--ap-line)}
html[data-appearance-surface="survey"] :is(.primary-button,.primary-button:hover:not(:disabled),.primary-button[aria-busy=true],.activity:has(input:checked) .choice-check) {background:var(--ap-accent);color:var(--ap-on-accent);border-color:var(--ap-accent)}
html[data-appearance-surface="survey"] .primary-button:disabled {background:var(--ap-soft);color:var(--ap-muted)}
html[data-appearance-surface="survey"] :is(.text-button,.brand) {color:var(--ap-accent)}
html[data-appearance-surface="survey"] :is(.error,.connection-notice) {background:var(--ap-panel);color:var(--ap-danger)}
html[data-appearance-surface="survey"] .haunt-stage {background:var(--ap-sky)}
html[data-appearance-surface="survey"] .haunt-moon span {background:var(--ap-sky)}
html[data-appearance-surface="survey"][data-appearance-scheme="light"] .haunt-moon span {display:none}
html[data-appearance-surface="survey"][data-appearance-scheme="light"] .haunt-moon {background:#f6ce63;opacity:1}
html[data-appearance-surface="survey"]:not([data-appearance-season="autumn"]) :is(.haunt-bat,.haunt-companions) {display:none}
html[data-appearance-surface="survey"][data-appearance-season="spring"] .haunt-leaf {background:#eeb5cc;border-radius:60% 40%;width:12px;height:12px}
html[data-appearance-surface="survey"][data-appearance-season="summer"] .haunt-leaf {background:#8fba67;border-radius:0 70%}
html[data-appearance-surface="survey"][data-appearance-season="winter"] .haunt-leaf {background:#edf7ff;width:7px;height:7px;border-radius:50%}
html[data-appearance-surface="survey"][data-appearance-season="winter"] .forest-near {border-bottom:16px solid #e3eef3;border-radius:0 0 50% 30%}
html[data-appearance-surface="survey"] .season-mark {position:absolute;right:20px;top:20px;width:42px;height:42px}

/* Existing holding pages: truthful content, seasonal window and quiet frame. */
html[data-appearance-surface="holding"] {--night:var(--ap-paper);--ink:var(--ap-ink);--mute:var(--ap-muted);--sea:var(--ap-accent);--sun:var(--ap-season)}
html[data-appearance-surface="holding"] #sky stop:first-child {stop-color:var(--ap-sky)}
html[data-appearance-surface="holding"] #sky stop:last-child {stop-color:var(--ap-scene)}
html[data-appearance-surface="holding"] .sun {fill:var(--ap-season)}
html[data-appearance-surface="holding"] figure>svg>path {stroke:var(--ap-ink)}
html[data-appearance-surface="holding"] footer {color:var(--ap-muted)}
html[data-appearance-surface="holding"] .season-mark {width:46px;height:46px;margin:18px auto 0}
html[data-appearance-surface="placeholder"] body {min-height:100vh;margin:0;display:grid;place-items:center;border-top:6px solid var(--ap-season)}
html[data-appearance-surface="placeholder"] img {max-width:100%;height:auto}
html[data-appearance-surface="placeholder"] center {padding:28px;max-width:100%;box-sizing:border-box}
html[data-appearance-surface="placeholder"] .season-mark {margin:0 auto 18px}

@media (max-width:1030px) {html[data-appearance-surface="marketing"] .main-nav{background:var(--ap-panel)}}
@media (max-width:600px) {html[data-appearance-surface="marketing"] .season-mark {width:42px;height:42px;right:4%;top:1%}html[data-appearance-surface="marketing"] .ep-world .season-mark{right:14%}}
@media (prefers-reduced-motion:reduce) {.season-mark{animation:none}html[data-appearance-surface] *{transition-duration:.001ms!important}}
html[data-appearance-motion="reduced"] :is(.ambient-particles,.ep-hero,.haunt-art,.hero-visual) * {animation:none!important}
html[data-appearance-contrast="more"][data-appearance-surface] {--ap-line:var(--ap-ink);--ap-muted:var(--ap-ink)}
@media (forced-colors:active) {
  html[data-appearance-surface] {--ap-paper:Canvas;--ap-panel:Canvas;--ap-soft:Canvas;--ap-ink:CanvasText;--ap-muted:CanvasText;--ap-line:CanvasText;--ap-accent:LinkText;--ap-on-accent:Canvas;--ap-danger:CanvasText;--ap-success:CanvasText;color-scheme:light dark}
  .season-mark{display:none}html[data-appearance-surface] :is(.ep-hero,.hero-friendly,.haunt-stage){background:Canvas}
}
