/* Success: T2 workflow styles stay namespaced so future screens cannot bleed into the standard Cove chat UI. */
/* Previous: Editing custom client UI directly in this hosted path blurs source vs deploy output; keep T2 source in Custom Projects/P26 Project Latigo | T2/T2 Code. */
body.has-t2-workflow {
  --t2-bg: #07111f;
  --t2-panel: rgba(5, 18, 34, 0.84);
  --t2-panel-strong: rgba(6, 28, 49, 0.94);
  --t2-line: rgba(91, 193, 223, 0.34);
  --t2-line-strong: rgba(91, 193, 223, 0.58);
  --t2-ink: #f7fbff;
  --t2-muted: #a7b6c7;
  --t2-cyan: #5edfff;
  --t2-green: #72e6a7;
  --t2-amber: #f7c35f;
}

body.has-t2-workflow .chat-sidebar {
  gap: 12px;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(94, 223, 255, 0.54) rgba(3, 13, 28, 0.82);
}

body.has-t2-workflow .chat-main {
  overflow: hidden;
}

body.has-t2-workflow .history-section {
  display: none;
  min-height: 0;
}

body.has-t2-workflow .history-list {
  max-height: clamp(76px, 15vh, 180px);
}

body.has-t2-workflow .sidebar-footer {
  gap: 10px;
}

/* Success: T2 keeps Cove auth/usage/logout but removes base Cove chat, history, new-chat, and docs-management UI. */
/* Previous: Leaving chat controls visible made T2 look like it still used the generic Cove chat product. */
body.has-t2-workflow .new-chat-button,
body.has-t2-workflow .manage-docs-button {
  display: none;
}

.t2-sidebar-nav {
  display: none;
}

body.has-t2-workflow .t2-sidebar-nav {
  display: grid;
  gap: 8px;
  padding: 2px 0 10px;
}

.t2-nav-button {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  gap: 10px;
  padding: 0 12px;
  color: var(--t2-muted);
  background: rgba(5, 23, 45, 0.46);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 720;
  text-align: left;
}

.t2-nav-button.is-active {
  color: var(--t2-ink);
  background: linear-gradient(180deg, rgba(12, 61, 92, 0.9), rgba(5, 26, 49, 0.94));
  border-color: var(--t2-line-strong);
  box-shadow: inset 0 0 18px rgba(94, 223, 255, 0.1);
}

.t2-nav-mark {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.t2-dashboard {
  display: none;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--t2-ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(65, 167, 217, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(2, 11, 24, 0.88), rgba(1, 7, 17, 0.96));
}

.t2-dashboard.is-active {
  display: block;
}

body.has-t2-workflow .chat-canvas {
  display: none;
}

.t2-dashboard-scroll {
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 44px);
}

.t2-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.t2-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.t2-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--t2-cyan);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.t2-dashboard h1,
.t2-dashboard h2,
.t2-modal h2 {
  margin: 0;
  color: var(--t2-ink);
  letter-spacing: 0;
}

.t2-dashboard h1 {
  font-size: clamp(31px, 3.2vw, 48px);
  line-height: 1;
}

.t2-dashboard h2 {
  font-size: 18px;
}

.t2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  padding: 0 16px;
  color: var(--t2-ink);
  background: rgba(8, 34, 60, 0.82);
  border: 1px solid var(--t2-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.t2-button.primary {
  color: #031120;
  background: linear-gradient(135deg, var(--t2-cyan), #76e8af);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(57, 220, 231, 0.2);
}

.t2-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  background: var(--t2-panel-strong);
  border: 1px solid var(--t2-line-strong);
  border-radius: 8px;
  box-shadow: inset 0 0 32px rgba(94, 223, 255, 0.06);
}

.t2-hero-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.t2-hero-copy h2 {
  font-size: clamp(22px, 2vw, 31px);
}

.t2-hero-copy p,
.t2-empty-state p,
.t2-modal p {
  max-width: 760px;
  margin: 0;
  color: var(--t2-muted);
  line-height: 1.55;
}

.t2-hero-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.t2-hero-facts div,
.t2-panel,
.t2-shortcut {
  background: var(--t2-panel);
  border: 1px solid var(--t2-line);
  border-radius: 8px;
}

.t2-hero-facts div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px;
}

