/* Pass 95 — refine.css. Loaded last, so it has the final word.
   1. One z-index scale for the whole app   2. The notched glass dock   3. The Ask AI message box   4. Our own range input */

/* ===== 1. Layers =====
   Every floating thing picks its level from this one list, so two layers can never fight over the same number.
   background < in-page sticky bars < editor + button < menus inside a page < bottom dock < banners < top bar
   < pull-to-refresh < drawer + its scrim < sign-in sheet < cookie notice < drop veil < toasts < intro < restoring.
   (Native dialogs and bottom sheets use the browser's top layer, so they sit above all of these by themselves.) */
:root {
  --z-under: -1;
  --z-sticky: 4; --z-fab: 8; --z-menu: 12;
  --z-dock: 20; --z-banner: 22; --z-update: 24; --z-quickbar: 26; --z-reader: 28;
  --z-top: 30; --z-ptr: 31;
  --z-scrim: 40; --z-drawer: 41; --z-auth: 50;
  --z-cookie: 70; --z-veil: 75; --z-toast: 80; --z-intro: 100; --z-restoring: 200;
}
.etool, .pagenav, .ts-bar, .srch-top, .nc-bar, .ai-bar { z-index: var(--z-sticky); }
.shell .topbar { z-index: var(--z-top); }
.fab { z-index: var(--z-fab); }
.menu-pop, .bm, .suggest, .nbs-grid .nb.sort-lift, .nbs-grid .nb.sort-drop { z-index: var(--z-menu); }
.shell .bottom-bar { z-index: var(--z-dock); }
.notice-bar { z-index: var(--z-banner); }
.update-bar { z-index: var(--z-update); }
@media (pointer: coarse) { .quickbar.on { z-index: var(--z-quickbar); } }
.reader { z-index: var(--z-reader); }
.ptr { z-index: var(--z-ptr); }
.scrim { z-index: var(--z-scrim); }
.side { z-index: var(--z-drawer); }
@media (min-width: 60rem) { .side { z-index: auto; } }
.auth { z-index: var(--z-auth); }
.ck { z-index: var(--z-cookie); }
.drop-veil { z-index: var(--z-veil); }
.toasts { z-index: var(--z-toast); }
.intro { z-index: var(--z-intro); }
.restoring { z-index: var(--z-restoring); }
/* A menu opened from inside the top bar lives in the top bar's own layer, so it is never cut by the bar itself. */
.topbar .menu-pop { z-index: 2; }
/* The editor's + menu may use the room between the toolbar and the button; the editor sets its height (BlockEditor fitFab). */
.fab .menu-pop { z-index: 2; }

