:root {
  --bg-deep: #060b18;
  --bg-mid: #0b132b;
  --bg-panel: rgba(255, 255, 255, 0.02);
  --bg-panel-strong: rgba(9, 19, 43, 0.72);
  --bg-row: rgba(4, 11, 26, 0.82);
  --bg-row-alt: rgba(7, 17, 37, 0.95);
  --line: rgba(0, 242, 254, 0.15);
  --line-strong: rgba(0, 242, 254, 0.34);
  --text: #e8f7ff;
  --muted: #8ea9c8;
  --cyan: #00f2fe;
  --blue: #0077b6;
  --green: #05ffc5;
  --red: #ff4f81;
  --amber: #7ed3ff;
  --shadow-lg: 0 26px 80px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 24px rgba(0, 242, 254, 0.18);
  --shadow-green: 0 0 26px rgba(5, 255, 197, 0.2);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-display: "Rajdhani", "Avenir Next Condensed", "DIN Condensed", sans-serif;
  --font-body: "IBM Plex Sans", "Avenir Next", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 15% 18%, rgba(0, 242, 254, 0.12), transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(0, 119, 182, 0.18), transparent 22%),
    radial-gradient(circle at 52% 100%, rgba(5, 255, 197, 0.08), transparent 24%),
    linear-gradient(135deg, var(--bg-deep), var(--bg-mid));
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 95%);
  opacity: 0.28;
}

body::after {
  background: linear-gradient(180deg, rgba(6, 11, 24, 0), rgba(6, 11, 24, 0.42));
}

.dashboard-body::selection,
.login-body::selection {
  background: rgba(0, 242, 254, 0.28);
}

.login-body {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 32px 20px;
}

.login-container {
  max-width: 440px;
  width: 100%;
}

.login-box,
.glass-card,
.glass-panel,
.panel,
.quote-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(10, 20, 44, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-radius: var(--radius-md);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 242, 254, 0.06),
    var(--shadow-glow);
  position: relative;
}

.login-box::before,
.glass-card::before,
.glass-panel::before,
.panel::before,
.quote-card::before,
.modal-box::before {
  border-left: 1px solid rgba(0, 242, 254, 0.42);
  border-top: 1px solid rgba(0, 242, 254, 0.42);
  content: "";
  height: 22px;
  left: 16px;
  position: absolute;
  top: 16px;
  width: 22px;
}

.login-box::after,
.glass-card::after,
.glass-panel::after,
.panel::after,
.quote-card::after,
.modal-box::after {
  border-bottom: 1px solid rgba(0, 242, 254, 0.42);
  border-right: 1px solid rgba(0, 242, 254, 0.42);
  bottom: 16px;
  content: "";
  height: 22px;
  position: absolute;
  right: 16px;
  width: 22px;
}

.login-box {
  padding: 38px 34px;
}

.login-title,
.nav-brand,
h1,
h2 {
  font-family: var(--font-display);
}

.login-title {
  color: var(--cyan);
  font-size: 38px;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 0 18px rgba(0, 242, 254, 0.3);
}

.login-subtitle {
  color: var(--muted);
  margin: 10px 0 28px;
  text-align: center;
}

.login-form,
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label,
.card-label,
.metric-label,
.section-kicker,
.hud-kicker,
.hud-meta-label,
.modal-holdings-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-group input,
.holding-row input {
  background: rgba(5, 12, 29, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.14);
  border-radius: 12px;
  color: var(--text);
  font: 14px var(--font-mono);
  min-height: 46px;
  outline: none;
  padding: 10px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.form-group input:focus,
.holding-row input:focus {
  border-color: rgba(0, 242, 254, 0.48);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.12), 0 0 18px rgba(0, 242, 254, 0.12);
  transform: translateY(-1px);
}

.btn-login,
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-green);
  color: #021017;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: 46px;
  padding: 10px 22px;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-login:hover,
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(5, 255, 197, 0.24), 0 0 30px rgba(5, 255, 197, 0.28);
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.error-msg,
.modal-error {
  background: rgba(255, 79, 129, 0.12);
  border: 1px solid rgba(255, 79, 129, 0.34);
  border-radius: 14px;
  color: #ff9eb8;
  padding: 12px 14px;
}

.login-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
  text-align: center;
}

.dashboard-shell {
  min-height: 100vh;
  padding: 20px 20px 28px;
  position: relative;
}

.hud-navbar {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 120px minmax(0, 1fr) auto 120px;
  margin: 0 auto 18px;
  max-width: 1800px;
  padding: 18px 24px;
  position: relative;
}

.hud-navbar::before {
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.45), transparent);
  content: "";
  height: 1px;
  left: 10%;
  opacity: 0.65;
  position: absolute;
  right: 10%;
  top: 0;
}

.hud-ornament {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  position: relative;
}

.hud-ornament::before,
.hud-ornament::after {
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.55), transparent);
  content: "";
  height: 1px;
  position: absolute;
  width: 100%;
}

.hud-ornament::after {
  top: calc(50% + 10px);
  width: 72%;
}

.hud-identity {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hud-title-row {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-width: 0;
}

.nav-brand {
  color: var(--text);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 0.92;
  text-shadow: 0 0 22px rgba(0, 242, 254, 0.2);
  text-transform: uppercase;
}

.nav-subtitle,
.hud-source,
.hero-copy,
.panel-badge,
.card-note,
.footer-note,
.quote-meta,
.note-list,
.sector {
  color: var(--muted);
}

.hud-title-copy {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-pill,
.source-pill,
.tabs a,
.btn-manage,
.btn-logout,
.glow-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
}

.hud-pill {
  border: 1px solid rgba(0, 242, 254, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  font: 12px var(--font-mono);
  letter-spacing: 0.14em;
  min-height: 34px;
  min-width: 92px;
  padding: 0 14px;
  text-transform: uppercase;
}

.hud-pill.live,
.source-pill.live {
  color: var(--green);
  text-shadow: 0 0 10px rgba(5, 255, 197, 0.3);
}

.hud-pill.degraded,
.source-pill.degraded {
  color: var(--cyan);
}

.hud-meta {
  align-items: center;
  display: flex;
  gap: 18px;
  min-width: 0;
}

.hud-clock-block {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.hud-clock-block strong {
  color: var(--cyan);
  font: 700 28px var(--font-mono);
  text-shadow: 0 0 18px rgba(0, 242, 254, 0.28);
}

.hud-clock-block em {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
}

.nav-user {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

#navDisplayName {
  color: var(--text);
  font: 600 14px var(--font-mono);
  letter-spacing: 0.08em;
}

.nav-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.tabs {
  display: flex;
  gap: 10px;
}

.tabs a,
.btn-manage,
.btn-logout,
.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 242, 254, 0.16);
  color: var(--text);
  cursor: pointer;
  font: 12px var(--font-mono);
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.tabs a:hover,
.btn-manage:hover,
.btn-logout:hover,
.btn-secondary:hover {
  border-color: rgba(0, 242, 254, 0.42);
  box-shadow: 0 0 0 1px rgba(0, 242, 254, 0.12), 0 0 24px rgba(0, 242, 254, 0.12);
  color: var(--cyan);
  transform: translateY(-1px);
}

.tabs a:first-child {
  border-color: rgba(5, 255, 197, 0.3);
  color: var(--green);
}

.tabs a.is-active,
.tabs a[data-panel-link].is-active {
  background: linear-gradient(135deg, rgba(5, 255, 197, 0.16), rgba(0, 242, 254, 0.16));
  border-color: rgba(5, 255, 197, 0.42);
  box-shadow: 0 0 0 1px rgba(5, 255, 197, 0.14), 0 0 24px rgba(5, 255, 197, 0.12);
  color: var(--green);
}

.dashboard-screen {
  margin: 0 auto;
  max-width: 1800px;
  min-width: 0;
  width: 100%;
}

.command-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.glass-panel,
.glass-card,
.panel,
.quote-card {
  overflow: hidden;
}

.command-stage {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-bottom: 20px;
  min-width: 0;
  padding: 28px 32px;
}

.command-stage__intro {
  display: grid;
  gap: 16px;
  min-width: 0;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.94;
  text-shadow: 0 0 26px rgba(0, 242, 254, 0.18);
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  letter-spacing: 0.04em;
}

.hero-copy {
  font-size: 15px;
  line-height: 1.7;
  max-width: 72ch;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.glow-chip {
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.2), rgba(0, 242, 254, 0.12));
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--cyan);
  font: 12px var(--font-mono);
  min-height: 36px;
  padding: 0 14px;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.glow-chip::after {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.22), transparent 70%);
  border-radius: inherit;
  content: "";
  inset: -8px;
  opacity: 0;
  position: absolute;
  transition: opacity 220ms ease;
  z-index: -1;
}