.t2-hero-facts span,
.t2-shortcut span,
.t2-check-row span,
.t2-empty-state p {
  color: var(--t2-muted);
}

.t2-hero-facts strong {
  color: var(--t2-ink);
  font-size: 17px;
}

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

.t2-panel {
  min-height: 296px;
  padding: 18px;
}

.t2-panel-heading {
  margin-bottom: 16px;
}

.t2-checklist {
  display: grid;
  gap: 10px;
}

.t2-check-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 66px;
  padding: 12px;
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.22);
  border-radius: 8px;
}

.t2-check-row strong,
.t2-empty-state strong,
.t2-shortcut strong {
  display: block;
  color: var(--t2-ink);
}

.t2-check-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  background: var(--t2-amber);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(247, 195, 95, 0.3);
}

.t2-empty-state {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 214px;
  gap: 12px;
  padding: 16px;
  background: rgba(4, 16, 31, 0.56);
  border: 1px dashed rgba(91, 193, 223, 0.34);
  border-radius: 8px;
}

.t2-empty-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--t2-line-strong);
  border-radius: 8px;
}

.t2-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.t2-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--t2-muted);
  background: rgba(8, 34, 60, 0.74);
  border: 1px solid rgba(91, 193, 223, 0.26);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
}

.t2-status-chip.warning {
  width: fit-content;
  color: #2a1900;
  background: var(--t2-amber);
}

.t2-status-chip.approved,
.t2-status-chip.exported {
  color: #02180e;
  background: var(--t2-green);
}

.t2-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.t2-shortcut {
  display: grid;
  min-height: 104px;
  gap: 8px;
  padding: 16px;
  text-align: left;
}

.t2-shortcut:hover,
.t2-nav-button:hover,
.t2-button:hover {
  border-color: var(--t2-line-strong);
}

.t2-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
}

.t2-modal-shell.is-open {
  display: grid;
}

.t2-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 5, 14, 0.74);
  backdrop-filter: blur(10px);
}

.t2-modal {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(520px, 100%);
  padding: 20px;
  color: var(--t2-ink);
  background: var(--t2-panel-strong);
  border: 1px solid var(--t2-line-strong);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
}

.t2-modal-shell.is-wizard .t2-modal {
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
}

.t2-modal-shell.is-import-review .t2-modal {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
}

.t2-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.t2-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--t2-ink);
  background: rgba(5, 23, 45, 0.76);
  border: 1px solid var(--t2-line);
  border-radius: 8px;
  font-size: 18px;
}

.t2-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.t2-wizard {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 48px);
}

.t2-wizard-header {
  padding: 20px 20px 0;
}

.t2-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(91, 193, 223, 0.22);
}

.t2-step-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  color: var(--t2-muted);
  background: rgba(5, 23, 45, 0.58);
  border: 1px solid rgba(91, 193, 223, 0.18);
  border-radius: 8px;
  text-align: left;
}

.t2-step-button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #06111f;
  background: var(--t2-muted);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.t2-step-button strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t2-step-button.is-active {
  color: var(--t2-ink);
  border-color: var(--t2-line-strong);
  background: rgba(10, 51, 80, 0.86);
}

.t2-step-button.is-active span {
  background: var(--t2-cyan);
}

.t2-wizard-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 20px;
}

.t2-wizard-section {
  display: grid;
  gap: 16px;
}

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

.t2-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.t2-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.t2-field label,
.t2-validation-list strong,
.t2-warning-panel strong {
  color: var(--t2-ink);
  font-size: 13px;
  font-weight: 840;
}

.t2-input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--t2-ink);
  background: rgba(2, 11, 24, 0.9);
  border: 1px solid var(--t2-line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}

.t2-input:focus {
  border-color: var(--t2-line-strong);
  outline: 2px solid rgba(94, 223, 255, 0.18);
  outline-offset: 0;
}

.t2-input::placeholder {
  color: rgba(167, 182, 199, 0.64);
}

.t2-textarea {
  min-height: 104px;
  padding-block: 12px;
  resize: vertical;
}

.t2-field-note {
  color: var(--t2-muted);
  font-size: 12px;
  line-height: 1.4;
}

.t2-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.t2-choice {
  display: grid;
  align-content: start;
  min-height: 82px;
  gap: 6px;
  padding: 12px;
  color: var(--t2-muted);
  background: rgba(5, 23, 45, 0.58);
  border: 1px solid rgba(91, 193, 223, 0.22);
  border-radius: 8px;
  text-align: left;
}

.t2-choice-grid.compact .t2-choice {
  min-height: 54px;
}

.t2-choice strong {
  color: var(--t2-ink);
  font-size: 13px;
}

.t2-choice span {
  color: var(--t2-muted);
  font-size: 12px;
  line-height: 1.4;
}

.t2-choice.is-active {
  color: var(--t2-ink);
  background: rgba(12, 61, 92, 0.86);
  border-color: var(--t2-line-strong);
  box-shadow: inset 0 0 20px rgba(94, 223, 255, 0.08);
}

.t2-toggle-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 72px;
  padding: 14px;
  background: rgba(5, 23, 45, 0.58);
  border: 1px solid rgba(91, 193, 223, 0.22);
  border-radius: 8px;
}

.t2-toggle-row input {
  margin-top: 3px;
}

.t2-toggle-row span {
  display: grid;
  gap: 4px;
}

.t2-toggle-row strong {
  color: var(--t2-ink);
}

.t2-toggle-row em {
  color: var(--t2-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.t2-chip-editor {
  align-content: start;
  padding: 12px;
  background: rgba(5, 23, 45, 0.42);
  border: 1px solid rgba(91, 193, 223, 0.18);
  border-radius: 8px;
}

.t2-chip-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.t2-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.t2-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  gap: 7px;
  padding: 0 9px;
  color: #031120;
  background: var(--t2-cyan);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
}

.t2-chip strong {
  color: inherit;
  font-size: 13px;
}

.t2-chip-empty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--t2-muted);
  font-size: 12px;
}

.t2-warning-panel,
.t2-validation-list,
.t2-alert {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
}

.t2-warning-panel,
.t2-validation-list {
  background: rgba(247, 195, 95, 0.1);
  border: 1px solid rgba(247, 195, 95, 0.34);
}

.t2-validation-list.is-clear {
  background: rgba(114, 230, 167, 0.1);
  border-color: rgba(114, 230, 167, 0.32);
}

.t2-warning-panel ul,
.t2-validation-list ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--t2-muted);
  font-size: 13px;
  line-height: 1.45;
}

.t2-validation-list span {
  color: var(--t2-muted);
  font-size: 13px;
}

.t2-alert.is-error {
  color: #ffd6d6;
  background: rgba(190, 43, 43, 0.16);
  border: 1px solid rgba(255, 128, 128, 0.34);
}

.t2-alert.is-info {
  color: var(--t2-muted);
  background: rgba(91, 193, 223, 0.1);
  border: 1px solid rgba(91, 193, 223, 0.3);
}

.t2-station-alert {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px 16px;
  color: var(--t2-muted);
  background: rgba(247, 195, 95, 0.1);
  border: 1px solid rgba(247, 195, 95, 0.32);
  border-radius: 8px;
}

.t2-station-alert strong {
  color: var(--t2-ink);
}

.t2-library-stats,
.t2-library-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

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

.t2-library-stats div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px;
  background: var(--t2-panel);
  border: 1px solid var(--t2-line);
  border-radius: 8px;
}

.t2-library-stats span,
.t2-field > span {
  color: var(--t2-muted);
  font-size: 12px;
  font-weight: 820;
}

.t2-library-stats strong {
  color: var(--t2-ink);
  font-size: 24px;
}

.t2-library-toolbar {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 0.7fr));
  align-items: end;
  padding: 14px;
  background: rgba(5, 23, 45, 0.48);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
}

.t2-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}

/* Success: T2 page content now scrolls inside the Cove shell instead of overflowing the viewport on shorter browser windows. */
/* Previous: Station Library detail/table content could force the main pane wider or taller than the visible app frame. */
.t2-library-layout > *,
.t2-library-toolbar > *,
.t2-library-stats > * {
  min-width: 0;
}

.t2-station-list-panel,
.t2-station-detail-panel {
  min-width: 0;
  min-height: auto;
}

.t2-station-table {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.t2-station-row {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(64px, 0.54fr) minmax(78px, 0.62fr) minmax(0, 0.9fr) minmax(68px, 0.5fr);
  gap: 8px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--t2-muted);
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.22);
  border-radius: 8px;
  text-align: left;
}

.t2-station-row > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.t2-station-row.is-header {
  min-height: 34px;
  color: var(--t2-cyan);
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.t2-station-row.is-selected {
  border-color: var(--t2-line-strong);
  box-shadow: inset 0 0 18px rgba(94, 223, 255, 0.08);
}

.t2-station-row strong {
  display: block;
  color: var(--t2-ink);
}

.t2-station-row small {
  display: block;
  margin-top: 3px;
  color: var(--t2-amber);
  font-size: 11px;
  font-weight: 820;
}

.t2-library-empty-note {
  min-height: 144px;
  margin-top: 12px;
}

/* Success: People & Patrols stays planning-only with Staff and Patrols visible on one page. */
/* Previous: Treating staff teams as their own section added management surface that the simplified T2 flow does not need. */
.t2-people-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.t2-people-layout > *,
.t2-people-toolbar > *,
.t2-people-stats > * {
  min-width: 0;
}

.t2-staff-panel,
.t2-patrol-panel {
  min-width: 0;
  min-height: auto;
}

.t2-panel-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: var(--t2-muted);
  line-height: 1.48;
}

.t2-people-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(130px, 0.72fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(5, 23, 45, 0.48);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
}

.t2-staff-table {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.t2-staff-row {
  display: grid;
  grid-template-columns: minmax(58px, 0.54fr) minmax(72px, 0.62fr) minmax(78px, 0.68fr) minmax(68px, 0.56fr) minmax(64px, 0.55fr) minmax(76px, 0.62fr) minmax(0, 1.14fr);
  gap: 8px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--t2-muted);
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.22);
  border-radius: 8px;
  text-align: left;
}

.t2-staff-row > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.t2-staff-row.is-header {
  min-height: 34px;
  color: var(--t2-cyan);
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.t2-staff-row.is-selected {
  border-color: var(--t2-line-strong);
  box-shadow: inset 0 0 18px rgba(94, 223, 255, 0.08);
}

.t2-staff-row strong {
  color: var(--t2-ink);
}

.t2-people-empty-note {
  min-height: 132px;
  margin-top: 12px;
}

.t2-patrol-list {
  display: grid;
  gap: 10px;
}

.t2-patrol-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  color: var(--t2-muted);
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.22);
  border-radius: 8px;
  text-align: left;
}

.t2-patrol-card.is-selected {
  border-color: var(--t2-line-strong);
  box-shadow: inset 0 0 18px rgba(94, 223, 255, 0.08);
}

.t2-patrol-card.is-inactive {
  opacity: 0.72;
}

.t2-patrol-card strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--t2-ink);
  font-size: 16px;
}

.t2-patrol-card span {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--t2-muted);
  font-size: 13px;
  line-height: 1.4;
}

.t2-patrol-form-preview {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 14px;
  padding: 14px;
  background: rgba(4, 16, 31, 0.5);
  border: 1px solid rgba(91, 193, 223, 0.18);
  border-radius: 8px;
}

.t2-patrol-form-preview h3 {
  margin: 0;
  color: var(--t2-ink);
  font-size: 14px;
}

