/* Shared semantic colors for the public site and account workspaces. */
:root {
  color-scheme:light;
  --ui-select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23536b7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --ui-bg:#fff;--ui-paper:#f4f7fa;--ui-surface:#fff;--ui-raised:#fff;
  --ui-soft:#f3f7fa;--ui-tint:#eaf7f0;--ui-text:#0f2942;--ui-muted:#536b7f;
  --ui-border:#dce5eb;--ui-border-strong:#b5c7d3;--ui-accent-text:#14794c;
  --ui-primary:#168252;--ui-primary-hover:#116b43;--ui-selected:#0f2942;
  --ui-shadow:0 16px 48px #0f294212;--ui-hero-end:#edf7f1;
  --ui-success-bg:#eaf7ef;--ui-success-text:#196440;--ui-success-line:#bedfcf;
  --ui-warning-bg:#fff7e5;--ui-warning-text:#74551b;--ui-warning-line:#e9d5a8;
  --ui-danger-bg:#fff0f1;--ui-danger-text:#a12f40;--ui-danger-line:#edc4cc;
  --ui-info-bg:#edf5fc;--ui-info-text:#315a80;--ui-info-line:#c8dcec;
  --ink:var(--ui-text);--muted:var(--ui-muted);--border:var(--ui-border);--line:var(--ui-border);
  --soft:var(--ui-soft);--paper:var(--ui-paper);--mint:var(--ui-tint);
  --green-ink:var(--ui-accent-text);--green-dark:var(--ui-accent-text);
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --ui-select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a9bdce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --ui-bg:#091521;--ui-paper:#091521;--ui-surface:#112333;--ui-raised:#182f43;
  --ui-soft:#0d1c2a;--ui-tint:#102e29;--ui-text:#e7f0f7;--ui-muted:#a9bdce;
  --ui-border:#2a4154;--ui-border-strong:#577286;--ui-accent-text:#70dfaa;
  --ui-selected:#1a4a42;--ui-shadow:0 20px 48px #0004;--ui-hero-end:#102b2b;
  --ui-success-bg:#112f27;--ui-success-text:#91e4b6;--ui-success-line:#285642;
  --ui-warning-bg:#302b1d;--ui-warning-text:#f1d093;--ui-warning-line:#5e5130;
  --ui-danger-bg:#341f2a;--ui-danger-text:#ffafbc;--ui-danger-line:#644050;
  --ui-info-bg:#132d43;--ui-info-text:#a6d5ff;--ui-info-line:#315674;
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme]) {
    color-scheme:dark;
  --ui-select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a9bdce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --ui-bg:#091521;--ui-paper:#091521;--ui-surface:#112333;--ui-raised:#182f43;
    --ui-soft:#0d1c2a;--ui-tint:#102e29;--ui-text:#e7f0f7;--ui-muted:#a9bdce;
    --ui-border:#2a4154;--ui-border-strong:#577286;--ui-accent-text:#70dfaa;
    --ui-selected:#1a4a42;--ui-shadow:0 20px 48px #0004;--ui-hero-end:#102b2b;
    --ui-success-bg:#112f27;--ui-success-text:#91e4b6;--ui-success-line:#285642;
    --ui-warning-bg:#302b1d;--ui-warning-text:#f1d093;--ui-warning-line:#5e5130;
    --ui-danger-bg:#341f2a;--ui-danger-text:#ffafbc;--ui-danger-line:#644050;
    --ui-info-bg:#132d43;--ui-info-text:#a6d5ff;--ui-info-line:#315674;
  }
}
::selection {background:var(--ui-accent-text);color:var(--ui-bg);}
.theme-control:empty {display:none;}
.theme-control {position:relative;flex:0 0 auto;font:700 13px/1.4 Manrope,Arial,sans-serif;letter-spacing:0;color:var(--ui-text);}
.theme-picker {position:relative;}
.theme-picker>summary {display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;cursor:pointer;min-width:44px;height:44px;padding:10px 12px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);color:var(--ui-text);}
.theme-picker>summary::-webkit-details-marker {display:none;}
.theme-picker>summary:hover,.theme-picker[open]>summary {background:var(--ui-tint);border-color:var(--ui-border-strong);}
.theme-control svg {display:block;width:20px;height:20px;flex:0 0 20px;}
.theme-options {position:absolute;right:0;top:calc(100% + 10px);z-index:60;width:184px;max-width:calc(100vw - 32px);padding:6px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-raised);box-shadow:var(--ui-shadow);}
.theme-options button {display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--ui-text);font:inherit;text-align:left;cursor:pointer;}
.theme-options button:hover {background:var(--ui-soft);}
.theme-options button[aria-pressed="true"] {background:var(--ui-tint);color:var(--ui-accent-text);}
.theme-check {margin-left:auto;visibility:hidden;}
.theme-options button[aria-pressed="true"] .theme-check {visibility:visible;}
.theme-check svg {width:16px;height:16px;}
.theme-control :focus-visible {outline:2px solid var(--ui-accent-text);outline-offset:3px;}
@media(max-width:600px){.theme-control-label{display:none}.theme-picker>summary{padding:10px;width:44px}}
@media(forced-colors:active){.theme-options button[aria-pressed="true"]{outline:1px solid Highlight}.theme-picker>summary,.theme-options{border-color:ButtonText}}

select {background-image:var(--ui-select-arrow);}
@media(max-width:600px){
  .nav-actions,.header-right,.auth-header-actions {position:relative;}
  .nav-actions .theme-control,.nav-actions .theme-picker,.header-right .theme-control,.header-right .theme-picker,.auth-header-actions .theme-control,.auth-header-actions .theme-picker {position:static;}
}
