:root {
  --bg: #090b10;
  --sidebar: #0d1016;
  --surface: #11151d;
  --surface-raised: #171c26;
  --surface-soft: #141923;
  --surface-hover: #1a202c;
  --text: #f4f6fa;
  --text-soft: #c0c7d3;
  --muted: #7d8797;
  --faint: #5d6674;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.13);
  --accent: #ff8b45;
  --accent-bright: #ff9d62;
  --accent-soft: rgba(255, 139, 69, 0.13);
  --green: #60d49b;
  --green-soft: rgba(96, 212, 155, 0.12);
  --yellow: #f4c15d;
  --yellow-soft: rgba(244, 193, 93, 0.12);
  --red: #ff6b74;
  --red-soft: rgba(255, 107, 116, 0.12);
  --blue: #70a7ff;
  --blue-soft: rgba(112, 167, 255, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.42);
  --radius: 12px;
  --radius-sm: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 1024px;
  background:
    radial-gradient(circle at 76% -18%, rgba(255, 139, 69, 0.07), transparent 30%),
    var(--bg);
  color: var(--text);
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.skip-link{position:fixed;top:8px;left:8px;z-index:200;transform:translateY(-160%);padding:9px 13px;border-radius:8px;background:var(--accent);color:#1a1206;font-weight:800;text-decoration:none}
.skip-link:focus{transform:none}

button, input, textarea, select { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.icon { flex: 0 0 auto; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: 34px; line-height: 1.08; letter-spacing: -0.035em; }
h2 { margin-bottom: 5px; font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; }
h3 { margin-bottom: 6px; font-size: 15px; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(255, 139, 69, 0.85);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.app-layout { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 236px;
  flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--line);
  background: rgba(13, 16, 22, 0.96);
}

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

.sidebar .brand { margin: 0 8px 34px; }

.brand-mark {
  display: block;
  width: 42px;
  height: 30px;
  flex: none;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 13px; letter-spacing: 0.14em; }
.brand-copy small { margin-top: 5px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 0.18em; }

.sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.nav-label { margin: 0 12px 8px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-item.is-active { background: var(--surface-raised); color: var(--text); }
.nav-item.is-active::before { position: absolute; left: -14px; width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent); content: ""; }

.sidebar-bottom { display: flex; align-items: center; gap: 8px; padding: 14px 4px 0; border-top: 1px solid var(--line); }
.operator-card { display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; }
.operator-copy { display: flex; min-width: 0; flex-direction: column; }
.operator-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.operator-copy small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(145deg, #252b38, #181d27);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.avatar-small { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.avatar-large { width: 52px; height: 52px; border-radius: 14px; color: var(--accent-bright); font-size: 18px; }

.workspace { min-height: 100vh; margin-left: 236px; }

.workspace-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 16, 0.86);
  backdrop-filter: blur(18px);
}

.workspace-mode, .workspace-actions { display: flex; align-items: center; gap: 9px; }
.workspace-mode { color: var(--text-soft); font-size: 12px; font-weight: 600; }
.workspace-actions { gap: 12px; }
.last-refresh { color: var(--faint); font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(96, 212, 155, 0.08); }

.page-container { width: min(100%, 1480px); margin: 0 auto; padding: 34px 34px 70px; }

.page-heading {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}

.page-heading > div:first-child { min-width: 0; }
.eyebrow { margin-bottom: 10px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; }
.page-lead { max-width: 670px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.heading-status { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.heading-status + h1 { margin-bottom: 6px; }
.muted-copy { color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; align-items: center; gap: 8px; }

.button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.button-primary { border-color: rgba(255, 157, 98, 0.22); background: var(--accent); color: #21120a; box-shadow: inset 0 1px rgba(255, 255, 255, 0.2); }
.button-secondary { border-color: var(--line-strong); background: var(--surface-raised); color: var(--text); }
.button-quiet { border-color: var(--line); background: transparent; color: var(--text-soft); }
.button-danger { border-color: rgba(255, 107, 116, 0.2); background: var(--red-soft); color: #ff9299; }
.button-hint { border-color: rgba(244, 193, 93, 0.22); background: var(--yellow-soft); color: #ffd277; }
.button-code { min-width: 102px; border-color: var(--line-strong); background: var(--surface-raised); color: var(--text-soft); }
.button-code.is-copied { border-color: rgba(96, 212, 155, 0.35); color: var(--green); }
.button-small { min-height: 30px; padding: 0 10px; font-size: 11px; }
.button-block { width: 100%; }

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.sidebar-logout { width: 30px; height: 30px; }
.danger-icon { color: var(--red); }
form { margin: 0; }

.action-menu { position: relative; flex: 0 0 auto; }
.action-menu > summary { list-style: none; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu[open] > summary { background: var(--accent-bright); }

.action-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: 360px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #151a23;
  box-shadow: var(--shadow-lg);
  transform-origin: top right;
}

.action-popover-wide { width: 420px; }
.popover-heading { display: flex; justify-content: space-between; margin-bottom: 16px; }
.popover-heading div { display: flex; flex-direction: column; }
.popover-heading strong { font-size: 14px; }
.popover-heading span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.popover-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0; color: var(--faint); font-size: 10px; text-transform: uppercase; }
.popover-divider::before, .popover-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }

.stack-form { display: flex; flex-direction: column; gap: 12px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--text-soft); font-size: 11px; font-weight: 650; }
.field span { display: flex; justify-content: space-between; }
.field em { color: var(--faint); font-size: 10px; font-style: normal; font-weight: 500; }
.field small { color: var(--faint); font-size: 10px; font-weight: 500; }

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d1118;
  color: var(--text);
  outline: 0;
}

input, select { height: 38px; padding: 0 11px; }
textarea { min-height: 88px; padding: 10px 11px; line-height: 1.45; resize: vertical; }
input::placeholder, textarea::placeholder { color: #4f5867; }
input:focus, textarea:focus, select:focus { border-color: rgba(255, 139, 69, 0.55); background: #10151e; box-shadow: 0 0 0 3px rgba(255, 139, 69, 0.07); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 16px, calc(100% - 11px) 16px; background-repeat: no-repeat; background-size: 4px 4px; }

.switch-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.015); cursor: pointer; }
.switch-row input { width: 16px; height: 16px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.switch-row > span { display: flex; flex-direction: column; }
.switch-row strong { color: var(--text-soft); font-size: 11px; }
.switch-row small { margin-top: 2px; color: var(--faint); font-size: 10px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-card { position: relative; display: grid; min-height: 112px; grid-template: auto 1fr / 37px 1fr; gap: 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; }
.metric-card > div { display: flex; align-items: baseline; gap: 7px; }
.metric-card > div > strong { color: var(--text); font-size: 25px; line-height: 1; letter-spacing: -0.035em; }
.metric-card > div > strong small { margin-left: 2px; color: var(--faint); font-size: 12px; }
.metric-card > div > span { color: var(--text-soft); font-size: 11px; font-weight: 650; }
.metric-card > small { grid-column: 2; align-self: end; color: var(--faint); font-size: 10px; }
.metric-card > small .icon { margin-left: 4px; vertical-align: -2px; }
.metric-icon { display: grid; width: 36px; height: 36px; grid-row: span 2; place-items: center; border-radius: 9px; }
.metric-icon.accent { background: var(--accent-soft); color: var(--accent); }
.metric-icon.success { background: var(--green-soft); color: var(--green); }
.metric-icon.warning { background: var(--yellow-soft); color: var(--yellow); }
.metric-icon.danger { background: var(--red-soft); color: var(--red); }
.metric-icon.neutral { background: var(--blue-soft); color: var(--blue); }
.metric-step { max-width: 170px; overflow: hidden; font-size: 15px !important; text-overflow: ellipsis; white-space: nowrap; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 3px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.section-heading.compact { padding: 16px 17px; }
.count-badge { display: inline-grid; min-width: 26px; height: 24px; place-items: center; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); color: var(--muted); font-size: 10px; font-weight: 750; }
.count-warning { border-color: rgba(244, 193, 93, 0.17); background: var(--yellow-soft); color: var(--yellow); }
.panel-icon { color: var(--muted); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.7fr); gap: 18px; align-items: start; }
.dashboard-side { display: flex; flex-direction: column; gap: 18px; }
.cohort-list { padding: 5px; }
.cohort-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; min-height: 92px; padding: 12px 13px; border-radius: 9px; color: inherit; text-decoration: none; }
.cohort-row + .cohort-row { border-top: 1px solid var(--line); border-radius: 0; }
.cohort-avatar { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 139, 69, 0.16); border-radius: 10px; background: var(--accent-soft); color: var(--accent-bright); font-size: 13px; font-weight: 850; }
.cohort-main { display: flex; min-width: 0; flex-direction: column; }
.cohort-title { display: flex; align-items: center; gap: 7px; }
.cohort-title strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cohort-meta { margin-top: 3px; color: var(--muted); font-size: 10px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status-active { background: var(--green); }
.status-draft { background: var(--yellow); }
.progress-track { display: block; width: min(100%, 370px); height: 4px; margin-top: 10px; overflow: hidden; border-radius: 5px; background: #272d38; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ffc26f); }
.cohort-stats { display: flex; min-width: 126px; align-items: flex-end; flex-direction: column; gap: 6px; text-align: right; }
.cohort-stats > span:not(.attention-count) { display: flex; flex-direction: column; }
.cohort-stats strong { font-size: 14px; }
.cohort-stats small { color: var(--faint); font-size: 9px; }
.attention-count { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow); font-size: 9px; }

.attention-list { padding: 4px 13px 10px; }
.attention-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 3px; border-bottom: 1px solid var(--line); }
.attention-item:last-child { border-bottom: 0; }
.attention-person { display: flex; min-width: 0; align-items: center; gap: 9px; text-decoration: none; }
.attention-person > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.attention-person strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.attention-person small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.attention-item .state-badge { align-self: start; }
.inline-actions { display: flex; grid-column: 1 / -1; gap: 6px; padding-left: 39px; }
.attention-item > .text-link { grid-column: 1 / -1; justify-self: end; }
.all-good { display: flex; align-items: center; gap: 10px; margin: 15px; padding: 12px; border: 1px solid rgba(96, 212, 155, 0.1); border-radius: 9px; background: var(--green-soft); }
.all-good > span:first-child { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(96, 212, 155, 0.12); color: var(--green); }
.all-good > div { display: flex; flex-direction: column; }
.all-good strong { font-size: 11px; }
.all-good small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-bright); font-size: 10px; font-weight: 700; text-decoration: none; }
.quiet-message { display: flex; align-items: center; gap: 8px; margin: 14px 17px; color: var(--muted); font-size: 11px; }
.security-mini-list { padding: 4px 10px 10px; }
.security-mini-list a, .participant-alert { display: grid; grid-template-columns: 7px minmax(0, 1fr) 15px; align-items: center; gap: 9px; padding: 10px 7px; color: inherit; text-decoration: none; }
.security-mini-list a + a, .participant-alert + .participant-alert { border-top: 1px solid var(--line); }
.security-mini-list span:nth-child(2), .participant-alert span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.security-mini-list strong, .participant-alert strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.security-mini-list small, .participant-alert small { color: var(--muted); font-size: 9px; }
.severity-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.severity-medium { background: var(--yellow); }
.severity-high, .severity-critical { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.state-badge { display: inline-flex; width: max-content; min-height: 23px; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.035); color: var(--text-soft); font-size: 9px; font-weight: 750; white-space: nowrap; }
.state-success { border-color: rgba(96, 212, 155, 0.14); background: var(--green-soft); color: var(--green); }
.state-warning { border-color: rgba(244, 193, 93, 0.14); background: var(--yellow-soft); color: var(--yellow); }
.state-danger { border-color: rgba(255, 107, 116, 0.16); background: var(--red-soft); color: var(--red); }
.state-info { border-color: rgba(120, 173, 255, 0.16); background: rgba(120, 173, 255, 0.12); color: #78adff; }
.state-muted { color: var(--muted); }
.state-neutral { color: var(--text-soft); }
.state-indicator { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.empty-state { display: flex; min-height: 240px; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; }
.empty-icon { display: grid; width: 44px; height: 44px; margin-bottom: 13px; place-items: center; border-radius: 12px; background: var(--surface-raised); color: var(--muted); }
.success-empty { background: var(--green-soft); color: var(--green); }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p { max-width: 340px; margin-bottom: 0; color: var(--muted); font-size: 11px; }
.compact-empty { min-height: 270px; }

.flash-stack { position: fixed; top: 72px; right: 24px; z-index: 100; display: flex; width: min(380px, calc(100vw - 48px)); flex-direction: column; gap: 8px; }
.flash { display: grid; grid-template-columns: 28px 1fr 25px; align-items: center; gap: 8px; min-height: 52px; padding: 8px 9px; border: 1px solid rgba(96, 212, 155, 0.2); border-radius: 10px; background: #16241f; color: #c9f6df; box-shadow: var(--shadow-lg); font-size: 11px; }
.flash.alert { border-color: rgba(255, 107, 116, 0.2); background: #27181d; color: #ffc3c7; }
.flash-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: rgba(96, 212, 155, 0.09); color: var(--green); }
.flash.alert .flash-icon { background: var(--red-soft); color: var(--red); }
.flash-close { display: grid; width: 25px; height: 25px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: currentColor; cursor: pointer; opacity: 0.6; }

.inline-copy { display: inline-flex; align-items: center; gap: 5px; padding: 1px 4px; border: 0; border-radius: 5px; background: transparent; color: var(--text-soft); cursor: pointer; }
.inline-copy code { font-size: 11px; }
.one-time-code { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 13px; margin-bottom: 16px; padding: 13px 15px; border: 1px solid rgba(244, 193, 93, 0.2); border-radius: 10px; background: linear-gradient(90deg, rgba(244, 193, 93, 0.1), rgba(244, 193, 93, 0.035)); }
.one-time-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--yellow-soft); color: var(--yellow); }
.one-time-code > div { display: flex; flex-direction: column; }
.one-time-code strong { font-size: 12px; }
.one-time-code p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.one-time-code > code { padding: 7px 10px; border: 1px solid rgba(244, 193, 93, 0.16); border-radius: 7px; background: rgba(0, 0, 0, 0.2); color: #ffe2a7; font-size: 14px; font-weight: 750; letter-spacing: 0.08em; }

.decision-banner { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; margin-bottom: 16px; padding: 13px 15px; border: 1px solid rgba(244, 193, 93, 0.18); border-radius: 10px; background: var(--yellow-soft); }
.decision-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: rgba(244, 193, 93, 0.09); color: var(--yellow); }
.decision-banner strong { font-size: 12px; }
.decision-banner p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }

.participant-panel { overflow: hidden; }
.participant-heading { align-items: center; }
.participant-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.01); }
.search-box { position: relative; display: flex; width: min(390px, 38%); align-items: center; }
.search-box .icon { position: absolute; left: 11px; color: var(--faint); }
.search-box input { height: 34px; padding-left: 35px; font-size: 11px; }
.segmented-control { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #0d1118; }
.segmented-control button { min-height: 27px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 650; }
.segmented-control button.is-active { background: var(--surface-raised); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--faint); font-size: 9px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.participant-table { min-width: 940px; }
.participant-table th:first-child, .participant-table td:first-child { padding-left: 18px; }
.participant-table th:last-child, .participant-table td:last-child { padding-right: 18px; }
.person-cell { display: flex; min-width: 0; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.person-cell > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.person-cell strong { overflow: hidden; max-width: 180px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.person-cell small { overflow: hidden; max-width: 180px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.progress-cell { display: flex; flex-direction: column; white-space: nowrap; }
.progress-cell strong { font-size: 11px; }
.progress-cell strong span { margin-left: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.progress-cell > span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.current-step { display: block; overflow: hidden; max-width: 170px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.table-subline { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.connection { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 10px; white-space: nowrap; }
.connection-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--faint); }
.connection-dot.is-online { background: var(--green); box-shadow: 0 0 0 3px rgba(96, 212, 155, 0.08); }
.align-right { text-align: right; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.no-action { color: var(--faint); font-size: 9px; }
.filter-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.filter-empty p { margin: 0; font-size: 11px; }

.settings-panel { margin-top: 16px; overflow: hidden; }
.settings-panel > summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 0 17px; cursor: pointer; list-style: none; }
.settings-panel > summary::-webkit-details-marker { display: none; }
.settings-panel > summary > span { display: flex; align-items: center; gap: 9px; }
.settings-panel > summary .icon { color: var(--muted); }
.settings-panel[open] > summary > .icon { transform: rotate(90deg); }
.settings-form { display: grid; grid-template-columns: 150px 150px 150px minmax(250px, 1fr) auto; align-items: end; gap: 12px; padding: 17px; border-top: 1px solid var(--line); }
.compact-switch { min-height: 55px; margin: 0; }

.participant-title { display: flex; align-items: center; gap: 14px; }
.participant-title h1 { font-size: 30px; }
.participant-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.72fr); gap: 18px; align-items: start; }
.participant-side-stack { display: flex; flex-direction: column; gap: 14px; }
.activity-panel { overflow: hidden; }
.timeline { margin: 0; padding: 9px 20px 18px; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 10px; min-height: 54px; padding: 10px 0; }
.timeline li:not(:last-child)::after { position: absolute; top: 27px; bottom: -10px; left: 5px; width: 1px; background: var(--line); content: ""; }
.timeline-mark { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; border: 3px solid var(--surface); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--line-strong); }
.timeline-mark.is-success { background: var(--green); }
.timeline-mark.is-failure { background: var(--red); }
.timeline-content { min-width: 0; }
.timeline-content > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timeline-content strong { font-size: 11px; font-weight: 650; }
.timeline-content time { color: var(--faint); font-size: 9px; white-space: nowrap; }
.timeline-content code { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-more { border-top: 1px solid var(--line); }
.timeline-more summary { padding: 12px 20px; color: var(--blue); cursor: pointer; font-size: 10px; font-weight: 700; list-style-position: inside; }
.timeline-more[open] summary { border-bottom: 1px solid var(--line); }
.timeline-more .timeline { padding-top: 4px; }

.hint-card, .device-card, .notes-card, .participant-alerts { overflow: hidden; }
.hint-card > .button, .hint-card > form { margin-right: 16px; margin-left: 16px; }
.current-challenge { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 10px; }
.current-challenge span, .subsection-label { color: var(--faint); font-size: 9px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.current-challenge code { overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.helper-copy { margin: 8px 16px 14px; color: var(--faint); font-size: 9px; }
.hint-complete { margin-top: 2px; }
.active-hints { margin-top: 14px; padding: 13px 16px 7px; border-top: 1px solid var(--line); }
.active-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; }
.active-hint + .active-hint { border-top: 1px solid var(--line); }
.active-hint > span { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 8px; min-width: 0; }
.active-hint strong { font-size: 10px; }
.active-hint code { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.active-hint small { grid-column: 1 / -1; color: var(--faint); font-size: 8px; }
.manual-action { margin-top: 8px; border-top: 1px solid var(--line); }
.manual-action > summary { padding: 11px 16px; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 650; list-style-position: inside; }
.mini-form { padding: 2px 16px 16px; }

.detail-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 5px 16px 15px; }
.detail-list > div { min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-list > div:nth-child(odd) { padding-right: 12px; }
.detail-list > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
.detail-list > div.detail-full { grid-column: 1 / -1; padding-right: 0; padding-left: 0; border-left: 0; }
.detail-list dt { margin-bottom: 4px; color: var(--faint); font-size: 9px; }
.detail-list dd { margin: 0; color: var(--text-soft); font-size: 10px; }
.risk-value { color: var(--green) !important; font-weight: 800; }
.risk-value.is-high { color: var(--red) !important; }
.fingerprint { display: flex; align-items: center; gap: 5px; }
.fingerprint code { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
.fingerprint .icon-button { width: 26px; height: 26px; }
.ban-reason { display: flex; gap: 8px; margin: 0 16px 15px; padding: 10px; border-radius: 8px; background: var(--red-soft); color: var(--red); }
.ban-reason > span { display: flex; flex-direction: column; color: #ffadb2; font-size: 9px; }
.ban-reason strong { margin-bottom: 2px; color: var(--red); }
.notes-card form { padding: 14px 16px 16px; }
.work-mode-card { overflow: hidden; }
.work-mode-current { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px 10px; }
.work-mode-current span { color: var(--faint); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.work-mode-current strong { font-size: 15px; }
.work-mode-current small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.work-mode-form { padding: 0 16px 16px; }
.work-mode-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; border: 0; }
.work-mode-option { display: flex; min-width: 0; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); cursor: pointer; }
.work-mode-option:has(input:checked), .work-mode-option.is-current { border-color: rgba(255,139,69,.35); background: var(--accent-soft); }
.work-mode-option input { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--accent); }
.work-mode-option span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.work-mode-option strong { font-size: 11px; }
.work-mode-option small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.work-mode-note { margin: 11px 0; color: var(--faint); font-size: 10.5px; line-height: 1.45; }
.curriculum-form { padding: 0 16px 16px; }
.curriculum-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; border: 0; }
.curriculum-option { display: flex; min-width: 0; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); cursor: pointer; }
.curriculum-option:has(input:checked), .curriculum-option.is-current { border-color: rgba(255,139,69,.35); background: var(--accent-soft); }
.curriculum-option input { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--accent); }
.curriculum-option span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.curriculum-option strong { font-size: 11px; }
.curriculum-option small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.bulk-work-mode-form { grid-template-columns: minmax(340px, 1.4fr) minmax(220px, 1fr) auto; align-items: center; }
.bulk-work-mode-copy { line-height: 1.45; }
@media (max-width: 560px) { .work-mode-options, .curriculum-options { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .bulk-work-mode-form { grid-template-columns: 1fr; } }
.sr-label > span { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); }
.align-self-end { align-self: flex-end; }
.participant-alerts { padding-bottom: 7px; }
.participant-alert { margin: 0 9px; }

.security-event-list { padding: 4px 14px 12px; }
.security-event { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); scroll-margin-top: 75px; }
.security-event:last-child { border-bottom: 0; }
.security-event:target { margin: 0 -8px; padding-right: 12px; padding-left: 12px; border-radius: 9px; background: var(--yellow-soft); }
.security-event.is-acknowledged { opacity: 0.58; }
.security-event-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--surface-raised); color: var(--muted); }
.severity-bg-medium { background: var(--yellow-soft); color: var(--yellow); }
.severity-bg-high, .severity-bg-critical { background: var(--red-soft); color: var(--red); }
.security-event-main { min-width: 0; }
.security-event-title { display: flex; align-items: center; gap: 7px; }
.security-event-title strong { font-size: 12px; }
.severity-label, .ack-label { display: inline-flex; min-height: 19px; align-items: center; gap: 3px; padding: 0 6px; border-radius: 999px; background: var(--surface-raised); color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.security-burst-count { display: inline-flex; min-height: 19px; align-items: center; padding: 0 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 8px; font-weight: 750; }
.severity-label-medium { background: var(--yellow-soft); color: var(--yellow); }
.severity-label-high, .severity-label-critical { background: var(--red-soft); color: var(--red); }
.ack-label { background: var(--green-soft); color: var(--green); text-transform: none; }
.security-event-main > p { margin: 5px 0; color: var(--muted); font-size: 10px; }
.security-event-main > p a { color: var(--text-soft); font-weight: 650; text-decoration: none; }
.security-event-main > p span { margin: 0 3px; color: var(--faint); }
.security-event-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; color: var(--faint); font-size: 9px; }
.security-event-meta span { display: inline-flex; align-items: center; gap: 4px; }
.security-event-meta code { color: var(--muted); }
.security-event-actions { display: flex; align-items: center; gap: 6px; padding-top: 3px; }

