:root {
  --font-sans: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;

  --ink: #171717;
  --paper: #fafafa;
  --surface: #ffffff;
  --line: #ebebeb;
  --muted: #808080;
  --faint: #a3a3a3;
  --soft: #f4f4f6;
  --rail-avatar: #ebebeb;

  --ic-blue: #38598C;
  --ic-blue-text: #2f4e7d;
  --ic-blue-tint: #EAF1FB;
  --ic-green: #3F6B50;
  --ic-green-text: #31573F;
  --ic-green-tint: #EAF4ED;
  --ic-amber: #d97706;
  --ic-amber-text: #b45309;
  --ic-amber-tint: #fffbeb;
  --ic-hot: #A84B44;
  --ic-hot-text: #8F3E38;
  --ic-hot-tint: rgba(168, 75, 68, 0.08);

  --ring-subtle: rgba(0, 0, 0, 0.08) 0 0 0 1px;
  --ring-soft: rgb(235, 235, 235) 0 0 0 1px;
  --ring-toolbar: rgba(0, 0, 0, 0.06) 0 1px 0;
  --ring-search: rgba(0, 0, 0, 0.1) 0 0 0 1px;
  --ring-card: rgba(0, 0, 0, 0.08) 0 0 0 1px, 0 2px 2px rgba(0, 0, 0, 0.04), 0 8px 8px -8px rgba(0, 0, 0, 0.04);
  --ring-modal: rgba(0, 0, 0, 0.08) 0 0 0 1px, rgba(0, 0, 0, 0.22) 0 24px 64px -16px;
  --ring-live: rgba(63, 107, 80, 0.25) 0 0 0 1px;
  --ring-amber: rgba(180, 83, 9, 0.3) 0 0 0 1px;
  --ring-blue: rgba(56, 89, 140, 0.25) 0 0 0 1px;
  --ring-hot: rgba(168, 75, 68, 0.28) 0 0 0 1px;
  --focus-ring: rgba(56, 89, 140, 0.35) 0 0 0 2px;
}

@keyframes ic-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes ic-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@font-face {
  font-family: "Geist";
  src:
    url("/assets/Geist-Variable-DPGgOCY9.woff2") format("woff2-variations"),
    url("/assets/Geist-Variable-DPGgOCY9.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src:
    url("/assets/GeistMono-Variable-Vc9u_qg9.woff2") format("woff2-variations"),
    url("/assets/GeistMono-Variable-Vc9u_qg9.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.ic-ring-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--ring-card);
}

.ic-ring-card[data-pad="sm"] {
  padding: 12px;
}

.ic-ring-card[data-pad="md"] {
  padding: 14px;
}

.ic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ic-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  flex: 0 0 auto;
}

.ic-pill[data-variant="live"],
.ic-pill[data-variant="green"] {
  color: var(--ic-green-text);
  background: var(--ic-green-tint);
  box-shadow: var(--ring-live);
}

.ic-pill[data-variant="live"] .ic-pill-dot {
  background: var(--ic-green);
  animation: ic-pulse 2s infinite;
}

.ic-pill[data-variant="green"] .ic-pill-dot {
  background: var(--ic-green);
}

.ic-pill[data-variant="amber"] {
  color: var(--ic-amber-text);
  background: var(--ic-amber-tint);
  box-shadow: var(--ring-amber);
}

.ic-pill[data-variant="amber"] .ic-pill-dot {
  background: var(--ic-amber);
}

.ic-pill[data-variant="blue"] {
  color: var(--ic-blue-text);
  background: var(--ic-blue-tint);
  box-shadow: var(--ring-blue);
}

.ic-pill[data-variant="blue"] .ic-pill-dot {
  background: var(--ic-blue);
}

.ic-pill[data-variant="hot"] {
  color: var(--ic-hot-text);
  background: var(--ic-hot-tint);
  box-shadow: var(--ring-hot);
}

.ic-pill[data-variant="hot"] .ic-pill-dot {
  background: var(--ic-hot);
}

.ic-rail-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0;
}

