
  
  :root {
    --bg:       #f7f7fb;
    --surface:  #f7f7fb;
    --card:     #ffffff;
    --grey:     #EBE9F2;
    --border:   #E2DFEC;
    --field-bd: #DEDBE7;
    --accent:   #4F3787;
    --accent2:  #644AA6;
    --text:     #1d1d1f;
    --text-2:   #55555a;
    --muted:    #636369;
    --success:  #2E7D32;
    --error:    #c0392b;
    --warn:     #F5973D;
    --pair-a:   #68421F;
    --pair-b:   #0D5E5E;
    --pair-a-bg: rgba(104,66,31,.12);
    --pair-b-bg: rgba(13,94,94,.12);
    --gold:     #c9a84a;
    --r-pill:   999px;
    --r-field:  12px;
    --r-card:   20px;
    --r-inner:  12px;
    --r-sheet:  24px;
    --font-ui:  var(--font-sym), 'Segoe UI', system-ui, sans-serif;
    --font-sym: 'AB Symbols';
    --glyph:    var(--accent);
    --shadow:   0 4px 24px rgba(79,55,135,0.10);
    --card-shadow: 0 1px 3px rgba(79,55,135,0.04);
    --accent-hover: #3C2566;
    --hover-lav:    #E1DFEA;
    --error-bg:  #fdecec;  --error-bd:  #f5b5b5;
    --warn-bg:   #fff6e5;  --warn-bd:   #f0d9a8;  --warn-fg: #7a5a1e;
    --info-bg:   #eef1ff;  --info-bd:   #c9d2f5;  --info-fg: #2f3a7a;
    --badge-bg:  #fff1e0;  --badge-fg:  #a25b12;  --medal:   #c8961e;
    --fire:  #DC0600;  --fire-bg:  #fdeceb;
    --earth: #198800;  --earth-bg: #e4f2e0;
    --air:   #FA8C00;  --air-bg:   #fdeed6;
    --water: #474B84;  --water-bg: #e6e7f0;
    --c-portrait:  #4F3787;
    --c-relations: #DD5770;
    --c-timing:    #D97400;
    --c-timing-fill: #FA8C00;
    --on-fill:     #ffffff;
    --tint-zebra:    rgba(79,55,135,.035);
    --tint-soft:     rgba(79,55,135,.05);
    --tint-hover:    rgba(79,55,135,.08);
    --tint-active:   rgba(79,55,135,.10);
    --tint-selected: rgba(79,55,135,.16);
    --line-soft:     rgba(79,55,135,.06);
    --line:          rgba(79,55,135,.10);
    --focus-ring:    0 0 0 3px rgba(79,55,135,.12);
    --shadow-thumb:  0 1px 3px rgba(79,55,135,.30);
    --shadow-lift:   0 2px 10px rgba(20,20,40,.10);
    --shadow-pop:    0 8px 28px rgba(20,20,40,.14);
    --shadow-modal:  0 12px 48px rgba(20,20,40,.25);
    --scrim:         rgba(20,20,35,.45);
    --success-bg:  #eaf4ec;  --success-fg: #2f6b3f;
    --error-fg:    #a13d3d;  --error-hover: #a5311f;
    --tone-harmony: #2e7d32;
    --tone-tension: #c0392b;
    --tone-mixed:   #e08a1e;
    --tone-conj:    #337aba;
    --tone-neutral: #8a8a93;
    --motion-rx: #8f5f0a;
    --motion-st: #6e4e9e;
    --c-variants:   #7a8f00;
    --c-relations-ink: #b03050;
    --c-grp-fam:      #2E8540;
    --c-grp-fam-ink:  #1E6B2A;
    --c-grp-fam-bg:   rgba(30,107,42,.12);
    --c-grp-fr:       #2F6DB5;
    --c-grp-fr-ink:   #1F5FA8;
    --c-grp-fr-bg:    rgba(31,95,168,.12);
    --c-grp-oth:      #8a8a93;
    --c-grp-oth-bg:   rgba(85,85,90,.12);
    --ty-from:  #474B84;
    --ty-to:    #5b2a86;
    --on-ty-2:  rgba(255,255,255,.86);
    --ty-line:  rgba(255,255,255,.18);
    --fs-read-step: 0;  --fs-ui-step: 0;  --fs-head-step: 0;
    --fs-xs:      11px;
    --fs-sm:      13px;
    --fs-ui:      calc(15px + var(--fs-ui-step) * .5px);
    --fs-read:    calc(18px + var(--fs-read-step) * 1px);
    --fs-title:   calc(19px + var(--fs-head-step) * 1px);
    --fs-h2:      calc(22px + var(--fs-head-step) * 1px);
    --fs-h1:      calc(26px + var(--fs-head-step) * 1.5px);
    --fs-display: calc(32px + var(--fs-head-step) * 2px);
    --fw-h:       600;
    --lh-read:    1.45;
  }
  @media (max-width: 640px) {
    :root { --card-py: 14px; --card-px: 16px; --card-gap: 10px; }
  }
  html[data-fs-read="-2"] { --fs-read-step: -2; }
  html[data-fs-read="-1"] { --fs-read-step: -1; }
  html[data-fs-read="1"]  { --fs-read-step: 1; }
  html[data-fs-read="2"]  { --fs-read-step: 2; }
  html[data-fs-read="3"]  { --fs-read-step: 3; }
  html[data-fs-ui="-2"]   { --fs-ui-step: -2; }
  html[data-fs-ui="-1"]   { --fs-ui-step: -1; }
  html[data-fs-ui="1"]    { --fs-ui-step: 1; }
  html[data-fs-ui="2"]    { --fs-ui-step: 2; }
  html[data-fs-head="-2"] { --fs-head-step: -2; }
  html[data-fs-head="-1"] { --fs-head-step: -1; }
  html[data-fs-head="1"]  { --fs-head-step: 1; }
  html[data-fs-head="2"]  { --fs-head-step: 2; }
  html[data-fw-head="1"]  { --fw-h: 500; }
  input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
  input[type="checkbox"] { width: 18px; height: 18px; }

  .ctx-link, .upgrade-faq-link, .upgrade-secondary-link {
    font-size: var(--fs-sm); color: var(--muted); text-decoration: underline; }
  .ctx-link:hover, .upgrade-faq-link:hover, .upgrade-secondary-link:hover {
    color: var(--accent); }
  .ctx-link.is-lead { color: var(--accent); font-weight: 600; }
  .ctx-link.is-lead:hover { color: var(--accent-hover); }

  .lead-link, .astrolog-bio-all {
    color: var(--accent); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; }
  .lead-link:hover, .astrolog-bio-all:hover { text-decoration: underline; }

  .act-link, .astrolog-meet-link, .astrolog-chip-change,
  .moon-bio-more, .header-desc-toggle, .link-row-edit,
  .co-discount-toggle, .form-link {
    color: var(--accent); font-size: var(--fs-ui); font-weight: 600; text-decoration: underline; }
  .act-link:hover, .astrolog-meet-link:hover,
  .astrolog-chip-change:hover, .moon-bio-more:hover,
  .header-desc-toggle:hover, .link-row-edit:hover, .co-discount-toggle:hover,
  .form-link:hover { color: var(--accent-hover); }

  .check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    color: var(--text); font-size: var(--fs-ui); line-height: 1.45; margin: 0 0 10px; }
  .check-row:last-child { margin-bottom: 0; }
  .check-row input[type="checkbox"] { margin-top: 1px; flex-shrink: 0; cursor: pointer; }
  .check-row a { color: var(--accent); text-decoration: underline; }
  .check-row .hint { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
  .check-row--fine { font-size: var(--fs-sm); color: var(--muted); }

  body.canvas-grey { background: var(--grey); }
  html:has(body.canvas-grey) { background: var(--grey); }

  @media (max-width: 768px) {
    @supports (-webkit-touch-callout: none) {
      input, select, textarea { font-size: 16px !important; }
      .chat-input-row.fs-large textarea { font-size: calc(var(--fs-ui) + 2px) !important; }
    }
  }
  .rec-legacy-note { border-radius: var(--r-inner); padding: 10px 14px; font-size: var(--fs-sm);
    background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-bd);
    margin: 0 0 14px; }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  body { font-family:var(--font-ui); font-size:var(--fs-ui); max-width:1232px;
         margin:0 auto; padding:32px 16px 40px; background:var(--grey); color:var(--text); }
  h1 { font-size:var(--fs-h1); font-weight:var(--fw-h); letter-spacing:-0.01em; color:var(--text); margin:0 0 8px; }
  .el-sub { color:var(--muted); font-size:var(--fs-ui); margin:0 0 24px; line-height:1.6; max-width:640px; }
  
  .card {
    background: var(--grey); border: none; border-radius: var(--r-card);
    padding: var(--card-py, 24px) var(--card-px, 24px); margin-bottom: var(--card-gap, 16px);
    box-shadow: var(--card-shadow);
  }
  body.canvas-grey .card { background: var(--card); }

  .card .step-title, .el-card .step-title, .step-title {
    display: flex; align-items: center; gap: 10px;
    font-size: var(--fs-title); font-weight: var(--fw-h); color: var(--text);
    text-transform: none; letter-spacing: normal;
    border-bottom: none; padding-bottom: 0; margin-bottom: 16px;
  }
  .step-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
    background: var(--accent); color: var(--on-fill); font-size: var(--fs-sm); font-weight: 700;
    line-height: 1;
  }

  label {
    display: block; font-size: var(--fs-sm); font-weight: 500;
    color: var(--text); margin-bottom: 6px; letter-spacing: 0;
  }
  input, select {
    width: 100%; padding: 10px 14px;
    background: var(--card); border: 1px solid var(--field-bd);
    border-radius: var(--r-field); color: var(--text); font-size: var(--fs-ui); font-family: inherit;
    outline: none; transition: border-color 0.2s;
  }
  input:focus, select:focus { border-color: var(--accent); }
  input::placeholder { color: var(--muted); }
  input[type=date], input[type=time] {
    text-align: left; min-width: 0; -webkit-appearance: none; appearance: none;
  }
  input[type=date]::-webkit-datetime-edit,
  input[type=time]::-webkit-datetime-edit {
    color: var(--muted); font-family: inherit; text-align: left; }
  input[type=date]:focus::-webkit-datetime-edit,
  input[type=time]:focus::-webkit-datetime-edit { color: var(--text); }
  .field-hint {
    display: block; font-size: var(--fs-sm); color: var(--muted);
    margin: 5px 0 0; font-weight: 400; letter-spacing: 0; line-height: 1.35;
  }
  input[type=date]::-webkit-calendar-picker-indicator,
  input[type=time]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

  @media (max-width: 768px) {
    @supports (-webkit-touch-callout: none) {
      input, select, textarea { font-size: 16px !important; }
      .chat-input-row textarea,
      .chat-input-row.fs-small textarea,
      .feedback-textarea, .fb-textarea,
      .rel-other-input, .var-field input, .var-ex-select,
      .calsub-urlrow input, .co-discount-input-row input,
      .acc-modal input[type="text"] { font-size: 16px !important; }
      .chat-input-row.fs-large textarea { font-size: calc(var(--fs-ui) + 2px) !important; }
    }
  }

  .btn-generate {
    width: 100%; max-width: 400px;
    padding: 14px; background: var(--accent);
    border: none; border-radius: var(--r-pill); color: var(--on-fill);
    font-size: var(--fs-ui); font-weight: 600; cursor: pointer;
    transition: opacity 0.2s, transform 0.1s; margin-top: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  }
  .btn-generate:hover { opacity: 0.92; }
  .btn-generate:active { transform: scale(0.99); }
  .btn-generate:disabled { opacity: 0.5; cursor: not-allowed; }
  .cta-card { text-align: center; }
  .cta-intro { font-size: var(--fs-ui); color: var(--text); line-height: 1.55; margin: 0 0 16px; }
  .cta-card .btn-generate { margin-top: 0; }

  .form-link {
    display: inline-block; background: none; border: none; padding: 0;
    cursor: pointer; font-family: inherit; line-height: 1.4;
  }

  
  .astrolog-title { font-weight: 600; margin-bottom: 10px; }
  .astrolog-picker { display: flex; gap: 12px; }
  .astrolog-card {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 4px; padding: 8px 4px;
    cursor: pointer; border-radius: var(--r-inner); }
  .astrolog-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .ap-av { position: relative; display: inline-block; margin-bottom: 6px; }
  .astrolog-avatar { display: block; width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; object-position: 50% 18%; background: var(--grey);
    box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--border);
    transition: box-shadow .15s; }
  @media (hover: hover) {
    .astrolog-card:not(.is-locked):hover .astrolog-avatar { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
  }
  .astrolog-card.selected .astrolog-avatar { box-shadow: 0 0 0 2px var(--card), 0 0 0 5px var(--accent); }
  .ap-av-check, .ap-av-lock { display: none; position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px;
    border-radius: 50%; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--card); }
  .ap-av-check { background: var(--accent); color: var(--on-fill); }
  .ap-av-check svg { width: 16px; height: 16px; }
  .astrolog-card.selected .ap-av-check { display: inline-flex; }
  .ap-av-lock { background: var(--grey); color: var(--text-2); }
  .ap-av-lock svg { width: 13px; height: 13px; }
  .astrolog-name { font-weight: 600; font-size: var(--fs-ui); line-height: 1.3; }
  .astrolog-card.selected .astrolog-name { color: var(--accent); }
  @media (prefers-reduced-motion: reduce) { .astrolog-avatar { transition: none; } }
  .astrolog-rate { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill);
    background: var(--grey); color: var(--text-2); font-size: var(--fs-xs);
    font-weight: 600; white-space: nowrap; }
  .astrolog-tagline { font-size: var(--fs-sm); color: var(--text); line-height: 1.35; }
  .astrolog-card.is-locked { cursor: default; }
  .astrolog-card.is-locked .astrolog-avatar { filter: grayscale(1); opacity: .45; }
  .astrolog-card.is-locked .astrolog-name,
  .astrolog-card.is-locked .astrolog-tagline { color: var(--muted); opacity: .85; }
  .astrolog-lock { display: inline-block; max-width: 100%; padding: 2px 7px;
    border-radius: 8px; background: var(--tint-hover); color: var(--accent);
    font-size: var(--fs-xs); font-weight: 600; line-height: 1.25;
    white-space: normal; overflow-wrap: break-word; }

  .election-teaser { margin: 18px 0 0; font-size: var(--fs-ui); color: var(--text-2);
    line-height: 1.6; max-width: 100ch; }
  .election-teaser strong { color: var(--text); }
  .astrolog-picker[data-n="1"] { justify-content: center; }
  .astrolog-picker[data-n="1"] .astrolog-card { flex: 0 1 260px; }
  .tester-pill { display: flex; align-items: center; gap: 8px; width: 100%;
    margin-top: 10px; padding: 9px 12px; cursor: pointer; box-sizing: border-box;
    border: 2px solid var(--border); border-radius: var(--r-pill); background: var(--card);
    font-size: var(--fs-ui); color: var(--text-2);
    transition: border-color .15s, background .15s, color .15s; }
  @media (hover: hover) { .tester-pill:hover { border-color: var(--accent); } }
  .tester-pill.selected { border-color: var(--accent); background: var(--bg);
    color: var(--text); font-weight: 600; }
  .tester-pill .tester-pill-tag { font-size: var(--fs-sm); color: var(--muted);
    font-weight: 400; }

  .ap-mode-seg { margin-bottom: 12px; }
  .ap-switch {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    min-height: 32px; padding: 0 2px; user-select: none; -webkit-user-select: none;
    font-size: var(--fs-ui); font-weight: 600; color: var(--text); line-height: 1.2;
  }
  .ap-switch input[type="checkbox"] {
    position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
  }
  .ap-switch-track {
    position: relative; width: 30px; height: 18px; border-radius: 9px;
    background: var(--hover-lav); transition: background .15s; flex: 0 0 30px;
  }
  .ap-switch-track::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--card); box-shadow: var(--shadow-thumb);
    transition: transform .15s;
  }
  .ap-switch input:checked + .ap-switch-track { background: var(--accent); }
  .ap-switch input:checked + .ap-switch-track::after { transform: translateX(12px); }
  .ap-switch input:focus-visible + .ap-switch-track { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
  .ap-switch:hover .ap-switch-track { filter: brightness(.96); }
  @media (prefers-reduced-motion: reduce) {
    .ap-switch-track, .ap-switch-track::after { transition: none; }
  }
  .ap-mode-hint { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45;
    margin: -4px 0 12px; }
  .ap-reading { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
  .ap-lifeline { margin: 0 0 12px; }
  .ap-cost { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.45;
    text-align: right; margin: 16px 0 0; font-variant-numeric: tabular-nums; }
  .ap-cost[hidden] { display: none; }
  .ap-cost + .pchat-actions, .ap-cost + .acc-modal-actions {
    margin-top: 8px !important; }
  .ap-mode-seg ~ * .is-disabled,
  .acc-modal-btn.is-disabled, .pchat-start.is-disabled {
    opacity: .5; cursor: default; }

  .astrolog-tagstrip { display: none; }
  .astrolog-picker.ap-many { container-type: inline-size; display: grid;
    grid-template-columns: repeat(var(--ap-cols, 4), 1fr);
    column-gap: 8px; row-gap: 12px; }
  .ap-locknote { display: none; }
  @container (max-width: 419px) {
    .astrolog-card { padding: 8px 2px; gap: 4px; }
    .ap-av { display: block; width: calc(100% - 10px); max-width: 72px; margin: 0 auto 6px; }
    .astrolog-avatar { width: 100%; max-width: 72px; height: auto; aspect-ratio: 1; }
    .astrolog-name { font-size: var(--fs-sm); }
    .astrolog-lock { display: none; }
    .astrolog-card.is-locked .ap-av-lock { display: inline-flex; }
    .ap-locknote { display: block; grid-column: 1 / -1; margin: 0; font-size: var(--fs-sm);
      color: var(--text-2); line-height: 1.4; text-align: center; }
    .astrolog-rate { display: none; }
    .astrolog-tagline { display: none; }
    .astrolog-tagstrip {
      display: block; grid-column: 1 / -1; box-sizing: border-box;
      min-height: 2.7em; padding: 8px 12px; border-radius: var(--r-inner);
      background: var(--grey); color: var(--text);
      font-size: var(--fs-sm); line-height: 1.35; text-align: center; }
    .astrolog-tagstrip:empty { background: transparent; }
  }
  
  .segmented {
    display: flex; gap: 4px; background: var(--grey); border-radius: var(--r-pill); padding: 4px;
  }
  .seg-btn:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
  .seg-btn {
    flex: 1; text-align: center; padding: 10px 14px; border: none; background: transparent;
    color: var(--muted); font-family: inherit; font-size: var(--fs-ui); font-weight: 600; line-height: 1.25;
    cursor: pointer; border-radius: var(--r-pill); user-select: none;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  }
  .seg-btn:hover:not(.active):not(:disabled) { color: var(--accent); }
  .seg-btn.active { background: var(--accent); color: var(--on-fill);
    box-shadow: var(--shadow-thumb); }
  .seg-btn:disabled { cursor: default; }
  .seg-btn.seg-fixed:disabled { opacity: 1; cursor: default; pointer-events: none; }
  .seg-sub { font-weight: 400; opacity: .65; font-size: .85em; }

  .syn-rt-opts { display: flex; flex-wrap: wrap; gap: 8px; }
  .syn-rt-btn { padding: 5px 14px; border-radius: var(--r-pill);
                border: 1px solid var(--field-bd); background: none;
                font-family: inherit; font-size: var(--fs-ui); line-height: 1.6;
                color: var(--text-2); cursor: pointer; white-space: nowrap;
                transition: background .15s, border-color .15s, color .15s; }
  @media (hover:hover) {
    .syn-rt-btn:hover { background: var(--grey); border-color: var(--accent); }
  }
  .syn-rt-btn.active { background: var(--accent); border-color: var(--accent);
                       color: var(--on-fill); }
  .syn-rt-btn.active:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .syn-rt-opts.is-busy { opacity: .55; pointer-events: none; }
  
  .hz-wrap { margin-top:16px; }
  .hz-label { font-size:var(--fs-sm); color:var(--muted); margin:0 0 6px; }
  @media (max-width:520px){
    .hz-wrap .seg-btn { padding-left:6px; padding-right:6px; font-size:var(--fs-ui); }
  }
  .hz-fixed-info { font-size:var(--fs-sm); color:var(--text-2); line-height:1.5; }
  
  .rec-back { display:inline-flex; align-items:center; justify-content:center; position:relative;
    width:44px; height:44px; border-radius:50%; border:2px solid transparent;
    background:var(--accent); background-clip:padding-box; color:var(--on-fill);
    text-decoration:none; margin:0 0 14px; }
  .rec-back:hover { background-color:var(--accent-hover); }
  .rec-back:focus-visible { outline:2px solid var(--accent); outline-offset:0; }
  .rec-back-arr { display:flex; }
  .rec-back-arr svg { width:20px; height:20px; display:block; }
  @media (min-width:641px) {
    .ph:has(> .rec-back) { display:grid; grid-template-columns:auto minmax(0, 1fr); column-gap:16px;
      align-items:center; margin-bottom:14px; }
    .ph > .rec-back { grid-column:1; grid-row:1; margin:0; align-self:center; }
    .ph:has(> .rec-of) > .rec-back { grid-row:2; }
    .ph > :not(.rec-back) { grid-column:2; }
    .ph > .rec-head { display:contents; }
    .ph > .rec-head > * { grid-column:2; }
    .ph:has(> .rec-back) > .page-title-row { margin-bottom:0; }
    .ph:has(> .rec-back):has(> .page-title-row) { margin-bottom:24px; }
    .rec-back { background-color:var(--card); box-shadow:inset 0 0 0 1.5px var(--field-bd); color:var(--accent); }
    .rec-back:hover { background-color:var(--hover-lav); }
  }
  .rec-back-lbl { position:absolute; width:1px; height:1px; overflow:hidden;
    clip-path:inset(50%); white-space:nowrap; }
  .rec-of { display:flex; align-items:center; gap:6px; margin:0 0 2px; min-width:0;
    font-size:var(--fs-sm); color:var(--text-2); line-height:1.35; }
  .rec-of-name { min-width:0; overflow-wrap:anywhere; }
  .rec-of .chart-pictogram { flex:none; display:inline-flex; width:18px; height:18px;
    color:var(--c-portrait); }
  .rec-of .chart-pictogram svg { width:16px; height:16px; }
  .rec-of .chart-pictogram.pic-relations { color:var(--c-relations); }
  .rec-of .chart-pictogram.pic-timing    { color:var(--c-timing); }
  .rec-of .chart-pictogram.pic-variants  { color:var(--c-variants); }
  .ph-of-title > .rec-of { gap:10px; margin:0 0 12px; font-size:var(--fs-h2); font-weight:var(--fw-h);
    color:var(--text); line-height:1.2; letter-spacing:-.01em; }
  .ph-of-title > .rec-of .chart-pictogram { width:30px; height:auto; justify-content:center; }
  .ph-of-title > .rec-of .chart-pictogram svg { width:28px; height:28px; }
  @media (min-width:641px) {
    .ph.ph-of-title:has(> .rec-of) > .rec-back { grid-row:1; }
    .ph-of-title > .rec-of { margin:0; }
  }
  .rec-viewbar { display:inline-flex; gap:4px; padding:4px; background:var(--card);
    border:1px solid var(--field-bd); border-radius:var(--r-pill); margin:0 0 18px; }
  .rec-vb { display:inline-flex; align-items:center; gap:7px; padding:7px 14px;
    border-radius:var(--r-pill); font-size:var(--fs-ui); font-weight:600; color:var(--text-2);
    background:transparent; border:none; text-decoration:none; cursor:pointer; }
  .rec-vb svg { width:15px; height:15px; }
  .rec-vb:not(.active):hover { color:var(--text); background:var(--grey); }
  .rec-vb:not(.active):active { background:var(--tint-selected); }
  .rec-vb-busy { position:relative; --vb-load-ms:2000ms; }
  .rec-vb-busy.place { --vb-load-ms:4000ms; }
  .rec-vb-busy::after { content:""; position:absolute; left:6px; right:6px;
    bottom:3px; height:2px; border-radius:1px; background:var(--accent);
    transform-origin:left center;
    animation:rec-vb-load var(--vb-load-ms) ease-in-out infinite; }
  @keyframes rec-vb-load { 0% { transform:scaleX(0); } 50% { transform:scaleX(1); }
    100% { transform:scaleX(0); } }
  @media (prefers-reduced-motion: reduce) {
    .rec-vb-busy::after { animation:none; }
  }
  .rec-vb.active { background:var(--accent); color:var(--on-fill); cursor:default; }
  .rec-vb.wheel   svg { color:var(--c-portrait); }
  .rec-vb.life    svg { color:var(--c-timing); }
  .rec-vb.transit svg { color:var(--c-timing); }
  .rec-vb.place   svg { color:var(--c-portrait); }
  .rec-vb.active.wheel svg { color:var(--on-fill); }
  .rec-vb.active.place svg { color:var(--on-fill); }
  .rec-vb.active.life svg, .rec-vb.active.transit svg { color:var(--c-timing-fill); }
  .vbar { position:sticky; top:66px; z-index:40; background:var(--grey);
    padding:6px 0 10px; margin:0 0 4px; }
  .vbar .rec-viewbar { margin:0; }
  html:has(.vbar) { scroll-padding-top:158px; }
  .view-tools { position:relative; display:flex; flex-wrap:wrap; align-items:center;
    gap:6px 10px; margin:4px 0 16px; }
  .view-tools .help-hint.open { z-index:70; }
  .view-tools .help-hint .help-pop { z-index:80; }
  .view-tools .vt-meta { margin:0; font-size:var(--fs-sm); color:var(--text-2); line-height:1.45;
    max-width:none; }
  @media (max-width:560px) {
    .rec-viewbar { display:flex; width:100%; }
    .rec-vb { flex:1 1 0; min-width:0; flex-direction:column; gap:4px;
      justify-content:center; text-align:center; padding:7px 4px;
      font-size:var(--fs-sm); line-height:1.25; overflow-wrap:anywhere; }
    .rec-vb svg { width:17px; height:17px; }
  }
  
  .acc-modal-overlay {
    display: none; position: fixed; inset: 0; background: var(--scrim);
    z-index: 1000; align-items: center; justify-content: center; padding: 20px;
  }
  .acc-modal-overlay.open { display: flex; }
  .acc-modal {
    background: var(--card); border-radius: var(--r-card); max-width: 440px; width: 100%;
    padding: 24px; box-shadow: var(--shadow-modal);
  }
  .acc-modal h3 { margin: 0 0 12px; font-size: var(--fs-title); color: var(--text); }
  .acc-modal p { margin: 0 0 18px; font-size: var(--fs-ui); line-height: 1.55; color: var(--text); }
  .acc-modal input[type="text"] { width: 100%; padding: 9px 12px; border: 1px solid var(--field-bd);
                                  border-radius: var(--r-field); font-size: var(--fs-ui); box-sizing: border-box; }
  .acc-modal-segrow { margin: 0 0 18px; }
  .acc-modal-seglabel { font-size: var(--fs-ui); color: var(--muted); margin: 0 0 7px; }
  .acc-modal-seginfo { font-size: var(--fs-ui); line-height: 1.55; color: var(--text-2);
                       text-align: center; }
  .acc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
  .acc-modal-btn {
    margin: 0; padding: 9px 18px; border-radius: var(--r-pill); font-size: var(--fs-ui); font-weight: 600;
    border: none; cursor: pointer; transition: background 0.12s, transform 0.05s;
  }
  .acc-modal-btn:active { transform: translateY(1px); }
  .acc-modal-cancel { background: var(--grey); color: var(--accent); border: 1px solid var(--field-bd); }
  .acc-modal-cancel:hover { background: var(--hover-lav); border-color: var(--accent); }
  .acc-modal-confirm { background: var(--error); color: var(--on-fill); }
  .acc-modal-confirm:hover:not(:disabled) { background: var(--error-hover); }
  .acc-modal-confirm:disabled { background: var(--error-bd); cursor: not-allowed; }
  .acc-modal-confirm.primary { background: var(--accent); }
  .acc-modal-confirm.primary:hover { background: var(--accent-hover); }
  .acc-modal-start { background: var(--accent); color: var(--on-fill); }
  .acc-modal-start:hover { background: var(--accent-hover); }
  .newconvo-flagdrop { margin-top: 14px; font-size: var(--fs-sm); color: var(--muted);
                       font-style: italic; line-height: 1.45; }
  .acc-modal-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-bd);
                     padding: 9px 12px; border-radius: var(--r-inner); font-size: var(--fs-sm); margin-bottom: 14px; display: none; }
  .acc-modal-error.show { display: block; }
  .acc-modal-sigil { width: 40px; height: 40px; margin: 6px auto 18px; display: block;
    background: center / contain no-repeat; filter: saturate(1); }
  .acc-modal.acc-status { background: var(--bg); border: 1px solid var(--accent); }
  .acc-modal.acc-status h3 { margin-top: 4px; }
  .acc-modal.acc-status .acc-modal-sigil { margin: 6px auto 8px; }

  .el-term { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px;
             align-items: center; padding: 8px 0; box-shadow: inset 0 1px 0 var(--line-soft); }
  .el-term:first-child { box-shadow: none; }
  .el-term-d { font-size: var(--fs-ui); font-weight: 600; color: var(--text); min-width: 0; }
  .el-term-l { grid-column: 1; display: flex; align-items: center; gap: 6px;
               font-size: var(--fs-sm); color: var(--text-2); }
  .el-term-w { grid-column: 2; grid-row: 1 / span 2; font-size: var(--fs-sm); font-weight: 600;
               color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .el-term-wt { white-space: nowrap; }
  .el-lv { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
  .el-lv i { display: block; width: 3px; border-radius: 0; background: var(--field-bd); }
  .el-lv i:nth-child(1) { height: 5px; }
  .el-lv i:nth-child(2) { height: 7px; }
  .el-lv i:nth-child(3) { height: 9px; }
  .el-lv i:nth-child(4) { height: 12px; }
  .el-lv i.on { background: var(--accent); }
  .cg-head { display:flex; align-items:center; gap:2px; padding:0 2px 2px 10px; }
  .cg-title { flex:1 1 auto; min-width:0; margin:0; font-size:var(--fs-title);
    font-weight:var(--fw-h); letter-spacing:-.01em; color:var(--text); }
  .cg-today { min-height:44px; padding:0 12px; border:0; background:none; color:var(--accent);
    font:inherit; font-size:var(--fs-sm); font-weight:600; cursor:pointer;
    border-radius:var(--r-pill); }
  .cg-nav { width:44px; height:44px; flex:0 0 auto; display:inline-grid; place-items:center;
    border:0; background:none; color:var(--accent); border-radius:50%; cursor:pointer; padding:0; }
  .cg-nav svg { width:20px; height:20px; }
  .cg-nav:disabled { color:var(--muted); opacity:.45; cursor:default; }
  .cg-nav:hover:not(:disabled), .cg-today:hover { background:var(--tint-hover); }
  .cg-nav:focus-visible, .cg-today:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .cg-dow, .cg-days { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); }
  .cg-dow span { text-align:center; font-size:var(--fs-xs); font-weight:600; color:var(--muted);
    padding:2px 0 4px; }
  .cg-day { position:relative; box-sizing:border-box; height:72px; min-width:0; margin:0;
    padding:4px 0 0; border:0; background:none; font:inherit; color:var(--text);
    display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:2px; }
  button.cg-day { cursor:pointer; border-radius:var(--r-inner); }
  button.cg-day:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
  .cg-n { width:30px; height:30px; flex:0 0 auto; border-radius:50%; display:grid; place-items:center;
    font-size:var(--fs-ui); font-weight:500; font-variant-numeric:tabular-nums; line-height:1; }
  button.cg-day:hover .cg-n { background:var(--tint-hover); }
  .cg-day.is-today .cg-n { box-shadow:inset 0 0 0 2px var(--accent); font-weight:700; }
  .cg-day.is-sel .cg-n, button.cg-day.is-sel:hover .cg-n { background:var(--accent);
    color:var(--on-fill); font-weight:700; box-shadow:none; }
  .cg-day.is-past .cg-n { color:var(--muted); }
  .cg-day.is-past .cg-mk, .cg-day.is-past .cg-band,
  .cg-day.is-past .cg-sky { opacity:.5; }
  .cg-day.is-past.is-sel .cg-n { color:var(--on-fill); }
  .cg-off .cg-n { color:var(--muted); opacity:.55; font-weight:400; }
  .cg-mk { height:18px; display:flex; align-items:center; justify-content:center; }
  .cg-mk-ph, .cg-mk-ph svg, .cg-lg-ph, .cg-lg-ph svg { display:block; width:18px; height:18px; }
  .cg-mk .cal-mark { width:14px; height:14px; }
  .cg-layers.l-phase .cg-mk-ph ~ .cal-mark { display:none; }
  .cg-mk.is-ecl .cg-mk-ph svg, .cg-lg-ph.is-ecl svg { border-radius:50%;
    box-shadow:0 0 0 1.5px var(--accent); }
  .cg-band { position:absolute; left:0; right:0; height:3px; }
  .cg-band.pk { height:5px; }
  .cg-band-harmony { bottom:13px; background:var(--tone-harmony); }
  .cg-band-neutral { bottom:8px; background:var(--tone-conj); }
  .cg-band-tension { bottom:3px; background:var(--tone-tension); }
  .cg-band-harmony.pk { bottom:12px; }
  .cg-band-neutral.pk { bottom:7px; }
  .cg-band-tension.pk { bottom:2px; }
  .cg-band.s { left:5px; border-top-left-radius:var(--r-pill); border-bottom-left-radius:var(--r-pill); }
  .cg-band.e { right:5px; border-top-right-radius:var(--r-pill); border-bottom-right-radius:var(--r-pill); }
  .cg-sky { position:absolute; top:0; left:2px; right:2px; border-top:2px dotted var(--text-2); }
  .cg-layers:not(.l-phase) .cg-mk-ph, .cg-layers:not(.l-phase) .cg-lg-phase { display:none; }
  .cg-layers:not(.l-kt) .cg-band, .cg-layers:not(.l-kt) .cg-lg-kt { display:none; }
  .cg-layers:not(.l-sky) .cg-sky, .cg-layers:not(.l-sky) .cg-lg-sky { display:none; }
  .cg-lg { display:grid; gap:6px; padding:10px 8px 2px; margin-top:4px; border-top:1px solid var(--line);
    font-size:var(--fs-sm); color:var(--text-2); }
  .cg-lg-row { display:grid; grid-template-columns:64px minmax(0, 1fr); gap:0 10px; align-items:start; }
  .cg-lg-k { font-weight:600; color:var(--text); line-height:20px; }
  .cg-lg-v { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; min-width:0; }
  .cg-lg-v .cg-lg-i { min-height:20px; }
  .cg-lg-lines { display:none; }
  .cg-layers.l-kt .cg-lg-lines.has-kt, .cg-layers.l-sky .cg-lg-lines.has-sky { display:grid; }
  .cg-lg-i { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
  .cg-lg-bands { display:inline-flex; flex-direction:column; justify-content:space-between;
    width:18px; height:13px; flex:0 0 auto; }
  .cg-lg-bands i { display:block; height:3px; border-radius:var(--r-pill); }
  .cg-lg-bands i:nth-child(1) { background:var(--tone-harmony); }
  .cg-lg-bands i:nth-child(2) { background:var(--tone-conj); }
  .cg-lg-bands i:nth-child(3) { background:var(--tone-tension); }
  .cg-lg-skyline { display:inline-block; width:18px; flex:0 0 auto; border-top:2px dotted var(--text-2); }
  .cg-lg-acts { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
  .cg-lg-btn { min-height:44px; display:inline-flex; align-items:center; gap:4px; padding:0 14px;
    border:1px solid var(--field-bd); border-radius:var(--r-pill); background:var(--card);
    color:var(--accent); font:inherit; font-size:var(--fs-sm); font-weight:600; cursor:pointer;
    white-space:nowrap; }
  .cg-lg-btn:hover { background:var(--hover-lav); border-color:var(--accent); }
  .cg-lg-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .cg-lg-acts { align-items:center; }
  .cg-lg-acts .help-legend-link::before { display:none; }
  @media (max-width:640px) {
    .cg-layers .cg-lg .cg-lg-row, .cg-layers.l-kt .cg-lg .cg-lg-lines.has-kt,
    .cg-layers.l-sky .cg-lg .cg-lg-lines.has-sky { display:none; }
    .cg-lg { padding-top:8px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .cg-day, .cg-n, .cg-nav { transition:none; }
  }
  @media (min-width:641px) {
    .ph.el-ph:has(> .rec-back) { margin-bottom:24px; }
    .el-ph:has(> .rec-back) > h1 { margin-bottom:0; }
    .el-ph:has(> .rec-back) > .el-sub { margin:8px 0 0; }
  }

  .el-form { max-width:640px; }
  .el-hint { color:var(--muted); font-size:var(--fs-sm); margin:6px 0 12px; }
  .el-sub-l { font-size:var(--fs-sm); color:var(--muted); margin:14px 0 6px; }
  .el-kinds { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; margin-top:12px; }
  .el-kind { position:relative; display:flex; align-items:center; gap:8px; min-height:60px;
    padding:10px 14px 10px 10px; border:1.5px solid var(--field-bd); border-radius:var(--r-inner);
    background:var(--card); color:var(--text); font:inherit; font-size:var(--fs-ui); font-weight:600;
    line-height:1.25; text-align:left; cursor:pointer; }
  .el-kind .el-ev-ico { width:24px; height:24px; flex:0 0 auto; color:var(--c-timing); }
  .el-kind-l { flex:1 1 auto; min-width:0; -webkit-hyphens:auto; hyphens:auto; overflow-wrap:anywhere; }
  .el-kind-ck { position:absolute; top:6px; right:6px; width:18px; height:18px; border-radius:50%;
    background:var(--accent); color:var(--on-fill); display:none; place-items:center; }
  .el-kind-ck svg { width:12px; height:12px; }
  .el-kind[aria-checked="true"] { border-color:var(--accent); background:var(--tint-selected); }
  .el-kind[aria-checked="true"] .el-kind-ck { display:grid; }
  @media (hover:hover){ .el-kind:hover { border-color:var(--accent); } }
  .el-kind:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .el-addname, .el-hours-chg { min-height:44px; padding:0; border:0; background:none; color:var(--accent);
    font:inherit; font-size:var(--fs-ui); font-weight:600; cursor:pointer; }
  .el-addname { margin-top:8px; }
  .el-addname:focus-visible, .el-hours-chg:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .el-name-box input { width:100%; }
  .el-row { display:flex; flex-wrap:wrap; gap:18px; margin-top:12px; }
  .el-field { display:flex; flex-direction:column; gap:5px; }
  .el-field label { font-size:var(--fs-sm); color:var(--muted); }
  input, select { width:auto; }
  .el-days { display:flex; flex-wrap:wrap; gap:6px; }
  .el-dchip { min-width:44px; min-height:44px; padding:0 10px; border:1px solid var(--field-bd);
    border-radius:var(--r-pill); background:var(--card); color:var(--text); font:inherit;
    font-size:var(--fs-sm); font-weight:600; cursor:pointer; }
  .el-dchip[aria-pressed="true"] { background:var(--accent); border-color:var(--accent); color:var(--on-fill); }
  .el-dchip:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .el-hours-row { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; margin-top:6px; }
  .el-hours-row .el-sub-l { margin:0; }
  .el-hours-sum { font-size:var(--fs-ui); font-weight:600; color:var(--text); }
  .el-hours-box { display:flex; align-items:center; gap:8px; }
  .el-hours-dash { color:var(--muted); }
  #el-place-query { width:100%; font-family:inherit; font-size:var(--fs-ui); padding:10px 12px;
    border:1px solid var(--field-bd); border-radius:var(--r-field); }
  .geo2-box { margin-top:12px; }
  .el-manual-heading { font-size:var(--fs-sm); font-weight:600; color:var(--text); margin:12px 0 6px; }
  .el-natal-row { display:flex; align-items:center; gap:10px; cursor:pointer;
    font-size:var(--fs-ui); color:var(--text); margin-top:12px; min-height:44px; }
  .el-natal-row input { width:18px; height:18px; }
  .el-natal-wrap { margin-top:12px; }
  .el-natal-wrap .bt-dd { max-width:360px; }
  .el-err { background:var(--error-bg); border:1px solid var(--error-bd); color:var(--error); padding:11px 14px;
            border-radius:var(--r-inner); margin:8px 0 0; font-size:var(--fs-sm); display:none; }
  .el-fstick { position:sticky; bottom:0; z-index:20; margin-top:8px; padding:12px 0 16px;
    background:var(--grey); text-align:center; }
  .el-scan-btn { width:100%; max-width:none; }
  .el-scan-btn[aria-disabled="true"] { opacity:.6; }
  .el-fmiss { margin-top:6px; font-size:var(--fs-sm); color:var(--text-2); min-height:1.2em; }

  #el-progress { display:none; text-align:center; padding:48px 16px; }
  .el-sigil { width:64px; height:64px; }
  .el-progress-txt { margin-top:16px; color:var(--muted); font-size:var(--fs-ui); }

  
  .zb-list { margin:0 0 12px; }
  .zb { border:1px solid var(--field-bd); border-radius:var(--r-inner);
    overflow:hidden; background:var(--card); }
  .zb-gh { margin:16px 0 6px 4px; font-size:var(--fs-xs); font-weight:700;
    color:var(--muted); letter-spacing:.04em; }
  .zb-list > .zb-gh:first-child { margin-top:0; }
  :is(.zb, .zb-past-rows) > :is(.kt-row, .el-wr) { margin:0; border-radius:0; background:transparent;
    box-shadow:inset 4px 0 0 0 var(--kt-color, transparent); }
  :is(.zb, .zb-past-rows) > :is(.kt-row, .el-wr) + :is(.kt-row, .el-wr),
  .zb > :is(.kt-row, .el-wr) + .zb-more { border-top:1px solid var(--line-soft); }
  :is(.zb, .zb-past-rows) > :is(.kt-row, .el-wr):nth-child(even) { background:var(--tint-zebra); }
  :is(.zb, .zb-past-rows) > :is(.kt-row, .el-wr):hover { background:var(--tint-hover); }
  :is(.zb, .zb-past-rows) > .kt-row.open { background:var(--tint-active); }
  .zb > :is(.kt-row, .el-wr):first-child { border-top-left-radius:calc(var(--r-inner) - 1px);
    border-top-right-radius:calc(var(--r-inner) - 1px); }
  .zb > :is(.kt-row, .el-wr):last-child { border-bottom-left-radius:calc(var(--r-inner) - 1px);
    border-bottom-right-radius:calc(var(--r-inner) - 1px); }
  :is(.zb, .zb-past-rows) > .kt-row.kt-row-hit { box-shadow:inset 4px 0 0 0 var(--kt-color, transparent),
    inset 0 0 0 2px var(--accent); }
  .zb-past + .zb { margin-top:10px; }
  .zb-past-head { display:flex; align-items:center; gap:14px; width:100%; border:0;
    background:var(--card); color:var(--text-2); font-family:inherit; text-align:left;
    padding:12px 16px 12px 20px; cursor:pointer; }
  .zb-past-head:hover { background:var(--tint-hover); }
  .zb-past-head:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
  .zb-past-ico { flex:0 0 64px; display:flex; justify-content:center; }
  .zb-past-ico svg { width:34px; height:34px; display:block; }
  .zb-past-ico circle { fill:none; stroke:var(--field-bd); stroke-width:6; }
  .zb-past-txt { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .zb-past-t { font-size:var(--fs-ui); font-weight:600; color:var(--text-2); }
  .zb-past-d { font-size:var(--fs-sm); color:var(--muted); }
  .zb-past-chev { flex:0 0 auto; width:18px; height:18px; color:var(--muted); transition:transform .18s; }
  .zb-past.open .zb-past-chev { transform:rotate(180deg); }
  .zb-past-rows { border-top:1px solid var(--line-soft); }
  .zb-past-rows > .kt-row:last-child { border-bottom-left-radius:calc(var(--r-inner) - 1px);
    border-bottom-right-radius:calc(var(--r-inner) - 1px); }
  @media (max-width:420px) {
    .zb-past-head { gap:10px; }
    .zb-past-ico { flex-basis:52px; }
  }
  @media (prefers-reduced-motion: reduce) { .zb-past-chev { transition:none; } }
  .zb-more { display:block; width:100%; border:0; background:var(--card);
    color:var(--accent); font-family:inherit; font-size:var(--fs-ui); font-weight:600;
    padding:12px 16px; cursor:pointer; text-align:center; }
  .zb-more:hover { background:var(--tint-hover); }
  .zb-more:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }

  
  .el-res { container:elres / inline-size; }
  .el-all { container:elall / inline-size; margin-top:18px; }
  .el-process { margin:18px 0 0; padding:2px 2px 0; }
  .el-process-t { font-size:var(--fs-ui); font-weight:600; color:var(--text-2); margin:0 0 8px; }
  .el-process-grp { font-size:var(--fs-sm); color:var(--muted); margin:6px 0 3px; }
  .el-process-l { list-style:none; margin:0; padding:0; }
  .el-process-l li { margin:0 0 3px; }
  .el-process-l a { color:var(--accent); text-decoration:none; font-size:var(--fs-ui); }
  .el-process-l a:hover { text-decoration:underline; }
  .el-warn { background:var(--warn-bg); border:1px solid var(--warn-bd); color:var(--warn-fg); padding:12px 15px;
             border-radius:var(--r-inner); margin:0 0 14px; font-size:var(--fs-ui); }
  .el-note { background:var(--info-bg); border:1px solid var(--info-bd); color:var(--info-fg); padding:12px 15px;
             border-radius:var(--r-inner); margin:0 0 14px; font-size:var(--fs-ui); }
  .el-sec-t { margin:8px 0 10px; font-size:var(--fs-title); font-weight:var(--fw-h); color:var(--text); }
  .el-sec-n { color:var(--muted); font-weight:400; }

  .el-cards { display:grid; gap:10px; }
  .card.el-card { position:relative; display:block; width:100%; margin:0; padding:0;
    border:2px solid transparent; border-radius:var(--r-card); background:var(--card);
    box-shadow:var(--card-shadow); color:var(--text); }
  .el-card.is-picked { border-color:var(--accent); }
  .card.el-card.is-cur { background:linear-gradient(var(--tint-soft), var(--tint-soft)), var(--card); }
  .el-card-day { display:block; width:100%; margin:0; padding:14px 50px 14px 16px; border:0;
    border-radius:calc(var(--r-card) - 2px); background:none; font:inherit; color:inherit;
    text-align:left; cursor:pointer; }
  @media (hover:hover) { .el-card-day:hover { background:var(--tint-hover); } }
  .el-card-day:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .el-card-ck { position:absolute; top:3px; right:3px; width:44px; height:44px; display:grid;
    place-items:center; margin:0; padding:0; border:0; border-radius:var(--r-field);
    background:none; cursor:pointer; }
  .el-card-ck:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
  .el-card-box { width:26px; height:26px; display:grid; place-items:center;
    border:2px solid var(--field-bd); border-radius:var(--r-field); background:var(--card); color:transparent; }
  .el-card-box svg { width:16px; height:16px; }
  .el-card.is-picked .el-card-box { background:var(--accent); border-color:var(--accent); color:var(--on-fill); }
  .el-card .el-term { grid-template-columns:minmax(0, 1fr); padding:0; box-shadow:none; gap:4px; }
  .el-card .el-term-d { font-size:var(--fs-title); }
  .el-term-ds { display:none; }
  .el-card .el-term-l { font-size:var(--fs-ui); font-weight:600; color:var(--text); }
  .el-card .el-term-w { grid-column:1; grid-row:auto; font-size:var(--fs-ui); white-space:normal; }
  .el-term-wl { font-weight:400; color:var(--text-2); }
  .el-card-x { display:block; margin-top:2px; font-size:var(--fs-sm); color:var(--text-2);
    font-variant-numeric:tabular-nums; }
  .el-card-x b { color:var(--text); }
  .el-card-why { display:block; margin-top:6px; font-size:var(--fs-sm); color:var(--text-2); }
  .el-cards-hint { margin:10px 2px 0; font-size:var(--fs-sm); color:var(--text-2); }
  @container elres (max-width:639px) {
    .el-cards { gap:0; border-radius:var(--r-card); background:var(--card);
      box-shadow:var(--card-shadow); overflow:hidden; }
    .card.el-card { border:0; border-radius:0; box-shadow:none; background:none; }
    .card.el-card + .card.el-card { box-shadow:inset 0 1px 0 var(--line-soft); }
    .card.el-card.is-cur { background:var(--tint-soft); }
    .el-card-day { min-height:60px; padding:10px 14px 10px 56px; border-radius:0; }
    .el-card-ck { top:50%; right:auto; left:6px; transform:translateY(-50%); }
    .el-card .el-term { grid-template-columns:minmax(0, 1fr) auto; gap:1px 10px; }
    .el-card .el-term-d { font-size:var(--fs-ui); font-weight:600; }
    .el-card .el-term-dl, .el-card .el-term-wl, .el-card-x, .el-card-why { display:none; }
    .el-card .el-term-ds { display:inline; }
    .el-card .el-term-l { font-size:var(--fs-sm); white-space:nowrap; }
    .el-card .el-term-w { grid-column:2; grid-row:1 / span 2; font-weight:600; white-space:nowrap; }
  }
  @container elres (min-width:640px) {
    .el-cards { grid-template-columns:repeat(3, minmax(0, 1fr)); }
  }
  @container elres (min-width:640px) and (max-width:899px) {
    .el-card .el-term-d { font-size:var(--fs-ui); font-weight:600; }
  }
  .el-cmp { display:block; width:100%; min-height:36px; margin:6px 0 0; padding:0; border:0; background:none;
    font:inherit; font-size:var(--fs-sm); font-weight:600; color:var(--accent); text-align:center; cursor:pointer; }
  .el-cmp[aria-disabled="true"] { color:var(--text-2); font-weight:400; cursor:default; }
  .el-cmp.is-note { color:var(--text); font-weight:600; }
  .el-cmp.el-cmp-rec { width:auto; min-height:44px; margin:4px 2px 0; text-align:left; }
  .el-go[aria-disabled="true"] { opacity:.6; cursor:default; }

  .card.el-grid-card { margin:0; padding:8px 0 10px; border-radius:var(--r-card);
    background:var(--card); box-shadow:var(--card-shadow); }
  #cg-el .cg-mk { height:12px; margin-top:2px; }
  .cg-ck { position:absolute; top:1px; right:2px; width:16px; height:16px; border-radius:50%;
    background:var(--accent); color:var(--on-fill); display:none; place-items:center; }
  .cg-ck svg, .cg-ck-lg svg { width:10px; height:10px; }
  button.cg-day.is-picked .cg-ck { display:grid; }
  .cg-ck-lg { display:inline-grid; place-items:center; width:16px; height:16px; border-radius:50%;
    background:var(--accent); color:var(--on-fill); flex:0 0 auto; }
  .card.el-day { margin:12px 0 0; padding:16px 16px 18px; border-radius:var(--r-card);
    background:var(--card); box-shadow:var(--card-shadow); }
  .el-day:empty { display:none; }
  .el-day-date { margin:0; font-size:var(--fs-title); font-weight:var(--fw-h); color:var(--text); letter-spacing:-.01em; }
  .el-day-rate { display:flex; align-items:center; flex-wrap:wrap; gap:4px 7px; margin-top:4px; font-size:var(--fs-ui); }
  .el-day-w { display:inline-block; font-weight:600; color:var(--text); }
  .el-day-w::first-letter { text-transform:uppercase; }
  .el-day-num { color:var(--text-2); }
  .el-day-best { margin-top:8px; font-size:var(--fs-ui); color:var(--text); font-variant-numeric:tabular-nums; }
  .el-badges { display:flex; gap:5px; flex-wrap:wrap; margin-top:8px; }
  .el-badge { font-size:var(--fs-xs); font-weight:600; border-radius:var(--r-pill); padding:1px 8px; white-space:nowrap;
    background:var(--badge-bg); color:var(--badge-fg); }
  .el-badge--pos { background:var(--success-bg); color:var(--success); }
  .el-sec { margin-top:16px; min-width:0; }
  .el-sec-h { margin:0 0 6px; font-size:var(--fs-sm); font-weight:600; color:var(--text-2); }
  .el-day-cols { display:block; }

  .el-hours-bar { display:flex; align-items:stretch; height:40px; }
  .el-eseg { flex:1 1 0; min-width:0; border:0; padding:0; border-radius:2px; cursor:pointer;
    box-shadow:inset -1px 0 0 var(--card); transition:filter .12s; }
  .el-eseg:last-child { box-shadow:none; }
  .el-eseg.good, .el-lgs.good { background:var(--tone-harmony); }
  .el-eseg.ok, .el-lgs.ok { background:var(--tone-mixed); }
  .el-eseg.hard, .el-lgs.hard { background:var(--tone-tension); }
  @media (hover:hover){ .el-eseg:hover { filter:brightness(1.08); } }
  .el-eseg[aria-pressed="true"] { position:relative; z-index:1; outline:2px solid var(--accent); outline-offset:1px; }
  .el-eseg:focus-visible { position:relative; z-index:2; outline:2px solid var(--accent); outline-offset:3px; }
  .el-eax { position:relative; height:22px; margin-top:4px; }
  .el-eax.up { margin-top:0; margin-bottom:4px; }
  .el-etick { position:absolute; top:0; transform:translateX(-50%); text-align:center; }
  .el-etick.up { top:auto; bottom:0; }
  .el-etick i { display:block; width:1px; height:5px; background:var(--field-bd); margin:0 auto 2px; }
  .el-etick.up i { margin:2px auto 0; }
  .el-etick span { font-size:var(--fs-xs); color:var(--text); font-weight:600;
    font-variant-numeric:tabular-nums; white-space:nowrap; }
  .el-etick.soft span { color:var(--muted); font-weight:400; }
  .el-hours-lg { display:flex; gap:6px 16px; flex-wrap:wrap; margin-top:7px; font-size:var(--fs-sm); color:var(--text-2); }
  .el-hours-lg span { display:inline-flex; align-items:center; gap:7px; }
  .el-lgs { display:inline-block; flex:none; width:11px; height:11px; border-radius:3px; }
  .el-win.el-hours-busy { opacity:.55; transition:opacity .15s; }
  @media (prefers-reduced-motion: reduce) { .el-win.el-hours-busy, .el-eseg { transition:none; } }
  .el-wl { margin-top:10px; }
  .el-wr { display:grid; grid-template-columns:minmax(0, 1fr); width:100%; min-height:44px;
    margin:0; padding:9px 12px 9px 16px; border:0; background:none; font:inherit; color:var(--text);
    text-align:left; cursor:pointer; }
  .el-wr.good { --kt-color:var(--tone-harmony); }
  .el-wr.ok { --kt-color:var(--tone-mixed); }
  .el-wr.hard { --kt-color:var(--tone-tension); }
  .zb > .el-wr[aria-pressed="true"] { background:var(--tint-active); }
  .el-wr:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
  .el-wr-h { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; min-width:0; }
  .el-wr-t { font-size:var(--fs-ui); font-weight:700; font-variant-numeric:tabular-nums; }
  .el-wr-lv { display:inline-flex; align-items:center; gap:6px; font-size:var(--fs-sm); font-weight:600; }
  .el-wr-best { font-size:var(--fs-xs); font-weight:600; border-radius:var(--r-pill); padding:1px 8px;
    background:var(--accent); color:var(--on-fill); }
  .el-wr-sc { margin-left:auto; font-size:var(--fs-sm); color:var(--text-2); font-variant-numeric:tabular-nums; }
  .el-wr-why, .el-wr-g { font-size:var(--fs-sm); color:var(--text-2); }
  .el-wr-g b { color:var(--success); }

  .el-calc { margin-top:12px; border-top:1px solid var(--line-soft); padding-top:8px; }
  .el-calc > summary { font-size:var(--fs-sm); font-weight:700; color:var(--text-2);
    cursor:pointer; list-style:none; padding:2px 0; min-height:32px; display:flex; align-items:center; }
  .el-calc > summary::-webkit-details-marker { display:none; }
  .el-calc > summary::after { content:'▾'; margin-left:6px; color:var(--accent);
    display:inline-block; transition:transform .18s; }
  .el-calc[open] > summary::after { transform:rotate(180deg); }
  .el-calc-b { margin-top:6px; }
  .el-calc-row { display:flex; align-items:baseline; gap:10px; font-size:var(--fs-sm); color:var(--text-2); padding:3px 0; }
  .el-calc-row > span { flex:1 1 auto; min-width:0; }
  .el-calc-row > b { flex:0 0 auto; font-variant-numeric:tabular-nums; font-weight:700; }
  .el-calc-pos { color:var(--success); } .el-calc-neg { color:var(--tone-tension); }
  .el-calc-row.is-sum { border-top:1px solid var(--line); margin-top:2px; padding-top:5px; color:var(--text); }
  .el-calc-conv { margin-top:8px; padding:8px 10px; border-radius:var(--r-inner); background:var(--tint-soft); }
  .el-calc-conv-t { font-size:var(--fs-sm); line-height:1.45; color:var(--text-2); }
  .el-calc-conv .el-calc-note { margin-top:6px; }
  .el-calc-row.is-final { margin-top:4px; padding-top:0; color:var(--text); font-weight:600; }
  .el-calc-row.is-final > b { color:var(--accent); font-size:var(--fs-ui); }
  .el-calc-note { margin-top:8px; font-size:var(--fs-xs); line-height:1.45; color:var(--muted); }
  .el-calc-floor { font-size:var(--fs-xs); line-height:1.45; color:var(--error); margin-top:4px; }
  .el-facs { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:5px; }
  .el-fac { font-size:var(--fs-sm); color:var(--text-2); display:flex; gap:8px; align-items:baseline; }
  .el-fac-pt { flex:0 0 34px; font-weight:600; font-variant-numeric:tabular-nums; }
  .el-fac-pos { color:var(--success); }
  .el-fac-neg { color:var(--error); }
  .el-fac-personal { display:inline-block; background:var(--info-bg); color:var(--accent);
    border-radius:var(--r-pill); padding:0 6px; font-size:var(--fs-xs); font-weight:600; margin-right:4px; }
  .el-golden { padding:8px 10px; border-radius:var(--r-inner); background:var(--success-bg); }
  .el-golden .el-sec-h { color:var(--success); }
  .el-golden-n { font-size:var(--fs-sm); color:var(--muted); line-height:1.45; margin:0 0 6px; }
  .el-golden-l { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:3px; }
  .el-golden-l li { font-size:var(--fs-sm); color:var(--text-2); font-variant-numeric:tabular-nums; white-space:pre-wrap; }
  .el-golden:empty { display:none; }
  .el-day-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px 12px; }
  .el-day-head .el-day-date { flex:1 1 auto; min-width:0; }
  .el-day-pick { flex:none; display:inline-flex; align-items:center; gap:8px; min-height:44px; margin:0;
    padding:4px 14px 4px 7px; border:1.5px solid var(--accent); border-radius:var(--r-pill);
    background:var(--card); font:inherit; font-size:var(--fs-ui); font-weight:600; color:var(--accent);
    cursor:pointer; }
  .el-day-pick-l { display:inline-block; white-space:nowrap; }
  .el-day-pick-l::first-letter { text-transform:uppercase; }
  @media (hover:hover){ .el-day-pick:hover { background:var(--tint-hover); } }
  .el-day-pick[aria-pressed="true"] { background:var(--tint-selected); }
  .el-day-pick:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .el-day-pick .el-card-box { border-color:var(--accent); }
  .el-day-pick[aria-pressed="true"] .el-card-box { background:var(--accent); color:var(--on-fill); }
  .el-day-acts { display:grid; gap:8px; margin-top:12px; }
  .el-ask-day, .el-full-chart-btn, .el-calc-golden { display:flex; align-items:center; justify-content:center;
    min-height:46px; padding:0 20px; border:1px solid var(--field-bd); border-radius:var(--r-pill);
    background:var(--grey); color:var(--accent); font:inherit; font-size:var(--fs-ui); font-weight:600; cursor:pointer; }
  .el-ask-day svg { width:18px; height:18px; flex:none; margin-right:8px; }
  .el-calc-golden { margin-top:12px; color:var(--success); }
  .el-calc-golden:disabled { opacity:.6; cursor:default; }
  @media (hover:hover){
    .el-ask-day:hover, .el-full-chart-btn:hover { background:var(--hover-lav); border-color:var(--accent); }
  }
  .el-disclaimer { color:var(--muted); font-size:var(--fs-sm); line-height:1.6; margin:18px 0; }

  .el-goals-live { margin:0 0 16px; }
  .el-goals-live-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; min-height:20px; }
  .el-goals-live-lab { font-size:var(--fs-ui); font-weight:600; color:var(--text); }
  .el-goals-live-note { font-size:var(--fs-sm); color:var(--muted); margin-top:8px; }
  .el-goals-live-note.is-err { color:var(--error); }
  .el-goals-busy { display:none; align-items:center; gap:7px; font-size:var(--fs-sm); color:var(--muted); }
  .el-goals-live.is-busy .el-goals-busy { display:inline-flex; }
  .el-goals-sigil { width:18px; height:18px; flex:0 0 auto; }
  body:has(.el-goals-live.is-busy) :is(#el-res-slot, #el-all-slot) { opacity:.45; transition:opacity .15s;
    pointer-events:none; }

  @container elall (min-width:720px) {
    .el-all-cols { display:grid; grid-template-columns:340px minmax(0, 1fr); gap:20px; align-items:start; }
    .card.el-day { margin-top:0; padding:18px 20px 22px; }
  }
  @container elall (min-width:960px) {
    .el-all-cols { grid-template-columns:400px minmax(0, 1fr); gap:24px; }
    .card.el-day { padding:20px 24px 24px; }
  }
  .card.el-day { container:elday / inline-size; }
  @container elday (min-width:680px) {
    .el-day-cols { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:0 32px; align-items:start; }
    .el-day-acts { grid-auto-flow:column; justify-content:start; }
    .el-wr { grid-template-columns:112px 150px 200px minmax(0, 1fr); align-items:start; padding:10px 14px 10px 16px; }
    .el-wr-h { display:contents; }
    .el-wr-t { grid-column:1; }
    .el-wr-lv { grid-column:2; }
    .el-wr-sc { grid-column:3; margin-left:0; }
    .el-wr-why, .el-wr-g { grid-column:4; }
  }
  @media (max-width:640px) {
    .el-hours-bar { height:34px; }
    .el-eseg { border-radius:1px; }
  }

  .el-header { background:var(--card); border-radius:var(--r-card); box-shadow:var(--card-shadow);
               padding:16px 20px; margin:8px 0 16px; }
  .el-header-title { font-size:var(--fs-h2); font-weight:var(--fw-h); color:var(--text); letter-spacing:-0.01em; }
  .el-header-meta { font-size:var(--fs-sm); color:var(--text-2); margin-top:3px; }
  .el-header-personal { font-size:var(--fs-sm); color:var(--info-fg); background:var(--info-bg);
                        border:1px solid var(--info-bd); border-radius:var(--r-pill); padding:6px 10px; margin-top:10px; }
  .el-stick { position:sticky; bottom:0; z-index:20; margin:16px 0 0; padding:12px 16px 14px;
    background:var(--card); border-radius:var(--r-card) var(--r-card) 0 0; box-shadow:var(--shadow-pop); }
  .el-go { width:100%; max-width:none; min-height:48px; }

  @media (max-width: 640px) {
    .el-header { padding-left: 16px; padding-right: 16px; }
    body:has(.app-tabbar) .el-stick { bottom: calc(76px + env(safe-area-inset-bottom)); }
  }
  @media (min-width: 1025px) {
    #el-res-slot { display:flex; flex-direction:column; }
    .el-stick { order:-1; position:static; display:flex; align-items:center; justify-content:flex-end;
      gap:16px; margin:0 0 4px; padding:0; background:none; box-shadow:none; border-radius:0; }
    .el-go { width:auto; padding:0 28px; }
    .el-cmp { width:auto; margin:0; order:-1; }
  }
  
  .pchat-overlay { position:fixed; inset:0; background:var(--scrim); display:none;
    align-items:center; justify-content:center; z-index:1000; padding:16px; }
  .pchat-overlay.open { display:flex; }
  .pchat-modal { background:var(--card); border-radius:var(--r-card); padding:22px; max-width:460px; width:100%;
    max-height:90vh; overflow:auto; box-shadow:var(--shadow-modal); }
  .pchat-modal h3 { margin:0 0 14px; font-size:var(--fs-title); color:var(--text); font-weight:var(--fw-h); }
  .pchat-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:18px; }
  .pchat-start { background:var(--accent); color:var(--on-fill); border:none; border-radius:var(--r-pill);
    padding:11px 20px; font-size:var(--fs-ui); font-weight:600; cursor:pointer; }
  .pchat-start:hover { background:var(--accent-hover); }
  .pchat-cancel { background:var(--grey); color:var(--accent); border:1px solid var(--field-bd);
    border-radius:var(--r-pill); padding:11px 20px; font-size:var(--fs-ui); font-weight:600; cursor:pointer; }
  .pchat-cancel:hover { background:var(--hover-lav); border-color:var(--accent); }
  @media (max-width:640px) {
    .pchat-overlay { align-items:flex-end; padding:0; }
    .pchat-modal { max-width:none; max-height:92vh; border-radius:var(--r-sheet) var(--r-sheet) 0 0;
      padding:20px 16px calc(16px + env(safe-area-inset-bottom)); }
  }

  
  .bt-dd { width: 100%; }
  .bt-dd-opts { display: none; }
  .bt-dd-trigger { display: flex; align-items: center; justify-content: space-between;
    gap: 8px; width: 100%; cursor: pointer; background: var(--card);
    border: 1px solid var(--field-bd, var(--border)); border-radius: var(--r-field);
    padding: 11px 13px; color: var(--text); font-size: var(--fs-ui); font-family: inherit;
    text-align: left; transition: border-color .15s; }
  .bt-dd-trigger:hover { border-color: var(--accent); }
  .bt-dd-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .bt-dd-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bt-dd-chev { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
  .ds-picker-title { font-size: var(--fs-title); font-weight: var(--fw-h); color: var(--text);
    margin: 0 0 14px; text-align: left; padding-right: 24px; }
  .ds-picker-list { display: flex; flex-direction: column; gap: 2px; }
  .ds-picker-opt { display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 14px; border-radius: var(--r-inner); border: none; background: transparent;
    cursor: pointer; font-size: var(--fs-ui); font-family: inherit; color: var(--text);
    text-align: left; transition: background .12s; }
  .ds-picker-opt:hover { background: var(--tint-hover); }
  .ds-picker-opt.active { background: var(--tint-active); color: var(--accent); font-weight: 600; }
  .ds-picker-optname { flex: 1; }
  .ds-picker-check { width: 18px; height: 18px; color: var(--accent); opacity: 0; flex-shrink: 0; }
  .ds-picker-opt.active .ds-picker-check { opacity: 1; }

  
  .dp-wrap { width: 100%; }
  .dp-trigger .bt-dd-label.is-empty { color: var(--muted); }
  .dp-ico { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.dp-typed { display: flex; align-items: stretch; gap: 0; width: 100%;
    box-sizing: border-box; background: var(--card);
    border: 1px solid var(--field-bd, var(--border)); border-radius: var(--r-field);
    overflow: hidden; transition: border-color .12s; }

.dp-typed:focus-within { border-color: var(--accent); }

.dp-typed:has(input.is-bad) { border-color: var(--error); }
.dp-typed:has(input.is-bad):focus-within { border-color: var(--error); }
  .dp-typed input { flex: 1; min-width: 0; box-sizing: border-box;
    padding: 11px 13px; border: none; background: transparent;
    font-size: var(--fs-ui); font-family: inherit; color: var(--text); }
  .dp-typed input:focus { outline: none; }
  .dp-typed-cal { display: inline-flex; align-items: center; justify-content: center;
    width: 38px; flex-shrink: 0; cursor: pointer; background: var(--grey);
    border: none; border-left: 1px solid var(--field-bd, var(--border));
    color: var(--muted); transition: background .12s, color .12s; }
  .dp-typed-cal:hover { background: var(--hover-lav); color: var(--accent); }
  .dp-typed-cal:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .dp-typed-cal svg { width: 14px; height: 14px; opacity: .8; }
  .dp-typed input.is-bad { background: var(--error-bg); }
  .dp-trigger { display: none; }
  @media (pointer: coarse) {
    .dp-typed { display: none; }
    .dp-trigger { display: flex; }
  }
  .dp-modal { padding-top: 18px; padding-bottom: 14px; }
  .checkout-modal-overlay:has(.dp-modal),
  .pchat-overlay:has(.dp-modal) { align-items: flex-start; }
  .dp-modal { margin-top: 3vh; }
  .dp-titlerow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
  .dp-modal-title { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-h2);
    font-weight: var(--fw-h); color: var(--text); text-align: left;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dp-head { display: flex; align-items: center; gap: 2px; margin: 0 0 14px; }
  .dp-pencil { display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: none;
    background: transparent; border-radius: 9px; color: var(--muted);
    cursor: pointer; transition: background .12s, color .12s;
    margin-right: 14px; }
  .dp-pencil:hover { background: var(--tint-hover); color: var(--accent); }
  .dp-pencil:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .dp-pencil.is-on { background: var(--tint-active); color: var(--accent); }
  .dp-pencil svg { width: 22px; height: 22px; }
  .dp-skel { flex: 0 1 auto; min-width: 0; display: flex; align-items: center;
    gap: 2px; font-size: 19px; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; letter-spacing: .02em; }
  .dp-skel-sep { color: var(--muted); font-weight: 400; padding: 0 1px; }
  .dp-skel-void { color: var(--text); font-weight: 400; }
  .dp-skel-val { border: none; background: transparent; padding: 3px 6px;
    margin: 0 -3px; border-radius: 6px; font-size: 19px; font-weight: 600;
    font-family: inherit; color: var(--text); cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: rgba(79,55,135,.45);
    transition: background .12s, text-decoration-color .12s; }
  .dp-skel-val:hover { background: var(--tint-hover);
    text-decoration-color: var(--accent); }
  .dp-skel-val:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .dp-skel-cur { color: var(--text); padding: 3px 2px; }
  .dp-x { display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: none;
    background: transparent; border-radius: 9px; color: var(--muted);
    cursor: pointer; transition: background .12s, color .12s;
    margin-left: auto; }
  .dp-x:hover { background: var(--tint-hover); color: var(--text); }
  .dp-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .dp-x svg { width: 22px; height: 22px; }
  .dp-scroll { height: min(407px, calc(90vh - 142px));
    overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; }
  .dp-scroll.is-manual { overflow: visible; max-height: none; height: auto; }
  .dp-grid { display: grid; gap: 6px; }
  .dp-grid-year { grid-template-columns: repeat(3, 1fr); }
  .dp-grid-mon { grid-template-columns: repeat(2, 1fr); }
  .dp-grid-day { grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 48px); gap: 4px; }
  .dp-cell { display: flex; align-items: center; justify-content: center;
    min-height: 50px; padding: 6px 4px; border-radius: 10px; border: none;
    background: transparent; font-size: 20px; font-weight: 600;
    font-variant-numeric: tabular-nums; font-family: inherit;
    color: var(--text); cursor: pointer; transition: background .12s; }
  .dp-grid-day .dp-cell { min-height: 48px; font-size: 20px; }
  .dp-cell:hover { background: var(--tint-hover); }
  .dp-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .dp-cell.is-sel { background: var(--accent); color: var(--on-fill); font-weight: 600; }
  .dp-cell.is-today { box-shadow: inset 0 0 0 1px var(--field-bd); }
  .dp-cell.is-empty { visibility: hidden; cursor: default; }
  .dp-cell-mon { justify-content: flex-start; padding-left: 16px; }
  .dp-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
    margin-bottom: 6px; padding-bottom: 6px;
    border-bottom: 1px solid var(--line); }
  .dp-wd span { text-align: center; font-size: var(--fs-sm); color: var(--muted);
    font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    padding: 2px 0; }
  .dp-wd span.is-we { opacity: .55; }

  .dp-nav { display: flex; align-items: center; gap: 4px; margin: 0 0 10px; }
  .dp-nav-btn { display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: none;
    background: transparent; border-radius: 9px; color: var(--muted);
    cursor: pointer; transition: background .12s, color .12s; }
  .dp-nav-btn:hover { background: var(--tint-hover); color: var(--accent); }
  .dp-nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .dp-nav-btn svg { width: 22px; height: 22px; }
  .dp-nav-label { flex: 1; min-width: 0; text-align: center; font-size: var(--fs-ui);
    font-weight: 600; color: var(--text); letter-spacing: .01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  @media (prefers-reduced-motion: reduce) {
    .dp-nav-btn { transition: none; }
  }
  .dp-manual { display: flex; }
  .dp-manual input { width: 100%; box-sizing: border-box; padding: 12px 14px;
    border: 1px solid var(--field-bd); border-radius: var(--r-field); font-size: var(--fs-ui);
    font-family: inherit; color: var(--text); text-align: center;
    letter-spacing: .06em; }
  .dp-manual input:focus { outline: none; border-color: var(--accent); }
  .dp-manual input::placeholder { color: var(--muted); letter-spacing: .04em; }
  .dp-err { color: var(--error); font-size: var(--fs-sm); margin: 10px 0 0;
    min-height: 18px; }
  .dp-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

  
  html { scrollbar-gutter: stable; }
  html { scroll-padding-top: 82px; }
  *, *::before, *::after { box-sizing: border-box; }
  body { padding-top: 66px; margin-top: 0; }
  .app-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: var(--card); border-bottom: 1px solid transparent;
    transition: box-shadow .22s ease, border-color .22s ease; }
  .app-header.scrolled { border-bottom-color: var(--border);
    box-shadow: var(--shadow-lift); }
  body.canvas-grey .app-header { background: var(--grey); }
  body.canvas-grey .app-balance.level-ok,
  body.canvas-grey .app-balance.level-low,
  body.canvas-grey .app-balance.level-crit { background-color: var(--card); }
  body.canvas-grey .app-nav-link:hover { background: var(--card); }
  body.canvas-grey .lang-dd-trigger { background: transparent; border-color: var(--field-bd); }
  body.canvas-grey .lang-dd-trigger:hover { background: var(--hover-lav); border-color: var(--accent); }
  body.canvas-grey .app-login-btn { background: var(--card); border-color: var(--field-bd); }
  body.canvas-grey .app-login-btn:hover { background: var(--hover-lav); border-color: var(--accent); }
  .app-header-inner { max-width: 1232px; margin: 0 auto;
    padding: max(9px, env(safe-area-inset-top)) 16px 9px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .app-brand { display: flex; align-items: center; gap: 7px; text-decoration: none;
    min-width: 0; flex-shrink: 1; }
  .app-brand-logo { display: inline-flex; align-items: stretch; height: 1.9rem; flex-shrink: 0; }
  .app-brand-logo > .abf-box, .app-brand-logo > .app-brand-word { height: 100%; width: auto; display: block; }
  .app-brand-sygnet { display: none; height: 1.9rem; width: auto; flex-shrink: 0; }
  .abf-box { position: relative; aspect-ratio: 206 / 201; flex-shrink: 0; }
  .abf-box > .abf-img, .abf-box > .abf { position: absolute; inset: 0; width: 100%; height: 100%;
    display: block; overflow: visible; }
  .abf-box > .abf { visibility: hidden; }
  .abf-box.abf-live > .abf { visibility: visible; filter: invert(1); isolation: isolate; }
  .abf-box.abf-live > .abf-img { visibility: hidden; }
  .abf-box.abf-live .abf-pt path { mix-blend-mode: plus-lighter; }
  .abf-box.abf-hold > .abf-img { animation: abf-wait 0s 1.6s both; }
  @keyframes abf-wait { from { opacity: 0; } to { opacity: 1; } }
  .app-brand-name { font-size: var(--fs-title); font-weight: var(--fw-h); color: var(--accent);
    letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .app-header.is-brand-mark .app-brand-logo { display: none; }
  .app-header.is-brand-mark .app-brand-sygnet { display: block; }
  .app-header.is-brand-mark .app-brand { min-height: 44px; min-width: 44px; }
  .app-balance { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
    height: 44px; padding: 0 12px 0 10px; border: 2px solid transparent; background-clip: padding-box;
    border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 5px;
    font-variant-numeric: tabular-nums; text-decoration: none; flex-shrink: 0;
    transition: background .3s ease, color .3s ease; }
  .app-balance:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
  .app-balance-buy { display: none; color: var(--accent); padding-right: 8px; margin-right: 3px;
    border-right: 1px solid var(--line); }
  .app-balance.level-low .app-balance-buy, .app-balance.level-crit .app-balance-buy { display: inline; }
  .app-buy-l { display: none; }
  @media (min-width: 1280px) {
    .app-balance .app-buy-l { display: inline; }
    .app-balance:has(.app-buy-l) .app-buy-s { display: none; }
  }
  .app-acct-open { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; padding: 0;
    border: 2px solid transparent; background: var(--info-bg); background-clip: padding-box;
    box-shadow: inset 0 0 0 1.5px var(--tint-selected); color: var(--accent); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit; font-size: var(--fs-sm); font-weight: 700; line-height: 1; }
  .app-acct-open:hover { background-color: var(--hover-lav); }
  .app-acct-open[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
  .app-acct-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
  .app-acct-open-m { display: none; }
  .app-balance .balance-berry { width: 15.2px; height: 15.2px; flex-shrink: 0; display: block;
    background-color: currentColor; transform-origin: center bottom;
    -webkit-mask: url("/static/berry.svg") center / contain no-repeat;
    mask: url("/static/berry.svg") center / contain no-repeat; }
  .app-balance.level-ok   { color: var(--accent); background-color: var(--grey); }
  .app-balance.level-low  { color: var(--badge-fg); background-color: var(--grey); }
  .app-balance.level-crit { color: var(--c-relations-ink); background-color: var(--grey); }
  @keyframes berry-pulse { 0%{transform:scale(1)} 35%{transform:scale(1.18)} 100%{transform:scale(1)} }
  .app-balance.pulse .balance-berry { animation: berry-pulse .45s ease-out; }
  @media (prefers-reduced-motion: reduce) { .app-balance.pulse .balance-berry { animation: none; } }
  .app-nav-desktop { display: flex; align-items: center; gap: 4px; }
  .app-nav-link { font-size: var(--fs-sm); color: var(--text); text-decoration: none;
    padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
  .app-nav-link:hover { background: var(--grey); color: var(--accent); }
  .app-nav-link.active { color: var(--accent); font-weight: 600; }
  .lang-dd { position: relative; display: inline-flex; }
  .lang-dd-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--r-field); padding: 5px 9px;
    color: var(--text); font-size: var(--fs-sm); font-weight: 500; transition: background .15s, border-color .15s; }
  .lang-dd-trigger:hover { background: var(--hover-lav); border-color: var(--accent); }
  .lang-dd-code { letter-spacing: .02em; }
  .lang-dd-chev { width: 13px; height: 13px; color: var(--muted); transition: transform .18s ease; }
  .lang-dd.open .lang-dd-chev { transform: rotate(180deg); }
  @media (prefers-reduced-motion: reduce) { .lang-dd-chev { transition: none; } }
  .lang-dd-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--card);
    border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop);
    padding: 6px; min-width: 190px; z-index: 60; display: none; }
  .lang-dd.open .lang-dd-menu { display: block; }
  .lang-dd-opt { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
    font-size: var(--fs-ui); color: var(--text); text-decoration: none; }
  .lang-dd-opt:hover { background: var(--tint-hover); color: var(--accent); }
  .lang-dd-name { flex: 1; }
  .lang-dd-check { width: 16px; height: 16px; color: var(--accent); opacity: 0; }
  .lang-dd-opt.active { color: var(--accent); font-weight: 600; }
  .lang-dd-opt.active .lang-dd-check { opacity: 1; }
  .lang-dd-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .lang-flag { width: 19px; height: 13px; display: block; flex-shrink: 0; clip-path: inset(0 round 2.5px); }
  .app-lang-opt { display: none; }
  .app-lang-opt .lang-dd-trigger { height: 44px; padding: 0 12px; gap: 7px; border: 2px solid transparent;
    background-clip: padding-box; border-radius: var(--r-pill); background-color: var(--grey); font-weight: 600; }
  .app-lang-opt .lang-dd-trigger:hover { background-color: var(--hover-lav); }
  body.canvas-grey .app-lang-opt .lang-dd-trigger { background-color: var(--card); border-color: transparent;
    background-clip: padding-box; }
  body.canvas-grey .app-lang-opt .lang-dd-trigger:hover { background-color: var(--hover-lav); border-color: transparent;
    background-clip: padding-box; }
  .app-lang-opt .lang-dd-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
  .app-place { display: inline-flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2px; min-height: 44px; padding: 4px 8px;
    border-radius: 10px; color: var(--muted); text-decoration: none;
    font-size: var(--fs-xs); line-height: 1.2; white-space: nowrap; position: relative; }
  .app-place svg { width: 21px; height: 21px; flex-shrink: 0; }
  .app-place:hover { color: var(--accent); background: var(--grey); }
  body.canvas-grey .app-place:hover { background: var(--card); }
  .app-place.on { color: var(--accent); font-weight: 600; }
  .app-place-lbl { padding-bottom: 1px; border-bottom: 2px solid transparent; }
  .app-place.on .app-place-lbl { border-bottom-color: var(--accent); }
  .app-place:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .app-new-open { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
    border: 2px solid transparent; background: var(--accent); background-clip: padding-box;
    color: var(--on-fill); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0; }
  .app-new-open svg { width: 20px; height: 20px; flex-shrink: 0; }
  .app-new-open:hover { background-color: var(--accent-hover); }
  .app-new-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
  .app-new-open-m { display: none; }
  .app-new-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }
  .app-topback, .app-top-title { display: none; }
  .int-portrait { color: var(--c-portrait); }
  .int-relations { color: var(--c-relations); }
  .int-timing { color: var(--c-timing); }
  .int-variants { color: var(--c-variants); }
  .int-relations svg, .int-timing svg { stroke-width: 2.4; }
  .app-tabbar { display: none; }
  .app-sheet-bd { position: fixed; inset: 0; background: var(--scrim); z-index: 950;
    opacity: 0; pointer-events: none; transition: opacity .24s ease; }
  .app-sheet-bd.open { opacity: 1; pointer-events: auto; }
  .app-sheet { position: fixed; z-index: 960; background: var(--card);
    left: 50%; top: 50%; width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 32px); overflow-y: auto;
    border-radius: var(--r-card); padding: 12px 12px 16px;
    transform: translate(-50%, -48%); opacity: 0; visibility: hidden;
    transition: transform .24s cubic-bezier(.4,0,.2,1), opacity .24s ease, visibility 0s linear .24s; }
  .app-sheet.open { transform: translate(-50%, -50%); opacity: 1; visibility: visible;
    box-shadow: var(--shadow-modal);
    transition: transform .24s cubic-bezier(.4,0,.2,1), opacity .24s ease, visibility 0s; }
  .app-sheet-head { display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 4px 4px 8px 8px; }
  .app-sheet-title { font-size: var(--fs-title); font-weight: var(--fw-h); color: var(--text); margin: 0; }
  .app-sheet-close { width: 44px; height: 44px; border: none; background: none; border-radius: 50%;
    font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; flex-shrink: 0; }
  .app-sheet-close:hover { background: var(--grey); color: var(--accent); }
  .app-sheet-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .app-sheet-list { display: flex; flex-direction: column; gap: 2px; }
  .app-sheet-opt { display: flex; align-items: center; gap: 14px; min-height: 52px;
    padding: 10px 12px; border-radius: var(--r-inner); color: var(--text); text-decoration: none;
    font-size: var(--fs-ui); }
  .app-sheet-opt:hover { background: var(--tint-hover); color: var(--accent); }
  .app-sheet-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .app-sheet-opt-ico { width: 24px; height: 24px; flex-shrink: 0; display: inline-flex; }
  .app-sheet-opt-ico svg { width: 24px; height: 24px; }
  body.sheet-open { overflow: hidden; }
  @media (prefers-reduced-motion: reduce) {
    .app-sheet, .app-sheet.open, .app-sheet-bd { transition: none; } }
  .acct-menu { display: flex; flex-direction: column; }
  .acct-id { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-inner);
    background: var(--grey); color: var(--text); text-decoration: none; margin-bottom: 6px; }
  .acct-id:hover { background: var(--hover-lav); }
  .acct-id:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .acct-mono { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-fill);
    font-size: var(--fs-ui); font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; }
  .acct-id-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .acct-id-name { font-size: var(--fs-ui); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
  .acct-id-sub { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.35; overflow-wrap: anywhere; }
  .acct-chev { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
  .acct-list { display: flex; flex-direction: column; gap: 2px; }
  .acct-row { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 12px;
    border-radius: var(--r-inner); color: var(--text); text-decoration: none; font-size: var(--fs-ui); }
  .acct-row:hover { background: var(--tint-hover); color: var(--accent); }
  .acct-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .acct-row > svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); }
  .acct-row:hover > svg { color: var(--accent); }
  .acct-lbl { flex: 1; min-width: 0; }
  .acct-meta { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
  .acct-berry { width: 20px; height: 20px; flex-shrink: 0; background-color: var(--muted);
    -webkit-mask: url("/static/berry-outline.svg") center / contain no-repeat;
    mask: url("/static/berry-outline.svg") center / contain no-repeat; }
  .acct-row:hover .acct-berry { background-color: var(--accent); }
  .acct-lang { display: block; }
  .acct-lang > summary { cursor: pointer; list-style: none; }
  .acct-lang > summary::-webkit-details-marker { display: none; }
  .acct-dd { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; transition: transform .2s ease; }
  .acct-lang[open] .acct-dd { transform: rotate(180deg); }
  @media (prefers-reduced-motion: reduce) { .acct-dd { transition: none; } }
  .acct-meta-lang { display: inline-flex; align-items: center; gap: 8px; }
  .acct-lang-opt { padding-left: 46px; }
  .acct-lang-opt.on { color: var(--accent); font-weight: 600; }
  .acct-check { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
  .acct-sep { height: 1px; background: var(--line); margin: 6px 12px; }
  .acct-out, .acct-out > svg { color: var(--error); }
  .acct-out:hover { background: var(--error-bg); color: var(--error); }
  .acct-out:hover > svg { color: var(--error); }
  .acct-small { margin: 6px 12px 2px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.9; }
  .acct-small a { color: var(--muted); text-decoration: none; white-space: nowrap; }
  .acct-small a:hover { color: var(--accent); text-decoration: underline; }
  .acct-guest { display: grid; gap: 8px; padding: 2px 0 10px; }
  .acct-guest-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    padding: 0 18px; border-radius: var(--r-pill); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; }
  .acct-guest-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
  .acct-guest-in { background: var(--accent); color: var(--on-fill); }
  .acct-guest-in:hover { background: var(--accent-hover); }
  .acct-guest-reg { background: var(--grey); color: var(--accent); }
  .acct-guest-reg:hover { background: var(--hover-lav); }
  .acct-guest-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .app-acct-guest svg { width: 22px; height: 22px; }
  .app-login-btn { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm);
    font-weight: 600; color: var(--accent); background: var(--grey);
    border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px 14px; text-decoration: none;
    transition: background .15s, border-color .15s; }
  .app-login-btn:hover { background: var(--hover-lav); border-color: var(--accent); }
  .app-login-btn svg { width: 16px; height: 16px; }
  .app-balance-mobile { display: none; }
  .app-places-top { display: none; }
  @media (min-width: 641px) {
    .app-places-top { display: flex; flex: 1 0 auto; justify-content: center; align-items: center;
      gap: 4px; }
    .app-acct { left: auto; top: 60px; right: max(16px, calc((100% - 1232px) / 2 + 16px));
      width: 340px; max-height: calc(100vh - 76px); padding: 10px;
      transform: translateY(-6px); }
    .app-acct.open { transform: translateY(0); box-shadow: var(--shadow-pop); }
    .app-acct .app-sheet-head { display: none; }
    .app-sheet-bd.app-acct-bd { background: transparent; }
  }
  @media (min-width: 641px) and (max-width: 1023px) {
    .app-header.is-guest .app-places-top { gap: 0; }
    .app-header.is-guest .app-places-top .app-place { padding-left: 4px; padding-right: 4px; }
  }
  @media (min-width: 641px) and (max-width: 1279px) {
    .app-header .app-brand-logo { display: none; }
    .app-header .app-brand-sygnet { display: block; }
  }
  @media (min-width: 1024px) {
    .app-places-top .app-place { flex-direction: row; gap: 6px; font-size: var(--fs-ui);
      padding: 7px 10px; }
    .app-places-top .app-place svg { width: 17px; height: 17px; }
    .app-lang-opt { display: inline-flex; }
    .app-nav-desktop:has(.app-new-open-top) { gap: 8px; }
    .app-new-open-top { margin-right: 12px; }
  }
  @media (min-width: 1280px) {
    .app-new-open-top { width: auto; gap: 7px; padding: 0 18px 0 13px; border-radius: var(--r-pill);
      font-family: inherit; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
    .app-new-open-top .app-new-lbl { position: static; width: auto; height: auto; overflow: visible;
      clip-path: none; }
  }
  @media (max-width: 640px) {
    body { overflow-x: hidden; }
    .app-nav-desktop { display: none; }
    .app-balance-unit { display: none; }
    .app-balance { padding: 0 9px 0 7px; }
    .app-balance-mobile { display: inline-flex; }
    .app-acct-open-m { display: inline-flex; }
    .app-header-inner { gap: 8px; }
    .app-header-actions { gap: 4px; }
    .app-brand { gap: 5px; }
    .app-brand-logo { height: 1.46rem; }
    .app-header:not(.is-brand-mark):has(.app-balance-mobile.level-low) .app-brand-logo,
    .app-header:not(.is-brand-mark):has(.app-balance-mobile.level-crit) .app-brand-logo { display: none; }
    .app-header:not(.is-brand-mark):has(.app-balance-mobile.level-low) .app-brand-sygnet,
    .app-header:not(.is-brand-mark):has(.app-balance-mobile.level-crit) .app-brand-sygnet { display: block; height: 1.7rem; }
    .app-new-open-m { display: inline-flex; }
    .app-topback { display: inline-flex; align-items: center; justify-content: center; position: relative;
      width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
      border: 2px solid transparent; background: var(--accent); background-clip: padding-box;
      color: var(--on-fill); text-decoration: none; }
    .app-topback:hover { background-color: var(--accent-hover); }
    .app-topback svg { width: 20px; height: 20px; display: block; }
    .app-topback-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden;
      clip-path: inset(50%); white-space: nowrap; }
    .app-topback:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
    .app-header.is-brand-mark .app-brand-sygnet { height: 1.7rem; }
    .app-topback ~ .app-brand .app-brand-logo,
    .app-topback ~ .app-brand .app-brand-sygnet { display: none; }
    .app-topback ~ .app-brand .app-beta-badge { margin-left: 0; }
    body:has(.app-topback) .rec-back { display: none; }
    .app-header.scrolled .app-top-title { display: block; flex: 1 1 auto; min-width: 0;
      margin-right: auto; font-size: var(--fs-title); font-weight: var(--fw-h); color: var(--text);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .app-header.scrolled .app-brand:has(+ .app-top-title) .app-brand-logo { display: none; }
    .app-header.scrolled .app-brand:has(+ .app-top-title) .app-brand-sygnet { display: block; height: 1.7rem; }
    .app-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
      background: var(--card); border-top: 1px solid var(--border);
      padding: 2px 2px env(safe-area-inset-bottom); }
    .app-tabbar .app-place { flex: 1 1 0; min-width: 0; min-height: 54px; padding: 4px 0;
      border-radius: 0; }
    .app-tabbar .app-place:hover { background: none; }
    .app-tabbar .app-place-lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    body:has(.app-tabbar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    body:has(.app-tabbar) .cookie-consent { bottom: calc(68px + env(safe-area-inset-bottom)); }
    .app-sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto;
      max-height: 85vh; border-radius: var(--r-sheet) var(--r-sheet) 0 0;
      padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
      transform: translateY(100%); opacity: 1; }
    .app-sheet.open { transform: translateY(0); opacity: 1;
      box-shadow: 0 -10px 40px rgba(20,20,40,.18); }
  }
  .app-beta-badge {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em;
    color: var(--on-fill); background: #8184BB; border-radius: var(--r-pill);
    padding: 2px 8px; white-space: nowrap; align-self: center;
    margin-left: 6px; line-height: 1.3; text-transform: uppercase;
    min-width: 0; overflow: hidden; text-overflow: ellipsis;
  }
  @media (max-width: 640px) {
    .app-beta-badge { font-size: 0.56rem; padding: 1px 6px; margin-left: 0; }
  }
  .cookie-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200;
    max-width: 720px; margin: 0 auto; display: none; align-items: center; gap: 16px;
    flex-wrap: wrap; justify-content: space-between; background: var(--card);
    border: 1px solid var(--border); border-radius: var(--r-card);
    box-shadow: var(--shadow-pop); padding: 14px 18px; }
  .cookie-consent.show { display: flex; }
  .cookie-consent-text { font-size: var(--fs-ui); color: var(--muted); line-height: 1.5; flex: 1 1 260px; }
  .cookie-consent-text a { color: var(--accent); text-decoration: underline; }
  .cookie-consent-ok { flex-shrink: 0; background: var(--accent); color: var(--on-fill); border: none;
    border-radius: var(--r-pill); padding: 9px 20px; font-size: var(--fs-ui); font-weight: 600; cursor: pointer; }
  .cookie-consent-ok:hover { background: var(--accent-hover); }
  .legal-footer { text-align: center; font-size: var(--fs-sm); margin-top: 48px; line-height: 2; }
  .legal-footer a { color: var(--muted); text-decoration: none; white-space: nowrap; }
  .legal-footer a:hover { color: var(--accent); text-decoration: underline; }
  .legal-footer-sep { color: var(--border); margin: 0 10px; }
  .legal-footer-copy { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
  .legal-footer-ver { margin-top: 4px; font-size: var(--fs-xs); color: var(--muted);
                      font-variant-numeric: tabular-nums; }
  .fb-overlay { display: none; position: fixed; inset: 0; z-index: 1000;
    background: var(--scrim); align-items: center; justify-content: center; padding: 20px; }
  .fb-overlay.open { display: flex; }
  .fb-modal { position: relative; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
    box-sizing: border-box; padding: 32px 28px 28px; background: var(--bg);
    border-radius: var(--r-card); box-shadow: var(--shadow-modal); text-align: left; }
  .fb-close { position: absolute; top: 8px; right: 8px; min-width: 44px; min-height: 44px;
    background: none; border: none; font-size: var(--fs-h2); line-height: 1; color: var(--muted);
    cursor: pointer; font-family: inherit; }
  .fb-close:hover { color: var(--text); }
  .fb-title { margin: 0 0 12px; font-size: var(--fs-title); font-weight: var(--fw-h);
    color: var(--text); text-align: center; }
  .fb-intro { margin: 0 0 14px; font-size: var(--fs-ui); line-height: 1.5; color: var(--text-2); }
  .fb-textarea { display: block; width: 100%; min-height: 140px; box-sizing: border-box; resize: vertical;
    padding: 12px 14px; border: 1px solid var(--field-bd); border-radius: var(--r-field);
    background: var(--card); color: var(--text); font-family: inherit; font-size: var(--fs-read);
    line-height: 1.5; }
  .fb-textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
  .fb-textarea::placeholder { color: var(--muted); }
  .fb-error { display: none; margin: 8px 0 0; font-size: var(--fs-sm); color: var(--error); }
  .fb-success { display: none; font-size: var(--fs-ui); line-height: 1.5; color: var(--success); text-align: center; }
  .fb-buttons { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; }
  .fb-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-height: 44px; padding: 0 24px; border-radius: var(--r-pill); border: 1px solid var(--field-bd);
    background: var(--card); color: var(--accent); font-family: inherit; font-size: var(--fs-ui);
    font-weight: 600; cursor: pointer; }
  .fb-btn:hover { background: var(--hover-lav); border-color: var(--accent); }
  .fb-btn-primary { background: var(--accent); color: var(--on-fill); border-color: transparent; }
  .fb-btn-primary:hover { background: var(--accent-hover); border-color: transparent; }
  .fb-btn:disabled { opacity: .6; cursor: default; }
  .fb-btn:focus-visible, .fb-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  @media (max-width: 480px) {
    .fb-overlay { padding: 12px; }
    .fb-modal { padding: 24px 18px 20px; }
    .fb-buttons { flex-direction: column; gap: 8px; }
    .fb-btn { width: 100%; }
  }

  
  [class*="btn-"][class*="btn-"], .bt-buy { border-radius: var(--r-pill); }
  .btn-secondary-small, .btn-primary-small {
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box; min-height: 36px;
    padding: 0 16px; border-radius: var(--r-pill);
    font-size: var(--fs-sm); font-weight: 600; font-family: inherit; cursor: pointer;
  }
  .btn-secondary-small { background: var(--grey); color: var(--accent);
                          border: 1px solid var(--field-bd); }
  .btn-secondary-small:hover { background: var(--hover-lav); border-color: var(--accent); }
  body.canvas-grey .btn-secondary-small { background: var(--card); }
  body.canvas-grey .btn-secondary-small:hover { background: var(--hover-lav); }
  .btn-primary-small { background: var(--accent); color: var(--on-fill);
                        border: 1px solid transparent; }
  .btn-primary-small:hover { background: var(--accent-hover); }
  [class*="btn-"], .bt-buy { font-size: var(--fs-ui); font-weight: 600; }
  [class*="btn-"], .bt-buy { transition: background .15s ease, border-color .15s ease, color .15s ease, transform .06s ease; }
  [class*="btn-"]:active:not(:disabled), .bt-buy:active:not(:disabled) { transform: translateY(1px); }
  [class*="btn-"]:focus-visible, .bt-buy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .ask-ico { width: 18px; height: 18px; flex: none; margin-right: 8px; vertical-align: -4px; }

  
  .geo2-box { width: 100%; position: relative; }
  .geo2-box > input { width: 100%; display: block; box-sizing: border-box; }
  .geo2-results { display: none; margin-top: -1px; background: var(--card);
    border: 1px solid var(--accent); border-top: none;
    border-radius: 0 0 var(--r-field) var(--r-field);
    --geo2-row: 59.25px;
    --geo2-hint: 31px;
    --geo2-avail: 62vh;
    max-height: min(calc(8 * var(--geo2-row) + var(--geo2-hint)), var(--geo2-avail));
    overflow-y: auto;
    box-shadow: var(--shadow-pop); }
  .geo2-results.geo2-open { display: block; }
  .geo2-item { padding: 9px 14px; cursor: pointer; background: var(--card);
    border-bottom: 1px solid var(--field-bd); transition: background .1s; }
  .geo2-item:last-child { border-bottom: none; }
  .geo2-item.geo2-active { background: var(--info-bg); }
  @media (hover:hover){ .geo2-item:hover { background: var(--tint-hover); } }
  .geo2-name { font-weight: 600; color: var(--text); }
  .geo2-size { font-weight: 400; color: var(--accent); font-size: .82em;
    margin-left: 6px; text-transform: lowercase; }
  .geo2-region { font-weight: 400; color: var(--muted); font-size: .88em; }
  .geo2-hist { display: inline-block; margin-left: 6px; font-size: .8em;
    color: var(--warn-fg); background: var(--warn-bg); border-radius: 4px; padding: 0 5px; }
  .geo2-coords { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
  .geo2-msg { font-size: var(--fs-sm); color: var(--muted); padding: 10px 14px; }
  .geo2-hint { font-size: var(--fs-xs); color: var(--muted); padding: 6px 14px;
    border-top: 1px solid var(--field-bd); background: var(--grey); }
  .geo2-hint.geo2-hint-alt { background: var(--warn-bg);
    border-top-color: var(--warn-bd); }
  input.geo2-picked { border-color: var(--success) !important; }
  .geo2-status { display: none; margin-top: 8px; font-size: var(--fs-sm);
    align-items: center; gap: 8px; flex-wrap: wrap; }
  .geo2-status.geo2-on { display: flex; }
  .geo2-status .geo2-check { color: var(--success); font-weight: 700; }
  .geo2-status .geo2-txt { color: var(--text-2); }
  .geo2-status .geo2-change { background: none; border: none; padding: 0; cursor: pointer;
    color: var(--accent); text-decoration: underline; font-size: var(--fs-sm); font-family: inherit; }

  
  .help-hint { position:relative; display:inline-flex; vertical-align:middle; }
  .help-btn { position:relative; width:22px; height:22px; border-radius:50%; border:1.5px solid var(--muted);
    background:transparent; color:var(--muted); font-size:var(--fs-sm); font-weight:700; line-height:1;
    cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
    padding:0; font-family:inherit; transition:background .12s, color .12s, border-color .12s; flex:0 0 auto; }
  .help-btn::after { content:""; position:absolute; inset:-4px; border-radius:50%; }
  .help-btn:hover, .help-hint.open .help-btn { background:var(--accent); border-color:var(--accent); color:var(--on-fill); }
  .help-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .help-legend-link { background:none; border:none; padding:0; margin:0; cursor:pointer;
    color:var(--accent); font-size:var(--fs-ui); font-weight:600; font-family:inherit;
    text-decoration:none; display:inline-flex; align-items:center; gap:5px; }
  .help-legend-link::before { content:''; width:13px; height:13px; flex:0 0 auto;
    background:no-repeat center / contain;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F3787' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8h.01M11 12h1v4h1'/%3E%3C/svg%3E"); }
  .help-legend-link:hover { text-decoration:underline; }
  .help-pop { display:none; position:absolute; top:32px; left:0; z-index:60;
    width:min(300px, 82vw); background:var(--card); border:1px solid var(--field-bd);
    border-radius:10px; box-shadow:var(--shadow-pop);
    padding:13px 34px 13px 15px;
    font-size:var(--fs-sm); line-height:1.55; color:var(--text-2); font-weight:400;
    text-align:left; white-space:normal; }
  .help-pop-x { position:absolute; top:5px; right:5px; width:26px; height:26px;
    display:inline-flex; align-items:center; justify-content:center; padding:0;
    border:0; background:none; color:var(--muted); border-radius:8px;
    cursor:pointer; line-height:0; }
  .help-pop-x:hover { background:var(--grey); color:var(--text); }
  .help-pop--wide { width:min(360px, 86vw); }
  .help-pop-p { display:block; margin-top:8px; }
  .help-faq-row { display:block; margin-top:10px; }
  .help-faq-link { display:inline-block; color:var(--accent);
    font-weight:600; text-decoration:none; }
  .help-faq-link:hover { text-decoration:underline; }
  .help-set-row { display:block; margin-top:10px; color:var(--text-2); }
  .help-set-link { display:inline-block; color:var(--accent);
    font-weight:600; text-decoration:none; }
  .help-set-link:hover { text-decoration:underline; }
  .help-hint.open .help-pop { display:block; }
  .help-hint.help-pop-right .help-pop { left:auto; right:0; }
  .help-legend-trigger { margin:0 0 18px; }
  .help-legend-title { font-size:var(--fs-sm); font-weight:700; color:var(--text); margin:0 0 10px; }
  .help-legend-dots { display:inline-flex; gap:3px; margin-right:2px; }
  .help-legend-dots b { width:8px; height:8px; border-radius:50%; display:inline-block; }
  .help-hint--legend .help-legend-link::before { display:none; }
  .legend-row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
  .legend-settings-link { white-space:nowrap; }
  .legend-warn { display:block; margin:10px 0 0; font-size:var(--fs-sm);
    color:var(--text-2); line-height:1.5; }
  @media (max-width:640px) {
    .help-btn { width:24px; height:24px; }
    .help-btn::after { inset:-10px; }
    .help-legend-link { padding:5px 11px; border-radius:14px; background:var(--grey);
      border:1px solid var(--field-bd); position:relative; }
    .help-legend-link::after { content:""; position:absolute; inset:-6px -4px; }
    .help-legend-link:hover { background:var(--hover-lav); text-decoration:none; }
    .help-pop, .help-pop--wide { position:fixed; left:8px; right:8px; top:auto;
      width:auto; max-width:none; max-height:70vh; overflow-y:auto;
      -webkit-overflow-scrolling:touch; }
    .help-hint.help-pop-right .help-pop { left:8px; right:8px; }
  }