.audit-total { display: flex; align-items: baseline; gap: 6px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 10px; }
.audit-total strong { color: var(--text); font-size: 15px; }
.audit-list { padding: 4px 15px 12px; }
.audit-entry { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 11px; padding: 14px 3px; border-bottom: 1px solid var(--line); }
.audit-entry:last-child { border-bottom: 0; }
.audit-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--surface-raised); color: var(--muted); }
.audit-main { min-width: 0; }
.audit-title { display: flex; align-items: baseline; gap: 5px; }
.audit-title strong { font-size: 11px; }
.audit-title span { color: var(--text-soft); font-size: 10px; }
.audit-details { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; color: var(--faint); font-size: 9px; }
.audit-details code { color: var(--muted); }
.audit-details a { color: var(--accent-bright); text-decoration: none; }
.audit-time { display: flex; align-items: flex-end; flex-direction: column; color: var(--text-soft); font-size: 9px; }
.audit-time small, .audit-time code { margin-top: 2px; color: var(--faint); font-size: 8px; }

.security-note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid rgba(112, 167, 255, 0.14); border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.security-note > div { display: flex; flex-direction: column; }
.security-note strong { color: #b6d1ff; font-size: 11px; }
.security-note p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.sr-copy-source { position: fixed; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.codes-panel { overflow: hidden; }
.codes-table-heading, .code-row { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.65fr) 110px; align-items: center; gap: 14px; padding: 11px 18px; }
.codes-table-heading { border-bottom: 1px solid var(--line); color: var(--faint); font-size: 9px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.code-row { min-height: 64px; border-bottom: 1px solid var(--line); }
.code-row:last-child { border-bottom: 0; }
.code-row > code { width: max-content; padding: 6px 9px; border: 1px solid rgba(244, 193, 93, 0.14); border-radius: 6px; background: var(--yellow-soft); color: #ffe2a7; font-size: 12px; font-weight: 750; letter-spacing: 0.06em; }
.page-footer-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.page-footer-actions p { margin: 0; color: var(--faint); font-size: 9px; }

.auth-app { min-width: 900px; background: radial-gradient(circle at 20% 30%, rgba(255, 139, 69, 0.08), transparent 25%), radial-gradient(circle at 85% 85%, rgba(112, 167, 255, 0.05), transparent 25%), var(--bg); }
.auth-header { position: fixed; top: 0; left: 0; padding: 25px 32px; }
.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 80px 8vw 50px; }
.auth-layout { display: grid; width: min(100%, 1040px); grid-template-columns: minmax(0, 1.15fr) 390px; align-items: center; gap: 100px; }
.auth-intro { max-width: 530px; }
.auth-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--text-soft); font-size: 10px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-intro h1 { margin-bottom: 18px; font-size: 43px; line-height: 1.08; }
.auth-intro h1 span { color: var(--accent-bright); }
.auth-intro > p { max-width: 490px; margin-bottom: 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-feature-list { display: flex; flex-direction: column; gap: 11px; }
.auth-feature-list span { display: flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 11px; }
.auth-feature-list .icon { color: var(--accent); }
.auth-card { padding: 24px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(17, 21, 29, 0.88); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); }
.auth-card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 23px; }
.auth-lock { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.auth-card-heading h2 { margin-bottom: 3px; font-size: 17px; }
.auth-card-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.auth-form { gap: 15px; }
.auth-submit { height: 42px; margin-top: 3px; }
.auth-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--faint); font-size: 9px; }

