@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Sora:wght@600;700;800&display=swap');

/* =========================================================
   CTM Softphone App — CTM brand light theme
   Palette: Sky Blue #01bdf6 · Nebula Blue #0796ca ·
   Dark Matter Blue #0e5e8c · Space Navy #16294f ·
   Supernova Lime #d6da01 · Galaxy Grey #333333
   ========================================================= */

:root {
  /* Surfaces — white / very light grey, Galaxy Grey text */
  --bg: #f4f7fb;
  --bg-2: #eaf1f8;
  --panel: #ffffff;
  --panel-2: #f6f9fc;
  --panel-3: #eef4fa;
  --line: rgba(22, 41, 79, .12);
  --line-2: rgba(22, 41, 79, .07);
  /* Stronger separators between widgets and between activity rows. */
  --line-strong: rgba(22, 41, 79, .55);
  --divider: rgba(22, 41, 79, .40);

  /* Brand blues */
  --accent: #0796ca;      /* Nebula Blue */
  --accent-2: #0e5e8c;    /* Dark Matter Blue */
  --accent-3: #01bdf6;    /* Sky Blue */
  --navy: #16294f;        /* Space Navy */
  --highlight: #d6da01;   /* Supernova Lime */
  --highlight-ink: #16294f;

  /* Text */
  --text: #16294f;        /* Space Navy for headings/strong */
  --text-2: #333333;      /* Galaxy Grey body */
  --muted: #5c7392;
  --muted-2: #7d92ab;

  /* Status */
  --good: #0f9d58;
  --warn: #c77700;
  --bad: #d92d20;
  --violet: #7c3aed;
  --radius: 14px;
  --phone-w: 360px;
  --ops-h: 300px;
  --shadow: 0 18px 50px rgba(22, 41, 79, .10);
  --shadow-sm: 0 4px 16px rgba(22, 41, 79, .07);
  --grad-brand: linear-gradient(135deg, #01bdf6 0%, #0796ca 45%, #16294f 100%);
  --font-ui: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Sora", "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

body {
  line-height: 1.45;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--highlight);
  color: #0f172a;
}

.btn-primary:hover {
  background: #f1fb63;
}

.btn-full {
  width: 100%;
}

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
}

.alert-error {
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .22);
  color: var(--bad);
}

.login-oauth-block {
  margin-bottom: 18px;
}

.login-oauth-block .btn {
  text-align: center;
}

.login-oauth-note {
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.5;
}

.login-oauth-block + .login-advanced {
  margin-top: 4px;
}

.phone-error {
  margin: 0 auto 12px;
  max-width: 460px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .22);
  color: var(--bad);
}

.phone-error a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}

/* Login */

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(1, 189, 246, .18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(214, 218, 1, .10), transparent 24%),
    linear-gradient(135deg, #eaf4fb 0%, #f7fbff 55%, #eef5fb 100%);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(340px, 1.1fr) minmax(430px, .9fr);
  gap: 28px;
  min-height: 100vh;
  align-items: center;
  padding: 36px;
}

.login-hero,
.login-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 46px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
    var(--grad-brand);
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, transparent 0 58%, rgba(214, 218, 1, .18) 58% 76%, transparent 76%);
  pointer-events: none;
}

.login-hero-brand,
.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.login-hero-brand {
  margin-bottom: 26px;
  font-size: 20px;
  font-weight: 900;
}

.login-kicker {
  color: var(--highlight);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.login-hero h1 {
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 82px);
  line-height: .94;
  font-weight: 950;
  letter-spacing: -.05em;
}

.login-hero-copy {
  margin-top: 24px;
  max-width: 560px;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
  line-height: 1.5;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.login-feature-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(22, 41, 79, .06));
  color: #ffffff;
}

