@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap");

:root {
  --bg-dark: #0a0e1a;
  --bg-card: rgba(13, 21, 42, 0.92);
  --bg-card-hover: rgba(20, 32, 60, 0.7);
  --bg-surface: rgba(20, 32, 60, 0.7);
  --military-green: #00d4ff;
  --military-green-light: #33e0ff;
  --amber: #00ff88;
  --amber-dim: #00cc6a;
  --danger-red: #ff3366;
  --danger-red-dim: #cc2952;
  --steel-blue: #5a7099;
  --steel-blue-light: #7a90b9;
  --white: #ffffff;
  --text-primary: #c8d6f0;
  --text-secondary: #7a90b9;
  --text-muted: #5a7099;
  --border-color: rgba(0, 200, 255, 0.12);
  --border-highlight: rgba(0, 212, 255, 0.25);
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
  --accent: #00d4ff;
  --warning: #ffaa00;
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow: 0 0 30px rgba(0, 212, 255, 0.08), 0 0 60px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 0 40px rgba(0, 212, 255, 0.12), 0 0 80px rgba(0, 0, 0, 0.5);
  --glow-cyan: 0 0 10px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.1);
  --glow-green:
    0 0 10px rgba(0, 255, 136, 0.3), 0 0 20px rgba(0, 255, 136, 0.1);
  --glow-red:
    0 0 10px rgba(255, 51, 102, 0.3), 0 0 20px rgba(255, 51, 102, 0.1);
  --glow-yellow:
    0 0 10px rgba(255, 170, 0, 0.3), 0 0 20px rgba(255, 170, 0, 0.1);
  --warning-stripe: repeating-linear-gradient(
    -45deg,
    rgba(0, 212, 255, 0.3) 0px,
    rgba(0, 212, 255, 0.3) 10px,
    transparent 10px,
    transparent 20px
  );
  --warning-stripe-thin: repeating-linear-gradient(
    -45deg,
    rgba(0, 212, 255, 0.4) 0px,
    rgba(0, 212, 255, 0.4) 4px,
    rgba(10, 14, 26, 0.9) 4px,
    rgba(10, 14, 26, 0.9) 8px
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(0, 212, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 100%,
      rgba(0, 255, 136, 0.04) 0%,
      transparent 50%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 212, 255, 0.015) 2px,
      rgba(0, 212, 255, 0.015) 4px
    );
  opacity: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.4);
}

.classified-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.classified-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--military-green),
    transparent
  );
  opacity: 0.5;
}

.classified-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.classified-stamp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
  flex-shrink: 0;
}

.classified-stamp .sep {
  color: var(--danger-red);
  font-weight: 400;
}

.classified-stamp .label-classified {
  background: rgba(0, 212, 255, 0.15);
  color: var(--military-green);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 0.15rem 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.classified-stamp .label-top-secret {
  border: 1px solid rgba(255, 51, 102, 0.4);
  color: var(--danger-red);
  padding: 0.1rem 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--military-green);
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.15);
}

nav a.active {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.08);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--military-green);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

#auth-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-root > * {
  pointer-events: auto;
}

.session-notice-root {
  position: fixed;
  left: 50%;
  bottom: 5rem;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
  width: min(92vw, 780px);
  pointer-events: none;
}

.toast,
.session-notice {
  max-width: min(92vw, 560px);
  padding: 0.55rem 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.toast {
  animation: fadeInOut 3s ease forwards;
}

.session-notice {
  text-align: center;
  animation: sessionNoticeInOut 3.2s ease forwards;
}

.toast.is-primary,
.session-notice.is-primary {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.3),
    rgba(0, 255, 136, 0.15)
  );
  border-color: var(--military-green);
  color: var(--military-green);
  box-shadow:
    0 0 15px rgba(0, 212, 255, 0.4),
    0 0 30px rgba(0, 212, 255, 0.15);
}

.toast.is-amber,
.session-notice.is-amber,
.toast.is-join,
.session-notice.is-join {
  background: rgba(0, 255, 136, 0.25);
  border: 1px solid var(--amber);
  color: var(--amber);
  box-shadow: var(--glow-green);
}

.toast.is-danger,
.session-notice.is-danger,
.toast.is-delete,
.session-notice.is-delete {
  background: rgba(255, 51, 102, 0.25);
  border: 1px solid var(--danger-red);
  color: var(--danger-red);
  box-shadow: var(--glow-red);
}

.toast.is-warning,
.session-notice.is-warning {
  background: rgba(255, 170, 0, 0.2);
  border: 1px solid var(--warning);
  color: var(--warning);
  box-shadow: var(--glow-yellow);
}