/* Visual workshop edition builder and post-workshop report. */
.edition-panel { margin-bottom: 18px; overflow: hidden; }
.edition-summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 17px 18px; }
.edition-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 139, 69, 0.18); border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.section-eyebrow { display: block; margin-bottom: 3px; color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.edition-summary h2 { margin: 0; font-size: 15px; }
.edition-summary p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.edition-summary p strong { color: var(--text-soft); }
.edition-summary-actions, .report-export-actions { display: flex; align-items: center; gap: 8px; }
.edition-builder { border-top: 1px solid var(--line); background: rgba(255,255,255,.008); }
.edition-presets { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:10px; padding:16px 16px 4px; }
.edition-presets .button { height:auto; min-height:84px; align-items:flex-start; flex-direction:column; text-align:left; padding:13px 15px; }
.edition-presets .button span,.edition-presets .button small { color:var(--muted); font-weight:500; }
.edition-form { display: grid; }
.edition-toolbar { position: sticky; z-index: 2; top: 54px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); }
.edition-search { width: min(330px, 34%); }
.edition-filters { margin-left: auto; }
.edition-grid { display: grid; max-height: 470px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: auto; padding: 14px 16px; scrollbar-gutter: stable; }
.edition-card { position: relative; display: grid; min-height: 68px; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }
.edition-card[hidden] { display: none; }
.edition-card > input { position: absolute; opacity: 0; pointer-events: none; }
.edition-card:has(input:checked) { border-color: rgba(255,139,69,.32); background: var(--accent-soft); }
.edition-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.edition-card-check { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; color: transparent; }
.edition-card:has(input:checked) .edition-card-check { border-color: var(--accent); background: var(--accent); color: #21120a; }
.edition-card-copy { display: grid; min-width: 0; gap: 3px; }
.edition-card-copy strong { overflow: hidden; color: var(--text-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.edition-card-copy small { color: var(--faint); font: 8px/1.2 var(--mono); }
.edition-card-meta { display: grid; justify-items: end; gap: 3px; }
.edition-card-meta b { color: var(--text-soft); font-size: 9px; }
.edition-card-meta small { color: var(--faint); font-size: 8px; }
.edition-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 15px 16px; border-top: 1px solid var(--line); }
.edition-options { display: flex; width: min(700px, 70%); align-items: flex-end; gap: 12px; }
.edition-options .field { flex: 1; }
.edition-options .compact-switch { min-width: 230px; }
.edition-save { display: flex; align-items: center; gap: 12px; }
.edition-save-copy { display: grid; justify-items: end; gap: 3px; text-align: right; }
.edition-save-copy > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.edition-save-copy > span b { color: var(--text-soft); }
.edition-save-copy small { max-width: 310px; color: var(--faint); font-size: 9px; line-height: 1.35; }
.edition-save-copy small[data-state="good"] { color: var(--success); }
.edition-save-copy small[data-state="tight"] { color: var(--warning); }
.edition-save-copy small[data-state="long"] { color: var(--danger); }
.edition-package { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--surface-raised); }
.edition-package strong { display: block; color: var(--text-soft); font-size: 10px; }
.edition-package p { margin: 3px 0 0; color: var(--faint); font-size: 9px; }
.report-heading { align-items: flex-end; }
.report-metrics { margin-bottom: 18px; }
.report-panel { margin-bottom: 16px; }
.report-panel .section-heading { padding: 16px 18px; }
.report-table td:first-child { min-width: 230px; }
.report-feedback-line { color: var(--text-soft); font-size: 10px; }

@media (hover: hover) and (pointer: fine) {
  .edition-card:hover { border-color: var(--line-strong); background: var(--surface-hover); }
}
.auth-flashes { top: 24px; }

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover { background: rgba(255, 255, 255, 0.035); color: var(--text-soft); }
  .button-primary:hover { background: var(--accent-bright); }
  .button-secondary:hover, .button-code:hover { border-color: rgba(255, 255, 255, 0.18); background: var(--surface-hover); }
  .button-quiet:hover, .icon-button:hover { border-color: var(--line-strong); background: var(--surface-raised); color: var(--text); }
  .button-danger:hover { border-color: rgba(255, 107, 116, 0.28); background: rgba(255, 107, 116, 0.18); }
  .button-hint:hover { border-color: rgba(244, 193, 93, 0.3); background: rgba(244, 193, 93, 0.17); }
  .back-link:hover, .text-link:hover { color: var(--text); }
  .cohort-row:hover { background: rgba(255, 255, 255, 0.025); }
  .metric-card-link:hover { border-color: rgba(255, 107, 116, 0.2); background: #141820; }
  .attention-person:hover strong, .person-cell:hover strong, .security-event-main > p a:hover { color: var(--accent-bright); }
  .security-mini-list a:hover, .participant-alert:hover { border-radius: 7px; background: rgba(255, 255, 255, 0.025); }
  .inline-copy:hover { background: var(--surface-raised); color: var(--accent-bright); }
  .flash-close:hover { background: rgba(255, 255, 255, 0.07); opacity: 1; }
  .segmented-control button:hover { color: var(--text-soft); }
}

@media (max-width: 1180px) {
  .sidebar { width: 78px; align-items: center; padding-right: 10px; padding-left: 10px; }
  .sidebar .brand { margin-right: 0; margin-left: 0; }
  .brand-copy, .nav-label, .nav-item span, .operator-copy { display: none; }
  .sidebar-nav { width: 100%; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item.is-active::before { left: -10px; }
  .sidebar-bottom { flex-direction: column; }
  .operator-card { flex: none; }
  .workspace { margin-left: 78px; }
  .dashboard-grid, .participant-detail-grid { grid-template-columns: minmax(0, 1fr) 350px; }
  .settings-form { grid-template-columns: repeat(3, 1fr); }
  .settings-form .compact-switch { grid-column: 1 / 3; }
  .edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edition-footer { align-items: stretch; flex-direction: column; }
  .edition-options { width: 100%; }
  .edition-save { justify-content: flex-end; }
}

@media (max-width: 1020px) {
  .dashboard-grid, .participant-detail-grid { grid-template-columns: 1fr; }
  .dashboard-side { display: grid; grid-template-columns: 1fr 1fr; }
  .participant-side-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .participant-side-stack > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .edition-summary { grid-template-columns: 42px minmax(0,1fr); }
  .edition-summary-actions { grid-column: 2; justify-content: flex-start; }
  .edition-toolbar { align-items: stretch; flex-wrap: wrap; }
  .edition-search { width: 100%; }
  .edition-filters { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
}
