:root {
  --bg: #eef1f5; --panel: #fff; --text: #141a26; --muted: #4f5868; --line: #d3d9e2;
  --subtle: #fafbfc; --hover: #f3f6fb; --line-strong: #c3cad6; --input-hover: #6f7a8c; --placeholder: #8a93a3;
  --warn-bg: #fff4d6; --badge-bg: #eef1f5; --avatar-bg: #dfe6f5; --avatar-fg: #3b4d7a; --shadow: rgba(16, 24, 40, .06);
  color-scheme: light; --sel: #dbe7ff;
  --accent: #2155cd; --ok: #1a7f37; --warn: #9a6700; --bad: #c62828;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; }
[hidden] { display: none !important; }
button { font: inherit; padding: 5px 11px; border: 1px solid var(--line); background: var(--panel); border-radius: 6px;
  cursor: pointer; color: var(--text); white-space: nowrap; }
button:hover:not([disabled]) { border-color: var(--accent); }
button[disabled] { opacity: .45; cursor: default; }
button.danger { color: var(--bad); }
button.link { border: none; background: none; color: var(--accent); text-decoration: underline; }
button.icon { padding: 2px 8px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--badge-bg); color: var(--muted); }
.muted, .hint { color: var(--muted); font-size: 12px; }
.error { color: var(--bad); min-height: 1em; }
.spacer { flex: 1; }

