/* ============================================================================
   Admin Settings - Full Page Control Center
   Follows topic-settings.css pattern with as- prefix
   ============================================================================ */

/* Hide base hero/nav spacer if present */
.admin-settings-mode .hero-section,
.admin-settings-mode .page-hero {
  display: none;
}

/* Full-bleed: base.html wraps content in Pico's centered main.container —
   break out so the sidebar sits on the left viewport edge and the content
   area gets the full remaining width. */
body.admin-settings-mode main.container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================================
   Page Layout
   ============================================================================ */

.as-page {
  display: flex;
  min-height: calc(100vh - 60px);
  width: 100%;
}

/* ============================================================================
   Sidebar
   ============================================================================ */

.as-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.as-sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.as-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.15s;
}

.as-back-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.as-page-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* Nav items */
.as-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.as-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  font-family: inherit;
}

.as-nav-item:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
}

.as-nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #00a8ff;
}

.as-nav-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.as-nav-item.active svg {
  opacity: 1;
}

/* ============================================================================
   Content Area
   ============================================================================ */

.as-content {
  flex: 1;
  padding: 32px 48px;
  min-width: 0;
}

/* Tabs */
.as-tab {
  display: none;
}

.as-tab.active {
  display: block;
}

.as-tab-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.as-tab-subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 24px;
}

/* ============================================================================
   Cards
   ============================================================================ */

.as-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

/* ============================================================================
   Form Elements
   ============================================================================ */

.as-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px !important;
}

.as-description {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin: -4px 0 12px !important;
  line-height: 1.4;
}