/* Success: RL-164 keeps Settings compact and project-scoped, with only the defaults needed by the setup wizard. */
/* Previous: A broad settings dashboard would pull staff, station, export, and permission work into the MVP page. */
.t2-settings-page {
  gap: 16px;
}

.t2-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.t2-settings-main,
.t2-settings-side,
.t2-settings-note-list {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.t2-settings-panel {
  min-width: 0;
  min-height: auto;
}

.t2-settings-protected-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.22);
  border-radius: 8px;
}

.t2-settings-protected-row div,
.t2-settings-status-card,
.t2-settings-note-list div {
  min-width: 0;
}

.t2-settings-protected-row strong,
.t2-settings-protected-row span,
.t2-settings-note-list strong,
.t2-settings-note-list span {
  display: block;
  overflow-wrap: anywhere;
}

.t2-settings-protected-row strong,
.t2-settings-note-list strong,
.t2-settings-status-card strong {
  color: var(--t2-ink);
}

.t2-settings-protected-row span,
.t2-settings-note-list span,
.t2-settings-status-card span {
  margin-top: 4px;
  color: var(--t2-muted);
  font-size: 13px;
  line-height: 1.42;
}

.t2-settings-status-card,
.t2-settings-note-list div {
  padding: 13px;
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
}

.t2-settings-status-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.t2-settings-status-card strong.warning {
  color: var(--t2-amber);
}

.t2-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

/* Success: Export History stays as a simple exported-document table with no delete/edit controls. */
/* Previous: Trace metadata is useful for backend records, but AJ simplified the UI to generated date, title, meeting date, and download. */
.t2-export-history-page {
  gap: 16px;
}

.t2-export-table-panel {
  min-width: 0;
}

.t2-export-table {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.t2-export-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.35fr) minmax(120px, 0.75fr) minmax(130px, 0.62fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  color: var(--t2-muted);
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
}

.t2-export-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.t2-export-row.is-header {
  min-height: 34px;
  color: var(--t2-cyan);
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.t2-export-row strong {
  color: var(--t2-ink);
}

.t2-export-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.t2-export-empty-note {
  min-height: 124px;
  margin-top: 14px;
}

/* Success: Generated Plan Review stays a simple review/export checkpoint, not a full editor. */
/* Previous: Do not add regenerate-one-slot UI in RL-162; transcripts point to simple swap/full-regenerate/review/export controls. */
.t2-generated-plan-page {
  gap: 16px;
}

.t2-review-header .t2-header-actions {
  flex-wrap: wrap;
}

.t2-review-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  background: linear-gradient(135deg, rgba(4, 25, 48, 0.9), rgba(3, 16, 32, 0.78));
  border: 1px solid rgba(91, 193, 223, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.t2-review-summary-main {
  min-width: 0;
}

.t2-review-summary-main h2 {
  max-width: 680px;
  margin: 10px 0 8px;
  color: var(--t2-ink);
  font-size: 26px;
  line-height: 1.12;
}

.t2-review-summary-main p {
  max-width: 720px;
  margin: 0;
  color: var(--t2-muted);
  line-height: 1.48;
}

.t2-review-facts,
.t2-review-actions,
.t2-assignment-grid {
  display: grid;
  gap: 10px;
}

.t2-review-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.t2-review-facts div,
.t2-assignment-grid div {
  min-width: 0;
  padding: 12px;
  background: rgba(5, 18, 35, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.18);
  border-radius: 8px;
}

.t2-review-facts span,
.t2-assignment-grid span {
  display: block;
  color: var(--t2-muted);
  font-size: 12px;
  font-weight: 760;
}

.t2-review-facts strong,
.t2-assignment-grid strong {
  display: block;
  min-width: 0;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--t2-ink);
  font-size: 15px;
}

.t2-review-actions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.t2-action-card {
  min-width: 0;
  min-height: 92px;
  padding: 13px;
  color: var(--t2-muted);
  background: rgba(5, 23, 45, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.24);
  border-radius: 8px;
  text-align: left;
}

.t2-action-card span,
.t2-inline-link {
  color: var(--t2-cyan);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.t2-action-card strong {
  display: block;
  margin-top: 8px;
  color: var(--t2-ink);
  font-size: 15px;
  line-height: 1.3;
}

.t2-generated-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.t2-generated-main,
.t2-generated-side,
.t2-plan-station-list,
.t2-warning-list,
.t2-schedule-list {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.t2-warning-item {
  min-width: 0;
  padding: 12px;
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
}

.t2-warning-item.is-warning {
  border-color: rgba(255, 199, 94, 0.42);
}

.t2-warning-item.is-success {
  border-color: rgba(74, 222, 128, 0.32);
}

.t2-warning-item strong,
.t2-warning-item span {
  display: block;
  overflow-wrap: anywhere;
}

.t2-warning-item strong {
  color: var(--t2-ink);
}

.t2-warning-item span {
  margin-top: 4px;
  color: var(--t2-muted);
  line-height: 1.42;
}

.t2-schedule-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.18);
  border-radius: 8px;
}

.t2-schedule-row span {
  color: var(--t2-cyan);
  font-weight: 840;
}

.t2-schedule-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--t2-ink);
}

