:root {
  --ink: #111b18;
  --ink-soft: #27342f;
  --paper: #fffdf8;
  --paper-cool: #f5fbff;
  --mist: #eef6f4;
  --line: rgba(22, 45, 38, 0.13);
  --line-strong: rgba(22, 45, 38, 0.22);
  --muted: #64746d;
  --teal: #13b98a;
  --teal-deep: #087d72;
  --blue: #2298d3;
  --amber: #ffb545;
  --coral: #ff6f61;
  --wine: #b8435c;
  --red: #c64040;
  --shadow-soft: 0 18px 45px rgba(26, 43, 38, 0.12);
  --shadow-crisp: 0 8px 22px rgba(26, 43, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #eef6f4;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(140deg, rgba(19, 185, 138, 0.22) 0 18%, transparent 18% 100%),
    linear-gradient(28deg, transparent 0 64%, rgba(255, 181, 69, 0.18) 64% 73%, transparent 73%),
    linear-gradient(180deg, #f9fffb 0, #eef6f4 46%, #f8f5ff 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-canvas::before,
.ambient-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ambient-canvas::before {
  background:
    repeating-linear-gradient(90deg, rgba(17, 27, 24, 0.045) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(0deg, rgba(17, 27, 24, 0.035) 0 1px, transparent 1px 68px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

.ambient-canvas::after {
  clip-path: polygon(8% 9%, 96% 0, 88% 16%, 0 25%);
  background: linear-gradient(90deg, rgba(34, 152, 211, 0.22), rgba(255, 111, 97, 0.18), rgba(19, 185, 138, 0.18));
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    border-color 160ms ease;
}

button:hover {
  box-shadow: 0 12px 26px rgba(8, 125, 114, 0.2);
  filter: saturate(1.07);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.secondary-button,
.quick-ranges button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: none;
}

.secondary-button:hover,
.quick-ranges button:hover {
  border-color: rgba(19, 185, 138, 0.45);
  color: var(--teal-deep);
  background: #fff;
}

.quick-ranges button.is-active {
  border-color: rgba(19, 185, 138, 0.5);
  background: linear-gradient(180deg, rgba(232, 255, 246, 0.94), rgba(217, 247, 240, 0.94));
  color: var(--teal-deep);
  box-shadow: inset 0 0 0 1px rgba(19, 185, 138, 0.16);
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 480px);
}

.login-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 253, 248, 0.88)),
    var(--paper);
  box-shadow: var(--shadow-soft);
  padding: 30px;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber), var(--coral));
}

.login-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-art {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.78fr;
  align-items: end;
  gap: 8px;
  margin-top: 28px;
}

.login-art span {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent), var(--teal);
  box-shadow: var(--shadow-crisp);
}

.login-art span:nth-child(1) {
  height: 54%;
  background-color: var(--teal);
}

.login-art span:nth-child(2) {
  height: 100%;
  background-color: var(--blue);
}

.login-art span:nth-child(3) {
  height: 72%;
  background-color: var(--coral);
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(19, 185, 138, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.24)),
    linear-gradient(135deg, rgba(19, 185, 138, 0.22), rgba(34, 152, 211, 0.18));
  color: var(--teal-deep);
  font-weight: 950;
  box-shadow: inset 0 -12px 24px rgba(19, 185, 138, 0.1);
}

.brand-mark.small {
  width: 46px;
  height: 46px;
  font-size: 13px;
}

.login-panel h1,
.topbar h1,
.toolbar h2,
.panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.login-panel h1 {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.05;
}

.login-panel p,
.toolbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-kicker,
.eyebrow {
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0 13px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input:hover {
  border-color: var(--line-strong);
}

input:focus {
  border-color: rgba(19, 185, 138, 0.72);
  box-shadow: 0 0 0 4px rgba(19, 185, 138, 0.14);
  outline: 0;
}

.form-error {
  color: var(--red);
  font-weight: 900;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(22, 45, 38, 0.09);
  background: rgba(250, 255, 252, 0.76);
  backdrop-filter: blur(20px);
  padding: 14px max(16px, calc((100vw - 1480px) / 2 + 28px));
}

.topbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.topbar h1 {
  overflow-wrap: anywhere;
  font-size: 28px;
  line-height: 1.02;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.logout-form {
  margin: 0;
}

.status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(19, 185, 138, 0.28);
  border-radius: 999px;
  background: rgba(236, 255, 249, 0.78);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 900;
  padding: 0 13px;
  white-space: nowrap;
}

.status-pill.muted {
  border-color: rgba(22, 45, 38, 0.12);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.dashboard {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 26px 28px 46px;
}

.toolbar,
.panel,
.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-crisp);
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 0.55fr) minmax(420px, 1fr);
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.64)),
    linear-gradient(120deg, rgba(19, 185, 138, 0.14), rgba(34, 152, 211, 0.12), rgba(255, 111, 97, 0.1));
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 48%, rgba(255, 181, 69, 0.18) 48% 58%, transparent 58%),
    linear-gradient(25deg, rgba(19, 185, 138, 0.12) 0 14%, transparent 14%);
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.filters {
  position: relative;
  z-index: 1;
}

