
  
  :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;
    --ico-btn:       20px;
    --ico-btn-round: 22px;
    --r-pill:   999px;
    --r-field:  12px;
    --r-card:   20px;
    --r-inner:  12px;
    --r-nav-indicator: 8px;
    --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;
    --accent-off:   #8478AE;
    --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);
    --shadow-float:  0 8px 20px -4px rgba(30,20,60,.45), 0 2px 4px rgba(30,20,60,.18);
    --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:   #f2c14e;
    --tone-calm:        #79bd9a;
    --tone-challenging: #e07466;
    --tone-hard:        #9f1d1d;
    --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;
    --fw-row:     500;
    --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; }

  
  [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: var(--ico-btn); height: var(--ico-btn); flex: none; margin-right: 8px; vertical-align: -4px; }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { background: var(--grey); }
  body { font-family: var(--font-ui); font-size: var(--fs-ui);
         max-width: 752px; margin: 0 auto;
         padding-left: 16px; padding-right: 16px; padding-bottom: 60px;
         background: var(--grey); color: var(--text); line-height: 1.6; }
  
  html { scrollbar-gutter: stable; }
  html { scroll-padding-top: 82px; }
  :root { --app-top: 63px; }
  *, *::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, .app-brand-sygnet, .app-side-flower, .app-side-word { height: 1.9rem; }
  .app-brand-logo { display: inline-flex; align-items: stretch; 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; 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 { position: relative; }
  .app-acct-open.has-news::after { content: ""; position: absolute; top: -1px; right: -1px;
    width: 12px; height: 12px; border-radius: 50%; background: var(--c-timing-fill);
    box-shadow: 0 0 0 2px var(--card); }
  .app-side.is-expanded .app-acct-labeled.has-news::after { right: auto; left: 30px; top: 2px; }
  .nw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none;
    background: var(--c-timing-fill); margin-right: 6px; }
  .acct-meta.nw-meta { display: inline-flex; align-items: center; }
  .acct-meta.nw-meta[hidden] { display: none; }
  .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: auto; width: 8.253rem; min-width: 7.088rem; flex-shrink: 1;
      aspect-ratio: 975.79 / 201; }
    .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; }
    .app-header.is-brand-mark .app-topback ~ .app-brand { min-width: 0; }
    .app-header.past-anchor:has(.rec-bid) .app-topback ~ .app-brand { display: none; }
    body:has(.app-topback) .rec-back { display: none; }
    .app-header.title-past .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.title-past .app-brand:has(+ .app-top-title) .app-brand-logo { display: none; }
    .app-header.title-past .app-brand:has(+ .app-top-title) .app-brand-sygnet { display: block; height: 1.7rem; }
    .app-header.title-past .app-beta-badge, .app-header.past-anchor:has(.rec-bid) .app-beta-badge { display: none; }
    .app-header.title-past .app-balance-buy { display: none; }
    .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%; }
  }
  .aw-lock { pointer-events: none; }
  .aw-lock .seg-btn:not(.active), .aw-lock .rec-vb:not(.active),
  .aw-lock .app-place:not(.on) { opacity: .5; }
  .aw-on { cursor: progress; }
  .aw-hide { display: none !important; }
  .aw-sg { flex: none; display: inline-block; vertical-align: middle; margin-block: -4px;
    width: 20px; height: 20px; }
  [data-wait-size="row"] .aw-sg { width: 22px; height: 22px; }
  .rec-vb .aw-sg { color: inherit !important; }
  .chl-pic .aw-sg, .rr-pic .aw-sg { color: var(--accent); }
  .seg-btn > .aw-sg, button > .aw-sg { margin-inline-end: 8px; }
  .aw-overlay { display: none; position: fixed; inset: 0; z-index: 1100;
    background: var(--scrim); align-items: center; justify-content: center; padding: 20px; }
  .aw-overlay.open { display: flex; }
  .aw-box { width: 100%; max-width: 440px; box-sizing: border-box; padding: 24px;
    background: var(--bg); border: 1px solid var(--accent); border-radius: var(--r-card);
    box-shadow: var(--shadow-modal); }
  .aw-title { margin: 4px 0 12px; font-size: var(--fs-title); color: var(--text); text-wrap: balance; }
  .aw-text { margin: 0 0 8px; font-size: var(--fs-ui); line-height: 1.55; color: var(--text); }
  .aw-sigil { display: none; width: 80px; height: 80px; margin: 12px auto 8px; }

