/* ============================================================
   ShrinkDot Dashboard v3 – Vanilla CSS
   Design: Obsidian Sonic × ShrinkEarn reference
   Font: Plus Jakarta Sans (loaded in HTML)
   ============================================================ */

/* ── Reset & Tokens ─────────────────────────────────────────── */
:root {
  --brand:        #2b7aa3;
  --brand-dark:   #236b91;
  --brand-deep:   #1b5672;
  --sidebar-bg:   #1e2a33;
  --sidebar-deep: #182028;
  --sidebar-hov:  #1a232b;
  --sidebar-act:  #15202a;
  --canvas:       #edf2f6;
  --panel:        #ffffff;
  --text:         #334155;
  --muted:        #7a8fa0;
  --line:         #e2e9f0;
  --accent:       #1e9dcb;
  /* stat cards */
  --orange:       #f39c12;
  --cyan:         #00bcd4;
  --green:        #00a65a;
  --coral:        #e05343;
  /* transitions */
  --ease:         0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--canvas); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

/* Sprite / accessibility */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -80px; left: 12px; padding: 10px 16px; background: #fff; color: var(--brand); border-radius: 4px; z-index: 200; font-weight: 600; box-shadow: 0 2px 8px #0003; }
.skip-link:focus { top: 8px; }

/* Icon SVG */
.icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto; pointer-events: none;
}

/* ── Top Header ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: 56px;
  background: var(--brand);
  display: flex; align-items: center;
  color: #fff;
  box-shadow: 0 2px 8px #0d2b3d22;
}

.logo {
  display: flex; align-items: center;
  width: 240px; height: 56px;
  padding: 0 18px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 22px; letter-spacing: -.5px;
  border-right: 1px solid #1c5c78;
  flex-shrink: 0;
  transition: background var(--ease);
}
.logo:hover { background: var(--brand-deep); text-decoration: none; }
.logo b { font-weight: 900; }

.menu-toggle {
  width: 52px; height: 56px;
  border: 0; background: transparent; color: #fff;
  display: grid; place-items: center;
  transition: background var(--ease);
}
.menu-toggle:hover { background: #ffffff18; }
.menu-toggle .icon { width: 20px; height: 20px; }

.header-actions {
  display: flex; align-items: center; gap: 20px;
  margin-left: auto; padding: 0 18px;
  font-size: 12px;
}

.balance-label {
  display: flex; align-items: center; gap: 6px;
  color: #c8e4f2; font-size: 12px;
}
.balance-label b {
  background: #1e6185;
  border-radius: 4px;
  padding: 3px 8px;
  color: #fff; font-size: 12px;
}

/* Language toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 5px;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  padding: 4px 10px;
  color: #d6edf8; font-size: 11px; font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.lang-toggle:hover { background: #ffffff18; border-color: #ffffff60; }
.lang-toggle .icon { width: 14px; height: 14px; }

.user-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px;
  border-radius: 20px;
  color: #e8f4fb;
  transition: background var(--ease);
  cursor: default;
}
.user-chip:hover { background: #ffffff18; }
.user-name { font-size: 12px; font-weight: 600; }
.avatar {
  width: 28px; height: 28px;
  border: 2px solid #ffffff60;
  border-radius: 50%;
  background: #5ba7cb;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 11px;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  position: fixed; left: 0; top: 56px; bottom: 0;
  width: 240px;
  background: var(--sidebar-bg);
  color: #a0b0be;
  z-index: 30;
  display: flex; flex-direction: column;
  transition: transform var(--ease);
  border-right: 1px solid #1a252f;
  overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #2c3e4c; border-radius: 2px; }

.new-link {
  margin: 16px 12px 14px;
  padding: 11px 14px;
  border: 1px solid #2e3f4c;
  border-radius: 5px;
  background: #273947;
  color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 12px; letter-spacing: .01em;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.new-link .icon { color: #38c5f0; width: 16px; height: 16px; }
.new-link:hover {
  background: #2f4554;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px #0f243466;
  text-decoration: none;
}
.new-link:active { transform: translateY(0); }

.nav-label {
  padding: 10px 16px 8px;
  color: #5e7585;
  font-size: 9px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--sidebar-deep);
}

.nav-item-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  color: #96a8b5;
  border-left: 3px solid transparent;
  font-size: 12px; font-weight: 500;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.nav-item-link:hover {
  background: var(--sidebar-hov);
  color: #d4e4ee;
  text-decoration: none;
}
.nav-item-link.active {
  background: var(--sidebar-act);
  border-left-color: #2bc8f0;
  color: #fff;
  font-weight: 600;
}
.nav-item-link.active .icon { color: #2bc8f0; }

.nav-item-inner { display: flex; align-items: center; gap: 11px; }
.nav-item-link .icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-chevron { width: 11px; height: 11px; opacity: .45; flex-shrink: 0; }

.sidebar-bottom {
  margin-top: auto;
  padding: 15px 17px;
  border-top: 1px solid #253038;
  font-size: 10px; color: #607482;
}
.sidebar-bottom strong { display: block; color: #adbdca; margin-bottom: 3px; font-size: 11px; }

/* ── App Shell / Layout ─────────────────────────────────────── */
.app-shell {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 56px);
  position: relative;
}