.ic-rail-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-rail-button span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.ic-rail-button[data-active="true"] {
  color: var(--ink);
  background: var(--soft);
  box-shadow: var(--ring-soft);
  border-radius: 10px;
  padding: 8px 0;
}

.ic-topbar {
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--ring-toolbar);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.ic-topbar-title-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ic-topbar-lane {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ic-topbar-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ic-topbar h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.ic-topbar-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ic-toolbar {
  flex: 0 0 auto;
  background: var(--surface);
  box-shadow: rgba(0, 0, 0, 0.06) 0 1px 0;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
}

.ic-toolbar-spacer {
  flex: 1;
}

.ic-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 310px;
  max-width: 38vw;
  min-width: 150px;
  background: var(--paper);
  box-shadow: var(--ring-search);
  border-radius: 8px;
  padding: 7px 11px;
}

.ic-search:focus-within {
  box-shadow: var(--ring-search), var(--focus-ring);
}

.ic-search svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.ic-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
}

.ic-search button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
}
* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.4 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell-screen {
  position: relative;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.shell-rail {
  width: 78px;
  flex: 0 0 78px;
  background: var(--surface);
  box-shadow: color-mix(in srgb, var(--ink) 8%, transparent) -1px 0 0 0 inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 0;
  z-index: 6;
}

.shell-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--surface);
  display: grid;
  place-items: center;
  font: 700 14px/1 var(--font-mono);
  letter-spacing: 0;
  margin-bottom: 12px;
}

.shell-rail-spacer {
  flex: 1;
}

.shell-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--rail-avatar);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.shell-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shell-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.shell-loading,
.shell-blocked {
  margin: 24px;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  box-shadow: var(--ring-subtle);
  border-radius: 8px;
  padding: 14px 16px;
}

.shell-auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
}

.shell-auth-panel {
  width: min(360px, 100%);
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.shell-auth-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  display: grid;
  place-items: center;
  font: 700 15px/1 var(--font-mono);
  letter-spacing: 0;
}

.shell-auth-brand {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.shell-auth-panel h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

.shell-google-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--ring-search);
  text-decoration: none;
  font-weight: 600;
}

.shell-google-button:focus-visible,
.shell-signout:focus-visible,
.shell-secondary-action:focus-visible,
.shell-password-form input:focus-visible,
.shell-password-form button:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.shell-google-g {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  box-shadow: var(--ring-soft);
  font-weight: 700;
}

.shell-signout {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--ring-soft);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.shell-password-form {
  width: 100%;
  display: grid;
  gap: 12px;
}

.shell-password-form label {
  display: grid;
  gap: 5px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.shell-password-form input {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--ring-search);
  padding: 0 10px;
}

.shell-password-form button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
}

.shell-password-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.shell-auth-error {
  width: 100%;
  border-radius: 6px;
  background: var(--ic-hot-tint);
  color: var(--ic-hot-text);
  box-shadow: var(--ring-hot);
  padding: 9px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}

.shell-auth-divider {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.shell-auth-divider span {
  height: 1px;
  background: var(--line);
}

.shell-auth-divider b {
  font: inherit;
}

.shell-account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shell-secondary-action {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  box-shadow: var(--ring-soft);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.shell-password-dialog {
  position: relative;
  width: min(360px, 94vw);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--ring-modal);
  padding: 20px;
}

.shell-password-dialog h2 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

.shell-blocked strong {
  font: 700 12px/1 var(--font-mono);
  color: var(--ic-hot-text);
}

.shell-blocked span,
.shell-loading {
  color: var(--muted);
  font-size: 12.5px;
}

.shell-ticker-portal {
  position: absolute;
  left: 78px;
  right: 0;
  bottom: 44px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.shell-ticker-portal > * {
  pointer-events: auto;
}

.shell-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  backdrop-filter: blur(4px);
}

.shell-modal-card {
  position: relative;
  width: min(720px, 96vw);
  max-height: min(620px, 92vh);
  overflow: auto;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--ring-modal);
  padding: 20px;
  animation: ic-rise 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.shell-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9999px;
  background: var(--paper);
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  box-shadow: var(--ring-soft);
}
