:root {
  color-scheme: light;
  --bta-blue: #3A4390;
  --bta-lavender: #7D72A7;
  --bta-soft-blue: #CBD0E9;
  --bta-sky: #92B9D6;
  --bta-orange: #E7994D;
  --bta-white: #FEFEFE;

  --ink: #0f172a;
  --muted: #475569;
  --panel: #ffffff;
  --page: #e5e7eb;
  --line: #d1d5db;
  --brand: var(--bta-blue);
  --brand-strong: #252b6b;
  --brand-soft: var(--bta-soft-blue);
  --accent: var(--bta-orange);
  --accent-soft: rgba(231, 153, 77, 0.14);
  --gold: var(--bta-orange);
  --blue: var(--bta-sky);
  --good: #15803d;
  --warn: #92400e;
  --bad: #b91c1c;
  --shadow: 0 18px 45px rgba(5, 8, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.auth-gate,
.invite-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(58, 67, 144, 0.9)),
    #111827;
}

.auth-card {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(203, 208, 233, 0.34);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.invite-card {
  width: min(640px, 100%);
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.auth-card p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-brand {
  color: var(--ink);
}

.auth-brand small {
  color: var(--muted);
}

.auth-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.invite-summary,
.invite-link-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--brand-soft);
  border-radius: 8px;
  background: #eef2ff;
}

.invite-summary div {
  display: grid;
  gap: 3px;
}

.invite-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.invite-link-box {
  margin-top: 12px;
  background: #fff7ed;
  border-color: rgba(231, 153, 77, 0.45);
}

.invite-link-box input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 650;
}

.admin-hint {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(231, 153, 77, 0.45);
  border-radius: 8px;
  background: #fff7ed;
  color: var(--warn);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.app-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px;
  border-right: 1px solid #1f2937;
  background: #111827;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bta-white);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand small,
.response-card span,
.metric-card small,
.toggle-row small,
.muted-text {
  display: block;
  color: var(--muted);
}

.brand small {
  color: rgba(254, 254, 254, 0.72);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: var(--bta-white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--bta-soft-blue);
  text-decoration: none;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(231, 153, 77, 0.16);
  color: var(--bta-white);
}

.icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(203, 208, 233, 0.34);
  border-radius: 7px;
  color: inherit;
  font-size: 15px;
}

.response-card {
  margin-top: auto;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #020617;
  color: var(--bta-white);
}

.response-card span {
  color: var(--bta-soft-blue);
}

.response-ring {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 6px solid #374151;
  border-top-color: var(--accent);
  border-radius: 50%;
  color: var(--bta-white);
  font-weight: 800;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.bootstrap-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(231, 153, 77, 0.55);
  border-radius: 8px;
  background: #fff7ed;
  box-shadow: var(--shadow);
}

.bootstrap-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.bootstrap-banner span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.topbar h1,
.section-heading h2,
.dialog-heading h2 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.session-badge {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(360px, 38vw);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.service-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.compact-field select {
  min-height: 40px;
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: var(--panel);
  color: var(--ink);
  text-transform: none;
  font-weight: 650;
}

.primary-button,
.ghost-button,
.icon-button,
.segment {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.ghost-button {
  padding: 0 13px;
  border-color: var(--line);
  background: var(--panel);
  color: var(--brand);
}

.icon-button {
  width: 40px;
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.exposure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  gap: 18px;
}

.hero-panel,
.service-hero,
.panel,
.table-panel,
.settings-grid {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 380px);
  gap: 18px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
}

.service-hero {
  min-height: 218px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(58, 67, 144, 0.96), rgba(125, 114, 167, 0.88)),
    var(--brand);
  color: var(--bta-white);
}

.platform-hero {
  margin-bottom: 18px;
}

.service-hero h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.service-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(254, 254, 254, 0.78);
  font-size: 16px;
  line-height: 1.55;
}

.service-score {
  min-height: 160px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  border: 1px solid rgba(254, 254, 254, 0.24);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.28);
  text-align: center;
}

.service-score span,
.service-score small {
  color: rgba(254, 254, 254, 0.74);
  font-weight: 750;
}

.service-score strong {
  font-size: 56px;
  line-height: 1;
}

.service-metrics {
  margin-bottom: 18px;
}

.admin-metrics {
  margin-bottom: 18px;
}

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

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: var(--panel);
  color: var(--ink);
  text-transform: none;
  font-weight: 650;
}

.admin-form .primary-button {
  justify-self: start;
}

.admin-table-panel {
  margin-bottom: 18px;
}

.subscription-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.channel-grid,
.service-catalog {
  display: grid;
  gap: 18px;
}

.channel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.channel-card,
.service-catalog-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.channel-card h3,
.service-catalog-card h3 {
  margin: 0 0 10px;
}

.channel-card ul,
.service-catalog-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.mobile-card {
  border-color: var(--brand-soft);
}

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

.service-catalog-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.service-catalog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.channel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-use {
  padding: 12px;
  border: 1px solid var(--brand-soft);
  border-radius: 8px;
  background: #eef2ff;
  color: var(--brand-strong);
  font-size: 13px;
  line-height: 1.45;
}

.subscription-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.subscription-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.subscription-meta div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.subscription-meta span,
.client-item > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.subscription-meta strong {
  font-size: 18px;
}

.feature-grid,
.client-list {
  display: grid;
  gap: 9px;
}

.feature-row,
.client-item {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.feature-row {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
}

.feature-status {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--good);
  font-weight: 900;
}

.feature-status.unavailable {
  background: #fee2e2;
  color: var(--bad);
}

