:root {
  color-scheme: dark;
  --ground: #1F2D2B;
  --surface: #2A3B38;
  --field: #253532;
  --deep: #172220;
  --ink: #F3F1E7;
  --text2: #D5DCD6;
  --muted: #B7C2BB;
  --border: #3D504C;
  --divider: #33443F;
  --input: #5A726C;
  --accent: #F6D365;
  --on-accent: #1F2D2B;
  --soft: #8FD8E8;
  --on-soft: #0B3B47;
  --ok: #B9E68A;
  --danger: #FF8A80;
  --pass-bg: #263E3E;
  --display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
a { color: var(--accent); }
a:hover { color: #FFE7A0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.text2 { color: var(--text2); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.normal { font-weight: 400; }
.grow { flex-grow: 1; }
.minw0 { min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center-text { text-align: center; }
.stack-2 { display: flex; flex-direction: column; gap: 2px; }
.stack-4 { display: flex; flex-direction: column; gap: 4px; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.row-8 { display: flex; gap: 8px; align-items: center; }
.end { justify-content: flex-end; }
.display-xl { font-family: var(--display); font-size: 48px; font-weight: 800; line-height: 1.05; }
.display-lg { font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1.1; }
.display-md { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.15; }
.lead { font-size: 17px; line-height: 1.55; color: var(--text2); }
.error { color: var(--danger); font-weight: 500; font-size: 14px; }
.ic { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: filter .15s, background-color .15s;
}
.btn:disabled { opacity: .55; cursor: progress; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--input); }
.btn-secondary:hover { background: #33473F; color: var(--ink); }
.btn-soft { background: var(--soft); color: var(--on-soft); }
.btn-soft:hover { filter: brightness(1.05); color: var(--on-soft); }
.btn-danger { background: var(--danger); color: #3A0B07; }
.btn-danger-text { background: transparent; color: var(--danger); padding: 0 10px; }
.btn-danger-text:hover { background: rgba(255,138,128,.1); }
.btn-google { height: 52px; width: 100%; border-radius: 12px; background: var(--surface); border: 1px solid var(--input); color: var(--ink); font-size: 16px; gap: 12px; }
.btn-google:hover { background: #33473F; }
.btn-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.btn-icon:hover { background: #33473F; }
.btn-icon.sm { width: 38px; height: 38px; }
.btn-icon.ghost { border: 0; background: transparent; color: var(--ink); width: 44px; height: 44px; }
.btn-icon.ghost:hover { background: var(--surface); }
.btn-icon.danger { color: var(--danger); }
.btn-icon.soft { border: 0; background: var(--soft); color: var(--on-soft); width: 44px; height: 44px; border-radius: 12px; }

/* ---------- Brand ---------- */
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1;
}
.brand-mark.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 30px; }

/* ---------- Screens ---------- */
.screen.center { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px 24px; }
#screen-loading .brand-mark { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { #screen-loading .brand-mark { animation: none; } }

.lock-tile { width: 88px; height: 88px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); color: var(--text2); display: flex; align-items: center; justify-content: center; }

.login { min-height: 100vh; min-height: 100dvh; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; padding: 56px 24px max(32px, env(safe-area-inset-bottom)); }
.login-hero { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.login-tiles { display: grid; grid-template-columns: repeat(3, 52px); gap: 8px; }
.login-tiles > div { height: 52px; border-radius: 14px; }
.login-actions { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 641px) {
  .login { justify-content: center; gap: 40px; padding-top: 32px; }
  .login-hero { flex-grow: 0; }
}

/* ---------- Top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; flex-grow: 1; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; }
.brand-host { font-size: 12px; color: var(--muted); }
.user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #FF9EC4; color: #4A0F2A; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 14px; color: var(--text2); }

.content { max-width: 1120px; margin: 0 auto; padding: 40px 24px 96px; }

/* ---------- List ---------- */
.list-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; flex-grow: 1; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text2); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.search { height: 40px; min-width: 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search input { border: 0; outline: 0; background: transparent; flex-grow: 1; font-size: 14px; color: var(--ink); min-width: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.grid > * { min-width: 0; }

.tile {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }

.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.card-main { all: unset; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; border-radius: 10px; }
.card-main:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex-grow: 1; }
.card-name { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.card-sub { font-size: 13px; color: var(--muted); display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.card-sub .card-state, .card-sub .dot { display: none; }
.card-slug { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-actions { display: flex; gap: 8px; border-top: 1px solid var(--divider); padding-top: 14px; }
.card-actions .btn { height: 40px; }
.card-share { display: none; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge.public { background: var(--soft); color: var(--on-soft); }
.badge.private { background: var(--divider); color: var(--text2); }
.badge.badge-pass { background: var(--accent); color: #3B2E00; }
.updated { font-size: 12.5px; color: var(--muted); }

.dropcard {
  min-height: 220px; border: 2px dashed var(--input); border-radius: 16px; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; cursor: pointer;
}
.dropcard:hover { border-color: var(--accent); }
.dropcard-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.dropcard strong { font-size: 15px; color: var(--ink); }

.fab {
  position: fixed; right: 16px; bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 6;
  height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 18px; background: var(--accent); color: var(--on-accent);
  font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.drop-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 24px; pointer-events: none; }
.drop-overlay-in { border: 3px dashed var(--accent); border-radius: 24px; padding: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--accent); font-size: 18px; font-weight: 600; background: var(--ground); text-align: center; }

/* ---------- Empty state ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; padding-top: 16px; }
.empty-head { max-width: 640px; }
.steps { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-wrap: wrap; gap: 16px; }
.step { flex: 1 1 280px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.step h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 14px; line-height: 1.5; color: var(--text2); }
.step-body { display: flex; gap: 12px; align-items: flex-start; }
.step-num { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: var(--ground); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.step-art { height: 140px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; }
.art-yellow { background: var(--accent); color: #3B2E00; }
.art-cyan { background: var(--soft); flex-direction: column; gap: 10px; }
.art-green { background: var(--ok); color: #22400A; }
.art-file { width: 64px; height: 80px; border-radius: 8px; background: var(--ink); border: 1px solid #3B2E00; display: flex; align-items: flex-end; padding: 8px; font-size: 11px; font-weight: 700; }
.art-drop { width: 64px; height: 64px; border-radius: 16px; border: 2px dashed #3B2E00; display: flex; align-items: center; justify-content: center; }
.art-field { width: 100%; max-width: 230px; height: 36px; border-radius: 8px; background: var(--surface); border: 1px solid #5FB8CC; display: flex; align-items: center; padding: 0 10px; font-size: 14px; font-weight: 600; }
.art-field.mono { font-size: 12.5px; font-weight: 400; color: var(--soft); }
.art-col { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.art-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #22400A; font-size: 13px; font-weight: 600; }
.art-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: #22400A; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.art-phone { width: 46px; height: 76px; border-radius: 10px; border: 2px solid #22400A; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.art-phone div { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); }

/* ---------- Dialogs ---------- */
.dlg { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
.dlg::backdrop { background: rgba(0,0,0,.55); }
.dlg-edit { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: 20px; box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.dlg-edit form { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.dlg-head { padding: 20px 20px 4px 28px; display: flex; align-items: center; gap: 8px; }
.dlg-title { font-family: var(--display); font-size: 26px; font-weight: 700; flex-grow: 1; line-height: 1.2; }
.dlg-body { padding: 16px 28px 24px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.dlg-foot { padding: 16px 28px; border-top: 1px solid var(--divider); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.label { font-size: 14px; font-weight: 600; padding: 0; }
legend.label { margin-bottom: 8px; }
.input { height: 46px; padding: 0 14px; border: 1px solid var(--input); border-radius: var(--r-sm); font-size: 16px; background: var(--field); color: var(--ink); outline: 0; width: 100%; }
.input:focus { border-color: var(--accent); }

.filepick { border: 2px dashed var(--input); border-radius: var(--r-lg); background: var(--field); padding: 16px; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; }
.filepick:hover, .filepick.drag { border-color: var(--accent); }
.filepick-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--soft); color: var(--on-soft); display: flex; align-items: center; justify-content: center; }
.fileinfo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--field); }
.file-badge { width: 40px; height: 36px; flex-shrink: 0; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text2); }

.slugbox { display: flex; align-items: center; height: 46px; border: 1px solid var(--input); border-radius: var(--r-sm); overflow: hidden; background: var(--field); }
.slugbox:focus-within { border-color: var(--accent); }
.slug-prefix { height: 100%; display: flex; align-items: center; padding: 0 10px 0 14px; background: var(--ground); color: var(--muted); font-size: 14px; border-right: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.slugbox input { flex-grow: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 12px; font-size: 14px; background: transparent; color: var(--ink); }
.slug-status { display: flex; align-items: center; gap: 4px; padding-right: 12px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.slug-status.ok { color: var(--ok); }
.slug-status.bad { color: var(--danger); }

.logo-row { display: flex; align-items: center; gap: 14px; }
.logo-row > .grow { flex: 1 1 auto; min-width: 0; }
.logo-row > .row-8 { flex-shrink: 0; }

.vis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vis-opt { display: flex; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--field); }
.vis-opt input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.vis-opt:has(input:checked) { border: 2px solid var(--accent); padding: 13px; background: var(--pass-bg); }
.pass { display: flex; flex-direction: column; gap: 6px; padding: 14px; margin-top: 10px; background: var(--pass-bg); border-radius: 12px; }
.passbox { display: flex; align-items: center; gap: 8px; height: 46px; border: 1px solid var(--input); border-radius: var(--r-sm); background: var(--field); padding: 0 14px; color: var(--muted); }
.passbox:focus-within { border-color: var(--accent); }
.passbox input { flex-grow: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }

/* Sheet */
.dlg-sheet { width: min(480px, calc(100vw - 32px)); border-radius: 20px; padding: 20px; box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.dlg-sheet[open] { display: flex; flex-direction: column; gap: 18px; }
.sheet-handle { display: none; width: 40px; height: 5px; border-radius: 999px; background: var(--input); align-self: center; }
.sheet-head { display: flex; align-items: center; gap: 14px; }
.sheet-head .tile { width: 52px; height: 52px; font-size: 20px; }
.sheet-title { font-size: 18px; font-weight: 600; }
.sheet-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.sheet-state.public { color: var(--soft); }
.sheet-state.private { color: var(--text2); }
.linkbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--field); min-width: 0; }
.linkbox .btn { height: 44px; flex-shrink: 0; }
.linkbox .btn.copied { background: var(--ok); color: #22400A; }
.sheet-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sheet-buttons .btn { height: 50px; border-radius: var(--r-md); }
.sheet-list { display: flex; flex-direction: column; border-top: 1px solid var(--divider); padding-top: 6px; }
.sheet-item { height: 48px; border: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 12px; padding: 0 6px; border-radius: 10px; cursor: pointer; text-align: left; }
.sheet-item:hover { background: var(--field); }
.sheet-item.danger { color: var(--danger); }

.dlg-confirm { width: min(420px, calc(100vw - 32px)); border-radius: 20px; padding: 24px; }
.dlg-confirm[open] { display: flex; flex-direction: column; gap: 24px; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: 12px;
  font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: calc(100vw - 32px);
}
.toast.error { background: var(--danger); color: #3A0B07; }

.mobile-only { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }

  .topbar-in { padding: 10px 16px; }
  .brand-host, .user-name { display: none; }
  .content { padding: 20px 16px 112px; }
  .display-lg { font-size: 30px; }
  .list-head { margin-bottom: 14px; }
  .toolbar { margin-bottom: 14px; }
  .filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--deep); border-radius: 12px; width: 100%; }
  .chip { border: 0; background: transparent; border-radius: 9px; }
  .chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
  .search { width: 100%; min-width: 0; }
  /* iOS Safari zooms the page in when an input under 16px gets focus — keep every field at 16px. */
  .search input, .slugbox input, .passbox input, .input { font-size: 16px; }

  .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card { flex-direction: row; align-items: center; padding: 12px; gap: 12px; }
  .card-main { flex-grow: 1; min-width: 0; align-items: center; gap: 12px; }
  .card .tile { width: 52px; height: 52px; font-size: 20px; }
  .card-name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-sub .card-state, .card-sub .dot { display: inline-flex; }
  .card-state { align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
  .card-state.public { color: var(--soft); }
  .card-state.private { color: var(--text2); }
  .card-meta, .card-actions, .dropcard { display: none; }
  .card-share { display: inline-flex; }

  .empty { gap: 24px; text-align: left; align-items: stretch; padding-top: 4px; }
  .empty .lead { font-size: 16px; }
  .step { flex-basis: auto; padding: 16px; flex-direction: row; align-items: center; gap: 14px; }
  .step-art { display: none; }
  .empty .btn-lg { width: 100%; height: 56px; border-radius: 16px; }

  /* full-screen editor */
  .dlg-edit { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .dlg-edit form { height: 100dvh; max-height: 100dvh; }
  .dlg-head { padding: 8px 12px 8px 4px; border-bottom: 1px solid var(--divider); gap: 4px; }
  .dlg-head .dlg-title { font-family: var(--sans); font-size: 17px; font-weight: 600; }
  .dlg-body { padding: 20px 16px; flex-grow: 1; }
  .dlg-foot { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .dlg-foot:not(:has(#edit-delete:not([hidden]))) { display: none; }
  .slug-prefix { display: block; line-height: 44px; max-width: 42%; direction: rtl; text-align: left; padding: 0 8px 0 10px; }
  .vis-opt { padding: 12px; }
  .vis-opt:has(input:checked) { padding: 11px; }

  /* bottom sheet */
  .dlg-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 10px 20px max(28px, env(safe-area-inset-bottom)); }
  .sheet-handle { display: block; }
  .toast { bottom: 100px; }
}
