/* ============ tokens ============ */
:root {
  --bg1: #eef2fb; --bg2: #dfe6f5;
  --shell: rgba(255, 255, 255, .62); --card: #ffffff; --card-soft: #f3f6fc; --line: #e3e8f3;
  --text: #19213a; --muted: #7b86a0; --faint: #a9b2c6;
  --accent: #34589a; --accent-2: #4b73bd; --accent-soft: #e4ebf8;
  --ok: #1fa971; --ok-soft: #dcf5ea; --err: #e5484d; --err-soft: #fde4e5; --warn: #e59a1f;
  --pill-red: #fbd3d6; --pill-red-t: #b83a42; --pill-grey: #eceff6; --pill-grey-t: #5a6580;
  --pill-violet: #dcdcf8; --pill-violet-t: #4a4aa8; --pill-green: #d7f3e5; --pill-green-t: #17794f;
  --shadow: 0 24px 60px rgba(60, 80, 130, .16); --shadow-sm: 0 6px 18px rgba(60, 80, 130, .10);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg1: #0e1220; --bg2: #151b30; --shell: rgba(24, 30, 52, .7); --card: #1b2240; --card-soft: #161c36; --line: #2a3354;
    --text: #eef1fb; --muted: #8e99b8; --faint: #5d688a; --accent: #5b86d6; --accent-2: #7aa0ea; --accent-soft: #24305a;
    --ok-soft: #12382b; --err-soft: #40181c; --pill-grey: #252d4c; --pill-grey-t: #aab4d0;
    --pill-red: #4a1d22; --pill-red-t: #ff9aa0; --pill-violet: #2c2f63; --pill-violet-t: #b4b8ff; --pill-green: #123a2b; --pill-green-t: #6fe0aa;
    --shadow: 0 24px 60px rgba(0, 0, 0, .5); --shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--text); background: linear-gradient(160deg, var(--bg1), var(--bg2)) fixed;
  font: 14.5px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.mt { margin-top: 18px; }
.muted { color: var(--muted); } .tiny { font-size: 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

/* ============ keyframes ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.92) translateY(8px); } 100% { opacity: 1; transform: none; } }
@keyframes slideLeft { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes ringPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pulseOk { 0% { box-shadow: 0 0 0 0 rgba(31, 169, 113, .45); } 100% { box-shadow: 0 0 0 18px rgba(31, 169, 113, 0); } }
@keyframes pulseErr { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .4); } 100% { box-shadow: 0 0 0 16px rgba(229, 72, 77, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rowFlash { 0% { background: var(--accent-soft); } 100% { background: transparent; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -20px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -14px); } }
@keyframes shackle { 0% { transform: translateY(0); } 100% { transform: translateY(-4px); } }

.shake { animation: shake .55s cubic-bezier(.36, .07, .19, .97) both; }
.pulse-err { animation: pulseErr .7s ease-out; border-color: var(--err) !important; }

/* ============ animated status icons ============ */
.anim-check, .anim-cross { width: 54px; height: 54px; }
.anim-check circle, .anim-cross circle { fill: none; stroke-width: 3; transform-origin: center; animation: ringPop .45s var(--ease) both; }
.anim-check circle { stroke: var(--ok); } .anim-cross circle { stroke: var(--err); }
.anim-check path, .anim-cross path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawStroke .45s .25s var(--ease) forwards; }
.anim-check path { stroke: var(--ok); } .anim-cross path { stroke: var(--err); }
.anim-cross path + path { animation-delay: .4s; }
.status-ring { border-radius: 50%; display: inline-grid; place-items: center; }
.status-ring.ok { animation: pulseOk .9s ease-out; } .status-ring.err { animation: pulseErr .9s ease-out; }

/* ============ controls ============ */
input, select, textarea {
  width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type="checkbox"] { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237b86a0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 5px; font-weight: 500; }