.toast.is-gray,
.session-notice.is-gray {
  background: rgba(128, 128, 128, 0.25);
  border: 1px solid rgba(128, 128, 128, 0.4);
  color: var(--text-primary);
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  10% {
    opacity: 1;
    transform: translateX(0);
  }
  80% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(30px);
  }
}

@keyframes sessionNoticeInOut {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  12% {
    opacity: 1;
    transform: translateY(0);
  }
  82% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

h1 {
  font-size: 1.6rem;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 0.95rem;
}
h4 {
  font-size: 0.85rem;
}

.section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: "▸";
  color: var(--military-green);
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

.classification-marker {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-blue);
  opacity: 0.5;
  display: block;
  text-align: center;
  padding: 0.5rem;
}

.warning-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--military-green),
    transparent
  );
  margin: 2rem 0;
  opacity: 0.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
  position: relative;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary,
.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.2),
    rgba(0, 255, 136, 0.1)
  );
  color: var(--military-green);
  border-color: var(--military-green);
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover,
.btn.primary:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.3),
    rgba(0, 255, 136, 0.15)
  );
  box-shadow:
    0 0 15px rgba(0, 212, 255, 0.4),
    0 0 30px rgba(0, 212, 255, 0.15);
}

.btn-secondary {
  background: rgba(0, 212, 255, 0.06);
  color: var(--military-green);
  border-color: rgba(0, 212, 255, 0.2);
}
.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--military-green);
}

.btn-amber {
  background: rgba(0, 255, 136, 0.15);
  color: var(--amber);
  border-color: var(--amber);
  box-shadow: var(--glow-green);
}
.btn-amber:hover {
  background: rgba(0, 255, 136, 0.25);
}

.btn-danger {
  background: rgba(255, 51, 102, 0.15);
  color: var(--danger-red);
  border-color: var(--danger-red);
  box-shadow: var(--glow-red);
}
.btn-danger:hover {
  background: rgba(255, 51, 102, 0.25);
}

.btn-sm {
  font-size: 0.65rem;
  padding: 0.4rem 0.8rem;
  letter-spacing: 0.08em;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.4rem 0.6rem;
}
.btn-ghost:hover {
  color: var(--amber);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.3),
    transparent
  );
  z-index: 1;
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    var(--glow-cyan);
}

.card-stripe {
  border-left: 3px solid var(--steel-blue);
  padding: 1.25rem 1.5rem;
}

.card-stripe.stripe-green {
  border-left-color: var(--military-green);
}
.card-stripe.stripe-amber {
  border-left-color: var(--amber);
}
.card-stripe.stripe-red {
  border-left-color: var(--danger-red);
}
.card-stripe.stripe-blue {
  border-left-color: var(--steel-blue);
}

.tactical-overlay {
  position: relative;
}

.tactical-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(74, 124, 89, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 124, 89, 0.5) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

.tactical-overlay > * {
  position: relative;
  z-index: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-dark);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--military-green);
  box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.15);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

#password-valid-list,
#change-password-valid-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.75rem;
  margin-top: 0.25rem;
}

#password-valid-list li,
#change-password-valid-list li {
  font-size: 0.75rem;
  color: var(--danger-red);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

#password-valid-list li::before,
#change-password-valid-list li::before {
  content: "X";
  font-size: 0.7rem;
  color: var(--danger-red);
}

#password-valid-list li.valid,
#change-password-valid-list li.valid {
  color: var(--amber);
}
#password-valid-list li.valid::before,
#change-password-valid-list li.valid::before {
  content: "O";
  color: var(--amber);
}

.password-modal-copy {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

#change-password-notice {
  margin-top: 0.75rem;
}

.tab-group {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tab-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--amber);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
}

.toggle-group {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.toggle-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius-sm);
}

.toggle-btn.active {
  background: var(--military-green);
  border-color: var(--military-green);
  color: var(--white);
}

.framework-mode-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.framework-toggle-group {
  width: fit-content;
}

.framework-summary-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-md);
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 255, 136, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(18, 28, 52, 0.95), rgba(10, 16, 30, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(122, 144, 185, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.18);
}

.framework-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.framework-summary-header h3 {
  margin: 0;
  color: var(--amber);
  font-size: 0.95rem;
}

.framework-summary-header p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.framework-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.framework-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(
    180deg,
    rgba(18, 28, 52, 0.92),
    rgba(10, 16, 30, 0.88)
  );
  color: var(--text-primary);
  font-size: 0.74rem;
  box-shadow: inset 0 1px 0 rgba(122, 144, 185, 0.08);
}

.framework-pill::before {
  content: "●";
  color: var(--amber);
  font-size: 0.58rem;
}

#color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s,
    border-color 0.15s;
}

.color-swatch:hover {
  transform: scale(1.15);
}
.color-swatch.selected {
  border-color: var(--white);
  box-shadow:
    0 0 0 2px var(--bg-dark),
    0 0 0 4px var(--amber);
}

#icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.icon-option {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.icon-option:hover {
  border-color: var(--amber);
  background: var(--bg-card-hover);
}
.icon-option.selected {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 0 1px var(--amber);
}

.notice {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--steel-blue);
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-secondary);
}

.notice.warning {
  border-left-color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  color: var(--amber);
}

.notice.danger {
  border-left-color: var(--danger-red);
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger-red);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  min-width: 22px;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: var(--military-green);
  color: var(--white);
}

.pill.amber {
  background: var(--amber);
  color: var(--bg-dark);
}
.pill.red {
  background: var(--danger-red);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.kpi-card.green::before {
  background: var(--military-green);
}
.kpi-card.amber::before {
  background: var(--amber);
}
.kpi-card.red::before {
  background: var(--danger-red);
}
.kpi-card.blue::before {
  background: var(--steel-blue);
}

.kpi-card .kpi-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text-primary);
}

.kpi-card .kpi-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-surface);
  white-space: nowrap;
}

tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

tbody tr:hover {
  background: var(--bg-card-hover);
}

.radar-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem;
}

.radar-circle {
  position: absolute;
  border: 1px solid rgba(74, 124, 89, 0.25);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radar-circle:nth-child(1) {
  width: 220px;
  height: 220px;
}
.radar-circle:nth-child(2) {
  width: 160px;
  height: 160px;
}
.radar-circle:nth-child(3) {
  width: 100px;
  height: 100px;
}
.radar-circle:nth-child(4) {
  width: 40px;
  height: 40px;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  transform-origin: 0 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(74, 124, 89, 0.35) 30deg,
    transparent 60deg
  );
  border-radius: 0 110px 0 0;
  animation: radarSweep 3s linear infinite;
}

.radar-crosshair-h,
.radar-crosshair-v {
  position: absolute;
  background: rgba(74, 124, 89, 0.15);
}
.radar-crosshair-h {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}
.radar-crosshair-v {
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
}

.radar-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--military-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--military-green);
  animation: radarBlink 2s ease-in-out infinite;
}

.radar-dot:nth-of-type(1) {
  top: 30%;
  left: 65%;
  animation-delay: 0s;
}
.radar-dot:nth-of-type(2) {
  top: 60%;
  left: 35%;
  animation-delay: 0.7s;
}
.radar-dot:nth-of-type(3) {
  top: 25%;
  left: 28%;
  animation-delay: 1.4s;
}

@keyframes radarSweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes radarBlink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero h1 .accent {
  color: var(--amber);
}

.hero .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-card {
  padding: 1.5rem;
}

.feature-card .feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

#home-room-preview {
  margin: 2rem 0;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-header h1 .marker {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  font-weight: 600;
  border: 1px solid var(--amber);
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

.auth-box {
  max-width: 440px;
  margin: 2rem auto;
  padding: 2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

#google-sign-in-btn {
  width: 100%;
  justify-content: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#google-sign-in-btn:hover {
  border-color: var(--amber);
  background: var(--bg-card-hover);
}

.auth-legal-notice {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

.auth-legal-notice a {
  color: var(--military-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
  transition:
    color 0.2s,
    border-color 0.2s;
}

.auth-legal-notice a:hover,
.auth-legal-notice a:focus-visible {
  color: var(--amber);
  border-color: rgba(0, 255, 136, 0.5);
}

#room-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.room-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.room-header h1 {
  font-size: 1.75rem;
}

#room-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#room-actions .btn[data-action="leave-room"] {
  background: rgba(255, 51, 102, 0.15);
  color: var(--danger-red);
  border-color: var(--danger-red);
  box-shadow: var(--glow-red);
}

#room-actions .btn[data-action="leave-room"]:hover {
  background: rgba(255, 51, 102, 0.25);
}

.scenario-card {
  padding: 1.5rem;
  position: relative;
}

.scenario-card h3 {
  margin-bottom: 0.75rem;
  color: var(--amber);
}

.lobby-players-panel,
.session-players-panel {
  padding: 1.25rem 1.5rem;
}

.lobby-players-header,
.session-players-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.lobby-players-header h3,
.session-players-header h3 {
  font-size: 0.9rem;
}

.lobby-players-list,
.session-players-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 40px;
}

.lobby-player-top {
  display: flex;
  align-items: center;
  padding: 1rem 0.75rem 0.75rem;
  gap: 0.75rem;
}

.pending-approval-panel {
  position: relative;
  overflow: visible;
  z-index: 12;
}

.pending-approval-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: rgba(8, 20, 40, 0.82);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.pending-approval-trigger:hover,
.pending-approval-panel.is-open .pending-approval-trigger,
.pending-approval-panel:focus-within .pending-approval-trigger {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.14);
  background: rgba(11, 26, 52, 0.94);
}

.pending-approval-trigger-label {
  min-width: 0;
  display: flex;
  align-items: center;
}

.pending-approval-trigger .section-label {
  margin: 0;
}

.pending-approval-trigger::after {
  content: "Open";
  font-size: 0.8rem;
  color: var(--military-green);
  margin-left: auto;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.pending-approval-panel.is-open .pending-approval-trigger::after,
.pending-approval-panel:focus-within .pending-approval-trigger::after,
.pending-approval-trigger:hover::after {
  opacity: 1;
}

.pending-approval-popover {
  display: none;
}

.pending-approval-popover[hidden] {
  display: none !important;
}

.pending-approval-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.pending-approval-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pending-approval-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.62);
  backdrop-filter: blur(6px);
}

.pending-approval-modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: min(32rem, calc(100vh - 32px));
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgba(10, 21, 43, 0.98),
    rgba(8, 16, 34, 0.98)
  );
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.52),
    0 0 24px rgba(0, 212, 255, 0.14);
}

.pending-approval-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.pending-approval-modal-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pending-approval-modal-close {
  border: 1px solid rgba(0, 212, 255, 0.24);
  background: rgba(8, 20, 40, 0.82);
  color: var(--text-primary);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  cursor: pointer;
}

.pending-approval-modal-close:hover {
  border-color: rgba(0, 212, 255, 0.45);
  color: var(--military-green);
}

.pending-approval-modal-list .lobby-player-card {
  margin-bottom: 0.5rem;
}

.pending-approval-modal-list .lobby-player-card:last-child {
  margin-bottom: 0;
}

.pending-approval-modal-list .lobby-player-top {
  align-items: flex-start;
  flex-wrap: wrap;
}

.pending-approval-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.pending-approval-actions .btn {
  min-width: 110px;
}

@media (max-width: 640px) {
  .pending-approval-trigger {
    padding: 0.65rem 0.75rem;
  }

  .pending-approval-trigger::after {
    content: "";
  }

  .pending-approval-modal-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 0.85rem;
  }

  .pending-approval-actions {
    width: 100%;
    margin-left: 0;
  }

  .pending-approval-actions .btn {
    flex: 1 1 140px;
    min-width: 0;
  }
}

.lobby-player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.lobby-player-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lobby-player-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lobby-player-actions-vertical {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 98px;
}

.lobby-player-actions-vertical .btn {
  width: 100%;
  padding: 0.42rem 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.lobby-role-edit {
  background: rgba(128, 128, 128, 0.16);
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.45);
}

.lobby-role-edit:hover {
  background: rgba(128, 128, 128, 0.25);
}

.lobby-kick-btn {
  background: rgba(255, 51, 102, 0.15);
  color: var(--danger-red);
  border-color: var(--danger-red);
  box-shadow: var(--glow-red);
}

.lobby-kick-btn:hover {
  background: rgba(255, 51, 102, 0.25);
}

#session-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  height: calc(100vh - 60px);
  max-width: 100%;
  padding: 0;
  transition:
    filter 0.22s ease,
    opacity 0.22s ease;
}

#session-grid {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.75rem 1.5rem 0.6rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

#session-overview-banner {
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  transition:
    filter 0.22s ease,
    opacity 0.22s ease;
}

#session-overview-banner #session-overview-title {
  font-size: 1rem;
  color: var(--amber);
}

#session-overview-banner #session-overview-context {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

#session-host-actions {
  grid-column: 1;
  padding: 0.5rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

#session-timeline-area {
  grid-column: 1;
  grid-row: 2;
  overflow-y: auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#session-inject-overlay {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0;
  min-height: 100%;
  transition:
    filter 0.22s ease,
    opacity 0.22s ease;
}

#session-inject-overlay.clickable-inject-overlay {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

#session-inject-overlay.clickable-inject-overlay:hover,
#session-inject-overlay.clickable-inject-overlay:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 170, 0, 0.45);
  outline: none;
}

.inject-header-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--danger-red);
  font-family: var(--font-heading);
  font-weight: 700;
}

.inject-severity {
  margin-left: 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inject-severity.critical {
  color: var(--danger-red);
}

.inject-severity.high {
  color: var(--warning);
}

.inject-severity.medium {
  color: var(--steel-blue-light);
}

.inject-empty-text {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.inject-overlay-hint {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--amber);
}

.mission-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 170, 0, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(255, 170, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 170, 0, 0.08);
  color: var(--amber);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
}

.mission-timer-lg {
  min-width: 116px;
  font-size: 0.9rem;
}

.mission-timer-sm {
  min-width: 102px;
  font-size: 0.74rem;
  padding: 0.34rem 0.55rem;
}

.mission-timer.is-expired {
  color: var(--danger-red);
  border-color: rgba(255, 51, 102, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(255, 51, 102, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 51, 102, 0.08);
}

.mission-timer.is-paused:not(.is-expired) {
  color: var(--text-muted);
  border-color: rgba(122, 144, 185, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(122, 144, 185, 0.08);
  box-shadow: inset 0 0 0 1px rgba(122, 144, 185, 0.08);
}

.mission-timer.is-inactive {
  color: var(--text-muted);
  border-color: rgba(122, 144, 185, 0.25);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

#session-timeline-feed,
#session-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#session-timeline {
  padding-bottom: 0.25rem;
}

.tl-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
}

.tl-item {
  display: flex;
}

.tl-card {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.6rem 0.75rem;
}

.tl-item.tl-decision .tl-card {
  border-left: 3px solid var(--military-green);
}

.tl-item.tl-inject .tl-card {
  border-left: 3px solid var(--warning);
}

.tl-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.tl-label {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 600;
  min-width: 0;
}

.tl-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.tl-meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.tl-meta-row .tl-time {
  margin-top: 0;
}

.tl-time {
  margin-top: 0.35rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tl-badge {
  margin-left: auto;
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}

.tl-badge.is-critical {
  color: var(--danger-red);
  border-color: rgba(255, 51, 102, 0.55);
}

.tl-badge.is-high {
  color: var(--warning);
  border-color: rgba(255, 170, 0, 0.55);
}

.tl-badge.is-medium {
  color: var(--steel-blue-light);
  border-color: rgba(122, 144, 185, 0.55);
}

.btn-delete-msg {
  margin-left: auto;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 51, 102, 0.65);
  color: var(--danger-red);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 0.22rem 0.52rem;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn-delete-msg:hover {
  background: rgba(255, 51, 102, 0.2);
  border-color: var(--danger-red);
  color: var(--white);
}

#session-input-bar {
  grid-column: 1;
  grid-row: 3;
  padding: 0.7rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

#decision-form {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.freeform-wrap {
  flex: 1;
  position: relative;
}

#decision-freeform {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 120px;
  padding: 0.62rem 0.85rem;
  resize: none;
  line-height: 1.3;
  overflow-y: auto;
}

.session-send-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--military-green);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.session-send-btn:hover {
  background: var(--military-green-light);
}

.session-send-btn:disabled {
  cursor: not-allowed;
  background: rgba(122, 144, 185, 0.35);
  color: rgba(255, 255, 255, 0.65);
}

.freeform-wrap textarea:disabled,
#decision-freeform:disabled,
#inject-chat-input:disabled {
  cursor: not-allowed;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.composer-status {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  min-height: 1em;
}

.composer-status.is-busy {
  color: var(--steel-blue-light);
}

.ai-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.45;
}

.ai-status-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 2px solid rgba(122, 144, 185, 0.28);
  border-top-color: var(--steel-blue-light);
  animation: ai-status-spin 0.85s linear infinite;
  flex-shrink: 0;
}

@keyframes ai-status-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.session-send-btn svg {
  width: 18px;
  height: 18px;
}

#session-right-sidebar {
  grid-column: 2;
  grid-row: 1 / 4;
  border-left: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#session-right-sidebar .session-players-panel {
  flex: 1;
  padding: 1rem;
}

.session-players-header {
  padding: 0 0 0.75rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
ㅍ #session-team-count {
  margin-left: 0.5rem;
}

.session-host-controls {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.host-ctrl-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.host-ctrl-row .btn {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
}

#session-viewer-notice {
  margin: 0.75rem 1.5rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal dialog {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  width: 90%;
  max-width: 520px;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  transition:
    filter 0.22s ease,
    opacity 0.22s ease;
}

.modal dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--warning-stripe-thin);
}

.modal dialog h3 {
  margin-bottom: 1.25rem;
  color: var(--amber);
}

.framework-selector-dialog {
  max-width: 1100px !important;
  width: min(94vw, 1100px) !important;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.framework-selector-header {
  position: relative;
  padding-right: 2.5rem;
  margin-bottom: 1rem;
}

.framework-selector-header h3 {
  margin-bottom: 0.35rem !important;
}

.framework-selector-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.framework-selector-groups {
  overflow-y: auto;
  padding-right: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.framework-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.framework-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.framework-group-header h4 {
  margin: 0;
  color: var(--amber);
  font-size: 0.95rem;
}

.framework-group-header p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.framework-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.framework-card {
  position: relative;
  appearance: none;
  width: 100%;
  padding: 1rem;
  font: inherit;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background:
    radial-gradient(
      circle at top right,
      rgba(90, 112, 153, 0.12),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(18, 28, 52, 0.95), rgba(10, 16, 30, 0.94));
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(122, 144, 185, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.framework-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(122, 144, 185, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.framework-card.is-selected {
  border-color: rgba(0, 255, 136, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(122, 144, 185, 0.08),
    0 0 0 1px rgba(0, 255, 136, 0.16);
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 255, 136, 0.1),
      transparent 40%
    ),
    linear-gradient(180deg, rgba(18, 32, 54, 0.96), rgba(10, 18, 32, 0.94));
}

.framework-card.is-selected::after {
  content: "Selected";
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.framework-card-region {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(10, 16, 30, 0.55);
  color: var(--text-secondary);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.framework-card h5 {
  margin: 0 0 0.45rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.35;
}

.framework-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.77rem;
  line-height: 1.48;
}

.timer-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.timer-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timer-input-group span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timer-input-help {
  margin-top: 0.55rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.timer-minute-shell {
  display: flex;
  justify-content: center;
}

.timer-minute-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0.6rem 0.2rem;
}

.timer-minute-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timer-minute-field input[type="number"] {
  width: min(100%, 280px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 212, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(0, 212, 255, 0.05);
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.08),
    0 0 20px rgba(0, 212, 255, 0.08);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  padding: 0.9rem 1rem;
  cursor: default;
  user-select: none;
  caret-color: transparent;
}

.timer-minute-field input[type="number"]:focus {
  outline: none;
  border-color: rgba(57, 199, 255, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(57, 199, 255, 0.14),
    0 0 0 2px rgba(57, 199, 255, 0.16),
    0 0 24px rgba(57, 199, 255, 0.14);
}

.timer-minute-field input[type="number"]::-webkit-outer-spin-button,
.timer-minute-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.timer-minute-field input[type="number"] {
  -moz-appearance: textfield;
}

.timer-minute-unit {
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.manual-inject-dialog {
  max-width: 800px !important;
  width: min(94vw, 800px) !important;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.manual-inject-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.manual-inject-header-row h3 {
  margin: 0;
}

.manual-inject-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  transition:
    color 0.15s,
    background 0.15s;
  z-index: 10;
}

.manual-inject-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.inject-timer-dialog {
  max-width: 460px !important;
  width: min(94vw, 460px) !important;
}

.manual-inject-revision-bar--refine.hidden {
  display: none;
}

.manual-inject-revision-bar + .manual-inject-revision-bar {
  border-top: 1px solid var(--border-color);
}

.manual-inject-preview {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 170, 0, 0.25);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-md);
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 170, 0, 0.12),
      transparent 40%
    ),
    rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.manual-inject-preview.empty {
  border-left-color: rgba(122, 144, 185, 0.35);
  border-color: rgba(122, 144, 185, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.manual-inject-preview h4 {
  margin: 0.15rem 0 0.1rem;
  color: var(--text-primary);
  font-size: 1.02rem;
  line-height: 1.25;
}

.manual-inject-preview p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
}

.manual-inject-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.manual-inject-preview-prompt {
  margin-top: 0.2rem !important;
  color: var(--text-muted) !important;
  font-size: 0.72rem !important;
}

.manual-inject-chat-shell {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.manual-inject-thread {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.manual-inject-thread-empty {
  margin: auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.manual-inject-bubble {
  max-width: 88%;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  line-height: 1.5;
  font-size: 0.8rem;
}

.manual-inject-bubble.user {
  align-self: flex-end;
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
}

.manual-inject-bubble.assistant {
  align-self: flex-start;
  border-color: rgba(255, 170, 0, 0.28);
  background: rgba(255, 170, 0, 0.07);
}

.manual-inject-bubble.is-pending {
  border-style: dashed;
}

.manual-inject-bubble.is-pending p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.manual-inject-bubble-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.manual-inject-revision-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.manual-inject-revision-bar .freeform-wrap {
  flex: 1;
}

.manual-inject-revision-bar .freeform-wrap textarea {
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 120px;
  padding: 0.55rem 0.85rem;
  resize: none;
  line-height: 1.4;
  overflow-y: auto;
  box-sizing: border-box;
}

#manual-inject-chat-status {
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(122, 144, 185, 0.18);
  background: rgba(0, 212, 255, 0.04);
  color: var(--steel-blue-light);
  font-size: 0.72rem;
  line-height: 1.45;
  min-height: 0;
}

#manual-inject-chat-status.hidden {
  display: none;
}

#create-room-ai-status,
#session-ai-status {
  margin-top: 0.75rem;
}

#manual-inject-form .modal-actions {
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

#manual-inject-form .modal-actions .btn {
  min-width: 136px;
  justify-content: center;
}

.manual-inject-revision-bar .session-send-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-self: center;
}

#report-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

#report-content {
  line-height: 1.7;
  color: var(--text-secondary);
}

#report-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--amber);
}

#report-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text-primary);
}

#report-content p {
  margin-bottom: 0.75rem;
}

#report-content ul,
#report-content ol {
  margin: 0.25rem 0 1rem 1.25rem;
  padding-left: 1rem;
}

#report-content ul {
  list-style: disc;
}

#report-content ol {
  list-style: decimal;
}

#report-content ul li,
#report-content ol li {
  margin-bottom: 0.85rem;
  line-height: 1.75;
}

.security-standard-strip {
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 212, 255, 0.06),
      transparent 40%
    ),
    linear-gradient(180deg, rgba(18, 28, 52, 0.94), rgba(10, 16, 30, 0.92));
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.security-standard-strip .label {
  display: inline-block;
  margin-right: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.report-framework-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.report-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.report-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
}

.report-toggle input {
  accent-color: var(--amber);
}

.report-framework-group {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(
      circle at top right,
      rgba(90, 112, 153, 0.12),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(18, 28, 52, 0.95), rgba(10, 16, 30, 0.92));
}

.report-framework-group-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 18, 34, 0.7);
}

.report-framework-group-header h3 {
  margin: 0 0 0.3rem;
  color: var(--amber);
  font-size: 0.94rem;
}

.report-framework-group-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
}

.report-framework-list {
  list-style: none;
  margin: 0;
  padding: 0.2rem 1rem 0.35rem;
}

.report-framework-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}

.report-framework-item:last-child {
  border-bottom: none;
}

.report-framework-item-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.report-framework-region {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(10, 16, 30, 0.55);
  color: var(--text-secondary);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-framework-item h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.86rem;
  line-height: 1.4;
}

.report-framework-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.55;
}

.static-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-secondary);
}

.static-content h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.static-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.static-content p,
.static-content li {
  margin-bottom: 0.75rem;
}

.static-content ul,
.static-content ol {
  padding-left: 1.5rem;
}

.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.active-inject {
  border-left: 3px solid var(--danger-red);
  background: rgba(220, 38, 38, 0.06);
}

.active-inject-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.active-inject-time {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.inject-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inject-chat-overlay.hidden {
  display: none !important;
}

.inject-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}

.inject-chat-panel {
  position: relative;
  width: 90vw;
  height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    filter 0.22s ease,
    opacity 0.22s ease;
}

body.session-paused #session-main,
body.session-paused .inject-chat-panel,
body.session-paused .modal dialog,
body.session-paused .pending-approval-modal-dialog {
  filter: grayscale(1) saturate(0.18) brightness(0.82);
}

body.session-paused #session-main,
body.session-paused .inject-chat-panel {
  opacity: 0.92;
}

.inject-chat-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--warning-stripe-thin);
  z-index: 1;
}

