/* PersonalOS 17 — Editorial / Archival Index (Phase 5/10)
   Shared structure and SVG icon system are intentionally preserved. */
:root[data-ui-style="editorial"] {
  color-scheme: light;
  --p16-editorial-paper: #f3eee3;
  --p16-editorial-paper-2: #fbf8f1;
  --p16-editorial-ink: #292820;
  --p16-editorial-muted: #777365;
  --p16-editorial-rule: #d8d0c1;
  --p16-editorial-accent: #8b4d35;
  --p16-editorial-green: #596b57;
  --p16-editorial-shadow: 0 12px 30px rgba(55, 47, 34, .07);
  background: var(--p16-editorial-paper);
  color: var(--p16-editorial-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-ui-style="editorial"] body { background: var(--p16-editorial-paper); color: var(--p16-editorial-ink); }
:root[data-ui-style="editorial"] .app-frame,
:root[data-ui-style="editorial"] .main-content { background: transparent; }
:root[data-ui-style="editorial"] .sidebar { background: #eae3d6; border-right: 1px solid var(--p16-editorial-rule); box-shadow: none; }
:root[data-ui-style="editorial"] .topbar { background: rgba(251,248,241,.94); border-bottom: 1px solid var(--p16-editorial-rule); box-shadow: none; backdrop-filter: blur(12px); }
:root[data-ui-style="editorial"] .topbar-title,
:root[data-ui-style="editorial"] .page-title,
:root[data-ui-style="editorial"] .page-header h1,
:root[data-ui-style="editorial"] .surface-card-header h2,
:root[data-ui-style="editorial"] .modal-title,
:root[data-ui-style="editorial"] h1.editorial-title { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; font-weight: 500; }
:root[data-ui-style="editorial"] .topbar-title { font-size: 1.35rem; }
:root[data-ui-style="editorial"] .eyebrow,
:root[data-ui-style="editorial"] .page-kicker,
:root[data-ui-style="editorial"] .section-kicker,
:root[data-ui-style="editorial"] .pos16-section-eyebrow { color: var(--p16-editorial-accent); letter-spacing: .14em; font-size: .68rem; font-weight: 750; }
:root[data-ui-style="editorial"] .surface-card,
:root[data-ui-style="editorial"] .stat-card,
:root[data-ui-style="editorial"] .dashboard-card,
:root[data-ui-style="editorial"] .widget-card,
:root[data-ui-style="editorial"] .pos16-theme-panel,
:root[data-ui-style="editorial"] .modal-content,
:root[data-ui-style="editorial"] .dialog,
:root[data-ui-style="editorial"] .calendar-panel,
:root[data-ui-style="editorial"] .photo-card,
:root[data-ui-style="editorial"] .document-card {
  background: var(--p16-editorial-paper-2);
  color: var(--p16-editorial-ink);
  border: 1px solid var(--p16-editorial-rule);
  border-radius: 8px;
  box-shadow: var(--p16-editorial-shadow);
}
:root[data-ui-style="editorial"] .surface-card-header,
:root[data-ui-style="editorial"] .card-header,
:root[data-ui-style="editorial"] .table thead,
:root[data-ui-style="editorial"] .data-table thead { border-bottom: 1px solid var(--p16-editorial-rule); }
:root[data-ui-style="editorial"] .sidebar .nav-item,
:root[data-ui-style="editorial"] .sidebar button,
:root[data-ui-style="editorial"] .topbar button { border-radius: 6px; }
:root[data-ui-style="editorial"] .sidebar .nav-item.active,
:root[data-ui-style="editorial"] .sidebar .nav-item[aria-current="page"] { background: #ded5c5; color: var(--p16-editorial-ink); box-shadow: inset 3px 0 var(--p16-editorial-accent); }
:root[data-ui-style="editorial"] button.primary-button,
:root[data-ui-style="editorial"] .primary-button,
:root[data-ui-style="editorial"] button.btn-primary { background: var(--p16-editorial-ink); color: #fffaf0; border: 1px solid var(--p16-editorial-ink); border-radius: 5px; box-shadow: none; }
:root[data-ui-style="editorial"] button.primary-button:hover,
:root[data-ui-style="editorial"] .primary-button:hover { background: var(--p16-editorial-accent); border-color: var(--p16-editorial-accent); }
:root[data-ui-style="editorial"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
:root[data-ui-style="editorial"] select,
:root[data-ui-style="editorial"] textarea { background: #fffdf8; color: var(--p16-editorial-ink); border: 1px solid #cfc6b6; border-radius: 5px; }
:root[data-ui-style="editorial"] input:focus-visible,
:root[data-ui-style="editorial"] select:focus-visible,
:root[data-ui-style="editorial"] textarea:focus-visible,
:root[data-ui-style="editorial"] button:focus-visible,
:root[data-ui-style="editorial"] a:focus-visible { outline: 3px solid rgba(139,77,53,.35); outline-offset: 2px; }
:root[data-ui-style="editorial"] table,
:root[data-ui-style="editorial"] .data-table { border-color: var(--p16-editorial-rule); }
:root[data-ui-style="editorial"] th { background: #eae3d6; color: #514b3f; font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
:root[data-ui-style="editorial"] td { border-color: #e5ded1; }
:root[data-ui-style="editorial"] .badge,
:root[data-ui-style="editorial"] .chip,
:root[data-ui-style="editorial"] .tag { border-radius: 999px; background: #e9e2d5; color: #514b3f; border: 1px solid #d8d0c1; }
:root[data-ui-style="editorial"] .mobile-bottom-nav { background: rgba(251,248,241,.97); border-top: 1px solid var(--p16-editorial-rule); box-shadow: 0 -8px 24px rgba(55,47,34,.06); }
:root[data-ui-style="editorial"] .mobile-bottom-nav button[aria-current="page"],
:root[data-ui-style="editorial"] .mobile-bottom-nav button.active { color: var(--p16-editorial-accent); }
:root[data-ui-style="editorial"] .app-footer { color: var(--p16-editorial-muted); border-top: 1px solid var(--p16-editorial-rule); }
:root[data-ui-style="editorial"] .pos16-theme-card { background: #fffdf8; border-color: var(--p16-editorial-rule); border-radius: 7px; }
:root[data-ui-style="editorial"] .pos16-theme-card.is-selected { border-color: var(--p16-editorial-accent); box-shadow: 0 0 0 2px rgba(139,77,53,.12); }
:root[data-ui-style="editorial"] .pos16-preview-editorial .pos16-preview-rail { background: #e7dfd1; }
:root[data-ui-style="editorial"] .pos16-preview-editorial .pos16-preview-tile { background: #c9bba5; border-radius: 2px; }
:root[data-ui-style="editorial"] .pos16-preview-editorial .pos16-preview-tile-a { background: #8b4d35; }
:root[data-ui-style="editorial"] .pos16-preview-editorial .pos16-preview-tile-b { background: #596b57; }
:root[data-ui-style="editorial"] .toast-region .toast { background: #292820; color: #fffaf0; border: 1px solid #5e594d; }
:root[data-ui-style="editorial"] .pos-icon { stroke-width: 1.8; }
@media (max-width: 820px) {
  :root[data-ui-style="editorial"] .sidebar { background: var(--p16-editorial-paper); }
  :root[data-ui-style="editorial"] .main-content { padding-left: 14px; padding-right: 14px; }
  :root[data-ui-style="editorial"] .surface-card { border-radius: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-ui-style="editorial"] *, :root[data-ui-style="editorial"] *::before, :root[data-ui-style="editorial"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
