/* Cognitive Accelerator styles — extends ide.css */

/* Settings modal select */
#settings-tts-model {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
}

/* Preview panel for presentations */
.preview-body iframe {
  background: #1a1a2e;
}

/* Selected item highlight in asset tree */
.tree-entry-selected > .tree-line {
  background: rgba(122, 162, 247, 0.18);
  border-radius: 3px;
}
/* A selected nested row starts at the FRONT (IDE._rowToFront sets the
   margin): opaque, so the guide lines it slides over do not show through,
   and its ↳ steps aside so the name gets the room. */
.tree-line {
  transition: margin-left 0.15s ease-out;
}
.tree-entry-front > .tree-line {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(rgba(122, 162, 247, 0.18), rgba(122, 162, 247, 0.18)),
    var(--bg);
}
.tree-entry-front > .tree-line > .tree-derived-mark {
  display: none;
}

/* Folder target indicator in sidebar */
.current-folder-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 11px;
  background: rgba(108, 200, 96, 0.08);
  border-bottom: 1px solid rgba(108, 200, 96, 0.18);
  color: #6cc860;
}
.cfi-label {
  opacity: 0.7;
}
.cfi-name {
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cfi-clear {
  padding: 0 5px;
  font-size: 12px;
  line-height: 1.4;
}

/* Move-to folder picker dialog */
.move-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8000;
}
.move-picker {
  background: var(--bg-sidebar, #12122a);
  border: 1px solid var(--border, #3a3a5e);
  border-radius: 8px;
  width: 340px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}
.move-picker-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border, #3a3a5e);
  flex-shrink: 0;
}
.move-picker-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e0e0e0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 8px;
}
.move-picker-tree {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  min-height: 120px;
}
.move-picker-ftr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border, #3a3a5e);
  flex-shrink: 0;
}
.move-picker-dest {
  flex: 1;
  font-size: 11px;
  color: var(--text-muted, #a0a0b0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Picker tree rows */
.mpt-row {
  user-select: none;
}
.mpt-children {
  padding-left: 16px;
}
.mpt-line {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 13px;
  color: var(--text, #e0e0e0);
}
.mpt-line:hover:not(.mpt-disabled) {
  background: rgba(122, 162, 247, 0.1);
}
.mpt-line.mpt-selected {
  background: rgba(122, 162, 247, 0.2);
  color: var(--accent, #7aa2f7);
}
.mpt-line.mpt-disabled {
  opacity: 0.35;
  cursor: default;
}
.mpt-caret {
  font-size: 9px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--text-muted, #a0a0b0);
}
.mpt-caret:hover {
  color: var(--text, #e0e0e0);
}
.mpt-icon {
  flex-shrink: 0;
}
.mpt-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mpt-empty {
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-muted, #a0a0b0);
  font-style: italic;
}

/* Tree right-click context menu */
.tree-context-menu {
  position: fixed;
  z-index: 9999;
  background: var(--bg-sidebar, #12122a);
  border: 1px solid var(--border, #3a3a5e);
  border-radius: 6px;
  padding: 4px 0;
  min-width: 160px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.tree-context-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text, #e0e0e0);
  cursor: pointer;
}
.tree-context-item:hover:not(:disabled) {
  background: rgba(122, 162, 247, 0.15);
  color: var(--accent, #7aa2f7);
}
.tree-context-item-disabled {
  opacity: 0.38;
  cursor: default;
}

/* The "+ New ▾" dropdown panel reuses .tree-context-menu for its chrome, but
   that class (above) is `position: fixed`. Fixed + the panel's `top:100%`
   anchors it to the VIEWPORT bottom — i.e. off-screen — so the menu opened but
   was invisible (reported as "+ New does nothing"). ce.css loads after ide.css,
   so this rule wins the cascade and restores trigger-anchored absolute
   positioning. !important guards against future class-order surprises. */
#add-menu-panel.tree-context-menu {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  /* The asset panel sits at the right edge of the layout, so anchoring the
     panel's LEFT to the trigger pushes it off the right of the page. Anchor
     the RIGHT edge instead so it grows leftward, into the viewport. */
  right: 0 !important;
  left: auto !important;
  z-index: 2000;
  /* Keep it inside the panel even if its natural width would overflow. */
  max-width: min(280px, 90vw);
}

/* The action-bar "⋯ More (N) ▾" overflow panel has the SAME bug as "+ New":
   its element carries both `.action-more-panel` (position:absolute in ide.css)
   and `.tree-context-menu`. ce.css's `.tree-context-menu { position: fixed }`
   above is the LAST `position` declaration in the cascade, so it wins and the
   panel renders off-screen at the viewport bottom — "More does nothing".
   Restore trigger-anchored absolute positioning, same as #add-menu-panel.
   The action bar sits at the right of the asset panel, so anchor the panel's
   right edge and grow it leftward into the viewport. */
.action-more-panel.tree-context-menu {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 2000;
  max-width: min(280px, 90vw);
}

/* ===== Account & Settings (ACCOUNT_AND_SETTINGS S1/S2) ===== */
.auth-chip {
  display: inline-flex;
  align-items: center;
}
.auth-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border, #3a3f4b);
  color: inherit;
  border-radius: 999px;
  padding: 2px 10px 2px 2px;
  cursor: pointer;
  font-size: 12px;
}
.auth-chip-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4361ee;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.auth-menu {
  position: fixed;
  z-index: 10000;
  min-width: 180px;
  background: var(--panel, #1e222b);
  border: 1px solid var(--border, #3a3f4b);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.auth-menu-head {
  font-size: 11px;
  opacity: 0.7;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border, #3a3f4b);
  margin-bottom: 4px;
}
.auth-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.auth-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.auth-login-overlay,
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.auth-login-modal {
  position: relative;
  background: var(--panel, #1e222b);
  border: 1px solid var(--border, #3a3f4b);
  border-radius: 12px;
  padding: 24px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-login-modal label,
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
/* SECURITY (2026-07-26): `hidden` MUST win over the display rules in this block.
   `_applyAuthMethods` renders every sign-in method hidden and reveals only what
   /api/auth/methods says the server offers — but the UA's `[hidden]{display:none}`
   loses to an author `display:flex`, so the email field and the "Try without an
   account" row were rendered anyway on boxes where the server had switched them
   off. Any element the server declined must not paint. */
.auth-login-modal [hidden],
.auth-login-overlay [hidden] {
  display: none !important;
}
.auth-login-modal input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border, #3a3f4b);
  background: var(--bg, #14171d);
  color: inherit;
}
.auth-login-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.auth-login-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}
.auth-login-status {
  font-size: 12px;
  min-height: 14px;
  opacity: 0.8;
}

/* Account chip on the Open-Workspace picker (sign in/out + profile reachable
   before any workspace is open). */
.picker-account-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 8px;
}

/* Blocking login gate (multi-user mode, unauthenticated): an opaque backdrop
   the user can't see or click through until they sign in. */
.auth-login-overlay.auth-login-blocking {
  background: var(--bg, #14171d);
  z-index: 100000;
}
.auth-login-hint {
  font-size: 12px;
  opacity: 0.8;
  margin: -4px 0 4px;
}
/* Org-domain "staff access only" block screen (§8A). Reuses the blocking
   overlay; a big lock glyph sets the tone before the copy. */
.auth-domain-icon {
  font-size: 34px;
  line-height: 1;
  text-align: center;
  margin-bottom: 2px;
}
/* While a gate is up (login OR org-domain block), hide the shell behind it so
   nothing leaks through. */
body.ce-auth-locked > *:not(#auth-login-overlay):not(#auth-domain-overlay) {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

/* The waiting room (UAD-1). Deliberately NOT a lock: a person waiting for
   approval can still connect their account and browse their own files, so the
   banner sits above the shell rather than in front of it. It stays put so the
   reason is already on screen when a door does refuse them. */
.ce-waiting-banner {
  position: sticky;
  top: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 13px;
  background: var(--accent-soft, #3a3411);
  color: var(--text, #e8e8e8);
  border-bottom: 1px solid var(--border, #2a2f38);
}
.ce-waiting-banner span {
  flex: 1;
  min-width: 0;
}
.ce-waiting-more {
  background: none;
  border: 1px solid var(--border, #2a2f38);
  border-radius: 5px;
  color: inherit;
  cursor: pointer;
  padding: 3px 9px;
  font-size: 12px;
}
.ce-waiting-more:hover {
  border-color: var(--accent, #6aa3ff);
}
.ce-waiting-list {
  margin: 4px 0 10px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.55;
}

.settings-modal {
  display: flex;
  width: min(900px, 92vw);
  height: min(640px, 88vh);
  background: var(--panel, #1e222b);
  border: 1px solid var(--border, #3a3f4b);
  border-radius: 12px;
  overflow: hidden;
}
.settings-sidebar {
  width: 200px;
  background: rgba(0, 0, 0, 0.18);
  padding: 16px 10px;
  border-right: 1px solid var(--border, #3a3f4b);
  overflow-y: auto;
}
.settings-sidebar h2 {
  font-size: 15px;
  margin: 4px 8px 12px;
}
/* The Settings window's "nothing to show" states (2026-08-14). A blank panel
   is indistinguishable from a broken product, so every one of them carries a
   sentence — and the identity line answers "am I signed in as the right
   person?", which is what an empty-looking window actually meant that day. */
.settings-who {
  padding: 6px 14px 10px;
  border-bottom: 1px solid var(--border, #3a3a5c);
  margin-bottom: 8px;
}
.settings-who-name {
  color: var(--text-dim, #9a9aae);
  font-size: 12px;
  word-break: break-all;
}
.settings-who-name b {
  color: var(--text, #e0e0f0);
  font-weight: 600;
}
.settings-who-role {
  color: var(--success, #4caf50);
  font-size: 11px;
  margin-top: 2px;
}
.settings-note {
  color: var(--text-dim, #9a9aae);
  padding: 18px 4px;
}
.settings-empty {
  padding: 24px 4px;
  max-width: 46ch;
}
.settings-empty h3 {
  color: var(--text, #e0e0f0);
  margin: 0 0 8px;
  font-size: 15px;
}
.settings-empty p {
  color: var(--text-dim, #9a9aae);
  margin: 0 0 14px;
  line-height: 1.5;
}

.settings-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.settings-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.settings-nav-item.active {
  background: #4361ee;
  color: #fff;
}
/* Scope group header in the Settings left-nav (This workspace / Account /
   Administration) — a small muted, non-clickable label above its items. */
.settings-nav-group {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  opacity: 0.5;
  margin: 14px 10px 4px;
}
.settings-nav-group:first-child {
  margin-top: 4px;
}
.settings-content {
  flex: 1;
  position: relative;
  overflow-y: auto;
  padding: 18px 22px;
}
.settings-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}
.settings-card {
  border: 1px solid var(--border, #3a3f4b);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.settings-card legend,
.settings-card h4 {
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px;
}
.settings-field {
  margin: 10px 0;
}
.settings-label {
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: center;
}
.settings-scope {
  font-size: 10px;
  opacity: 0.6;
  border: 1px solid var(--border, #3a3f4b);
  border-radius: 999px;
  padding: 1px 7px;
}
.settings-control input,
.settings-control select,
.settings-control textarea {
  width: 100%;
  padding: 7px;
  border-radius: 6px;
  border: 1px solid var(--border, #3a3f4b);
  background: var(--bg, #14171d);
  color: inherit;
}
.settings-hint {
  font-size: 11px;
  opacity: 0.65;
}
.settings-status {
  font-size: 11px;
}
.settings-status.ok {
  color: #4ade80;
}
.settings-status.err {
  color: #f87171;
}
/* CW-49 — the chosen-actions list (Settings → AI safety). Chips + an ➕ that
   opens the shared picker, instead of a text box you have to type ids into. */
.settings-actionlist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.settings-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px 2px 9px;
  border: 1px solid var(--border, #3a3a5c);
  border-radius: 12px;
  background: var(--bg-input, #1a1a2a);
  font-size: 11px;
  max-width: 100%;
}
.settings-chip button {
  border: none;
  background: none;
  color: var(--text-muted, #9a9ac4);
  cursor: pointer;
  font: inherit;
  padding: 0 3px;
  line-height: 1;
}
.settings-chip button:hover {
  color: #f87171;
}
.settings-chip-add {
  padding: 3px 10px;
  border: 1px dashed var(--border, #3a3a5c);
  border-radius: 12px;
  background: none;
  color: var(--text, #e0e0f0);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}
.settings-chip-add:hover {
  border-color: var(--accent, #6c63ff);
  border-style: solid;
}
.settings-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.settings-list .muted,
.muted {
  opacity: 0.55;
}
.settings-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-xs {
  font-size: 11px;
  padding: 3px 7px;
}
.settings-error {
  color: #f87171;
}
/* ===== Provider readiness badges (1B) ===== */
.settings-avail {
  font-size: 10px;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 6px;
}
.settings-avail.ok {
  color: #4ade80;
  border: 1px solid #4ade8055;
}
.settings-avail.warn {
  color: #fbbf24;
  border: 1px solid #fbbf2455;
}
.settings-warn {
  font-size: 11px;
  color: #fbbf24;
  margin: 4px 0 0;
}
.settings-card-unavailable {
  border-color: #fbbf2455;
}
.settings-field-missing input {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px #f8717144;
}
.ai-bar-status.warn {
  color: #fbbf24;
  opacity: 1;
}
.ai-bar-provider option:disabled {
  color: #888;
}

/* ===== Reusable AI run bar (S6) ===== */
.ai-bar {
  margin: 6px 0;
}
.ai-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ai-bar-provider {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border, #3a3f4b);
  background: var(--bg, #14171d);
  color: inherit;
}
.ai-bar-status {
  font-size: 12px;
  opacity: 0.8;
}
.ai-bar-output {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border, #3a3f4b);
  border-radius: 8px;
  background: var(--bg, #14171d);
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  max-height: 320px;
  overflow: auto;
}
.settings-fn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.settings-fn-table th,
.settings-fn-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border, #3a3f4b);
  vertical-align: top;
}
.settings-fn-table select {
  padding: 5px;
  border-radius: 6px;
  border: 1px solid var(--border, #3a3f4b);
  background: var(--bg, #14171d);
  color: inherit;
}

/* ============================================================ */
/* PF-2 — Class Editor home-mode chip + classroom sidebar       */
/* ============================================================ */
.home-mode-chip {
  display: inline-flex;
  align-items: center;
}
.home-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.home-mode-btn:hover {
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
}
.home-mode-icon {
  font-size: 14px;
}
body.home-mode-class-editor .home-mode-btn {
  border-color: var(--accent, #7c6cff);
}

#section-class-editor .ce-course-count {
  padding: 4px 12px;
  font-size: 12px;
  opacity: 0.7;
}
.ce-course-row {
  border-bottom: 1px solid var(--border);
}
.ce-course-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.ce-course-head:hover {
  background: var(--bg-hover, rgba(255, 255, 255, 0.05));
}
.ce-twisty {
  width: 1em;
  opacity: 0.7;
}
.ce-course-name {
  flex: 1;
  font-weight: 600;
}
.ce-course-code,
.ce-course-classes {
  font-size: 11px;
  opacity: 0.6;
}
.ce-class-list {
  padding-left: 22px;
}
.ce-class-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
}
.ce-class-row:hover {
  background: var(--bg-hover, rgba(255, 255, 255, 0.05));
}
.ce-class-dates {
  flex: 1;
}
.ce-class-status {
  text-transform: uppercase;
  font-size: 10px;
  opacity: 0.7;
}
.ce-class-detail {
  padding: 20px;
}
.ce-class-detail h2 small {
  opacity: 0.6;
  font-weight: 400;
}
.ce-class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
  font-size: 13px;
}
.ce-class-actions {
  margin: 12px 0;
}
.ce-ws-id {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 8px;
}

/* Published content (course-packages released to a class). */
.ce-class-releases {
  margin-top: 20px;
  border-top: 1px solid var(--border, #3a3a3a);
  padding-top: 14px;
}
.ce-releases-head {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
}
.ce-release-card {
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.ce-release-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ce-release-name {
  font-weight: 500;
}
.ce-release-meta {
  font-size: 11px;
  opacity: 0.6;
}
.ce-release-item-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
}
.ce-release-item-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.ce-ri-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ce-ri-share {
  font-size: 11px;
  opacity: 0.6;
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 3px;
  padding: 0 5px;
}
.ce-release-remove {
  margin-left: auto;
}
.ce-release-removed-tag {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.6;
  font-style: italic;
}
.ce-release-inactive {
  opacity: 0.55;
}

/* DX-2 — People panel (roster + attendance + guests) */
.ce-class-people {
  margin-top: 16px;
  border-top: 1px solid var(--border, #3a3a3a);
  padding-top: 14px;
}
.ce-people-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ce-people-title {
  font-weight: 600;
  font-size: 13px;
}
.ce-people-count {
  font-size: 12px;
  opacity: 0.6;
}
.ce-people-head .btn {
  margin-left: 0;
}
.ce-people-csv {
  margin-left: auto;
}
.ce-people-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle, rgba(128, 128, 128, 0.15));
}
.ce-people-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ce-people-role,
.ce-people-guest {
  font-size: 11px;
  opacity: 0.6;
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 3px;
  padding: 0 5px;
}
.ce-people-guest {
  color: var(--accent, #6ab0f3);
  border-color: currentColor;
  opacity: 0.85;
}
.ce-people-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px dashed var(--border, #3a3a3a);
  border-radius: 3px;
  padding: 0 6px;
  cursor: pointer;
}
.ce-people-code:hover {
  border-style: solid;
}
.ce-people-joined {
  font-size: 11px;
  opacity: 0.55;
  min-width: 84px;
  text-align: right;
}
.ce-people-row-guest .ce-people-name {
  font-style: italic;
  opacity: 0.85;
}
.ce-people-code-copy,
.ce-people-code-email {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
  opacity: 0.7;
}
.ce-people-code-copy:hover,
.ce-people-code-email:hover {
  opacity: 1;
}

/* DX-4 — guests toggle + banner */
.ce-guests-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  margin: 8px 0 4px;
}
.ce-guests-banner {
  font-size: 12px;
  color: var(--accent, #6ab0f3);
  margin-bottom: 6px;
}
.ce-release-guests {
  margin-left: 8px;
}

/* DX-5 — release schedule dialog */
.ce-sched-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.ce-sched {
  background: var(--bg, #1e1e1e);
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 8px;
  padding: 18px 20px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ce-sched label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.ce-sched-hint {
  font-size: 11px;
  opacity: 0.6;
  margin: 0;
}
.ce-sched-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.cp-picker-schedule {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 12px;
}
.cp-picker-schedule label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* UL-3 — "auto-translated". A plain statement, not an alarm: the words are
   usable, and what it must not do is let somebody believe a person has read
   them. ⚠ `--warn` is the ONE amber (ide.css :root) and `--text` the colour
   — `--text-muted` is 4.35:1 on this ground, under AA, and a notice nobody
   can read is not a notice. */
.i18n-chip {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--text, #e0e0f0);
  background: rgba(224, 168, 0, 0.18);
  border: 1px solid var(--warn, #e0a800);
  white-space: nowrap;
  cursor: default;
}
