/* Operations dashboard only. Shared comments styles remain untouched. */
body.operations-page {
  --ink: #10244a;
  --ink-soft: #385176;
  --teal: #0b78f0;
  --teal-dark: #1265d8;
  --teal-soft: #eaf4ff;
  --teal-faint: #f5faff;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #f8faff;
  --line: #dce7f5;
  --line-strong: #c8d9ee;
  --muted: #7183a2;
  --amber: #e88626;
  --amber-soft: #fff4e8;
  --red: #db5575;
  --red-soft: #fff0f5;
  --green: #08a88a;
  --green-soft: #e8fbf7;
  --blue-soft: #eaf4ff;
  --purple-soft: #f0edff;
  --shadow-sm: 0 12px 32px rgba(36, 67, 112, 0.08), 0 2px 7px rgba(36, 67, 112, 0.04);
  --shadow-lg: 0 26px 70px rgba(25, 53, 96, 0.18);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, system-ui, sans-serif;
}

.operations-page .page-atmosphere {
  background:
    radial-gradient(circle at 5% 4%, rgba(11, 120, 240, 0.13), transparent 25rem),
    radial-gradient(circle at 96% 16%, rgba(8, 168, 138, 0.09), transparent 23rem),
    linear-gradient(rgba(29, 79, 145, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 79, 145, 0.024) 1px, transparent 1px);
  background-size: auto, auto, 38px 38px, 38px 38px;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.7) 62%, transparent 100%);
}

.operations-page .skip-link { background: var(--teal-dark); }

.operations-page .site-header {
  border-bottom: 1px solid rgba(220, 231, 245, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 26px rgba(38, 67, 111, 0.035);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.operations-page .header-inner,
.operations-page .dashboard,
.operations-page .site-footer {
  width: min(1500px, calc(100% - 56px));
}

.operations-page .header-inner {
  min-height: 78px;
  gap: 28px;
}

.operations-page .brand { gap: 11px; }

.operations-page .brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  background: transparent;
  box-shadow: 0 10px 22px rgba(11, 120, 240, 0.2);
}

.operations-page .brand-mark::after {
  content: none;
}

.operations-page .brand-copy strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.operations-page .brand-copy small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
}

.operations-page .module-nav {
  gap: 3px;
  border-color: var(--line);
  border-radius: 14px;
  background: #f1f6fc;
  padding: 4px;
}

.operations-page .module-nav a {
  min-height: 38px;
  border-radius: 10px;
  padding: 8px 13px;
  color: #667b9c;
  font-size: 0.75rem;
}

