/* StashHubb: the Hubb desk shell (FileHubb / ProjectHubb / LifeHubb look) around a calm reading view. */
:root {
  --bg: #f4f6f9; --surface: #ffffff; --surface2: #eef1f5; --line: #dde3ea; --line2: #cfd7e1;
  --text: #111827; --text2: #374151; --muted: #5b6675;
  --accent: #0b8a60; --accent-ink: #ffffff; --accent-soft: rgba(11,138,96,.10);
  --star: #b7791f; --danger: #c62828;
  --shadow: 0 10px 30px rgba(17,24,39,.14); --scrim: rgba(15,20,30,.45);
  --g1: #9d4edd; --g2: #2ec4b6;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  /* reader paper (changed by the Aa menu) */
  --paper: #ffffff; --ink: #1c2330; --ink2: #4a5563; --rule: #e3e7ee; --link: #0b7a56; --quote: #0b8a60;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --surface: #151b24; --surface2: #1b2330; --line: #263040; --line2: #2f3a4c;
    --text: #e6edf3; --text2: #c9d1db; --muted: #8b97a6;
    --accent: #5ee3b0; --accent-ink: #0d1117; --accent-soft: rgba(94,227,176,.09);
    --star: #f5c063; --danger: #ff8a80;
    --shadow: 0 12px 30px rgba(0,0,0,.5); --scrim: rgba(0,0,0,.6);
    --paper: #12171f; --ink: #dfe5ec; --ink2: #9aa6b4; --rule: #263040; --link: #6fe0b4; --quote: #5ee3b0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --surface: #151b24; --surface2: #1b2330; --line: #263040; --line2: #2f3a4c;
  --text: #e6edf3; --text2: #c9d1db; --muted: #8b97a6;
  --accent: #5ee3b0; --accent-ink: #0d1117; --accent-soft: rgba(94,227,176,.09);
  --star: #f5c063; --danger: #ff8a80;
  --shadow: 0 12px 30px rgba(0,0,0,.5); --scrim: rgba(0,0,0,.6);
  --paper: #12171f; --ink: #dfe5ec; --ink2: #9aa6b4; --rule: #263040; --link: #6fe0b4; --quote: #5ee3b0;
  color-scheme: dark;
}
/* sepia paper only changes the reading area */
.reader[data-paper="sepia"] { --paper: #f6efe1; --ink: #3b2f22; --ink2: #6f604d; --rule: #e4d8c3; --link: #8a5a14; --quote: #a0711f; }
.reader[data-paper="night"] { --paper: #0a0c10; --ink: #c9ced6; --ink2: #8a929e; --rule: #20252e; --link: #7fd6b5; --quote: #7fd6b5; }
.reader[data-paper="white"] { --paper: #ffffff; --ink: #1c2330; --ink2: #4a5563; --rule: #e3e7ee; --link: #0b7a56; --quote: #0b8a60; }

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
svg.lucide { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell */
.app { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.top { display: flex; align-items: center; gap: 10px; padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 0; color: var(--text); }
.brand svg { width: 28px; height: 28px; }
.wordmark { font-size: 17px; letter-spacing: -.4px; }
.wordmark b { font-weight: 800; background: linear-gradient(90deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search { flex: 1; max-width: 460px; margin-left: 18px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); }
.search kbd { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--surface2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .55; cursor: default; }
.ib { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--text); padding: 0; }
.ib:hover { background: var(--surface2); }
.ib.on { color: var(--accent); }
.ib.star.on { color: var(--star); }
.ib.star.on svg { fill: currentColor; }

.body { min-height: 0; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.side { border-right: 1px solid var(--line); padding: 14px 10px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.nav { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; border: 0; background: none; color: var(--text2); text-align: left; width: 100%; }
.nav:hover { background: var(--surface2); }
.nav.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .n { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav.on .n { color: inherit; }
.side h4 { margin: 16px 10px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav.tag svg { width: 15px; height: 15px; opacity: .7; }
.side .foot { margin-top: auto; padding-top: 12px; }

.main { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.list { max-width: 860px; margin: 0 auto; padding: 18px 20px 120px; }
.listhead { display: flex; align-items: baseline; gap: 12px; margin: 4px 2px 14px; }
.listhead h1 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.listhead .muted { font-size: 13px; }
.listhead select { margin-left: auto; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); padding: 0 8px; color: var(--text2); }

.card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; cursor: pointer; transition: transform .18s, opacity .18s, border-color .12s; touch-action: pan-y; overflow: hidden; }
.card:hover, .card.sel { border-color: var(--line2); box-shadow: 0 2px 10px rgba(17,24,39,.06); }
.card.sel { outline: 2px solid var(--accent-soft); }
.card .meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.card .meta .site { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.fav { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; object-fit: cover; }
.fav.letter { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; font-size: 9px; font-weight: 700; }
.card h3 { margin: 5px 0 4px; font-size: 16px; line-height: 1.3; letter-spacing: -.2px; }
.card.read h3 { color: var(--text2); font-weight: 600; }
.card p { margin: 0; color: var(--text2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .thumb { width: 116px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--surface2); align-self: center; }
.card .row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--surface2); color: var(--text2); font-size: 12px; border: 0; }
.chip.t::before { content: "#"; opacity: .55; }
.chip.warn { background: rgba(198,40,40,.09); color: var(--danger); }
.chip.busy { background: var(--accent-soft); color: var(--accent); }
.chip svg { width: 13px; height: 13px; }
.card .pbar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); border-radius: 0 2px 2px 0; }
.card .acts { position: absolute; top: 8px; right: 8px; display: none; gap: 2px; background: var(--surface); border-radius: 10px; box-shadow: 0 2px 10px rgba(17,24,39,.12); padding: 2px; }
.card:hover .acts { display: flex; }
.card .acts .ib { width: 32px; height: 32px; }
.snip { margin-top: 6px !important; font-size: 12.5px !important; color: var(--muted) !important; -webkit-line-clamp: 2; }
.snip mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 1px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty svg.big { width: 54px; height: 54px; opacity: .5; }
.empty h2 { color: var(--text); margin: 14px 0 6px; font-size: 18px; }
.empty p { max-width: 380px; margin: 0 auto 18px; }

.fab { display: none; }
.tabs { display: none; }

/* ---------- reader */
.reader { position: fixed; inset: 0; z-index: 30; background: var(--paper); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); animation: rin .18s ease-out; }
@keyframes rin { from { opacity: 0; transform: translateY(10px); } }
.rbar { display: flex; align-items: center; gap: 4px; padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); padding-top: max(6px, env(safe-area-inset-top)); border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; }
.rbar .ib { color: var(--ink); }
.rbar .ib:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.rbar .rt { flex: 1; min-width: 0; font-size: 13px; color: var(--ink2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 8px; opacity: 0; transition: opacity .2s; }
.rbar .rt.show { opacity: 1; }
.rprog { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--quote); width: 0; }
.rscroll { min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; }
.rcol { min-width: 0; max-width: var(--measure, 680px); margin: 0 auto; padding: 34px 22px 140px; font-family: var(--rfont, var(--serif)); font-size: var(--rsize, 19px); line-height: 1.68; }
.rcol .kicker { font-family: var(--sans); font-size: 13px; color: var(--ink2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rcol .kicker a { color: inherit; }
.rcol h1.title { font-family: var(--rfont, var(--serif)); font-size: 1.75em; line-height: 1.18; letter-spacing: -.02em; margin: 10px 0 8px; font-weight: 700; }
.rcol .by { font-family: var(--sans); font-size: 14px; color: var(--ink2); margin-bottom: 24px; }
.rcol .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -10px 0 24px; font-family: var(--sans); }
.rcol .tags .chip { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink2); }
.tldr { font-family: var(--sans); font-size: 15px; line-height: 1.55; background: color-mix(in srgb, var(--quote) 9%, transparent); border: 1px solid color-mix(in srgb, var(--quote) 25%, transparent); border-radius: 14px; padding: 12px 16px; margin: 0 0 26px; }
.tldr .h { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--quote); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.tldr ul { margin: 0; padding-left: 18px; }
.rnote { font-family: var(--sans); font-size: 14px; border-left: 3px solid var(--quote); padding: 4px 0 4px 12px; color: var(--ink2); margin: 0 0 24px; white-space: pre-wrap; }
.lead { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin: 0 0 26px; display: block; }
.art { overflow-wrap: break-word; }
.art p, .art ul, .art ol, .art blockquote, .art pre, .art figure, .art table { margin: 0 0 1.05em; }
.art h2, .art h3, .art h4 { font-family: var(--rfont, var(--serif)); line-height: 1.25; margin: 1.6em 0 .55em; letter-spacing: -.01em; }
.art h2 { font-size: 1.35em; } .art h3 { font-size: 1.15em; } .art h4 { font-size: 1em; }
.art a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 1.2em auto; }
.art figure { margin-left: 0; margin-right: 0; }
.art figcaption { font-family: var(--sans); font-size: 13px; color: var(--ink2); text-align: center; margin-top: -.6em; }
.art blockquote { border-left: 3px solid var(--quote); margin-left: 0; padding: .1em 0 .1em 1em; color: var(--ink2); font-style: italic; }
.art pre { font: 14px/1.5 var(--mono); background: color-mix(in srgb, var(--ink) 6%, transparent); padding: 12px 14px; border-radius: 10px; overflow-x: auto; white-space: pre; }
.art code { font-family: var(--mono); font-size: .86em; background: color-mix(in srgb, var(--ink) 6%, transparent); padding: .1em .3em; border-radius: 4px; }
.art pre code { background: none; padding: 0; }
.art hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.art table { border-collapse: collapse; font-family: var(--sans); font-size: 14px; display: block; overflow-x: auto; }
.art td, .art th { border: 1px solid var(--rule); padding: 6px 9px; }
.art .media-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--rule); }
.endcap { font-family: var(--sans); text-align: center; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--rule); color: var(--ink2); font-size: 14px; }
.endcap .row { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.endcap .btn { background: transparent; border-color: var(--rule); color: var(--ink); }
.nocopy { font-family: var(--sans); border: 1px dashed var(--rule); border-radius: 14px; padding: 22px; text-align: center; color: var(--ink2); font-size: 15px; }
.nocopy .row { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pdf { width: 100%; height: calc(100vh - 160px); border: 1px solid var(--rule); border-radius: 10px; }

/* ---------- popovers, sheets, toasts */
.pop { position: absolute; z-index: 40; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; min-width: 260px; font-family: var(--sans); font-size: 14px; }
.pop .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 4px 2px 6px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--surface2); border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.seg button { border: 0; background: none; height: 32px; border-radius: 8px; color: var(--text2); font-size: 13px; }
.seg button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); vertical-align: -1px; margin-right: 5px; }
.sizes { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sizes input { flex: 1; accent-color: var(--accent); }
.menu { display: flex; flex-direction: column; min-width: 220px; padding: 6px; }
.menu button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; background: none; border-radius: 8px; text-align: left; color: var(--text); }
.menu button:hover { background: var(--surface2); }
.menu button.danger { color: var(--danger); }