.login-feature-label {
  display: block;
  margin-bottom: 10px;
  color: var(--highlight);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-feature-card strong {
  font-size: 16px;
  line-height: 1.45;
  color: #ffffff;
}

.login-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.login-inline-note {
  margin-top: 20px;
  width: fit-content;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.login-check-item {
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
}

.login-hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .9;
  pointer-events: none;
}

.login-hero-orb-a {
  top: 56px;
  right: 62px;
  width: 124px;
  height: 124px;
  background: radial-gradient(circle, rgba(214,218,1,.34), transparent 68%);
}

.login-hero-orb-b {
  right: 166px;
  bottom: 64px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(214,218,1,.16), transparent 72%);
}

.login-card {
  width: 100%;
  padding: 30px;
  background: var(--panel);
}

.login-logo {
  margin-bottom: 12px;
}

.login-logo h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
}

.logo-mark {
  font-size: 24px;
  color: var(--accent);
}

.login-card-copy {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-section {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.login-section-compact {
  margin-top: 12px;
}

.login-section-head {
  margin-bottom: 14px;
}

.login-section-head h2 {
  font-size: 16px;
  font-weight: 900;
}

.login-section-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.login-advanced {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
  padding: 14px 16px;
}

.login-advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.field {
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field {
  flex: 1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field-help {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(7, 150, 202, .16);
  background: #ffffff;
}

.login-submit {
  min-height: 54px;
  margin-top: 4px;
}

.remember-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.remember-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* Desk */

.desk-page {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(1,189,246,.10), transparent 26%),
    linear-gradient(180deg, #f4f7fb 0%, #e9f1f8 100%);
}

.phone-panel {
  width: var(--phone-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  border-right: 1px solid var(--line);
  box-shadow: inset -1px 0 0 rgba(22,41,79,.03);
}

.phone-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--line-2);
}

.agent-name {
  color: var(--ink, #16294f);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-status-text {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.phone-embed-wrapper {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  margin: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

ctm-phone-embed {
  display: block;
  width: 100%;
  height: calc(100% + 140px);
}

.status-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(92,115,146,.14);
}

.status-dot-unknown { background: #5c7392; box-shadow: 0 0 0 3px rgba(92,115,146,.14); }
.status-dot-ready { background: var(--good); box-shadow: 0 0 0 3px rgba(15,157,88,.16); }
.status-dot-connecting { background: var(--warn); box-shadow: 0 0 0 3px rgba(199,119,0,.16); }
.status-dot-incoming { background: var(--accent); box-shadow: 0 0 0 3px rgba(1,189,246,.18); }
.status-dot-oncall { background: var(--warn); box-shadow: 0 0 0 3px rgba(199,119,0,.16); }
.status-dot-wrapup { background: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,.16); }
.status-dot-error { background: var(--bad); box-shadow: 0 0 0 3px rgba(217,45,32,.14); }
.status-dot-active { background: var(--accent); box-shadow: 0 0 0 3px rgba(1,189,246,.18); }
.status-dot-dialer { background: var(--accent); box-shadow: 0 0 0 3px rgba(1,189,246,.18); }

.activity-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(1,189,246,.08), transparent 28%),
    linear-gradient(180deg, #f4f7fb 0%, #e9f1f8 100%);
}

.activity-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(1,189,246,.10), transparent 40%),
    linear-gradient(135deg, #ffffff, #f2f7fc);
}

.activity-header-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(340px, 1.08fr) minmax(320px, 1fr);
  grid-template-areas: "weather agents feed";
  gap: 14px;
  align-items: stretch;
}

.activity-header-primary,
.activity-header-secondary,
.activity-header-tertiary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.activity-header-primary { grid-area: weather; }
.activity-header-secondary { grid-area: feed; }
.activity-header-tertiary { grid-area: agents; }

.activity-eyebrow {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.weather-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 184px;
  padding: 12px 14px;
  border: 1px solid rgba(7,150,202,.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(1,189,246,.16), transparent 34%),
    linear-gradient(135deg, #ffffff, #eef6fc);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 12px 28px rgba(22,41,79,.08);
}

.weather-hero-loading {
  opacity: .9;
}

.weather-hero-topline,
.weather-hero-main,
.weather-hero-meta {
  display: flex;
  align-items: center;
}

.weather-hero-topline,
.weather-hero-meta {
  justify-content: space-between;
  gap: 12px;
}

.weather-hero-topline {
  margin-bottom: 0;
}

.weather-hero-kicker,
.weather-hero-source {
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.weather-hero-kicker {
  background: rgba(7,150,202,.14);
  color: var(--accent-2);
}

.weather-hero-source {
  background: var(--panel-2);
  color: var(--muted);
}

.weather-hero-main {
  gap: 12px;
  align-items: flex-end;
}

.weather-hero-temp {
  font-family: var(--font-display);
  font-size: clamp(32px, 2.8vw, 46px);
  line-height: 1;
  color: var(--navy);
}

.weather-hero-copy {
  min-width: 0;
}

.weather-hero-condition {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
}

.weather-hero-location {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.weather-hero-meta {
  margin-top: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.weather-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: #dce9fa;
  font-size: 11px;
  font-weight: 800;
}

.ops-feed-hero {
  min-height: 0;
}

.ops-panel-content {
  display: block;
  min-height: 0;
  max-height: 276px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(1,189,246,.10), transparent 28%),
    linear-gradient(135deg, #ffffff, #f4f9fd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 28px rgba(22,41,79,.08);
}

.ops-panel-content > p {
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
}

.ops-feed-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  max-height: 324px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(214,218,1,.10), transparent 28%),
    linear-gradient(135deg, #ffffff, #f4f9fd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 28px rgba(22,41,79,.08);
}

.ops-feed-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ops-feed-kicker,
.ops-feed-updated {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.ops-feed-kicker {
  background: rgba(7,150,202,.12);
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ops-feed-updated {
  background: rgba(22,41,79,.06);
  color: var(--muted);
}

.ops-feed-list {
  display: grid;
  gap: 6px;
  min-height: 140px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.ops-feed-item {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.ops-feed-item-link {
  color: inherit;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.ops-feed-item-link:hover {
  background: rgba(7,150,202,.08);
  border-color: rgba(7,150,202,.22);
  transform: translateY(-1px);
  text-decoration: none;
}

.ops-feed-item-label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ops-feed-item-detail {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.ops-feed-list::-webkit-scrollbar,
.ops-agent-list::-webkit-scrollbar {
  width: 8px;
}

.ops-feed-list::-webkit-scrollbar-track,
.ops-agent-list::-webkit-scrollbar-track {
  background: var(--panel-2);
  border-radius: 999px;
}

.ops-feed-list::-webkit-scrollbar-thumb,
.ops-agent-list::-webkit-scrollbar-thumb {
  background: rgba(22,41,79,.22);
  border-radius: 999px;
}

.activity-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(7,150,202,.10);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
}

.activity-meta-chip-muted {
  background: var(--panel-2);
  color: var(--muted);
}

.activity-meta-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
}

.activity-meta-link:hover {
  background: rgba(7,150,202,.14);
  text-decoration: none;
}

.tab-bar {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  background: #ffffff;
  border-bottom: 2px solid var(--line);
  flex-shrink: 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.tab:hover {
  background: rgba(7,150,202,.10);
  color: var(--navy);
}

.tab.active {
  background: rgba(7,150,202,.18);
  border-color: rgba(7,150,202,.20);
  color: var(--navy);
}

.tab-assessment {
  margin-left: 6px;
  background: rgba(214,218,1,.20);
  color: #6b6e00;
}

.tab-assessment:hover {
  background: rgba(214,218,1,.30);
}

.tab-assessment.active {
  background: var(--highlight);
  color: var(--navy);
}

.tab-disabled {
  opacity: .6;
}

.data-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f7fafd);
}

.data-content > p {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.data-panel {
  padding: 16px 20px;
}

.data-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.data-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
}

.data-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.data-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.data-updated {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.toolbar-button,
.action-button,
.filter-chip,
.sort-chip,
.toggle-chip,
.focus-card,
.ops-refresh {
  appearance: none;
  font: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.toolbar-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.toolbar-button:hover {
  background: rgba(255,255,255,.12);
}

.metric-grid,
.focus-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.metric-card,
.focus-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.focus-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.focus-card.active {
  border-color: rgba(7,150,202,.42);
  background: rgba(7,150,202,.08);
}

.metric-label,
.focus-card-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric-value,
.focus-card-value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  color: var(--navy);
}

.focus-card-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}

.panel-controls,
.panel-secondary-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.search-icon {
  color: var(--muted);
  font-size: 15px;
}

.search-field input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.filter-group,
.sort-group,
.toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip,
.sort-chip,
.toggle-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active {
  background: rgba(7,150,202,.14);
  border-color: rgba(7,150,202,.30);
  color: var(--accent-2);
}

.sort-chip.active,
.toggle-chip.active {
  background: rgba(214,218,1,.14);
  border-color: rgba(214,218,1,.28);
  color: #6b6e00;
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.table-meta {
  padding: 12px 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
}

.activity-table thead th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.activity-table tbody tr {
  border-bottom: 1px solid var(--line-2);
}

.activity-table tbody tr:hover {
  background: var(--panel-2);
}

.activity-table tbody tr.row-is-new {
  background: rgba(214,218,1,.08);
}

.activity-table td {
  padding: 14px 16px;
  vertical-align: top;
}

.time-cell {
  min-width: 90px;
  white-space: nowrap;
}

.time-primary {
  font-size: 13px;
  font-weight: 800;
}

.time-secondary {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.contact-primary {
  font-size: 14px;
  font-weight: 800;
}

.contact-secondary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.new-indicator {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(214,218,1,.18);
  color: #6b6e00;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.agent-pill,
.source-pill,
.status-badge-table,
.direction-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.agent-pill {
  margin-top: 8px;
  background: rgba(7,150,202,.14);
  color: #bfe7ff;
}

.source-pill {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(7,150,202,.12);
  color: #bfe7ff;
}

.summary-copy {
  min-width: 220px;
  max-width: 420px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}

.cell-muted {
  color: var(--muted);
  font-size: 12px;
}

.direction-inbound { background: rgba(34,197,94,.14); color: var(--good); }
.direction-outbound { background: rgba(168,85,247,.14); color: var(--violet); }
.direction-chat,
.direction-text { background: rgba(7,150,202,.12); color: #bfe7ff; }

.status-badge-table.status-answered { background: rgba(34,197,94,.14); color: var(--good); }
.status-badge-table.status-missed { background: rgba(248,113,113,.16); color: var(--bad); }
.status-badge-table.status-busy { background: rgba(249,115,22,.16); color: var(--warn); }
.status-badge-table.status-other { background: rgba(22,41,79,.10); color: var(--muted); }

.duration-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(214,218,1,.5);
  border-radius: 12px;
  background: rgba(214,218,1,.92);
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.action-button:hover {
  background: #f2fb70;
  text-decoration: none;
}

.action-button-secondary {
  background: rgba(7,150,202,.14);
  border-color: rgba(7,150,202,.20);
  color: var(--accent-2);
}

.action-button-secondary:hover {
  background: rgba(7,150,202,.22);
}

.message-status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.inline-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
}

.inline-message-error {
  background: rgba(248,113,113,.10);
  border: 1px solid rgba(248,113,113,.18);
  color: var(--bad);
}

.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  border: 1px dashed rgba(22,41,79,.16);
  border-radius: 18px;
  background: var(--panel-2);
  color: var(--muted);
  text-align: center;
}

.empty-state-icon {
  font-size: 32px;
}

.assessment-loading {
  padding: 56px 24px;
  text-align: center;
}

.assessment-loading-icon {
  margin-bottom: 16px;
  font-size: 34px;
}

.assessment-loading-title {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 800;
}

.assessment-loading-copy {
  color: var(--muted);
  font-size: 13px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.assess-spinner {
  width: 32px;
  height: 32px;
  margin: 24px auto 0;
  border: 3px solid rgba(22,41,79,.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* Ops panel */

.ops-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--text);
}

.ops-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 8px;
}

.ops-panel-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.ops-panel-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.ops-refresh {
  padding: 6px 8px;
  border: 1px solid rgba(22,41,79,.20);
  border-radius: 10px;
  background: rgba(30,41,59,.75);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.ops-inline-error {
  margin: 0 12px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(127,29,29,.35);
  color: var(--bad);
  font-size: 12px;
}

.ops-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px 8px;
}

.ops-metric-card {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.ops-metric-label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ops-metric-value {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.ops-agent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  max-height: 136px;
  padding: 0 12px 10px;
  overflow-y: auto;
}

.ops-agent-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.ops-agent-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(7,150,202,.16);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
}

.ops-agent-copy {
  min-width: 0;
  flex: 1;
}

.ops-agent-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-agent-name {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-agent-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.ops-agent-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.ops-agent-badge-available { background: rgba(34,197,94,.18); color: var(--good); }
.ops-agent-badge-busy { background: rgba(249,115,22,.18); color: var(--warn); }
.ops-agent-badge-chat { background: rgba(7,150,202,.14); color: #7dd3fc; }
.ops-agent-badge-offline { background: rgba(22,41,79,.12); color: var(--muted); }

.ops-ticker-shell {
  padding: 8px 0 10px;
  border-top: 1px solid rgba(22,41,79,.09);
}

.ops-ticker-shell-hero {
  margin-top: auto;
  padding: 6px 0 0;
  border-top-color: rgba(22,41,79,.08);
}

.ops-ticker-label {
  padding: 0 12px 6px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ops-ticker-track {
  overflow: hidden;
  white-space: nowrap;
}

.ops-ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-left: 12px;
  animation: ops-scroll 42s linear infinite;
}

.ops-ticker-item {
  color: var(--text);
  font-size: 11px;
}

.ops-ticker-item strong {
  color: #93c5fd;
}

@keyframes ops-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Responsive */

@media (max-width: 1180px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .login-hero {
    padding: 32px 26px;
  }

  .login-hero h1 {
    max-width: 12ch;
    font-size: clamp(42px, 10vw, 62px);
  }

  .login-feature-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .panel-controls,
  .panel-secondary-controls,
  .data-toolbar,
  .activity-header {
    flex-direction: column;
    align-items: stretch;
  }

  .activity-header-meta,
  .data-toolbar-actions {
    justify-content: flex-start;
  }

  .activity-header-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "weather"
      "agents"
      "feed"
      "meta";
  }

  .weather-hero {
    min-height: 0;
  }

  .weather-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .desk-page {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .phone-panel {
    width: 100%;
    height: 760px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .ops-panel-content {
    min-height: 240px;
  }

  .activity-table {
    min-width: 860px;
  }

  .field-row {
    flex-direction: column;
  }

  .weather-hero {
    padding: 16px;
  }

  .weather-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .weather-hero-condition {
    font-size: 22px;
  }
}

/* ── ESPN sports ticker ─────────────────────────────────────── */
.sports-ticker {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.sports-ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sports-ticker-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sports-ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(7, 150, 202, .18);
}

.sports-ticker-leagues {
  display: inline-flex;
  gap: 4px;
}

.sports-league {
  min-width: 30px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .15s ease;
}

.sports-league:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.sports-league.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.sports-ticker-track-wrap {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.sports-ticker-track {
  display: flex;
  gap: 10px;
  padding: 8px;
  width: max-content;
  animation: sports-scroll 45s linear infinite;
}

.sports-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes sports-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.sports-game {
  flex: 0 0 auto;
  min-width: 172px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.sports-game-empty {
  min-width: 240px;
  color: var(--muted);
  font-size: 12px;
  align-items: center;
  justify-content: center;
}

.sports-game-league {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.sports-game-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sports-team {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  font-weight: 700;
}

.sports-team.is-winner {
  color: var(--navy);
}

.sports-team-abbr {
  font-size: 13px;
  font-weight: 900;
}

.sports-team-score {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.sports-game-at {
  color: var(--muted-2);
  font-size: 11px;
}

.sports-game-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sports-game-status.is-live {
  color: var(--bad);
}

.sports-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bad);
  animation: sports-pulse 1.4s ease-in-out infinite;
}

@keyframes sports-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ── Phone number lookup (IPQS) ─────────────────────────────── */
.lookup-widget {
  margin: 10px 12px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.lookup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lookup-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}

.lookup-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(7, 150, 202, .10);
}

.lookup-form {
  display: flex;
  gap: 6px;
}

.lookup-input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.lookup-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(7, 150, 202, .16);
  background: #ffffff;
}

.lookup-btn {
  flex: 0 0 auto;
  padding: 0 14px;
  min-height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}

.lookup-btn:hover { background: var(--accent-2); }
.lookup-btn:disabled { opacity: .6; cursor: default; }

.lookup-result {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

.lookup-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lookup-number {
  font-size: 14px;
  font-weight: 900;
  color: var(--navy);
}

.lookup-score {
  font-size: 15px;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
}

.lookup-score small { font-size: 10px; font-weight: 700; opacity: .7; }
.lookup-score.is-good { background: rgba(15, 157, 88, .12); color: var(--good); }
.lookup-score.is-warn { background: rgba(199, 119, 0, .14); color: var(--warn); }
.lookup-score.is-bad  { background: rgba(217, 45, 32, .12); color: var(--bad); }

.lookup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
}

.lookup-grid > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.lookup-grid span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.lookup-grid strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lookup-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.lookup-flag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.lookup-flag.is-warn { background: rgba(217, 45, 32, .10); color: var(--bad); }

.lookup-error,
.lookup-loading {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.lookup-error { color: var(--bad); }

/* ── Doom (external embed) tab ──────────────────────────────── */
.tab-doom {
  margin-left: 6px;
  background: rgba(7, 150, 202, .10);
  color: var(--accent-2);
}

.tab-doom:hover { background: rgba(7, 150, 202, .16); }
.tab-doom.active { background: var(--accent); color: #ffffff; }

.tab-embed {
  background: rgba(7, 150, 202, .10);
  color: var(--accent-2);
}

.tab-embed:hover { background: rgba(7, 150, 202, .16); }
.tab-embed.active { background: var(--accent); color: #ffffff; }

/* Let a full-app embed (Doom/Quake) fill the entire data area edge-to-edge. */
.data-content.is-embed {
  padding: 0;
  overflow: hidden;
  background: #0b0f14;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.embed-hint {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--navy);
  color: #cfe0f5;
  font-size: 12px;
  letter-spacing: .01em;
}

.embed-hint kbd {
  background: rgba(255,255,255,.14);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: monospace;
  font-size: 11px;
}

.embed-frame {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  height: 100%;
  /* Fit the available area exactly. Responsive embeds (Retro, Pac-Man,
     Breakout) fill this happily. The embedded game sizes its own canvas,
     so forcing a tall min-height only pushes its bottom out of view. */
  min-height: 0;
  border: none;
  background: #0b0f14;
}

/* ── Layout: compact header, big game/data panel ────────────────
   The right column is a flex stack: header (auto) + tab bar (auto)
   + .data-content (flex:1). The header is capped to a compact
   height so the game / call-log panel gets the bulk of the height.
   Widgets fill their card without being stretched to the tallest. */

/* Header sits flush to the column edges (no outer padding). */
.activity-header {
  padding: 8px 12px;
}

.activity-header-main {
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Cards align to the top and take only the height they need. */
  align-items: start;
}

.activity-header-primary,
.activity-header-secondary,
.activity-header-tertiary {
  padding: 8px;
  /* Cap the header card height; contents scroll if they overflow.
     Kept intentionally compact so the call log / game screen below
     gets the bulk of the vertical space. Titles now live inside each
     widget (no separate eyebrow row), so the cap can be smaller. */
  height: 168px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Each inner widget fills its capped card (no gap below). */
.activity-header-primary > .weather-hero,
.activity-header-secondary > .ops-feed-hero,
.activity-header-tertiary > .ops-panel-content {
  flex: 1 1 auto;
  min-height: 0;
}

.weather-hero {
  min-height: 0;
  gap: 8px;
}

/* Remove the old hard caps that were cropping widget content. */
.ops-panel-content {
  max-height: none;
  display: flex;
  flex-direction: column;
}

.ops-panel-content > .ops-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.ops-agent-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Ops-feed card fills its column and scrolls internally. */
.activity-header-secondary > .ops-feed-hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ops-feed-card {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

/* Tab bar + data panel reach the column edges too. */
.tab-bar {
  padding: 10px 12px;
}

.data-content {
  min-height: 20vh;
}

/* ── Sports ticker strip (full-width band under the header) ──────
   Sits between the top-3 widgets and the tab bar, spanning the whole
   column width, with a longer continuous scroll. */
.sports-ticker-strip-host {
  padding: 6px 12px 0;
}

.sports-ticker-strip-host .sports-ticker-strip {
  margin-top: 0;
  border-top: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.sports-ticker-strip .sports-ticker-head {
  margin-bottom: 0;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.sports-ticker-strip .sports-ticker-leagues {
  flex-wrap: nowrap;
}

.sports-ticker-strip .sports-ticker-track-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  background: transparent;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

/* Longer, slower scroll to show more of the slate. */
.sports-ticker-strip .sports-ticker-track {
  animation-duration: 90s;
}

.sports-ticker-loading {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* ── News feed: category filters + source badges ─────────────── */
.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.news-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  margin-bottom: 0;
  min-width: 0;
  overflow: hidden;
}

.news-filter {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text-muted, #5b6b86);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.news-filter:hover {
  background: rgba(7,150,202,.08);
  border-color: rgba(7,150,202,.22);
}

.news-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Compact single-line news rows to fit more headlines. */
.news-feed-card .ops-feed-list {
  gap: 6px;
}

.news-feed-card .ops-feed-item {
  padding: 7px 10px;
  gap: 3px;
  border-radius: 10px;
}

.news-feed-card .ops-feed-item-label {
  font-size: 10px;
}

.news-feed-card .ops-feed-item-detail,
.news-feed-card .ops-feed-item-link .ops-feed-item-detail {
  font-size: 12.5px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feed-card .ops-feed-updated {
  font-size: 9px;
  padding: 3px 8px;
  flex: 0 0 auto;
}

.ops-feed-item-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.news-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(7,150,202,.12);
  color: var(--accent-2, #0796ca);
}

.news-source-tech    { background: rgba(1,189,246,.14); color: #0e5e8c; }
.news-source-hacker  { background: rgba(214,218,1,.22);  color: #6b6d00; }
.news-source-music   { background: rgba(155,89,182,.14); color: #6f3b8f; }
.news-source-culture { background: rgba(231,126,66,.16); color: #9a4a17; }
.news-source-world   { background: rgba(22,41,79,.10);   color: #16294f; }
.news-source-custom  { background: rgba(7,150,202,.12);  color: #0796ca; }

/* ── Forms tab: submission cards with field/value grids ───────── */
.form-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.form-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(1,189,246,.14);
  color: #0e5e8c;
}

.form-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.form-date {
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

.form-card-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.contact-primary {
  font-weight: 700;
  color: var(--text);
}

.contact-secondary {
  color: var(--accent-2, #0796ca);
  font-weight: 600;
}

.form-field-count {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22,41,79,.06);
}

.form-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6f9fd;
  border: 1px solid rgba(219,228,238,.7);
  min-width: 0;
}

.form-field-empty {
  grid-column: 1 / -1;
  background: transparent;
  border-style: dashed;
}

.form-field-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}

.form-field-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.form-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.form-meta-chip {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(22,41,79,.05);
  border-radius: 999px;
  padding: 3px 9px;
}

.form-meta-chip span {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 4px;
  color: var(--accent-2, #0796ca);
}

/* ── Accentuated separators ─────────────────────────────────────
   Thicker, darker rules between the top widgets and between the
   individual activity rows (calls / texts / forms). */
.activity-header-primary,
.activity-header-secondary,
.activity-header-tertiary {
  border: 1.5px solid var(--line-strong);
}

/* Line between the top-row widgets and the rows below. */
.activity-header {
  border-bottom: 2px solid var(--line-strong);
}

/* Divider between the sports strip / tab bar and the data panel. */
.tab-bar {
  border-bottom: 2px solid var(--line-strong);
}

.sports-ticker-strip-host .sports-ticker-strip {
  border: 1.5px solid var(--line-strong);
}

/* Individual activity rows in the calls / texts tables. */
.activity-table tbody tr,
.activity-table tbody tr td {
  border-bottom: 2px solid var(--divider);
}

.activity-table tbody tr:last-child,
.activity-table tbody tr:last-child td {
  border-bottom: 0;
}

.activity-table thead th {
  border-bottom: 2px solid var(--line-strong);
}

/* Individual form submission cards. */
.form-card {
  border: 1.5px solid var(--divider);
}

.form-card + .form-card {
  margin-top: 2px;
}

.form-card-head {
  border-bottom: 1.5px solid var(--divider);
}

.form-card-meta {
  border-top: 1.5px solid var(--divider);
}

/* ── Login: connect steps placed inside the action card ───────── */
.login-steps-head {
  margin-top: 4px;
  margin-bottom: 12px;
}

.login-steps-head h2 {
  font-size: 16px;
  font-weight: 900;
}

.login-steps-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.login-card .login-checklist {
  margin-top: 0;
  margin-bottom: 20px;
  gap: 8px;
}

.login-card .login-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.4;
}

.login-step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.login-card .login-section-head:last-child {
  margin-bottom: 0;
}

/* ── Ticker: source toggle (Sports / Markets) + market quotes ──── */
.ticker-source-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  flex: 0 0 auto;
}

.ticker-source {
  border: 0;
  background: transparent;
  color: var(--text-muted, #5b6b86);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.ticker-source:hover { background: rgba(7,150,202,.08); }

.ticker-source.is-active {
  background: var(--accent);
  color: #ffffff;
}

/* Market quotes reuse the sports-game chip layout. */
.market-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.market-quote-name {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}

.market-quote-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.market-quote-change {
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.market-quote-up .market-quote-change { color: #128a3a; }
.market-quote-down .market-quote-change { color: #c0392b; }
.market-quote-empty { color: var(--muted); font-size: 12px; font-weight: 600; }

/* ── Ticker: compact league dropdown (reclaims space for tickers) ─ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ticker-league-select {
  display: inline-flex;
  flex: 0 0 auto;
}

.ticker-league-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: #ffffff
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235b6b86' d='M0 0h10L5 6z'/%3E%3C/svg%3E")
    no-repeat right 9px center;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 24px 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 130px;
}

.ticker-league-select select:hover {
  border-color: rgba(7,150,202,.35);
}

/* Keep the head compact: source toggle + league select + track. */
.sports-ticker-strip .sports-ticker-head {
  gap: 8px;
}