.t2-schedule-row em {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--t2-muted);
  font-style: normal;
  line-height: 1.38;
}

.t2-plan-station-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
}

.t2-plan-station-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.t2-plan-station-head h3 {
  margin: 8px 0 0;
  color: var(--t2-ink);
  font-size: 18px;
  line-height: 1.18;
}

.t2-plan-station-card p {
  margin: 0;
  color: var(--t2-muted);
  line-height: 1.48;
}

.t2-button.small {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 12px;
}

.t2-inline-link {
  width: max-content;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.t2-half-station-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.t2-half-station-grid div {
  min-width: 0;
  padding: 12px;
  background: rgba(5, 23, 45, 0.7);
  border: 1px solid rgba(91, 193, 223, 0.18);
  border-radius: 8px;
}

.t2-half-station-grid strong,
.t2-half-station-grid span {
  display: block;
  overflow-wrap: anywhere;
}

.t2-half-station-grid strong {
  color: var(--t2-ink);
}

.t2-half-station-grid span {
  margin-top: 5px;
  color: var(--t2-muted);
  line-height: 1.4;
}

.t2-preview-panel {
  position: sticky;
  top: 14px;
}

.t2-preview-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.t2-preview-tabs button {
  min-width: 0;
  min-height: 40px;
  color: var(--t2-muted);
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.22);
  border-radius: 8px;
  font-weight: 820;
}

.t2-preview-tabs button.is-active {
  color: var(--t2-ink);
  background: rgba(13, 92, 126, 0.55);
  border-color: var(--t2-line-strong);
}

.t2-preview-document {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: rgba(4, 16, 31, 0.78);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
}

.t2-preview-document header strong,
.t2-preview-document header span {
  display: block;
}

.t2-preview-document header strong {
  color: var(--t2-ink);
  font-size: 18px;
}

.t2-preview-document header span {
  margin-top: 3px;
  color: var(--t2-cyan);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.t2-preview-document ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--t2-muted);
  line-height: 1.44;
}

.t2-private-content,
.t2-public-content {
  min-width: 0;
  padding: 12px;
  background: rgba(5, 23, 45, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
}

.t2-private-content strong,
.t2-private-content span,
.t2-public-content strong,
.t2-public-content span {
  display: block;
  overflow-wrap: anywhere;
}

.t2-private-content strong,
.t2-public-content strong {
  color: var(--t2-ink);
}

.t2-private-content span,
.t2-public-content span {
  margin-top: 5px;
  color: var(--t2-muted);
  line-height: 1.4;
}

.t2-detail-section {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(91, 193, 223, 0.18);
}

.t2-detail-section h3 {
  margin: 0;
  color: var(--t2-ink);
  font-size: 14px;
}

.t2-detail-section p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--t2-muted);
  line-height: 1.55;
}

.t2-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.t2-detail-list div {
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.t2-detail-list dt,
.t2-detail-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.4;
}

.t2-detail-list dt {
  color: var(--t2-muted);
}

.t2-detail-list dd {
  color: var(--t2-ink);
  font-weight: 720;
}

.t2-wording-grid {
  display: grid;
  gap: 10px;
}

.t2-wording-grid article,
.t2-staff-appendix-box {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.18);
  border-radius: 8px;
}

.t2-wording-grid strong,
.t2-staff-appendix-box strong {
  color: var(--t2-ink);
}

.t2-staff-only-section {
  padding: 14px;
  background: rgba(247, 195, 95, 0.08);
  border: 1px solid rgba(247, 195, 95, 0.28);
  border-radius: 8px;
}

.t2-staff-appendix-box span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--t2-muted);
  line-height: 1.45;
}

.t2-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(91, 193, 223, 0.18);
}

.t2-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.t2-review-card {
  min-width: 0;
  padding: 14px;
  background: rgba(5, 23, 45, 0.58);
  border: 1px solid rgba(91, 193, 223, 0.22);
  border-radius: 8px;
}

.t2-review-card h3 {
  margin: 0 0 10px;
  color: var(--t2-ink);
  font-size: 15px;
}

.t2-review-card dl,
.t2-review-card div {
  display: grid;
  gap: 7px;
  margin: 0;
}

.t2-review-card div {
  grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

.t2-review-card dt,
.t2-review-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.4;
}

.t2-review-card dt {
  color: var(--t2-muted);
}

.t2-review-card dd {
  color: var(--t2-ink);
  font-weight: 720;
}

.t2-wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid rgba(91, 193, 223, 0.22);
}

.t2-wizard-footer-actions {
  display: flex;
  gap: 10px;
}

.t2-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Success: Import Review is a real browser-file-picker workflow while source contents remain temporary until backend extraction exists. */
/* Previous: Static mock-only import states could not validate the manual meeting-number and upload UX. */
.t2-import-review {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 48px);
}

.t2-import-header {
  padding: 20px 20px 0;
}

.t2-import-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(91, 193, 223, 0.22);
}

.t2-import-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px;
  color: var(--t2-muted);
  background: rgba(5, 23, 45, 0.54);
  border: 1px solid rgba(91, 193, 223, 0.18);
  border-radius: 8px;
}

.t2-import-step strong {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #06111f;
  background: var(--t2-muted);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.t2-import-step span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t2-import-step.is-active,
.t2-import-step.is-complete {
  color: var(--t2-ink);
  border-color: var(--t2-line-strong);
  background: rgba(10, 51, 80, 0.86);
}

.t2-import-step.is-active strong,
.t2-import-step.is-complete strong {
  background: var(--t2-cyan);
}

.t2-import-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 20px;
}

.t2-import-upload-grid,
.t2-import-review-layout {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.t2-import-upload-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
}

.t2-import-review-layout {
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  align-items: start;
}

.t2-import-source-panel,
.t2-import-candidate-rail,
.t2-import-detail-panel,
.t2-import-processing,
.t2-import-failure,
.t2-import-complete {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  background: rgba(5, 23, 45, 0.56);
  border: 1px solid rgba(91, 193, 223, 0.22);
  border-radius: 8px;
}

.t2-import-source-panel h3,
.t2-import-processing h3,
.t2-import-failure h3,
.t2-import-complete h3,
.t2-import-detail-panel h3 {
  margin: 0;
  color: var(--t2-ink);
  font-size: 18px;
}

.t2-file-picker {
  display: grid;
  place-items: center;
  min-height: 196px;
  gap: 8px;
  padding: 20px;
  color: var(--t2-ink);
  background: rgba(3, 13, 28, 0.72);
  border: 1px dashed var(--t2-line-strong);
  border-radius: 8px;
  text-align: center;
}

.t2-file-picker input {
  width: min(320px, 100%);
  color: var(--t2-muted);
}

.t2-file-picker strong {
  color: var(--t2-ink);
}

.t2-file-picker em {
  color: var(--t2-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.t2-file-picker-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--t2-line-strong);
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(94, 223, 255, 0.1);
}