label.row { color: var(--text); font-size: 14px; margin: 16px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-weight: 500;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(52, 88, 154, .28); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.danger { color: var(--err); } .btn.danger:hover { background: var(--err-soft); }
.btn.wide { width: 100%; } .btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.loading { pointer-events: none; opacity: .85; }
.btn.loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.iconbtn { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  transition: background .2s, color .2s, transform .15s var(--ease); }
.iconbtn:hover { background: var(--accent-soft); color: var(--accent); transform: scale(1.08); }
.iconbtn:active { transform: scale(.92); }
.iconbtn.copied { color: var(--ok); background: var(--ok-soft); animation: ringPop .35s var(--ease); }
.link { background: none; border: 0; color: var(--accent); padding: 0; font-size: 13px; }
.link:hover { text-decoration: underline; }
.row { display: flex; gap: 8px; align-items: center; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.wrap { flex-wrap: wrap; }

.alert, .notice { padding: 11px 14px; border-radius: 12px; margin: 14px 0; font-size: 13.5px; animation: fadeUp .35s var(--ease); }
.alert { background: var(--err-soft); color: var(--err); border: 1px solid rgba(229, 72, 77, .35); }
.notice { background: #fff6e0; color: #8a6112; border: 1px solid #f1deaa; }
@media (prefers-color-scheme: dark) { .notice { background: #3a2f12; color: #f3d48a; border-color: #5c4a1a; } }

/* ============ auth / center screens ============ */
.auth-body, .screen { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card, .card {
  width: 100%; max-width: 430px; background: var(--shell); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 28px; padding: 34px; box-shadow: var(--shadow); animation: popIn .55s var(--ease) both;
}
.auth-card { text-align: center; } .card { text-align: left; }
.card h1, .auth-card h1 { margin: 14px 0 6px; font-size: 24px; letter-spacing: -.01em; }
.badge { width: 72px; height: 72px; border-radius: 22px; background: var(--accent); color: #fff; display: grid; place-items: center; margin: 0 auto;
  box-shadow: 0 14px 30px rgba(52, 88, 154, .35); animation: float 3.6s ease-in-out infinite; }
.badge.still { animation: none; }
.badge.ok { background: var(--ok); box-shadow: 0 14px 30px rgba(31, 169, 113, .35); }
.badge .shackle { transition: transform .4s var(--ease); }
.badge.open .shackle { transform: translateY(-3px) rotate(-18deg); transform-origin: 85% 100%; }
.recovery { font: 14.5px/1.7 ui-monospace, Consolas, monospace; background: var(--card-soft); border: 1.5px dashed var(--accent-2); padding: 14px; border-radius: 14px; word-break: break-all; user-select: all; }
.strength { height: 5px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.strength > i { display: block; height: 100%; width: 0; background: var(--err); transition: width .35s var(--ease), background .3s; }
.success-pane { text-align: center; padding: 18px 0 6px; animation: fadeIn .3s; }
.success-pane .anim-check { width: 76px; height: 76px; margin: 0 auto; }

/* skeleton */
.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--card-soft) 37%, var(--line) 63%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 12px; }

/* ============ app shell ============ */
.shell { display: grid; grid-template-columns: 260px 1fr; gap: 22px; min-height: 100vh; padding: 26px; max-width: 1480px; margin: 0 auto; }
.side {
  background: var(--shell); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .55); border-radius: 32px; padding: 26px 18px 18px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: sticky; top: 26px; height: calc(100vh - 52px); animation: fadeUp .6s var(--ease) both;
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.03em; padding: 0 10px; }
.brand span { color: var(--accent-2); }
.profile { text-align: center; margin: 22px 0 18px; }
.profile .pic { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 26px; font-weight: 700; overflow: hidden; box-shadow: var(--shadow-sm); }
.profile .pic img { width: 100%; height: 100%; object-fit: cover; }
.profile b { display: block; } .profile span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; }
.navlist { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; min-height: 0; margin: 0 -6px; padding: 0 6px; }
.navlist h4 { margin: 16px 12px 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.nav { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; color: var(--muted); border-radius: 12px; text-align: left; font-weight: 500;
  transition: background .2s, color .2s, transform .2s var(--ease); }
.nav svg { flex: none; }
.nav .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .count { font-size: 12px; color: var(--faint); }
.nav:hover { background: var(--accent-soft); color: var(--text); transform: translateX(3px); }
.nav.active { color: var(--text); font-weight: 600; }
.nav.active::before { content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 4px; border-radius: 4px; background: var(--text); animation: popIn .3s var(--ease); }
.lockcard { margin-top: 12px; text-align: left; border: 0; width: 100%; background: linear-gradient(145deg, #3a62a8, #2a4a85); color: #fff; border-radius: 22px; padding: 16px;
  box-shadow: 0 14px 30px rgba(42, 74, 133, .38); transition: transform .25s var(--ease), box-shadow .25s; }
.lockcard:hover { transform: translateY(-3px); box-shadow: 0 20px 36px rgba(42, 74, 133, .45); }
.lockcard b { display: block; margin: 8px 0 2px; } .lockcard span { font-size: 12px; opacity: .8; }

.main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.topbar { display: flex; align-items: center; gap: 12px; animation: fadeUp .5s .05s var(--ease) both; }
.search { position: relative; flex: 1; max-width: 360px; }
.search input { border-radius: 999px; padding-left: 18px; padding-right: 42px; background: var(--card); border-color: transparent; box-shadow: var(--shadow-sm); }
.search svg { position: absolute; right: 14px; top: 11px; color: var(--muted); pointer-events: none; }
.menu-btn { display: none; }
.panel { background: var(--shell); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .55); border-radius: 32px; padding: 26px; box-shadow: var(--shadow); animation: fadeUp .6s .08s var(--ease) both; }
.panel h2 { margin: 0 0 18px; font-size: 26px; letter-spacing: -.02em; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { position: relative; text-align: left; border: 0; background: var(--card); border-radius: 24px; padding: 18px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-sm); animation: fadeUp .55s var(--ease) both; transition: transform .3s var(--ease), box-shadow .3s; color: var(--text); }
.stat:nth-child(1) { animation-delay: .12s; } .stat:nth-child(2) { animation-delay: .18s; } .stat:nth-child(3) { animation-delay: .24s; } .stat:nth-child(4) { animation-delay: .3s; }
.stat:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(60, 80, 130, .2); }
.stat:active { transform: translateY(-1px) scale(.98); }
.stat .ico { width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.stat .num { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.stat .cap { font-size: 12px; color: var(--muted); }
.stat .radio { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--card-soft); display: grid; place-items: center; transition: all .25s var(--ease); }
.stat.active .radio { border-color: var(--accent-soft); background: var(--accent-soft); }
.stat.active .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: ringPop .35s var(--ease); }
.stat.add { background: var(--accent-soft); box-shadow: none; color: var(--muted); border: 2px dashed transparent; }
.stat.add .ico { background: color-mix(in srgb, var(--accent) 35%, var(--card)); }
.stat.add:hover { border-color: var(--accent-2); color: var(--accent); }

/* filters */
.filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.filters label { margin: 0 0 4px 4px; }
.filters input, .filters select { background: var(--card); border-color: transparent; box-shadow: var(--shadow-sm); padding: 9px 14px; }

/* table */
.table { display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: 24px; padding: 8px; box-shadow: var(--shadow-sm); min-height: 120px; }
.tr { display: grid; grid-template-columns: minmax(150px, 1.5fr) minmax(130px, 1.4fr) minmax(100px, 1fr) 130px 54px 120px 76px; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 16px;
  cursor: pointer; transition: background .2s, transform .25s var(--ease), box-shadow .25s; animation: fadeUp .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.tr:last-child { border-bottom-color: transparent; }
.tr:hover { background: var(--card-soft); transform: translateX(4px); }
.tr.active { background: var(--accent-soft); }
.table.noanim .tr { animation: none; }
.tr.fresh { animation: fadeUp .45s var(--ease) both, rowFlash 1.6s ease-out; }
.tr.removing { animation: none; transition: all .35s var(--ease); opacity: 0; transform: translateX(40px) scale(.97); max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.th { cursor: default; padding-top: 4px; padding-bottom: 0; animation: none; border: 0; }
.th:hover { background: none; transform: none; }
.th span { font-size: 12px; color: var(--muted); font-weight: 500; }
.cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .12); }
.av0 { background: #4a7bd0; } .av1 { background: #7a6ad8; } .av2 { background: #2fa38a; } .av3 { background: #e08a3c; } .av4 { background: #d8587a; } .av5 { background: #3d9bd1; } .av6 { background: #8a6f55; } .av7 { background: #5b8c3a; }
.sub { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sub .t { overflow: hidden; text-overflow: ellipsis; }
.sub .iconbtn { width: 26px; height: 26px; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--pill-grey); color: var(--pill-grey-t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pill.red { background: var(--pill-red); color: var(--pill-red-t); } .pill.violet { background: var(--pill-violet); color: var(--pill-violet-t); } .pill.green { background: var(--pill-green); color: var(--pill-green-t); }
.health { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.health.ok { background: var(--ok-soft); color: var(--ok); } .health.bad { background: var(--err-soft); color: var(--err); } .health.na { background: var(--pill-grey); color: var(--faint); }
.date { font-size: 12.5px; color: var(--muted); }
.acts { display: flex; justify-content: flex-end; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted); animation: fadeUp .5s var(--ease); }
.empty .big { font-size: 40px; display: block; margin-bottom: 8px; animation: float 3s ease-in-out infinite; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 18px; }
.pg { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px; border: 0; background: var(--card); color: var(--muted); font-weight: 600; transition: all .2s var(--ease); box-shadow: var(--shadow-sm); }
.pg:hover { color: var(--accent); transform: translateY(-2px); } .pg.on { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(52, 88, 154, .3); }

/* popover menu */
.pop { position: fixed; z-index: 90; min-width: 168px; background: var(--card); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); border: 1px solid var(--line); animation: popIn .2s var(--ease); transform-origin: top right; }
.pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 9px; text-align: left; }
.pop button:hover { background: var(--accent-soft); } .pop button.danger { color: var(--err); } .pop button.danger:hover { background: var(--err-soft); }

/* drawer + modal */
.backdrop { position: fixed; inset: 0; background: rgba(20, 28, 54, .42); backdrop-filter: blur(3px); z-index: 60; animation: fadeIn .25s; display: flex; justify-content: flex-end; }
.backdrop.closing { opacity: 0; transition: opacity .2s; }
.drawer { width: 100%; max-width: 460px; height: 100%; background: var(--bg1); padding: 26px 24px; overflow-y: auto; box-shadow: var(--shadow); animation: slideLeft .4s var(--ease); border-radius: 32px 0 0 32px; }
.drawer h2 { margin: 12px 0 4px; font-size: 24px; letter-spacing: -.02em; }
.field { background: var(--card); border-radius: 16px; padding: 12px 14px; margin: 10px 0; box-shadow: var(--shadow-sm); animation: fadeUp .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.field .k { font-size: 12px; color: var(--muted); }
.field .v { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.field .v code { font: 14px ui-monospace, Consolas, monospace; word-break: break-all; white-space: pre-wrap; flex: 1; transition: filter .3s; }
.field .v a { color: var(--accent); }
.modal-bg { position: fixed; inset: 0; background: rgba(20, 28, 54, .45); backdrop-filter: blur(4px); z-index: 70; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 28px 12px; animation: fadeIn .25s; }
.modal { width: 100%; max-width: 580px; background: var(--bg1); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); animation: popIn .4s var(--ease); margin: auto; }
.modal h3 { margin: 0 0 4px; font-size: 20px; }
.frow { display: grid; grid-template-columns: 1fr 1.6fr auto auto; gap: 8px; align-items: start; margin-top: 8px; animation: fadeUp .3s var(--ease); }
.frow textarea { min-height: 44px; }

/* toast with animated status icon */
.toast { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 12px; background: var(--card); color: var(--text);
  padding: 10px 20px 10px 12px; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); animation: toastIn .45s var(--ease) both; max-width: min(92vw, 460px); }
.toast.out { animation: toastOut .3s ease-in forwards; }
.toast .anim-check, .toast .anim-cross { width: 34px; height: 34px; flex: none; }
.toast.err { border-color: rgba(229, 72, 77, .5); animation: toastIn .45s var(--ease) both, shake .55s .35s; }
.toast.ok { border-color: rgba(31, 169, 113, .45); }

/* ============ responsive ============ */
@media (max-width: 1180px) { .tr { grid-template-columns: minmax(150px, 1.4fr) minmax(120px, 1.2fr) 120px 54px 76px; } .tr > :nth-child(3), .tr > :nth-child(6) { display: none; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .side { animation: none; position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; height: auto; width: 280px; border-radius: 0 32px 32px 0; transform: translateX(-105%); transition: transform .4s var(--ease); background: var(--bg1); }
  .shell.showside .side { transform: none; }
  .menu-btn { display: inline-grid; background: var(--card); box-shadow: var(--shadow-sm); }
  .stats { grid-template-columns: repeat(2, 1fr); } .filters { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; border-radius: 26px; }
  .tr { grid-template-columns: minmax(0, 1fr) 76px; } .tr > :nth-child(2), .tr > :nth-child(3), .tr > :nth-child(4), .tr > :nth-child(5), .tr > :nth-child(6) { display: none; } .th { display: none; }
  .drawer { max-width: none; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }
