/* File Vault — premium admin (blue / white / silver) */
:root{
  --ink:#0B1220; --ink-2:#1C2A42; --muted:#5F7089; --faint:#8A9AB2;
  --bg:#F4F7FC; --card:#FFFFFF; --line:#E3E9F2; --line-2:#EEF3FA;
  --blue:#2563EB; --blue-600:#1D4ED8; --blue-50:#EFF5FF; --blue-100:#DCE8FF;
  --silver:#C7D2E1; --silver-2:#EEF2F7; --ok:#0E9F6E; --ok-50:#E8F8F1;
  --danger:#DC2626; --danger-50:#FDECEC;
  --r:16px; --r-sm:10px;
  --shadow:0 1px 2px rgba(11,18,32,.05), 0 16px 32px -26px rgba(11,18,32,.28);
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --mono:'SFMono-Regular',ui-monospace,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14.5px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
h1,h2,h3{margin:0;letter-spacing:-.022em;line-height:1.2}
h1{font-size:26px;font-weight:700}
h2{font-size:17px;font-weight:650}
h3{font-size:15px;font-weight:650}
p{margin:0}
.muted{color:var(--muted)}
.mono{font-family:var(--mono);font-size:12px}
.ta-r{text-align:right}
.mt{margin-top:22px}

/* ---------- shell ---------- */
.shell{display:grid;grid-template-columns:262px minmax(0,1fr);min-height:100vh}
.side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:8px;
  background:linear-gradient(180deg,#FFFFFF 0%,#FBFCFE 100%);border-right:1px solid var(--line);padding:20px 14px}
.brand{display:flex;align-items:center;gap:11px;padding:4px 8px 16px}
.brand-mark{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:none;
  background:linear-gradient(145deg,#3B82F6,#1D4ED8);color:#fff;font-weight:800;font-size:13px;letter-spacing:.02em;
  box-shadow:0 8px 18px -8px rgba(37,99,235,.65), inset 0 1px 0 rgba(255,255,255,.25)}
.brand-txt strong{display:block;font-size:14.5px;letter-spacing:-.01em}
.brand-txt small{display:block;color:var(--faint);font-size:11px}
.nav{display:flex;flex-direction:column;gap:2px;overflow-y:auto;flex:1;padding-right:2px}
.nav>a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;color:var(--ink-2);font-weight:600;font-size:13.5px;transition:.15s}
.nav>a svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.nav>a:hover{background:var(--silver-2)}
.nav>a.on{background:var(--blue-50);color:var(--blue-600)}
.nav>a.on svg{opacity:1}
.nav-label{margin:16px 10px 6px;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
.nav-projects{display:flex;flex-direction:column;gap:1px}
.nav-projects a{display:flex;align-items:center;gap:9px;padding:7px 10px;border-radius:9px;font-size:13px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nav-projects a:hover{background:var(--silver-2);color:var(--ink)}
.dot{width:7px;height:7px;border-radius:50%;background:var(--c,var(--blue));flex:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--c,var(--blue)) 14%,transparent)}
.nav-empty{padding:6px 10px;font-size:12px;color:var(--faint)}
.side-foot{border-top:1px solid var(--line);padding-top:12px;margin-top:6px}
.who{display:flex;align-items:center;gap:10px;padding:4px 6px 10px}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--silver-2);border:1px solid var(--line);display:grid;place-items:center;font-weight:800;color:var(--blue-600);flex:none}
.who strong{display:block;font-size:13px}
.who small{display:block;font-size:11px;color:var(--faint)}