.t2-import-file-empty {
  min-height: 128px;
}

.t2-import-file-list {
  display: grid;
  gap: 8px;
}

.t2-import-file-row {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
}

.t2-import-file-row strong,
.t2-import-candidate strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--t2-ink);
}

.t2-import-file-row span,
.t2-import-candidate small,
.t2-import-processing p,
.t2-import-failure p,
.t2-import-complete p {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--t2-muted);
  line-height: 1.45;
}

.t2-import-processing {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
}

.t2-import-processing .t2-detail-list {
  grid-column: 1 / -1;
}

.t2-import-loader {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(91, 193, 223, 0.22);
  border-top-color: var(--t2-cyan);
  border-radius: 50%;
  animation: t2-spin 0.9s linear infinite;
}

@keyframes t2-spin {
  to {
    transform: rotate(360deg);
  }
}

.t2-import-count-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.t2-import-count-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
}

.t2-import-count-grid span {
  color: var(--t2-muted);
  font-size: 11px;
  font-weight: 820;
}

.t2-import-count-grid strong {
  color: var(--t2-ink);
  font-size: 22px;
}

.t2-import-candidate-list {
  display: grid;
  gap: 8px;
}

.t2-import-candidate {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  color: var(--t2-muted);
  background: rgba(4, 16, 31, 0.72);
  border: 1px solid rgba(91, 193, 223, 0.2);
  border-radius: 8px;
  text-align: left;
}

.t2-import-candidate.is-selected {
  border-color: var(--t2-line-strong);
  box-shadow: inset 0 0 18px rgba(94, 223, 255, 0.08);
}

.t2-import-source-summary {
  padding: 12px;
  background: rgba(4, 16, 31, 0.56);
  border: 1px solid rgba(91, 193, 223, 0.18);
  border-radius: 8px;
}

.t2-import-detail-panel {
  align-content: start;
}

.t2-import-detail-panel .t2-textarea {
  min-height: 86px;
}

.t2-staff-appendix-input {
  min-height: 118px;
}

.t2-import-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.t2-import-footer {
  align-items: center;
}

@media (max-width: 1040px) {
  .t2-hero-panel,
  .t2-dashboard-grid,
  .t2-link-grid,
  .t2-library-stats,
  .t2-library-toolbar,
  .t2-library-layout,
  .t2-people-layout,
  .t2-people-toolbar,
  .t2-review-summary,
  .t2-review-actions,
  .t2-generated-layout,
  .t2-settings-layout,
  .t2-import-upload-grid,
  .t2-import-review-layout,
  .t2-choice-grid,
  .t2-choice-grid.compact,
  .t2-review-grid {
    grid-template-columns: 1fr;
  }

  .t2-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .t2-dashboard-scroll {
    height: auto;
    min-height: 100vh;
    padding: 24px 18px 30px;
  }

  .t2-dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .t2-button.primary {
    width: 100%;
  }

  .t2-header-actions,
  .t2-import-actions {
    width: 100%;
  }

  .t2-modal-shell {
    padding: 12px;
  }

  .t2-modal-shell.is-wizard .t2-modal,
  .t2-modal-shell.is-import-review .t2-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .t2-wizard,
  .t2-import-review {
    max-height: calc(100vh - 24px);
  }

  .t2-stepper,
  .t2-import-progress,
  .t2-import-count-grid,
  .t2-review-facts,
  .t2-schedule-row,
  .t2-plan-station-head,
  .t2-half-station-grid,
  .t2-assignment-grid,
  .t2-export-row,
  .t2-form-grid.two,
  .t2-review-card div,
  .t2-settings-protected-row,
  .t2-station-row,
  .t2-staff-row,
  .t2-detail-list div,
  .t2-import-processing {
    grid-template-columns: 1fr;
  }

  .t2-wizard-footer,
  .t2-wizard-footer-actions,
  .t2-import-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .t2-chip-add-row {
    grid-template-columns: 1fr;
  }

  .t2-preview-panel {
    position: static;
  }
}