.glow-chip:hover {
  border-color: rgba(0, 242, 254, 0.48);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.18);
  transform: translateY(-1px);
}

.glow-chip:hover::after {
  opacity: 1;
}

.command-stage__pulse {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
  min-width: 0;
}

.signal-ring {
  animation: pulse-ring 3s ease-in-out infinite;
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(0, 242, 254, 0.04), 0 0 0 32px rgba(5, 255, 197, 0.03);
  height: 112px;
  position: relative;
  width: 112px;
}

.signal-ring::before,
.signal-ring::after {
  border-radius: 50%;
  content: "";
  position: absolute;
}

.signal-ring::before {
  background: radial-gradient(circle, rgba(5, 255, 197, 0.65), rgba(5, 255, 197, 0.08));
  inset: 22px;
}

.signal-ring::after {
  border: 1px dashed rgba(0, 242, 254, 0.28);
  inset: 9px;
}

.signal-copy {
  display: grid;
  gap: 6px;
}

.signal-copy strong {
  color: var(--cyan);
  font: 700 clamp(2rem, 3vw, 3rem) var(--font-mono);
  text-shadow: 0 0 18px rgba(0, 242, 254, 0.22);
}

.signal-copy span:last-child {
  color: var(--muted);
}

.dashboard-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.45fr) minmax(340px, 0.95fr);
  min-width: 0;
}

.grid-column {
  align-content: start;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.kpi-card,
.strip-card,
.insight-card,
.chart-hero-card,
.table-card,
.mini-quote-card,
.sector-card,
.chart-side-card,
.note-card {
  padding: 24px;
}

.strip-card {
  display: grid;
  gap: 10px;
  min-height: 138px;
}

.strip-card strong {
  color: var(--text);
  font: 700 clamp(1.1rem, 1.7vw, 1.55rem) var(--font-display);
  letter-spacing: 0.05em;
}

.strip-card p {
  color: var(--muted);
  font-family: var(--font-mono);
  line-height: 1.6;
}

.kpi-card {
  min-height: 188px;
}

.kpi-card::before,
.strip-card::before,
.chart-hero-card::before,
.table-card::before,
.mini-quote-card::before,
.sector-card::before,
.chart-side-card::before,
.note-card::before,
.insight-card::before,
.command-stage::before {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.72), rgba(5, 255, 197, 0.2), transparent 85%);
  border: 0;
  content: "";
  height: 2px;
  left: 24px;
  top: 0;
  width: calc(100% - 48px);
}

.card-label,
.section-title {
  margin-bottom: 12px;
}

.kpi-value {
  color: var(--text);
  display: block;
  font: 700 clamp(2rem, 3vw, 3.25rem) var(--font-display);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-shadow: 0 0 18px rgba(0, 242, 254, 0.16);
}

.kpi-value--primary {
  background: linear-gradient(90deg, #d7f6ff 0%, #00f2fe 55%, #05ffc5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.positive {
  color: var(--green);
  text-shadow: 0 0 14px rgba(5, 255, 197, 0.2);
}

.negative {
  color: var(--red);
  text-shadow: 0 0 14px rgba(255, 79, 129, 0.18);
}

.kpi-subline,
.signal-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.kpi-subline {
  margin-top: 14px;
}

.kpi-subline span,
.signal-row span {
  color: var(--muted);
}

.kpi-subline strong,
.signal-row strong {
  font-family: var(--font-mono);
  text-align: right;
}

.progress-rail {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  background: linear-gradient(90deg, rgba(0, 119, 182, 0.4), rgba(0, 242, 254, 0.92));
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.24);
  display: block;
  height: 100%;
}

.progress-fill--cash {
  background: linear-gradient(90deg, rgba(5, 255, 197, 0.25), rgba(5, 255, 197, 0.9));
  box-shadow: 0 0 18px rgba(5, 255, 197, 0.24);
}

.trend-indicator {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  margin-top: 16px;
}

.trend-dot {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
  height: 10px;
  width: 10px;
}

.signal-list {
  display: grid;
  gap: 14px;
}

.panel-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
  min-width: 0;
}

.panel-badge {
  border: 1px solid rgba(0, 242, 254, 0.12);
  border-radius: 999px;
  font: 11px var(--font-mono);
  min-height: 34px;
  padding: 8px 14px;
}

.chart-hero-layout {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  min-width: 0;
}

.chart-shell {
  height: 320px;
  min-width: 0;
  position: relative;
}

