
  
  :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);
    --ring-soft:     rgba(79,55,135,.28);
    --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);
    --ty-tile:  rgba(255,255,255,.1);
    --ty-bd:    rgba(255,255,255,.3);
    --hh-fire:  #f7aaa0;  --hh-earth: #a9ddab;  --hh-air: #f9cf92;  --hh-water: #abcdf6;
    --hh-harm:  #9fd8a4;  --hh-tense: #f2a59b;
    --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; }

  :root { --bg: var(--card); }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { background: var(--bg); }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: var(--fs-ui);
    max-width: 1232px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 19px 16px 40px;
  }
  .container { max-width: 1200px; margin: 0 auto; }


  
  html { scrollbar-gutter: stable; }
  html { scroll-padding-top: 82px; }
  *, *::before, *::after { box-sizing: border-box; }
  button, input, select, textarea { font-family: inherit; }
  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; }

  
  .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; }
  }
  
  .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-later { display: block; margin: 14px auto 0; min-height: 44px; padding: 6px 10px;
    background: none; border: 0; font: inherit; font-size: var(--fs-sm); color: var(--muted);
    text-decoration: underline; cursor: pointer; }
  .acc-modal-later[hidden] { display: none; }
  .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; }
  .rel-modal-sub { margin:-4px 0 14px; font-size:var(--fs-sm); color:var(--muted); line-height:1.5; }
  .rel-clear-link { background:none; border:none; color:var(--error); font-size:var(--fs-ui);
    cursor:pointer; margin-right:auto; padding:8px 2px; }
  .rel-clear-link:hover { text-decoration:underline; }
  
  .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; }
  }
  .chat-convo-name { display:flex; align-items:center; gap:2px; min-width:0; }
  .chat-convo-name .ccn-text { font-size:var(--fs-h2); font-weight:var(--fw-h); letter-spacing:-0.01em;
    line-height:1.2; color:var(--text); overflow-wrap:anywhere; }
  .chat-convo-name .ccn-text.is-empty { color:var(--accent); text-decoration:underline;
    text-underline-offset:3px; cursor:pointer; }
  .ccn-pencil { background:none; border:none; padding:8px; margin:0; cursor:pointer;
    line-height:0; color:var(--accent); flex:0 0 auto; border-radius:var(--r-inner); }
  .ccn-pencil:hover { background:var(--grey); }
  .ccn-pencil[hidden] { display:none; }
  .cv-avs { display:inline-flex; flex:none; }
  .cv-avs[hidden] { display:none; }
  .cv-av { width:36px; height:36px; border-radius:50%; object-fit:cover; object-position:center 12%;
    flex:none; background:var(--grey); }
  .cv-avs .cv-av + .cv-av { margin-left:-12px; box-shadow:0 0 0 2px var(--card); }
  .cv-id-txt { display:flex; flex-direction:column; min-width:0; line-height:1.2; text-align:left; }
  .cv-id-t { font-size:var(--fs-ui); font-weight:600; color:var(--text); white-space:nowrap;
    overflow:hidden; text-overflow:ellipsis; }
  .cv-id-s { font-size:var(--fs-sm); color:var(--text-2); white-space:nowrap; overflow:hidden;
    text-overflow:ellipsis; }
  .cv-hdr-id, .cv-astro, .cv-id { border:0; background:none; padding:0; font:inherit; color:inherit;
    cursor:pointer; border-radius:var(--r-inner); }
  .cv-hdr-id:focus-visible, .cv-astro:focus-visible, .cv-id:focus-visible,
  .cv-more:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .cv-more { width:44px; height:44px; border-radius:50%; border:1px solid var(--field-bd);
    background:var(--card); color:var(--accent); display:inline-flex; align-items:center;
    justify-content:center; cursor:pointer; padding:0; flex:none; }
  .cv-more svg { width:22px; height:22px; }
  .cv-more:hover { background:var(--hover-lav); border-color:var(--accent); }
  .cv-more[hidden], .cv-hdr-id[hidden] { display:none; }
  .app-header .cv-hdr-id, .app-header .cv-hdr-more, .app-header .cv-back-m { display:none; }
  .cv-bar { position:sticky; top:66px; z-index:16; background:var(--grey);
    box-shadow:-6px 0 0 var(--grey), 6px 0 0 var(--grey);
    display:flex; align-items:center; gap:12px; padding:10px 0 12px; margin:0 0 4px; }
  .cv-bar[hidden] { display:none; }
  .cv-bar::before { content:''; position:absolute; left:-6px; right:-6px; bottom:100%; height:12px;
    background:var(--grey); }
  .cv-bar .rec-back { margin:0; flex:none; }
  .cv-bar .rec-back[hidden] { display:none; }
  .cv-bar .cv-id { display:flex; align-items:center; gap:12px; flex:1 1 auto; min-width:0;
    padding:2px 6px 2px 2px; }
  .cv-bar .cv-id:hover { background:var(--tint-hover); }
  .cv-bar .cv-av { width:44px; height:44px; }
  .cv-bar .cv-id-t { font-size:var(--fs-title); }
  .cv-head { display:none; }
  @media (min-width: 641px) {
    body.cv-on { --cv-bar-h: 70px; }
    body.cv-on .cv-bar, body.cv-on #chat-card, body.cv-on .page-disclaimer {
      max-width:800px; margin-left:auto; margin-right:auto; }
  }
  @media (max-width: 640px) {
    body.cv-on .cv-bar { display:none; }
    body.cv-on .app-header .app-acct-open-m { display:none; }
    body.cv-has-back .app-header .app-brand { display:none; }
    .app-header .cv-back-m { display:inline-flex; order:-1; }
    .app-header .cv-back-m[hidden] { display:none; }
    body.cv-on .app-header .cv-hdr-id { display:flex; align-items:center; gap:10px;
      flex:1 1 auto; min-width:0; margin:0 4px 0 10px;
      opacity:0; transform:translateY(6px); pointer-events:none;
      transition:opacity .18s ease, transform .18s ease; }
    body.cv-on .app-header.past-anchor .cv-hdr-id { opacity:1; transform:none; pointer-events:auto; }
    body.cv-on .app-header .cv-hdr-more { display:inline-flex; width:40px; height:40px; }
    body.cv-on .app-header .cv-hdr-more[hidden] { display:none; }
    body.cv-on .app-header-actions { gap:8px; margin-left:auto; }
    body.cv-on .cv-head { display:grid; grid-template-columns:minmax(0, 1fr) auto;
      align-items:center; column-gap:12px; margin:2px 0 18px; }
    body.cv-on .cv-head[hidden] { display:none; }
  }
  @media (prefers-reduced-motion: reduce) { .app-header .cv-hdr-id { transition:none; } }
  .cv-txt { min-width:0; }
  .cv-of { display:flex; align-items:center; gap:6px; margin:0 0 4px; min-width:0;
    font-size:var(--fs-sm); color:var(--text-2); text-decoration:none; line-height:1.35; }
  .cv-of[href]:hover .cv-of-name { text-decoration:underline; }
  .cv-of-pic { display:inline-flex; flex:none; }
  .cv-of-pic .chart-pictogram { display:inline-flex; width:16px; height:16px; color:var(--c-portrait); }
  .cv-of-pic .chart-pictogram svg { width:16px; height:16px; }
  .cv-of-pic .chart-pictogram.pic-relations { color:var(--c-relations); }
  .cv-of-pic .chart-pictogram.pic-timing { color:var(--c-timing); }
  .cv-of-pic .chart-pictogram.pic-variants { color:var(--c-variants); }
  .cv-of-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cv-meta { margin-top:4px; font-size:var(--fs-sm); color:var(--text-2); line-height:1.4; }
  .cv-meta:empty { display:none; }
  .cv-astro { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:60px; }
  .cv-astro .cv-av { width:56px; height:56px; box-shadow:var(--shadow-lift); }
  .cv-astro .cv-avs .cv-av { width:50px; height:50px; }
  .cv-astro .cv-avs .cv-av + .cv-av { margin-left:-16px; }
  .cv-astro-n { font-size:var(--fs-sm); font-weight:600; color:var(--text); line-height:1.1; }
  .cv-sh-id { display:flex; align-items:center; gap:12px; min-width:0; flex:1 1 auto; }
  .cv-sh-id .cv-av { width:44px; height:44px; }
  .cv-sh-id .app-sheet-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cv-acts .app-sheet-opt { background:none; border:0; width:100%; text-align:left;
    cursor:pointer; font-family:inherit; }
  .cv-acts .app-sheet-opt-ico { color:var(--accent); }
  .cv-acts .app-sheet-opt[hidden] { display:none; }
  .cv-acts .cv-act-danger, .cv-acts .cv-act-danger .app-sheet-opt-ico { color:var(--error); }
  .cv-info { padding:0 8px 4px; }
  .cv-info-astro { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
  .cv-info-astro .cv-av { width:56px; height:56px; }
  .cv-info-astro-t { display:flex; flex-direction:column; gap:2px; }
  .cv-info-astro b { font-size:var(--fs-ui); font-weight:600; color:var(--text); }
  .cv-info-astro .act-link[hidden], .cv-info-row[hidden] { display:none; }
  .cv-info-sec { padding:12px 0; display:flex; flex-direction:column; gap:3px; }
  .cv-info-lbl { font-size:var(--fs-xs); font-weight:600; letter-spacing:.06em; text-transform:uppercase;
    color:var(--muted); margin-bottom:4px; }
  .cv-info-row { font-size:var(--fs-sm); color:var(--text-2); }
  .cv-info-chart { color:inherit; text-decoration:none; }
  .cv-info-chart:hover { text-decoration:underline; }
  #cv-convo-started[hidden] { display:none; }
  .chat-header-person .chart-pictogram { width:19px; height:19px; margin-right:7px;
    vertical-align:-3px; flex-shrink:0; color:var(--accent);
    display:inline-flex; align-items:center; justify-content:center; }
  .chat-header-person .chart-pictogram svg { width:19px; height:19px; }
  .chat-header-person .chart-pictogram.pic-relations { color:var(--c-relations); }
  .chat-header-person .chart-pictogram.pic-timing    { color:var(--c-timing); }
  .chat-header-person .chart-pictogram.pic-variants  { color:var(--c-variants); }
  .chat-header-person.is-cont { padding-left:26px; }

  .chl { margin: 0 0 8px; }
  .chl-side { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px; }
  .chl-sec-h { display: none; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
               margin: 6px 4px 0; }
  .chl-search { position: relative; display: block; }
  .chl-search-ico { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px;
                    margin-top: -9px; color: var(--muted); pointer-events: none; }
  .chl-search-in { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px 8px 42px;
                   border: 1px solid var(--field-bd); border-radius: var(--r-field);
                   background: var(--card); color: var(--text); font-family: inherit;
                   font-size: var(--fs-ui); }
  .chl-search-in:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .chl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
  .chl-f { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
           padding: 0 16px; border: 1px solid var(--field-bd); border-radius: var(--r-pill);
           background: var(--card); color: var(--text-2); font-family: inherit;
           font-size: var(--fs-ui); font-weight: 600; white-space: nowrap; cursor: pointer; }
  .chl-f-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
  .chl-f-n { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
  .chl-f[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-fill); }
  .chl-f[aria-pressed="true"] .chl-f-n, .chl-f[aria-pressed="true"] .chl-f-dot { color: var(--on-fill); }
  @media (hover: hover) {
    .chl-f:hover { border-color: var(--accent); }
    .chl-f[aria-pressed="true"]:hover { background: var(--accent-hover); }
  }
  .chl-f:focus-visible, .chl-s:focus-visible, .chl-sort-btn:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px; }
  .chl-sort-list { display: none; }
  .chl-bar { display: flex; margin: 2px 0 8px; }
  .chl-sort-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
                  min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
                  background: var(--card); border: 1px solid var(--field-bd); color: var(--text);
                  font: inherit; font-size: var(--fs-ui); cursor: pointer; text-align: left; }
  @media (hover: hover) { .chl-sort-btn:hover { border-color: var(--accent); } }
  .chl-sort-l { color: var(--text-2); flex-shrink: 0; }
  .chl-sort-cur { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis;
                  white-space: nowrap; }
  .chl-sort-chev { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
  .chl-s-ok { width: 20px; height: 20px; margin-left: auto; color: var(--accent); visibility: hidden; }
  .chl-s[aria-pressed="true"] .chl-s-ok { visibility: visible; }
  .app-sheet-opt.chl-s { width: 100%; border: 0; background: none; font-family: inherit;
                         cursor: pointer; text-align: left; }
  .app-sheet-opt.chl-s[aria-pressed="true"] { color: var(--accent); font-weight: 600; }
  .chl-bar { gap: 8px; }
  .chl-bar > .chl-sort-btn { flex: 0 1 auto; min-width: 0; }
  .chl-kto-btn[hidden], [data-chl-kto][hidden] { display: none; }
  .chl-kto-list { display: none; }
  .chl-kto-sheet .chl-f-n { margin-left: auto; }
  .chl-kto-sheet .chl-s-ok { margin-left: 8px; }
  .chl-kto-btn.is-set { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  .chl-bar.has-kto .chl-sort-btn:not(.chl-kto-btn) .chl-sort-l {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
    white-space: nowrap; }
  .chl-f-dot.grp-me  { color: var(--accent); }
  .chl-f-dot.grp-fam { color: var(--c-grp-fam); }
  .chl-f-dot.grp-fr  { color: var(--c-grp-fr); }
  .chl-f-dot.grp-oth { color: var(--c-grp-oth); }
  .chl-order { margin-left: auto; padding: 0 4px; border: 0; background: none; color: var(--text-2); }
  .chl-order-top { display: none; }
  .chl-order .chl-sort-cur { font-weight: 500; }
  .chl-order .chl-sort-l { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }
  @media (hover: hover) { .chl-order:hover { color: var(--accent); } }
  .chl-empty { margin: 16px 4px 0; font-size: var(--fs-ui); color: var(--text-2); }
  .chl-empty[hidden] { display: none; }

  
  .chl-me, .grp-chip { flex: none; display: inline-flex; align-items: center; justify-content: center;
            height: 22px; padding: 0 9px; border-radius: var(--r-pill); background: var(--accent);
            color: var(--on-fill); font-size: var(--fs-sm); font-weight: 600; line-height: 1;
            white-space: nowrap; max-width: 100%; }
  .chl-me .me-t, .grp-chip .me-t { display: block; text-box: trim-both cap alphabetic;
            padding: .3em 0; margin: -.3em 0; overflow: hidden; text-overflow: ellipsis; }
  .grp-chip.grp-fam { background: var(--c-grp-fam-bg); color: var(--c-grp-fam-ink); }
  .grp-chip.grp-fr  { background: var(--c-grp-fr-bg); color: var(--c-grp-fr-ink); }
  .grp-chip.grp-oth { background: var(--c-grp-oth-bg); color: var(--text-2); }
  .grp-chip[hidden] { display: none; }

  
  .convo-zebra { display:flex; flex-direction:column; border:1px solid var(--field-bd);
    border-radius:var(--r-card); overflow:hidden; background:var(--card); }
  .convo-zrow-wrap { position:relative; }
  .convo-zrow-wrap:nth-child(even) { background:var(--tint-zebra); }
  .convo-zrow-wrap:hover { background:var(--tint-hover); }
  .convo-zrow-wrap:not(:last-child) { border-bottom:1px solid var(--line-soft); }
  .convo-zrow { display:flex; flex-direction:column; gap:2px;
    padding:11px 92px 11px 14px; text-decoration:none; color:var(--text);
    background:transparent; }
  .convo-zrow-wrap::after { content:''; position:absolute; right:14px; top:50%;
    transform:translateY(-50%); width:14px; height:14px; pointer-events:none;
    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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E"); }
  .convo-zrename { position:absolute; right:36px; top:50%; transform:translateY(-50%);
    width:26px; height:26px; border:none; background:transparent; color:var(--muted);
    cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
    padding:0; border-radius:6px; transition:background .12s, color .12s; }
  .convo-zrename svg { width:14px; height:14px; }
  .convo-zrename:hover { background:var(--tint-active); color:var(--accent); }
  .convo-zpdf { position:absolute; right:62px; top:50%; transform:translateY(-50%);
    width:26px; height:26px; color:var(--muted); text-decoration:none;
    display:inline-flex; align-items:center; justify-content:center;
    border-radius:6px; transition:background .12s, color .12s; }
  .convo-zpdf svg { width:14px; height:14px; }
  .convo-zpdf:hover { background:var(--tint-active); color:var(--accent); }
  .convo-ztitle { font-size:var(--fs-ui); font-weight:600; overflow-wrap:anywhere; padding-right:4px; }
  .convo-zmeta { font-size:var(--fs-sm); color:var(--muted); }
  .convo-zq, .convo-zwhen { white-space:nowrap; }
  .convo-zchart { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .convo-zctx { display:inline-block; margin-right:7px; padding:1px 7px;
    border-radius:var(--r-pill); background:var(--grey); color:var(--text-2);
    font-size:var(--fs-xs); font-weight:600; vertical-align:baseline; white-space:nowrap; }
  .convo-zrow-wrap.cz-hidden { display:none; }
  .convo-zebra.cz-expanded .convo-zrow-wrap.cz-hidden { display:block; }
  .convo-zmore { border:none; border-top:1px solid var(--line-soft);
    background:transparent; color:var(--accent); font-size:var(--fs-sm); font-weight:600;
    padding:10px 14px; text-align:left; cursor:pointer; }
  .convo-zmore:hover { background:var(--tint-hover); }
  .cz-more-m { display:none; }
  @media (max-width:640px) {
    .convo-zrow-wrap.cz-mrow { display:none; }
    .convo-zebra.cz-expanded .convo-zrow-wrap.cz-mrow { display:block; }
    .cz-more-d { display:none; }
    .cz-more-m { display:block; }
  }

  .cvl-mark { background: var(--tint-selected); color: inherit; }
  .cvl-status { margin: 0 4px; font-size: var(--fs-sm); color: var(--text-2); }
  .cvl-status[hidden] { display: none; }
  .cvl-frag { display: block; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.45;
              overflow-wrap: anywhere; }
  .cvl-who { font-weight: 600; }
  .cvl-more { color: var(--muted); white-space: nowrap; }
  .cvl-partial { margin: 12px 4px 0; font-size: var(--fs-sm); color: var(--text-2); }
  .cvl-partial[hidden] { display: none; }
  .cvl-empty { margin: 0 0 16px; }
  .cvl-empty[hidden] { display: none; }
  .cvl-empty .chl-empty { margin: 16px 4px 0; }
  .cvl-reset { background: none; border: 0; padding: 0 4px; min-height: 44px;
               font-family: inherit; cursor: pointer; }

  .hub-chip { display: inline-flex; align-items: center; gap: 6px; margin-right: 7px;
    padding: 1px 8px; border-radius: var(--r-pill); background: var(--grey); color: var(--text-2);
    font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; vertical-align: baseline;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .hub-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
  .hub-group { margin-bottom: 20px; }
  .hub-group-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
    margin: 0 0 8px 4px; }
  .hub-chats .convo-zrow { padding-right: 36px; min-height: 56px; justify-content: center; }
  .hub-empty-text { color: var(--text-2); margin: 0 0 10px; }
  .cvl .convo-zrow-wrap:nth-child(even) { background: none; }
  .cvl .convo-zrow-wrap:not(:last-child) { border-bottom: 0; }
  .cvl .convo-zrow-wrap { box-shadow: inset 0 1px 0 var(--line-soft); }
  .cvl .convo-zrow-wrap.cvl-first { box-shadow: none; }
  .cvl .convo-zrow-wrap.cvl-alt { background: var(--tint-zebra); }
  .cvl .convo-zrow-wrap:hover { background: var(--tint-hover); }
  .cvl-pager { margin: 4px 0 0; }
  .cvl-pager[hidden] { display: none; }
  .cvl .chl-s { display: flex; align-items: center; gap: 8px; }
  .cvl .cvl-dd { display: none; }
  .cvl-bar { flex-wrap: wrap; }
  .cvl .chl-sort-btn.is-set { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  .cvl-srow { display: flex; align-items: center; gap: 8px; }
  .cvl-srow .chl-search { flex: 1 1 auto; min-width: 0; }
  .cvl-new-ic { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--field-bd);
    background: var(--card); color: var(--accent); display: inline-flex; align-items: center;
    justify-content: center; flex: none; cursor: pointer; padding: 0; margin-left: auto; }
  .cvl-new-ic svg { width: 20px; height: 20px; }
  .cvl-new-ic:hover { background: var(--hover-lav); border-color: var(--accent); }
  .cvl-new-ic:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .cvl-title-row { display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px 12px; margin: 18px 0 16px; }
  .cvl-title-row .page-title { margin: 0; }
  .cvl-title-row .cvl-new { flex: none; border: 1px solid var(--field-bd); font-family: inherit;
    font-size: inherit; cursor: pointer; }
  .cvl-title-row .cvl-new:hover { border-color: var(--accent); }
  .cvl-title-row .cvl-new:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .cvl-sheet .chl-f-n { margin-left: auto; }
  .cvl-sheet .chl-s-ok { margin-left: 8px; }
  .cvl-sheet .chl-s[hidden] { display: none; }
  .cvl-sheet a.chl-s { color: var(--text); text-decoration: none; }
  .cvl-sheet a.chl-s.is-sel { color: var(--accent); font-weight: 600; }
  .cvl-sheet a.chl-s.is-sel .chl-s-ok { visibility: visible; }
  .cvl-sheet .chl-s .chl-s-lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cvl-sheet .cvl-new-chart { color: var(--accent); font-weight: 600; }
  .cvl-new-plus { width: 18px; height: 18px; flex: none; }
  .cvl-cap { margin: 12px 4px 0; font-size: var(--fs-sm); color: var(--text-2); }

  @view-transition { navigation: auto; }
  body.cv-on #cv-main { view-transition-name: cv-main; }
  #cv-side-list, .cvl-wrap:not(#cv-side-list *) { view-transition-name: cv-list; }
  body.cv-panel-on #cv-side { view-transition-name: cv-side; }
  ::view-transition-group(cv-side), ::view-transition-old(cv-side),
  ::view-transition-new(cv-side) { animation: none; }
  ::view-transition-group(cv-main) { animation: none; }
  ::view-transition-old(cv-main) { animation: none; opacity: 0; }
  ::view-transition-new(cv-main) { animation: none; }
  ::view-transition-old(cv-main):only-child { animation: cv-vt-out .3s ease-in both; opacity: 1; }
  ::view-transition-new(cv-main):only-child { animation: cv-vt-in .3s ease-out both; }
  @keyframes cv-vt-out { to { transform: translateX(100%); opacity: 0; } }
  @keyframes cv-vt-in { from { transform: translateX(100%); opacity: 0; } }
  ::view-transition-group(cv-list) { animation-duration: .3s; }
  @media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  }

  .cv-pbtn, .cv-x { width:44px; height:44px; border-radius:50%; border:1px solid var(--field-bd);
    background:var(--card); color:var(--accent); display:inline-flex; align-items:center;
    justify-content:center; cursor:pointer; padding:0; flex:none; text-decoration:none; }
  .cv-pbtn svg { width:21px; height:21px; }
  .cv-x svg { width:20px; height:20px; }
  .cv-pbtn:hover, .cv-x:hover { background:var(--hover-lav); border-color:var(--accent); }
  .cv-pbtn[aria-expanded="true"] .cv-pico-show, .cv-pbtn:not([aria-expanded="true"]) .cv-pico-hide { display:none; }
  .cv-pbtn:focus-visible, .cv-x:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .cv-side, .cv-prail, .cv-pbtn-bar { display:none; }
  .cv-side-head { display:flex; align-items:center; gap:8px; flex:none; min-height:44px; padding-left:52px; }
  .segmented.cv-pseg { flex:1 1 auto; min-width:0; background:var(--card); box-shadow:inset 0 0 0 1px var(--field-bd); }
  .cv-pseg .seg-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px;
    min-width:0; padding:8px 10px; white-space:nowrap; }
  .cv-pseg .seg-btn span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .cv-pseg .seg-btn svg { width:18px; height:18px; flex:none; }
  .cv-side-body { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
  .cv-side-list, .cv-side-info { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
  .cv-side-list { flex:1 1 auto; padding:2px 2px 16px; margin-right:-16px; scrollbar-gutter:stable;
    scrollbar-width:thin; scrollbar-color:transparent transparent; }
  .cv-side-list > .cvl-wrap { width:calc(var(--cv-side-w, 320px) - 4px); }
  .cv-side-list:hover { scrollbar-color:var(--field-bd) transparent; }
  .cv-side-list.cvl-fit { overflow:hidden; }
  .cv-side-list[hidden], .cv-side-info[hidden] { display:none; }
  .cv-side-info { flex:0 1 auto; margin:2px 2px 16px; background:var(--card); border-radius:var(--r-card);
    box-shadow:var(--card-shadow); padding:16px 10px 8px; }
  .cv-side-err { margin:12px 4px 4px; font-size:var(--fs-ui); color:var(--text-2); }
  .cv-side-retry { background:none; border:0; padding:0 4px; min-height:44px; cursor:pointer; font-family:inherit; }
  .cv-side .cvl .convo-zrow-wrap.is-cur, .cv-side .cvl .convo-zrow-wrap.is-cur:hover { background:var(--tint-selected); }
  .cv-side .cvl .convo-zrow-wrap.is-cur .convo-ztitle { color:var(--accent); }
  .cv-prail { grid-column:1; grid-row:1 / span 2; position:sticky; top:66px; z-index:17;
    align-self:start; justify-self:start; padding-top:10px; }
  @media (min-width: 768px) {
    body.cv-panel-on .cv-side:not([hidden]) { display:flex; flex-direction:column; gap:12px; }
    body.cv-panel-on .cv-layout { --cv-side-w:320px; display:grid; grid-template-columns:var(--cv-side-w) minmax(0, 1fr);
      grid-template-rows:auto auto; column-gap:24px; align-items:start; }
    body.cv-panel-on .cv-side { grid-column:1; grid-row:1 / span 2; position:sticky; top:66px;
      height:calc(100vh - 106px); padding-top:10px; }
    body.cv-panel-on .cv-main { grid-column:2; grid-row:1; min-width:0; }
    body.cv-panel-on .cv-foot { grid-column:2; grid-row:2; min-width:0; }
    body.cv-on.cv-panel-on .cv-prail { display:block; }
    body.cv-on:not(.cv-panel-on) .cv-pbtn-bar { display:inline-flex; }
  }
  @media (min-width: 944px) {
    body.cv-on:not(.cv-panel-on) .cv-layout { display:grid; grid-template-columns:minmax(0, 1fr);
      grid-template-rows:auto auto; align-items:start; }
    body.cv-on:not(.cv-panel-on) .cv-main { grid-column:1; grid-row:1; min-width:0; }
    body.cv-on:not(.cv-panel-on) .cv-foot { grid-column:1; grid-row:2; min-width:0; }
    body.cv-on .cv-prail { display:block; }
    body.cv-on:not(.cv-panel-on) .cv-pbtn-bar { display:none; }
  }
  @media (min-width: 1101px) {
    body.cv-panel-on .cv-layout { --cv-side-w:360px; }
  }


  #page-intro { margin-bottom: 28px; }
  .page-subtitle { color: var(--text); font-size: clamp(1.3rem, 5vw, 1.5rem); font-weight: 600;
    letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
  .page-subtitle-ver { color: var(--muted); font-size: 12px; font-weight: 400;
    margin-left: 8px; white-space: nowrap; }
  .header-desc-wrap { margin-top: 10px; }
  .header-desc {
    font-size: var(--fs-ui); line-height: 1.6; color: var(--text);
  }
  .header-desc p { margin: 0 0 12px; }
  .header-desc p:last-child { margin-bottom: 0; }
  .header-desc.collapsed {
    max-height: 4.2em; overflow: hidden; position: relative;
  }
  .header-desc.collapsed::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 0.5em;
    background: linear-gradient(to bottom, transparent, var(--bg));
  }
  .header-desc-toggle {
    display: block; margin-top: 6px; background: none; border: none;
    cursor: pointer; padding: 2px 0;
  }
  .home-intro { margin-top: 14px; }
  .home-intro strong { font-weight: 600; }
  .header-desc-disclaimer {
    margin-top: 14px;
    font-size: var(--fs-sm); font-style: italic; opacity: 0.85;
  }

  
  .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; }
  
  .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; }
  }


  .astrolog-intro { margin-bottom: 16px; }
  .astrolog-grid { display: grid; grid-template-columns: 40fr 60fr;
                   grid-template-rows: auto 1fr;
                   column-gap: 24px; align-items: start; }
  .astrolog-grid .step-title { grid-column: 1; grid-row: 1; margin-bottom: 12px; }
  .astrolog-intro-col { grid-column: 1; grid-row: 2; min-width: 0; }
  .astrolog-intro-col .astrolog-intro { margin-bottom: 0; }
  .astrolog-grid #gen-astrolog-picker { grid-column: 2; grid-row: 1 / span 2; }
  .page-disclaimer { max-width: none; margin: 32px 0 0; }
  .page-disclaimer .header-desc-disclaimer { margin-top: 0; }
  @media (max-width: 768px) {
    .astrolog-grid { grid-template-columns: 1fr; grid-template-rows: none;
                     column-gap: 0; row-gap: 16px; }
    .astrolog-grid .step-title { grid-column: 1; grid-row: auto; order: 1; margin-bottom: 0; }
    .astrolog-grid #gen-astrolog-picker { grid-column: 1; grid-row: auto; order: 2; }
    .astrolog-intro-col { grid-column: 1; grid-row: auto; order: 3; }
  }
  #gen-astrolog-picker-parked .astrolog-card { padding: 0; gap: 0; overflow: hidden; }
  #gen-astrolog-picker-parked .astrolog-avatar {
    width: 100%; height: auto; aspect-ratio: 8 / 7; border-radius: 0;
    object-fit: cover; object-position: 50% 0; display: block;
  }
  #gen-astrolog-picker-parked .astrolog-name {
    width: 100%; box-sizing: border-box; background: var(--accent); color: var(--on-fill);
    padding: 9px 6px; font-size: var(--fs-ui);
  }
  #gen-astrolog-picker-parked .astrolog-card.selected .astrolog-name { background: var(--accent-hover); }
  @keyframes pickerPulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--c-relations); }
    50%      { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--c-relations), 0 0 0 9px rgba(216, 84, 108, .40); }
  }
  #gen-astrolog-picker.picker-attention .astrolog-card:not(.is-locked) .astrolog-avatar {
    animation: pickerPulse .8s ease 2;
    box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--c-relations);
  }
  @media (prefers-reduced-motion: reduce) {
    #gen-astrolog-picker.picker-attention .astrolog-card:not(.is-locked) .astrolog-avatar { animation: none; }
  }
  .astrolog-chip { display: flex; align-items: center; gap: 10px; }
  .astrolog-chip-avatar { width: 24px; height: 24px; border-radius: 50%;
    object-fit: cover; object-position: 50% 18%; flex-shrink: 0; }
  .astrolog-chip-txt { font-size: var(--fs-ui); color: var(--text-2); }
  .astrolog-chip-txt b { color: var(--text); font-weight: 600; }
  .astrolog-chip-change { margin-left: auto; background: none; border: none;
    cursor: pointer; padding: 2px 6px; }
  .astrolog-chip-picker { margin-top: 14px; }
  .gen-hz-seg { background: var(--card); }
  #gen-astrolog-picker-parked { gap: 10px; }
  #gen-astrolog-picker-parked .astrolog-tagline { padding: 10px 8px 2px; }
  #gen-astrolog-picker-parked .astrolog-tagline { font-size: var(--fs-ui); }
  .astrolog-meet-link { display: block; width: fit-content; max-width: 100%; margin: 2px auto 12px;
    padding: 2px 8px; background: none; border: none; text-align: center; cursor: pointer; }
  @media (max-width: 600px) {
    #gen-astrolog-picker-parked { gap: 8px; }
    #gen-astrolog-picker-parked .astrolog-tagline { font-size: var(--fs-sm); padding: 8px 6px 2px; }
    #gen-astrolog-picker { gap: 8px; }
  }
  .astrolog-bio-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
    object-position: 50% 18%; display: block; margin: 2px auto 12px; }
  .astrolog-bio-title { margin: 0 0 12px; font-size: var(--fs-h2); color: var(--accent); text-align: center; }
  .astrolog-bio-body p { margin: 0 0 12px; font-size: var(--fs-read); line-height: var(--lh-read); color: var(--text); }
  .astrolog-bio-body p:last-child { margin-bottom: 18px; }
  #astrolog-bio-overlay .btn-upgrade { display: block; width: fit-content; margin: 6px auto 0; }
  .astrolog-bio-all { display: block; text-align: center; margin: 12px 0 0; }
  .card.intro-card { margin-bottom: 0; background: transparent !important; border: none;
                     box-shadow: none !important; padding-top: 0; padding-bottom: 4px; }
  @media (min-width: 641px) {
    .card.intro-card:has(> .ph > .rec-back) { padding-left: 0; padding-right: 0; }
  }
  .intro-card .header-desc.collapsed::after {
    background: linear-gradient(to bottom, transparent, var(--bg));
  }
  body.canvas-grey .intro-card .header-desc.collapsed::after {
    background: linear-gradient(to bottom, transparent, var(--grey));
  }
  #subject-toggle { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    width: fit-content; max-width: 100%; }
  #subject-toggle .seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  #subject-toggle .seg-btn svg { width: 16px; height: 16px; flex: none; }
  @media (max-width: 560px) { #subject-toggle { width: 100%; } }

  
  .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;
  }

  #chat-card { background: transparent; border: none; box-shadow: none; padding: 0; }
  .card h2 {
    font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 16px;
  }

  .grid { display: grid; gap: 16px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  @media (max-width: 560px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }

    body { padding-left: 16px; padding-right: 16px; }
  }



  
  .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; }


  #tz-badge { display: none; }
  #tz-badge.geo2-status { margin-top: 4px; }
  #tz-badge.tz-alert, #tz-hist-hint.tz-alert {
    margin-top: 10px; padding: 8px 14px;
    background: var(--error-bg); border: 1px solid var(--error-bd);
    border-radius: 6px; font-size: var(--fs-sm); line-height: 1.45; color: var(--error);
  }
  #tz-hist-hint {
    display: none; margin-top: 8px; font-size: var(--fs-sm); line-height: 1.45;
    color: var(--text-2);
  }

  #manual-coords { display: none; margin-top: 12px; }


  .rel-q-title { font-size: var(--fs-ui); font-weight: 600; color: var(--text); margin-bottom: 2px; }
  .rel-q-hint { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; margin-bottom: 12px; }
  
  .rel-pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .rel-pill { font-size: var(--fs-ui); font-weight: 500; padding: 8px 14px; border-radius: var(--r-pill);
    border: 1px solid var(--field-bd); background: var(--grey); color: var(--text);
    cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
  .rel-pill:hover { background: var(--hover-lav); border-color: var(--accent); }
  .rel-pill.selected { background: var(--accent); border-color: var(--accent); color: var(--on-fill); }
  .rel-pill.selected:hover { background: var(--accent-hover); }

  .bt-sure-hint { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; margin: -2px 0 10px; }
  .bt-choice .rel-pill { display: inline-flex; align-items: center; gap: 8px; }
  .bt-choice .bt-ok { display: none; width: 16px; height: 16px; flex: none; }
  .bt-choice .rel-pill.selected .bt-ok { display: block; }
  .bt-span-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px 12px; align-items: center; }
  .bt-span-w { color: var(--text-2); }
  .bt-span-hint { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; margin-top: 8px; }
  .bt-span-hint.is-warn { color: var(--error); }
  .bt-note { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; margin-top: 12px; }
  @media (max-width: 560px) {
    #bt-sure-chips { flex-direction: column; }
    #bt-sure-chips .rel-pill { width: 100%; justify-content: space-between; text-align: left;
      min-height: 44px; padding: 11px 16px; }
    #bt-partday-chips { flex-direction: column; }
    #bt-partday-chips .rel-pill { width: 100%; justify-content: space-between; text-align: left;
      min-height: 44px; padding: 11px 16px; }
    .bt-span-row { grid-template-columns: auto minmax(0, 1fr); }
  }

  .rel-other-input { margin-top: 10px; }

  .range-row { display: flex; align-items: center; gap: 14px; }
  .range-row input[type=range] {
    flex: 1; width: auto; padding: 0; accent-color: var(--accent);
  }
  .range-val {
    font-size: var(--fs-title); font-weight: 700; color: var(--accent);
    min-width: 24px; text-align: center;
  }


  #status { margin-top: 20px; display: none; }
  .status-box {
    padding: 18px 22px; border-radius: var(--r-card);
    border: 1px solid var(--border);
    background: var(--card);
  }
  .status-box.running {
    border-color: var(--accent); background: var(--tint-soft);
  }
  .status-box.success {
    border-color: var(--success); background: var(--success-bg);
  }
  .status-box.error {
    border-color: var(--error); background: var(--error-bg);
  }
  .status-title { font-weight: 600; margin-bottom: 8px; }
  .status-msg { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }

  .downloads { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
  .btn-dl {
    padding: 9px 18px; border-radius: var(--r-pill); font-size: var(--fs-ui);
    font-weight: 500; cursor: pointer; text-decoration: none;
    transition: opacity 0.2s;
  }
  .btn-dl:hover { opacity: 0.85; }
  .btn-natal {
    background: var(--tint-active); border: 1px solid var(--accent);
    color: var(--accent);
  }
  .btn-forecast {
    background: var(--success-bg); border: 1px solid var(--success);
    color: var(--success);
  }
  .btn-zip {
    background: var(--warn-bg); border: 1px solid var(--warn);
    color: var(--warn);
  }

  .spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid var(--accent); border-top-color: transparent;
    border-radius: 50%; animation: spin 0.7s linear infinite;
    margin-right: 8px; vertical-align: middle;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  #gen-sigil {
    width: 26px; height: 26px; margin-right: 9px; vertical-align: middle;
    transform-origin: 49.97% 52.39%; filter: saturate(1);
  }

  #chat-history {
    min-height: 180px;
    margin-bottom: 6px; display: flex; flex-direction: column; gap: 12px;
  }
  .chat-msg {
    position: relative;
    padding: 11px 15px; border-radius: var(--r-card); font-size: var(--fs-read);
    line-height: var(--lh-read); max-width: 85%;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  #chat-history.fs-small .chat-msg { font-size: calc(var(--fs-read) - 2px); }
  #chat-history.fs-large .chat-msg { font-size: calc(var(--fs-read) + 2px); }
  .chat-input-row.fs-small textarea { font-size: calc(var(--fs-ui) - 1px); }
  .chat-input-row.fs-large textarea { font-size: calc(var(--fs-ui) + 2px); }
  .fade-init { opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
  .chat-msg-visible { opacity: 1; transform: translateY(0); }
  .chat-msg.user {
    background: var(--accent); color: var(--on-fill);
    align-self: flex-end; padding: 11px 16px;
    border-radius: var(--r-card) var(--r-card) 4px var(--r-card);
  }
  .chat-msg.assistant {
    background: var(--card); color: var(--text);
    align-self: flex-start; max-width: 100%; padding: 12px 16px;
    border-radius: var(--r-card) var(--r-card) var(--r-card) 4px;
    box-shadow: var(--card-shadow);
  }
  .chat-msg.cv-typing { padding: 12px 16px; min-width: 62px; }
  .chat-msg.cv-typing #chat-sigil { margin: 0; }
  .chat-msg.assistant:has(> .chat-speaker) { margin-top: 28px; }
  .chat-msg.assistant > .chat-speaker { position: absolute; left: 0; top: -28px; margin: 0;
    font-size: var(--fs-sm); color: var(--text); white-space: nowrap; }
  .chat-msg.assistant > .chat-speaker .chat-speaker-av { width: 22px; height: 22px;
    object-position: center 12%; }
  .chat-options.cv-out { align-self: flex-end; flex-direction: row; flex-wrap: wrap;
    justify-content: flex-end; gap: 8px; max-width: 92%; margin: 2px 0 0; }
  .chat-options.cv-out .chat-option-chip { align-self: auto; background: var(--card);
    border-color: var(--accent); text-align: right; }
  .chat-options.cv-out .chat-option-chip:hover { background: var(--hover-lav); }
  .chat-options.cv-out .chat-options-hint { flex-basis: 100%; text-align: right; margin-top: 0; }
  .reading-cta-wrap.cv-out { align-self: flex-end; margin: 0; padding-top: 0; border-top: 0; }
  .chat-msg[data-mid] { transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.8s ease; }
  .chat-msg.chat-hit { box-shadow: 0 0 0 4px var(--tint-selected); }
  .chat-hit-mark { background: var(--tint-selected); color: inherit; }
  .chat-msg.user .chat-hit-mark { background: none; text-decoration: underline;
    text-decoration-thickness: 2px; text-underline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) {
    .chat-msg[data-mid] { transition: opacity 0.25s ease, transform 0.25s ease; }
  }
  .chat-speaker {
    display: flex; align-items: center; gap: 6px;
    font-size: var(--fs-ui); font-weight: 600; color: var(--accent);
    margin-bottom: 6px;
  }
  .chat-speaker-av {
    width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
  }
  .chat-msg.assistant strong { color: var(--accent); }
  .chat-msg.assistant ul { margin: 6px 0 6px 4px; padding-left: 18px; }
  .chat-msg.assistant li { margin-bottom: 3px; }
  .chat-msg.assistant hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
  .chat-msg.assistant h3, .chat-msg.assistant h4 {
    color: var(--accent); margin: 8px 0 4px; font-size: 1em;
  }
  .chat-cz-preview { overflow-wrap: anywhere; cursor: pointer; }
  .chat-cz-tail { white-space: nowrap; }
  .chat-cz-more {
    font: inherit; font-weight: 600; color: var(--accent);
    text-decoration: underline; text-underline-offset: 2px;
    background: none; border: none; padding: 0; margin: 0; cursor: pointer;
    -webkit-appearance: none; appearance: none;
  }
  .chat-cz-more:hover { color: var(--accent-hover); }
  .chat-cz-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
  .chat-cz-preview.cz-clamp {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    line-clamp: 3; overflow: hidden;
  }
  .chat-msg:not(.cz-closed) > .chat-cz-preview { display: none; }
  @media print {
    .chat-msg > .md-content[hidden] { display: block !important; content-visibility: visible !important; }
    .chat-cz-preview { display: none !important; }
  }
  .chat-time-sep {
    align-self: center; font-size: var(--fs-sm); color: var(--muted);
    margin: 10px 0 2px; text-align: center; user-select: none;
  }
  .chat-time {
    font-size: var(--fs-xs); color: var(--muted); margin: -9px 0 0;
    user-select: none; line-height: 1.2;
  }
  .chat-time.for-user { align-self: flex-end; text-align: right; }
  .chat-time.for-assistant { align-self: flex-start; text-align: left; }
  .chat-msg.error {
    background: var(--error-bg); border: 1px solid var(--error);
    color: var(--error); align-self: flex-start; font-size: var(--fs-sm);
  }
  .chat-msg.balance-warning {
    background: var(--warn-bg); border: 1px solid var(--gold);
    color: var(--warn-fg); align-self: center; font-size: var(--fs-sm); text-align: center;
    max-width: 90%;
  }
  .chat-msg.tier-notice {
    background: var(--grey); border: 1px solid var(--border);
    color: var(--muted); align-self: center; font-size: var(--fs-sm);
    text-align: center; max-width: 90%;
  }
  #chat-sigil {
    display: block; width: 26px; height: 26px; margin: 8px 0 0 0;
    transform-origin: 49.97% 52.39%; filter: saturate(1);
  }
  .chat-input-row { display: block; position: sticky; bottom: 0; z-index: 15;
    margin: 0 -8px; padding: 16px 8px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to bottom, transparent, var(--grey) 18px); }
  .chat-input-row .chat-first-cost-note { margin: 8px 6px 0; }
  @media (max-width: 640px) {
    .chat-input-row.cv-compact .chat-tools,
    .chat-input-row.cv-compact .chat-first-cost-note { display: none; }
    .chat-input-row.cv-compact .chat-input-field:has(.chat-tools) textarea { padding-right: 53px; }
  }
  .chat-input-field {
    position: relative; display: block; background: var(--card);
    border: 1.5px solid var(--accent); border-radius: var(--r-card);
    box-shadow: var(--shadow-lift);
    overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
  }
  .chat-input-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
  }
  .chat-input-row textarea {
    display: block; width: 100%;
    padding: 10px 60px 10px 14px;
    background: transparent; border: none;
    color: var(--text); font-size: var(--fs-ui); font-family: inherit;
    line-height: 1.55; outline: none;
    resize: none; overflow-y: hidden; max-height: min(160px, 40vh);
  }
  .chat-tools {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 6px 60px 6px 12px; min-height: 52px;
    border-top: 1px solid var(--line);
  }
  .chat-input-field:has(.chat-tools) textarea { padding-right: 14px; }
  .chat-input-row .chat-input-field textarea { margin: 7px 7px 0 0; width: calc(100% - 7px);
    padding-top: 3px; padding-right: 53px; }
  .chat-input-row .chat-input-field:has(.chat-tools) textarea { padding-right: 7px; }
  .chat-switch {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    min-height: 32px; padding: 0 2px; user-select: none; -webkit-user-select: none;
    font-size: var(--fs-sm); font-weight: 600; color: var(--accent); line-height: 1;
  }
  .chat-switch input[type="checkbox"] {
    position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
  }
  .chat-switch-track {
    position: relative; width: 30px; height: 18px; border-radius: 9px;
    background: var(--hover-lav); transition: background .15s; flex: 0 0 30px;
  }
  .chat-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;
  }
  .chat-switch input:checked + .chat-switch-track { background: var(--accent); }
  .chat-switch input:checked + .chat-switch-track::after { transform: translateX(12px); }
  .chat-switch input:focus-visible + .chat-switch-track { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
  .chat-switch:hover .chat-switch-track { filter: brightness(.96); }
  @media (prefers-reduced-motion: reduce) {
    .chat-switch-track, .chat-switch-track::after { transition: none; }
  }
  .sw-short { display: none; }
  .chat-voice-btn {
    position: relative; flex: 0 0 32px; width: 32px; height: 32px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--field-bd);
    background: var(--grey); color: var(--accent); cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
  }
  .chat-voice-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-fill); }
  @media (hover: hover) {
    .chat-voice-btn:hover { background: var(--hover-lav); border-color: var(--accent); }
    .chat-voice-btn[aria-pressed="true"]:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  }
  .chat-voice-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .chat-voice-btn .cv-ic { width: 18px; height: 18px; }
  .chat-voice-btn .cv-ic-on { display: none; }
  .chat-voice-btn[aria-pressed="true"] .cv-ic-on { display: block; }
  .chat-voice-btn[aria-pressed="true"] .cv-ic-off { display: none; }
  @media (pointer: coarse) {
    .chat-voice-btn::after { content: ''; position: absolute; inset: -7px; }
  }
  @media (prefers-reduced-motion: reduce) { .chat-voice-btn { transition: none; } }
  @media (max-width: 520px) {
    .sw-full { display: none; }
    .sw-short { display: block; }
    .chat-tools { gap: 10px; padding-right: 48px; }
    .chat-switch { gap: 6px; padding: 0; }
    .chat-switch-track { width: 26px; height: 16px; flex: 0 0 26px; }
    .chat-switch-track::after { width: 12px; height: 12px; }
    .chat-switch input:checked + .chat-switch-track::after { transform: translateX(10px); }
  }
  .chat-input-row textarea::placeholder { color: var(--muted); }
  .chat-input-row textarea { scrollbar-width: auto; scrollbar-color: rgba(79,55,135,.55) transparent; }
  .chat-input-row textarea::-webkit-scrollbar { width: 12px; }
  .chat-input-row textarea::-webkit-scrollbar-thumb {
    background: rgba(79,55,135,.55); border-radius: 6px;
    border: 2px solid var(--card);
  }
  .chat-input-row textarea::-webkit-scrollbar-thumb:hover { background: var(--accent); }
  .chat-input-row textarea::-webkit-scrollbar-track { background: transparent; }
  .chat-send-btn {
    position: absolute; right: 6px; bottom: 6px;
    width: 40px; height: 40px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); border: none; border-radius: 9px;
    cursor: pointer; transition: background 0.15s, opacity 0.15s;
  }
  .chat-send-btn svg.ico-send { width: 20px; height: 20px; }
  .chat-send-btn svg.ico-stop { width: 28px; height: 28px; }
  .chat-send-btn:hover { background: var(--accent2); }
  .chat-send-btn:disabled { opacity: 0.4; cursor: default; }
  .chat-send-btn:disabled:hover { background: var(--accent); }
  .chat-send-btn.is-stop { background: var(--c-timing-fill); }
  .chat-send-btn.is-stop:hover { background: var(--c-timing); }
  .chat-send-btn .ico-send { display: block; }
  .chat-send-btn .ico-stop { display: none; }
  .chat-send-btn.is-stop .ico-send { display: none; }
  .chat-send-btn.is-stop .ico-stop { display: block; }
  .chat-char-counter {
    font-size: var(--fs-sm); color: var(--muted); text-align: right;
    margin-top: 4px; line-height: 1.2; display: none;
  }
  .chat-char-counter.show { display: block; }
  .chat-char-counter.over { color: var(--error); }
  .chat-aborted-marker {
    font-size: var(--fs-sm); color: var(--muted); font-style: italic;
    text-align: center; margin-top: 8px; line-height: 1.3;
  }
  .chat-first-cost-note { font-size: var(--fs-sm); color: var(--muted); margin-top: 6px;
    line-height: 1.4; }
  .horizon-selector { margin: 0 0 14px; padding: 16px 20px; border: none;
    border-radius: var(--r-card); background: var(--card); box-shadow: var(--card-shadow); }
  .horizon-selector.locked { opacity: .6; }
  .horizon-title { font-weight: var(--fw-h); margin-bottom: 10px; font-size: var(--fs-title); color: var(--text); }
  .horizon-info { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }
  .card.synastry-mode { background: #f5f1fb; border-color: #d9cdf0; }

  .summary-info { display: flex; flex-direction: column; gap: 3px; }
  .summary-line { font-size: var(--fs-ui); color: var(--text); }
  .summary-line:first-child { font-size: var(--fs-ui); }
  .summary-line-compact { font-size: var(--fs-ui); color: var(--text); }
  .summary-line-compact strong { font-size: var(--fs-ui); }
  .chat-header-people { display: flex; flex-direction: column; gap: 2px; }
  .chat-header-person { font-size: var(--fs-ui); font-weight: 600; color: var(--text); }
  .chat-header-meta {
    display: flex; flex-direction: column; gap: 3px;
    font-size: var(--fs-sm); color: var(--text); margin-top: 4px;
  }
  .chat-bt-note { font-size: var(--fs-sm); color: var(--muted); margin: 6px 0 0; }
  .chat-bt-note[hidden] { display: none; }
  .chdr-lbl { color: var(--muted); }

  .upgrade-wall {
    text-align: center; padding: 28px 20px; border-radius: var(--r-card);
    background: var(--tint-soft);
    border: 1px solid var(--border);
  }
  .upgrade-wall-icon { font-size: 28px; margin-bottom: 8px; }
  .upgrade-wall-icon.berry { display: inline-block; width: 34px; height: 34px;
    background-color: var(--accent);
    -webkit-mask: url("/static/berry.svg") center / contain no-repeat;
    mask: url("/static/berry.svg") center / contain no-repeat;
    margin: 0 auto 8px; }
  .upgrade-wall-title { font-size: var(--fs-title); font-weight: var(--fw-h); color: var(--text); margin-bottom: 6px; }
  .upgrade-wall-text { font-size: var(--fs-ui); color: var(--muted); margin-bottom: 20px; }
  .upgrade-faq-link, .upgrade-secondary-link { display: inline-block; margin-top: 14px; }
  .btn-upgrade {
    display: inline-block; background: var(--accent); color: var(--on-fill); border: none;
    padding: 11px 24px; border-radius: var(--r-pill); font-size: var(--fs-ui); font-weight: 600;
    cursor: pointer; transition: background 0.15s ease;
    text-decoration: none; margin-top: 4px;
  }
  .btn-upgrade:hover { background: var(--accent-hover); }
  .btn-secondary {
    background: var(--grey); color: var(--accent); border: 1px solid var(--field-bd);
    padding: 11px 24px; border-radius: var(--r-pill); font-size: var(--fs-ui); font-weight: 600;
    cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
  }
  .btn-secondary:hover { background: var(--hover-lav); border-color: var(--accent); }
  .btn-danger { background: var(--error); color: var(--on-fill); border: none; border-radius: var(--r-pill);
    padding: 10px 20px; font-size: var(--fs-ui); font-weight: 600; cursor: pointer;
    transition: background 0.15s ease; }
  .btn-danger:hover { background: var(--error-hover); }
  
  .checkout-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--scrim); z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
  }
  .checkout-modal {
    background: var(--bg); border-radius: var(--r-card); max-width: 420px; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative;
    padding: 32px 28px 28px; box-shadow: var(--shadow-modal);
  }
  .checkout-modal-close {
    position: absolute; top: 12px; right: 14px; background: none; border: none;
    font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer;
    padding: 4px 8px;
  }
  .checkout-modal-close:hover { color: var(--text); }

  .checkout-form { text-align: left; max-width: 320px; margin: 0 auto; }
  .checkout-form-title { font-size: var(--fs-title); font-weight: var(--fw-h); color: var(--text);
                          margin-bottom: 12px; text-align: center; }
  .checkout-form input { margin-bottom: 10px; }
  .checkout-product-row { display: flex; justify-content: space-between; align-items: baseline;
                           padding: 10px 12px; background: var(--grey); border-radius: var(--r-inner);
                           margin-bottom: 12px; }
  .checkout-product-name { font-size: var(--fs-sm); color: var(--text); }
  .checkout-product-price { font-size: var(--fs-ui); font-weight: 700; color: var(--accent); }
  .checkout-discount-row { display: flex; gap: 8px; margin-bottom: 6px; }
  .checkout-discount-row input { flex: 1; margin-bottom: 0; }
  .btn-recalculate { background: var(--grey); border: 1px solid var(--field-bd); color: var(--accent);
                      font-size: var(--fs-sm); font-weight: 600; padding: 0 14px; border-radius: var(--r-pill);
                      cursor: pointer; white-space: nowrap; }
  .btn-recalculate:hover { background: var(--hover-lav); border-color: var(--accent); }
  .checkout-discount-result { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 10px; }
  .checkout-logged-in-email { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 10px; }
  .checkout-consent-row { display: flex; align-items: flex-start; gap: 8px;
                           font-size: var(--fs-sm); color: var(--muted); margin-bottom: 8px; cursor: pointer; }
  .checkout-consent-row span { flex: 1; }
  .reg-adult-row { display: flex; align-items: flex-start; gap: 8px;
                   font-size: var(--fs-sm); color: var(--muted); margin: 4px 0 14px; cursor: pointer; }
  .reg-adult-row span { flex: 1; }
  .reg-adult-row input[type="checkbox"] { margin: 2px 0 0; flex-shrink: 0; cursor: pointer; }
  .checkout-consent-row input[type="checkbox"] {
    margin: 2px 0 0; flex-shrink: 0; cursor: pointer;
  }
  .checkout-consent-row a { color: var(--accent); }
  .checkout-error { font-size: var(--fs-sm); color: var(--error); margin-bottom: 10px; }
  .checkout-form-buttons { display: flex; gap: 10px; align-items: center;
                            justify-content: center; margin-top: 4px; }
  .upgrade-inline {
    align-self: flex-start;
    display: flex; flex-direction: column; gap: 8px; max-width: 85%;
  }
  .upgrade-inline-text { font-size: var(--fs-sm); color: var(--muted); }
  .btn-upgrade-inline {
    display: inline-block; background: var(--accent); color: var(--on-fill); border: none;
    padding: 9px 18px; border-radius: var(--r-pill); font-size: var(--fs-ui); font-weight: 600;
    cursor: pointer; align-self: flex-start;
    text-decoration: none;
  }
  .btn-upgrade-inline:hover { background: var(--accent-hover); }
  .soft-limit-inline {
    align-self: center; max-width: 92%; display: flex; flex-direction: column;
    gap: 10px; padding: 12px 16px; border-radius: var(--r-inner);
    background: var(--grey); border: 1px solid var(--border);
  }
  .soft-limit-text { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; text-align: center; }
  .soft-limit-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
  .btn-soft-new {
    background: var(--accent); color: var(--on-fill); border: none; padding: 8px 16px;
    border-radius: var(--r-pill); font-size: var(--fs-ui); font-weight: 600; cursor: pointer;
  }
  .btn-soft-new:hover { opacity: 0.9; }
  .btn-soft-continue {
    background: var(--card); color: var(--text); border: 1px solid var(--border);
    padding: 8px 16px; border-radius: var(--r-pill); font-size: var(--fs-ui); cursor: pointer;
  }
  .btn-soft-continue:hover { background: var(--tint-hover); }

  .chat-options { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
  .chat-option-chip {
    align-self: flex-start; max-width: 100%; text-align: left; white-space: normal;
    background: var(--grey); color: var(--accent);
    border: 1px solid var(--field-bd); border-radius: var(--r-card);
    padding: 7px 14px; font-size: var(--fs-ui); font-weight: 500; line-height: 1.35;
    cursor: pointer; transition: background .12s, border-color .12s;
  }
  .chat-option-chip:hover { background: var(--hover-lav); border-color: var(--accent); }
  .chat-options-hint { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
  .chat-option-chip.is-used {
    opacity: .5; pointer-events: none; text-decoration: line-through;
    text-decoration-thickness: 1px;
  }
  .reading-cta-wrap { margin-top: 12px; padding-top: 10px;
    border-top: 1px solid var(--field-bd); }
  .reading-cta {
    display: inline-block; max-width: 100%; text-align: left;
    white-space: normal; line-height: 1.35;
    background: var(--accent); color: var(--on-fill); border: none;
    border-radius: 14px; padding: 9px 16px; font-size: var(--fs-ui);
    font-weight: 600; cursor: pointer; transition: background .12s;
  }
  .reading-cta:hover { background: var(--accent-hover); }
  .reading-cta:focus-visible { outline: 2px solid var(--accent);
    outline-offset: 2px; }
  .chat-action { margin-top: 10px; }
  .chat-action-btn {
    display: inline-block; text-decoration: none;
    background: var(--accent); color: var(--on-fill);
    border-radius: var(--r-pill); padding: 8px 16px;
    font-size: var(--fs-ui); font-weight: 600; line-height: 1.35;
    transition: background .12s;
  }
  .chat-action-btn:hover { background: var(--accent-hover); }
  .cv-pl { display: inline-flex; align-items: center; gap: 2px; min-width: 0; margin-left: -4px; }
  .cv-pl[hidden] { display: none; }
  .chat-tools { position: relative; }
  .tts-pl-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px;
                 width: calc(100% - 12px); min-height: 28px; margin: 6px 6px 0; padding: 4px 0;
                 border: 0; background: none; font: inherit; font-size: var(--fs-sm); line-height: 1.4;
                 color: var(--text-2); text-align: left; cursor: pointer;
                 font-variant-numeric: tabular-nums; border-radius: var(--r-inner); }
  .tts-pl-line[hidden] { display: none; }
  .tts-pl-line:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .tts-pl-name { font-weight: 600; color: var(--text); white-space: nowrap; }
  .tts-pl-line.has-meta .tts-pl-name::after { content: " ·"; font-weight: 400; color: var(--text-2); }
  .tts-pl-line:hover .tts-pl-name { color: var(--accent); }
  .tts-pl-meta b { font-weight: 600; color: var(--text); }
  .tts-pl-meta.is-err { color: var(--error); }
  .tts-pl-prog { position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--grey);
                 overflow: hidden; visibility: hidden; }
  .tts-pl-prog.is-on { visibility: visible; }
  .tts-pl-prog > span { display: block; height: 100%; background: var(--accent);
                        transform-origin: left center; transform: scaleX(0);
                        transition: transform .3s linear; }
  .tts-pl-prog > span.no-anim { transition: none; }
  @media (prefers-reduced-motion: reduce) { .tts-pl-prog > span { transition: none; } }
  .tts-pl-btn { width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%;
                background: transparent; color: var(--accent); cursor: pointer;
                display: inline-flex; align-items: center; justify-content: center;
                transition: background .12s; }
  .tts-pl-btn svg { width: 18px; height: 18px; display: block; }
  .tts-pl-btn:hover:not(:disabled) { background: var(--tint-hover); }
  .tts-pl-btn:disabled { color: var(--muted); opacity: .45; cursor: default; }
  .tts-pl-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .tts-pl-main svg { width: 22px; height: 22px; }
  .tts-pl-main.is-busy svg { animation: chatTtsPulse 1.2s ease-in-out infinite; }
  @keyframes chatTtsPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
  @media (prefers-reduced-motion: reduce) { .tts-pl-main.is-busy svg { animation: none; } }
  @media (max-width: 640px) {
    .chat-tools.tts-on { gap: 6px; }
    .chat-tools.tts-on .chat-switch { display: none; }
    .tts-pl-btn { width: 38px; }
    .chat-input-row.tts-typing .chat-tools.tts-on .chat-switch { display: inline-flex; }
    .chat-input-row.tts-typing .cv-pl, .chat-input-row.tts-typing .tts-pl-prog,
    .chat-input-row.tts-typing .tts-pl-line { display: none; }
    .chat-input-row.cv-compact .chat-tools.tts-on { display: flex; }
    .chat-input-row.cv-compact .chat-input-field:has(.chat-tools.tts-on) textarea { padding-right: 7px; }
  }
  @media (max-width: 380px) { .tts-pl-btn { width: 36px; } }
  .chat-msg.assistant.tts-now { box-shadow: 0 0 0 2px var(--accent), var(--card-shadow); }
  .chat-msg.assistant.tts-cur { box-shadow: 0 0 0 2px var(--ring-soft), var(--card-shadow); }
  .chat-msg.user.tts-now { box-shadow: 0 0 0 2px var(--grey), 0 0 0 4px var(--accent); }
  .chat-msg.user.tts-cur { box-shadow: 0 0 0 2px var(--grey), 0 0 0 4px var(--ring-soft); }
  .chat-msg.tts-spk::after {
    content: ''; position: absolute; top: -11px; right: 14px; width: 36px; height: 22px;
    box-sizing: border-box; padding: 5.5px 10.5px; border-radius: var(--r-pill);
    background-color: var(--accent); box-shadow: 0 0 0 2px var(--grey); pointer-events: none;
    background-image: linear-gradient(var(--on-fill), var(--on-fill)),
      linear-gradient(var(--on-fill), var(--on-fill)), linear-gradient(var(--on-fill), var(--on-fill));
    background-repeat: no-repeat; background-origin: content-box;
    background-position: 0 100%, 6px 100%, 12px 100%;
    background-size: 3px 5px, 3px 11px, 3px 7px;
  }
  .chat-msg.tts-spk.tts-play::after { animation: cv-eq 1s ease-in-out infinite; }
  @keyframes cv-eq {
    0%, 100% { background-size: 3px 4px, 3px 11px, 3px 7px; }
    33% { background-size: 3px 11px, 3px 6px, 3px 4px; }
    66% { background-size: 3px 7px, 3px 4px, 3px 11px; }
  }
  .chat-msg .md-ln { transition: background-color .2s ease; }
  .chat-msg .md-ln.tts-ln { background: var(--tint-selected); border-radius: 6px; padding: 2px 4px;
    margin: 0 -4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  @media (prefers-reduced-motion: reduce) {
    .chat-msg.tts-spk.tts-play::after { animation: none; }
    .chat-msg .md-ln { transition: none; }
  }

  .chat-footer-row {
    margin-top: 10px; display: flex; justify-content: flex-end; gap: 18px;
  }
  .btn-text-link {
    background: none; border: none; color: var(--muted); font-size: var(--fs-sm);
    font-weight: 400;
    cursor: pointer; text-decoration: underline; padding: 4px;
    display: inline-block;
  }
  .btn-text-link:hover { color: var(--accent); }


  
  .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; }

  
  .tp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tp-heads { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tp-head { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); text-align: center;
    padding-bottom: 6px; border-bottom: 1px solid var(--line);
    margin-bottom: 6px; }
  .tp-colwrap { position: relative; --tp-h: 50px; }
  .tp-col { height: calc(var(--tp-h) * 4.5); overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; }
  .tp-col::-webkit-scrollbar { display: none; }
  .tp-pad { height: calc(var(--tp-h) * 1.75); }
  .tp-cell { scroll-snap-align: center; height: var(--tp-h); width: 100%;
    display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; border-radius: 9px;
    font-size: 21px; font-weight: 600; font-family: inherit;
    font-variant-numeric: tabular-nums;
    color: var(--text); cursor: pointer; transition: background .12s; }
  .tp-cell:hover { background: var(--tint-hover); }
  .tp-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .tp-cell.is-sel { background: var(--accent); color: var(--on-fill); font-weight: 600; }
  .tp-band { position: absolute; left: 0; right: 0; top: 50%; height: var(--tp-h);
    transform: translateY(-50%); border-radius: 9px;
    background: var(--tint-soft); pointer-events: none; }


  .footer { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-top: 32px; }
