/* Ocean glass workspace, inspired by the supplied dashboard reference. */
:root {
  --primary: #38bdf8;
  --primary-dark: #0284c7;
  --primary-light: #a5e9ff;
  --primary-glow: #38bdf829;
  --accent: #22d3ee;
  --container-max: 1600px;
}
:root:not([data-theme="light"]) {
  --bg-body: #061f3b;
  --bg-surface: #0a2c4e;
  --bg-card: #0b345880;
  --bg-card-hover: #124b75a6;
  --bg-input: #04213b70;
  --border-color: #7dd3fc2b;
  --text-primary: #eff9ff;
  --text-secondary: #bdd6e8;
  --text-muted: #9abbd2;
  --glass: #10375480;
  --dashboard-glass: linear-gradient(135deg, #477a9b25, #0a2c4e70);
  --dashboard-shadow: 0 10px 35px #00102435, inset 0 1px 0 #d0f3ff0d;
  --dashboard-backdrop: url('auth-background.svg?v=20261007-blue-1');
}
[data-theme="light"] {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #0369a1;
  --primary-glow: #0284c71a;
  --bg-body: #e7f3fc;
  --bg-surface: #f3faff;
  --bg-card: #ffffff80;
  --bg-card-hover: #f0f9ff;
  --bg-input: #f0f9ffb3;
  --border-color: #0284c733;
  --text-primary: #13334e;
  --text-secondary: #416078;
  --text-muted: #516f87;
  --glass: #f5fbffb3;
  --dashboard-glass: linear-gradient(135deg, #ffffffd9, #e7f3fcad);
  --dashboard-shadow: 0 10px 35px #0369a112, inset 0 1px 0 #fff;
  --dashboard-backdrop: none;
}
body { background: var(--bg-body) var(--dashboard-backdrop) center / cover fixed; }
body::before {
  inset: 0;
  height: auto;
  background: radial-gradient(ellipse at 75% 0, #0ea5e916, transparent 55%), linear-gradient(#061f3b20, #0213264d);
}
[data-theme="light"] body::before { background: radial-gradient(ellipse at 75% 0, #38bdf833, transparent 65%); }
button, input, select { font-family: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
[hidden] { display: none !important; }
.dashboard-shell { position: relative; max-width: 1920px; margin: 0 auto; }
.dashboard-workspace { min-width: 0; margin-left: 264px; padding: 20px 24px 12px 0; }
.dashboard-workspace > .container { width: 100%; padding: 0; }
.dashboard-sidebar, #app-header, .dashboard-panel, .dashboard-stats .stat-item, .hero, .tracking-section, .dashboard-welcome {
  background: var(--dashboard-glass);
  border: 1px solid var(--border-color);
  box-shadow: var(--dashboard-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.dashboard-sidebar {
  position: fixed;
  inset: 20px auto 20px max(20px, calc((100vw - 1920px) / 2 + 20px));
  z-index: 110;
  display: flex;
  flex-direction: column;
  width: 222px;
  padding: 24px 14px 18px;
  border-radius: 22px;
  overflow-y: auto;
}
.dashboard-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; text-decoration: none !important; color: var(--text-primary); }
.dashboard-brand-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, #38bdf8, #087ec6); box-shadow: 0 5px 18px #0ea5e940, inset 0 1px 0 #ffffff70; color: #fff; font-size: 19px; }
.dashboard-brand strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.6px; }
.dashboard-brand small { display: block; color: var(--text-muted); font-size: 8px; letter-spacing: 1.4px; margin-top: 2px; }
.dashboard-nav-label { margin: 25px 12px 10px; font-size: 8px; letter-spacing: 1.35px; color: var(--text-muted); font-weight: 700; }
.dashboard-nav { display: flex; flex-direction: column; gap: 6px; }
.dashboard-nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; min-height: 44px; background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--text-secondary); text-align: left; font-size: 11px; font-weight: 500; text-decoration: none !important; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.dashboard-nav-item > i { width: 16px; font-size: 14px; text-align: center; }
.dashboard-nav-item:hover { background: var(--primary-glow); color: var(--text-primary); }
.dashboard-nav-item.active { background: linear-gradient(115deg, #38bdf82b, #7dd3fc0d); border-color: var(--border-color); color: var(--text-primary); box-shadow: inset 0 1px 0 #ffffff0d; }
.dashboard-nav-item.active > i { color: var(--primary-light); }
.dashboard-nav-count { margin-left: auto; border-radius: 6px; background: var(--primary-glow); padding: 2px 6px; color: var(--primary-light); font-size: 9px; }
.dashboard-sidebar-footer { margin-top: auto; padding: 30px 6px 0; display: flex; align-items: center; gap: 10px; }
.dashboard-sidebar-footer .dashboard-brand-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.dashboard-sidebar-footer strong { display: block; font-size: 10px; color: var(--text-primary); }
.dashboard-sidebar-footer p { margin-top: 3px; font-size: 8px; color: var(--text-muted); }
#app-header { top: 20px; height: 64px; border-radius: 16px; }
.header-inner { height: 100%; padding: 0 16px; gap: 12px; }
.header-actions { flex: none; gap: 6px; }
.header-actions .btn { min-height: 34px; padding: 8px 10px; font-size: 11px; background: #7dd3fc05; }
.header-actions #btn-auth { border-color: #38bdf840; }
.dashboard-header-start { display: flex; align-items: center; flex: 1; min-width: 0; gap: 10px; }
.dashboard-menu-toggle { display: none; }
.dashboard-search { display: flex; align-items: center; gap: 12px; width: min(380px, 100%); min-width: 0; color: var(--text-muted); }
.dashboard-search > i { font-size: 13px; }
.dashboard-search input { border: 0; outline: 0; width: 100%; min-width: 0; padding: 10px 0; background: transparent; color: var(--text-primary); font-size: 12px; }
.dashboard-search input::placeholder { color: var(--text-muted); }
.dashboard-search:focus-within { color: var(--primary-light); }
.dashboard-search kbd { border: 1px solid var(--border-color); border-radius: 5px; padding: 0 7px; font-size: 11px; }
.dashboard-overview { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 23px; scroll-margin-top: 108px; }
.dashboard-eyebrow { display: block; color: var(--primary-light); font-size: 9px; font-weight: 700; letter-spacing: 2px; }
.dashboard-overview h1 { margin-top: 7px; font-size: 29px; letter-spacing: -.9px; line-height: 1.3; font-weight: 700; }
.dashboard-title-dot { color: var(--accent); }
.dashboard-overview p { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.dashboard-overview .btn { padding: 10px 16px; font-size: 11px; }
.btn-primary { background: linear-gradient(120deg, #0284c7, #047bb5 70%, #0891b2); border: 1px solid #7dd3fc50; box-shadow: 0 4px 16px #0ea5e930, inset 0 1px 0 #ffffff20; }
.dashboard-stats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; overflow: visible; padding: 0; margin-bottom: 18px; }
.dashboard-stats .stat-item { position: relative; grid-column: span 3; display: block; min-width: 0; padding: 20px; border-radius: 15px; text-align: left; color: var(--text-primary); cursor: pointer; font: inherit; transition: transform .2s, border-color .2s, background .2s; }
.dashboard-stats .stat-item:hover { transform: translateY(-3px); border-color: #38bdf87a; background: var(--bg-card-hover); }
.dashboard-stats .stat-item.active { border-color: #38bdf880; }
.dashboard-stats .stat-item::after { display: none; }
.dashboard-stats .stat-count { margin: 15px 0 7px; font-size: 31px; letter-spacing: -1px; font-weight: 700; }
.dashboard-stats .stat-label { display: block; color: var(--text-secondary); font-size: 10px; letter-spacing: .1px; text-transform: none; font-weight: 500; }
.stat-icon { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: var(--primary-glow); color: var(--primary-light); font-size: 12px; }
.stat-delivering .stat-icon { color: #c4b5fd; background: #a78bfa1a; }
.stat-delivered .stat-icon { color: #6ee7b7; background: #34d3991a; }
.stat-caption { font-size: 9px; color: var(--text-muted); }
.dashboard-stats .stat-secondary { grid-column: span 4; display: flex; align-items: center; gap: 10px; padding: 12px 17px; border-radius: 10px; }
.dashboard-stats .stat-secondary .stat-count { margin: 0 0 0 auto; font-size: 18px; }
.dashboard-stats .stat-secondary > i { font-size: 12px; }
.dashboard-analytics { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 18px; margin-bottom: 18px; }
.dashboard-panel { min-width: 0; padding: 20px 22px; border-radius: 16px; }
.dashboard-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.dashboard-panel-heading h2 { color: var(--text-primary); font-size: 13px; font-weight: 600; letter-spacing: -.15px; }
.dashboard-panel-heading p { margin-top: 4px; color: var(--text-muted); font-size: 9px; }
.dashboard-panel-heading > i { color: var(--primary-light); font-size: 14px; }
.dashboard-period { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--border-color); border-radius: 7px; color: var(--text-secondary); font-size: 9px; background: var(--primary-glow); }
.dashboard-chart { height: 192px; }
.dashboard-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dashboard-chart .chart-grid { stroke: var(--border-color); stroke-dasharray: 4 5; }
.dashboard-chart text { fill: var(--text-muted); font-family: inherit; font-size: 10px; }
.dashboard-chart .chart-line { stroke: #67e8f9; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-chart .chart-point { stroke: #67e8f9; stroke-width: 2; fill: var(--bg-surface); }
[data-theme="light"] .dashboard-chart .chart-line { stroke: #0284c7; }
[data-theme="light"] .dashboard-chart .chart-point { stroke: #0284c7; }
.dashboard-chart-note { color: var(--text-muted); font-size: 9px; padding-top: 5px; }
.dashboard-donut { position: relative; width: 126px; height: 126px; margin: 3px auto 18px; border-radius: 50%; background: conic-gradient(var(--border-color) 0deg 360deg); box-shadow: 0 0 25px #38bdf80d; }
.dashboard-donut::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg-surface); box-shadow: inset 0 1px 10px #001b3a33; }
.dashboard-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.dashboard-donut-center strong { font-size: 26px; font-weight: 700; letter-spacing: -1px; }
.dashboard-donut-center span { color: var(--text-muted); font-size: 9px; }
.dashboard-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.dashboard-legend-item { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 9px; }
.dashboard-legend-item > i { display: block; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--legend-color); }
.dashboard-legend-item strong { color: var(--text-primary); font-weight: 600; margin-left: auto; }
.dashboard-panel, .hero, .tracking-section { scroll-margin-top: 108px; }
.hero { text-align: left; padding: 20px 22px; margin-bottom: 18px; border-radius: 16px; }
.hero .hero-title { margin: 0; font-size: 13px; letter-spacing: -.15px; background: none; -webkit-text-fill-color: var(--text-primary); }
.hero .hero-subtitle { margin: 4px 0 0; max-width: none; font-size: 9px; }
.search-form { max-width: none; margin: 0; }
.select-wrapper { flex-basis: 176px; }
.select-wrapper select, .input-wrapper input { min-height: 42px; font-size: 12px; border-width: 1px; }
.search-form #btn-add { padding: 10px 20px; font-size: 12px; }
.note-inputs input { min-width: 0; font-size: 11px !important; }
.detect-indicator { margin-top: 10px; padding: 7px 10px; min-height: 32px; font-size: 10px; }
.detect-icon { font-size: 11px; width: 14px; }
.form-hint { justify-content: flex-start; font-size: 9px; }
.dashboard-add-notes { margin-top: 10px; }
.dashboard-add-notes > summary { width: fit-content; color: var(--text-secondary); font-size: 10px; cursor: pointer; }
.tracking-section { padding: 20px 22px 14px; margin-bottom: 18px; border-radius: 16px; }
.tracking-section .section-title { font-size: 13px; }
.tracking-section .section-title i { font-size: 12px; }
.tracking-section .section-actions .btn { font-size: 9px; padding: 6px 9px; }
.tracking-section .section-actions { flex-wrap: wrap; }
@media (max-width: 620px) {
  .tracking-section .section-header { align-items: flex-start; flex-direction: column; gap: 12px; }
}
.tracking-list { gap: 0; }
.tracking-card { padding: 15px 0 15px 12px; gap: 12px; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; background: transparent; animation-duration: .25s; }
.tracking-card:last-child { border-bottom: 0; }
.tracking-card:hover { background: #38bdf809; box-shadow: none; }
.tracking-card::before { width: 2px; top: 18px; bottom: 18px; border-radius: 2px; opacity: .8; }
.card-status-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.card-top-row { flex-wrap: wrap; gap: 6px; padding-right: 130px; }
.card-tracking-id { font-size: 11px; }
.card-carrier-badge { font-size: 8px; padding: 2px 6px; text-transform: none; }
.card-info { position: relative; }
.card-status-text { margin-top: 3px; font-size: 10px; padding-right: 130px; }
.card-time { font-size: 9px; flex-wrap: wrap; gap: 6px; }
.card-status-badge { position: absolute; right: 15px; top: 4px; padding: 3px 8px; border-radius: 5px; background: var(--primary-glow); color: var(--primary-light); font-size: 9px; white-space: nowrap; }
[data-status-group="pending"] .card-status-badge { color: var(--warning); background: var(--warning-bg); }
[data-status-group="delivering"] .card-status-badge { color: var(--delivering); background: #a855f71a; }
[data-status-group="delivered"] .card-status-badge { color: var(--success); background: var(--success-bg); }
[data-status-group="returned"] .card-status-badge { color: var(--returned); background: var(--returned-bg); }
[data-status-group="problem"] .card-status-badge { color: var(--danger); background: var(--danger-bg); }
.card-actions { gap: 2px; }
.card-actions .btn-icon { width: 28px; height: 30px; font-size: 10px; }
.card-notes { margin-top: 6px; }
.card-notes > summary { width: fit-content; max-width: 100%; color: var(--text-muted); font-size: 9px; cursor: pointer; overflow-wrap: anywhere; }
.card-note-wrapper { display: grid !important; grid-template-columns: 1fr 1.3fr 1.6fr 1fr; }
.card-note-input { width: 100%; min-width: 0; font-size: 10px !important; }
.empty-state { padding: 34px 20px; }
.empty-icon { font-size: 30px; }
.empty-state h3 { font-size: 13px; }
.empty-state p { font-size: 11px; }
.dashboard-filter-empty { padding: 30px 15px; text-align: center; color: var(--text-muted); }
.dashboard-filter-empty > i { font-size: 22px; margin-bottom: 10px; }
.dashboard-filter-empty h3 { font-size: 13px; color: var(--text-secondary); }
.dashboard-filter-empty p { margin: 5px 0 12px; font-size: 11px; }
.dashboard-filter-empty .btn { font-size: 10px; }
#auto-check-bar { display: flex; gap: 12px; justify-content: flex-end !important; padding: 0 0 10px !important; margin-bottom: 0; border: 0; }
#btn-check-active { padding: 8px 12px !important; font-size: 10px !important; }
#last-check-time { color: var(--text-muted); font-size: 10px; }
.dashboard-page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 3px; font-size: 9px; color: var(--text-muted); }
.dashboard-page-footer i { margin-right: 4px; }
.dashboard-welcome { margin: 40px auto; padding: 64px 30px !important; text-align: center; border-radius: 22px; }
.dashboard-welcome-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 25px; border-radius: 23px; border: 1px solid #7dd3fc50; background: linear-gradient(135deg, #38bdf836, #0ea5e912); color: var(--primary-light); font-size: 29px; box-shadow: 0 0 55px #38bdf82b; }
.dashboard-welcome h2 { margin: 15px 0 18px; font-size: clamp(27px, 3.5vw, 45px); line-height: 1.2; letter-spacing: -1.5px; }
.dashboard-welcome > p { max-width: 570px; margin: 0 auto 27px; color: var(--text-secondary); font-size: 12px; line-height: 1.9; }
.dashboard-welcome .btn { font-size: 12px; padding: 13px 22px; }
.dashboard-welcome-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 40px; color: var(--text-muted); font-size: 10px; }
.dashboard-welcome-features i { color: var(--primary-light); margin-right: 6px; }
#modal-admin { max-width: 820px; background: var(--bg-surface); backdrop-filter: blur(24px); }
.admin-intro { margin-bottom: 10px; font-size: 12px; color: var(--text-secondary); }
.admin-summary { margin-bottom: 18px; color: var(--primary-light); font-size: 12px; font-weight: 600; }
#admin-users-list { display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.admin-user { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; border: 1px solid var(--border-color); border-radius: 13px; background: var(--bg-card); }
.admin-user-info { min-width: 0; flex: 1; }
.admin-user-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.admin-user-heading strong { font-size: 14px; overflow-wrap: anywhere; }
.admin-user-badge { padding: 4px 8px; border-radius: 6px; font-size: 10px; }
.admin-user-badge.is-admin { background: #38bdf81f; color: var(--primary-light); }
.admin-user-badge.is-approved { background: var(--success-bg); color: var(--success); }
.admin-user-badge.is-pending { background: var(--warning-bg); color: var(--warning); }
.admin-user-name { color: var(--text-secondary); margin: 8px 0; overflow-wrap: anywhere; }
.admin-user-contact { display: flex; flex-wrap: wrap; gap: 7px 15px; color: var(--text-muted); font-size: 11px; }
.admin-user-contact span { overflow-wrap: anywhere; min-width: 0; }
.admin-user-contact i { color: var(--primary-light); margin-right: 4px; }
.admin-user-actions { display: flex; gap: 8px; flex-wrap: wrap; color: var(--text-muted); font-size: 11px; }
.admin-user-actions .btn { justify-content: center; padding: 8px 11px; font-size: 11px; }
.admin-user-actions .btn-danger { background: var(--danger-bg); border-color: #ef444440; }
.admin-user-actions .btn-danger:hover { border-color: var(--danger); }
.admin-user-actions .btn:disabled { opacity: .5; cursor: wait; }
@media (max-width: 620px) {
  #modal-admin .modal-body { padding: 15px; }
  #modal-admin .modal-header { padding: 15px; }
  #modal-admin .modal-title { font-size: 14px; }
  .admin-user { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
  .admin-user-actions .btn { flex: 1; min-height: 38px; }
}
@media (min-width: 1700px) { .dashboard-workspace { padding-right: 36px; } .dashboard-stats .stat-item { padding: 24px; } }
@media (max-width: 1150px) {
  .dashboard-workspace { margin-left: 224px; padding-right: 18px; }
  .dashboard-sidebar { width: 186px; padding-inline: 10px; }
  .dashboard-brand strong { font-size: 18px; }
  .dashboard-nav-item { font-size: 10px; padding-inline: 9px; }
  .dashboard-stats { gap: 10px; }
  .dashboard-stats .stat-item { padding: 16px; }
  .stat-icon { width: 25px; height: 25px; right: 12px; top: 13px; }
  .dashboard-stats .stat-label { max-width: 90px; font-size: 9px; }
  .dashboard-stats .stat-secondary .stat-label { max-width: none; }
  .dashboard-analytics { grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 14px; }
  .header-actions .btn-label { display: none; }
  .header-actions .btn { padding: 8px; }
  .card-note-wrapper { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .dashboard-workspace { margin-left: 0; padding: 16px; }
  .dashboard-sidebar { inset: 16px auto 16px 16px; width: 225px; transform: translateX(calc(-100% - 32px)); transition: transform .25s ease; box-shadow: 0 10px 70px #0007; background: var(--bg-surface); }
  body.dashboard-menu-open .dashboard-sidebar { transform: translateX(0); }
  body.dashboard-menu-open::after { content: ''; position: fixed; inset: 0; background: #00132b99; z-index: 105; }
  .dashboard-menu-toggle { display: inline-flex; padding: 7px 9px; }
  #app-header { top: 16px; }
  .dashboard-overview { padding-top: 25px; }
}
@media (max-width: 620px) {
  .dashboard-workspace { padding: 12px; }
  #app-header { top: 12px; height: auto; min-height: 57px; }
  .header-inner { padding: 11px 10px; flex-wrap: wrap; gap: 7px; }
  .dashboard-header-start { flex: 1 1 120px; }
  .dashboard-search { gap: 8px; }
  .dashboard-search input { font-size: 12px; padding: 5px 0; }
  .dashboard-search kbd { display: none; }
  .dashboard-search > i { display: none; }
  .header-actions { gap: 4px; }
  .header-actions .btn { padding: 7px; min-height: 30px; font-size: 12px; }
  .header-actions #auth-username { display: none; }
  .header-actions #btn-refresh-all { display: none; }
  .dashboard-overview { gap: 10px; align-items: flex-end; padding: 22px 0 19px; }
  .dashboard-overview h1 { font-size: 23px; }
  .dashboard-eyebrow { font-size: 7px; letter-spacing: 1.3px; }
  .dashboard-overview p { font-size: 10px; max-width: 200px; }
  .dashboard-overview > a { font-size: 10px; padding: 9px; }
  .dashboard-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
  .dashboard-stats .stat-item { grid-column: span 3; padding: 16px; }
  .dashboard-stats .stat-label { max-width: none; }
  .dashboard-stats .stat-count { font-size: 28px; margin-top: 18px; }
  .dashboard-stats .stat-secondary { grid-column: span 2; flex-wrap: wrap; gap: 5px; padding: 10px; }
  .dashboard-stats .stat-secondary > i { font-size: 10px; }
  .dashboard-stats .stat-secondary .stat-label { font-size: 8px; }
  .dashboard-stats .stat-secondary .stat-count { width: 100%; margin: 4px 0 0; font-size: 18px; }
  .dashboard-analytics { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
  .dashboard-panel, .hero, .tracking-section { padding: 17px 15px; border-radius: 13px; }
  .dashboard-distribution { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 0 15px; }
  .dashboard-distribution .dashboard-panel-heading { grid-column: 1 / -1; }
  .dashboard-donut { margin: 0; }
  .dashboard-legend { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 6px; }
  .dashboard-chart { height: 175px; }
  .hero { margin-bottom: 12px; }
  .hero .dashboard-period { display: none; }
  .form-row { flex-direction: column; }
  .select-wrapper { flex-basis: auto; }
  .select-wrapper select, .input-wrapper input { min-height: 44px; font-size: 16px; }
  .note-inputs input, .card-note-input { font-size: 16px !important; }
  .form-hint { line-height: 1.6; align-items: flex-start; }
  .dashboard-stats .stat-secondary .stat-label { text-align: left; }
  .tracking-card { padding: 14px 0 14px 8px; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
  .card-info { flex: 1 1 180px; }
  .card-top-row, .card-status-text { padding-right: 0; }
  .card-top-row { gap: 5px; }
  .card-status-badge { position: static; display: inline-block; margin-top: 5px; }
  .card-actions { margin-left: auto; }
  .card-note-wrapper { grid-template-columns: 1fr; }
  .card-time { font-size: 8px; }
  .dashboard-page-footer { font-size: 8px; flex-wrap: wrap; }
  .dashboard-welcome { margin: 22px 0; padding: 40px 20px !important; }
  .dashboard-welcome > p { font-size: 11px; }
  .dashboard-welcome-features { gap: 14px; font-size: 9px; margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .dashboard-sidebar, .stat-item, .dashboard-nav-item { transition: none; } .tracking-card { animation: none; } }