.login { max-width: 360px; margin: 12vh auto; padding: 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 12px; }
.login input { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 6px; width: 100%; margin-top: 4px; }
.login button { background: var(--accent); color: #fff; border-color: var(--accent); }

.layout { display: grid; grid-template-columns: 300px 1fr; grid-template-rows: auto 1fr auto; height: 100vh; }
.topbar { grid-column: 1 / 3; display: flex; gap: 10px; align-items: center; padding: 8px 16px; background: var(--panel);
  border-bottom: 1px solid var(--line); }
.sidebar { overflow-y: auto; overflow-x: hidden; border-right: 1px solid var(--line); background: var(--panel); padding: 10px;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; min-width: 0; }
.sidebar > section, .browser { min-width: 0; }
.side-head { display: flex; align-items: center; gap: 4px; }
.side-head h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0; flex: 1; }
.loc-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.loc-list li { min-width: 0; }
.loc-list li.loc { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.loc-list li.loc:hover { background: var(--hover); }
.loc-list li.loc.active { background: var(--sel); }
.loc-list .name { flex: 1; min-width: 0; }
.loc-list .title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-list button, .side-head button { flex: none; }
.loc-list .meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-list .meta .badge { font-size: 10px; padding: 0 6px; margin-left: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.dot.started, .dot.ready { background: var(--ok); }
.dot.starting, .dot.stopping, .dot.creating, .dot.pending_create, .dot.restoring, .dot.archiving { background: var(--warn); }
.dot.error, .dot.build_failed { background: var(--bad); }
.loc-list button { padding: 1px 7px; font-size: 12px; }

.browser { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.empty { margin: auto; color: var(--muted); }
#browser-ui { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.loc-title { padding: 10px 14px 0; display: flex; gap: 8px; align-items: center; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.path-box { flex: 1 1 320px; display: flex; gap: 4px; min-width: 0; }
.path-form { flex: 1; min-width: 0; }
.path-form input { width: 100%; font: 13px ui-monospace, Consolas, monospace; padding: 6px 8px; border: 1px solid var(--accent); border-radius: 6px; }
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: nowrap; overflow-x: auto; gap: 0;
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; background: var(--panel); cursor: text; scrollbar-width: thin; }
.crumbs button { border: none; background: none; padding: 3px 6px; border-radius: 4px; font: 13px ui-monospace, Consolas, monospace;
  color: var(--accent); cursor: pointer; flex: none; }
.crumbs button:hover { background: var(--accent-soft); text-decoration: underline; }
.crumbs .current { padding: 3px 6px; font: 600 13px ui-monospace, Consolas, monospace; color: var(--text); flex: none; cursor: text; }
.crumbs .sep { color: var(--muted); flex: none; padding: 0 1px; }
.table-wrap { flex: 1; overflow: auto; position: relative; background: var(--panel); padding-bottom: 80px; }
.table-wrap.dragover { outline: 3px dashed var(--accent); outline-offset: -6px; }
.drop-hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; color: var(--accent);
  background: rgba(33, 85, 205, .06); pointer-events: none; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { position: sticky; top: 0; background: var(--subtle); font-size: 12px; color: var(--muted); font-weight: 500; z-index: 1; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
th.chk, td.chk { width: 28px; }
tbody tr { cursor: default; user-select: none; }
tbody tr:hover { background: var(--hover); }
tbody tr.selected { background: var(--sel); }
td.name { display: flex; gap: 8px; align-items: center; }
td.name .ic { width: 18px; text-align: center; }
td.name a { color: inherit; text-decoration: none; }
td.empty-row { color: var(--muted); text-align: center; padding: 28px; }
.statusbar { padding: 5px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: var(--subtle); }

.transfers { grid-column: 1 / 3; max-height: 30vh; overflow: auto; border-top: 1px solid var(--line); background: var(--panel); padding: 8px 14px; }
#transfer-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
#transfer-list li { display: grid; grid-template-columns: 1fr 220px 150px auto; gap: 10px; align-items: center; font-size: 13px; }
progress { width: 100%; height: 10px; }
#transfer-list .st-done { color: var(--ok); } #transfer-list .st-error { color: var(--bad); }
#transfer-list .st-warn { color: var(--warn); }
#transfer-list li.job { grid-template-columns: 1fr 220px 260px auto; }
#transfer-list .job-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#transfer-list .st { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-dialog { display: grid; gap: 12px; }
.copy-dialog[open] { display: grid; }
.copy-dialog #cp-mode { justify-self: start; }
.copy-dialog .cp-label { display: grid; gap: 4px; font-weight: 500; }
.copy-dialog select { font: inherit; padding: 7px 8px; border: 1px solid var(--input-border, var(--line)); border-radius: 6px;
  background: var(--panel); color: var(--text); }
.cp-browser { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.cp-head { display: flex; gap: 6px; align-items: center; padding: 6px 8px; background: var(--subtle); border-bottom: 1px solid var(--line); }
.cp-head code { font: 13px ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-dirs { list-style: none; margin: 0; padding: 4px; height: 220px; overflow: auto; }
.cp-dirs li { padding: 6px 8px; border-radius: 6px; }
.cp-dirs li[data-path] { cursor: pointer; }
.cp-dirs li[data-path]:hover { background: var(--hover); }
.copy-dialog .check { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }

.toast { position: fixed; right: 18px; bottom: 18px; max-width: 460px; background: #1d2330; color: #fff; padding: 10px 14px;
  border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 10; }
.toast.err { background: var(--bad); }

dialog#preview { width: min(1000px, 92vw); height: min(80vh, 900px); padding: 0; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog#preview[open] { display: flex; flex-direction: column; }
dialog#preview::backdrop { background: rgba(20, 24, 33, .45); }
.pv-head { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pv-body { flex: 1; overflow: auto; background: var(--subtle); }
.pv-body pre { margin: 0; padding: 14px; font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.pv-body img { display: block; max-width: 100%; margin: 14px auto; }
.pv-body .note { padding: 8px 14px; background: var(--warn-bg); color: var(--warn); font-size: 12px; }
.pv-body .empty { padding: 40px; text-align: center; }
tbody tr.pending { opacity: .5; font-style: italic; }
tbody tr.pending td.name::after { content: " · sprema se…"; font-size: 11px; color: var(--muted); font-style: normal; }

/* ---- Storage Hub ---- */
:root { --accent-soft: #eaf0ff; --radius: 8px; }
.login label { display: grid; gap: 4px; }
button.primary, button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
button.primary:hover:not([disabled]) { filter: brightness(1.08); }
button.ghost { border-color: transparent; background: transparent; color: var(--muted); padding: 2px 6px; }
button.ghost:hover { background: var(--hover); color: var(--text); }
button.ghost.danger:hover { color: var(--bad); }
button.wide { width: 100%; }
.small { font-size: 12px; } .ok { color: var(--ok); }

/* top bar with the three sections */
.topbar { gap: 16px; padding: 0 16px; height: 52px; }
.brand { font-size: 15px; white-space: nowrap; }
.main-nav { display: flex; gap: 2px; height: 100%; }
.main-nav button { border: none; border-radius: 0; background: none; padding: 0 14px; height: 100%; color: var(--muted);
  border-bottom: 3px solid transparent; font-weight: 500; }
.main-nav button:hover { color: var(--text); background: var(--hover); }
.main-nav button.on { color: var(--accent); border-bottom-color: var(--accent); background: none; }
.user-chip { font-size: 13px; color: var(--muted); white-space: nowrap; }
.badge.admin { background: var(--accent-soft); color: var(--accent); }

/* sidebar */
.layout.admin-mode .sidebar { display: none; }
.layout.admin-mode .admin-view { grid-column: 1 / 3; }
#storage-list { display: grid; gap: 14px; }
.storage-head { display: flex; align-items: center; gap: 6px; padding: 4px 4px 2px; }
.storage-head .s-icon { font-size: 16px; }
.storage-head .s-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-list li.loc { padding: 6px 8px; }
.loc-list .r-icon { font-size: 14px; flex: none; }
.loc-list .dot { width: 7px; height: 7px; }
.loc-list .pill { flex: none; font-size: 12px; opacity: .7; }
.loc-list .hover-only { visibility: hidden; } .loc-list li.loc:hover .hover-only { visibility: visible; }
.loc-list details { margin-top: 4px; }
.loc-list summary { cursor: pointer; font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 6px; list-style: none; }
.loc-list summary::before { content: "▸ "; } .loc-list details[open] summary::before { content: "▾ "; }
.loc-list summary:hover { background: var(--hover); }
.loc-list details .loc-list { margin-left: 8px; }
.add-link { border: none; background: none; color: var(--accent); font-size: 12px; padding: 4px 8px; }
.add-link:hover { text-decoration: underline; }
.side-empty { padding: 20px 8px; text-align: center; color: var(--text); display: grid; gap: 10px; justify-items: center; }

/* file browser */
.empty { text-align: center; } .empty-icon { font-size: 40px; opacity: .5; } .empty p { margin: 6px 0; }
.loc-title { padding: 12px 16px 4px; gap: 10px; flex-wrap: wrap; }
.loc-title strong { font-size: 16px; }
.loc-icon { font-size: 26px; }
.ro-banner { margin-left: auto; background: var(--warn-bg); color: var(--warn); padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.toolbar { padding: 8px 16px; flex-wrap: nowrap; border-bottom: none; }
.icon-btn { padding: 5px 9px; }
#browser-ui { position: relative; }
/* floats over the bottom of the list, so selecting never moves the rows */
.selbar { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center;
  gap: 6px; padding: 8px 10px 8px 16px; background: #1d2330; color: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.25);
  max-width: calc(100% - 32px); }
.selbar button { background: #2c3446; color: #fff; border-color: #3a4357; }
.selbar button:hover:not([disabled]) { border-color: #7b8bb0; }
.selbar button.danger { color: #ff8a80; }
.selbar button.link { background: none; border: none; color: #aab4c8; }
.selbar .spacer { flex: 0 0 8px; }
.selbar #sel-count { font-weight: 600; margin-right: 6px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#browser-ui > .table-wrap { border-top: 1px solid var(--line); }
.read-only .col-perm, .read-only .col-owner { }
.layout.read-only .drop-hint { display: none !important; }

/* admin pages */
.admin-view { padding: 20px 28px; background: var(--bg); }
.admin-head h2 { margin: 0 0 4px; font-size: 20px; } .admin-head p { margin: 0 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; max-width: 1200px; }
.user-list ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.user-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--radius); cursor: pointer; }
.user-item:hover { background: var(--hover); } .user-item.active { background: var(--accent-soft); }
.user-item.inactive { opacity: .55; }
.u-text { display: grid; min-width: 0; flex: 1; } .u-text b, .u-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--avatar-bg); color: var(--avatar-fg); display: grid; place-items: center;
  font-weight: 600; flex: none; }
.avatar.big { width: 48px; height: 48px; font-size: 20px; }
.ud-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; } .ud-head h3 { margin: 0; font-size: 18px; }
.ud-settings { display: flex; flex-wrap: wrap; gap: 18px 28px; padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.setting { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.user-detail h4 { margin: 16px 0 6px; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.seg button { border: none; border-radius: 0; padding: 6px 12px; border-right: 1px solid var(--line); color: var(--text); }
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--accent); color: #fff; }
.seg.small button { padding: 4px 10px; font-size: 13px; }
.note { background: var(--accent-soft); padding: 10px 12px; border-radius: var(--radius); }
.acc-group { margin-top: 14px; } .acc-title { font-weight: 600; margin-bottom: 6px; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 6px; }
.acc-row:hover { background: var(--hover); } .acc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acc-row:has(.seg [data-v="read"].on) .seg [data-v="read"].on { background: #c58a00; border-color: #c58a00; }
.acc-row:has(.seg [data-v="write"].on) .seg [data-v="write"].on { background: var(--ok); }
.acc-row:has(.seg [data-v="none"].on) .seg [data-v="none"].on { background: #8b93a3; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; max-width: 1200px; }
.s-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.s-card-head { display: flex; gap: 12px; align-items: center; }
.s-big-icon { font-size: 28px; }
.s-card-actions { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.add-card { border: 2px dashed var(--line-strong); background: transparent; text-align: center; justify-items: center; min-height: 150px;
  align-content: center; color: var(--text); white-space: normal; }
.add-card:hover { border-color: var(--accent); background: var(--hover); }
.type-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 16px; }
.type-tile { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px 12px; white-space: normal; border-radius: 10px; }
.type-tile:hover { border-color: var(--accent); background: var(--hover); }
.stack-form { display: grid; gap: 12px; }
.stack-form label { display: grid; gap: 4px; font-size: 13px; }
.stack-form input, .stack-form select { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.stack-form .buttons, .small-dialog .buttons { display: flex; gap: 8px; align-items: center; }
.stack-form details { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.stack-form details[open] { display: grid; gap: 10px; } .stack-form summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.stack-form h3 { margin: 0; }
.form-msg { margin: 0; font-size: 13px; min-height: 1em; }
dialog.small-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 22px; width: min(440px, 92vw);
  box-shadow: 0 10px 40px rgba(0,0,0,.2); }
dialog.small-dialog.wide { width: min(640px, 94vw); }
dialog.small-dialog h3 { margin: 0 0 4px; }
dialog.small-dialog::backdrop { background: rgba(20, 24, 33, .45); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .type-tiles { grid-template-columns: 1fr; } }
#files.no-meta .col-perm, #files.no-meta .col-owner { display: none; }
.toast { top: 64px; bottom: auto; }

/* ---- stronger contrast: visible inputs, labels and buttons ---- */
:root { --input-border: #9aa4b4; --focus: #2155cd; }
input, select, textarea { color: var(--text); }
.stack-form input, .stack-form select, .row-form input, .row-form select, .login input, .path-form input, .admin-table select {
  border: 1.5px solid var(--input-border) !important; border-radius: 7px; background: var(--panel); padding: 8px 10px;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .06); }
.stack-form input:hover, .stack-form select:hover, .login input:hover { border-color: var(--input-hover) !important; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(33, 85, 205, .25); outline-offset: 0; border-color: var(--focus) !important; }
input::placeholder { color: var(--placeholder); }
.stack-form label, .login label { font-size: 13px; font-weight: 600; color: var(--text); }
.stack-form label .muted, .stack-form label .small { font-weight: 400; }
button { border-color: var(--line-strong); }
button:hover:not([disabled]) { background: var(--hover); }
button.primary:hover:not([disabled]) { background: var(--accent); }
.seg button.on:hover:not([disabled]) { background: var(--accent); }
.card, .s-card, .type-tile, .user-list, .user-detail { border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.type-tile { border-width: 1.5px; } .type-tile:hover { box-shadow: 0 0 0 3px rgba(33, 85, 205, .15); }
.stack-form details { border: 1.5px solid var(--line-strong); background: var(--subtle); }
.seg { border-color: var(--input-border); } .seg button { border-right-color: var(--line-strong); }
.crumbs { border: 1.5px solid var(--line-strong); }
dialog.small-dialog { border-color: var(--line-strong); }
th { color: var(--muted); }
.stack-form label input, .stack-form label select, .login label input { font-weight: 400; font-size: 14px; }

/* ---- dark theme: chosen (data-theme=dark) or following the computer (data-theme=auto) ---- */
:root[data-theme="dark"] {
  --bg: #0f1318; --panel: #171c23; --text: #e6e9ef; --muted: #a2abba; --line: #2b323d; --sel: #233559;
  --accent: #6b98ff; --accent-soft: #1d2840; --ok: #4cc764; --warn: #e3b341; --bad: #ff6b61;
  --subtle: #1b2028; --hover: #212834; --line-strong: #3a4352; --input-border: #4f596b; --input-hover: #6e7a90;
  --placeholder: #6d7789; --warn-bg: #3a2f12; --badge-bg: #262d39; --avatar-bg: #2a3550; --avatar-fg: #c9d6f7;
  --shadow: rgba(0, 0, 0, .3); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
  --bg: #0f1318; --panel: #171c23; --text: #e6e9ef; --muted: #a2abba; --line: #2b323d; --sel: #233559;
  --accent: #6b98ff; --accent-soft: #1d2840; --ok: #4cc764; --warn: #e3b341; --bad: #ff6b61;
  --subtle: #1b2028; --hover: #212834; --line-strong: #3a4352; --input-border: #4f596b; --input-hover: #6e7a90;
  --placeholder: #6d7789; --warn-bg: #3a2f12; --badge-bg: #262d39; --avatar-bg: #2a3550; --avatar-fg: #c9d6f7;
  --shadow: rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
dialog { background: var(--panel); color: var(--text); }
input, select, textarea { background: var(--panel); }
.pv-body { background: var(--subtle); }
th { background: var(--subtle); }
tbody tr:hover { background: var(--hover); }
.drop-hint { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.topbar .tool { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 7px; padding: 4px 8px; font-size: 13px; }
.prefs { display: inline-flex; gap: 4px; }
.login-prefs { display: flex; justify-content: flex-end; }

/* ---- line icons (icons.js) ---- */
:root { --folder: #3d7fd6; --icon: #5b6576; }
:root[data-theme="dark"] { --folder: #6aa8f0; --icon: #9aa5b6; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --folder: #6aa8f0; --icon: #9aa5b6; } }
svg.i { width: 1.15em; height: 1.15em; vertical-align: -0.22em; flex: none; }
button svg.i { margin-right: 1px; }
.icon-btn svg.i, .topbar .tool svg.i, button.icon svg.i, .ghost svg.i { width: 16px; height: 16px; vertical-align: -3px; }
td.name .ic { width: 18px; display: inline-flex; color: var(--icon); }
td.name .ic svg.i, .cp-dirs .ic svg.i { width: 18px; height: 18px; }
.ic-folder { color: var(--folder) !important; }
.ic-folder svg.i { fill: color-mix(in srgb, var(--folder) 22%, transparent); }
.cp-dirs .ic { display: inline-flex; vertical-align: -3px; }
.storage-head .s-icon { color: var(--accent); display: inline-flex; }
.loc-list .r-icon { color: var(--icon); display: inline-flex; }
.loc-list li.loc.active .r-icon { color: var(--accent); }
.loc-list .pill { display: inline-flex; color: var(--icon); }
.loc-icon { color: var(--accent); display: inline-flex; }
.loc-icon svg.i { width: 30px; height: 30px; }
.empty-icon svg.i { width: 48px; height: 48px; stroke-width: 1.4; }
.s-big-icon { color: var(--accent); display: inline-flex; }
.s-big-icon svg.i { width: 30px; height: 30px; stroke-width: 1.6; }
.acc-title svg.i, .acc-name svg.i { color: var(--icon); }
.brand svg.i { color: var(--accent); }
.main-nav button svg.i { opacity: .85; }

/* uploads and resumable rows in the transfers panel */
#transfer-list li.up, #transfer-list li.resume { grid-template-columns: 1fr 220px 260px auto; }
#transfer-list .row-btns { display: inline-flex; gap: 4px; align-items: center; }
#transfer-list .row-btns button { padding: 2px 8px; }