.chart-shell--bar {
  height: 270px;
}

.hero-chart-section {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  padding: 26px;
}

.hero-chart-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.hero-chart-header h2 {
  color: var(--text);
  font: 700 clamp(1.45rem, 2vw, 2.1rem) var(--font-display);
  letter-spacing: 0.04em;
}

.hero-chart-copy {
  color: var(--muted);
  font-family: var(--font-mono);
  line-height: 1.7;
  margin-top: -4px;
}

.hero-chart-layout {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
}

.hero-chart-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(3, 14, 28, 0.38));
  border: 1px solid rgba(0, 242, 254, 0.08);
  border-radius: 22px;
  min-width: 0;
  padding: 18px 18px 14px;
  position: relative;
}

.chart-shell--hero {
  height: 380px;
}

.chart-status-banner {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 242, 254, 0.12);
  border-radius: 14px;
  color: var(--muted);
  display: flex;
  font: 12px var(--font-mono);
  margin-bottom: 12px;
  min-height: 46px;
  padding: 0 14px;
}

.chart-status-banner--empty {
  border-color: rgba(255, 255, 255, 0.12);
}

.chart-status-banner--degraded {
  border-color: rgba(255, 196, 92, 0.26);
  color: #ffd791;
}

.hero-chart-side {
  display: grid;
  gap: 16px;
}

.hero-callout {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(0, 242, 254, 0.08);
  border-radius: 20px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.hero-callout--positive {
  box-shadow: inset 0 0 0 1px rgba(5, 255, 197, 0.04);
}

.hero-callout--negative {
  box-shadow: inset 0 0 0 1px rgba(255, 79, 129, 0.04);
}

.hero-callout__list {
  display: grid;
  gap: 12px;
}

.hero-callout__empty {
  color: var(--muted);
  font: 12px var(--font-mono);
  line-height: 1.7;
}

.hero-move {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.hero-move.positive {
  border-color: rgba(5, 255, 197, 0.14);
}

.hero-move.negative {
  border-color: rgba(255, 79, 129, 0.14);
}

.hero-move__head,
.hero-move__meta {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.hero-move__head strong,
.hero-move__meta strong {
  font-family: var(--font-mono);
}

.hero-move__head span {
  font: 700 12px var(--font-mono);
}

.hero-move__meta span {
  color: var(--muted);
  font-size: 12px;
}

.weight-board {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.weight-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(120px, 0.85fr) minmax(140px, 1fr) auto;
}

.weight-rank {
  color: rgba(0, 242, 254, 0.55);
  font: 700 18px var(--font-mono);
}

.weight-copy {
  display: grid;
  gap: 4px;
}

.weight-copy strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
}

.weight-copy span {
  color: var(--muted);
  font-size: 12px;
}

.weight-meter {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07));
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.weight-meter__fill {
  background: linear-gradient(90deg, rgba(0, 119, 182, 0.7), rgba(0, 242, 254, 0.95), rgba(5, 255, 197, 0.75));
  border-radius: inherit;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.22);
  display: block;
  height: 100%;
}