.as-muted {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================================
   Browse Groups Editor (reused from admin-create overlay)
   ============================================================================ */

.as-browse-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.as-browse-selected h4,
.as-browse-available h4 {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.as-browse-list {
  min-height: 60px;
}

.as-browse-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: grab;
}

.as-browse-item.dragging {
  opacity: 0.4;
}

.as-browse-item-add {
  cursor: pointer;
  color: rgba(255, 165, 0, 0.7);
  border-style: dashed;
}

.as-browse-item-add:hover {
  background: rgba(255, 165, 0, 0.05);
  border-color: rgba(255, 165, 0, 0.3);
}

.as-drag-handle {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

.as-btn-icon {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 1rem;
  margin-left: auto;
}

.as-btn-icon:hover {
  color: rgba(255, 100, 100, 0.8);
}

.as-btn-config {
  margin-left: 0;
}

.as-btn-config:hover {
  color: rgba(255, 255, 255, 0.8);
}

.as-browse-item-name {
  flex: 1;
}

/* ============================================================================
   Per-Group Config Panel
   ============================================================================ */

.as-group-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.as-config-field {
  margin-bottom: 16px;
}

.as-input,
.as-textarea,
.as-select {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  padding: 10px 12px !important;
  font-family: inherit !important;
  margin: 0 !important;
  transition: border-color 0.15s !important;
  box-sizing: border-box !important;
}

.as-input:focus,
.as-textarea:focus,
.as-select:focus {
  border-color: rgba(0, 168, 255, 0.5) !important;
  outline: none !important;
}

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

.as-select option {
  background: #1a1c22;
  color: #fff;
}

.as-btn-save {
  background: rgba(0, 168, 255, 0.15);
  border: 1px solid rgba(0, 168, 255, 0.3);
  color: rgba(0, 168, 255, 0.9);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.as-btn-save:hover {
  background: rgba(0, 168, 255, 0.25);
  border-color: rgba(0, 168, 255, 0.5);
}

/* ============================================================================
   Right Panel Items Editor
   ============================================================================ */

.as-panel-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.as-panel-item-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.as-panel-item-details {
  margin-top: 6px;
}

.as-panel-item-details .as-input {
  font-size: 0.8rem !important;
  padding: 7px 10px !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.as-btn-add-row {
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: rgba(255, 165, 0, 0.7);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: all 0.15s;
  width: 100%;
}

.as-btn-add-row:hover {
  background: rgba(255, 165, 0, 0.05);
  border-color: rgba(255, 165, 0, 0.3);
}

/* ============================================================================
   Admin Check Overlay (same as admin-create)
   ============================================================================ */

.admin-check-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary, #1a1c22);
  z-index: 100;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ============================================================================
   Loading / Error States
   ============================================================================ */

.as-loading {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.as-error {
  color: rgba(255, 100, 100, 0.8);
  font-size: 0.85rem;
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 768px) {
  .as-page {
    flex-direction: column;
  }

  .as-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
  }

  .as-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 16px;
    gap: 4px;
  }

  .as-nav-item {
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding: 8px 12px;
  }

  .as-nav-item.active {
    border-bottom-color: #00a8ff;
    border-left-color: transparent;
  }

  .as-content {
    padding: 24px 16px;
  }

  .as-browse-editor {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Collection Templates Tab
   ============================================================================ */

.as-tab-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.as-btn-primary {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary, #00a8ff);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s;
  white-space: nowrap;
}

.as-btn-primary:hover {
  filter: brightness(0.88);
}

.as-tmpl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.as-tmpl-thumb {
  width: 80px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.as-tmpl-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.15);
}

.as-tmpl-info {
  flex: 1;
  min-width: 0;
}

.as-tmpl-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.as-tmpl-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.as-tmpl-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  vertical-align: middle;
  margin-left: 6px;
}

.as-tmpl-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.as-btn-sm {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.as-btn-sm:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.as-btn-danger:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.3);
  color: rgba(255, 100, 100, 0.9);
}

.as-loading {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  padding: 16px 0;
}

/* ── Apply Template Modal ── */
.as-modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; }
.as-modal { background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; width: 500px; max-width: 90vw; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; }
.as-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.as-modal-header h3 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.as-modal-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 20px; cursor: pointer; padding: 0 4px; line-height: 1; }
.as-modal-close:hover { color: #fff; }
.as-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.as-modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.as-modal-field { margin-bottom: 16px; }
.as-modal-field:last-child { margin-bottom: 0; }
.as-modal-field label { display: block; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.as-modal-input { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 8px 10px; font-size: 13px; color: #fff; outline: none; box-sizing: border-box; }
.as-modal-input:focus { border-color: rgba(0,168,255,0.5); }
.as-modal-input::placeholder { color: rgba(255,255,255,0.25); }
.as-modal-apply { background: #00a8ff; color: #fff; }
.as-modal-apply:hover { background: #0095e0; }
.as-modal-apply:disabled { opacity: 0.5; cursor: not-allowed; }

/* Search results dropdown */
.as-topic-results { max-height: 200px; overflow-y: auto; margin-top: 4px; border-radius: 6px; }
.as-topic-result-item { display: block; width: 100%; text-align: left; padding: 8px 10px; font-size: 13px; color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.03); border: none; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; font-family: inherit; }
.as-topic-result-item:hover { background: rgba(255,255,255,0.08); }
.as-topic-result-item.selected { color: #00a8ff; }
.as-topic-result-item:last-child { border-bottom: none; }
.as-topic-result-empty { padding: 8px 10px; font-size: 12px; color: rgba(255,255,255,0.3); }

/* Selected topic tags */
.as-selected-topics { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; }
.as-selected-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 12px; color: rgba(255,255,255,0.85); background: rgba(0,168,255,0.15); border: 1px solid rgba(0,168,255,0.3); border-radius: 16px; }
.as-selected-tag-remove { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 14px; cursor: pointer; padding: 0 2px; line-height: 1; }
.as-selected-tag-remove:hover { color: #fff; }

/* ============================================================================
   Account Plans tab
   ============================================================================ */

.as-plan-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.as-plan-row:last-child { border-bottom: none; }

.as-plan-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.as-plan-id { flex: 1; min-width: 0; }

.as-plan-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-plan-email {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pico makes selects/inputs block-level and 100% wide — pin these down. */
.as-plan-select {
  width: 150px !important;
  flex: none !important;
  margin: 0 !important;
  padding: 6px 30px 6px 10px !important;
  font-size: 0.82rem !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  color: #fff !important;
}

.as-plan-status {
  flex: none;
  width: 52px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.as-topic-admin {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.as-topic-admin-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.as-topic-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.as-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
}

.as-topic-chip-x {
  border: none !important;
  background: none !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  font-size: 0.85rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
}

.as-topic-chip-x:hover { color: rgba(255, 110, 110, 0.9); }

.as-topic-add-wrap {
  position: relative;
  display: inline-block;
}

.as-topic-add {
  width: 130px !important;
  margin: 0 !important;
  padding: 3px 10px !important;
  font-size: 0.76rem !important;
  background: transparent !important;
  border: 1px dashed rgba(255, 255, 255, 0.25) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  height: auto !important;
}

.as-topic-add:focus {
  border-style: solid !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  outline: none !important;
  box-shadow: none !important;
}

.as-topic-suggest {
  position: absolute;
  z-index: 30;
  top: 115%;
  left: 0;
  min-width: 240px;
  max-height: 220px;
  overflow: auto;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.as-topic-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 11px;
  border: none !important;
  background: none !important;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 !important;
  border-radius: 0 !important;
}

.as-topic-opt:hover { background: rgba(255, 255, 255, 0.07) !important; }

.as-topic-opt-type {
  font-size: 0.68rem;
  opacity: 0.5;
  margin-left: 4px;
}

.as-topic-opt-empty {
  padding: 8px 11px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   Chrome fit: clear the fixed global nav in both themes
   ============================================================================ */

.as-page { padding-top: 18px; }
.as-sidebar { top: calc(var(--site-nav-h, 57px) + 18px); height: calc(100vh - var(--site-nav-h, 57px) - 18px); }

/* ============================================================================
   LIGHT MODE — the design-language pass (ink scale on the #eceef1 canvas)
   ============================================================================ */

html.si-light body.si-themed .as-sidebar { border-right-color: rgba(16, 20, 24, 0.12); }
html.si-light body.si-themed .as-sidebar-header { border-bottom-color: rgba(16, 20, 24, 0.1); }
html.si-light body.si-themed .as-back-link { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .as-back-link:hover { color: #101418; }
html.si-light body.si-themed .as-page-title { color: #101418; }
html.si-light body.si-themed .as-nav-item { color: rgba(16, 20, 24, 0.62); }
html.si-light body.si-themed .as-nav-item:hover { color: #101418; background: rgba(16, 20, 24, 0.04); }
html.si-light body.si-themed .as-nav-item.active { color: #101418; background: rgba(16, 20, 24, 0.06); border-left-color: #101418; }
html.si-light body.si-themed .as-tab-title { color: #101418; }
html.si-light body.si-themed .as-tab-subtitle { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .as-card { background: #fff; border-color: rgba(16, 20, 24, 0.12); }
html.si-light body.si-themed .as-label { color: #101418; }
html.si-light body.si-themed .as-description { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .as-muted { color: rgba(16, 20, 24, 0.5); }
html.si-light body.si-themed .as-input,
html.si-light body.si-themed .as-textarea,
html.si-light body.si-themed .as-select {
  background: #fff !important;
  border-color: rgba(16, 20, 24, 0.22) !important;
  color: #101418 !important;
}
html.si-light body.si-themed .as-input:focus,
html.si-light body.si-themed .as-textarea:focus,
html.si-light body.si-themed .as-select:focus { border-color: rgba(16, 20, 24, 0.5) !important; }
html.si-light body.si-themed .as-select option { background: #fff; color: #101418; }
html.si-light body.si-themed .as-browse-item { background: rgba(16, 20, 24, 0.03); border-color: rgba(16, 20, 24, 0.12); color: rgba(16, 20, 24, 0.78); }
html.si-light body.si-themed .as-drag-handle { color: rgba(16, 20, 24, 0.3); }
html.si-light body.si-themed .as-btn-icon { color: rgba(16, 20, 24, 0.45); }
html.si-light body.si-themed .as-btn-save { background: #101418; border-color: #101418; color: #fff; }
html.si-light body.si-themed .as-btn-save:hover { background: #000; }
html.si-light body.si-themed .as-btn-primary { background: #101418; color: #fff; }
html.si-light body.si-themed .as-btn-sm { background: rgba(16, 20, 24, 0.05); border-color: rgba(16, 20, 24, 0.2); color: rgba(16, 20, 24, 0.75); }
html.si-light body.si-themed .as-btn-sm:hover { background: rgba(16, 20, 24, 0.1); color: #101418; }
html.si-light body.si-themed .as-tmpl-title { color: rgba(16, 20, 24, 0.88); }
html.si-light body.si-themed .as-tmpl-desc { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .as-tmpl-badge { background: rgba(16, 20, 24, 0.07); color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .as-tmpl-thumb-empty { background: rgba(16, 20, 24, 0.05); color: rgba(16, 20, 24, 0.25); }
html.si-light body.si-themed .as-loading { color: rgba(16, 20, 24, 0.5); }
html.si-light body.si-themed .admin-check-overlay { background: #eceef1; color: rgba(16, 20, 24, 0.6); }
html.si-light body.si-themed .as-nav-item.active { border-left-color: #101418; }
html.si-light body.si-themed .as-modal { background: #fff; border-color: rgba(16, 20, 24, 0.15); }
html.si-light body.si-themed .as-modal-header h3 { color: #101418; }
html.si-light body.si-themed .as-modal-header,
html.si-light body.si-themed .as-modal-footer { border-color: rgba(16, 20, 24, 0.1); }
html.si-light body.si-themed .as-modal-input { background: #fff; border-color: rgba(16, 20, 24, 0.22); color: #101418; }
html.si-light body.si-themed .as-topic-result-item { background: rgba(16, 20, 24, 0.02); color: rgba(16, 20, 24, 0.8); border-bottom-color: rgba(16, 20, 24, 0.06); }
html.si-light body.si-themed .as-topic-result-item:hover { background: rgba(16, 20, 24, 0.06); }

/* Account Plans light pass */
html.si-light body.si-themed .as-plan-row { border-bottom-color: rgba(16, 20, 24, 0.1); }
html.si-light body.si-themed .as-plan-name { color: #101418; }
html.si-light body.si-themed .as-plan-email { color: rgba(16, 20, 24, 0.55); }
html.si-light body.si-themed .as-plan-select {
  background-color: #fff !important;
  border-color: rgba(16, 20, 24, 0.22) !important;
  color: #101418 !important;
}
html.si-light body.si-themed .as-plan-status { color: rgba(16, 20, 24, 0.5); }
html.si-light body.si-themed .as-topic-admin-label { color: rgba(16, 20, 24, 0.5); }
html.si-light body.si-themed .as-topic-chip { border-color: rgba(16, 20, 24, 0.2); color: rgba(16, 20, 24, 0.82); }
html.si-light body.si-themed .as-topic-chip-x { color: rgba(16, 20, 24, 0.45); }
html.si-light body.si-themed .as-topic-chip-x:hover { color: #b91c1c; }
html.si-light body.si-themed .as-topic-add {
  border-color: rgba(16, 20, 24, 0.3) !important;
  color: #101418 !important;
}
html.si-light body.si-themed .as-topic-add:focus { border-color: rgba(16, 20, 24, 0.55) !important; }
html.si-light body.si-themed .as-topic-suggest { background: #fff; border-color: rgba(16, 20, 24, 0.15); box-shadow: 0 10px 28px rgba(16, 20, 24, 0.14); }
html.si-light body.si-themed .as-topic-opt { color: rgba(16, 20, 24, 0.85); }
html.si-light body.si-themed .as-topic-opt:hover { background: rgba(16, 20, 24, 0.05) !important; }
html.si-light body.si-themed .as-topic-opt-empty { color: rgba(16, 20, 24, 0.5); }

/* ============================================================================
   Users tab — stats strip + full table (2026-08-31 rework)
   ============================================================================ */

.as-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.as-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}

.as-stat-n {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.as-stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
}

.as-users-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.as-users-search { max-width: 340px; }

.as-users-count {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

/* The table itself — explicit colors everywhere (Pico paints tables). */
.as-users-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.as-users-table th {
  text-align: left; font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
  padding: 6px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.as-users-table td {
  padding: 9px 10px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}
.as-users-table tbody tr:hover td { background: rgba(255, 255, 255, 0.04) !important; }
.as-users-table .as-plan-name { font-size: 0.84rem; }
.as-users-table .as-plan-email { font-size: 0.72rem; }
.as-users-num { font-variant-numeric: tabular-nums; text-align: right; }
.as-users-quiet { color: rgba(255, 255, 255, 0.5) !important; font-size: 0.76rem; }

.as-users-flag {
  display: inline-block; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}
.as-users-flag.ok { border-color: rgba(21, 128, 61, 0.55); color: #2f9e5f; }
.as-users-flag.warn { border-color: rgba(180, 83, 9, 0.55); color: #c07316; }

/* Topic-admin expander row rides under its user row */
.as-users-table .as-topic-admin { margin: 2px 0 4px; }

/* Light pass */
html.si-light body.si-themed .as-stat { background: #fff; border-color: rgba(16, 20, 24, 0.12); }
html.si-light body.si-themed .as-stat-n { color: #101418; }
html.si-light body.si-themed .as-stat-label { color: rgba(16, 20, 24, 0.5); }
html.si-light body.si-themed .as-users-count { color: rgba(16, 20, 24, 0.5); }
html.si-light body.si-themed .as-users-table th {
  color: rgba(16, 20, 24, 0.45) !important;
  border-bottom-color: rgba(16, 20, 24, 0.2);
}
html.si-light body.si-themed .as-users-table td {
  color: #101418 !important;
  border-bottom-color: rgba(16, 20, 24, 0.09);
}
html.si-light body.si-themed .as-users-table tbody tr:hover td { background: rgba(16, 20, 24, 0.03) !important; }
html.si-light body.si-themed .as-users-quiet { color: rgba(16, 20, 24, 0.5) !important; }
html.si-light body.si-themed .as-users-flag { border-color: rgba(16, 20, 24, 0.25); color: rgba(16, 20, 24, 0.6); }
html.si-light body.si-themed .as-users-flag.ok { border-color: rgba(21, 128, 61, 0.5); color: #15803d; }
html.si-light body.si-themed .as-users-flag.warn { border-color: rgba(180, 83, 9, 0.5); color: #b45309; }

/* ---- LLMs tab (dark-first, html.si-light overrides via .as-goscope tokens) ---- */
.as-llm .llm-toolbar { display: flex; gap: 8px; align-items: center; }
.as-llm .llm-days { width: auto; min-width: 130px; }
.as-llm .llm-group { margin: 22px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--go-ink3) !important; }
.as-llm .llm-card { background: var(--go-card); border: 1px solid var(--go-line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; }
.as-llm .llm-card.is-off { opacity: .55; }
.as-llm .llm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.as-llm .llm-title { font-size: 15px; font-weight: 800; color: var(--go-ink) !important; margin: 0; }
.as-llm .llm-writes { font-size: 12.5px; color: var(--go-ink2) !important; margin: 3px 0 0; max-width: 62ch; }
.as-llm .llm-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.as-llm .llm-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--go-line); color: var(--go-ink2) !important; background: var(--go-fill); white-space: nowrap; }
.as-llm .llm-badge.model { color: #7cc4ff !important; border-color: rgba(0,168,255,.35); background: rgba(0,168,255,.10); }
.as-llm .llm-badge.override { color: #ffc46b !important; border-color: rgba(255,170,60,.4); background: rgba(255,170,60,.10); }
.as-llm .llm-badge.off { color: #ff8a80 !important; border-color: rgba(255,90,80,.4); background: rgba(255,90,80,.10); }
.as-llm .llm-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 18px; margin: 12px 0 0; }
.as-llm .llm-meta dt { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--go-ink3) !important; margin: 0 0 2px; }
.as-llm .llm-meta dd { margin: 0; font-size: 12.5px; color: var(--go-ink) !important; }
.as-llm .llm-meta dd small { color: var(--go-ink3) !important; }
.as-llm .llm-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--go-line); }
.as-llm .llm-field { display: flex; flex-direction: column; gap: 4px; }
.as-llm .llm-field label { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--go-ink3) !important; }
.as-llm .llm-field .as-select, .as-llm .llm-field .as-input { min-height: 32px; padding: 4px 8px; font-size: 12.5px; width: auto; }
.as-llm .llm-field .as-input.n { width: 92px; }
.as-llm .llm-field .as-input.cron { width: 130px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.as-llm .llm-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--go-ink) !important; min-height: 32px; }
.as-llm .llm-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.as-llm .llm-note { font-size: 11.5px; color: var(--go-ink3) !important; margin: 6px 0 0; }
.as-llm .llm-note.ok { color: #6fd39a !important; }
.as-llm .llm-note.err { color: #ff8a80 !important; }
.as-llm .llm-examples { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--go-line); }
.as-llm .llm-examples summary { cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--go-ink3) !important; list-style: none; }
.as-llm .llm-examples summary::-webkit-details-marker { display: none; }
.as-llm .llm-ex { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--go-fill); }
.as-llm .llm-ex-title { font-size: 13px; font-weight: 700; color: var(--go-ink) !important; margin: 0 0 2px; }
.as-llm .llm-ex-meta { font-size: 11px; color: var(--go-ink3) !important; margin: 0 0 6px; }
.as-llm .llm-ex-text { font-size: 12.5px; line-height: 1.5; color: var(--go-ink2) !important; margin: 0; white-space: pre-wrap; }
.as-llm .llm-more { margin-top: 8px; }
.as-llm .llm-empty { font-size: 12px; color: var(--go-ink3) !important; margin: 8px 0 0; }

/* Content tab (automated social content, 2026-09-08) */
.content-job-head, .content-out-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.content-job-title { font-size: 15px; font-weight: 800; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.content-pill { font-size: 9.5px; font-weight: 900; letter-spacing: .8px; padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; }
.content-pill.is-on { color: #15803D; } .content-pill.is-off { color: rgba(140,143,148,1); }
.content-files { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 8px; }
.content-file { margin: 0; max-width: 260px; }
.content-file img { width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(128,128,128,.25); display: block; }
.content-file figcaption { font-size: 12px; opacity: .7; margin-top: 6px; }
.content-caption { display: flex; gap: 10px; align-items: flex-start; }
.content-caption textarea { flex: 1; font-size: 13px; }
.content-job code { font-size: 11px; }

/* LLM controls: explicit dimensions isolate these forms from Pico defaults. */
.admin-settings-mode #tab-llm {min-width:0}
.admin-settings-mode #tab-llm :is(button,input,select,textarea) {box-sizing:border-box;font:inherit;font-size:13px;line-height:1.4;box-shadow:none;margin:0}
.admin-settings-mode #tab-llm :is(button,select,input:not([type=checkbox])) {height:36px;min-height:36px;padding:7px 10px;border:1px solid var(--go-line);border-radius:8px;width:auto}
.admin-settings-mode #tab-llm button {display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;background:var(--go-fill);color:var(--go-ink);font-weight:700;cursor:pointer}
.admin-settings-mode #tab-llm button:disabled {opacity:.45;cursor:default}
.admin-settings-mode #tab-llm :is(select,input:not([type=checkbox]),textarea) {background-color:var(--go-card)!important;color:var(--go-ink)!important;border-color:var(--go-line)!important}
.admin-settings-mode #tab-llm select {appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");background-size:18px;background-position:right 8px center;background-repeat:no-repeat}
.admin-settings-mode #tab-llm input[type=checkbox] {appearance:auto;width:16px;height:16px;min-width:16px;padding:0;accent-color:var(--go-ink);background:none;border-radius:3px}
.admin-settings-mode #tab-llm :is(input,select,textarea,button,summary):focus-visible {outline:2px solid var(--go-ink);outline-offset:3px}
.admin-settings-mode #tab-llm .llm-card {padding:20px;margin-bottom:16px}
.admin-settings-mode #tab-llm .llm-meta {grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;margin:18px 0}
.admin-settings-mode #tab-llm .llm-meta dd {overflow-wrap:anywhere}
.admin-settings-mode #tab-llm .llm-controls {display:grid;gap:12px;align-items:end;padding-top:18px;margin-top:18px}
.admin-settings-mode #tab-llm .llm-settings-controls {grid-template-columns:minmax(180px,2fr) minmax(140px,1fr) 110px auto auto}
.admin-settings-mode #tab-llm .llm-schedule-controls {grid-template-columns:minmax(130px,1fr) 155px auto minmax(110px,1fr) minmax(110px,1fr)}
.admin-settings-mode #tab-llm .llm-schedule-controls>.llm-actions {grid-column:1/-1;justify-content:flex-end}
.admin-settings-mode #tab-llm .llm-field {min-width:0}
.admin-settings-mode #tab-llm .llm-field :is(input,select) {width:100%}
.admin-settings-mode #tab-llm .llm-field label {margin:0 0 3px}
.admin-settings-mode #tab-llm .llm-check {margin:0;min-height:36px;gap:8px;font-size:13px}
.admin-settings-mode #tab-llm .llm-badge.model {color:var(--go-ink)!important;background:var(--go-fill);border-color:var(--go-line)}
.admin-settings-mode #tab-llm .llm-prompt {margin:14px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--go-line)}
.admin-settings-mode #tab-llm :is(.llm-prompt,.llm-examples)>summary {display:flex;align-items:center;gap:10px;list-style:none;margin:0;font-size:13px;font-weight:750;text-transform:none;letter-spacing:0;color:var(--go-ink)!important}
.admin-settings-mode #tab-llm summary::-webkit-details-marker {display:none}
.admin-settings-mode #tab-llm summary::after {content:'';display:block;width:6px;height:6px;flex:none;background:none;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);margin-left:auto}
.admin-settings-mode #tab-llm details[open]>summary::after {transform:rotate(45deg)}
.admin-settings-mode #tab-llm .llm-prompt-state {font-size:11px;font-weight:600;color:var(--go-ink3)}
.admin-settings-mode #tab-llm .llm-prompt-body {padding-top:16px}
.admin-settings-mode #tab-llm .llm-prompt-body>p {font-size:13px;line-height:1.6;color:var(--go-ink2);margin:0 0 10px}
.admin-settings-mode #tab-llm .llm-prompt-body>label {display:block;font-size:12px;font-weight:700;margin:16px 0 8px}
.admin-settings-mode #tab-llm textarea {display:block;width:100%;min-height:240px;resize:vertical;padding:12px;border:1px solid var(--go-line);border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.65;margin-bottom:12px}
.admin-settings-mode #tab-llm .llm-prompt-actions {display:flex;gap:8px;margin:14px 0}
.admin-settings-mode #tab-llm .llm-prompt-status {min-height:20px}
@media(max-width:1200px){.admin-settings-mode #tab-llm .llm-settings-controls,.admin-settings-mode #tab-llm .llm-schedule-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-settings-mode #tab-llm .llm-actions{margin-left:0}}
@media(max-width:650px){.admin-settings-mode #tab-llm .llm-card{padding:14px}.admin-settings-mode #tab-llm .llm-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-settings-mode #tab-llm .llm-settings-controls,.admin-settings-mode #tab-llm .llm-schedule-controls{grid-template-columns:1fr}.admin-settings-mode #tab-llm .llm-toolbar{flex-wrap:wrap}.admin-settings-mode #tab-llm .llm-prompt-actions{flex-wrap:wrap}}
.admin-settings-mode #tab-llm :is(button,input,select,textarea) {font-size:13px!important;line-height:18px!important}
.admin-settings-mode #tab-llm :is(button,select,input:not([type=checkbox])) {padding:7px 10px!important}
.admin-settings-mode #tab-llm select {padding-right:30px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E")!important;background-size:18px!important;background-position:right 8px center!important;background-repeat:no-repeat!important}
.admin-settings-mode #tab-llm textarea {font-size:12px!important;line-height:1.65!important}
.admin-settings-mode #tab-llm .llm-prompt-body>label {color:var(--go-ink2)!important}

/* Content jobs: scoped controls and colors, independent of Pico defaults. */
.admin-settings-mode .as-sidebar .as-nav-item { width:100%; margin:0; border-radius:0; box-shadow:none; color:rgba(255,255,255,.65)!important; background:transparent!important; }
.admin-settings-mode .as-sidebar .as-nav-item.active { color:#fff!important; background:rgba(255,255,255,.07)!important; border-left-color:#fff; }
html.si-light .admin-settings-mode .as-sidebar .as-nav-item { color:rgba(16,20,24,.65)!important; }
html.si-light .admin-settings-mode .as-sidebar .as-nav-item.active { color:#101418!important; background:rgba(16,20,24,.06)!important; border-left-color:#101418; }
@media(max-width:768px) {
  .admin-settings-mode .as-sidebar { height:auto!important; min-height:0!important; }
  .admin-settings-mode .as-sidebar .as-nav-item { width:auto; flex:none; }
}

/* Content studio — shared paper/ink palette, native typography and ruled rows. */
.admin-settings-mode #tab-content { color:var(--go-ink); min-width:0; padding:0; max-width:1200px; font:14px/1.55 Inter,system-ui,sans-serif; }
.admin-settings-mode #tab-content * { box-sizing:border-box; }
.admin-settings-mode #tab-content [hidden] { display:none!important; }
.admin-settings-mode #tab-content :is(h1,h2,h3,p,figure,fieldset) { margin:0; color:var(--go-ink); }
.admin-settings-mode #tab-content :is(h1,.as-tab-title) { font-size:34px; line-height:1.18; letter-spacing:-1px; font-weight:var(--si-type-display,850); }
.admin-settings-mode #tab-content h2 { font-size:19px; line-height:1.3; font-weight:var(--si-type-heading,750); letter-spacing:-.35px; }
.admin-settings-mode #tab-content h3 { font-size:15px; font-weight:750; line-height:1.4; }
.admin-settings-mode #tab-content .go-muted { color:var(--go-ink2)!important; font-size:13px; line-height:1.65; }
.admin-settings-mode #tab-content .as-tab-subtitle { margin:9px 0 0; color:var(--go-ink2); font-size:15px; }
.admin-settings-mode #tab-content .as-tab-header-row { align-items:center; margin:0 0 25px; }
.admin-settings-mode #tab-content :is(button,.content-button) { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:auto; height:auto; min-height:34px; padding:7px 14px!important; margin:0; border:1px solid var(--go-line)!important; border-radius:999px; background:transparent!important; color:var(--go-ink)!important; box-shadow:none!important; font:650 12px/18px Inter,system-ui,sans-serif!important; text-transform:none; letter-spacing:0; cursor:pointer; }
.admin-settings-mode #tab-content button:hover { background:var(--go-fill)!important; }
.admin-settings-mode #tab-content button:disabled { opacity:.5; cursor:wait; }
.admin-settings-mode #tab-content :is(button,a,input,select,textarea,summary):focus-visible { outline:2px solid #3796cf; outline-offset:4px; box-shadow:none; }
.admin-settings-mode #tab-content button.content-primary { background:var(--go-ink)!important; border-color:var(--go-ink)!important; color:#101418!important; }
html.si-light .admin-settings-mode #tab-content button.content-primary { color:#fff!important; }
.admin-settings-mode #tab-content .content-chevron { flex-shrink:0; color:var(--go-ink2); transition:transform .15s; }
.admin-settings-mode #tab-content details { padding:0; margin:0; border:0; border-radius:0; background:none; box-shadow:none; }
.admin-settings-mode #tab-content summary { list-style:none; display:flex; align-items:center; gap:12px; padding:19px 0; margin:0!important; color:var(--go-ink)!important; font:650 14px/1.4 Inter,system-ui,sans-serif; cursor:pointer; border:0; border-radius:0; background:none; }
.admin-settings-mode #tab-content summary::-webkit-details-marker { display:none; }
.admin-settings-mode #tab-content summary::after { display:none; }
.admin-settings-mode #tab-content details[open]>summary>.content-chevron { transform:rotate(90deg); }
.admin-settings-mode #tab-content .content-summary { display:flex; align-items:center; flex-wrap:wrap; gap:12px 22px; padding:0 0 28px; color:var(--go-ink2); font-size:12px; }
.admin-settings-mode #tab-content .content-summary-time { margin-left:auto; }
.admin-settings-mode #tab-content .content-pill { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--go-line); border-radius:999px; padding:3px 9px; color:var(--go-ink2); font-size:11px; line-height:18px; font-weight:650; white-space:nowrap; }
.admin-settings-mode #tab-content .content-pill i { display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--go-ink3); }
.admin-settings-mode #tab-content .content-pill.is-on i { background:#42a97f; }
.admin-settings-mode #tab-content .content-section-label { display:flex; align-items:center; gap:12px; margin:12px 0 13px; }
.admin-settings-mode #tab-content .content-section-label h2 { font:750 11px/1.4 Inter,sans-serif; letter-spacing:1.1px; text-transform:uppercase; }
.admin-settings-mode #tab-content .content-section-label>span { color:var(--go-ink2); font-size:11px; margin-left:auto; }
.admin-settings-mode #tab-content .content-week { border-top:1px solid var(--go-line); }
.admin-settings-mode #tab-content .content-day { border-bottom:1px solid var(--go-line); }
.admin-settings-mode #tab-content .content-day>summary { padding:21px 2px; min-height:70px; gap:18px; }
.admin-settings-mode #tab-content .content-day>summary:hover { background:var(--go-fill); }
.admin-settings-mode #tab-content .content-day-number { width:28px; color:var(--go-ink3); font-size:11px; font-weight:500; font-variant-numeric:tabular-nums; }
.admin-settings-mode #tab-content .content-day-title { font-size:17px; font-weight:750; letter-spacing:-.3px; }
.admin-settings-mode #tab-content .content-today { border-radius:4px; padding:2px 6px; font-size:10px; font-weight:650; background:var(--go-fill); color:var(--go-ink2); }
.admin-settings-mode #tab-content .content-day-count { margin-left:auto; font-size:12px; color:var(--go-ink2); font-weight:500; }
.admin-settings-mode #tab-content .content-day-posts { padding:0 0 12px 48px; }
.admin-settings-mode #tab-content .content-scheduled-post { display:grid; grid-template-columns:80px minmax(0,1fr) auto 16px; gap:16px; align-items:center; padding:17px 8px 17px 0; border-top:1px solid var(--go-line); border-radius:0; background:none; color:var(--go-ink); text-decoration:none; }
.admin-settings-mode #tab-content .content-scheduled-post:hover { background:var(--go-fill); }
.admin-settings-mode #tab-content .content-scheduled-post time { font-size:12px; color:var(--go-ink2); font-variant-numeric:tabular-nums; }
.admin-settings-mode #tab-content .content-post-title { min-width:0; display:grid; gap:4px; }
.admin-settings-mode #tab-content .content-post-title strong { font-size:14px; font-weight:700; line-height:1.4; }
.admin-settings-mode #tab-content .content-post-title small { color:var(--go-ink2); font-size:11px; line-height:1.45; }
.admin-settings-mode #tab-content .content-post-action { color:var(--go-ink2); font-size:11px; }
.admin-settings-mode #tab-content .content-calendar-note { color:var(--go-ink2); font-size:11px; line-height:1.7; padding:18px 0 30px; }
.admin-settings-mode #tab-content .content-section { border-top:1px solid var(--go-line); }
.admin-settings-mode #tab-content .content-section:last-child { border-bottom:1px solid var(--go-line); }
.admin-settings-mode #tab-content .content-section>summary>small { margin-left:auto; color:var(--go-ink2); font-size:11px; font-weight:400; }
.admin-settings-mode #tab-content .content-preferences-body { display:grid; grid-template-columns:1fr 1fr; gap:24px 50px; padding:12px 0 27px; margin:0; }
.admin-settings-mode #tab-content .content-preferences-body h3 { margin:0 0 8px; }
.admin-settings-mode #tab-content .content-time-fields { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.admin-settings-mode #tab-content .content-preferences-body>.content-form-actions { grid-column:1/-1; margin:0; }
.admin-settings-mode #tab-content .content-daily-delivery { display:grid; grid-template-columns:1fr auto; gap:7px 20px; border-top:1px solid var(--go-line); padding:17px 0; }
.admin-settings-mode #tab-content .content-daily-delivery>div { display:grid; gap:3px; }
.admin-settings-mode #tab-content .content-daily-delivery strong { font-size:13px; font-weight:650; }
.admin-settings-mode #tab-content .content-daily-delivery :is(span,p) { font-size:11px; color:var(--go-ink2); }
.admin-settings-mode #tab-content .content-daily-delivery p { grid-column:1/-1; overflow-wrap:anywhere; }
.admin-settings-mode #tab-content .content-delivery-state { text-transform:capitalize; }
.admin-settings-mode #tab-content .content-delivery-state[data-state=sent] { color:#358563; }
.admin-settings-mode #tab-content .content-other { border-top:1px solid var(--go-line); padding:22px 0; }
.admin-settings-mode #tab-content .content-other a { display:flex; justify-content:space-between; color:var(--go-ink); padding:12px 0; }
.admin-settings-mode #tab-content .content-back { display:inline-flex; gap:9px; align-items:center; text-decoration:none; color:var(--go-ink2); font-size:12px; margin-bottom:28px; }
.admin-settings-mode #tab-content .content-back:hover { color:var(--go-ink); }
.admin-settings-mode #tab-content .content-detail-head { display:flex; justify-content:space-between; align-items:center; gap:28px; }
.admin-settings-mode #tab-content .content-detail-head>div { max-width:760px; }
.admin-settings-mode #tab-content .content-detail-head>.content-run { flex-shrink:0; }
.admin-settings-mode #tab-content .content-detail-head .go-muted { margin-top:14px; max-width:680px; }
.admin-settings-mode #tab-content .content-eyebrow { font-size:10px; letter-spacing:1.25px; text-transform:uppercase; color:var(--go-ink2); margin-bottom:10px; }
.admin-settings-mode #tab-content .content-detail-meta { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; font-size:11px; color:var(--go-ink2); margin:23px 0; }
.admin-settings-mode #tab-content .content-edition { color:var(--go-ink); font-weight:650; }
.admin-settings-mode #tab-content .content-detail-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid var(--go-line); margin:28px 0 13px; }
.admin-settings-mode #tab-content [role=tablist] { display:flex; gap:24px; }
.admin-settings-mode #tab-content button[role=tab] { background:none!important; border:0!important; border-bottom:2px solid transparent!important; border-radius:0; padding:12px 0!important; font-weight:600!important; color:var(--go-ink2)!important; }
.admin-settings-mode #tab-content button[role=tab][aria-selected=true] { border-bottom-color:var(--go-ink)!important; color:var(--go-ink)!important; }
.admin-settings-mode #tab-content .content-toolbar-note { font-size:10px; color:var(--go-ink2); text-align:right; }
.admin-settings-mode #tab-content .content-job-message { font-size:11px; color:var(--go-ink2); line-height:1.6; margin-bottom:28px; }
.admin-settings-mode #tab-content .content-history-workspace { display:grid; grid-template-columns:minmax(210px,260px) minmax(0,1fr); gap:32px; }
.admin-settings-mode #tab-content .content-history-list { min-width:0; }
.admin-settings-mode #tab-content #contentHistory { max-height:580px; overflow:auto; }
.admin-settings-mode #tab-content .content-history-list .content-section-label { margin-top:0; padding-bottom:8px; }
.admin-settings-mode #tab-content button.content-history-row { display:flex; align-items:center; justify-content:flex-start; gap:12px; padding:14px 8px!important; width:100%; border:0!important; border-top:1px solid var(--go-line)!important; border-radius:0; background:transparent!important; text-align:left; }
.admin-settings-mode #tab-content button.content-history-row:is(:hover,.is-selected) { background:var(--go-fill)!important; }
.admin-settings-mode #tab-content .content-history-row>img,.admin-settings-mode #tab-content .content-history-placeholder { width:42px; height:53px; object-fit:cover; border-radius:3px; flex-shrink:0; }
.admin-settings-mode #tab-content .content-history-row>span:not(.content-history-placeholder) { display:grid; gap:4px; flex:1; min-width:0; }
.admin-settings-mode #tab-content .content-history-row strong { font-size:12px; line-height:1.5; font-weight:650; }
.admin-settings-mode #tab-content .content-history-row small { color:var(--go-ink2); font-size:10px; font-weight:400; line-height:1.5; }
.admin-settings-mode #tab-content #contentHistoryMore { margin-top:20px; }
.admin-settings-mode #tab-content #contentOutputPreview { min-width:0; scroll-margin-top:85px; }
.admin-settings-mode #tab-content .content-output { border-left:1px solid var(--go-line); padding-left:30px; }
.admin-settings-mode #tab-content .content-out-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.admin-settings-mode #tab-content .content-out-head h3 { font-size:15px; }
.admin-settings-mode #tab-content .content-out-head .go-muted { margin-top:4px; font-size:11px; }
.admin-settings-mode #tab-content .content-files { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; margin:24px 0; }
.admin-settings-mode #tab-content .content-file { min-width:0; max-width:none; }
.admin-settings-mode #tab-content .content-file:only-child { grid-column:1/-1; }
.admin-settings-mode #tab-content .content-file img { width:100%; height:auto; border:1px solid var(--go-line); border-radius:4px; display:block; }
.admin-settings-mode #tab-content .content-file figcaption { margin:9px 0 0; opacity:1; color:var(--go-ink2); font-size:10px; line-height:1.6; text-transform:capitalize; }
.admin-settings-mode #tab-content .content-file figcaption a { display:block; font-size:11px; margin-top:4px; text-decoration:none; color:var(--go-ink); }
.admin-settings-mode #tab-content .content-headline-editor { margin:28px 0; padding:25px 0; border-top:1px solid var(--go-line); border-bottom:1px solid var(--go-line); }
.admin-settings-mode #tab-content .content-headline-editor .content-field { font-size:14px; font-weight:750; margin-top:0; }
.admin-settings-mode #tab-content .content-headline-editor textarea { min-height:96px; }
.admin-settings-mode #tab-content .content-headline-editor p+p { margin-top:8px; }
.admin-settings-mode #tab-content .content-headlines { padding:0 0 22px; border-bottom:1px solid var(--go-line); }
.admin-settings-mode #tab-content .content-headlines h3 { margin-bottom:10px; }
.admin-settings-mode #tab-content .content-headline-option { margin:20px 0 0; }
.admin-settings-mode #tab-content .content-headline-option ul { margin:10px 0 0; padding-left:18px; font-size:12px; }
.admin-settings-mode #tab-content .content-headline-option a { color:var(--go-ink2); text-underline-offset:3px; }
.admin-settings-mode #tab-content .content-caption { display:flex; align-items:flex-start; gap:10px; margin-top:22px; }
.admin-settings-mode #tab-content .content-caption label { flex:1; min-width:0; font-size:12px; font-weight:650; }
.admin-settings-mode #tab-content .content-caption button { margin-top:26px; font-size:10px!important; padding:6px 9px!important; }
.admin-settings-mode #tab-content :is(input:not([type=checkbox]),select,textarea) { box-sizing:border-box; width:100%; min-height:40px; height:auto; padding:9px 11px!important; margin:7px 0 0; border:1px solid var(--go-line)!important; border-radius:7px; color:var(--go-ink)!important; background-color:transparent!important; box-shadow:none!important; font:400 13px/20px Inter,system-ui,sans-serif!important; }
.admin-settings-mode #tab-content textarea { resize:vertical; }
.admin-settings-mode #tab-content select { padding-right:28px!important; }
.admin-settings-mode #tab-content select option { color:#101418; background:#eceef1; }
.admin-settings-mode #tab-content :is(label,legend) { color:var(--go-ink2)!important; }
.admin-settings-mode #tab-content .content-field { display:block; margin:16px 0; font-size:12px; font-weight:600; }
.admin-settings-mode #tab-content fieldset { border:0; padding:0; margin:24px 0; }
.admin-settings-mode #tab-content legend { font-size:12px; font-weight:600; padding:0; margin:0 0 8px; }
.admin-settings-mode #tab-content .content-check { display:flex; align-items:center; gap:9px; font-size:12px; margin:14px 0; font-weight:500; }
.admin-settings-mode #tab-content input[type=checkbox] { appearance:auto; width:15px; height:15px; min-width:15px; padding:0; margin:0; accent-color:var(--go-ink); }
.admin-settings-mode #tab-content .content-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-top:20px; font-size:12px; color:var(--go-ink2); }
.admin-settings-mode #tab-content .content-note { font-size:11px; line-height:1.7; color:var(--go-ink2); }
.admin-settings-mode #tab-content .content-settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:70px; padding:8px 0 40px; }
.admin-settings-mode #tab-content .content-settings-section>h2 { margin-bottom:9px; }
.admin-settings-mode #tab-content .content-format-choices { display:flex; flex-wrap:wrap; gap:0 20px; }
.admin-settings-mode #tab-content .content-fields { display:grid; grid-template-columns:2fr 1fr; gap:15px; }
.admin-settings-mode #tab-content .content-editions { margin:21px 0; }
.admin-settings-mode #tab-content .content-editions>div { border-bottom:1px solid var(--go-line); padding:13px 0; }
.admin-settings-mode #tab-content .content-editions strong { display:flex; justify-content:space-between; font-size:13px; font-weight:650; }
.admin-settings-mode #tab-content .content-editions strong span { font-size:12px; font-weight:400; color:var(--go-ink2); }
.admin-settings-mode #tab-content .content-editions small { font-size:11px; color:var(--go-ink2); }
.admin-settings-mode #tab-content .content-text-link { font-size:12px; color:var(--go-ink); text-underline-offset:4px; }
.admin-settings-mode #tab-content .content-legacy-schedule { margin-top:30px; padding-top:24px; border-top:1px solid var(--go-line); }
.admin-settings-mode #tab-content .content-empty { font-size:13px; color:var(--go-ink2); padding:25px 0; }
.admin-settings-mode #tab-content .content-empty-preview { padding:65px 35px; border:1px dashed var(--go-line); text-align:center; }
.admin-settings-mode #tab-content .content-empty-preview span { font-size:17px; font-weight:700; }
.admin-settings-mode #tab-content .content-empty-preview p { font-size:13px; color:var(--go-ink2); max-width:330px; margin:10px auto 0; }
.admin-settings-mode #tab-content #contentStatus { margin-top:16px; font-size:13px; color:var(--go-ink2); }
@media(max-width:1100px) {
  .admin-settings-mode #tab-content .content-history-workspace { grid-template-columns:205px minmax(0,1fr); gap:20px; }
  .admin-settings-mode #tab-content .content-output { padding-left:20px; }
  .admin-settings-mode #tab-content .content-toolbar-note { display:none; }
  .admin-settings-mode #tab-content .content-caption { display:block; }
  .admin-settings-mode #tab-content .content-caption button { margin-top:8px; }
}
@media(max-width:850px) {
  .admin-settings-mode #tab-content .content-history-workspace { grid-template-columns:1fr; gap:30px; }
  .admin-settings-mode #tab-content #contentHistory { max-height:220px; }
  .admin-settings-mode #tab-content .content-output { padding:25px 0 0; border-left:0; border-top:1px solid var(--go-line); }
  .admin-settings-mode #tab-content .content-settings-grid { gap:35px; }
}
@media(max-width:600px) {
  .admin-settings-mode #tab-content :is(h1,.as-tab-title) { font-size:29px; }
  .admin-settings-mode #tab-content .as-tab-header-row { gap:16px; }
  .admin-settings-mode #tab-content .content-summary { gap:10px 15px; }
  .admin-settings-mode #tab-content .content-summary-time { width:100%; margin:0; }
  .admin-settings-mode #tab-content .content-section-label>span { display:none; }
  .admin-settings-mode #tab-content .content-day>summary { gap:10px; padding:20px 0; }
  .admin-settings-mode #tab-content .content-day-number { width:22px; }
  .admin-settings-mode #tab-content .content-day-posts { padding-left:0; }
  .admin-settings-mode #tab-content .content-scheduled-post { grid-template-columns:58px minmax(0,1fr) 16px; gap:10px; padding:16px 0; }
  .admin-settings-mode #tab-content .content-post-action { display:none; }
  .admin-settings-mode #tab-content .content-section>summary>small { display:none; }
  .admin-settings-mode #tab-content .content-section>summary>.content-chevron { margin-left:auto; }
  .admin-settings-mode #tab-content .content-preferences-body,.admin-settings-mode #tab-content .content-settings-grid { grid-template-columns:1fr; gap:24px; }
  .admin-settings-mode #tab-content .content-detail-head { flex-direction:column; align-items:flex-start; gap:20px; }
  .admin-settings-mode #tab-content .content-files { gap:12px; }
  .admin-settings-mode #tab-content .content-out-head { flex-direction:column; gap:12px; }
  .admin-settings-mode #tab-content .content-fields { grid-template-columns:1fr; gap:0; }
}
@media(prefers-reduced-motion:reduce) { .admin-settings-mode #tab-content .content-chevron { transition:none; } }