.client-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.client-item > span:first-child strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
  text-transform: none;
}

.hero-panel h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.02;
}

.hero-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.signal-map {
  position: relative;
  min-height: 245px;
  border: 1px solid var(--brand-soft);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(58, 67, 144, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(58, 67, 144, 0.08) 1px, transparent 1px),
    #f8fafc;
  background-size: 30px 30px;
}

.signal-node {
  position: absolute;
  z-index: 2;
  min-width: 58px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
}

.signal-node.core {
  left: calc(50% - 31px);
  top: calc(50% - 17px);
  background: var(--brand-strong);
  color: #fff;
}

.n1 { left: 10%; top: 18%; }
.n2 { right: 8%; top: 16%; }
.n3 { left: 14%; bottom: 14%; }
.n4 { right: 12%; bottom: 18%; }

.signal-line {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 2px;
  background: var(--bta-sky);
  transform-origin: left center;
}

.l1 { transform: rotate(214deg); }
.l2 { transform: rotate(325deg); }
.l3 { transform: rotate(146deg); }
.l4 { transform: rotate(34deg); }

.metric-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 34px;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel {
  padding: 18px;
}

.large-panel {
  min-height: 420px;
}

.section-heading,
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sticky-heading {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px 0;
  background: var(--page);
}

.action-list,
.service-stack,
.request-board,
.asset-grid,
.report-list,
.settings-grid {
  display: grid;
  gap: 12px;
}

.action-item,
.service-item,
.request-card,
.asset-card,
.report-item,
.toggle-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.action-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.severity-bar {
  width: 8px;
  height: 100%;
  min-height: 52px;
  border-radius: 4px;
  background: var(--accent);
}

.action-item h3,
.request-card h3,
.asset-card h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.action-item p,
.request-card p,
.asset-card p,
.report-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pill {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.pill.critical { background: #fee2e2; color: var(--bad); }
.pill.high { background: #ffedd5; color: var(--warn); }
.pill.medium { background: #fef3c7; color: #92400e; }
.pill.good { background: #dcfce7; color: var(--good); }
.pill.blue { background: var(--bta-soft-blue); color: var(--brand-strong); }

.service-item {
  padding: 13px;
}

.service-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.segment {
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
}

.segment.active {
  background: var(--brand);
  color: #fff;
}

.table-panel {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td strong {
  display: block;
  margin-bottom: 3px;
}

td small {
  color: var(--muted);
}

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

.request-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.request-column h3 {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
}

.request-card {
  padding: 14px;
}

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

.asset-card {
  min-height: 142px;
  padding: 15px;
}

.asset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.report-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.embedded-table {
  box-shadow: none;
}

.embedded-table table {
  min-width: 680px;
}

.breach-list,
.password-workflow,
.workflow-steps {
  display: grid;
  gap: 12px;
}

.breach-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.breach-item strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.breach-item p,
.password-workflow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.password-panel {
  grid-column: 2;
}

.password-workflow {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

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

.workflow-steps span {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--brand-soft);
  border-radius: 8px;
  background: #eef2ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.settings-grid {
  padding: 12px;
}

.auth-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.auth-panel p,
.auth-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-controls {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.compact-actions {
  grid-template-columns: auto;
  justify-content: start;
}

.auth-controls input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: var(--panel);
  color: var(--ink);
  text-transform: none;
  font-weight: 650;
}

.auth-status {
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--brand-soft);
  border-radius: 8px;
  background: #eef2ff;
  color: var(--brand-strong);
}

.auth-status[data-tone="error"] {
  border-color: #fecaca;
  background: #fee2e2;
  color: var(--bad);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.toggle-row input {
  width: 46px;
  height: 26px;
  accent-color: var(--brand);
}

.request-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.request-dialog::backdrop {
  background: rgba(5, 8, 20, 0.48);
}

.request-dialog form {
  display: grid;
  gap: 14px;
}

.request-dialog label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
}

.request-dialog input,
.request-dialog select,
.request-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--brand-strong);
  color: #fff;
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px 12px;
    align-items: center;
  }

  .brand span:last-child,
  .nav-link:not(.active) {
    font-size: 0;
  }

  .nav-link {
    justify-content: center;
    width: 48px;
    padding: 0;
  }

  .response-card {
    display: none;
  }

  .overview-grid,
  .hero-panel,
  .service-hero,
  .subscription-grid,
  .channel-grid,
  .admin-grid,
  .service-catalog,
  .exposure-grid {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .password-panel {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    align-items: stretch;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand span:last-child {
    display: block;
  }

  .nav-list {
    grid-template-columns: repeat(9, minmax(34px, 1fr));
    gap: 4px;
  }

  .nav-link,
  .nav-link:not(.active) {
    width: auto;
    font-size: 0;
  }

  .main {
    padding: 16px;
  }

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

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .auth-card {
    padding: 18px;
  }

  .auth-card-actions,
  .auth-card-actions button,
  .session-badge,
  #logoutButton {
    width: 100%;
  }

  .search {
    width: 100%;
  }

  .hero-panel {
    padding: 20px;
  }

  .service-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .signal-map {
    min-height: 210px;
  }

  .metric-row,
  .request-board,
  .asset-grid,
  .subscription-meta,
  .auth-controls,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .service-controls,
  .dialog-heading,
  .bootstrap-banner,
  .report-item,
  .action-item {
    align-items: stretch;
    flex-direction: column;
  }

  .action-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .action-item .ghost-button {
    grid-column: 2;
  }
}
