@charset "UTF-8";

:root {
  color-scheme: dark;
  --brand-primary: #173c31;
  --accent: #6be6b4;
  --brand-bg: #09121c;
  --brand-text: #eaf3f1;
  --bg: var(--brand-bg);
  --text: var(--brand-text);
  --surface: #101e2b;
  --surface-raised: #152635;
  --muted: #95a9b6;
  --line: #263744;
  --danger: #ff9d9d;
  --warning: #f5cf83;
  --radius: 18px;
  --shadow: 0 18px 54px #00000020;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
button svg, .btn svg { width: 18px; height: 18px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.15; letter-spacing: -.055em; margin-bottom: .7rem; font-weight: 700; }
h2 { font-size: 1.13rem; letter-spacing: -.025em; line-height: 1.35; margin-bottom: .55rem; }
h3 { font-size: 1rem; letter-spacing: -.02em; margin-bottom: .4rem; }
p { margin-bottom: 1rem; }
small { font-size: .78rem; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--focus-color, var(--accent)); outline-offset: 4px; }
::selection { background: #6be6b43d; color: white; }
[hidden] { display: none !important; }
.muted, .hint, .help, .description { color: var(--muted); }
.hint, .help { font-size: .8rem; line-height: 1.5; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; }
.eyebrow { display: block; color: var(--accent-ink, var(--accent)); font-size: .67rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .8rem; }
.stack { display: grid; gap: 20px; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spacer { height: 1px; background: var(--line); margin: 24px 0; }
.text-right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 244px; display: flex; flex-direction: column; padding: 30px 20px 20px; background: #0b1722; border-right: 1px solid var(--line); }
.brand-lockup, .sidebar-brand, .brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 11px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--on-accent, #0a2119); font-size: 1.1rem; font-weight: 850; letter-spacing: -.08em; flex-shrink: 0; }
.brand-name { display: block; font-size: 1rem; line-height: 1.25; letter-spacing: -.025em; font-weight: 720; overflow-wrap: anywhere; }
.brand-caption { display: block; color: var(--muted); font-size: .66rem; letter-spacing: .06em; margin-top: 3px; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 5px; margin-top: 40px; }
.nav-caption { padding: 0 13px 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: .61rem; font-weight: 700; }
.nav-link, .sidebar nav > a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 46px; border-radius: 11px; color: var(--muted); font-size: .85rem; font-weight: 550; transition: background .18s, color .18s; }
.nav-link:hover, .sidebar nav > a:hover { background: var(--surface-raised); color: var(--text); }
.nav-link.active, .nav-link[aria-current="page"], .sidebar nav > a.active, .sidebar nav > a[aria-current="page"] { background: var(--brand-primary); color: var(--nav-active-text, var(--accent)); }
.sidebar-footer { margin-top: auto; padding: 22px 12px 0; color: var(--muted); font-size: .73rem; }
.sidebar-footer .badge { margin-bottom: 12px; }
.main { margin-left: 244px; padding: 0 clamp(24px, 4vw, 60px) 50px; max-width: 1840px; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .77rem; }
.breadcrumb strong { color: var(--text); font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-primary); border: 1px solid var(--line); color: var(--on-primary, white); font-size: .75rem; font-weight: 750; flex-shrink: 0; }
.account-meta { font-size: .76rem; line-height: 1.4; }
.account-meta small { color: var(--muted); font-size: .65rem; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.page-heading p { color: var(--muted); font-size: .88rem; margin-bottom: 0; max-width: 640px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: .8rem; }
.bottom-nav { display: none; }
[data-menu-toggle] { display: none; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid > * { min-width: 0; grid-column: span 12; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
.stats-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); min-width: 0; }
.card-quiet { box-shadow: none; }
.card > :last-child { margin-bottom: 0; }
.stat { position: relative; overflow: hidden; min-height: 150px; }
.stat-label { color: var(--muted); font-size: .76rem; font-weight: 500; }
.stat-value { display: block; font-size: 2.15rem; line-height: 1.2; letter-spacing: -.065em; font-weight: 680; margin: 14px 0 5px; }
.stat-note { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .68rem; }
.stat-icon { float: right; color: var(--accent); background: #6be6b40b; padding: 8px; border-radius: 10px; display: grid; place-items: center; }
.stat-icon svg { width: 17px; height: 17px; }
.hero { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--brand-primary), #112b2b 70%); border-color: #345649; padding: 32px; }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -65px; top: -90px; border: 1px solid #ffffff0c; border-radius: 50%; box-shadow: 0 0 0 38px #ffffff03, 0 0 0 76px #ffffff02; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h2 { font-size: 1.45rem; max-width: 460px; }
.hero p { max-width: 520px; color: #b2c9bf; font-size: .83rem; }
.icon-box { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-primary); color: var(--accent); flex-shrink: 0; }
.quick-link { display: flex; align-items: center; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.quick-link:last-child { border: 0; padding-bottom: 0; }
.quick-link strong { font-size: .85rem; display: block; }
.quick-link p { font-size: .74rem; color: var(--muted); margin: 3px 0 0; }
.quick-link > svg:last-child { margin-left: auto; color: var(--muted); width: 16px; }

.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 17px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-raised); color: var(--text); font-size: .8rem; line-height: 1.3; font-weight: 650; text-align: center; transition: background .18s, border-color .18s, transform .18s; }
.btn:hover { border-color: var(--focus-color, var(--accent)); background: var(--surface-raised); }
.btn:active { transform: translateY(1px); }
.btn-primary { color: var(--on-accent, #08271a); background: var(--accent); border-color: transparent; box-shadow: 0 4px 16px #6be6b412; }
.btn-primary:hover { color: var(--on-accent, #08271a); background: var(--accent); border-color: transparent; box-shadow: 0 0 0 3px #ffffff15, 0 4px 16px #00000020; }
.btn-danger { background: #3b2229; color: #ffc1c1; border-color: #60313c; }
.btn-danger:hover { background: #512932; border-color: #8f4555; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn-sm { min-height: 34px; padding: 7px 11px; font-size: .72rem; border-radius: 8px; }
.btn-icon { width: 40px; padding: 10px; }
.btn-block { width: 100%; }
.btn:disabled, button[disabled] { cursor: not-allowed; opacity: .5; transform: none; }
.btn[aria-busy="true"] { cursor: wait; opacity: .7; pointer-events: none; }
.actions, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-actions { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full, .span-2 { grid-column: 1 / -1; }
.field > label, label.field-label { font-size: .77rem; font-weight: 600; color: var(--text); }
.field > small { font-size: .7rem; color: var(--muted); line-height: 1.5; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 11px 13px; border: 1px solid var(--line); background: var(--surface-raised); color: var(--text); border-radius: 9px; font-size: .85rem; line-height: 1.4; transition: border-color .18s, box-shadow .18s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { outline: none; border-color: var(--focus-color, var(--accent)); box-shadow: 0 0 0 3px #6be6b414; }
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
input[type="color"] { cursor: pointer; padding: 5px !important; height: 46px; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
input[type="file"] { padding: 8px !important; font-size: .73rem !important; color: var(--muted) !important; }
input[type="file"]::file-selector-button { border: 0; background: #223d3b; color: var(--accent); border-radius: 5px; padding: 7px 11px; margin-right: 10px; font-weight: 600; cursor: pointer; }
.color-field { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.color-field small { display: block; font-size: .68rem; color: var(--muted); }
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.switch-row strong { font-size: .8rem; display: block; }
.switch-row p { margin: 4px 0 0; font-size: .74rem; color: var(--muted); }
.upload-area { border: 1px dashed #3a5b63; border-radius: 12px; padding: 22px; background: #6be6b403; }
.upload-preview { width: 70px; height: 70px; object-fit: contain; background: #0a1721; padding: 8px; border: 1px solid var(--line); border-radius: 14px; }
.upload-feedback { font-size: .72rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 8px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid #365145; background: #133b2a; color: #8fe7bb; font-size: .63rem; line-height: 1.3; font-weight: 650; border-radius: 6px; white-space: nowrap; }
.badge.neutral { background: #1c2d3b; border-color: #364956; color: #b4c7d3; }
.badge.warning { background: #3b3020; border-color: #6b5430; color: var(--warning); }
.badge.danger { background: #3f252b; border-color: #6b3a44; color: #ffb3b3; }
.status-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; border: 1px solid #365849; background: #123126; color: #c7e7d4; border-radius: 12px; margin-bottom: 22px; font-size: .81rem; overflow-wrap: anywhere; }
.notice svg { width: 18px; height: 18px; margin-top: 2px; }
.notice p { margin: 0; }
.notice.error { background: #362329; border-color: #6a3a46; color: #ffc1c1; }
.notice.warning { background: #342d20; border-color: #5f4e30; color: #f4dcac; }
.notice.info { background: #132d3a; border-color: #2d5263; color: #c3dbe5; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .78rem; }
thead th { color: var(--muted); font-size: .61rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 0 14px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody td { padding: 18px 14px; border-bottom: 1px solid #2637448c; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #ffffff02; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
td .muted { display: block; font-size: .68rem; margin-top: 3px; }
td form { display: inline-block; }
.server-list { display: grid; gap: 12px; }
.server-row { display: flex; align-items: center; gap: 15px; padding: 18px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 12px; }
.server-row .server-info { flex: 1; min-width: 0; }
.server-row .server-info strong { display: block; font-size: .85rem; }
.server-row .server-info small { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: .7rem; margin-top: 3px; }
.server-priority { width: 28px; height: 28px; border-radius: 8px; background: #1f3442; display: grid; place-items: center; color: #a5c0cc; font-size: .7rem; font-weight: 700; flex-shrink: 0; }
.empty-state { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty-state > svg { width: 34px; height: 34px; margin: 0 auto 16px; opacity: .7; }
.empty-state h3 { color: var(--text); }
.empty-state p { max-width: 340px; margin: 8px auto 20px; font-size: .8rem; }
.audit-item { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.audit-item:last-child { border: 0; padding-bottom: 0; }
.audit-item .icon-box { width: 32px; height: 32px; border-radius: 9px; }
.audit-item .icon-box svg { width: 15px; height: 15px; }
.audit-item p { font-size: .78rem; margin: 0 0 3px; }
.audit-item small { color: var(--muted); font-size: .65rem; }

.branding-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .85fr); align-items: start; gap: 24px; }
.preview-column { position: sticky; top: 28px; }
.preview-label { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: .65rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 16px; }
.preview-device { position: relative; margin: 0 auto; width: min(100%, 300px); aspect-ratio: 9 / 17; border-radius: 34px; border: 7px solid #243744; outline: 1px solid #3d525f; overflow: hidden; background: var(--brand-bg); box-shadow: 0 26px 65px #00000050; }
.preview-device::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2; width: 35%; height: 17px; border-radius: 0 0 13px 13px; background: #243744; }
.preview-device::after { content: ""; position: absolute; bottom: 8px; left: 36%; right: 36%; height: 3px; border-radius: 3px; background: #ffffff50; }
.preview-login { height: 100%; padding: 46px 24px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(ellipse at 15% 90%, #6be6b40c, transparent 60%), var(--brand-bg); color: var(--brand-text); }
.preview-login [data-preview-logo] { width: 60px; height: 60px; object-fit: contain; align-self: center; margin-bottom: 14px; }
.preview-login [data-preview-name] { text-align: center; font-size: 1.4rem; font-weight: 760; letter-spacing: -.04em; overflow-wrap: anywhere; }
.preview-subtitle { text-align: center; font-size: .6rem; opacity: .65; margin: 5px 0 28px; }
.preview-field { font-size: .66rem; padding: 12px 10px; margin-bottom: 10px; border: 1px solid #ffffff24; background: #ffffff05; border-radius: 6px; opacity: .75; }
.preview-button, [data-preview-primary] { background: var(--brand-primary); color: var(--brand-text); }
.preview-button { padding: 12px 8px; font-size: .66rem; text-align: center; font-weight: 700; border: 1px solid var(--accent); border-radius: 6px; margin-top: 3px; }
.preview-footnote { text-align: center; color: var(--muted); font-size: .68rem; margin: 18px auto 0; max-width: 280px; }
.preview-status { display: flex; align-items: center; gap: 6px; color: var(--accent); justify-content: center; font-size: .68rem; margin-top: 18px; }
.preview-status .status-dot { width: 5px; height: 5px; }

.login-shell { min-height: 100svh; display: grid; grid-template-columns: 1fr minmax(380px, .85fr); background: radial-gradient(ellipse at 10% 10%, #1845347a, transparent 52%), var(--bg); }
.login-intro { padding: clamp(32px, 7vw, 100px); display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; }
.login-intro h1 { max-width: 600px; font-size: clamp(2.8rem, 5vw, 4.8rem); letter-spacing: -.07em; margin-top: 60px; }
.login-intro h1 em { color: var(--accent); font-style: normal; }
.login-intro p { max-width: 450px; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.login-intro footer { color: #6d8796; font-size: .7rem; padding-top: 50px; }
.login-panel { display: grid; place-items: center; padding: 36px; border-left: 1px solid #ffffff08; background: #07111b77; }
.login-card { width: min(100%, 390px); }
.login-card h2 { font-size: 1.65rem; letter-spacing: -.05em; }
.login-card > p { font-size: .83rem; color: var(--muted); margin-bottom: 28px; }
.login-card form { display: grid; gap: 20px; }
.login-card .btn { min-height: 47px; }
.login-card .notice { margin-bottom: 24px; }
.login-card .login-security { display: flex; gap: 7px; align-items: center; justify-content: center; font-size: .68rem; color: var(--muted); margin-top: 22px; }
.login-security svg { width: 13px; height: 13px; }

@media (min-width: 1500px) { .main { margin-right: auto; } }
@media (max-width: 1120px) {
  .sidebar { width: 216px; padding-left: 15px; padding-right: 15px; }
  .main { margin-left: 216px; padding-left: 26px; padding-right: 26px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branding-grid { grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); gap: 20px; }
  .card { padding: 22px; }
  .col-4, .col-8 { grid-column: span 6; }
}
@media (max-width: 860px) {
  .branding-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-column { position: static; margin-top: 10px; }
  .preview-device { width: min(100%, 260px); }
  .login-shell { grid-template-columns: 1fr 1fr; }
  .login-intro { padding: 36px 28px; }
  .login-intro h1 { font-size: 2.5rem; }
  .login-panel { padding: 28px; }
}
@media (max-width: 720px) {
  .sidebar { display: none; transform: translateX(-100%); width: 270px; transition: transform .22s ease; box-shadow: 25px 0 60px #00000040; }
  body.menu-open::before { content: ""; position: fixed; z-index: 25; inset: 0; background: #00000099; backdrop-filter: blur(3px); }
  body.menu-open .sidebar { display: flex; transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .main { margin: 0; padding: 0 20px calc(100px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 76px; margin-bottom: 28px; }
  .breadcrumb { font-size: .7rem; gap: 8px; }
  .topbar-actions { gap: 9px; }
  .account-meta { display: none; }
  .topbar .badge { display: none; }
  [data-menu-toggle] { display: inline-flex; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 24px; }
  .page-heading > .actions { width: 100%; }
  .page-heading > .actions .btn { flex: 1; }
  .page-heading p { font-size: .82rem; }
  .bottom-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); position: fixed; z-index: 20; inset: auto 0 0; padding: 8px 10px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(18px); }
  .bottom-nav a { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; min-height: 48px; color: var(--muted); font-size: .62rem; font-weight: 600; border-radius: 9px; line-height: 1.3; padding: 4px 2px; }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.active, .bottom-nav a[aria-current="page"] { color: var(--nav-active-text, var(--accent)); background: var(--brand-primary); }
  .grid { gap: 16px; }
  .grid > .col-4, .grid > .col-6, .grid > .col-8 { grid-column: 1 / -1; }
  .stats-grid { gap: 12px; margin-bottom: 18px; }
  .stat { min-height: 139px; }
  .stat.card { padding: 18px; }
  .stat-value { font-size: 1.85rem; margin-top: 17px; }
  .stat-icon { padding: 6px; border-radius: 8px; }
  .stat-icon svg { width: 14px; height: 14px; }
  .stat-label { font-size: .69rem; }
  .stat-note { font-size: .61rem; }
  .card { padding: 21px; border-radius: 15px; }
  .hero { padding: 24px; }
  .hero h2 { font-size: 1.25rem; }
  .section-heading { margin-bottom: 20px; }
  .form-grid { gap: 18px; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn-primary { flex: 1; }
  .server-row { flex-wrap: wrap; gap: 12px; padding: 15px; }
  .server-row .actions { width: 100%; justify-content: flex-end; padding-top: 9px; border-top: 1px solid var(--line); }
  .login-shell { display: flex; flex-direction: column; }
  .login-intro { min-height: 0; padding: 22px 24px 12px; }
  .login-intro h1 { font-size: 1.6rem; max-width: 420px; margin-top: 16px; margin-bottom: 0; }
  .login-intro > p, .login-intro footer { display: none; }
  .login-panel { padding: 14px 24px 36px; border: 0; background: transparent; align-items: start; }
  .login-card { width: 100%; max-width: 460px; }
  .login-card h2 { font-size: 1.2rem; }
  .login-card > p { margin-bottom: 24px; }
  .login-card input { font-size: 16px !important; min-height: 48px !important; }
}
@media (max-width: 440px) {
  .main { padding-left: 16px; padding-right: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
  .stat.card { padding: 15px; }
  .stat-icon { float: none; position: absolute; top: 15px; right: 13px; }
  .stat-label { max-width: calc(100% - 22px); display: block; min-height: 2em; }
  .stat-value { margin-top: 11px; }
  .stat-note { line-height: 1.4; align-items: flex-start; }
  .section-heading { flex-wrap: wrap; gap: 12px; }
  .upload-area { padding: 17px; }
  .server-row .icon-box { width: 36px; height: 36px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
  .login-intro h1 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media print { .sidebar, .bottom-nav, .topbar-actions, .btn, .preview-column { display: none !important; } .main { margin: 0; padding: 0; } body, .card { color: #111; background: #fff; box-shadow: none; } .card { break-inside: avoid; } }