/* ── Main Content Area ──────────────────────────────────────── */
.main {
  min-height: calc(100vh - 56px);
  margin-left: 240px;
  flex: 1 1 0%;
  min-width: 0;
  width: calc(100% - 240px);
  padding: 22px 32px 36px;
  display: flex;
  flex-direction: column;
  transition: margin var(--ease), width var(--ease);
}

section[data-page] {
  width: 100%;
}

/* ── Page Heading ───────────────────────────────────────────── */
.page-heading {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 18px;
  flex-wrap: wrap;
  width: 100%;
}
.page-heading h1 {
  font-size: 24px; font-weight: 300; margin: 0;
  color: #455565; letter-spacing: -.3px;
}
.heading-tools {
  display: flex; align-items: center; gap: 14px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  color: #8fa4b4; font-size: 11px; white-space: nowrap;
}
.breadcrumb .icon { width: 13px; height: 13px; color: #6a808f; fill: #6a808f; }
.breadcrumb-sep { color: #b3bfc8; }
.breadcrumb-current { color: #7a8fa0; }

.period-select select {
  width: 185px; height: 34px;
  border: 1px solid #c8d5de;
  border-radius: 5px;
  background: #fff;
  color: #4f6373;
  padding: 0 30px 0 13px;
  font-size: 12px;
  box-shadow: 0 1px 3px #2137440c;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a808f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.period-select select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #2b7aa320;
}

.error-banner {
  padding: 12px 16px;
  border: 1px solid #f1c4bb;
  background: #fff4f2;
  color: #9b3d2d;
  margin-bottom: 18px;
  border-radius: 5px;
  font-size: 12px;
}

/* ── Metric Cards ───────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.metric-box {
  height: 115px;
  border-radius: 6px;
  color: #fff;
  padding: 18px 16px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px #20313d18;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform var(--ease), box-shadow var(--ease);
}
.metric-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #20313d28;
}
.metric-box strong {
  display: block;
  font-size: 32px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric-box p {
  margin: 8px 0 0;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  opacity: .9;
}
.metric-box .metric-icon {
  position: absolute; right: 14px; top: 16px;
  width: 60px; height: 60px;
  opacity: .15; pointer-events: none;
}
.metric-box .metric-icon .icon {
  width: 100%; height: 100%;
  stroke-width: 1.4;
}

.metric-orange { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
.metric-cyan   { background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%); }
.metric-green  { background: linear-gradient(135deg, #00a65a 0%, #00875a 100%); }
.metric-coral  { background: linear-gradient(135deg, #e05343 0%, #c0392b 100%); }

/* ── Panels ─────────────────────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid #dbe5ed;
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  margin-bottom: 22px;
  box-shadow: 0 1px 4px #1e334018;
  overflow: hidden;
}

.panel-heading {
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid #edf2f6;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.panel-heading h2 {
  display: flex; align-items: center; gap: 9px;
  margin: 0; color: #3a4858;
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
}
.panel-heading h2 .icon { width: 15px; height: 15px; }
.panel-heading small, .legend {
  font-size: 10px; color: #8fa4b4; font-weight: 500;
}

.panel-body { padding: 20px; }

/* ── Announcements ──────────────────────────────────────────── */
.announcement-list { padding: 0 20px; }

.announcement-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; padding: 18px 0;
  border-bottom: 1px solid #eef3f7;
  transition: background var(--ease);
}
.announcement-row:last-child { border: 0; }

.announcement-kicker {
  font-size: 10px; color: #5e7585; font-weight: 700;
  letter-spacing: .04em;
}
.announcement-row h3 {
  font-size: 18px; line-height: 1.35; margin: 5px 0 0; color: #1e2d3a;
}
.announcement-row p {
  font-size: 12px; line-height: 1.6; margin: 6px 0 0; color: #556878;
}
.announcement-row time {
  flex: 0 0 auto; color: #8fa4b4; font-size: 10px; padding-top: 2px;
  white-space: nowrap;
}
.announcement-time-icon { display: flex; align-items: center; gap: 4px; }
.announcement-time-icon .icon { width: 11px; height: 11px; }

/* Highlight spans */
.hl-red    { color: #e04130; font-weight: 700; }
.hl-purple { color: #7c3aed; font-weight: 700; }
.hl-blue   { color: #1d8fcb; font-weight: 700; }

/* ── Chart / Statistics ─────────────────────────────────────── */
.chart-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.chart-summary p { margin: 0; color: #7a8f9e; font-size: 11px; }
.chart-summary strong { font-size: 18px; color: #3f5060; font-weight: 700; margin-right: 4px; }
.subtle { color: #8c9aa6; }

.chart {
  display: block; width: 100%; height: 270px;
}
.chart .grid { stroke: #dfe8ee; stroke-width: 1; }
.chart .series { fill: none; stroke: #31b7e9; stroke-width: 2; }
.chart text { font-family: inherit; font-size: 9px; fill: #698095; }
.chart-note {
  text-align: right; font-size: 10px; font-style: italic;
  color: #96a5b4; margin: 7px 0 0;
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow: auto; }
.daily-wrap { border-top: 1px solid #edf2f6; }

table { width: 100%; border-collapse: collapse; font-size: 11px; }
th {
  padding: 11px 16px; text-align: left;
  background: #f7fafc; border-bottom: 1px solid #e4ecf2;
  color: #52687a; font-weight: 700; white-space: nowrap;
}
td {
  padding: 11px 16px;
  border-bottom: 1px solid #edf2f6;
  vertical-align: middle; color: #62737f;
}
tbody tr:hover { background: #f4f8fb; }

.daily-zero { color: #9aabb7; }
.table-title { font-weight: 650; color: #3d5060; margin-bottom: 4px; }
.destination {
  display: block; max-width: 360px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #8a99a6; font-size: 10px; margin-top: 3px;
}
.empty-table { text-align: center; padding: 30px 15px; color: #8d9aa5; }
.empty-table > .icon { display: block; width: 24px; height: 24px; margin: 0 auto 9px; color: #b2bfc7; }
.empty-table strong { display: block; color: #63788a; font-weight: 600; margin-bottom: 4px; }
.empty-table p { margin: 0; }

/* Status badge */
.status {
  display: inline-block; padding: 3px 8px;
  border-radius: 20px; font-size: 10px; font-weight: 600;
  background: #e6f4ee; color: #1d7a4a;
}
.status.paused { background: #fff3da; color: #986210; }

/* Action buttons */
.actions { display: flex; gap: 5px; }
.icon-button {
  border: 1px solid #d8e3ea; background: #fff; color: #607a8e;
  border-radius: 4px; padding: 5px 7px; display: inline-flex;
  transition: background var(--ease), border-color var(--ease);
}
.icon-button .icon { width: 13px; height: 13px; }
.icon-button:hover { background: #edf3f7; border-color: #bfcdd6; }

/* ── Toolbar (links page) ───────────────────────────────────── */
.toolbar {
  display: flex; gap: 12px; padding: 14px 18px;
  flex-wrap: wrap;
}
.search {
  height: 34px; flex: 1;
  max-width: 360px;
  border: 1px solid #cdd8e1; border-radius: 5px;
  padding: 0 12px; font-size: 12px;
  color: #3d5060;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #2b7aa318; }

/* ── Buttons ────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid #cad5de; border-radius: 5px;
  background: #fff; color: #506070;
  padding: 8px 14px; font-size: 11px; font-weight: 600;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.button:hover { background: #f0f6fa; border-color: #b0bec8; text-decoration: none; }
.button.primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button.small { padding: 6px 10px; }

/* ── Empty feature state ────────────────────────────────────── */
.empty-feature {
  max-width: 620px; margin: auto; text-align: center; padding: 50px 20px;
}
.empty-feature > .icon { width: 44px; height: 44px; color: #8aa0ad; margin-bottom: 14px; }
.empty-feature h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; color: #3d5060; }
.empty-feature p { color: #7d8d98; line-height: 1.7; margin: 0 0 20px; }

/* ── Settings ───────────────────────────────────────────────── */
.settings-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid #edf2f6;
}
.settings-row:last-child { border: 0; }
.settings-row > div { flex: 1; }
.settings-row > div > small { display: block; color: #8a99a5; margin-top: 4px; font-size: 11px; }
.setting-value { color: var(--brand); font-weight: 600; white-space: nowrap; }

/* ── Support / FAQ ──────────────────────────────────────────── */
details { padding: 15px 0; border-bottom: 1px solid #edf2f6; }
details:last-child { border: 0; }
summary { cursor: pointer; font-weight: 600; color: #3a4a58; font-size: 13px; }
details p { color: #71828e; line-height: 1.75; margin: 10px 0 0; font-size: 12px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  display: flex; justify-content: space-between; gap: 15px;
  margin-top: auto; padding: 18px 0;
  color: #8a98a5; font-size: 10px;
}
.footer b { color: #60737f; }

/* ── Dialog / Modal ─────────────────────────────────────────── */
dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0; border: 0;
  border-top: 3px solid var(--brand);
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 20px 60px #0d253855;
}
dialog::backdrop { background: #152a3880; backdrop-filter: blur(4px); }

.dialog-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid #e8edf1;
}
.dialog-header h2 { margin: 0; font-size: 17px; font-weight: 600; }
.dialog-content { padding: 20px 22px; }

.form-field { display: block; margin-bottom: 16px; font-weight: 600; font-size: 12px; }
.form-field input {
  width: 100%; margin-top: 6px; padding: 9px 11px;
  border: 1px solid #cdd8e1; border-radius: 5px;
  color: #3f5060; font-weight: 400;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #2b7aa318; }
.form-field small { display: block; margin-top: 5px; color: #8a99a4; font-size: 10px; font-weight: 400; }

.dialog-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 22px; border-top: 1px solid #e8edf1;
}
.form-error { color: #a73f35; font-size: 11px; margin-top: 6px; }

/* ── Auth Header & Dialog ─────────────────────────────────────── */
.auth-header-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
  font-family: inherit;
}

.auth-btn.login-btn {
  background: transparent;
  border: 1px solid #cdd8e1;
  color: var(--brand);
}
.auth-btn.login-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand);
}

.auth-btn.register-btn {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
}
.auth-btn.register-btn:hover {
  background: var(--brand-dark);
}

.auth-btn.logout-btn {
  background: transparent;
  border: 1px solid #d4dee5;
  color: #718290;
}
.auth-btn.logout-btn:hover {
  border-color: #e04130;
  color: #e04130;
}

.auth-view {
  display: flex;
  flex-direction: column;
}
.auth-view[hidden] {
  display: none !important;
}

.auth-footer {
  padding: 8px 0 0;
  border-top: none;
  justify-content: stretch;
}

.auth-submit-btn {
  width: 100%;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  text-align: center;
}

.auth-link {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
  font-family: inherit;
}
.auth-link:hover {
  color: var(--brand-dark);
}

.auth-info-note {
  font-size: 11px;
  color: #556878;
  margin-bottom: 12px;
  line-height: 1.4;
}

.auth-msg-success {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  color: #027a48;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 11px;
  margin-bottom: 12px;
}

.result-box {
  background: #f1f7fa; border: 1px solid #d4e5ef;
  border-radius: 5px; padding: 12px; margin: 12px 0;
  overflow-wrap: anywhere; font-size: 13px;
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  background: #233949; color: #fff;
  border-radius: 6px; font-size: 12px;
  box-shadow: 0 6px 24px #0005;
  animation: slide-up .2s ease;
}
@keyframes slide-up {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Backdrop (mobile menu) ─────────────────────────────────── */
.backdrop { display: none; }
.balance-icon { color: #4ade80; }
.rate-icon { color: #facc15; fill: #facc15; }
.status-filter { max-width: 200px; }

/* ── Sidebar collapsed states ───────────────────────────────── */
.sidebar-closed .sidebar  { transform: translateX(-100%); }
.sidebar-closed .main     { margin-left: 0; width: 100%; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .main { padding: 18px 18px 0; }
  .metrics { gap: 12px; }
}

@media (max-width: 900px) {
  .breadcrumb { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-box { height: 108px; }
}

@media (max-width: 760px) {
  .logo { width: auto; padding: 0 16px; }
  .header-actions { gap: 10px; padding: 0 12px; }
  .balance-label, .user-name { display: none; }
  .sidebar { transform: translateX(-100%); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-open .backdrop {
    display: block; position: fixed; inset: 56px 0 0 0;
    border: 0; background: #0008; z-index: 25; width: 100%;
    backdrop-filter: blur(2px);
  }
  .main { margin-left: 0; padding: 16px 14px 0; }
  .page-heading h1 { font-size: 20px; }
  .period-select select { width: 160px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-box strong { font-size: 26px; }
  .announcement-list { padding: 0 16px; }
  .announcement-row h3 { font-size: 16px; }
  .announcement-row time { display: none; }
  .panel-body { padding: 16px; }
  .toolbar { flex-wrap: wrap; }
  .search { max-width: none; }
  .settings-row { flex-direction: column; gap: 6px; }
  .footer { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