.main{min-width:0;display:flex;flex-direction:column}
.topbar{height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 30px;background:rgba(255,255,255,.86);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.crumbs{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.crumbs a:hover{color:var(--ink)}
.crumbs strong{color:var(--ink);font-weight:650}
.pill{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px;border-radius:99px;font-size:11.5px;font-weight:700;letter-spacing:.02em;border:1px solid var(--line);background:#fff;color:var(--muted)}
.pill-ok i{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px var(--ok-50)}
.content{padding:28px 30px 56px;max-width:1400px;width:100%}

/* ---------- page head ---------- */
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px;flex-wrap:wrap}
.page-head p{margin-top:5px}
.proj-title{display:flex;align-items:center;gap:14px}
.proj-dot{width:10px;height:10px;border-radius:50%;background:var(--c,var(--blue));flex:none;box-shadow:0 0 0 5px color-mix(in srgb,var(--c,var(--blue)) 13%,transparent)}
.proj-dot.lg{width:14px;height:14px}
.head-actions{display:flex;gap:8px;align-items:center}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:11px;
  border:1px solid transparent;font-weight:650;font-size:13.5px;cursor:pointer;transition:.16s;white-space:nowrap}
.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn-primary{background:var(--blue);color:#fff;box-shadow:0 8px 18px -10px rgba(37,99,235,.55), inset 0 1px 0 rgba(255,255,255,.18)}
.btn-primary:hover{background:var(--blue-600);transform:translateY(-1px)}
.btn-ghost{background:#fff;border-color:var(--line);color:var(--ink-2)}
.btn-ghost:hover{border-color:var(--silver);background:var(--silver-2)}
.btn-soft{background:var(--blue-50);color:var(--blue-600);border-color:var(--blue-100)}
.btn-soft:hover{background:var(--blue-100)}
.btn-danger{background:#fff;border-color:#F5D2D2;color:var(--danger)}
.btn-danger:hover{background:var(--danger-50)}
.btn-ghost-danger{background:transparent;color:var(--danger);border-color:transparent;padding:0 10px;height:32px}
.btn-ghost-danger:hover{background:var(--danger-50)}
.btn-sm{height:32px;padding:0 12px;font-size:12.5px;border-radius:9px}
.btn-block{width:100%}
.inline{display:inline}
.link{background:none;border:0;color:var(--blue-600);font-weight:700;cursor:pointer;padding:0;font-size:inherit}

/* ---------- cards / stats ---------- */
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}
.stat{display:flex;align-items:center;gap:14px;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;box-shadow:var(--shadow)}
.stat-ico{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:none}
.stat-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.stat-ico.blue{background:var(--blue-50);color:var(--blue-600)}
.stat-ico.silver{background:var(--silver-2);color:#64748B}
.stat strong{display:block;font-size:22px;letter-spacing:-.03em;line-height:1.1}
.stat small{color:var(--muted);font-size:11.5px;font-weight:600}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden}
.card.pad{padding:22px}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line-2)}
.search{height:36px;width:min(280px,45vw);border:1px solid var(--line);border-radius:10px;padding:0 12px;font-family:inherit;font-size:13px;color:var(--ink);background:#fff;outline:none;transition:.15s}
.search:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.12)}

/* ---------- project cards ---------- */
.proj-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.proj-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;box-shadow:var(--shadow);
  display:flex;flex-direction:column;gap:8px;transition:.18s}