.app-side, .app-side-bd, .app-guest-corner { display: none; }
@media (max-width: 640px) {
  .app-tabbar .app-place.on .app-place-lbl { border-bottom-color: transparent; }
  .app-tabbar .app-place.on > svg { box-sizing: content-box; padding: 5.5px 15.5px;
    margin: -5.5px -15.5px; background: var(--tint-selected); border-radius: var(--r-nav-indicator); }
}
@media (min-width: 641px) {
  body:has(.app-side) { --app-side-width: 80px; width: calc(100% - var(--app-side-width));
    position: relative; left: calc(var(--app-side-width) / 2);
    margin-left: auto; margin-right: auto; padding-top: 16px; }
  body:has(.app-side) > .app-header { display: none; }
  body:has(.app-guest-corner) { padding-top: 80px; }
  html:has(.app-side) { --app-top: 0px; scroll-padding-top: 16px; }
  html:has(.app-guest-corner) { --app-top: 64px; scroll-padding-top: 82px; }
  .app-side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0;
    width: 80px; height: 100dvh; z-index: 940; color: var(--text);
    background: color-mix(in srgb, var(--card) 44%, var(--grey));
    box-shadow: inset -1px 0 var(--line-soft); }
  .app-side-top { padding: 12px 6px 0; flex: none; }
  .app-side-brand-row { display: flex; align-items: center; flex-direction: column; gap: 12px; }
  .app-side-brand { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; text-decoration: none; }
  .app-side-flower { width: auto; }
  .app-side-word { width: auto; display: none; }
  .app-side-toggle { width: 44px; height: 44px; flex: none; border-radius: 50%;
    border: 2px solid transparent; color: var(--accent); background: var(--card);
    background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--field-bd); padding: 0;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .app-side-toggle svg { width: 21px; height: 21px; }
  .app-side .app-side-new { display: flex; flex-direction: column; margin: 16px auto 14px;
    width: 100%; height: auto; min-height: 64px; border: 0; background: transparent;
    color: var(--accent); gap: 4px; font-size: var(--fs-xs); font-weight: 600; }
  .app-side-new > svg { width: 40px; height: 40px; padding: calc((40px - var(--ico-btn-round)) / 2); border-radius: 50%;
    background: var(--accent); color: var(--on-fill); }
  .app-side-full, .app-side-beta { display: none; }
  .app-side-places { display: flex; flex-direction: column; gap: 2px; }
  .app-side .app-place { display: flex; flex-direction: column; gap: 5px; min-height: 58px;
    padding: 6px 0; border-radius: var(--r-pill); color: var(--text-2); font-weight: var(--fw-row); }
  .app-side .app-place svg { box-sizing: content-box; width: 21px; height: 21px;
    padding: 5.5px 15.5px; border-radius: var(--r-nav-indicator); color: var(--accent); }
  .app-side .app-place-lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    border: 0; padding: 0; }
  .app-side .app-place.on { color: var(--accent); font-weight: 600; }
  .app-side .app-place.on svg { background: var(--tint-selected); }
  .app-side .app-place:hover { background: var(--tint-hover); }
  .app-side-history { display: none; min-height: 0; flex: 1; overflow-y: auto;
    scrollbar-width: thin; scrollbar-gutter: stable; padding: 12px; }
  .app-side-history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  .app-side-history-actions { display: flex; align-items: center; gap: 4px; flex: none; }
  .app-side-history-head > a:first-child { display: inline-flex; align-items: center; min-height: 44px; }
  .app-side-history-head > a:first-child, .app-side-history-head > span { font-size: var(--fs-sm);
    font-weight: 600; color: var(--text-2); text-decoration: none; }
  .app-side-tabs { position: relative; display: inline-flex; flex: none; gap: 0; padding: 0;
    border-radius: var(--r-pill); }
  .app-side-tabs::before { content: ''; position: absolute; inset: 2px; border-radius: var(--r-pill);
    background: var(--card); box-shadow: inset 0 0 0 1px var(--field-bd); }
  .app-side-tab { position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 5px solid transparent; border-radius: var(--r-pill);
    background: none; background-clip: padding-box; color: var(--text-2); cursor: pointer; }
  .app-side-tab + .app-side-tab { margin-left: -10px; }
  .app-side-tab svg { width: 18px; height: 18px; }
  .app-side-tab:hover:not([aria-pressed="true"]) { color: var(--accent); background-color: var(--tint-hover); }
  .app-side-tab[aria-pressed="true"] { background-color: var(--accent); color: var(--on-fill); }
  .app-side-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
  .app-side:not([data-list="bm"]) .app-side-bm,
  .app-side[data-list="bm"] .app-side-recent { display: none; }
  .app-side-bm-more { flex: none; align-self: center; padding: 2px 7px; border-radius: var(--r-pill);
    background: var(--grey); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
  .app-side-ask, .app-side-search { display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; flex: none; border-radius: var(--r-pill);
    background: var(--card); border: 2px solid transparent; background-clip: padding-box;
    box-shadow: inset 0 0 0 1px var(--field-bd); color: var(--accent); text-decoration: none; }
  .app-side-search { width: 44px; }
  .app-side-search-rail { display: flex; margin: 10px auto 0; }
  .app-side-ask svg { width: var(--ico-btn-round); height: var(--ico-btn-round); }
  .app-side-search svg { width: 20px; height: 20px; }
  .app-side-ask:hover, .app-side-search:hover, .app-side-toggle:hover { background-color: var(--tint-hover); }
  .app-side-ask-empty { padding: 0 12px; gap: 6px; font-size: var(--fs-sm); font-weight: 600; }
  .app-side-group h2 { margin: 16px 8px 4px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
  .app-side-convo { display: flex; align-items: flex-start; gap: 9px; padding: 10px 8px;
    min-height: 60px; border-radius: var(--r-inner); color: var(--text); text-decoration: none; }
  .app-side-convo:hover { background: var(--tint-hover); }
  .app-side-dot { width: 7px; height: 7px; margin-top: 6px; flex: none;
    border-radius: 50%; background: var(--c-portrait); }
  .app-side-dot.int-relations { background: var(--c-relations); }
  .app-side-dot.int-timing { background: var(--c-timing); }
  .app-side-dot.int-variants { background: var(--c-variants); }
  .app-side-convo-text { min-width: 0; flex: 1; }
  .app-side-convo-title, .app-side-convo-meta { display: block; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis; }
  .app-side-convo-title { font-size: var(--fs-sm); font-weight: var(--fw-row); }
  .app-side-convo-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
  .app-side-empty { margin: 24px 12px; text-align: center; font-size: var(--fs-sm); color: var(--text-2); }
  .app-side-older { display: block; padding: 12px 8px; min-height: 44px; color: var(--accent); font-size: var(--fs-sm); }
  .app-side-ctx { margin: 8px 0 0; padding: 0 4px 0 10px; border-radius: var(--r-inner);
    background: var(--tint-selected); border: 1px dashed transparent; }
  .app-side-ctx[data-ctx="all"] { background: none; border-color: var(--field-bd); }
  .app-side-ctx-row { display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 0; font-size: var(--fs-xs); color: var(--text-2); }
  .app-side-ctx[data-ctx="on"] .app-side-ctx-off, .app-side-ctx[data-ctx="all"] .app-side-ctx-on { display: none; }
  .app-side-ctx-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-side-ctx-t b { color: var(--accent); font-weight: 600; }
  .app-side-ctx-sw { flex: none; max-width: 55%; min-height: 44px; padding: 0 6px; border: 0; background: none;
    color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; border-radius: var(--r-inner);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-side-ctx-sw:hover { background: var(--tint-hover); }
  .app-side-ctx-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .app-side-convo.is-cur { background: var(--tint-selected); }
  .app-side-ctx-empty p { margin: 0 0 12px; }
  .app-side-bm-empty p { margin: 0; line-height: 1.5; }
  .app-side-bm-ico { display: inline-flex; vertical-align: -3px; margin: 0 2px; color: var(--accent); }
  .app-side-bm-ico svg { width: 16px; height: 16px; }
  .app-side-ask-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
    border-radius: var(--r-pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--field-bd);
    color: var(--accent); font-weight: 600; text-decoration: none; }
  .app-side-ask-cta svg { width: var(--ico-btn); height: var(--ico-btn); }
  .app-side-ask-cta:hover { background: var(--tint-hover); }
  button.app-side-ask-cta { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
  .app-side-footer { display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 6px; margin-top: auto; flex: none; }
  .app-side-name, .app-side-account-chev, .app-side-guest-card { display: none; }
  .app-side-balance .app-balance { display: flex; flex-direction: row; min-width: 44px; font-size: var(--fs-xs);
    padding: 0 6px; gap: 3px; max-width: 100%; }
  .app-side .app-side-balance .app-balance-buy { display: none; }
  .app-side-balance { min-width: 0; order: -1; }
  .app-side-buy { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
    font-size: var(--fs-xs); font-weight: 600; color: var(--accent); text-decoration: none; }
  .app-side-balance:has(.level-low) .app-side-buy,
  .app-side-balance:has(.level-crit) .app-side-buy { display: flex; }
  body:has(.app-side) .cookie-consent { left: calc(var(--app-side-width) + 16px); }
  .app-side-guest-avatar .app-acct-open { display: inline-flex; }
  .app-guest-corner { display: flex; position: fixed; top: 8px; right: 16px;
    max-width: calc(100% - 104px); gap: 12px; align-items: center; z-index: 50;
    padding: 4px; background: var(--grey); border-radius: var(--r-pill); }
  .app-guest-corner > a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px;
    color: var(--accent); font-size: var(--fs-sm); text-decoration: none; }
  .app-guest-corner .lang-dd-trigger { min-height: 44px; }
  .app-guest-corner .app-side-toggle { border: 0; background-clip: border-box; }
  .app-side-auth { display: flex; gap: 8px; }
  .app-side-auth a { display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 8px 14px; border: 1px solid var(--field-bd);
    border-radius: var(--r-pill); background: var(--card); color: var(--accent);
    font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
  .app-side-auth .app-side-register { background: var(--accent); color: var(--on-fill); border-color: var(--accent); }
  body:has(.app-side) .app-acct { left: 12px; right: auto; top: auto; bottom: 76px;
    width: 304px; max-width: calc(100% - 24px); max-height: calc(100dvh - 100px); }
  .app-side-info h3 { color: var(--muted); font-size: var(--fs-xs); }
  body.app-side-overlay { overflow: hidden; }
  .app-side-bd.open { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 930; }
  .app-side.is-expanded { width: 320px; }
  .app-side.is-expanded .app-side-top { padding: 12px 12px 0; }
  .app-side.is-expanded .app-side-brand-row { flex-direction: row; justify-content: space-between; gap: 8px; }
  .app-side.is-expanded .app-side-word { display: block; }
  .app-side.is-expanded .app-side-full { display: inline; }
  .app-side.is-expanded .app-side-short { display: none; }
  .app-side.is-expanded .app-side-beta { display: inline-block; margin: 4px 0 0; }
  .app-side.is-expanded .app-side-new { flex-direction: row; justify-content: center;
    min-height: 44px; background: var(--accent); color: var(--on-fill);
    border-radius: var(--r-pill); font-size: var(--fs-ui); }
  .app-side.is-expanded .app-side-new > svg { width: var(--ico-btn); height: var(--ico-btn); padding: 0; background: none; }
  .app-side .app-side-new:hover > svg, .app-side.is-expanded .app-side-new:hover { background: var(--accent-hover); }
  .app-side.is-expanded .app-place { flex-direction: row; justify-content: flex-start; min-height: 44px;
    padding: 0 14px; gap: 12px; font-size: var(--fs-ui); }
  .app-side.is-expanded .app-place svg { padding: 0; background: none; }
  .app-side.is-expanded .app-place.on { background: var(--tint-selected); }
  .app-side.is-expanded .app-side-search-rail { display: none; }
  .app-side.is-expanded .app-side-history { display: block; }
  .app-side.is-expanded .app-side-footer { flex-direction: row; justify-content: space-between;
    padding: 12px; gap: 8px; }
  .app-side-account { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .app-side.is-expanded .app-side-account { flex: 1; }
  .app-side.is-expanded .app-acct-labeled { width: 100%; min-width: 44px; gap: 8px;
    border-radius: var(--r-pill); background: transparent; box-shadow: none; }
  .app-side.is-expanded .app-acct-labeled .app-acct-mono { display: inline-flex; align-items: center;
    justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
    background: var(--info-bg); box-shadow: inset 0 0 0 1.5px var(--tint-selected); }
  .app-side.is-expanded .app-acct-labeled:is(:hover, :focus-visible, [aria-expanded="true"]) { background: var(--hover-lav); }
  .app-side.is-expanded .app-acct-labeled { justify-content: flex-start; }
  .app-side.is-expanded .app-side-name { display: block; font-size: var(--fs-sm);
    font-weight: var(--fw-row); color: var(--text); min-width: 0; flex: 0 1 auto; text-align: left;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-side.is-expanded .app-side-account-chev { display: block; width: 13px; height: 13px;
    margin-right: 6px; flex: none; color: var(--muted); transform: rotate(180deg); }
  .app-side.is-expanded .app-acct-labeled[aria-expanded="true"] .app-side-account-chev { transform: none; }
  .app-side.is-expanded .app-side-balance { display: flex; align-items: center; order: 0;
    border-radius: var(--r-pill); background: var(--card); }
  .app-side.is-expanded .app-side-buy { padding-left: 10px; }
  .app-side.is-expanded .app-side-guest-card { display: block; border-top: 1px solid var(--line-soft); padding-top: 16px; }
  .app-side-guest-card strong { font-size: var(--fs-sm); font-weight: 600; }
  .app-side-guest-card p { font-size: var(--fs-xs); color: var(--text-2); margin: 8px 0 12px; }
  .app-side.is-expanded .app-side-guest-avatar { display: none; }
  .app-side .app-place > .aw-sg { box-sizing: content-box; margin: 0; padding: 6px 16px; }
  .app-side.is-expanded .app-place > .aw-sg { padding: .5px; }
  .app-side a:focus-visible, .app-side button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
}
@media (min-width: 1280px) {
  body:has(.app-side.is-expanded):not(.app-side-overlay) { --app-side-width: 320px; }
}
@media print { .app-side, .app-side-bd, .app-guest-corner { display: none !important; }
  body:has(.app-side) { width: auto; left: 0; margin: 0; padding-top: 0; } }

  .wk { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
  .wk-kicker { font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
               color: var(--muted); margin-top: 12px; }
  .wk-title { margin: 0; }
  .wk-by { color: var(--text-2); font-size: 15px; margin-top: -8px; }
  .wk-card { background: var(--card); border-radius: var(--r-card); padding: 18px 18px;
             box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 8px; }
  .wk-h2 { font-size: var(--fs-title); font-weight: var(--fw-h); color: var(--text); }
  .wk-accent { color: var(--accent); font-size: 16px; }
  .wk-h3 { font-size: 15px; font-weight: 600; color: var(--accent); }
  .wk-text { font-size: var(--fs-read); line-height: 1.6; }
  .wk-days { display: flex; flex-direction: column; gap: 12px; }
  .wk-days > .wk-h2 { margin-top: 4px; }
  .wk-today { outline: 2px solid var(--accent); outline-offset: -2px; }
  .wk-moments { list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .wk-moments li { display: flex; gap: 12px; font-size: 15px; }
  .wk-when { min-width: 112px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .wk-h { color: var(--text); font-weight: 600; }
  @media (max-width: 480px) {
    .wk-moments { gap: 12px; }
    .wk-moments li { gap: 14px; }
    .wk-when { flex: 0 0 auto; width: 4.9em; min-width: 0; font-size: 13px; white-space: nowrap;
               display: flex; flex-direction: column; }
    .wk-d, .wk-h { line-height: 22px; }
    .wk-h { font-size: 15px; }
    .wk-what { flex: 1 1 0; min-width: 0; line-height: 22px; }
    .wk-what .nb-gl { display: block; margin-right: 0; }
  }
  .nb-gl { font-family: var(--font-sym), 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Apple Symbols', sans-serif;
           color: var(--glyph); margin-right: 6px; white-space: nowrap; }
  .wk-retro { font-size: 15px; }
  .wk-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
  .wk-langnote { margin-bottom: -6px; }
  .wk-btn { display: flex; align-items: center; justify-content: center; min-height: 48px;
            border-radius: var(--r-pill); background: var(--accent); color: var(--on-fill, #fff);
            font-weight: 600; text-decoration: none; padding: 0 20px; margin-top: 4px; }
  .wk-btn:hover { background: var(--accent-hover); }
  .wk-cta { background: var(--accent); color: #fff; border-radius: var(--r-card);
            padding: var(--card-py, 20px) var(--card-px, 18px); display: flex; flex-direction: column; gap: 12px; }
  .wk-cta-h { font-size: 20px; line-height: 1.3; font-weight: var(--fw-h); }
  .wk-cta p { font-size: 15px; line-height: 1.5; }
  .wk-btn-light { background: #fff; color: var(--accent); }
  .wk-btn-light:hover { background: var(--hover-lav); }
  .wk-login { display: flex; align-items: center; justify-content: center; min-height: 44px;
              color: #fff; }
  .wk-part { gap: 0; padding-top: 4px; padding-bottom: 4px; }
  .wk-part[open] { padding-bottom: 16px; gap: 8px; }
  .wk-sum { list-style: none; cursor: pointer; min-height: 44px; display: flex;
            align-items: center; justify-content: space-between; gap: 12px; }
  .wk-sum::-webkit-details-marker { display: none; }
  .wk-chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted);
             transition: transform .2s; }
  .wk-part[open] .wk-chev { transform: rotate(180deg); }
  .wk-past .wk-sum { color: var(--text-2); }
  .wk-ask { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
            color: var(--accent); font-weight: 600; text-decoration: none; }
  .wk-ask:hover { text-decoration: underline; }