.weight-metrics {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weight-metrics strong,
.weight-metrics span {
  font-family: var(--font-mono);
}

.quote-grid.compact {
  display: grid;
  gap: 12px;
}

.mini-quote-card .quote-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-card {
  display: grid;
  gap: 10px;
  min-height: 112px;
  min-width: 0;
  padding: 18px;
}

.quote-card strong {
  display: block;
  margin-top: 4px;
}

.ticker {
  color: var(--cyan);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.quote-card strong,
.table-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.sector {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.quote-price {
  color: var(--text);
  font: 700 24px var(--font-mono);
}

.quote-meta {
  font: 12px var(--font-mono);
}

.source-pill {
  border: 1px solid rgba(0, 242, 254, 0.14);
  font: 10px var(--font-mono);
  justify-self: start;
  min-height: 28px;
  padding: 0 10px;
}

.sector-board {
  display: grid;
  gap: 14px;
}

.sector-row {
  display: grid;
  gap: 10px;
}

.sector-row__head,
.sector-row__meta {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.sector-row__head strong,
.sector-row__meta strong,
.sector-row__meta span,
.sector-rank {
  font-family: var(--font-mono);
}

.sector-rank {
  color: rgba(0, 242, 254, 0.55);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.sector-row__head strong {
  color: var(--text);
  flex: 1;
}

.sector-row__bar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.sector-row__bar span {
  background: linear-gradient(90deg, rgba(0, 119, 182, 0.68), rgba(0, 242, 254, 0.92), rgba(5, 255, 197, 0.72));
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.16);
  display: block;
  height: 100%;
}

.sector-row__meta span {
  color: var(--muted);
}

.table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.holdings-table {
  border-collapse: separate;
  border-spacing: 0 10px;
  min-width: 980px;
  width: 100%;
}

.holdings-table thead th {
  color: rgba(208, 229, 255, 0.65);
  font: 11px var(--font-mono);
  letter-spacing: 0.14em;
  padding: 0 14px 10px;
  text-transform: uppercase;
}

.holdings-table tbody tr {
  background: var(--bg-row);
  box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.holdings-table tbody tr:nth-child(even) {
  background: var(--bg-row-alt);
}

.holdings-table tbody tr:hover {
  box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.16), 0 0 24px rgba(0, 242, 254, 0.1);
  transform: translateY(-1px);
}

.holdings-table td {
  padding: 16px 14px;
  vertical-align: middle;
}

.holdings-table td:first-child,
.holdings-table th:first-child {
  border-bottom-left-radius: 14px;
  border-top-left-radius: 14px;
}

.holdings-table td:last-child,
.holdings-table th:last-child {
  border-bottom-right-radius: 14px;
  border-top-right-radius: 14px;
}

.text-left {
  text-align: left;
}

.text-right {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.table-legend {
  align-items: center;
  display: flex;
  gap: 10px;
}

.table-legend em {
  color: var(--muted);
  font: 11px var(--font-mono);
  font-style: normal;
}

.legend-dot {
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.legend-dot.positive {
  background: var(--green);
  box-shadow: 0 0 10px rgba(5, 255, 197, 0.35);
}

.legend-dot.negative {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 79, 129, 0.35);
}

.note-list {
  display: grid;
  gap: 10px;
  line-height: 1.7;
  list-style: none;
}

.note-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 242, 254, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}

.panel.band,
.panel {
  margin-top: 20px;
  padding: 24px;
}

.research-grid,
.tag-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.research-grid > div,
.tag-grid span {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 242, 254, 0.1);
  border-radius: 16px;
  padding: 16px;
}

.research-grid strong {
  display: block;
  font-family: var(--font-mono);
  margin-top: 8px;
}

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

.tag-grid span {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.footer-note {
  font-size: 12px;
  margin-top: 18px;
  text-align: right;
}

.modal-overlay {
  align-items: center;
  background: rgba(1, 6, 16, 0.78);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 999;
}

.modal-box {
  max-height: min(90vh, 880px);
  max-width: 980px;
  overflow-y: auto;
  padding: 28px;
  width: min(96vw, 980px);
}

.modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-close-btn {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--cyan);
}

.holding-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 92px minmax(120px, 1.15fr) 92px 108px 132px minmax(110px, 1fr) 40px;
  margin-bottom: 8px;
}

.btn-remove-holding {
  background: rgba(255, 79, 129, 0.08);
  border: 1px solid rgba(255, 79, 129, 0.24);
  border-radius: 12px;
  color: var(--red);
  cursor: pointer;
  font-size: 20px;
  height: 40px;
  width: 40px;
}

.btn-remove-holding:hover {
  box-shadow: 0 0 18px rgba(255, 79, 129, 0.18);
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@media (max-width: 1180px) {
  .hud-navbar {
    gap: 14px;
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .hud-ornament.right {
    display: none;
  }

  .hud-meta {
    align-items: flex-start;
    flex-direction: column;
    grid-column: 1 / -1;
  }

  .nav-user,
  .hud-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    justify-content: flex-start;
  }
}

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

  .dashboard-grid {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  }

  .grid-column--right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .grid-column--right .mini-quote-card {
    grid-column: span 5;
  }

  .grid-column--right .sector-card {
    grid-column: span 3;
  }

  .grid-column--right .chart-side-card {
    grid-column: span 4;
  }

  .grid-column--right .note-card {
    grid-column: span 4;
  }

  .grid-column--right .news-sentiment-card {
    grid-column: span 8;
  }

  .chart-hero-layout {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  }

  .chart-shell {
    height: 280px;
  }

  .hero-chart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart-shell--hero {
    height: 340px;
  }
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .grid-column--left {
    grid-column: 1 / 2;
  }

  .grid-column--center {
    grid-column: 2 / 3;
  }

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

  .grid-column--right .mini-quote-card,
  .grid-column--right .sector-card,
  .grid-column--right .chart-side-card,
  .grid-column--right .note-card {
    grid-column: span 1;
  }

  .grid-column--right .news-sentiment-card {
    grid-column: 1 / -1;
  }

  .command-stage,
  .chart-hero-layout {
    grid-template-columns: 1fr;
  }

  .command-stage__pulse {
    justify-content: flex-start;
  }

  .hero-chart-header,
  .hero-chart-layout {
    grid-template-columns: 1fr;
  }

  .hero-chart-header {
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .dashboard-shell {
    padding: 14px 14px 22px;
  }

  .command-stage,
  .kpi-card,
  .chart-hero-card,
  .table-card,
  .mini-quote-card,
  .chart-side-card,
  .note-card,
  .panel,
  .hero-chart-section {
    padding: 20px;
  }

  .tabs,
  .nav-actions,
  .chip-row {
    width: 100%;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tabs a,
  .btn-manage,
  .btn-logout {
    flex: 1 1 180px;
  }

  .mini-quote-card .quote-grid.compact {
    grid-template-columns: 1fr;
  }

  .hero-chart-shell {
    padding: 14px;
  }

  .chart-shell--hero {
    height: 280px;
  }

  .hero-chart-copy {
    font-size: 12px;
  }

  .holdings-table {
    min-width: 820px;
  }

  /* News Sentiment Card */
  .news-sentiment-card {
    margin-top: 0;
  }

  .sentiment-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .sentiment-bullish {
    background: rgba(5, 255, 197, 0.15);
    color: #05FFC5;
    border: 1px solid rgba(5, 255, 197, 0.3);
  }

  .sentiment-bearish {
    background: rgba(255, 79, 129, 0.15);
    color: #FF4F81;
    border: 1px solid rgba(255, 79, 129, 0.3);
  }

  .sentiment-neutral {
    background: rgba(0, 242, 254, 0.15);
    color: #00F2FE;
    border: 1px solid rgba(0, 242, 254, 0.3);
  }

  .sentiment-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #d8f5eb;
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 242, 254, 0.05);
    border-radius: 8px;
    border-left: 3px solid #00F2FE;
  }

  .trend-alert {
    font-size: 13px;
    color: #FF4F81;
    padding: 8px 12px;
    background: rgba(255, 79, 129, 0.1);
    border-radius: 6px;
    margin-bottom: 12px;
  }

  .confidence-note {
    font-size: 11px;
    color: #7fa79b;
    margin-bottom: 12px;
  }

  .news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .news-item {
    padding: 10px 12px;
    background: rgba(0, 242, 254, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(0, 242, 254, 0.1);
  }

  a.news-item {
    color: inherit;
    display: block;
    text-decoration: none;
  }

  a.news-item:hover {
    border-color: rgba(0, 242, 254, 0.28);
    background: rgba(0, 242, 254, 0.07);
  }

  .news-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
  }

  .news-item__ticker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #00F2FE;
    font-weight: 600;
  }

  .news-item__impact {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
  }

  .news-item__impact.positive {
    background: rgba(5, 255, 197, 0.15);
    color: #05FFC5;
  }

  .news-item__impact.negative {
    background: rgba(255, 79, 129, 0.15);
    color: #FF4F81;
  }

  .news-item__impact.neutral {
    background: rgba(0, 242, 254, 0.15);
    color: #00F2FE;
  }

  .news-item__title {
    font-size: 13px;
    color: #d8f5eb;
    line-height: 1.4;
    margin-bottom: 4px;
  }

  .news-item__source {
    font-size: 11px;
    color: #7fa79b;
  }
}

@media (max-width: 820px) {
  .command-strip,
  .dashboard-grid,
  .research-grid,
  .tag-grid,
  .weight-row,
  .holding-row {
    grid-template-columns: 1fr;
  }

  .grid-column--right {
    grid-template-columns: 1fr;
  }

  .grid-column--right .mini-quote-card,
  .grid-column--right .sector-card,
  .grid-column--right .chart-side-card,
  .grid-column--right .note-card,
  .grid-column--right .news-sentiment-card {
    grid-column: auto;
  }

  .grid-column--left,
  .grid-column--center,
  .grid-column--right {
    grid-column: auto;
  }
}

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

.news-sentiment-card {
  margin-top: 0;
}

.sentiment-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sentiment-bullish {
  background: rgba(5, 255, 197, 0.15);
  color: #05FFC5;
  border: 1px solid rgba(5, 255, 197, 0.3);
}

.sentiment-bearish {
  background: rgba(255, 79, 129, 0.15);
  color: #FF4F81;
  border: 1px solid rgba(255, 79, 129, 0.3);
}

.sentiment-neutral {
  background: rgba(0, 242, 254, 0.15);
  color: #00F2FE;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.sentiment-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #d8f5eb;
  margin: 12px 0;
  padding: 12px;
  background: rgba(0, 242, 254, 0.05);
  border-radius: 8px;
  border-left: 3px solid #00F2FE;
}

.trend-alert {
  font-size: 13px;
  color: #FF4F81;
  padding: 8px 12px;
  background: rgba(255, 79, 129, 0.1);
  border-radius: 6px;
  margin-bottom: 12px;
}

.confidence-note {
  font-size: 11px;
  color: #7fa79b;
  margin-bottom: 12px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-item {
  padding: 10px 12px;
  background: rgba(0, 242, 254, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.1);
}

a.news-item {
  color: inherit;
  display: block;
  text-decoration: none;
}

a.news-item:hover {
  border-color: rgba(0, 242, 254, 0.28);
  background: rgba(0, 242, 254, 0.07);
}

.news-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.news-item__ticker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #00F2FE;
  font-weight: 600;
}

.news-item__impact {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.news-item__impact.positive {
  background: rgba(5, 255, 197, 0.15);
  color: #05FFC5;
}

.news-item__impact.negative {
  background: rgba(255, 79, 129, 0.15);
  color: #FF4F81;
}

.news-item__impact.neutral {
  background: rgba(0, 242, 254, 0.15);
  color: #00F2FE;
}

.news-item__title {
  font-size: 13px;
  color: #d8f5eb;
  line-height: 1.4;
  margin-bottom: 4px;
}

.news-item__source {
  font-size: 11px;
  color: #7fa79b;
}

/* Practical portfolio-first layout overrides. */
.hud-navbar {
  grid-template-columns: minmax(250px, 1fr) auto;
  padding: 14px 18px;
}

.hud-ornament {
  display: none;
}

.hud-meta {
  justify-content: flex-end;
}

.hud-clock-block {
  display: none;
}

.nav-brand {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: 0.05em;
  text-transform: none;
}

.nav-subtitle,
.hud-source {
  font-size: 13px;
}

.nav-user {
  align-items: flex-end;
}

.command-stage {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  padding: 22px 28px;
}

.command-stage__intro {
  gap: 12px;
}

.command-stage h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.glow-chip {
  min-height: 32px;
}

.signal-ring--quiet {
  height: 76px;
  width: 76px;
}

.signal-ring--quiet::before {
  inset: 16px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
}

.grid-column--center {
  grid-column: 1;
  grid-row: 1;
}

.grid-column--right {
  grid-column: 2;
  grid-row: 1;
}

.grid-column--left {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-column--left .kpi-card,
.grid-column--left .insight-card {
  min-height: 154px;
}

.holdings-priority-card,
.stock-news-card {
  padding: 24px;
}

.holding-focus-list,
.stock-news-list {
  display: grid;
  gap: 12px;
}

.holding-focus-card {
  align-items: center;
  background: rgba(0, 242, 254, 0.035);
  border: 1px solid rgba(0, 242, 254, 0.12);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(150px, 1.1fr) minmax(100px, 0.7fr) minmax(150px, 0.9fr) minmax(140px, 0.85fr);
  padding: 14px;
}

.holding-focus-card__main,
.holding-focus-card__price,
.holding-focus-card__today,
.holding-focus-card__total {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.holding-focus-card__main strong,
.holding-focus-card__price strong,
.holding-focus-card__today strong,
.holding-focus-card__total strong {
  color: var(--text);
  font-family: var(--font-display);
}

.holding-focus-card__main small,
.holding-focus-card__today small,
.holding-focus-card__total small,
.holding-focus-card__price span,
.holding-focus-card__today span,
.holding-focus-card__total span {
  color: var(--muted);
  font: 12px var(--font-mono);
}

.holding-focus-card__news {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  grid-column: 1 / -1;
  line-height: 1.45;
  padding-top: 10px;
}

.stock-news-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
}

.stock-news-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stock-news-block__title {
  align-items: center;
  display: flex;
  gap: 8px;
}

.stock-news-block__title strong {
  color: var(--text);
}

.news-item--empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .hud-navbar {
    grid-template-columns: 1fr;
  }

  .hud-meta,
  .nav-user,
  .nav-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

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

  .grid-column--center,
  .grid-column--right,
  .grid-column--left {
    grid-column: auto;
    grid-row: auto;
  }

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

@media (max-width: 900px) {
  .dashboard-shell {
    padding: 12px;
  }

  .command-stage,
  .command-strip,
  .holding-focus-card {
    grid-template-columns: 1fr;
  }

  .grid-column--left {
    grid-template-columns: 1fr;
  }

  .tabs,
  .nav-actions {
    gap: 8px;
  }

  .tabs a,
  .btn-manage,
  .btn-logout {
    min-height: 36px;
    padding: 0 12px;
  }
}

/* Unified product shell and portfolio-first overrides */
.shell-nav {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr) minmax(320px, 1fr);
  margin: 0 auto 18px;
  max-width: 1800px;
  padding: 18px 22px;
}

.shell-brand,
.shell-meta {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.shell-brand__title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 0.04em;
  line-height: 0.96;
}

.shell-brand__subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 64ch;
}

.shell-nav__tabs {
  align-items: center;
  align-self: center;
  flex-wrap: wrap;
}

.shell-meta {
  justify-items: end;
}

.shell-statusbar,
.shell-userbar,
.shell-usercopy,
.shell-action-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shell-statusbar {
  justify-content: flex-end;
}

.shell-status-item {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font: 12px var(--font-mono);
  gap: 6px;
}

.shell-status-item strong,
.shell-status-item em {
  color: var(--text);
  font-style: normal;
}

.shell-userbar {
  justify-content: flex-end;
}

.shell-usercopy {
  color: var(--muted);
  font: 12px var(--font-mono);
}

.shell-usercopy strong {
  color: var(--text);
  font-size: 14px;
}

.shell-action-group {
  justify-content: flex-end;
}

.shell-action-group .btn-secondary,
.shell-action-group .btn-logout,
.shell-action-group .btn-manage {
  min-height: 38px;
}

.command-stage {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.4fr);
}