.scrim { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(520px, 100%); max-height: calc(100% - 20px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 18px 16px; animation: up .18s ease-out; }
@keyframes up { from { transform: translateY(16px); opacity: .5; } }
.sheet h2 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.sheet h2 .ib { margin-left: auto; margin-right: -8px; }
.sheet .sub { color: var(--muted); margin: 0 0 14px; font-size: 13px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 5px; }
.input, textarea.input { width: 100%; border: 1px solid var(--line2); background: var(--bg); border-radius: 10px; padding: 9px 11px; outline: none; color: var(--text); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.45; }
.sheet .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.sheet .actions .left { margin-right: auto; }
.tagbox { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--line2); background: var(--bg); border-radius: 10px; min-height: 42px; align-items: center; }
.tagbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tagbox .chip { background: var(--accent-soft); color: var(--accent); }
.tagbox .chip button { border: 0; background: none; padding: 0; display: grid; color: inherit; }
.tagbox input { flex: 1; min-width: 90px; border: 0; background: none; outline: none; height: 28px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.suggest .chip { cursor: pointer; border: 1px dashed var(--line2); background: none; }
.suggest .chip:hover { border-color: var(--accent); color: var(--accent); }
.setrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.setrow:first-of-type { border-top: 0; }
.setrow .t { flex: 1; min-width: 0; }
.setrow .t b { display: block; font-weight: 600; }
.setrow .t small { color: var(--muted); font-size: 12.5px; }
.bml { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; border: 1px dashed var(--accent); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 13px; cursor: grab; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #1d2430; color: #f2f5f8; padding: 10px 14px; border-radius: 12px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); animation: up .18s; max-width: calc(100% - 32px); }
.toast button { border: 0; background: none; color: #6fe0b4; font-weight: 700; padding: 0; }

/* ---------- sign in */
.gate { height: 100%; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, rgba(157,78,221,.13), transparent 60%), radial-gradient(900px 600px at 110% 110%, rgba(46,196,182,.13), transparent 60%), var(--bg); }
.gate form { width: min(360px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 22px; box-shadow: var(--shadow); text-align: center; }
.gate svg.mark { width: 64px; height: 64px; }
.gate h1 { margin: 10px 0 4px; font-size: 24px; letter-spacing: -.5px; font-weight: 400; }
.gate h1 b { font-weight: 800; background: linear-gradient(90deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate p { color: var(--muted); margin: 0 0 18px; }
.gate .input { text-align: center; font-size: 16px; margin-bottom: 10px; }
.gate .btn { width: 100%; height: 42px; }
.gate .err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 8px; }

/* ---------- phone */
@media (max-width: 860px) {
  .body { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .top .search { display: none; }
  .top.searching .brand, .top.searching .tbtns { display: none; }
  .top.searching .search { display: flex; margin-left: 0; max-width: none; }
  .top.searching .search kbd { display: none; }
  .list { padding: 12px 12px 110px; }
  .listhead { flex-wrap: wrap; row-gap: 2px; }
  .listhead h1 { font-size: 21px; }
  .listhead .muted { order: 3; flex-basis: 100%; }
  .card { padding: 12px 13px; gap: 12px; border-radius: 13px; }
  .card h3 { font-size: 15.5px; }
  .card .thumb { width: 78px; height: 78px; align-self: start; margin-top: 4px; }
  .card .acts { display: none !important; }
  .card p { -webkit-line-clamp: 2; font-size: 13px; }
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 20; width: 58px; height: 58px; border-radius: 18px; border: 0; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; box-shadow: 0 10px 24px rgba(91,60,160,.35); }
  .fab svg { width: 26px; height: 26px; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
  .tabs button { border: 0; background: none; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); position: relative; }
  .tabs button.on { color: var(--accent); font-weight: 600; }
  .tabs .badge { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
  .desk-only { display: none !important; }
  .scrim.bottom { place-items: end center; padding: 0; }
  .scrim.bottom .sheet { width: 100%; border-radius: 20px 20px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); max-height: 92%; }
  .rcol { padding: 22px 20px 120px; }
  .pop { left: 8px !important; right: 8px !important; min-width: 0; }
}
@media (min-width: 861px) { .phone-only { display: none !important; } }