.hero-copy {
  min-width: 0;
  align-self: center;
}

.toolbar h2 {
  margin-top: 5px;
  font-size: 54px;
  line-height: 0.95;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-chips span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(22, 45, 38, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
  padding: 0 12px;
}

.hero-visual {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(7, 125, 114, 0.96), rgba(34, 152, 211, 0.86) 58%, rgba(255, 111, 97, 0.86)),
    var(--teal-deep);
  color: #fff;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(8, 125, 114, 0.18);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 30px),
    linear-gradient(120deg, transparent 0 55%, rgba(255, 255, 255, 0.2) 55% 68%, transparent 68%);
  opacity: 0.72;
}

.hero-visual-top,
.hero-spark,
.hero-bars {
  position: relative;
  z-index: 1;
}

.hero-visual-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.hero-visual-top span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.hero-visual-top strong {
  max-width: 55%;
  font-size: 20px;
  line-height: 1.1;
  text-align: right;
  overflow-wrap: anywhere;
}

.hero-spark {
  min-height: 96px;
}

.hero-spark svg {
  width: 100%;
  height: auto;
}

.hero-bars {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.6fr 0.9fr 1.35fr;
  align-items: end;
  gap: 8px;
  min-height: 32px;
}

.hero-bars span {
  display: block;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.72);
}

.hero-bars span:nth-child(1) {
  height: 18px;
}

.hero-bars span:nth-child(2) {
  height: 30px;
}

.hero-bars span:nth-child(3) {
  height: 24px;
}

.hero-bars span:nth-child(4) {
  height: 36px;
}

.hero-bars span:nth-child(5) {
  height: 27px;
}

.filters {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  align-self: center;
}

.quick-ranges {
  display: flex;
  gap: 6px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.metric-card {
  position: relative;
  min-height: 156px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7)),
    var(--paper);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 5px solid var(--teal);
  background: linear-gradient(140deg, rgba(19, 185, 138, 0.14), transparent 42%);
  pointer-events: none;
}

.metric-card.week::before {
  border-top-color: var(--blue);
  background: linear-gradient(140deg, rgba(34, 152, 211, 0.14), transparent 42%);
}

.metric-card.month::before {
  border-top-color: var(--amber);
  background: linear-gradient(140deg, rgba(255, 181, 69, 0.18), transparent 42%);
}

.metric-card.accent::before {
  border-top-color: var(--coral);
  background: linear-gradient(140deg, rgba(255, 111, 97, 0.17), transparent 42%);
}

.metric-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 86px;
  height: 42px;
  clip-path: polygon(0 72%, 18% 42%, 36% 58%, 54% 18%, 72% 38%, 100% 0, 100% 100%, 0 100%);
  background: rgba(17, 27, 24, 0.055);
}

.metric-top,
.metric-card strong,
.metric-card small {
  position: relative;
  z-index: 1;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-top span:first-child,
.panel-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.metric-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(19, 185, 138, 0.12);
}

.metric-card.week .metric-dot {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(34, 152, 211, 0.12);
}

.metric-card.month .metric-dot {
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(255, 181, 69, 0.16);
}

.metric-card.accent .metric-dot {
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(255, 111, 97, 0.13);
}

.metric-card strong {
  margin-top: 16px;
  font-size: 34px;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.metric-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.48fr);
  gap: 16px;
  margin-top: 16px;
}

.analytics-grid .wide {
  min-width: 0;
}

.panel {
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 253, 248, 0.76)),
    var(--paper);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.panel-heading h2 {
  font-size: 20px;
  line-height: 1.12;
}

.panel-heading span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(22, 45, 38, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  padding: 0 11px;
}

.chart-frame {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 251, 255, 0.78), rgba(255, 253, 248, 0.84)),
    var(--paper-cool);
  padding: 14px;
}

.chart-frame svg {
  width: 100%;
  height: auto;
  min-height: 280px;
}

.chart-grid {
  stroke: rgba(22, 45, 38, 0.1);
  stroke-width: 1;
}

