:root {
  color-scheme: dark;
  --bg: #050b14;
  --bg-soft: #08111e;
  --panel: #0d1725;
  --panel-2: #111d2c;
  --panel-hover: #162437;
  --line: #223247;
  --line-soft: rgba(126, 157, 193, .16);
  --text: #f6f8fc;
  --muted: #98a7ba;
  --muted-2: #6f8095;
  --blue: #2d79f6;
  --cyan: #12bde4;
  --green: #14d69b;
  --amber: #ffb238;
  --red: #ff5f6d;
  --purple: #8d61ed;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --radius: 15px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 75% 0%, rgba(18, 76, 135, .14), transparent 34%), var(--bg); }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }

.boot-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--bg); color: var(--muted); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #14bfe4, #315eea 65%, #6547db); box-shadow: 0 12px 34px rgba(39, 110, 246, .34); }
.brand-mark span { width: 21px; height: 19px; display: block; transform: rotate(0deg); border: 2px solid #b8fff3; border-top: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.brand-mark--large { width: 68px; height: 68px; border-radius: 18px; animation: breathe 1.8s ease-in-out infinite; }
.brand-mark--large span { width: 33px; height: 30px; }
@keyframes breathe { 50% { transform: translateY(-5px); box-shadow: 0 20px 52px rgba(39, 110, 246, .5); } }

.login-screen { min-height: 100vh; padding: 26px; display: grid; grid-template-columns: minmax(460px, 1.7fr) minmax(420px, .9fr); gap: 24px; }
.login-story, .login-panel { position: relative; min-height: calc(100vh - 52px); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(13, 25, 40, .95), rgba(6, 15, 27, .98)); }
.login-story { padding: 42px 46px; }
.login-brand, .app-brand { display: flex; align-items: center; gap: 15px; font-size: 25px; }
.login-brand strong, .app-brand strong { font-weight: 700; }
.story-copy { position: relative; z-index: 2; width: min(520px, 62%); margin-top: 115px; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.story-copy h1 { margin: 0; font-size: clamp(40px, 4vw, 64px); line-height: 1.08; letter-spacing: -.035em; }
.story-copy h1 span { background: linear-gradient(90deg, var(--blue), var(--green)); color: transparent; background-clip: text; }
.story-copy > p:not(.eyebrow) { max-width: 445px; margin: 24px 0 30px; color: #b4c0d0; font-size: 17px; line-height: 1.7; }
.story-features { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
.story-features li { display: flex; gap: 14px; align-items: center; }
.story-features li > span { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; color: var(--cyan); background: rgba(34, 78, 126, .2); }
.story-features div { display: grid; gap: 4px; }
.story-features b { font-size: 14px; }
.story-features small { color: var(--muted); line-height: 1.4; }
.privacy-note { position: absolute; left: 46px; bottom: 28px; color: var(--muted); font-size: 13px; }
.memory-collage { position: absolute; top: -40px; right: -70px; width: 58%; height: 112%; opacity: .62; transform: rotate(10deg); mask-image: linear-gradient(to bottom, #000 65%, transparent 100%); }
.memory-card { position: absolute; width: 240px; height: 170px; border: 1px solid rgba(255,255,255,.15); border-radius: 25px; background-size: cover; box-shadow: var(--shadow); }
.memory-card--one { top: 45px; right: 120px; background: radial-gradient(circle at 65% 38%, #fff 0 2%, transparent 3%), linear-gradient(155deg, #13283a 0 25%, #315e7b 26% 40%, #e8f5ff 41% 48%, #1a4a67 49% 65%, #0d1e2d 66%); }
.memory-card--two { top: 245px; right: -2px; background: linear-gradient(160deg, #182c27, #5b7839 38%, #d8b56f 40% 52%, #72503d 53% 70%, #18202d 72%); }
.memory-card--three { top: 435px; right: 155px; background: radial-gradient(circle at 58% 36%, #f8cfb4 0 11%, transparent 12%), linear-gradient(160deg, #25384d, #6b894e 48%, #27341e 50%); }
.memory-card--four { top: 650px; right: 0; background: linear-gradient(145deg, #29465b, #1d797c 40%, #f3c67f 42% 48%, #242d3b 50%); }
.login-panel { display: grid; place-items: center; padding: 36px; }
.auth-card { width: min(100%, 440px); padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(19, 31, 47, .92), rgba(11, 20, 33, .96)); box-shadow: var(--shadow); }
.auth-heading { margin-bottom: 30px; text-align: center; }
.auth-heading h2 { margin: 4px 0 6px; font-size: 29px; }
.auth-heading > p:last-child { margin: 0; color: var(--muted); }
.mobile-brand { display: none; }
.auth-card label, .modal-form label { display: block; margin: 18px 0 8px; color: #e4eaf2; font-size: 13px; font-weight: 600; }
.input-shell { height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #2b3c51; border-radius: 10px; background: #0a1421; transition: .2s; }
.input-shell:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 121, 246, .14); }
.input-shell > span { color: var(--muted); }
.input-shell input, .modal-form input, .modal-form select { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.input-shell input::placeholder { color: #617086; }
.icon-button { border: 0; background: transparent; cursor: pointer; }
.reveal-password { padding: 7px; color: var(--muted); }
.form-error { min-height: 20px; margin: 12px 0 0; color: #ff8490; font-size: 13px; }
.primary-button, .secondary-button, .danger-button, .install-button { min-height: 42px; border: 1px solid transparent; border-radius: 9px; padding: 0 17px; font-weight: 650; cursor: pointer; transition: .2s; }
.primary-button { color: #fff; background: linear-gradient(90deg, #2f69e8, #13c7a0); box-shadow: 0 10px 24px rgba(24, 108, 214, .22); }
.primary-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled { opacity: .5; cursor: wait; transform: none; }
.primary-button--wide { width: 100%; margin-top: 18px; display: flex; justify-content: center; gap: 14px; align-items: center; height: 51px; }
.secondary-button { border-color: #2a3b50; background: #111c2b; }
.secondary-button:hover { border-color: #3f5a78; background: #17263a; }
.danger-button { border-color: rgba(255,95,109,.4); color: #ff8791; background: rgba(112,29,41,.18); }
.auth-security { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--muted); text-align: center; font-size: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 14px auto 14px 14px; z-index: 30; width: 246px; display: flex; flex-direction: column; padding: 22px 12px 14px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(165deg, #101b29, #09121f 76%); box-shadow: 10px 0 50px rgba(0,0,0,.18); }
.app-brand { margin: 0 11px 20px; }
.nav-sections { min-height: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; overflow-y: auto; scrollbar-width: thin; }
.nav-item { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 9px; padding: 0 14px; color: #c5cfdb; background: transparent; cursor: pointer; text-align: left; }
.nav-item > span { width: 20px; color: #aebccd; font-size: 20px; text-align: center; }
.nav-item:hover { color: #fff; background: rgba(51, 79, 112, .22); }
.nav-item.is-active { position: relative; color: #fff; background: linear-gradient(90deg, rgba(43, 99, 174, .28), rgba(31, 84, 96, .22)); box-shadow: inset 0 0 0 1px rgba(73, 139, 194, .15); }
.nav-item.is-active::before { content: ""; position: absolute; inset: 0 auto 0 -1px; width: 3px; border-radius: 3px; background: linear-gradient(var(--cyan), var(--green)); }
.nav-item.is-active > span { color: #73b7ff; }
.nav-divider { height: 1px; margin: 8px 10px; background: var(--line-soft); }
.sidebar-storage { margin: 12px 2px 10px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(18, 31, 47, .72); }
.sidebar-storage > div:first-child { display: flex; justify-content: space-between; font-size: 12px; }
.sidebar-storage small { color: var(--muted); font-size: 11px; }
.mini-progress, .progress-track { height: 7px; overflow: hidden; margin: 10px 0; border-radius: 10px; background: #1b2839; }
.mini-progress i, .progress-track i { height: 100%; display: block; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green)); transition: width .4s; }
.sidebar-profile { min-height: 55px; display: flex; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line-soft); padding: 12px 7px 0; background: transparent; cursor: pointer; text-align: left; }
.sidebar-profile > span:nth-child(2) { min-width: 0; display: grid; flex: 1; }
.sidebar-profile b, .sidebar-profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile small { color: var(--muted); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(92,211,255,.5); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #216595, #25324d); font-weight: 700; }
.workspace { grid-column: 2; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 88px; display: flex; align-items: center; gap: 20px; padding: 0 30px; }
.global-search { width: min(650px, 58vw); height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #09121f; }
.global-search > span { font-size: 25px; color: var(--muted); }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; }
kbd { border: 1px solid #243246; border-radius: 6px; padding: 4px 7px; color: var(--muted); background: #111b29; font-family: inherit; font-size: 11px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.install-button { min-height: 36px; border-color: rgba(33,192,158,.35); color: #58e9c0; background: rgba(20,214,155,.1); }
.notification-button { position: relative; width: 40px; height: 40px; color: #c1ccda; font-size: 24px; }
.notification-button i { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border: 2px solid var(--bg); border-radius: 50%; background: var(--blue); }
.profile-chip { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; cursor: pointer; }
.profile-chip .avatar { width: 38px; height: 38px; }
.online-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(20,214,155,.09); }
.mobile-menu { display: none; font-size: 23px; }
.main-view { min-height: calc(100vh - 126px); padding: 0 30px 26px; outline: 0; }
.app-footer { min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 11px; }
.app-footer .online-dot { width: 6px; height: 6px; margin-left: 5px; }

.page-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin: 5px 0 24px; }
.page-head h1 { margin: 0 0 6px; font-size: 29px; letter-spacing: -.025em; }
.page-head p { margin: 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16, 28, 43, .96), rgba(10, 19, 31, .98)); box-shadow: 0 8px 30px rgba(0,0,0,.09); }
.stat-card { min-height: 126px; display: flex; gap: 15px; align-items: center; padding: 19px; }
.stat-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(71,138,255,.32); border-radius: 13px; color: #79b5ff; background: rgba(37,94,178,.18); font-size: 24px; }
.stat-icon--green { color: #4de8bc; border-color: rgba(20,214,155,.24); background: rgba(13,119,90,.18); }
.stat-icon--purple { color: #bd91ff; border-color: rgba(141,97,237,.28); background: rgba(91,51,158,.2); }
.stat-icon--amber { color: #ffc267; border-color: rgba(255,178,56,.25); background: rgba(124,78,17,.2); }
.stat-copy { min-width: 0; display: grid; gap: 5px; }
.stat-copy span { color: #c9d3df; font-size: 13px; }
.stat-copy strong { font-size: 26px; font-weight: 550; white-space: nowrap; }
.stat-copy small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.panel { min-width: 0; padding: 18px; }
.panel--full { grid-column: 1 / -1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 17px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.text-link { border: 0; color: #55a8ff; background: transparent; cursor: pointer; }
.health-list, .activity-list, .device-list, .job-list, .file-list { display: grid; gap: 9px; }
.health-row, .activity-row, .device-row, .job-row, .file-row { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 13px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(12, 22, 35, .62); }
.health-row:hover, .file-row:hover { background: var(--panel-hover); }
.health-row > div:nth-child(2), .device-row > div, .job-row > div, .file-row > div { min-width: 0; display: grid; flex: 1; gap: 4px; }
.health-row strong, .device-row strong, .job-row strong, .file-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-row small, .device-row small, .job-row small, .file-row small { color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 99px; padding: 5px 9px; color: #65e8c1; background: rgba(20,214,155,.1); font-size: 11px; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill--warning { color: var(--amber); background: rgba(255,178,56,.1); }
.status-pill--danger, .status-pill--offline { color: #ff7784; background: rgba(255,95,109,.1); }
.metric-bar { margin-top: 7px; }
.metric-bar > div:first-child { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.health-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.health-metric { padding: 13px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(8,17,29,.6); }
.health-metric span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.health-metric strong { font-size: 17px; }
.empty-state { min-height: 230px; display: grid; place-content: center; justify-items: center; padding: 34px; color: var(--muted); text-align: center; }
.empty-state > span { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; color: #64a9ff; background: #0e1c2c; font-size: 30px; }
.empty-state h2 { margin: 0 0 7px; color: var(--text); font-size: 20px; }
.empty-state p { max-width: 480px; margin: 0 0 17px; line-height: 1.5; }
.loading-state { min-height: 220px; display: grid; place-items: center; color: var(--muted); }
.loading-state::before { content: ""; width: 25px; height: 25px; margin-right: 10px; border: 3px solid #263b54; border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
.data-table th { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(39,65,94,.18); }
.action-cell { display: flex; gap: 7px; }
.small-button { min-height: 32px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; color: #c8d6e5; background: #111d2b; cursor: pointer; }
.small-button:hover { border-color: #3a5d82; }
.small-button--blue { color: #74b9ff; border-color: rgba(61,137,216,.4); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.breadcrumbs button { border: 0; color: #83bbf7; background: transparent; cursor: pointer; }
.file-row { cursor: pointer; }
.file-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: #79b9ff; background: rgba(44,106,178,.16); }
.file-row .file-size { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.preview-pane { min-height: 330px; display: grid; place-items: center; margin-top: 14px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 12px; background: #050a11; }
.preview-pane img, .preview-pane video { max-width: 100%; max-height: 72vh; }
.settings-tabs { display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #0a1421; overflow-x: auto; }
.settings-tabs button { min-width: 130px; min-height: 39px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; }
.settings-tabs button.is-active { color: #fff; background: rgba(34,111,177,.28); box-shadow: inset 0 0 0 1px rgba(51,163,211,.22); }
.qr-image { width: 200px; height: 200px; padding: 8px; border-radius: 12px; background: #fff; }
.copy-code { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: #65e8c1; background: #07111d; font-family: ui-monospace, monospace; word-break: break-all; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid rgba(58,135,212,.27); border-radius: 10px; color: #a7c5e8; background: rgba(31,85,139,.12); font-size: 13px; line-height: 1.45; }
.notice--warning { border-color: rgba(255,178,56,.25); color: #eac27f; background: rgba(124,78,17,.12); }

.modal-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(1,5,10,.78); backdrop-filter: blur(10px); }
.modal-card { width: min(100%, 520px); max-height: 92vh; overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, #111d2b, #091421); box-shadow: var(--shadow); }
.modal-card--wide { width: min(100%, 760px); }
.modal-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.modal-head h2 { margin: 0 0 6px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 13px; }
.modal-close { width: 34px; height: 34px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 20px; }
.modal-form input, .modal-form select { height: 47px; border: 1px solid #2a3c52; border-radius: 9px; padding: 0 12px; background: #091321; }
.checkbox-row { display: flex !important; gap: 9px; align-items: center; color: var(--muted) !important; font-weight: 400 !important; }
.checkbox-row input { width: 17px; height: 17px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 9px; }
.toast { width: min(360px, calc(100vw - 40px)); padding: 13px 15px; border: 1px solid #31516e; border-radius: 10px; color: #dce8f5; background: #122337; box-shadow: var(--shadow); animation: toast-in .25s ease-out; }
.toast--error { border-color: rgba(255,95,109,.5); background: #2b1520; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.offline-banner { position: fixed; z-index: 210; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 10px 15px; border: 1px solid rgba(255,178,56,.4); border-radius: 9px; color: #f5cf8d; background: #2b2112; box-shadow: var(--shadow); font-size: 13px; }

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel--full { grid-column: auto; }
  .story-copy { width: 72%; }
  .memory-collage { opacity: .42; }
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; padding: 0; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; border: 0; border-radius: 0; padding: 22px; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 22px; font-weight: 700; }
  .mobile-brand .brand-mark { width: 36px; height: 36px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { inset: 0 auto 0 0; width: 270px; border-width: 0 1px 0 0; border-radius: 0; transform: translateX(-105%); transition: transform .25s; }
  .sidebar.is-open { transform: translateX(0); }
  .workspace { grid-column: 1; }
  .topbar { height: 72px; padding: 0 17px; }
  .mobile-menu { display: block; }
  .global-search { width: auto; flex: 1; }
  .profile-chip > span:not(.avatar):not(.online-dot), .notification-button { display: none; }
  .main-view { min-height: calc(100vh - 110px); padding: 0 17px 22px; }
  .app-footer { padding: 0 17px; }
  .health-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .auth-card { padding: 25px 20px; }
  .topbar { gap: 9px; }
  .global-search kbd, .global-search > span { display: none; }
  .install-button { width: 36px; overflow: hidden; padding: 0; color: transparent; }
  .install-button::before { content: "↓"; color: var(--green); }
  .page-head { align-items: stretch; flex-direction: column; }
  .page-actions { justify-content: flex-start; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 105px; }
  .panel { padding: 14px; }
  .app-footer span:first-child { display: none; }
  .modal-layer { padding: 8px; align-items: end; }
  .modal-card { max-height: 95vh; border-radius: 17px 17px 0 0; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
}

.upload-form { display: grid; gap: 18px; margin-top: 20px; }
.upload-zone { display: grid; gap: 8px; padding: 26px; border: 1px dashed var(--border); border-radius: 16px; background: rgba(17, 30, 48, .5); text-align: center; cursor: pointer; }
.upload-zone:hover { border-color: var(--cyan); background: rgba(24, 113, 194, .08); }
.upload-zone input { width: 100%; color: var(--muted); }
.upload-zone small { color: var(--muted); }
