:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0a0c0d;
  --panel-soft: #0d1011;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: #f5f8f9;
  --muted: rgba(231, 238, 241, 0.52);
  --accent: #8ecae6;
  --accent-bright: #b7e3f5;
  --danger: #ff7c86;
  --success: #87ddb1;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.t7-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0, transparent 76%);
  mask-image: radial-gradient(circle at 50% 40%, #000 0, transparent 76%);
}

.t7-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.1), #050505 96%);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(142, 202, 230, 0.38);
  background: rgba(142, 202, 230, 0.07);
  color: var(--accent-bright);
  font-family: "Chakra Petch", sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Login ---------------------------------------------------------------- */

.login-shell {
  min-height: 100vh;
  padding: 72px 20px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #050505;
}

.login-shell::before {
  content: none;
}

.sidebar-brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 13px;
}

.sidebar-brand strong {
  display: block;
  font-family: "Chakra Petch", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.sidebar-brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.34);
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.login-card {
  width: min(416px, 100%);
  margin: 0;
  padding: 0;
}

.login-card::before {
  content: none;
}

.login-status {
  display: none;
}

.login-status i,
.live-pill i,
.metric-card-live .metric-note i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(142, 202, 230, 0.72);
}

.login-card h1,
.page-heading h1 {
  margin: 18px 0 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.login-card h1 {
  margin: 0;
  color: var(--accent);
  font-family: "Inter", sans-serif;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: none;
}

.login-intro {
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.login-card form {
  display: grid;
  gap: 10px;
}

.login-card form > label {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.field {
  height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #050505;
  transition: border-color 0.2s ease;
}

.field:focus-within {
  border-color: rgba(142, 202, 230, 0.52);
}

.field > svg {
  width: 16px;
  height: 16px;
  margin-left: 17px;
  color: rgba(255, 255, 255, 0.35);
}

.field input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.password-toggle {
  width: 52px;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--accent);
}

.form-error {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-left: 1px solid var(--danger);
  background: rgba(255, 124, 134, 0.055);
  color: rgba(255, 190, 195, 0.9);
  font-size: 11px;
  line-height: 1.45;
}

.login-submit {
  min-height: 43px;
  margin-top: 7px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-bright);
  background: rgba(142, 202, 230, 0.82);
  color: #041014;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  background: var(--accent-bright);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.login-submit svg,
.back-link svg {
  width: 15px;
  height: 15px;
}

.back-link {
  width: fit-content;
  margin: 24px auto 0;
  display: block;
  color: var(--accent);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

/* Loading -------------------------------------------------------------- */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: #050505;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-mark {
  color: #fff;
  font-family: "Chakra Petch", sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.loading-screen > i {
  position: relative;
  width: 120px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.loading-screen > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: loading-line 1.2s ease-in-out infinite;
}

.loading-screen small {
  color: rgba(255, 255, 255, 0.28);
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

@keyframes loading-line {
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Dashboard shell ------------------------------------------------------ */

.dashboard {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 250px;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(7, 8, 8, 0.98);
}

.sidebar-brand {
  padding: 0 8px 28px;
  border-bottom: 1px solid var(--line-soft);
}

.sidebar-brand strong {
  white-space: nowrap;
}

.sidebar nav {
  margin-top: 30px;
  display: grid;
  gap: 7px;
}

.sidebar nav a {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.sidebar nav a svg {
  width: 17px;
  height: 17px;
}

.sidebar nav a:hover,
.sidebar nav a.is-active {
  border-color: rgba(142, 202, 230, 0.18);
  background: rgba(142, 202, 230, 0.055);
  color: var(--accent-bright);
}

.sidebar-user {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}

.user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(142, 202, 230, 0.28);
  background: rgba(142, 202, 230, 0.06);
  color: var(--accent);
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-user strong,
.sidebar-user small {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 500;
}

.sidebar-user small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.07em;
}

.sidebar-user button,
.mobile-menu {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.sidebar-user button {
  width: 30px;
  height: 30px;
}

.sidebar-user button:hover,
.sidebar-user button:focus-visible {
  color: var(--accent);
}

.dashboard-main {
  min-width: 0;
  margin-left: 250px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 78px;
  padding: 0 clamp(24px, 3.5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar strong {
  font-family: "Chakra Petch", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mobile-menu {
  display: none;
}

.dashboard-content {
  width: min(1580px, calc(100% - clamp(48px, 7vw, 112px)));
  margin: 0 auto;
  padding: clamp(58px, 6vw, 98px) 0 34px;
}

.dashboard-view {
  min-height: calc(100vh - 210px);
}

.dashboard-view-grid,
.dashboard-view-panel {
  margin-top: clamp(42px, 5vw, 72px);
}

.dashboard-view-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.58fr);
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
}

.page-heading h1 {
  font-size: clamp(48px, 5.5vw, 88px);
}

.page-heading > div:first-child > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.range-control {
  padding: 5px;
  display: flex;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.range-control button {
  min-width: 62px;
  height: 38px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.34);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.range-control button:hover,
.range-control button.is-active {
  background: var(--accent-bright);
  color: #051014;
}

.metric-grid {
  margin-top: clamp(42px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric-card {
  position: relative;
  min-height: 154px;
  padding: 24px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(142, 202, 230, 0.2);
  color: var(--accent);
}

.metric-icon svg {
  width: 18px;
  height: 18px;
}

.metric-card small {
  display: block;
  color: rgba(255, 255, 255, 0.34);
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(27px, 2.3vw, 40px);
  line-height: 1;
}

.metric-trend,
.metric-note {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.28);
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.metric-trend.is-positive {
  color: var(--success);
}

.metric-trend.is-negative {
  color: var(--danger);
}

.metric-card-live::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--accent);
  opacity: 0.72;
}

.metric-card-live .metric-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.016), transparent 45%),
    rgba(8, 9, 9, 0.9);
}

.chart-panel {
  margin-top: 18px;
  padding: clamp(22px, 2.5vw, 34px);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.panel-heading h2 {
  margin: 8px 0 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1;
}

.chart-legend,
.panel-tag,
.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.34);
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.panel-tag,
.live-pill {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
}

.chart-summary {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.chart-summary strong {
  font-family: "Chakra Petch", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.chart-summary span {
  color: rgba(255, 255, 255, 0.28);
  font-size: 12px;
}

.chart-wrap {
  min-height: 300px;
  margin-top: 12px;
}

.chart-wrap svg {
  width: 100%;
  height: 300px;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
}

.chart-axis-label {
  fill: rgba(255, 255, 255, 0.28);
  font-family: "Inter", sans-serif;
  font-size: 12px;
}

.chart-area {
  fill: url(#t7-chart-fill);
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.25;
  vector-effect: non-scaling-stroke;
}

.chart-dot {
  fill: var(--accent-bright);
  stroke: #071013;
  stroke-width: 3;
}

.chart-empty {
  height: 280px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.25);
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.content-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(340px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.content-grid-secondary {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.48fr);
}

.scripts-panel,
.country-panel,
.referrer-panel,
.recent-panel {
  padding: 28px;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.27);
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-align: right;
  white-space: nowrap;
}

th:first-child {
  padding-left: 0;
  text-align: left;
}

td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: rgba(255, 255, 255, 0.63);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

td:first-child {
  max-width: 280px;
  padding-left: 0;
  text-align: left;
  white-space: normal;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.product-index {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid rgba(142, 202, 230, 0.17);
  color: var(--accent);
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
}

.product-cell strong,
.product-cell small {
  display: block;
}

.product-cell strong {
  overflow: hidden;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Chakra Petch", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-cell small {
  margin-top: 4px;
  overflow: hidden;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-cell {
  color: var(--accent);
}

.country-list,
.referrer-list,
.recent-list {
  margin-top: 24px;
  display: grid;
}

.country-row {
  padding: 13px 0;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(100px, 0.9fr) 48px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.country-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 500;
}

.country-code {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 28px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: var(--accent);
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.country-code img,
.recent-country img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.country-code.is-fallback,
.recent-country.is-fallback {
  border-radius: 2px;
}

.country-bar {
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.country-bar i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #5f9fbd, var(--accent-bright));
  box-shadow: 0 0 12px rgba(142, 202, 230, 0.2);
}

.country-percent {
  color: rgba(255, 255, 255, 0.64);
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.referrer-row,
.recent-row {
  min-height: 54px;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.referrer-row span:first-child {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referrer-row strong {
  color: var(--accent);
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.recent-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.recent-country {
  width: 30px;
  height: 30px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: var(--accent);
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.recent-copy {
  min-width: 0;
}

.recent-copy strong,
.recent-copy small {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-copy strong {
  color: rgba(255, 255, 255, 0.66);
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.recent-copy small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.24);
  font-size: 11px;
}

.recent-time {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  white-space: nowrap;
}

.empty-state {
  min-height: 150px;
  padding: 24px;
  place-items: center;
  color: rgba(255, 255, 255, 0.24);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.empty-state:not([hidden]) {
  display: grid;
}

/* Responsive ----------------------------------------------------------- */

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

  .content-grid,
  .content-grid-secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: min(280px, 82vw);
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.56);
    transform: translateX(-105%);
    transition: transform 0.4s var(--ease);
  }

  body.is-menu-open .sidebar {
    transform: none;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .mobile-menu {
    width: 42px;
    height: 42px;
    display: grid;
    border: 1px solid var(--line);
  }

  .mobile-menu svg {
    width: 18px;
    height: 18px;
  }

  .dashboard-content {
    width: min(100% - 36px, 760px);
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .login-shell {
    padding: 48px 20px 32px;
  }

  .login-card {
    width: min(416px, 100%);
  }

  .login-card h1 {
    font-size: 24px;
  }

  .topbar {
    min-height: 68px;
    padding-inline: 14px;
    gap: 12px;
  }

  .dashboard-content {
    width: calc(100% - 28px);
    padding-top: 48px;
  }

  .page-heading h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .range-control {
    width: 100%;
  }

  .range-control button {
    min-width: 0;
    flex: 1;
  }

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

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

  .chart-panel,
  .scripts-panel,
  .country-panel,
  .referrer-panel,
  .recent-panel {
    padding: 20px;
  }

  .chart-wrap,
  .chart-wrap svg {
    min-height: 230px;
    height: 230px;
  }

  th:nth-child(3),
  td:nth-child(3) {
    display: none;
  }

  .country-row {
    grid-template-columns: minmax(100px, 1fr) 70px 42px;
  }

  .dashboard-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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