:root {
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --brand-soft: #e5f4f1;
  --ink: #172534;
  --muted: #687786;
  --line: #dce6e8;
  --surface: #ffffff;
  --canvas: #f3f7f7;
  --danger: #b43d45;
  --danger-soft: #fff0f1;
  --success: #197456;
  --shadow: 0 18px 50px rgba(20, 53, 60, 0.08);
  --radius: 18px;
  --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(15, 118, 110, 0.28); outline-offset: 2px; }

.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;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, #17887e, #0b5f59);
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.25);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.brand-mark.small { width: 44px; height: 44px; border-radius: 14px; font-size: 14px; box-shadow: none; }
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* Authentication */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(15, 118, 110, 0.16), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(203, 173, 103, 0.15), transparent 27%),
    #edf4f3;
}
.auth-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: 54px 0;
}
.auth-brand { padding: 34px 0; }
.auth-brand .eyebrow { margin: 30px 0 14px; }
.auth-brand h1 { max-width: 630px; margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.13; letter-spacing: -0.045em; }
.auth-brand > p:not(.eyebrow) { max-width: 560px; margin: 24px 0 0; color: #566a72; font-size: 17px; }
.auth-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.auth-points span { padding: 9px 13px; border: 1px solid rgba(15,118,110,.14); border-radius: 999px; color: #35575b; background: rgba(255,255,255,.56); font-size: 13px; }
.auth-card { padding: clamp(28px, 4vw, 44px); border: 1px solid rgba(15,118,110,.1); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: 0 30px 80px rgba(29,57,61,.15); backdrop-filter: blur(16px); }
.auth-card-head { margin-bottom: 26px; }
.mini-brand { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.auth-card h2 { margin: 8px 0 5px; font-size: 28px; letter-spacing: -.025em; }
.auth-card-head p, .auth-foot, .field-hint { margin: 0; color: var(--muted); font-size: 13px; }
.auth-form, .settings-form { display: grid; gap: 17px; }
.auth-form label, .settings-form label, .note-field { display: grid; gap: 7px; color: #364956; font-size: 13px; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid #cfdbde;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
input { min-height: 48px; padding: 0 14px; }
textarea { padding: 14px; }
input:hover, textarea:hover { border-color: #aebfc3; }
input:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,118,110,.1); outline: none; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 62px; }
.password-toggle { position: absolute; right: 6px; top: 6px; min-width: 48px; height: 36px; border: 0; border-radius: 9px; color: var(--brand); background: var(--brand-soft); cursor: pointer; font-size: 12px; font-weight: 800; }
.auth-foot { margin: 24px 0 0; text-align: center; }
.locked-state { display: grid; justify-items: center; gap: 7px; padding: 28px 18px; text-align: center; background: #f5faf9; border: 1px solid var(--line); border-radius: 16px; }
.locked-state p { margin: 0; color: var(--muted); font-size: 13px; }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 7px rgba(15,118,110,.1); margin-bottom: 8px; }

/* Shared actions and notices */
.button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  font-size: 13px;
  transition: transform var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 9px 22px rgba(15,118,110,.18); }
.button-primary:hover { background: var(--brand-dark); }
.button-quiet { color: #31505a; background: #fff; border-color: var(--line); }
.button-quiet:hover { border-color: #aec2c5; background: #f9fbfb; }
.button-danger { color: var(--danger); background: var(--danger-soft); border-color: #f1cfd2; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-small { min-height: 34px; padding: 0 11px; font-size: 12px; }
.button-wide { width: 100%; min-height: 50px; margin-top: 3px; }
.notice { margin-bottom: 18px; padding: 14px 16px; color: #28594e; background: #eaf7f3; border: 1px solid #c8e7dd; border-radius: 13px; font-size: 13px; }
.notice.error { color: #8e2f37; background: #fff0f1; border-color: #f0cbd0; }
.notice strong { display: block; margin-bottom: 3px; }
.notice ul { margin: 5px 0 0; padding-left: 20px; }

/* Application frame */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 40; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; color: #dfeceb; background: #123b3c; }
.sidebar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 15% 0%, rgba(89,194,177,.16), transparent 28%); }
.sidebar > * { position: relative; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 31px; padding: 0 6px; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: 16px; letter-spacing: .03em; }
.sidebar-brand small { margin-top: 2px; color: #a8c3c1; font-size: 11px; }
.side-nav { display: grid; gap: 5px; }
.nav-label { margin: 0 10px 6px; color: #759b99; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.nav-label-spaced { margin-top: 21px; }
.nav-item { min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border-radius: 12px; color: #bad0ce; font-size: 13px; font-weight: 700; transition: color var(--ease), background var(--ease); }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 3px 0 #74d0c1; }
.nav-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #c7dfdd; background: rgba(255,255,255,.07); font-size: 11px; }
.sidebar-foot { margin-top: auto; display: grid; gap: 11px; padding: 16px 10px 4px; border-top: 1px solid rgba(255,255,255,.09); color: #a8c3c1; font-size: 12px; }
.sidebar-foot a { color: #fff; font-weight: 700; }
.site-live { display: flex; align-items: center; gap: 7px; }
.site-live i { width: 7px; height: 7px; border-radius: 50%; background: #64d1a6; box-shadow: 0 0 0 4px rgba(100,209,166,.1); }
.main-column { min-width: 0; }
.topbar { min-height: 79px; display: flex; align-items: center; gap: 16px; padding: 14px clamp(20px, 3vw, 42px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 30; }
.topbar h1 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 9px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; }
.user-chip span { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 800; }
.menu-button { display: none; min-width: 48px; height: 42px; border: 1px solid var(--line); border-radius: 11px; color: var(--brand); background: #fff; cursor: pointer; font-weight: 800; }
.content { width: min(1480px, 100%); margin: 0 auto; padding: clamp(22px, 3vw, 38px); }
.sidebar-backdrop { display: none; }

/* Dashboard */
.dashboard-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.dashboard-head h2 { margin: 5px 0 2px; font-size: 29px; letter-spacing: -.035em; }
.dashboard-head p, .panel-head p { margin: 0; color: var(--muted); font-size: 12px; }
.range-switch { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.range-switch button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.range-switch button.active { color: #fff; background: var(--brand); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.metric-card { min-height: 132px; display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 9px 30px rgba(20,53,60,.04); }
.metric-symbol { width: 47px; height: 47px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: var(--brand); background: var(--brand-soft); font-weight: 900; }
.metric-card.blue .metric-symbol { color: #286d99; background: #e8f3fa; }
.metric-card.amber .metric-symbol { color: #98701e; background: #fbf3dc; }
.metric-card.violet .metric-symbol { color: #6c50a0; background: #f1ebfa; }
.metric-card p, .metric-card small { margin: 0; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin: 1px 0 -1px; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.panel { margin-bottom: 17px; padding: clamp(18px, 2.2vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 9px 32px rgba(20,53,60,.045); }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 16px; }
.panel-head h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.02em; }
.data-time, .safe-badge, .privacy-chip { padding: 6px 10px; border-radius: 999px; color: #527078; background: #eef5f4; font-size: 11px; white-space: nowrap; }
.privacy-chip { color: #356b5c; background: #e8f6ef; }
.panel-note { margin: -9px 0 18px; color: var(--muted); font-size: 12px; }
.trend-chart { min-height: 220px; display: flex; align-items: stretch; gap: clamp(5px, 1vw, 15px); padding: 20px 4px 0; overflow-x: auto; }
.trend-day { min-width: 30px; flex: 1; display: grid; grid-template-rows: 180px 22px; gap: 7px; text-align: center; color: var(--muted); font-size: 10px; }
.trend-bars { display: flex; align-items: end; justify-content: center; gap: 3px; height: 180px; }
.trend-bars progress { width: clamp(6px, .75vw, 12px); height: 180px; appearance: none; writing-mode: vertical-lr; direction: rtl; border: 0; border-radius: 999px; overflow: hidden; background: #edf2f2; }
.trend-bars progress::-webkit-progress-bar { background: #edf2f2; border-radius: 999px; }
.trend-bars progress.views::-webkit-progress-value { background: #16857b; border-radius: 999px; }
.trend-bars progress.visitors::-webkit-progress-value { background: #b7d9d3; border-radius: 999px; }
.trend-bars progress.views::-moz-progress-bar { background: #16857b; border-radius: 999px; }
.trend-bars progress.visitors::-moz-progress-bar { background: #b7d9d3; border-radius: 999px; }
.chart-legend { display: flex; justify-content: end; gap: 16px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-view { background: #16857b; }.legend-visitor { background: #b7d9d3; }
.dashboard-split { display: grid; grid-template-columns: 1.12fr .88fr; gap: 17px; }
.rank-list { display: grid; gap: 16px; }
.rank-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(150px,.8fr); align-items: center; gap: 18px; }
.rank-main strong, .rank-main span { display: block; }
.rank-main strong { font-size: 13px; }.rank-main span { color: var(--muted); font-size: 11px; }
.rank-value { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 10px; }
.rank-value strong { font-size: 12px; text-align: right; }
.rank-value progress, .share progress { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: #eaf0f0; }
progress::-webkit-progress-bar { background: #eaf0f0; border-radius: 999px; }
progress::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
.device-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.device-grid div { padding: 17px; border: 1px solid #e2e9ea; border-radius: 14px; background: #f9fbfb; }
.device-grid span, .device-grid small { display: block; color: var(--muted); font-size: 11px; }.device-grid strong { font-size: 25px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 13px; color: #647882; background: #f4f8f8; font-size: 10px; letter-spacing: .03em; text-align: left; white-space: nowrap; }
td { padding: 12px 13px; border-top: 1px solid #e5ebec; color: #415762; }
td strong, td small { display: block; }td small { margin-top: 2px; color: #87979f; font-size: 10px; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.share { min-width: 150px; display: grid; grid-template-columns: 1fr 40px; align-items: center; gap: 8px; }
.attribution { margin: 12px 1px 0; color: #89989d; font-size: 10px; text-align: right; }.attribution a { color: var(--brand); }
.empty-state { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); text-align: center; }
.empty-state > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 28px; }
.empty-state strong { color: #40545c; }.empty-state p { margin: 0; font-size: 12px; }

/* Editor */
.editor-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 15px; }
.file-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.file-tabs a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.file-tabs a.active { color: #fff; background: var(--brand); }
.editor-panel { padding-bottom: 20px; }
.editor-head { align-items: center; }
.source-editor { min-height: calc(100vh - 335px); resize: vertical; border-radius: 13px; color: #d6e9e5; background: #142c31; border-color: #142c31; font: 12.5px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace; tab-size: 2; white-space: pre; }
.source-editor:focus { border-color: #2a9b8e; box-shadow: 0 0 0 4px rgba(15,118,110,.13); }
.editor-footer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: end; margin-top: 15px; }
.note-field input { min-height: 42px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; }

/* Media */
.upload-panel { padding-bottom: 22px; }
.upload-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 13px; align-items: end; }
.dropzone { min-height: 118px; display: grid; grid-template-columns: 43px minmax(0,1fr); align-content: center; column-gap: 13px; padding: 20px; border: 1.5px dashed #aac3c3; border-radius: 15px; color: #38545a; background: #f6fbfa; cursor: pointer; transition: background var(--ease), border-color var(--ease); }
.dropzone.dragging { border-color: var(--brand); background: #eaf7f3; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone strong, .dropzone small { grid-column: 2; }.dropzone small { color: var(--muted); font-size: 11px; }
.upload-icon { grid-row: 1 / span 2; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--brand); font-size: 22px; }
.media-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(20,53,60,.04); }
.media-preview { aspect-ratio: 4 / 3; overflow: hidden; background: #edf2f1; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }.media-card:hover .media-preview img { transform: scale(1.025); }
.media-body { padding: 13px; }.media-body > strong, .media-body > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.media-body > strong { font-size: 12px; }.media-body > span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.media-actions { display: flex; justify-content: space-between; gap: 7px; margin-top: 12px; }.media-actions form { margin: 0; }

/* Versions and settings */
.version-list { display: grid; }
.version-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 15px 2px; border-top: 1px solid #e7eded; }
.version-row:first-child { border-top: 0; }
.version-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); font-size: 12px; font-weight: 900; }
.version-row p, .version-row small { margin: 1px 0 0; color: var(--muted); font-size: 11px; }.version-row strong { font-size: 13px; }
.settings-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 17px; }
.account-card { display: flex; gap: 16px; align-items: center; }
.account-avatar { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 18px; color: #fff; background: var(--brand); font-size: 22px; font-weight: 900; }
.account-card h3 { margin: 4px 0; }.account-card p, .logout-panel p { margin: 2px 0; color: var(--muted); font-size: 11px; }
.settings-form { max-width: 620px; }
.logout-panel { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logout-panel h3 { margin: 4px 0; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 232px; transition: transform var(--ease); box-shadow: 22px 0 54px rgba(10,36,38,.24); }
  body.menu-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(11,34,37,.36); backdrop-filter: blur(2px); }
  body.menu-open .sidebar-backdrop { display: block; }
  .menu-button { display: block; }
  .dashboard-split { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-grid { grid-template-columns: 1fr; }.logout-panel { grid-column: auto; }
}

@media (max-width: 760px) {
  .auth-shell { width: min(540px, calc(100% - 24px)); grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .auth-brand { padding: 14px 8px 20px; }.auth-brand .brand-mark { width: 56px; height: 56px; border-radius: 18px; font-size: 17px; }.auth-brand .eyebrow { margin-top: 20px; }
  .auth-brand h1 { font-size: 34px; }.auth-brand > p:not(.eyebrow) { font-size: 14px; }.auth-points { margin-top: 22px; }
  .auth-card { padding: 25px 20px; border-radius: 22px; }
  .topbar { min-height: 70px; padding: 11px 14px; }.topbar p { display: none; }.topbar h1 { font-size: 18px; }.topbar-actions > .button { display: none; }.user-chip strong { display: none; }
  .content { padding: 18px 12px 30px; }
  .dashboard-head { align-items: start; flex-direction: column; }.range-switch { width: 100%; }.range-switch button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { min-height: 112px; padding: 15px; }.metric-symbol { display: none; }.metric-card strong { font-size: 26px; }
  .panel { padding: 17px 14px; border-radius: 15px; }.panel-head { flex-direction: column; }.data-time, .safe-badge { white-space: normal; }
  .trend-chart { gap: 8px; }.trend-day { min-width: 34px; }
  .editor-toolbar { align-items: stretch; flex-direction: column; }.file-tabs { overflow-x: auto; }.file-tabs a { white-space: nowrap; }
  .source-editor { min-height: 58vh; font-size: 11.5px; }.editor-footer { grid-template-columns: 1fr; }
  .upload-form { grid-template-columns: 1fr; }.upload-form .button { width: 100%; }
  .media-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.media-body { padding: 10px; }.media-actions { align-items: stretch; flex-direction: column; }.media-actions .button, .media-actions form { width: 100%; }
  .version-row { grid-template-columns: 38px minmax(0,1fr); }.version-row form { grid-column: 1 / -1; }.version-row form .button { width: 100%; }
  .logout-panel { align-items: stretch; flex-direction: column; }
}

@media (max-width: 460px) {
  .auth-brand h1 { font-size: 29px; }.auth-points { gap: 6px; }.auth-points span { font-size: 11px; }
  .metric-grid { grid-template-columns: 1fr; }.metric-card { min-height: 102px; }.metric-symbol { display: grid; }
  .device-grid { grid-template-columns: 1fr; }.rank-row { grid-template-columns: 1fr; gap: 7px; }.rank-value { grid-template-columns: 45px 1fr; }
  .media-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
