:root {
  --tile-size: 150px; --tile-columns: 3;
  --bg: #0e0f12; --panel: #17191e; --panel2: #1f2229; --line: #2a2e37;
  --text: #e8e9ec; --muted: #8b909c; --accent: #7cc4a4; --accent-ink: #0b1a13; --danger: #e5736b;
  color-scheme: dark;
}
.settings-panel { position: fixed; inset: 0; z-index: 40; background: var(--bg); }
.settings-panel { overflow-y: auto; overscroll-behavior: contain; }
.panel-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.panel-bar h1 { margin: 0; font-size: 20px; }
.settings-content { max-width: 760px; margin: auto; padding: 16px 18px max(40px, env(safe-area-inset-bottom)); }
.settings-content section { padding: 18px 0 24px; border-bottom: 1px solid var(--line); }
.settings-content h2 { font-size: 19px; margin: 0 0 16px; }
.settings-content section > button { margin: 5px 6px 5px 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 8px 0; }
.setting-row input:not([type=checkbox]), .setting-row select { max-width: 160px; }
.setting-row input[type=checkbox], fieldset input { width: 21px; height: 21px; flex: 0 0 auto; accent-color: var(--accent); }
.setting-row select { padding: 10px; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.settings-content fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.settings-content fieldset label { display: inline-flex; align-items: center; gap: 5px; }
.settings-content input { font-size: 16px; }
.recommendations { flex: 0 0 auto; max-height: 37dvh; overflow-y: auto; padding: 10px 16px max(12px, env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.recommendations section + section { margin-top: 14px; }
.rec-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.rec-heading h2 { margin: 0; font-size: 14px; font-weight: 600; }
.rec-heading small, .rec-note, .recommendations section > small { color: var(--muted); font-size: 12px; }
.rec-note { margin: 4px 0; }
.iqdb-progress { display: block; margin-top: 4px; }
.iqdb-progress:empty { display: none; }
.setting-row:has(input:disabled) { color: var(--muted); }
.rec-strip { display: flex; gap: 8px; overflow-x: auto; padding: 7px 2px; overscroll-behavior-x: contain; }
.rec-card { display: flex; flex: 0 0 100px; flex-direction: column; gap: 4px; width: 100px; padding: 0; border: 0; background: transparent; text-decoration: none; color: var(--text); font-size: 11px; overflow-wrap: anywhere; }
.rec-card img, .rec-skeleton { width: 100px; height: 76px; object-fit: cover; border-radius: 7px; background: var(--panel2); }
.rec-card small { color: var(--muted); }
.rec-skeleton { flex: 0 0 100px; opacity: .65; }
.viewer .vbody { min-height: 80px; }
@media (max-width: 560px) { .recommendations { padding-inline: 10px; max-height: 34dvh; } .rec-card { flex-basis: 84px; width: 84px; } .rec-card img { width: 84px; height: 64px; } }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button, .btn { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
button:hover, .btn:hover { border-color: #3a3f4b; }
button:focus-visible, .btn:focus-within, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button[type=submit], .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.icon { padding: 9px; }
.ghost { background: transparent; }
.danger { color: var(--danger); }
input { font: inherit; width: 100%; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.muted { color: var(--muted); }
.err { color: var(--danger); min-height: 1.4em; margin: 0; font-size: 14px; }

.auth { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; display: grid; gap: 12px; }
.card h1, .card h2 { margin: 0; font-size: 22px; }
.card p { margin: 0; font-size: 14px; }
.card button[type=submit] { justify-content: center; padding: 12px; }
.logo svg { width: 40px; height: 40px; color: var(--accent); }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(14,15,18,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.brand svg { color: var(--accent); }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 7px 10px; white-space: nowrap; }
.tabs button.on { color: var(--text); background: var(--panel2); }
.actions { display: flex; gap: 8px; }
@media (max-width: 560px) {
  .top { flex-wrap: wrap; }
  .tabs { order: 3; flex-basis: 100%; }
  .actions { margin-left: auto; }
  .btn.primary span { display: none; }
  .btn.primary { padding: 9px; }
}
.menu { position: fixed; right: 16px; top: 62px; z-index: 6; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 4px; width: min(300px, calc(100vw - 32px)); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.menu button { background: none; border: 0; justify-content: flex-start; }
.menu button:hover { background: var(--panel2); }
.status { font-size: 13px; color: var(--muted); padding: 6px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.status b { color: var(--text); font-weight: 600; }
.status .warn { color: #e0b15c; }

.uploads { margin: 12px 16px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 6px; font-size: 13px; }
.up { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.up .bar { grid-column: 1 / -1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.up .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.up .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up.failed .bar i { background: var(--danger); }
.up .s { color: var(--muted, #999); font-variant-numeric: tabular-nums; text-align: right; }
.up-sum { font-weight: 600; font-variant-numeric: tabular-nums; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.up-retry { grid-column: 1 / -1; justify-self: start; padding: 2px 10px; font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile-size), 1fr)); gap: 4px; padding: 12px 16px 40px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(var(--tile-columns), 1fr); gap: 3px; padding: 8px 16px 40px; } }
.tile { position: relative; aspect-ratio: 1; background: var(--panel); border-radius: 6px; overflow: hidden; cursor: pointer; border: 0; padding: 0; display: block; width: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s; }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile img.ok { opacity: 1; }
.tile .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 11px; padding: 8px; text-align: center; word-break: break-all; }
.tile .badge { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 6px; }

.empty { text-align: center; color: var(--muted); padding: 60px 16px; }
.drop { position: fixed; inset: 10px; z-index: 20; border: 2px dashed var(--accent); border-radius: 18px; background: rgba(14,15,18,.85); display: grid; place-items: center; font-size: 18px; }

.viewer { position: fixed; inset: 0; z-index: 30; background: #000; display: grid; grid-template-rows: auto 1fr; }
.vbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: rgba(0,0,0,.6); z-index: 2; }
.vbar .btn { background: transparent; border-color: transparent; }
.vname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #ccc; }
.vbody { display: grid; place-items: center; min-height: 0; overflow: hidden; position: relative; }
/* Absolutely positioned so max-height is relative to the real free area under the toolbar. */
.vbody img, .vbody video { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.vbody img { cursor: zoom-in; }
/* Tap a tall image to read it at full width and scroll; tap again to fit. */
.vbody.zoom { display: block; overflow: auto; overscroll-behavior: contain; }
.vbody.zoom img { position: static; display: block; width: 100%; max-width: 100%; max-height: none; margin: 0 auto; cursor: zoom-out; }
@media (min-width: 900px) { .vbody.zoom img { width: auto; max-width: 100%; } }
.vbody .loading { color: var(--muted); position: relative; z-index: 2; padding: 6px 12px; border-radius: 8px; background: rgba(0,0,0,.55); }
.vbody .v-error { color: var(--danger); }
.accent-link { color: var(--accent); }
.liked-x { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 2; }
.vbody .file { text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.vbody .file svg.file-icon { width: 48px; height: 48px; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); border: 0; border-radius: 50%; padding: 10px; }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
@media (hover: none) { .nav { display: none; } }

dialog { background: transparent; border: 0; padding: 16px; color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.6); }
.row { display: flex; gap: 8px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--panel2); color: var(--text); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100vw - 32px); }
.toast:popover-open { inset: auto; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 16px 0; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; font-size: 14px; }
.path button { background: none; border: 0; padding: 4px 6px; color: var(--muted); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.path button.here { color: var(--text); font-weight: 600; }
.path span { color: var(--line); }
.cacts { display: flex; flex-wrap: wrap; gap: 4px; }
.cacts button { padding: 5px 10px; font-size: 13px; }
.tile.folder { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; color: var(--text); }
.tile.folder svg { width: 40%; height: auto; color: var(--accent); stroke-width: 1.4; }
.tile.folder .fname { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.folder .fcount { font-size: 11px; color: var(--muted); }
.mvlist { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.mvlist button { background: none; border: 0; justify-content: flex-start; text-align: left; }
.mvlist button:hover:not(:disabled) { background: var(--panel2); }
.mvlist button:disabled { color: var(--muted); cursor: default; }
.mvlist svg { color: var(--accent); flex: none; }

.tagbar, .chips, .vtags { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tagbar { padding: 10px 16px 0; }
.chips { flex-wrap: wrap; }
.chip { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--panel); color: var(--muted); }
.chip small { margin-left: 4px; opacity: .6; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.vtags { padding: 0 12px 8px; background: rgba(0,0,0,.6); z-index: 2; }
.vtags .chip { background: rgba(255,255,255,.08); color: #ddd; border-color: transparent; }
.viewer { display: flex; flex-direction: column; }
.viewer .vbody { flex: 1; }
#vPin.on { color: var(--accent); }
#vPin.on svg { fill: currentColor; }
.tile .pin { position: absolute; left: 5px; top: 5px; width: 18px; height: 18px; color: #fff; fill: var(--accent); stroke: #000; stroke-width: 1.2; filter: drop-shadow(0 1px 2px #000); }
@media (max-width: 560px) {
  .vbar { flex-wrap: wrap; gap: 2px; }
  .vbar .vname { order: 10; flex-basis: 100%; padding: 0 8px 4px; }
  .vbar #vClose { margin-right: auto; }
}

.tile.sel::after { content: ""; position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.35); box-shadow: 0 1px 3px #000; }
.tile.sel.on::after { background: var(--accent); border-color: var(--accent); }
.tile.sel.on img { transform: scale(.9); border-radius: 6px; }
.tile.sel img { transition: transform .15s, opacity .25s; }
.tile.dim { opacity: .35; }
.tile.group { background: var(--panel); }
.collage { position: absolute; inset: 0; display: grid; gap: 2px; grid-template-columns: 1fr; }
.tile.group.n2 .collage { grid-template-columns: 1fr 1fr; }
.tile.group.n3 .collage, .tile.group.n4 .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tile.group.n3 .collage img:first-child { grid-row: span 2; }
.collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.tile.group .gname { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.75)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 48px; }
.tile.group .badge { display: flex; align-items: center; gap: 3px; z-index: 1; }
.tile.group .badge svg { width: 12px; height: 12px; }
.selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); width: max-content; max-width: calc(100vw - 32px); }
.selbar span { font-size: 13px; color: var(--muted); padding: 0 6px; }
.selbar button { padding: 7px 12px; font-size: 14px; }
.selbar button:disabled { opacity: .4; cursor: default; }

.tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: text; }
.tagbox:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tagbox input { flex: 1; min-width: 120px; border: 0; padding: 4px; background: none; outline: none; }
.tagbox .chip { display: inline-flex; align-items: center; gap: 2px; padding-right: 4px; cursor: default; border: 1px solid var(--accent); }
.chip .x { background: none; border: 0; padding: 0 4px; font-size: 16px; line-height: 1; color: inherit; opacity: .7; }
.chip .x:hover { opacity: 1; }
.chip.part { background: transparent; color: var(--accent); border: 1px dashed var(--accent); }
.tagbox .chip.part { cursor: pointer; }
.chip.create { color: var(--accent); border-style: dashed; }
.tgsug { max-height: 30vh; overflow-y: auto; }
.chip.add { color: #aaa; border: 1px dashed rgba(255,255,255,.25) !important; }

.tabs .flat { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; border: 1px dashed var(--line); }
.tabs .flat svg { width: 15px; height: 15px; }
.tabs .flat.on { color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); }
@media (max-width: 560px) {
  .tabs { gap: 0; }
  .tabs button { padding: 7px 8px; }
  .tabs .flat svg { display: none; }
}

.tile .vbadge { position: absolute; right: 5px; top: 5px; display: flex; align-items: center; gap: 2px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 1px 6px 1px 4px; border-radius: 6px; }
.tile .vbadge svg { width: 12px; height: 12px; }
.tile.sel .vbadge { right: 32px; }
.vvars { display: flex; align-items: center; gap: 6px; padding: 0 12px 8px; background: rgba(0,0,0,.6); overflow-x: auto; scrollbar-width: none; z-index: 2; }
.vthumb { position: relative; flex: none; width: 48px; height: 48px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #222; justify-content: center; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vthumb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; text-align: center; background: rgba(0,0,0,.65); color: #fff; line-height: 14px; }
.vthumb.on { border-color: var(--accent); }
.vthumb.addv { border: 1px dashed rgba(255,255,255,.3); background: transparent; color: #aaa; font-size: 22px; }
.vvars .chip { background: rgba(255,255,255,.08); color: #ddd; border-color: transparent; white-space: nowrap; }
/* Variation picker */
.vp-card { width: min(720px, 94vw); }
.vp-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.vp-tools input[type=search] { flex: 1 1 180px; min-width: 0; }
.vp-scope { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: 55vh; overflow-y: auto; margin: 6px 0 12px; }
.vp-item { position: relative; aspect-ratio: 1; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--panel2); }
.vp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-item.on { border-color: var(--accent); }
.vp-item.on::after { content: '✓'; position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; font-size: 13px; }
.vp-item span { position: absolute; left: 4px; bottom: 4px; font-size: 11px; background: rgba(0,0,0,.6); padding: 1px 5px; border-radius: 6px; }
/* Vault search */
.searchbar { padding: 8px 16px 0; }
.searchbar input { width: 100%; }
#searchBtn.on { color: var(--accent-ink); background: var(--accent); }
/* e621 tags in the viewer: separate from the user's own tags */
.etags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.etags a { font-size: 12px; color: var(--muted); margin-right: 2px; }
.chip.muted { opacity: .55; font-size: 12px; padding: 2px 8px; }
.chip.muted:hover { opacity: .9; }
/* Folder hidden from search and suggestions */
.tile .nosearch { position: absolute; top: 6px; right: 6px; font-size: 14px; opacity: .8; }
.tile:has(.smartmark) .nosearch { right: 26px; }
/* Public share page */
.share-page { min-height: 100vh; }
.share-top .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.share-main { max-width: 1100px; margin: auto; padding: 14px 16px 48px; }
.share-path { font-size: 15px; margin: 18px 0 8px; color: var(--muted); }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.share-card { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 0; }
.share-thumb { aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--panel2); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.share-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-card small { color: var(--muted); font-size: 12px; }
.share-view { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.94); display: grid; place-items: center; }
.share-view #shBody { max-width: 100%; max-height: 100%; color: var(--muted); }
.share-view img, .share-view video { max-width: 100vw; max-height: 100vh; object-fit: contain; display: block; }
/* Share dialog and links list */
.share-dlg { width: min(520px, 92vw); }
.share-out { display: flex; gap: 6px; margin: 10px 0; }
.share-out input { flex: 1; min-width: 0; font-size: 13px; }
.share-link-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.share-link-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.share-link-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-link-row small { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 4px; color: var(--accent); justify-self: center; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- search filters / on this day ---------- */
.search-row { display: flex; gap: 6px; }
.search-row input { flex: 1; min-width: 0; }
.search-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0 0; font-size: 13px; color: var(--muted); }
.search-filters label { display: inline-flex; align-items: center; gap: 4px; }
.search-filters select, .search-filters input { padding: 5px 8px; font-size: 13px; }
.otd { padding: 10px 16px 0; }
.otd h2 { margin: 0 0 6px; font-size: 15px; color: var(--muted); font-weight: 600; }
.otd-strip { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.otd-strip .tile { flex: none; width: 110px; }

/* ---------- viewer over a tool panel, slideshow ---------- */
.viewer.over { z-index: 42; }
.toast { z-index: 60; }
#vPlay.on { background: var(--accent); color: var(--accent-ink); }
.viewer:fullscreen .vtags, .viewer:fullscreen .vvars, .viewer:fullscreen .recommendations { display: none; }

/* ---------- tool panels: trash, duplicates, timeline, map ---------- */
.tool-content { padding: 12px 16px 60px; max-width: 1400px; margin: 0 auto; }
.tool-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.tool-grid { padding: 0; }
.tool-content h2 { font-size: 17px; margin: 22px 0 8px; }
.tl-month { position: sticky; top: 64px; z-index: 2; background: var(--bg); padding: 6px 0; margin: 14px 0 6px !important; }
.trash-left { position: absolute; left: 6px; bottom: 6px; font-size: 11px; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 6px; }
.dup-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 10px 0; background: var(--panel); }
.dup-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.dup-head strong { margin-right: auto; }
.dup-row { display: flex; gap: 10px; overflow-x: auto; }
.dup-card { flex: none; width: 170px; display: grid; gap: 6px; align-content: start; }
.dup-card small { white-space: pre-line; color: var(--muted); font-size: 11px; word-break: break-word; }
.dup-card button { padding: 6px 10px; font-size: 13px; justify-content: center; }
.map { position: relative; height: calc(100dvh - 190px); min-height: 320px; overflow: hidden; border-radius: 12px; background: #1b2026; touch-action: none; cursor: grab; user-select: none; }
.map-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; }
.map-marks { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 0; top: 0; width: 44px; height: 44px; padding: 0; border-radius: 50%; overflow: visible; border: 2px solid #fff; background: var(--panel2); box-shadow: 0 2px 6px rgba(0,0,0,.6); }
.map-pin img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.map-pin b { position: absolute; right: -8px; top: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; display: grid; place-items: center; }
.map-z { position: absolute; right: 10px; width: 38px; height: 38px; justify-content: center; font-size: 20px; padding: 0; z-index: 2; }
.map-z.in { top: 10px; } .map-z.out { top: 54px; }
.map-attr { position: absolute; right: 6px; bottom: 4px; font-size: 10px; color: #ccc; background: rgba(0,0,0,.5); padding: 1px 5px; border-radius: 4px; }

/* ---------- 2FA dialog ---------- */
.tf-card { width: min(420px, 100%); }
.tf-qr { display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 10px; min-height: 60px; color: #000; }
.tf-qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.tf-secret { font-size: 15px; letter-spacing: 1px; word-break: break-all; background: var(--panel2); padding: 8px; border-radius: 8px; user-select: all; }
.tf-codes { background: var(--panel2); padding: 10px; border-radius: 8px; font-size: 16px; columns: 2; user-select: all; }


/* ---------- admin ---------- */
.admin-content { max-width: 980px; margin: 0 auto; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.admin-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.admin-stat b { font-size: 20px; }
.admin-stat small, .admin-facts small { color: var(--muted); font-size: 12px; }
.admin-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 12px 0; }
.admin-box h2 { margin: 0 0 6px; font-size: 17px; }
.admin-users { display: grid; gap: 10px; margin-top: 8px; }
.admin-user { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel2); display: grid; gap: 8px; }
.admin-user.me { border-color: var(--accent); }
.admin-user-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-user-head strong { font-size: 16px; margin-right: 4px; }
.admin-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 12px; }
.admin-facts div { display: grid; }
.admin-user > .danger { justify-self: start; }
.hidden-toggle { padding: 5px 10px; font-size: 13px; }
.hidden-toggle.on { color: var(--accent); border-color: var(--accent); }
.panel-extra { margin-left: auto; }
.session-list { margin: 8px 0 4px; }
.session-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.session-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.session-row small, .log-row small { color: var(--muted); }
.session-row.me strong .chip { margin-left: 6px; }
.share-lock { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.share-lock p { margin: 0; }
.log-day { margin: 22px 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.log-day::first-letter { text-transform: uppercase; }
.log-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.log-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.log-row .log-what { overflow-wrap: anywhere; }
.log-row.warn .log-what { color: var(--danger); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; padding: 8px 0 16px; }
.album-card { display: grid; gap: 4px; align-content: start; text-align: left; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.album-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-card small { color: var(--muted); }
.album-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--panel2); }
.album-collage .tile { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.tile .smartmark { position: absolute; top: 6px; right: 6px; font-size: 14px; opacity: .85; }
.smart-query { display: block; margin: -4px 16px 6px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ai-dlg { max-width: 560px; max-height: 88vh; overflow-y: auto; }
.ai-warn { border: 1px solid var(--danger); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: color-mix(in srgb, var(--danger) 10%, transparent); }
.ai-warn p { margin: 6px 0 10px; font-size: 14px; }
.ai-agree { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.ai-agree input, .ai-modes input, .ai-folder-list input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.ai-modes, .ai-folders { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; padding: 8px 12px; }
.ai-modes label, .ai-folder-list label { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.ai-folder-list { max-height: 200px; overflow-y: auto; }
.ai-group { border-bottom: 1px solid var(--line); padding: 8px 0; }
.ai-group label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ai-group input { width: 20px; height: 20px; accent-color: var(--accent); }
.ai-group small { margin-left: auto; color: var(--muted); }
.ai-strip { display: flex; gap: 4px; margin: 6px 0 0 28px; }
.ai-strip img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--panel2); }
.ai-wishes { display: grid; gap: 6px; margin: 10px 0; }
.ai-wishes textarea { width: 100%; resize: vertical; padding: 10px; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.vbody img.v-prev { cursor: default; pointer-events: none; }
.vbody .v-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); pointer-events: none; }
.vbody .v-prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.a2hs { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 55; display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.a2hs span { flex: 1; }
.a2hs button { flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: inherit; font-size: 16px; }


/* Responsive shell: keep controls inside the viewport, including short landscape screens. */
.vactions { display: contents; }
.top > *, .vbar > *, .panel-bar > * { min-width: 0; }
.tabs { min-width: 0; }
.menu { max-height: calc(100dvh - 78px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.vbar, .vtags, .vvars { flex-shrink: 0; }
.viewer .vbody { min-height: 0; }
.viewer .vbody .file { max-width: 100%; padding: 12px; overflow-wrap: anywhere; }
dialog { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overscroll-behavior: contain; }
dialog .card { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.up { grid-template-columns: minmax(0, 1fr) auto; }

@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  input, select, textarea, .search-filters input, .search-filters select, .share-out input { font-size: 16px; }
  input, select, textarea { min-width: 0; max-width: 100%; }
  button, .btn { touch-action: manipulation; }

  .top { flex-wrap: wrap; gap: 6px 8px; padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); }
  .brand { flex-shrink: 0; }
  .brand svg { flex-shrink: 0; }
  .actions { margin-left: auto; gap: 4px; }
  .actions .btn { min-height: 44px; min-width: 44px; justify-content: center; }
  .actions .btn.primary { padding: 9px; }
  .actions .btn.primary span { display: none; }
  .tabs { order: 3; flex: 1 0 100%; gap: 2px; overscroll-behavior-x: contain; }
  .tabs button { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; }
  .tabs .flat { margin-left: 0; }
  .menu { top: calc(60px + env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); width: min(340px, calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right))); }
  .menu button { min-height: 44px; }

  .grid { grid-template-columns: repeat(var(--tile-columns), minmax(0, 1fr)); gap: 4px; padding: 10px max(10px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .crumbs { padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
  .cacts { width: 100%; }
  .cacts button, .path button { min-height: 44px; }
  .path { max-width: 100%; }
  .path button { max-width: 65vw; }
  .searchbar, .tagbar, .otd { padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
  .search-row { flex-wrap: wrap; }
  .search-row input { flex-basis: 100%; }
  .search-row button { min-height: 44px; }
  .search-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-filters label { min-width: 0; }
  .search-filters input { width: 100%; }
  .search-filters input, .search-filters select { min-height: 44px; width: 100%; }
  .search-filters button { min-height: 44px; }
  .tagbar .chip { min-height: 40px; }
  .uploads { margin-inline: 10px; }
  .up { grid-template-columns: minmax(0, 1fr); }
  .up .s { text-align: left; }
  .empty { padding: 36px 20px; }

  /* File name and close stay visible; the secondary toolbar scrolls independently. */
  .vbar { display: flex; flex-wrap: wrap; gap: 4px; padding: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left)); }
  .vbar #vClose { margin-right: 0; }
  .vbar .vname { order: 0; flex: 1 1 0; padding: 0 6px; }
  .vbar .btn { min-width: 44px; min-height: 44px; justify-content: center; flex: 0 0 auto; }
  .vactions { display: flex; flex: 1 0 100%; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .vtags, .vvars { max-height: 64px; padding-inline: 8px; }
  .recommendations { max-height: 30dvh; padding-inline: 10px; }
  .rec-heading { align-items: center; }
  .rec-heading .chip { white-space: normal; text-align: left; min-height: 44px; }
  .viewer { padding-bottom: env(safe-area-inset-bottom); }

  .selbar { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); transform: none; width: auto; max-width: none; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; }
  .selbar > * { flex: 0 0 auto; white-space: nowrap; }
  .selbar button { min-height: 44px; }
  #app:has(.selbar:not([hidden])) { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

  .auth { padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  dialog { padding: 0; width: min(720px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  dialog .card { width: 100%; padding: 20px 16px; }
  dialog .row { flex-wrap: wrap; }
  dialog button { min-height: 44px; }
  .vp-tools > button { width: 100%; justify-content: center; }
  .vp-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .share-out { flex-wrap: wrap; }
  .share-out input { flex-basis: 100%; }
  .tf-qr img { max-width: 100%; height: auto; }

  .panel-bar { gap: 8px; padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); flex-wrap: wrap; }
  .panel-bar h1 { flex: 1 1 140px; font-size: 18px; overflow-wrap: anywhere; }
  .panel-bar > button { flex-shrink: 0; min-height: 44px; }
  .settings-content, .tool-content { padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); overflow-wrap: anywhere; }
  .setting-row { flex-wrap: wrap; gap: 8px 12px; }
  .setting-row > span { flex: 1 1 170px; }
  .setting-row input:not([type=checkbox]), .setting-row select { flex: 0 1 100%; max-width: 100%; min-height: 44px; }
  .setting-row input[type=checkbox] { margin: 10px 0; }
  .settings-content fieldset { min-width: 0; margin-inline: 0; }
  .settings-content section > button { max-width: 100%; white-space: normal; text-align: left; min-height: 44px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-facts { grid-template-columns: minmax(0, 1fr); }
  .admin-box, .admin-user { min-width: 0; padding: 10px; }
  .session-row, .share-link-row { flex-wrap: wrap; }
  .session-row > div, .share-link-row > div { flex-basis: 100%; overflow-wrap: anywhere; }
  .tool-grid { padding: 0; }
  .tl-month { top: calc(64px + env(safe-area-inset-top)); }
  .share-main { padding-inline: 10px; }
  .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .share-top .brand { min-width: 0; flex: 1; }
  .share-top .brand span { max-width: none; }
  .share-view img, .share-view video { max-height: 100dvh; }
}

@media (max-height: 500px) and (max-width: 960px) {
  .vbar { flex-wrap: nowrap; }
  .vbar .vname { display: none; }
  .vactions { display: flex; flex: 1 1 0; min-width: 0; overflow-x: auto; }
  .vactions .btn, .vbar #vClose { flex-shrink: 0; min-height: 44px; min-width: 44px; }
  .recommendations { max-height: 28dvh; }
}

/* Keep a direct tap available when Safari refuses asynchronous autoplay. */
.video-start { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 48px; padding: 12px 20px; white-space: nowrap; background: #17191eee; }
.video-speed { position: absolute; right: 12px; top: 12px; z-index: 3; padding: 5px 10px; font-size: 12px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); color: #fff; }

/* Light & auto theme */
:root[data-theme="light"] {
  --bg: #f4f5f7; --panel: #ffffff; --panel2: #eaedf2; --line: #d4d9e1;
  --text: #15181e; --muted: #5a6270; --accent: #2c8f68; --accent-ink: #ffffff; --danger: #cc3f39;
  color-scheme: light;
}
:root[data-theme="light"] .top { background: rgba(244,245,247,.92); }
:root[data-theme="light"] button:hover, :root[data-theme="light"] .btn:hover { border-color: #aeb6c4; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f4f5f7; --panel: #ffffff; --panel2: #eaedf2; --line: #d4d9e1;
    --text: #15181e; --muted: #5a6270; --accent: #2c8f68; --accent-ink: #ffffff; --danger: #cc3f39;
    color-scheme: light;
  }
  :root[data-theme="auto"] .top { background: rgba(244,245,247,.92); }
}

/* Search quick filter chips & sort selector */
.qchips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.sort-sel { padding: 5px 8px; font-size: 13px; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; font-family: inherit; cursor: pointer; }
.drop-target { outline: 2px solid var(--accent) !important; outline-offset: -2px; background: color-mix(in srgb, var(--accent) 18%, var(--panel)) !important; }
.grid-more { grid-column: 1 / -1; height: 1px; }

/* Masonry proportional grid */
body.masonry .grid { align-items: start; }
body.masonry .grid .tile:not(.folder):not(.group) { aspect-ratio: var(--ar, 1); max-height: 420px; }

/* Upload cancel button & duplicates similarity slider */
.up .n { display: flex; align-items: center; gap: 6px; }
.up-cancel { background: none; border: 0; color: var(--muted); padding: 0 6px; font-size: 16px; line-height: 1; }
.up-cancel:hover { color: var(--danger); }
.dup-thresh { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dup-thresh input[type=range] { width: 110px; accent-color: var(--accent); padding: 0; border: 0; background: none; }

/* Viewer enhancements: counter, zoom/pan, info drawer, inline audio/pdf/text, touch video nav */
.vpos { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 4px; }
#vInfo.on { color: var(--accent); }
.vbody.zoomed img { cursor: grab; transition: none; }
.vbody.zoomed img:active { cursor: grabbing; }
.vbody img { transition: transform .12s ease-out; transform-origin: center center; }
.vinfo { position: absolute; top: 56px; right: 0; bottom: 0; width: min(340px, 92vw); z-index: 6; background: color-mix(in srgb, var(--panel) 95%, transparent); backdrop-filter: blur(12px); border-left: 1px solid var(--line); padding: 14px 16px max(16px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; color: var(--text); }
.vinfo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.vinfo-dl { margin: 0; display: grid; gap: 10px; font-size: 13px; }
.vinfo-dl dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.vinfo-dl dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.vinfo-md5 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vinfo-md5 code { font-size: 12px; background: var(--panel2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.vinfo-md5 button { padding: 3px 8px; font-size: 12px; }
.v-audio { width: min(420px, 90vw); padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.v-audio audio { width: 100%; margin-top: 8px; }
.v-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
.v-text-wrap { width: min(920px, 96vw); height: calc(100% - 20px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.v-text-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.v-text-bar button { padding: 4px 10px; font-size: 12px; }
.v-text { margin: 0; padding: 14px; flex: 1; overflow: auto; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); white-space: pre-wrap; word-break: break-word; }
@media (hover: none) {
  .viewer.has-media-nav .nav { display: inline-flex; top: auto; bottom: max(76px, calc(64px + env(safe-area-inset-bottom))); transform: none; z-index: 4; background: rgba(0,0,0,.55); }
}

/* Shared lightbox enhancements */
.share-vbar { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 16px; right: 64px; z-index: 2; font-size: 13px; color: #ddd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.share-view .nav { display: inline-flex; z-index: 3; color: #fff; font-size: 24px; line-height: 1; width: 42px; height: 42px; justify-content: center; }
.share-view #shBody.zoom { overflow: auto; max-width: 100vw; max-height: 100vh; }
.share-view #shBody.zoom img { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.share-view img { cursor: zoom-in; }

/* Keyboard shortcuts dialog */
.help-dlg { width: min(460px, 94vw); }
.help-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; align-items: center; }
.help-grid b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; text-align: center; }

@media (max-width: 760px) {
  .vinfo { top: 96px; width: 100vw; border-left: 0; border-top: 1px solid var(--line); }
  .tl-month { top: calc(56px + env(safe-area-inset-top)); }
}