.inject-chat-header {
  position: relative;
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.inject-chat-overview {
  margin-bottom: 0.65rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
}

.inject-chat-overview h4 {
  font-size: 0.95rem;
  color: var(--amber);
  margin: 0;
}

.inject-chat-summary {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.inject-chat-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  line-height: 1;
}

.inject-chat-close-btn:hover {
  background: rgba(255, 51, 102, 0.15);
  border-color: var(--danger-red);
  color: var(--danger-red);
}

.inject-chat-timeline-area {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#inject-chat-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inject-chat-input-bar {
  padding: 0.7rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.inject-chat-input-bar form {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

#inject-chat-input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 120px;
  padding: 0.62rem 0.85rem;
  resize: none;
  line-height: 1.3;
  overflow-y: auto;
}

.inject-tl-bell-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.inject-tl-bell {
  color: var(--text-muted);
  transition: color 0.2s;
}

.tl-item.tl-inject .tl-card:hover .inject-tl-bell {
  color: var(--amber);
}

.inject-tl-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--danger-red);
  color: #fff;
  font-size: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.inject-chat-body {
  flex: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.inject-chat-list-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
  overflow: hidden;
}

.inject-chat-list-header {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.72rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.inject-chat-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem 0;
}

.inject-chat-right-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inject-list-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
  position: relative;
  text-align: left;
  width: 100%;
  background: transparent;
  border-left: 3px solid transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.inject-list-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.inject-list-item.is-active {
  background: rgba(255, 170, 0, 0.07);
  border-left-color: var(--warning);
}

.inject-list-item-text {
  flex: 1;
  min-width: 0;
}

.inject-list-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.inject-list-item-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.inject-bell-wrap {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inject-bell-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s;
}

.inject-list-item:hover .inject-bell-icon,
.inject-list-item.is-active .inject-bell-icon {
  color: var(--amber);
}

.inject-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--danger-red);
  color: #fff;
  font-size: 0.58rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.inject-sev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 0.1rem;
}

.inject-sev-dot.critical {
  background: var(--danger-red);
}
.inject-sev-dot.high {
  background: var(--warning);
}
.inject-sev-dot.medium {
  background: var(--steel-blue-light);
}

.inject-chat-right-header {
  padding: 0.85rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.inject-chat-right-header h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0.2rem 0 0;
}

.inject-chat-meta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.inject-chat-meta-time {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.inject-chat-timer-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timer-control {
  cursor: pointer;
  user-select: none;
}

.timer-control.is-disabled {
  cursor: default;
}

.tl-item.tl-inject .tl-card.clickable-inject {
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.tl-item.tl-inject .tl-card.clickable-inject:hover {
  border-color: var(--warning);
  background: rgba(255, 170, 0, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 170, 0, 0.2);
}

.inject-chat-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 1.5rem 0.5rem;
  text-align: center;
}

.report-inject-group {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.report-inject-group-header {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.report-inject-group-header .inject-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.report-inject-group-body {
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .classified-header-inner {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }
  .classified-stamp {
    font-size: 0.7rem;
  }
  nav a {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }
  main {
    padding: 1.25rem 1rem 3rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  #session-main {
    grid-template-columns: 1fr;
  }
  #session-grid {
    grid-template-columns: 1fr;
    padding: 0.7rem 1rem 0.6rem;
  }
  .framework-card-grid {
    grid-template-columns: 1fr;
  }
  .timer-input-grid {
    grid-template-columns: 1fr;
  }
  #session-right-sidebar {
    grid-column: 1;
    grid-row: 4;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  .inject-chat-body {
    grid-template-columns: 1fr;
  }
  .inject-chat-list-col {
    max-height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.4rem;
  }
  .classified-stamp .label-classified,
  .classified-stamp .label-top-secret {
    display: none;
  }
  .session-players-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .framework-summary-header,
  .framework-group-header,
  .manual-inject-preview-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .report-framework-item-top {
    align-items: flex-start;
  }
  .tl-meta-row,
  .active-inject-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .inject-chat-meta-stack {
    align-items: flex-start;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.auth-user {
  position: relative;
  display: inline-block;
}

.user-trigger {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.user-trigger:hover,
.user-trigger[aria-expanded="true"] {
  border-color: var(--amber);
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.2);
}

.user-trigger .avatar {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
}

.user-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 220px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.user-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-meta {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.user-menu-name {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.user-menu-email {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

.user-menu button[role="menuitem"] {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-menu button[role="menuitem"]:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--military-green);
}

.btn-gray {
  background: rgba(128, 128, 128, 0.15);
  color: var(--text-secondary);
  border-color: rgba(128, 128, 128, 0.3);
}
.btn-gray:hover {
  background: rgba(128, 128, 128, 0.25);
  color: var(--text-primary);
}

.player-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.player-icon {
  height: 6px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
}

.player-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.player-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.player-role {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.player-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
}
.player-status.typing {
  color: var(--amber);
  font-style: italic;
}
.player-status.answered {
  color: var(--military-green);
}

.room-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .room-content-grid {
    grid-template-columns: 1fr;
  }
}

#manual-inject-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0.5rem 0;
}
.manual-inject-preview {
  margin: 0;
}
.manual-inject-chat-shell {
  margin: 0;
  max-height: 400px;
}