.command-stage h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.command-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
}

.grid-column--left {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-column--center,
.grid-column--right {
  align-self: start;
}

.stock-news-card h2,
.news-sentiment-card h2 {
  line-height: 1.15;
}

.shell-page-container {
  margin: 0 auto;
  min-width: 0;
  width: min(100%, 1100px);
}

.settings-container,
.admin-container {
  margin: 0;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.settings-card,
.admin-card {
  background: rgba(6, 11, 24, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.settings-title,
.admin-title {
  color: var(--cyan);
  margin-bottom: 18px;
}

.section-label {
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin: 24px 0 14px;
  text-transform: uppercase;
}

.profile-info {
  color: #b9d4f8;
  margin: 4px 0;
}

.profile-info strong {
  color: #f5fbff;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.users-table th,
.users-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.users-table th {
  color: var(--cyan);
  font-size: 0.85rem;
}

.users-table td {
  color: #f5fbff;
  font-size: 0.9rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-form input,
.inline-form select {
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 6px;
  color: #f5fbff;
}

.btn-sm {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1280px) {
  .shell-nav {
    grid-template-columns: 1fr;
  }

  .shell-meta,
  .shell-statusbar,
  .shell-userbar,
  .shell-action-group {
    justify-items: start;
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .shell-nav {
    padding: 16px;
  }

  .shell-nav__tabs,
  .shell-action-group {
    width: 100%;
  }

  .shell-nav__tabs a,
  .shell-action-group .btn-secondary,
  .shell-action-group .btn-logout,
  .shell-action-group .btn-manage {
    flex: 1 1 180px;
  }

  .command-strip,
  .grid-column--left {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell-brand__title {
    font-size: 1.8rem;
  }

  .shell-statusbar,
  .shell-userbar,
  .shell-usercopy,
  .shell-action-group,
  .command-strip,
  .grid-column--left,
  .holding-focus-card {
    grid-template-columns: 1fr;
  }

  .shell-statusbar,
  .shell-userbar,
  .shell-usercopy,
  .shell-action-group {
    display: grid;
    justify-content: stretch;
  }

  .shell-nav__tabs a,
  .shell-action-group .btn-secondary,
  .shell-action-group .btn-logout,
  .shell-action-group .btn-manage {
    width: 100%;
  }

  .settings-card,
  .admin-card {
    padding: 22px 18px;
  }
}