/* ===== 2. The dock: a glass pill, a round notch in its top edge, the green Plant a Seed button floating in the notch ===== */
@media (max-width: 59.99rem) {
  :root:root { --bb-h: calc(62px + env(safe-area-inset-bottom, 0px) * .5 + 38px); --notch-w: 112px; --notch-h: 34px;
    --notch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='34' viewBox='0 0 112 34'%3E%3Cpath d='M0 0C12 0 18 3 24 12C30 21 40 34 56 34C72 34 82 21 88 12C94 3 100 0 112 0Z'/%3E%3C/svg%3E"); }
  :root:root .shell.shell .bottom-bar.bottom-bar {
    position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(env(safe-area-inset-bottom, 0px) * .5 + 10px); height: 62px; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr 96px 1fr 1fr; align-items: center;
    border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .bb-shadow { position: absolute; left: 14px; right: 14px; top: 16px; bottom: -8px; border-radius: 30px; background: rgba(11, 53, 36, .3); filter: blur(15px); opacity: .5; pointer-events: none; }
  .bb-plate {
    position: absolute; inset: 0; border-radius: 31px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .1) 70%), color-mix(in srgb, var(--sheet) 82%, transparent);
    -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
    box-shadow: inset 0 1px 0 var(--lg-rim-hi, rgba(255, 255, 255, .8)), inset 0 0 0 1px var(--lg-rim-lo, rgba(255, 255, 255, .3)), inset 0 -12px 18px -14px rgba(11, 53, 36, .18);
    -webkit-mask: var(--notch) 50% 0 / var(--notch-w) var(--notch-h) no-repeat, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask: var(--notch) 50% 0 / var(--notch-w) var(--notch-h) no-repeat, linear-gradient(#000 0 0); mask-composite: exclude;
  }
  :root:root .bb-glider { display: none !important; }
  :root:root .shell.shell .bottom-bar .bb {
    position: relative; z-index: 1; height: 62px; min-height: 0; padding: 0; gap: 0; border-radius: 0; background: none;
    display: flex; align-items: center; justify-content: center; color: var(--soft); -webkit-tap-highlight-color: transparent;
  }
  :root:root .shell.shell .bottom-bar .bb-i {
    position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin: 0; border-radius: 50%; overflow: visible;
    background: none; transition: background-color .25s, color .25s, transform .25s cubic-bezier(.3, 1.5, .5, 1);
  }
  :root:root .shell.shell .bottom-bar .bb-i::after { content: none; }
  :root:root .shell.shell .bottom-bar .bb-i svg { width: 25px; height: 25px; stroke-width: 1.8; }
  :root:root .shell.shell .bottom-bar .bb-l { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  :root:root .shell.shell .bottom-bar .bb.active, :root:root .shell.shell .bottom-bar .bb[aria-expanded=true] { color: var(--indigo); }
  :root:root .shell.shell .bottom-bar .bb.active .bb-i, :root:root .shell.shell .bottom-bar .bb[aria-expanded=true] .bb-i { background: color-mix(in srgb, var(--indigo) 15%, transparent); }
  :root:root .shell.shell .bottom-bar .bb:active .bb-i { transform: scale(.88); }
  /* The centre button */
  :root:root .shell.shell .bottom-bar .bb-cap { z-index: 2; overflow: visible; }
  :root:root .shell.shell .bottom-bar .bb-cap .dot {
    position: absolute; left: 50%; top: -29px; width: 58px; height: 58px; margin: 0; padding: 0; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; color: #fff; transform: translateX(-50%);
    background: radial-gradient(120% 120% at 30% 18%, #86e3b8, #3fb07c 52%, #2a935f);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 6px rgba(11, 53, 36, .18), 0 12px 22px -8px rgba(31, 122, 82, .7);
    transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s;
  }
  :root:root .shell.shell .bottom-bar .bb-cap .dot svg { width: 28px; height: 28px; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); stroke-width: initial; }
  :root:root .shell.shell .bottom-bar .bb-cap:active .dot { transform: translateX(-50%) scale(.92); }
  :root:root .shell.shell .bottom-bar .bb-cap:active .dot svg { transform: rotate(90deg); }
  :root:root .shell.shell .bottom-bar .bb-cap .dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(63, 176, 124, .55); animation: dockRing 3.2s ease-out infinite; pointer-events: none; }
  @keyframes dockRing { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { :root:root .shell.shell .bottom-bar .bb-cap .dot::after { animation: none; opacity: 0; } }
  :root[data-motion=reduce] .bb-cap .dot::after { animation: none; opacity: 0; }
  /* Chat page: keep the message box clear of the floating centre button */
  .ai-bar.nc-bar { bottom: calc(var(--bb, 0px) + .35rem); }
}

/* ===== 3. The Ask AI message box: nothing can push it wider than the screen, long text wraps and scrolls, the controls sit in two tidy rows ===== */
.chat.nc, .chat-list, .nc-list { min-width: 0; max-width: 100%; }
:root:root .ai-bar.ai-bar.nc-bar {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: .3rem; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  padding: .6rem .65rem .6rem; border-radius: 26px;
}
.ai-bar > * { min-width: 0; }
:root:root .ai-bar.ai-bar textarea {
  display: block; width: 100%; min-width: 0; box-sizing: border-box; margin: 0; padding: .45rem .5rem .35rem; resize: none; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  min-height: 2.6rem; max-height: min(9.5rem, 32dvh); font: 1rem/1.45 var(--sans); font-size: max(16px, 1rem);
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; scrollbar-width: thin;
}
:root:root .ai-bar.ai-bar .ai-chips { display: flex; flex-wrap: nowrap; gap: .4rem; margin: 0; padding: .1rem .15rem .2rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
:root:root .ai-bar.ai-bar .ai-chips .nc-chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: 0 .8rem 0 .65rem; white-space: nowrap; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--soft); font: 500 .8rem var(--sans); }
:root:root .ai-bar.ai-bar .ai-chips .nc-chip svg { width: 16px; height: 16px; flex: none; }
:root:root .ai-bar.ai-bar .ai-chips .nc-chip.on { background: color-mix(in srgb, var(--indigo) 14%, transparent); border-color: color-mix(in srgb, var(--indigo) 35%, transparent); color: var(--indigo); }
:root:root .ai-bar.ai-bar .ai-tools { display: flex; align-items: center; flex-wrap: nowrap; gap: .3rem; min-width: 0; padding-top: .1rem; border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
:root:root .ai-bar.ai-bar .ai-tools .nc-grow { flex: 1 1 0; min-width: 0; }
:root:root .ai-bar.ai-bar .ai-tool, :root:root .ai-bar.ai-bar .ai-tools .etb { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
:root:root .ai-bar.ai-bar .ai-model { flex: 0 1 auto; min-width: 0; max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root:root .ai-bar.ai-bar .nc-send.nc-send.btn:not(.ghost) {
  flex: none; width: 42px; height: 42px; min-height: 42px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #4cbf88, #2a935f); box-shadow: 0 8px 16px -8px rgba(31, 122, 82, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .15s, background .2s, opacity .2s, box-shadow .2s;
}
:root:root .ai-bar.ai-bar .nc-send.nc-send.btn:not(.ghost).idle { background: color-mix(in srgb, var(--ink) 9%, transparent); color: color-mix(in srgb, var(--ink) 38%, transparent); box-shadow: none; }
:root:root .ai-bar.ai-bar .nc-send.nc-send.btn:not(.ghost):active { transform: scale(.9); }
/* Messages: long words, links and code wrap or scroll inside the bubble, never past the screen */
.bub, .nc-body, .nc-ai, .chat-src, .nc-websrc, .nc-steps, .ai-note { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.bub pre, .bub table, .nc-body pre, .nc-body table { max-width: 100%; overflow-x: auto; }
.bub img, .bub svg, .bub video, .nc-body img { max-width: 100%; height: auto; }
.chat-src a, .nc-websrc a { overflow-wrap: anywhere; word-break: break-all; }

/* ===== 4. Our own range input =====
   A soft rounded track that fills as you drag, a white thumb with a green ring that lifts while held, and a value bubble.
   Every <input type="range"> in the app gets it (the hue slider keeps its rainbow track). */
input[type=range]:not(.cp-hue) {
  --fill: var(--indigo); --off: color-mix(in srgb, var(--ink) 13%, transparent); --trk: 6px; --thumb: 24px; --p: 0%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; height: 28px; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none;
  accent-color: var(--fill);  touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
input[type=range]:not(.cp-hue):focus, input[type=range]:not(.cp-hue):focus-visible { outline: 0; box-shadow: none; border: 0; background: transparent; }
input[type=range]:not(.cp-hue)::-webkit-slider-runnable-track { height: var(--trk); border-radius: 99px; background: linear-gradient(90deg, var(--fill) var(--p), var(--off) var(--p)); }
input[type=range]:not(.cp-hue)::-moz-range-track { height: var(--trk); border-radius: 99px; background: var(--off); }
input[type=range]:not(.cp-hue)::-moz-range-progress { height: var(--trk); border-radius: 99px; background: var(--fill); }
input[type=range]:not(.cp-hue)::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: var(--thumb); height: var(--thumb); margin-top: calc((var(--trk) - var(--thumb)) / 2); box-sizing: border-box;
  border-radius: 50%; background: #fff; border: 3px solid var(--fill); box-shadow: 0 2px 6px rgba(11, 53, 36, .28), 0 0 0 0 color-mix(in srgb, var(--fill) 22%, transparent);
  transition: transform .18s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s;
}
input[type=range]:not(.cp-hue)::-moz-range-thumb {
  width: calc(var(--thumb) - 6px); height: calc(var(--thumb) - 6px); border-radius: 50%; background: #fff; border: 3px solid var(--fill); box-shadow: 0 2px 6px rgba(11, 53, 36, .28);
  transition: transform .18s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s;
}
input[type=range]:not(.cp-hue):active::-webkit-slider-thumb, .rng.held input[type=range]::-webkit-slider-thumb { transform: scale(1.14); box-shadow: 0 3px 8px rgba(11, 53, 36, .3), 0 0 0 8px color-mix(in srgb, var(--fill) 20%, transparent); }
input[type=range]:not(.cp-hue):active::-moz-range-thumb { transform: scale(1.14); box-shadow: 0 3px 8px rgba(11, 53, 36, .3), 0 0 0 8px color-mix(in srgb, var(--fill) 20%, transparent); }
input[type=range]:not(.cp-hue):focus-visible::-webkit-slider-thumb { box-shadow: 0 2px 6px rgba(11, 53, 36, .28), 0 0 0 6px color-mix(in srgb, var(--fill) 20%, transparent); }
input[type=range]:disabled { opacity: .45; cursor: not-allowed; }
.rng { position: relative; display: block; min-width: 0; width: 100%; padding-top: 22px; }
.rng-rail { position: relative; display: flex; align-items: center; height: 28px; }
.rng-bubble { position: absolute; bottom: calc(100% - 2px); left: calc(12px + (100% - 24px) * var(--p, 0) / 100); transform: translate(-50%, 4px) scale(.8); transform-origin: 50% 100%; min-width: 2.2rem; padding: .22rem .5rem; border-radius: 10px; text-align: center; pointer-events: none;
  background: var(--ink); color: var(--paper); font: 600 .74rem/1.2 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; transition: opacity .15s, transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.rng-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; background: inherit; transform: translate(-50%, -4px) rotate(45deg); border-radius: 2px; }
.rng.held .rng-bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }
.rng-ticks { position: absolute; left: 12px; right: 12px; top: 50%; display: flex; justify-content: space-between; pointer-events: none; }
.rng-ticks i { width: 2px; height: 10px; margin-top: -5px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.sx-slide .rng { padding-top: 0; }
.sx-slide .rng-bubble { display: none; }
@media (prefers-reduced-motion: reduce) { input[type=range]::-webkit-slider-thumb, input[type=range]::-moz-range-thumb, .rng-bubble { transition: none; } }
@media (forced-colors: active) { input[type=range]:not(.cp-hue)::-webkit-slider-runnable-track { background: ButtonText; } input[type=range]::-webkit-slider-thumb { background: Highlight; border-color: ButtonText; } }

/* ===== Pass 96: the block ⋮ menu floats over the page, never cut by the note's edge; and the dock shows its labels again ===== */
.brow .bmenu .bm-pop {
  position: fixed; right: auto; z-index: var(--z-menu); box-sizing: border-box; padding: .45rem; gap: .1rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  border-radius: 20px; box-shadow: 0 18px 44px -14px rgba(11, 36, 26, .38), 0 2px 8px rgba(11, 36, 26, .08);
}
.bm-pop::-webkit-scrollbar { display: none; }
.bm-h { margin: .45rem .5rem .15rem; font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.bm-h:first-child { margin-top: .2rem; }
.bm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.bm-pop .bm-act { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 44px; padding: 0 .7rem; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 500 .95rem var(--sans); text-align: left; }
.bm-pair .bm-act { background: color-mix(in srgb, var(--ink) 5%, transparent); justify-content: center; }
.bm-pop .bm-act:active, .bm-pop .bm-act:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.bm-g { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: color-mix(in srgb, var(--indigo) 12%, transparent); color: var(--indigo); font-size: .95rem; line-height: 1; }
.bm-pair .bm-g { background: none; }
.bm-turn { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .6rem; min-height: 44px; padding: 0 .4rem 0 .7rem; font: 500 .95rem var(--sans); color: var(--ink); }
.bm-turn select { min-width: 0; width: 100%; min-height: 38px; }
.bm-sep { height: 1px; margin: .35rem .4rem; background: var(--rule); }
.bm-pop .bm-act.danger { color: var(--margin, #b3261e); }
.bm-pop .bm-act.danger .bm-g { background: color-mix(in srgb, var(--margin, #b3261e) 12%, transparent); color: var(--margin, #b3261e); }

@media (max-width: 59.99rem) {
  :root:root .shell.shell .bottom-bar { height: 70px; grid-template-columns: 1fr 1fr 92px 1fr 1fr; }
  :root:root .shell.shell .bottom-bar .bb { height: 70px; flex-direction: column; justify-content: center; gap: 2px; padding-top: 2px; }
  :root:root .shell.shell .bottom-bar .bb-i { width: 52px; height: 32px; border-radius: 16px; }
  :root:root .shell.shell .bottom-bar .bb-i svg { width: 23px; height: 23px; }
  :root:root .shell.shell .bottom-bar .bb-l { position: static; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; font: 500 .68rem/1.1 var(--sans); letter-spacing: .01em; color: inherit; max-width: 100%; text-overflow: ellipsis; }
  :root:root .shell.shell .bottom-bar .bb.active .bb-l { font-weight: 600; }
  /* The centre button keeps its room, its label sits beneath it, inside the notch's shadow */
  :root:root .shell.shell .bottom-bar .bb-cap { justify-content: flex-end; padding-bottom: 6px; }
  :root:root .shell.shell .bottom-bar .bb-cap .bb-l { display: none; }
  :root:root { --bb-h: calc(70px + env(safe-area-inset-bottom, 0px) * .5 + 38px); }
}
.bm-pop[popover] { margin: 0; inset: auto; height: auto; color: var(--ink); border: 1px solid var(--rule); }
.bm-pop:not(:popover-open) { display: none; }
.bm-pop .bm-act { justify-content: flex-start; }
.bm-pair .bm-act { justify-content: center; }
@media (max-width: 350px) { :root:root .shell.shell .bottom-bar .bb-l { font-size: .62rem; letter-spacing: 0; } }

/* ===== Pass 98: found while scanning every screen ===== */
/* Sign-in screen: the same light green stage as the home page (dark theme keeps its deep green); fields that look like fields. */
:root:not([data-theme=dark]) .auth { color: #0b3524; background: radial-gradient(110% 60% at 50% -10%, #f4fff9 0%, transparent 62%), linear-gradient(180deg, #d3f4e1 0%, #b3e8cd 60%, #9fe0bf 100%); }
:root:not([data-theme=dark]) .auth h1 { color: #0b3524; }
:root:not([data-theme=dark]) .auth-sub, :root:not([data-theme=dark]) .auth-switch, :root:not([data-theme=dark]) .auth-msg, :root:not([data-theme=dark]) .auth-hint { color: #1c5139; }
:root:not([data-theme=dark]) .auth-logo { box-shadow: 0 14px 34px -12px rgba(11, 53, 36, .45); }
:root:not([data-theme=dark]) .auth-link { color: #14664a; }
:root:not([data-theme=dark]) .auth-google { background: #fff; border-color: rgba(11, 53, 36, .14); color: #0b3524; box-shadow: 0 8px 20px -14px rgba(11, 53, 36, .5); }
:root:not([data-theme=dark]) .auth-or { color: #3d6b55; }
:root:not([data-theme=dark]) .auth-or:before, :root:not([data-theme=dark]) .auth-or:after { background: rgba(11, 53, 36, .16); }
:root:not([data-theme=dark]) .auth .auth-field input[type] { color: #0b3524; background: #fff; border: 1px solid rgba(11, 53, 36, .16); }
:root:not([data-theme=dark]) .auth .auth-field input[type]::placeholder { color: #6a8a79; }
:root:not([data-theme=dark]) .auth .auth-field input[type]:focus { border-color: #1f7a52 !important; }
:root:not([data-theme=dark]) .auth-field > svg, :root:not([data-theme=dark]) .auth-eye { color: #4f7664; }
:root:not([data-theme=dark]) .auth-go { background: #1f7a52; }
:root:not([data-theme=dark]) .auth-go:hover:not(:disabled) { background: #1a6a46; }
:root:not([data-theme=dark]) .auth-go:disabled { background: rgba(11, 53, 36, .14); color: rgba(11, 53, 36, .45); }
:root:not([data-theme=dark]) .auth-legal { color: #3d6b55; }
:root:not([data-theme=dark]) .auth .auth-legal a { color: #0b3524; }
:root:not([data-theme=dark]) .auth-meter i { background: rgba(11, 53, 36, .14); }
:root:not([data-theme=dark]) .auth :focus-visible { outline-color: #1f7a52; }
/* Search shortcuts: long names wrap instead of being cut with "..." */
.srch-jump > * { min-width: 0; }
.srch-jump a, .srch-jump button { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; min-height: 48px; }
.srch-jump .srch-jtile span:last-child { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
/* Small links get a finger-sized tap area */
.auth-legal a { padding: .7rem 0; }
a.il { display: inline-flex; align-items: center; min-height: 40px; }
/* Scrolling chip rows fade at the right edge so a cut-off chip reads as "more this way" */
.pg-strip { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }

/* ===== Home skeleton: same layout as the real home page ===== */
.skel.hm{gap:1.5rem;max-width:46rem;margin-inline:auto;padding:0}
.sk-hmhead{display:flex;flex-direction:column;gap:.6rem;margin:.1rem 0 -.3rem}
.sk.sm{height:.8rem;border-radius:5px}.sk.md{height:1.1rem;border-radius:6px}.sk.big{height:2.1rem;border-radius:10px}
.sk.askbar{height:56px;width:100%;border-radius:999px}
.sk-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.3rem}
.sk-tile{display:flex;flex-direction:column;align-items:center;gap:.55rem;padding:.25rem 0}
.sk.chip{width:100%;max-width:4.1rem;height:auto;aspect-ratio:1;border-radius:22px}
.sk-bh{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 .7rem;padding:0 .1rem}
.sk-bh .sk.md{height:1.1rem}
.sk-rail{display:flex;gap:.7rem;overflow:hidden;margin-inline:calc(var(--hm-pad,1.2rem)*-1);padding:.15rem var(--hm-pad,1.2rem) .3rem}
.sk-hcard{flex:none;display:flex;flex-direction:column;justify-content:space-between;gap:.9rem;width:min(60vw,14.5rem);min-height:8.2rem;padding:.9rem;border:1px solid var(--rule);border-radius:20px;background:var(--sheet)}
.sk-hcard.first{width:min(72vw,17rem)}
.sk-hcard .sk-col{margin:0;gap:.5rem}
.sk.ic.lg{width:34px;height:34px;border-radius:11px}
.sk.ncard{width:min(42vw,10.5rem);height:9.5rem;border-radius:16px}
.sk-glance{display:flex;gap:.5rem;overflow:hidden;margin-top:-.4rem}
.sk.pill.big{height:44px}
.sk-group{padding:.25rem;border:1px solid var(--rule);border-radius:20px;background:var(--sheet)}
.sk-grow{display:flex;align-items:center;gap:.8rem;min-height:60px;padding:.5rem .6rem}
.sk-grow .sk-col{margin:0;gap:.5rem}
.sk.dot.sm{width:38px;height:38px;border-radius:12px}
.sk.dot.xl{width:92px;height:92px}
/* The light runs down the page in a soft wave instead of every shape flashing at once. */
.skel.sk-homew>:nth-child(n+3) .sk::after,.skel.sk-profw>:nth-child(n+3) .sk::after{animation-delay:.12s}
.skel.sk-homew>:nth-child(n+5) .sk::after,.skel.sk-profw>:nth-child(n+4) .sk::after{animation-delay:.24s}
.skel.sk-homew>:nth-child(n+7) .sk::after,.skel.sk-profw>:nth-child(n+5) .sk::after{animation-delay:.36s}
/* Profile skeleton */
.skel.prof{padding:0}
.sk-pfhero{display:flex;flex-direction:column;align-items:center;gap:.6rem;padding:1.6rem 1.2rem 1.3rem;border:1px solid var(--rule);border-radius:24px;background:var(--sheet)}
.sk-pfchips{display:flex;gap:.4rem;margin-top:.4rem}
.sk-pfstats{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
.sk.stat{height:4.4rem;border-radius:18px}
.sk-pfcard{display:flex;flex-direction:column;gap:.75rem;padding:1.1rem;border:1px solid var(--rule);border-radius:22px;background:var(--sheet)}

/* ===== Profile page ===== */
.prof{max-width:34rem;margin-inline:auto;display:flex;flex-direction:column;gap:1.1rem}
.prof>h1{margin:0;font:600 clamp(1.7rem,6.4vw,2.2rem)/1.12 var(--sans);letter-spacing:-.032em}
.pf-hero{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.3rem;padding:1.6rem 1.2rem 1.3rem;border:1px solid var(--rule);border-radius:24px;background:radial-gradient(120% 90% at 50% 0%,color-mix(in srgb,var(--indigo) 15%,transparent),transparent 70%),var(--sheet);box-shadow:var(--shadow-sm)}
.pf-avatar{position:relative;margin-bottom:.45rem}
.pf-av{display:block}.pf-av .avatar-ico{box-shadow:0 0 0 4px var(--sheet),0 0 0 5.5px color-mix(in srgb,var(--indigo) 32%,transparent)}
.pf-edit{position:absolute;right:-6px;bottom:-4px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:2px solid var(--sheet);border-radius:50%;background:var(--indigo);color:var(--on-accent,#fff);cursor:pointer;box-shadow:0 6px 14px -6px color-mix(in srgb,var(--indigo) 70%,transparent);transition:transform .12s}
.pf-edit::after{content:"";position:absolute;inset:-8px}
.pf-edit:active{transform:scale(.92)}
.pf-name{margin:0;font:600 1.4rem/1.2 var(--sans);letter-spacing:-.028em;overflow-wrap:anywhere}
.pf-mail{margin:0;font:400 .92rem/1.4 var(--sans);color:var(--soft);overflow-wrap:anywhere}
.pf-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem;margin-top:.7rem}
.pf-chip{display:inline-flex;align-items:center;gap:.4rem;min-height:30px;padding:0 .75rem 0 .6rem;border:1px solid var(--rule);border-radius:999px;background:color-mix(in srgb,var(--paper) 55%,var(--sheet));color:var(--ink);font:500 .78rem var(--sans);text-decoration:none}
.pf-chip svg{color:var(--indigo)}a.pf-chip:hover{background:var(--hover)}
.pf-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.pf-stat{display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.85rem .4rem;border:1px solid var(--rule);border-radius:18px;background:var(--sheet);box-shadow:var(--shadow-sm)}
.pf-stat strong{font:600 1.4rem/1.1 var(--sans);letter-spacing:-.03em;font-variant-numeric:tabular-nums}.pf-stat span{font:400 .76rem var(--sans);color:var(--soft)}
.pf-card{padding:1.1rem 1.1rem 1.15rem;border:1px solid var(--rule);border-radius:22px;background:var(--sheet);box-shadow:var(--shadow-sm)}
.prof .pf-card h2{margin:0 0 .65rem;font:600 1.05rem/1.2 var(--sans);letter-spacing:-.02em}
.prof .pf-card>p{margin:.3rem 0 0}
.pf-card .hm-group{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.pf-card .hm-row{padding-inline:0}.pf-card .hm-group li+li .hm-row::before{right:0}
.pf-row:hover{background:none}
.pf-note{margin:.8rem 0 0;font-size:.85rem;line-height:1.5}
.pf-plan{display:block}
.prof .pf-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:.9rem 0 0}
.prof .pf-actions .btn{flex:1;min-height:46px;margin:0;border-radius:999px}
.pf-card .prof-danger{margin-top:.5rem;padding-top:.2rem;border-top:1px solid var(--rule)}
.pf-handle{display:flex;align-items:center;gap:.6rem;font:600 1.1rem var(--sans);letter-spacing:-.02em}
.pf-handle svg{color:var(--indigo)}
@media (prefers-reduced-motion:reduce){.pf-edit{transition:none}}