.proj-card:hover{transform:translateY(-3px);border-color:#D6E0EE;box-shadow:0 2px 4px rgba(11,18,32,.05),0 26px 44px -30px rgba(11,18,32,.4)}
.proj-top{display:flex;align-items:center;justify-content:space-between}
.proj-count{font-size:11px;font-weight:700;color:var(--muted);background:var(--silver-2);border-radius:99px;padding:3px 9px}
.proj-card h3{font-size:16.5px;margin-top:2px}
.proj-card p{font-size:12.5px;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.proj-foot{display:flex;justify-content:space-between;margin-top:8px;padding-top:12px;border-top:1px solid var(--line-2);font-size:11.5px;color:var(--faint);font-weight:600}

.empty-state{padding:56px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.empty-state.sm{padding:30px 20px}
.empty-ico{width:56px;height:56px;border-radius:16px;background:var(--blue-50);color:var(--blue-600);display:grid;place-items:center}
.empty-ico svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.empty-state h2{margin-top:4px}

/* ---------- dropzone ---------- */
.drop{display:block;border:1.5px dashed #C9D7EA;background:linear-gradient(180deg,#FFFFFF,#F8FBFF);border-radius:var(--r);
  margin-bottom:18px;transition:.18s;cursor:pointer}
.drop:hover,.drop.over{border-color:var(--blue);background:var(--blue-50);box-shadow:0 0 0 4px rgba(37,99,235,.07)}
.drop-inner{display:flex;flex-direction:column;align-items:center;gap:7px;padding:30px 20px;text-align:center}
.drop-ico{width:46px;height:46px;border-radius:50%;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--blue);margin-bottom:4px}
.drop-ico svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.drop span{font-size:12px;color:var(--muted)}

.upload-list{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.up-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;box-shadow:var(--shadow)}
.up-top{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;font-weight:650;margin-bottom:7px}
.up-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up-bar{height:6px;border-radius:99px;background:var(--silver-2);overflow:hidden}
.up-bar i{display:block;height:100%;width:0%;border-radius:99px;background:linear-gradient(90deg,#3B82F6,#1D4ED8);transition:width .2s}
.up-item.done .up-bar i{background:var(--ok)}
.up-item.err .up-bar i{background:var(--danger)}

/* ---------- table ---------- */
.table-wrap{overflow-x:auto}
.table{width:100%;border-collapse:collapse;font-size:13.5px}
.table th{text-align:left;font-size:10.5px;letter-spacing:.11em;text-transform:uppercase;color:var(--faint);font-weight:800;padding:11px 18px;border-bottom:1px solid var(--line-2);background:#FBFCFE;white-space:nowrap}
.table td{padding:13px 18px;border-bottom:1px solid var(--line-2);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.table tbody tr:hover{background:#FAFCFF}
.fname{display:flex;align-items:center;gap:11px;min-width:250px}
.fname strong{display:block;font-weight:650;word-break:break-all;line-height:1.35}
.fname small{display:block;color:var(--faint);margin-top:1px}
.fico{width:34px;height:34px;border-radius:9px;background:var(--silver-2);display:grid;place-items:center;color:#64748B;flex:none}
.fico svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}

.badge{display:inline-flex;align-items:center;height:23px;padding:0 9px;border-radius:7px;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.badge-blue{background:var(--blue-50);color:var(--blue-600)}
.badge-silver{background:var(--silver-2);color:#526179}
.badge-green{background:var(--ok-50);color:#067A55}
.badge-grey{background:#F3F5F9;color:#6B7A90}

/* ---------- forms ---------- */
label{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:650;color:var(--ink-2)}
label .opt{font-weight:500;color:var(--faint);font-size:11px}
input[type=text],input[type=password],input[type=search],input[name=name],input[name=description]{
  height:42px;border:1px solid var(--line);border-radius:11px;padding:0 13px;font-family:inherit;font-size:14px;color:var(--ink);background:#fff;outline:none;transition:.15s;width:100%}
input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.stack{display:flex;flex-direction:column;gap:14px;margin-top:16px}

/* ---------- modal ---------- */
.modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px}
.modal[hidden]{display:none}
.modal-back{position:absolute;inset:0;background:rgba(11,18,32,.42);backdrop-filter:blur(3px)}
.modal-card{position:relative;z-index:1;width:min(440px,100%);background:#fff;border-radius:18px;padding:24px;box-shadow:0 40px 80px -30px rgba(11,18,32,.55);
  display:flex;flex-direction:column;gap:14px;animation:pop .18s ease-out}
@keyframes pop{from{transform:translateY(8px) scale(.985);opacity:0}to{transform:none;opacity:1}}
.modal-card h2{font-size:19px}
.modal-card .muted{font-size:12.5px;margin-top:-6px}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.swatches{display:flex;gap:9px}
.swatch{display:block;cursor:pointer}
.swatch input{position:absolute;opacity:0;pointer-events:none}
.swatch i{display:block;width:28px;height:28px;border-radius:50%;background:var(--c);border:2px solid #fff;box-shadow:0 0 0 1px var(--line);transition:.15s}
.swatch input:checked+i{box-shadow:0 0 0 2px var(--c)}

/* ---------- alerts / settings ---------- */
.alert{border-radius:12px;padding:12px 14px;font-size:13px;font-weight:600;margin-bottom:16px;border:1px solid}
.alert-ok{background:var(--ok-50);border-color:#C9EEDC;color:#067A55}
.alert-err{background:var(--danger-50);border-color:#F5D2D2;color:#B91C1C}
.settings-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:16px;align-items:start}
.kv{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line-2);font-size:13px}
.kv:last-of-type{border-bottom:0}
.kv span{color:var(--muted)}
.meter{height:7px;border-radius:99px;background:var(--silver-2);overflow:hidden;margin-top:12px}
.meter i{display:block;height:100%;background:linear-gradient(90deg,#3B82F6,#1D4ED8);border-radius:99px}
.checks{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:8px;font-size:12.5px;color:var(--muted)}
.checks li{display:flex;gap:9px;align-items:flex-start}
.checks li::before{content:"";width:15px;height:15px;border-radius:50%;background:var(--ok-50);border:1px solid #C9EEDC;flex:none;margin-top:2px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9F6E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size:9px;background-repeat:no-repeat;background-position:center}

/* ---------- auth ---------- */
.auth-body{min-height:100vh;display:grid;place-items:center;background:
  radial-gradient(1200px 600px at 15% -10%,#E8F0FF 0%,transparent 60%),
  radial-gradient(900px 500px at 100% 110%,#EAF1FA 0%,transparent 55%),#F4F7FC}
.auth-wrap{width:min(420px,calc(100% - 32px));display:flex;flex-direction:column;gap:18px}
.auth-brand{display:flex;align-items:center;gap:12px;justify-content:center}
.auth-brand strong{display:block;font-size:16px}
.auth-brand span{display:block;font-size:11.5px;color:var(--faint)}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 30px 70px -40px rgba(11,18,32,.5),0 1px 2px rgba(11,18,32,.05);
  display:flex;flex-direction:column;gap:14px}
.auth-card h1{font-size:22px}
.auth-card .muted{font-size:12.5px;margin-top:-8px}
.auth-card label{margin-top:4px}
.auth-foot{text-align:center;font-size:11px;color:var(--faint);margin-top:2px}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .proj-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings-grid{grid-template-columns:1fr}
}
@media (max-width:860px){
  .shell{grid-template-columns:1fr}
  .side{position:static;height:auto;flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px;padding:12px 14px;border-right:0;border-bottom:1px solid var(--line)}
  .brand{padding:0 10px 0 0}
  .brand-txt small{display:none}
  .nav{flex-direction:row;flex:1;overflow-x:auto;gap:4px}
  .nav-label,.nav-projects,.side-foot .who{display:none}
  .side-foot{border:0;margin:0;padding:0}
  .nav>a{padding:8px 10px;white-space:nowrap}
  .topbar{padding:0 16px;height:54px}
  .content{padding:18px 16px 44px}
  .page-head{align-items:flex-start}
  h1{font-size:22px}
  .fname{min-width:200px}
}
@media (max-width:560px){
  .stat-grid{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:13px;gap:10px}
  .stat strong{font-size:19px}
  .proj-grid{grid-template-columns:1fr}
  .head-actions{width:100%;justify-content:flex-end}
  .table th:nth-child(4),.table td:nth-child(4),.table th:nth-child(5),.table td:nth-child(5){display:none}
}

/* ================= v2: app mode + future tools ================= */
body{overscroll-behavior-y:contain}
.avatar-btn{border:1px solid var(--line);cursor:pointer;font-size:15px;color:var(--blue-600);background:#fff}
.top-right{display:flex;align-items:center;gap:8px}
.card-head-inline{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.link-sm{font-size:12px;font-weight:700;color:var(--blue-600)}
.link-sm:hover{text-decoration:underline}
.searchbar{display:flex;gap:10px;margin-bottom:18px}
.searchbar input{flex:1;height:46px;border:1px solid var(--line);border-radius:12px;padding:0 14px;font-family:inherit;font-size:14px;background:#fff;outline:none}
.searchbar input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
select{height:42px;border:1px solid var(--line);border-radius:11px;padding:0 12px;font-family:inherit;font-size:14px;background:#fff;color:var(--ink);width:100%;outline:none}
select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.feed{display:flex;flex-direction:column}
.feed-row{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid var(--line-2);align-items:flex-start}
.feed-row:last-child{border-bottom:0}
.feed-dot{width:8px;height:8px;border-radius:50%;background:var(--blue);margin-top:7px;flex:none;box-shadow:0 0 0 3px var(--blue-50)}
.feed-row strong{display:block;font-size:13px;font-weight:650}
.feed-row small{display:block;color:var(--muted);font-size:11.5px;margin-top:1px;word-break:break-word}
.recent{margin-top:18px}
.chip-live{display:inline-block;background:var(--ok-50);color:#067A55;border-radius:99px;padding:0 6px;font-size:9.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;vertical-align:1px}
.copybox{display:flex;gap:8px}
.copybox input{flex:1;height:40px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font-family:var(--mono);font-size:12px;color:var(--ink-2);background:#fff}
.share-live{border:1px solid var(--line);border-radius:12px;padding:14px;background:#F8FBFF;display:flex;flex-direction:column;gap:10px;margin-bottom:6px}
.actions{white-space:nowrap}
.actions .btn{margin-left:4px}
.small{font-size:12px}

/* bottom app tab bar — phones only */
.tabbar{display:none}

@media (max-width:860px){
  .side{display:none}
  .shell{grid-template-columns:1fr}
  .topbar{height:56px;padding:0 16px}
  .content{padding:16px 16px calc(96px + env(safe-area-inset-bottom))}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;
    height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
    background:rgba(255,255,255,.95);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
    border-top:1px solid var(--line);box-shadow:0 -10px 30px -24px rgba(11,18,32,.35)}
  .tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    font-size:9.5px;font-weight:700;color:var(--faint);letter-spacing:.01em;transition:.15s}
  .tabbar a svg{width:21px;height:21px}
  .tabbar a.on{color:var(--blue)}
  .tabbar a.on svg{transform:translateY(-1px)}
  .page-head{margin-bottom:16px}
  .page-head h1{font-size:21px}
  .stat-grid{gap:10px;margin-bottom:18px}
  .stat{padding:13px 14px;gap:11px;border-radius:14px}
  .stat-ico{width:38px;height:38px;border-radius:11px}
  .stat strong{font-size:19px}
  .proj-grid{gap:12px}
  .proj-card{padding:16px;border-radius:14px}
  .card{border-radius:14px}
  .card-head{padding:14px 16px}
  .search{width:100%;max-width:none}
  .card-head{flex-direction:column;align-items:stretch;gap:10px}
  /* file table → app cards */
  .table-wrap{overflow:visible}
  .table, .table tbody, .table tr, .table td{display:block;width:100%}
  .table thead{display:none}
  .table tr{border:1px solid var(--line);border-radius:14px;padding:13px 14px;margin:10px 12px;background:#fff;box-shadow:0 1px 2px rgba(11,18,32,.04)}
  .table tr:last-child{margin-bottom:14px}
  .table td{border:0;padding:3px 0}
  .table td.ta-r{text-align:left;margin-top:8px}
  .table td:nth-child(2),.table td:nth-child(5){display:inline-block;width:auto;margin-right:10px}
  .table td:nth-child(3){display:inline-block;width:auto;margin-right:10px}
  .table td:nth-child(4){display:none}
  .fname{min-width:0}
  .fname strong{font-size:13.5px}
  .actions{display:flex;flex-wrap:wrap;gap:6px}
  .actions .btn{margin-left:0}
  .drop-inner{padding:24px 14px}
  .modal-card{border-radius:16px;padding:20px}
  .settings-grid{gap:12px}
  .content > .alert{margin-bottom:12px}
}

@media (display-mode: standalone){
  .topbar{padding-top:env(safe-area-inset-top);height:calc(56px + env(safe-area-inset-top))}
  .tabbar{padding-bottom:env(safe-area-inset-bottom)}
}

/* [hidden] must beat display declarations */
[hidden]{display:none!important}