.operations-page .module-nav a span { color: #93a8c5; }
.operations-page .module-nav a:hover { color: var(--teal-dark); background: var(--teal-soft); }
.operations-page .module-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 7px 16px rgba(11, 120, 240, 0.18);
}
.operations-page .module-nav a.active span { color: #cce8ff; }

.operations-page .auth-panel {
  width: min(530px, 52vw);
  grid-template-columns: minmax(128px, 0.7fr) minmax(290px, 1.5fr);
  gap: 13px;
}

.operations-page .session-panel { min-width: 270px; }
.operations-page .session-label,
.operations-page label { color: var(--ink-soft); }

.operations-page .status-line {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.operations-page .status-dot { background: #91a3bb; box-shadow: 0 0 0 4px rgba(145, 163, 187, 0.15); }

.operations-page input,
.operations-page textarea,
.operations-page select {
  min-height: 43px;
  border-color: var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(26, 61, 108, 0.02);
}

.operations-page input:hover,
.operations-page textarea:hover,
.operations-page select:hover { border-color: #a9c3e4; }

.operations-page input:focus,
.operations-page textarea:focus,
.operations-page select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(11, 120, 240, 0.1);
}

.operations-page .connect-button,
.operations-page .primary-button {
  border-color: var(--teal);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 8px 18px rgba(11, 120, 240, 0.18);
}

.operations-page .connect-button:hover,
.operations-page .primary-button:hover {
  border-color: #0959bd;
  background: linear-gradient(135deg, #0870e5, #0959bd);
  box-shadow: 0 11px 24px rgba(11, 120, 240, 0.23);
}

.operations-page .secondary-button {
  border-color: var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
}

.operations-page .secondary-button:hover {
  border-color: #9bc4f2;
  color: var(--teal-dark);
  background: var(--teal-faint);
}

.operations-page .icon-button { color: var(--teal-dark); }
.operations-page .icon-button:hover { background: var(--teal-soft); }

.operations-page .dashboard { padding: 32px 0 64px; }

.operations-page .overview {
  display: grid;
  grid-template-columns: minmax(520px, 1.2fr) minmax(510px, 0.95fr);
  gap: 22px;
  margin-bottom: 24px;
}

.operations-page .section-intro {
  position: relative;
  isolation: isolate;
  min-height: 196px;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.7fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  margin: 0;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 14%, rgba(255, 255, 255, 0.24), transparent 10rem),
    linear-gradient(125deg, #0b78f0 0%, #1265d8 58%, #078fba 100%);
  box-shadow: 0 18px 40px rgba(11, 120, 240, 0.18);
  padding: 28px 32px;
  animation: dashboard-rise 520ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.operations-page .section-intro::before,
.operations-page .section-intro::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.operations-page .section-intro::before {
  width: 250px;
  height: 250px;
  right: -82px;
  bottom: -130px;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.035), 0 0 0 68px rgba(255, 255, 255, 0.025);
}

.operations-page .section-intro::after {
  width: 94px;
  height: 94px;
  top: -48px;
  right: 35%;
  background: rgba(255, 255, 255, 0.055);
}

.operations-page .section-intro .eyebrow {
  margin-bottom: 12px;
  color: #dff1ff;
  font-size: 0.7rem;
  letter-spacing: 0.17em;
}

.operations-page h1 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.operations-page h1 span { color: #bff5ff; }

.operations-page .overview-actions {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 16px;
  padding: 0;
}

.operations-page .overview-actions p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  line-height: 1.55;
}

.operations-page .overview-actions .secondary-button {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.58);
  color: #0d5ab7;
  background: #fff;
  box-shadow: 0 9px 20px rgba(4, 47, 108, 0.16);
}

.operations-page .overview-actions .secondary-button:hover {
  border-color: #fff;
  color: #0a4a9c;
  background: #f6fbff;
}

.operations-page .metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.operations-page .metric-card {
  position: relative;
  isolation: isolate;
  min-height: 196px;
  align-content: start;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(220, 231, 245, 0.82);
  border-radius: 24px;
  background: var(--teal-soft);
  box-shadow: var(--shadow-sm);
  padding: 23px 20px 20px;
  animation: dashboard-rise 520ms cubic-bezier(0.2, 0.75, 0.25, 1) 70ms both;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.operations-page .metric-card:nth-child(2) { animation-delay: 120ms; }
.operations-page .metric-card:nth-child(3) { animation-delay: 170ms; }
.operations-page .metric-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(36, 67, 112, 0.12); }
.operations-page .metric-offline { background: var(--red-soft); }
.operations-page .metric-pending { background: var(--purple-soft); }

.operations-page .metric-card::before {
  position: absolute;
  z-index: -1;
  width: 132px;
  height: 132px;
  top: -58px;
  right: -44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 25px rgba(255, 255, 255, 0.15);
  content: "";
}

.operations-page .metric-card::after {
  position: absolute;
  inset: auto 20px 18px auto;
  width: 34px;
  height: 6px;
  border-radius: 99px;
  background: var(--teal);
  content: "";
}

.operations-page .metric-offline::after { background: var(--red); }
.operations-page .metric-pending::after { background: #765ee8; }

.operations-page .metric-label {
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.operations-page .metric-label i {
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(8, 168, 138, 0.12);
}

.operations-page .metric-offline .metric-label i { background: var(--red); box-shadow: 0 0 0 5px rgba(219, 85, 117, 0.12); }
.operations-page .metric-pending .metric-label i { background: #765ee8; box-shadow: 0 0 0 5px rgba(118, 94, 232, 0.12); }

.operations-page .metric-card strong {
  align-self: end;
  margin: 22px 0 7px;
  color: var(--ink);
  font-size: clamp(2.3rem, 3.4vw, 3.65rem);
  font-weight: 800;
  line-height: 0.92;
}

.operations-page .metric-card small {
  max-width: 86px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.operations-page .fleet-overview { margin-bottom: 14px; animation: dashboard-rise 480ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.operations-page .fleet-overview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.operations-page .fleet-overview-heading h1 { max-width: none; color: var(--ink); font-size: clamp(1.75rem, 2.3vw, 2.55rem); letter-spacing: -0.04em; }
.operations-page .fleet-overview-heading > div > p:last-child { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 0.8rem; }
.operations-page .fleet-overview-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.operations-page .fleet-overview-actions .secondary-button { min-height: 40px; }

.operations-page .fleet-dashboard-summary { display: grid; gap: 12px; }
.operations-page .fleet-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.operations-page .fleet-stat-card { display: grid; min-width: 0; min-height: 130px; align-content: space-between; gap: 11px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 9px 24px rgba(36, 67, 112, 0.055); padding: 18px; }
.operations-page .fleet-stat-card > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.operations-page .fleet-stat-card > strong { color: var(--ink); font-size: clamp(1.8rem, 2.6vw, 2.8rem); line-height: 1; }
.operations-page .fleet-stat-card > small { overflow: hidden; color: var(--muted); font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.operations-page .summary-dot.comments { background: var(--teal); box-shadow: 0 0 0 4px rgba(11, 120, 240, 0.1); }
.operations-page .summary-dot.capture { background: #765ee8; box-shadow: 0 0 0 4px rgba(118, 94, 232, 0.11); }

.operations-page .comment-channel-dashboard { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 9px 24px rgba(36, 67, 112, 0.055); padding: 18px; }
.operations-page .comment-channel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.operations-page .comment-channel-heading > div { display: grid; gap: 4px; }
.operations-page .comment-channel-heading strong { color: var(--ink); font-size: 0.86rem; }
.operations-page .comment-channel-heading small,
.operations-page .comment-channel-heading > span { color: var(--muted); font-size: 0.68rem; }
.operations-page .comment-channel-list { display: grid; }
.operations-page .comment-channel-row { display: grid; grid-template-columns: 32px minmax(170px, 0.75fr) minmax(140px, 1fr) minmax(125px, 0.42fr); align-items: center; gap: 12px; min-width: 0; border-top: 1px solid var(--line); padding: 10px 0; }
.operations-page .comment-channel-row:first-child { border-top: 0; }
.operations-page .comment-channel-position { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: var(--muted); background: #f2f6fb; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 800; }
.operations-page .comment-channel-identity,
.operations-page .comment-channel-volume { display: grid; min-width: 0; gap: 3px; }
.operations-page .comment-channel-identity strong,
.operations-page .comment-channel-identity small,
.operations-page .comment-channel-volume strong,
.operations-page .comment-channel-volume small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-page .comment-channel-identity strong { color: var(--ink); font-size: 0.76rem; }
.operations-page .comment-channel-identity small,
.operations-page .comment-channel-volume small { color: var(--muted); font-size: 0.64rem; }
.operations-page .comment-channel-volume { justify-items: end; text-align: right; }
.operations-page .comment-channel-volume strong { color: var(--ink); font-size: 0.82rem; }
.operations-page .comment-channel-track { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #edf3f9; }
.operations-page .comment-channel-track b { display: block; min-width: 3px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #56c5ef); }
.operations-page .comment-channel-row.is-warning .comment-channel-track b { background: linear-gradient(90deg, var(--amber), #efb861); }
.operations-page .comment-channel-row.is-stale .comment-channel-track b,
.operations-page .comment-channel-row.is-empty .comment-channel-track b { background: linear-gradient(90deg, var(--red), #e889a0); }
.operations-page .comment-channel-row.is-stale .comment-channel-identity small,
.operations-page .comment-channel-row.is-empty .comment-channel-identity small { color: #b83b5a; font-weight: 760; }

.operations-page .fleet-bento-summary { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(270px, 0.72fr); gap: 12px; }
.operations-page .summary-bento { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 9px 24px rgba(36, 67, 112, 0.055); padding: 18px; }
.operations-page .connectivity-bento { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; }
.operations-page .connectivity-ring { --online-ratio: 0%; position: relative; display: grid; width: 96px; height: 96px; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 var(--online-ratio), var(--red) var(--online-ratio) 100%); }
.operations-page .connectivity-ring::before { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #fff; content: ""; }
.operations-page .connectivity-ring strong { position: relative; color: var(--ink); font-size: 1.25rem; font-weight: 800; }
.operations-page .connectivity-copy > span { color: var(--muted); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.operations-page .connectivity-copy > strong { display: block; margin: 5px 0 13px; color: var(--ink); font-size: 1rem; }
.operations-page .connectivity-facts { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.operations-page .connectivity-facts span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.72rem; }
.operations-page .connectivity-facts b { color: var(--ink); }
.operations-page .summary-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #91a3bb; }
.operations-page .summary-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(8, 168, 138, 0.11); }
.operations-page .summary-dot.offline { background: var(--red); box-shadow: 0 0 0 4px rgba(219, 85, 117, 0.11); }
.operations-page .summary-dot.attention { background: var(--amber); box-shadow: 0 0 0 4px rgba(232, 134, 38, 0.11); }

.operations-page .summary-bento-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.operations-page .summary-bento-heading strong { color: var(--ink); font-size: 0.82rem; }
.operations-page .summary-bento-heading > span { color: var(--muted); font-size: 0.68rem; }
.operations-page .summary-count { border-radius: 999px; color: #a33d58 !important; background: var(--red-soft); padding: 4px 8px; font-weight: 800; }
.operations-page .attention-list { display: grid; gap: 8px; }
.operations-page .attention-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding-top: 8px; }
.operations-page .attention-row:first-child { border-top: 0; padding-top: 0; }
.operations-page .attention-row > span { min-width: 0; }
.operations-page .attention-row strong,
.operations-page .attention-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-page .attention-row strong { color: var(--ink); font-size: 0.73rem; }
.operations-page .attention-row small,
.operations-page .attention-row time { color: var(--muted); font-size: 0.63rem; }
.operations-page .attention-more,
.operations-page .bento-empty { margin: 0; color: var(--muted); font-size: 0.68rem; }

.operations-page .capture-summary-bars { display: grid; gap: 10px; }
.operations-page .capture-summary-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 22px; align-items: center; gap: 8px; font-size: 0.68rem; }
.operations-page .capture-summary-row > span { color: var(--muted); }
.operations-page .capture-summary-row > i { height: 8px; overflow: hidden; border-radius: 999px; background: #eef3f9; }
.operations-page .capture-summary-row > i > b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width 220ms ease; }
.operations-page .capture-summary-row > i > b.warning { background: var(--amber); }
.operations-page .capture-summary-row > i > b.danger { background: var(--red); }
.operations-page .capture-summary-row > i > b.muted { background: #9aaabe; }
.operations-page .capture-summary-row > strong { color: var(--ink); text-align: right; }

.operations-page .workspace,
.operations-page .monitor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.operations-page .workspace {
  animation: dashboard-rise 580ms cubic-bezier(0.2, 0.75, 0.25, 1) 210ms both;
}

.operations-page .monitor-workspace {
  animation: dashboard-fade 260ms ease both;
}

.operations-page .panel {
  border-color: rgba(220, 231, 245, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.operations-page .fleet-panel,
.operations-page .history-panel { padding: 26px; }

.operations-page .fleet-panel-fixed { min-width: 0; }
.operations-page .fleet-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
.operations-page .fleet-view-switch { flex: 0 0 auto; }

.operations-page .panel-heading {
  align-items: center;
  border-color: var(--line);
  padding-bottom: 18px;
}

.operations-page .eyebrow {
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.operations-page h2 {
  color: var(--ink);
  font-size: clamp(1.32rem, 1.7vw, 1.65rem);
  font-weight: 800;
}

.operations-page h3 { color: var(--ink); font-weight: 780; }
.operations-page .last-refresh { color: var(--muted); }
.operations-page .device-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; align-items: stretch; gap: 12px; padding-top: 14px; }

.operations-page .fleet-status-filter { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f2f6fb; padding: 4px; }
.operations-page .fleet-status-filter button { min-height: 36px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; padding: 0 11px; font-size: 0.7rem; font-weight: 760; }
.operations-page .fleet-status-filter button span { display: inline-grid; min-width: 21px; min-height: 21px; place-items: center; margin-left: 4px; border-radius: 999px; background: rgba(113, 131, 162, 0.11); font-size: 0.63rem; }
.operations-page .fleet-status-filter button.active { color: var(--teal-dark); background: #fff; box-shadow: 0 4px 12px rgba(36, 67, 112, 0.09); }
.operations-page .fleet-status-filter button.active span { background: var(--teal-soft); }

.operations-page .fleet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
}

.operations-page .fleet-filter {
  display: inline-flex;
  min-width: 0;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f2f6fb;
  padding: 4px;
}

.operations-page .fleet-filter button {
  min-height: 35px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  padding: 0 10px;
  font-size: 0.7rem;
  font-weight: 760;
  white-space: nowrap;
}

.operations-page .fleet-filter button span {
  display: inline-grid;
  min-width: 21px;
  min-height: 21px;
  place-items: center;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(113, 131, 162, 0.11);
  font-size: 0.64rem;
}

.operations-page .fleet-filter button.active {
  color: var(--teal-dark);
  background: #fff;
  box-shadow: 0 4px 12px rgba(36, 67, 112, 0.09);
}

.operations-page .fleet-filter button.active span { background: var(--teal-soft); }
.operations-page .device-search { width: min(230px, 100%); margin: 0; }
.operations-page .device-search input { min-height: 43px; margin: 0; background: #f8faff; }
.operations-page .device-result-summary { margin: 9px 0 -5px; color: var(--muted); font-size: 0.68rem; }

.operations-page .device-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "top"
    "meta"
    "alert"
    "signals"
    "comments"
    "actions"
    "details";
  grid-auto-rows: max-content;
  align-content: start;
  height: 100%;
  min-width: 0;
  border-color: var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(32, 68, 116, 0.045);
  padding: 19px 20px 18px;
}

.operations-page .device-card.is-expanded {
  display: grid;
  grid-template-rows: max-content max-content 44px max-content max-content max-content minmax(0, 1fr);
  align-content: stretch;
}
.operations-page .device-card.is-priority { grid-column: auto; }
.operations-page .device-card:not(.is-expanded) .device-meta { margin: 9px 0 12px; }
.operations-page .device-card:not(.is-expanded) .device-alert-summary { margin: 0 0 12px; }
.operations-page .device-card:not(.is-expanded) .device-primary-actions { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 10px; }

.operations-page .device-card.needs-attention {
  border-color: #f1d3aa;
  box-shadow: 0 9px 25px rgba(164, 93, 20, 0.07);
}

.operations-page .device-card.needs-attention::before { background: linear-gradient(90deg, var(--amber), #efb861); }
.operations-page .device-card.offline::before { background: linear-gradient(90deg, #8fa0b6, #bdc8d6); }
.operations-page .device-top { grid-area: top; display: grid; height: 68px; min-height: 68px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; overflow: hidden; }
.operations-page .device-top > div:first-child { min-width: 0; }
.operations-page .device-status-group { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.operations-page .device-slot { display: block; margin-bottom: 5px; color: var(--teal-dark); font-size: 0.61rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.operations-page .device-attention-count { border-radius: 999px; color: #a45d14; background: var(--amber-soft); padding: 5px 9px; font-size: 0.65rem; font-weight: 800; }
.operations-page .device-pending-count { border-radius: 999px; color: var(--teal-dark); background: var(--teal-soft); padding: 5px 9px; font-size: 0.65rem; font-weight: 800; }
.operations-page .device-meta { grid-area: meta; display: grid; min-height: 20px; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 6px 18px; }

.operations-page .device-alert-summary {
  grid-area: alert;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  margin: 2px 0 12px;
  border: 1px solid #f1d3aa;
  border-radius: 11px;
  color: #875018;
  background: linear-gradient(90deg, #fff8ea, #fffdf8);
  padding: 9px 11px;
  font-size: 0.7rem;
  line-height: 1.45;
}

.operations-page .device-alert-summary strong { color: #a45d14; font-size: 0.66rem; text-transform: uppercase; }
.operations-page .device-alert-summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-page .device-alert-summary.is-placeholder { visibility: hidden; pointer-events: none; }
.operations-page .device-signal-grid { grid-area: signals; display: grid; min-height: 58px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.operations-page .device-signal { position: relative; min-width: 0; overflow: hidden; border: 0; border-left: 3px solid #b7c4d5; border-radius: 0; background: transparent; padding: 2px 0 2px 9px; }
.operations-page .device-signal::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #b7c4d5; content: ""; }
.operations-page .device-signal.is-success::before { background: var(--green); }
.operations-page .device-signal.is-danger { border-color: var(--amber); background: transparent; }
.operations-page .device-signal.is-danger::before { background: var(--amber); }
.operations-page .device-signal span,
.operations-page .device-signal strong,
.operations-page .device-signal small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-page .device-signal span { color: #8191aa; font-size: 0.61rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.operations-page .device-signal strong { margin-top: 5px; color: var(--ink); font-size: 0.79rem; }
.operations-page .device-signal small { margin-top: 3px; color: var(--muted); font-size: 0.65rem; }
.operations-page .device-signal.is-danger strong { color: #9d5a14; }

.operations-page .device-comment-summary { grid-area: comments; display: grid; min-height: 52px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.operations-page .device-comment-summary > span:first-child { display: grid; gap: 3px; min-width: 0; }
.operations-page .device-comment-summary > span:first-child small { color: var(--muted); font-size: 0.64rem; }
.operations-page .device-comment-summary > span:first-child strong { overflow: hidden; color: var(--ink); font-size: 0.84rem; text-overflow: ellipsis; white-space: nowrap; }
.operations-page .device-comment-latest { display: inline-flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 7px; text-align: right; }
.operations-page .device-comment-latest i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(8, 168, 138, 0.1); }
.operations-page .device-comment-latest small { overflow: hidden; color: var(--muted); font-size: 0.64rem; text-overflow: ellipsis; white-space: nowrap; }
.operations-page .device-comment-summary.is-warning .device-comment-latest i { background: var(--amber); box-shadow: 0 0 0 4px rgba(232, 134, 38, 0.11); }
.operations-page .device-comment-summary.is-stale .device-comment-latest i,
.operations-page .device-comment-summary.is-empty .device-comment-latest i { background: var(--red); box-shadow: 0 0 0 4px rgba(219, 85, 117, 0.1); }
.operations-page .device-comment-summary.is-stale .device-comment-latest small,
.operations-page .device-comment-summary.is-empty .device-comment-latest small { color: #b83b5a; font-weight: 760; }
.operations-page .device-primary-actions { grid-area: actions; display: grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; justify-content: end; gap: 8px; margin-top: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.operations-page .device-config-button,
.operations-page .device-detail-toggle { width: auto; min-height: 36px; margin: 0; padding: 0 12px; font-size: 0.7rem; }
.operations-page .device-detail-toggle { border: 0; color: var(--teal-dark); background: transparent; font-weight: 760; }
.operations-page .device-detail-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.operations-page .device-details { grid-area: details; display: grid; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: max-content max-content max-content max-content minmax(132px, 1fr) max-content; align-content: stretch; gap: 10px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.operations-page .device-details[hidden] { display: none; }
.operations-page .device-details > * { min-width: 0; margin: 0; }
.operations-page .device-details .application-section { display: grid; min-height: 132px; grid-template-rows: max-content minmax(56px, 1fr) 24px; align-content: stretch; gap: 8px; }
.operations-page .device-details .application-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.operations-page .device-details .card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.operations-page .device-detail-hint { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-family: var(--font-mono); font-size: 0.65rem; }
.operations-page .device-filter-empty { min-height: 160px; }

.operations-page .device-health-details {
  display: grid;
  min-height: 50px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-soft);
  background: #f8faff;
  padding: 11px 13px;
  font-size: 0.73rem;
}
.operations-page .device-health-details strong { color: var(--ink); }
.operations-page .device-health-details span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-page .device-health-details.is-healthy { border-color: #bcece1; background: var(--green-soft); }
.operations-page .device-health-details.is-warning,
.operations-page .device-health-details.is-critical { border-color: #f1d3aa; background: var(--amber-soft); }
.operations-page .device-health-details.is-unknown { border-color: var(--line); background: #f8faff; }

.operations-page .device-card:hover {
  border-color: #b8d3f1;
  transform: none;
  box-shadow: 0 16px 34px rgba(32, 68, 116, 0.1);
}

.operations-page .device-card::before {
  inset: 0 0 auto;
  width: auto;
  height: 4px;
  background: #a9bad0;
}

.operations-page .device-card.online::before { background: linear-gradient(90deg, var(--green), #62d3bd); }
.operations-page .device-card.needs-attention::before { background: linear-gradient(90deg, var(--amber), #efb861); }
.operations-page .device-card.offline::before { background: linear-gradient(90deg, #8fa0b6, #bdc8d6); }
.operations-page .device-card.archived { border-color: #d7dee8; background: #f7f9fc; }
.operations-page .device-card.archived::before { background: linear-gradient(90deg, #9aa9bb, #cbd4df); }
.operations-page .device-card.archived .device-name,
.operations-page .device-card.archived .device-meta,
.operations-page .device-card.archived .device-id { color: #7d8ba0; }

.operations-page .device-name { overflow: hidden; color: var(--ink); font-size: 1.02rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.operations-page .device-id { color: #8191aa; }

.operations-page .pill,
.operations-page .history-status {
  border-color: var(--line-strong);
  color: var(--muted);
  background: #f4f7fb;
}

.operations-page .online .pill { border-color: #bcece1; color: #087e69; background: var(--green-soft); }
.operations-page .device-meta { color: var(--muted); }

.operations-page .microphone-status {
  height: 90px;
  min-height: 90px;
  overflow: hidden;
  border-color: #cfe2f5;
  background: linear-gradient(135deg, #f3f9ff, #f8fcfb);
}

.operations-page .microphone-status.is-active {
  border-color: #bcece1;
  background: linear-gradient(135deg, var(--green-soft), #f7fffc);
}

.operations-page .microphone-status.is-fallback,
.operations-page .microphone-status.is-unavailable {
  border-color: #f0d5a8;
  background: linear-gradient(135deg, var(--amber-soft), #fffdf8);
}

.operations-page .microphone-symbol { color: var(--teal-dark); background: #dcefff; }
.operations-page .microphone-name { color: var(--ink); }
.operations-page .microphone-name,
.operations-page .microphone-content small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.operations-page .resource-grid { height: 72px; min-height: 72px; gap: 9px; }
.operations-page .resource-metric {
  border-color: transparent;
  border-radius: 12px;
  background: var(--teal-soft);
  padding: 10px 11px;
}
.operations-page .resource-metric[data-kind="memory"] { background: var(--purple-soft); }
.operations-page .resource-metric[data-kind="disk"] { background: var(--amber-soft); }
.operations-page .resource-track { background: rgba(83, 111, 151, 0.14); }
.operations-page .resource-fill { background: var(--teal); }
.operations-page .resource-metric[data-kind="memory"] .resource-fill { background: #765ee8; }
.operations-page .resource-metric[data-kind="disk"] .resource-fill { background: var(--amber); }

.operations-page .livestudio-status {
  height: 122px;
  min-height: 122px;
  align-content: start;
  overflow-y: auto;
  border-color: var(--line);
  border-radius: 13px;
  background: #f8faff;
}
.operations-page .livestudio-status.is-running { border-color: #bcece1; background: var(--green-soft); }
.operations-page .livestudio-status.is-alert { border-color: #f4c7d2; background: var(--red-soft); }

.operations-page .application-section {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faff;
}

.operations-page .processes {
  min-height: 56px;
  max-height: 78px;
  align-content: flex-start;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.operations-page .processes span {
  border-color: #d5e6f8;
  color: var(--ink-soft);
  background: var(--teal-soft);
}

.operations-page .app-list-toggle,
.operations-page .link-button { color: var(--teal-dark); }
.operations-page .app-list-toggle { min-height: 24px; padding-top: 2px; text-align: left; }
.operations-page .app-list-toggle.is-placeholder { visibility: hidden; pointer-events: none; }
.operations-page .card-actions { border-color: var(--line); }

.operations-page .actions-panel {
  top: auto;
  border-color: rgba(188, 212, 239, 0.95);
  box-shadow: none;
}

.operations-page .operations-tools-panel { position: static; margin-top: 14px; overflow: hidden; }
.operations-page .operations-tools-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; padding: 17px 21px; }
.operations-page .operations-tools-panel > summary::-webkit-details-marker { display: none; }
.operations-page .operations-tools-panel > summary > span:first-child { display: grid; }
.operations-page .operations-tools-panel > summary .eyebrow { margin: 0 0 4px; }
.operations-page .operations-tools-panel > summary strong { color: var(--ink); font-size: 0.9rem; }
.operations-page .operations-tools-panel > summary > span:last-child { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-dark); font-size: 0.72rem; font-weight: 760; }
.operations-page .operations-tools-panel > summary i { font-style: normal; transition: transform 160ms ease; }
.operations-page .operations-tools-panel[open] > summary i { transform: rotate(180deg); }
.operations-page .operations-tools-content { border-top: 1px solid var(--line); }
.operations-page .operations-tools-content .actions-panel { position: static; display: grid; grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr); border: 0; border-radius: 0; background: #fff; }
.operations-page .operations-tools-content .actions-heading { grid-column: 1; }
.operations-page .operations-tools-content .tabs { grid-column: 1; align-self: start; margin: 0 20px 20px; }
.operations-page .operations-tools-content .action-form { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--line); }

.operations-page .actions-heading {
  position: relative;
  overflow: hidden;
  padding: 23px 24px 18px;
  background: linear-gradient(145deg, #f4f9ff, #fff);
}

.operations-page .actions-heading::after {
  position: absolute;
  width: 110px;
  height: 110px;
  top: -62px;
  right: -28px;
  border-radius: 50%;
  background: rgba(11, 120, 240, 0.07);
  box-shadow: 0 0 0 22px rgba(11, 120, 240, 0.035);
  content: "";
}

.operations-page .tabs {
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f2f6fb;
  padding: 4px;
}

.operations-page .tab {
  border-radius: 9px;
  color: var(--muted);
}

.operations-page .tab.active {
  color: var(--teal-dark);
  background: #fff;
  box-shadow: 0 4px 12px rgba(36, 67, 112, 0.09);
}

.operations-page .action-form { padding: 22px 24px 24px; }
.operations-page .action-form.active { animation: operation-panel-in 240ms cubic-bezier(0.2, 0.75, 0.25, 1); }
.operations-page .form-heading { border-color: var(--line); }
.operations-page .form-heading p { color: var(--muted); }

.operations-page .repeat-control,
.operations-page .check-card {
  border-color: var(--line);
  border-radius: 13px;
  background: #f8faff;
}

.operations-page .muted-control.enabled { border-color: #bdd7f3; background: var(--teal-faint); }
.operations-page .check-card input { accent-color: var(--teal); }

.operations-page .secret-result {
  border-color: #1f62ad;
  color: #e8f5ff;
  background: #10244a;
}

.operations-page .empty-state { color: var(--muted); }
.operations-page .empty-state .empty-icon {
  border-color: #c9def5;
  border-radius: 16px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  box-shadow: 0 8px 20px rgba(11, 120, 240, 0.08);
}

.operations-page .history-panel {
  margin-top: 24px;
  animation: dashboard-rise 580ms cubic-bezier(0.2, 0.75, 0.25, 1) 280ms both;
}

.operations-page .activation-panel {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 26px;
  animation: dashboard-rise 580ms cubic-bezier(0.2, 0.75, 0.25, 1) 245ms both;
}

.operations-page .activation-panel::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -82px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(8, 168, 138, 0.09), rgba(11, 120, 240, 0.025) 54%, transparent 70%);
}

.operations-page .activation-heading {
  position: relative;
  z-index: 1;
  gap: 24px;
}

.operations-page .activation-description {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.operations-page .activation-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.operations-page .activation-heading .view-switch {
  display: flex;
  padding: 3px;
}

.operations-page .activation-heading .view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
}

.operations-page .activation-heading .view-switch button span {
  min-width: 22px;
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--muted);
  background: rgba(113, 131, 162, 0.11);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.operations-page .activation-heading .view-switch button.active span {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.operations-page .extension-license-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: 14px;
  margin-top: 20px;
}

.operations-page .extension-license-form,
.operations-page .extension-license-roster {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.operations-page .extension-license-form {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(150deg, #f3fbf9, #fff 58%);
}

.operations-page .extension-license-form-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 3px;
}

.operations-page .license-form-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--teal), #087e69);
  box-shadow: 0 8px 18px rgba(8, 168, 138, 0.2);
  font-size: 1.15rem;
  font-weight: 800;
}

.operations-page .extension-license-form-heading strong,
.operations-page .extension-license-form-heading small { display: block; }
.operations-page .extension-license-form-heading strong { color: var(--ink); font-size: 0.86rem; }
.operations-page .extension-license-form-heading small { margin-top: 2px; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }

.operations-page .extension-license-form > label,
.operations-page .extension-license-form-grid > label,
.operations-page .extension-license-controls > label {
  display: grid;
  gap: 5px;
  color: #7e90ab;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.operations-page .extension-license-form input,
.operations-page .extension-license-controls input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 720;
}

.operations-page .extension-license-form input:focus,
.operations-page .extension-license-controls input:focus {
  outline: 3px solid rgba(8, 168, 138, 0.12);
  border-color: rgba(8, 168, 138, 0.55);
}

.operations-page .extension-license-form-grid,
.operations-page .extension-license-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.operations-page .license-duration-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.operations-page .license-duration-input em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.operations-page .extension-license-form .primary-button {
  width: 100%;
  margin: 3px 0 0;
}

.operations-page .extension-license-roster { padding: 16px; }

.operations-page .extension-license-roster-heading,
.operations-page .activation-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.operations-page .extension-license-roster-heading h3,
.operations-page .activation-subheading h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.operations-page .section-kicker {
  color: #8a9bb5;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operations-page .license-count {
  display: grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 0.78rem;
}

.operations-page .extension-license-list {
  display: grid;
  gap: 9px;
  max-height: 415px;
  overflow: auto;
  margin-top: 13px;
  padding-right: 4px;
  scrollbar-color: #c3cfde transparent;
}

.operations-page .extension-license-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(180px, 0.8fr) minmax(190px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  padding: 13px 13px 13px 16px;
  background: #fff;
}

.operations-page .extension-license-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--green);
}

.operations-page .extension-license-card.license-expired::before { background: var(--amber); }
.operations-page .extension-license-card.license-revoked::before { background: var(--red); }

.operations-page .extension-license-card-top {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.operations-page .extension-license-card h4 {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
}

.operations-page .extension-license-card-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.operations-page .license-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  color: #087e69;
  background: var(--green-soft);
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

.operations-page .license-status.expired { color: #a45d14; background: var(--amber-soft); }
.operations-page .license-status.revoked { color: #b83b5a; background: var(--red-soft); }

.operations-page .extension-license-facts { display: grid; gap: 5px; }
.operations-page .extension-license-facts div { display: flex; justify-content: space-between; gap: 8px; }
.operations-page .extension-license-facts span { color: #8a9bb5; font-size: 0.59rem; font-weight: 700; }
.operations-page .extension-license-facts strong { color: var(--ink-soft); font-size: 0.64rem; font-weight: 720; text-align: right; }

.operations-page .extension-license-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.operations-page .extension-license-actions .primary-button,
.operations-page .extension-license-actions .danger-button {
  width: auto;
  min-width: 76px;
  min-height: 36px;
  margin: 0;
}

.operations-page .license-loading,
.operations-page .license-empty {
  min-height: 96px;
  margin: 0;
  display: grid;
  place-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}

.operations-page .license-empty strong { color: var(--ink-soft); font-size: 0.8rem; }
.operations-page .license-empty p { max-width: 360px; margin: 4px 0 0; font-size: 0.68rem; line-height: 1.45; }

.operations-page .activation-subheading {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.operations-page .activation-subheading p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: right;
}

.operations-page .activation-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding-top: 18px;
}

.operations-page .activation-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #fbfdff);
  box-shadow: 0 7px 18px rgba(36, 67, 112, 0.04);
  padding: 19px 20px 17px;
}

.operations-page .activation-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #9caec5;
}

.operations-page .activation-card.activation-pending::before { background: var(--amber); }
.operations-page .activation-card.activation-approved::before { background: var(--green); }
.operations-page .activation-card.activation-rejected::before,
.operations-page .activation-card.activation-revoked::before { background: var(--red); }

.operations-page .activation-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.operations-page .activation-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.operations-page .activation-identity {
  max-width: 540px;
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.45;
}

.operations-page .activation-status {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.operations-page .activation-status.pending { border-color: #f2d4ad; color: #a45d14; background: var(--amber-soft); }
.operations-page .activation-status.approved { border-color: #bcece1; color: #087e69; background: var(--green-soft); }
.operations-page .activation-status.rejected,
.operations-page .activation-status.revoked { border-color: #f2c8d2; color: #b83b5a; background: var(--red-soft); }

.operations-page .activation-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.operations-page .activation-facts div {
  min-width: 0;
  border-top: 1px solid #edf2f8;
  padding-top: 8px;
}

.operations-page .activation-facts span,
.operations-page .activation-facts strong { display: block; }
.operations-page .activation-facts span { color: #8a9bb5; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.035em; text-transform: uppercase; }
.operations-page .activation-facts strong { overflow-wrap: anywhere; margin-top: 3px; color: var(--ink-soft); font-size: 0.74rem; font-weight: 720; line-height: 1.42; }
.operations-page .activation-facts .activation-code { font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: 0.69rem; }

.operations-page .activation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.operations-page .activation-license-options {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  border-top: 1px solid #edf2f8;
  padding-top: 12px;
}

.operations-page .activation-license-options label {
  display: grid;
  gap: 5px;
  min-width: 138px;
  color: #8a9bb5;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.operations-page .activation-license-options input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0 10px;
  color: var(--ink-soft);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
}

.operations-page .activation-license-duration {
  display: flex;
  align-items: center;
  gap: 6px;
}

.operations-page .activation-license-duration input { min-width: 90px; }
.operations-page .activation-license-duration em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  text-transform: none;
}

.operations-page .activation-actions .primary-button,
.operations-page .activation-actions .secondary-button,
.operations-page .activation-actions .danger-button {
  width: auto;
  min-width: 94px;
  min-height: 38px;
  margin: 0;
}

.operations-page .activation-actions .primary-button:disabled,
.operations-page .activation-actions .secondary-button:disabled,
.operations-page .activation-actions .danger-button:disabled { transform: none; box-shadow: none; }

.operations-page .activation-list > .empty-state,
.operations-page .activation-loading {
  grid-column: 1 / -1;
  margin: 0;
}

.operations-page .activation-loading {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 17px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.operations-page .view-switch {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: #f2f6fb;
}
.operations-page .view-switch button { border-radius: 9px; }
.operations-page .view-switch button.active { color: var(--teal-dark); }

.operations-page .history-tools {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8faff;
}

.operations-page .history-card {
  border-color: var(--line);
  border-radius: 17px;
  box-shadow: 0 7px 18px rgba(36, 67, 112, 0.04);
}
.operations-page .history-card.expanded { border-color: #bcd5f1; box-shadow: 0 13px 28px rgba(36, 67, 112, 0.08); }
.operations-page .history-card::before { background: #9caec5; }
.operations-page .history-card.queued::before { background: var(--amber); }
.operations-page .history-card.delivered::before { background: var(--teal); }
.operations-page .history-card.acknowledged::before { background: var(--green); }
.operations-page .history-card.expired::before { background: var(--red); }
.operations-page .history-message,
.operations-page .history-summary { color: var(--muted); }

.operations-page .history-status.queued { border-color: #f2d4ad; color: #a45d14; background: var(--amber-soft); }
.operations-page .history-status.delivered { border-color: #c7dff8; color: var(--teal-dark); background: var(--teal-soft); }
.operations-page .history-status.acknowledged { border-color: #bcece1; color: #087e69; background: var(--green-soft); }
.operations-page .history-status.expired { border-color: #f2c8d2; color: #b83b5a; background: var(--red-soft); }

.operations-page .history-facts { border-color: var(--line); }
.operations-page .delivery-stats { border-color: var(--line); background: #f8faff; }
.operations-page .delivery-stats span { border-color: var(--line); }

.operations-page dialog {
  border-color: #c7d9ee;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.operations-page dialog::backdrop { background: rgba(10, 30, 68, 0.55); }
.operations-page .dialog-close { border-color: var(--line); background: #f4f7fb; }
.operations-page .dialog-close:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.operations-page .config-section { border-color: var(--line); background: #f8faff; }
.operations-page .config-snapshot { border-color: var(--line); }
.operations-page .config-snapshot summary { color: var(--teal-dark); }

.operations-page pre,
.operations-page #toast { background: #10244a; }
.operations-page #toast { border-color: #2a6dbb; }
.operations-page #toast.error { border-color: #e889a0; background: #a72f50; }

.operations-page .site-footer {
  border-color: var(--line);
  color: var(--muted);
}

.operations-page button:focus-visible,
.operations-page a:focus-visible,
.operations-page input:focus-visible,
.operations-page textarea:focus-visible,
.operations-page select:focus-visible,
.operations-page summary:focus-visible {
  outline: 3px solid rgba(11, 120, 240, 0.34);
  outline-offset: 3px;
}

@keyframes dashboard-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dashboard-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes operation-panel-in {
  from { opacity: 0; transform: translateY(7px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1260px) {
  .operations-page .overview { grid-template-columns: minmax(460px, 1.05fr) minmax(470px, 0.95fr); }
  .operations-page .section-intro { grid-template-columns: 1fr; align-content: center; }
  .operations-page .overview-actions { grid-template-columns: 1fr auto; align-items: center; }
  .operations-page .overview-actions p { max-width: 390px; }
  .operations-page .fleet-bento-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-page .fleet-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-page .capture-bento { grid-column: 1 / -1; }
  .operations-page .workspace,
  .operations-page .monitor-workspace { grid-template-columns: 1fr; }
  .operations-page .device-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .operations-page .extension-license-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .operations-page .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 22px;
    padding: 16px 0;
  }
  .operations-page .module-nav { justify-self: end; }
  .operations-page .auth-panel,
  .operations-page .session-panel { grid-column: 1 / -1; width: 100%; }
  .operations-page .auth-panel { grid-template-columns: minmax(140px, 0.42fr) minmax(320px, 1fr); }
  .operations-page .overview { grid-template-columns: 1fr; }
  .operations-page .section-intro { min-height: 188px; grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.65fr); }
  .operations-page .overview-actions { display: grid; grid-template-columns: 1fr; }
  .operations-page .metric-card { min-height: 154px; }
  .operations-page .metric-card strong { font-size: 3rem; }
  .operations-page .workspace,
  .operations-page .monitor-workspace { grid-template-columns: 1fr; }
  .operations-page .actions-panel { position: static; }
  .operations-page .device-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-page .activation-list { grid-template-columns: 1fr; }
  .operations-page .extension-license-card { grid-template-columns: minmax(190px, 1fr) minmax(170px, 0.7fr) minmax(190px, 0.9fr) auto; }
}

@media (max-width: 760px) {
  .operations-page .header-inner,
  .operations-page .dashboard,
  .operations-page .site-footer { width: min(100% - 28px, 1500px); }
  .operations-page .header-inner { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 10px; padding: 10px 0; }
  .operations-page .brand { align-self: flex-start; }
  .operations-page .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .operations-page .module-nav { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .operations-page .module-nav a { min-width: 0; justify-content: center; gap: 4px; padding: 8px 5px; font-size: 0.68rem; }
  .operations-page .module-nav a span { display: none; }
  .operations-page .auth-panel,
  .operations-page .session-panel { width: 100%; min-width: 0; }
  .operations-page .auth-panel { grid-template-columns: 1fr; gap: 8px; }
  .operations-page .auth-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .operations-page .auth-heading label,
  .operations-page .status-line { margin: 0; }
  .operations-page .token-row { flex-direction: row; }
  .operations-page .connect-button { width: auto; flex: 0 0 auto; }
  .operations-page .dashboard { padding-top: 14px; }
  .operations-page .fleet-overview-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .operations-page .fleet-overview-actions { width: 100%; justify-content: space-between; }
  .operations-page .fleet-bento-summary { grid-template-columns: 1fr; }
  .operations-page .fleet-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-page .comment-channel-row { grid-template-columns: 28px minmax(0, 1fr) minmax(95px, 0.42fr); }
  .operations-page .comment-channel-track { grid-column: 2 / -1; grid-row: 2; }
  .operations-page .capture-bento { grid-column: auto; }
  .operations-page .section-intro {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 14px;
    border-radius: 22px;
    padding: 22px;
  }
  .operations-page h1 { font-size: clamp(1.9rem, 8vw, 2.35rem); }
  .operations-page .overview-actions { grid-template-columns: 1fr; gap: 10px; }
  .operations-page .overview-actions p { font-size: 0.75rem; }
  .operations-page .overview-actions .secondary-button { width: 100%; min-height: 40px; }
  .operations-page .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .operations-page .metric-card {
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    border-radius: 16px;
    padding: 13px 11px;
  }
  .operations-page .metric-label { align-items: flex-start; font-size: 0.58rem; line-height: 1.25; }
  .operations-page .metric-label i { width: 7px; height: 7px; margin-top: 1px; }
  .operations-page .metric-card strong { grid-column: 1; grid-row: 2; align-self: end; margin: 8px 0 0; font-size: 1.85rem; }
  .operations-page .metric-card small { display: none; }
  .operations-page .metric-card::before { width: 76px; height: 76px; top: -38px; right: -30px; }
  .operations-page .metric-card::after { display: none; }
  .operations-page .fleet-panel,
  .operations-page .history-panel,
  .operations-page .activation-panel { padding: 21px; }
  .operations-page .activation-heading { align-items: flex-start; flex-direction: column; }
  .operations-page .activation-heading-actions { width: 100%; justify-content: space-between; }
  .operations-page .activation-subheading { align-items: flex-start; flex-direction: column; }
  .operations-page .activation-subheading p { text-align: left; }
  .operations-page .extension-license-card { grid-template-columns: 1fr 1fr; }
  .operations-page .extension-license-actions { justify-content: stretch; }
  .operations-page .extension-license-actions .primary-button,
  .operations-page .extension-license-actions .danger-button { flex: 1; }
  .operations-page .device-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-page .device-card.is-priority { grid-column: span 2; }
  .operations-page .history-tools { grid-template-columns: 1fr 1fr; }
  .operations-page .history-tools .search-field { grid-column: 1 / -1; }
  .operations-page .fleet-toolbar { align-items: stretch; flex-direction: column; }
  .operations-page .fleet-filter { width: 100%; overflow-x: auto; }
  .operations-page .fleet-filter button { flex: 1 0 auto; }
  .operations-page .device-search { width: 100%; }
}

@media (max-width: 560px) {
  .operations-page .brand-copy small { display: block; }
  .operations-page .token-row { flex-direction: row; }
  .operations-page .connect-button { width: auto; }
  .operations-page .section-intro { padding: 24px 22px; }
  .operations-page .overview-actions { display: grid; grid-template-columns: 1fr; }
  .operations-page .overview-actions .secondary-button { width: 100%; }
  .operations-page .panel-heading,
  .operations-page .history-heading { align-items: flex-start; flex-direction: column; }
  .operations-page .fleet-heading-actions { width: 100%; justify-content: space-between; }
  .operations-page .history-heading-actions { width: 100%; justify-content: space-between; }
  .operations-page .activation-heading-actions { align-items: stretch; flex-direction: column; }
  .operations-page .activation-heading .view-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .operations-page .activation-heading .view-switch button { justify-content: center; }
  .operations-page .activation-facts { grid-template-columns: 1fr; }
  .operations-page .activation-actions { align-items: stretch; flex-direction: column; }
  .operations-page .activation-actions .primary-button,
  .operations-page .activation-actions .secondary-button,
  .operations-page .activation-actions .danger-button { width: 100%; }
  .operations-page .extension-license-form-grid,
  .operations-page .extension-license-controls,
  .operations-page .extension-license-card { grid-template-columns: 1fr; }
  .operations-page .extension-license-actions { flex-direction: column; }
  .operations-page .extension-license-actions .primary-button,
  .operations-page .extension-license-actions .danger-button { width: 100%; }
  .operations-page .connectivity-bento { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .operations-page .fleet-stat-grid { grid-template-columns: 1fr; }
  .operations-page .comment-channel-heading { align-items: flex-start; flex-direction: column; }
  .operations-page .comment-channel-row { grid-template-columns: 28px minmax(0, 1fr); }
  .operations-page .comment-channel-volume { grid-column: 2; justify-items: start; text-align: left; }
  .operations-page .comment-channel-track { grid-column: 2; grid-row: auto; }
  .operations-page .device-list { grid-template-columns: 1fr; }
  .operations-page .device-card.is-priority { grid-column: auto; }
  .operations-page .device-top { height: auto; min-height: 0; grid-template-columns: 1fr; overflow: visible; }
  .operations-page .device-name { overflow: visible; white-space: normal; }
  .operations-page .device-meta { grid-template-columns: 1fr; gap: 5px; }
  .operations-page .device-alert-summary.is-placeholder { display: none; }
  .operations-page .device-signal-grid { min-height: 0; grid-template-columns: 1fr; }
  .operations-page .device-signal { padding: 10px 12px; }
  .operations-page .device-alert-summary { grid-template-columns: 1fr; gap: 3px; }
  .operations-page .device-status-group { justify-content: flex-start; }
  .operations-page .device-primary-actions { grid-auto-flow: row; grid-auto-columns: 1fr; justify-content: stretch; }
  .operations-page .device-primary-actions > * { width: 100%; }
  .operations-page .device-health-details { grid-template-columns: 1fr; align-items: start; gap: 4px; }
  .operations-page .device-comment-summary { min-height: 0; grid-template-columns: 1fr; align-items: start; }
  .operations-page .device-card.is-expanded { grid-template-rows: repeat(7, max-content); align-content: start; }
  .operations-page .device-details { grid-template-rows: repeat(6, max-content); align-content: start; }
  .operations-page .device-details .application-section { min-height: 0; grid-template-rows: repeat(3, max-content); }
  .operations-page .device-health-details,
  .operations-page .microphone-status,
  .operations-page .livestudio-status { height: auto; min-height: 0; overflow: visible; }
  .operations-page .resource-grid { height: auto; min-height: 0; }
  .operations-page .microphone-name,
  .operations-page .microphone-content small { overflow: visible; white-space: normal; }
  .operations-page .processes { min-height: 0; max-height: 180px; }
  .operations-page .device-details .application-heading,
  .operations-page .device-details .card-actions { grid-template-columns: 1fr; align-items: start; }
  .operations-page .device-comment-latest { justify-content: flex-start; text-align: left; }
  .operations-page .fleet-status-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-page .fleet-status-filter button { justify-content: center; }
  .operations-page .operations-tools-panel > summary { align-items: flex-start; flex-direction: column; }
  .operations-page .operations-tools-content .actions-panel { display: block; }
  .operations-page .operations-tools-content .tabs { margin: 0 20px 12px; }
  .operations-page .operations-tools-content .action-form { border-top: 1px solid var(--line); border-left: 0; }
  .operations-page .resource-grid { grid-template-columns: 1fr; }
  .operations-page .tabs { overflow-x: auto; grid-template-columns: repeat(3, minmax(105px, 1fr)); }
  .operations-page .action-form { padding: 20px; }
  .operations-page .form-split,
  .operations-page .config-three-columns,
  .operations-page .config-toggle-grid,
  .operations-page .history-tools { grid-template-columns: 1fr; }
  .operations-page .history-tools .search-field { grid-column: auto; }
  .operations-page .repeat-control { align-items: stretch; flex-direction: column; }
  .operations-page .input-suffix.compact { width: 100%; }
  .operations-page .history-card-top { align-items: flex-start; flex-direction: column-reverse; }
  .operations-page .history-facts { grid-template-columns: 1fr; }
  .operations-page .delivery-stats { grid-template-columns: 1fr 1fr; }
  .operations-page .config-actions { align-items: stretch; flex-direction: column; }
  .operations-page .config-actions .primary-button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .operations-page .section-intro,
  .operations-page .metric-card,
  .operations-page .workspace,
  .operations-page .monitor-workspace,
  .operations-page .activation-panel,
  .operations-page .history-panel,
  .operations-page .action-form.active {
    animation: none !important;
  }
}