.chart-axis {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.chart-area {
  fill: url("#areaGradient");
}

.chart-line {
  fill: none;
  stroke: url("#lineGradient");
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-marker-glow {
  fill: rgba(19, 185, 138, 0.15);
}

.chart-marker {
  fill: #fff;
  stroke: var(--teal-deep);
  stroke-width: 3;
}

.chart-single-bar {
  fill: url("#lineGradient");
  opacity: 0.8;
}

.chart-base {
  stroke: rgba(22, 45, 38, 0.24);
  stroke-width: 1;
}

.empty {
  min-height: 188px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(22, 45, 38, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  font-weight: 900;
}

.category-donut {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.donut {
  width: min(220px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--donut);
  box-shadow:
    inset 0 0 0 14px rgba(255, 255, 255, 0.32),
    0 20px 42px rgba(26, 43, 38, 0.12);
}

.donut-hole {
  width: 62%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(22, 45, 38, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 12px;
}

.donut-hole strong {
  max-width: 100%;
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.donut-hole span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bars,
.rank-list,
.recent-list {
  display: grid;
  gap: 10px;
}

.bar-row,
.rank-row,
.recent-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 13px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.recent-row {
  color: inherit;
  text-decoration: none;
}

.bar-row:hover,
.rank-row:hover,
.recent-row:hover {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-crisp);
  transform: translateY(-1px);
}

.bar-top,
.rank-top,
.recent-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.bar-label,
.rank-name,
.recent-title {
  font-weight: 950;
}

.bar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bar-color);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--bar-color) 18%, transparent);
}

.bar-amount,
.rank-amount {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 950;
  text-align: right;
}

.bar-track {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 45, 38, 0.08);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bar-color), color-mix(in srgb, var(--bar-color) 72%, #ffffff));
}

.rank-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  font-weight: 950;
}

.rank-meta,
.recent-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.recent-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.recent-title,
.recent-meta {
  overflow-wrap: anywhere;
}

.thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: var(--mist);
  box-shadow: 0 8px 18px rgba(26, 43, 38, 0.12);
}

.table-panel {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

thead {
  background: rgba(245, 251, 255, 0.72);
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: middle;
}

thead th {
  border-top: 0;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.58);
}

.numeric {
  text-align: right;
}

td.numeric {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border: 1px solid rgba(19, 185, 138, 0.24);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(232, 255, 246, 0.82);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 950;
}

.empty-cell {
  height: 120px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .hero-panel {
    grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 1fr);
  }

  .filters {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar-actions {
    display: none;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-grid .wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  body {
    background:
      linear-gradient(148deg, rgba(19, 185, 138, 0.18) 0 24%, transparent 24% 100%),
      linear-gradient(180deg, #fbfffd 0, #eef6f4 52%, #f8f5ff 100%);
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px 12px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .logout-form,
  .logout-form button {
    width: 100%;
  }

  .dashboard {
    padding: 18px 12px 34px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .toolbar h2 {
    font-size: 40px;
  }

  .hero-visual {
    min-height: 170px;
  }

  .filters,
  .quick-ranges {
    width: 100%;
  }

  .filters {
    justify-content: stretch;
  }

  .filters label {
    flex: 1 1 146px;
  }

  .filters button,
  .quick-ranges button {
    flex: 1 1 auto;
  }

  .metric-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 132px;
  }

  .metric-card strong {
    font-size: 30px;
  }

  .chart-frame {
    min-height: 300px;
    padding: 8px;
  }

  .chart-frame svg {
    min-height: 240px;
  }

  .category-donut {
    min-height: 190px;
  }

  .donut {
    width: 190px;
  }

  .login-panel {
    padding: 26px;
  }

  .login-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  tbody tr {
    display: grid;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 12px;
  }

  tbody tr:hover {
    background: rgba(255, 255, 255, 0.72);
  }

  td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 0;
    padding: 0;
    text-align: right;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    text-align: left;
    text-transform: uppercase;
  }

  td:first-child {
    justify-content: flex-start;
  }

  td:first-child::before {
    display: none;
  }

  td.numeric {
    font-size: 20px;
    text-align: right;
  }
}

@media (max-width: 460px) {
  .brand-mark.small {
    width: 44px;
    height: 44px;
  }

  .toolbar,
  .panel,
  .metric-card {
    padding: 14px;
  }

  .quick-ranges {
    flex-direction: column;
  }

  .hero-chips span {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-visual-top {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual-top strong {
    max-width: 100%;
    text-align: left;
  }

  .recent-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
