/* PersonalOS 17 — Retro-futurism · Frutiger Aero (Phase 8/10)
   Aquatic glass, luminous cyan gradients and soft organic highlights.
   Scoped exclusively to this theme; no application behavior or data model changes. */
:root[data-ui-style="retro-futurism"] {
  color-scheme: light;
  --p16-aero-bg: #dff5f7;
  --p16-aero-surface: rgba(255,255,255,.78);
  --p16-aero-ink: #153b50;
  --p16-aero-muted: #5d7f8e;
  --p16-aero-cyan: #00a9c7;
  --p16-aero-blue: #168bd0;
  --p16-aero-green: #55bd9a;
  --p16-aero-line: rgba(255,255,255,.9);
  --p16-aero-shadow: 0 14px 34px rgba(21,113,143,.14), 0 3px 10px rgba(22,139,208,.08), inset 0 1px 0 rgba(255,255,255,.96);
  background: var(--p16-aero-bg);
  color: var(--p16-aero-ink);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
:root[data-ui-style="retro-futurism"] body,
:root[data-ui-style="retro-futurism"] .app-frame,
:root[data-ui-style="retro-futurism"] .main-content {
  color: var(--p16-aero-ink);
  background: radial-gradient(ellipse at 12% 4%, rgba(255,255,255,.98) 0, rgba(255,255,255,0) 30%), radial-gradient(ellipse at 92% 18%, rgba(111,225,218,.26) 0, transparent 32%), linear-gradient(145deg,#eafaff 0%,#d8f0f5 48%,#e7f8ef 100%);
}
:root[data-ui-style="retro-futurism"] .sidebar {
  color: #17445a;
  background: linear-gradient(165deg,rgba(255,255,255,.94),rgba(210,242,246,.92) 62%,rgba(215,245,232,.9));
  border-right: 1px solid rgba(255,255,255,.9);
  box-shadow: 8px 0 28px rgba(16,117,148,.1);
}
:root[data-ui-style="retro-futurism"] .topbar {
  color: var(--p16-aero-ink);
  background: rgba(245,253,255,.78);
  border-bottom: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 24px rgba(22,126,157,.09);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
:root[data-ui-style="retro-futurism"] :is(.surface-card,.stat-card,.dashboard-card,.widget-card,.modal-content,.dropdown-menu,.pos16-theme-panel,.calendar-panel,.photo-card,.document-card) {
  color: var(--p16-aero-ink);
  background: linear-gradient(145deg,rgba(255,255,255,.91),rgba(225,247,250,.78));
  border: 1px solid var(--p16-aero-line);
  border-radius: 19px;
  box-shadow: var(--p16-aero-shadow);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
:root[data-ui-style="retro-futurism"] :is(.surface-card,.stat-card,.dashboard-card,.widget-card):hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 38px rgba(21,113,143,.17), inset 0 1px 0 #fff;
}
:root[data-ui-style="retro-futurism"] :is(.surface-card-header,.card-header) { border-bottom-color: rgba(25,145,170,.14); }
:root[data-ui-style="retro-futurism"] :is(h1,h2,h3,.page-title,.page-header h1,.topbar-title) { color: #12445d; letter-spacing: -.025em; }
:root[data-ui-style="retro-futurism"] :is(.eyebrow,.page-kicker,.section-kicker,.pos16-section-eyebrow) { color: #078eaa; letter-spacing: .11em; }
:root[data-ui-style="retro-futurism"] .sidebar .nav-item,
:root[data-ui-style="retro-futurism"] :is(.sidebar button,.topbar button,.icon-button) { border-radius: 13px; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
:root[data-ui-style="retro-futurism"] .sidebar .nav-item.active,
:root[data-ui-style="retro-futurism"] .sidebar .nav-item[aria-current="page"] {
  color: #006d8a;
  background: linear-gradient(120deg,rgba(255,255,255,.98),rgba(183,239,244,.82));
  box-shadow: 0 5px 13px rgba(0,143,174,.13), inset 0 1px 0 #fff;
  border: 1px solid rgba(255,255,255,.92);
}
:root[data-ui-style="retro-futurism"] :is(button.primary-button,.primary-button,button.btn-primary) {
  color: #fff;
  background: linear-gradient(115deg,#14b9c9 0%,#168fd0 56%,#387fca 100%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(0,147,185,.23), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
:root[data-ui-style="retro-futurism"] :is(button.primary-button,.primary-button,button.btn-primary):hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,147,185,.25), inset 0 1px 0 rgba(255,255,255,.5); }
:root[data-ui-style="retro-futurism"] :is(button.primary-button,.primary-button,button.btn-primary):active { transform: translateY(1px); }
:root[data-ui-style="retro-futurism"] :is(button,.btn,.icon-button):not(.primary-button):not(.btn-primary):not(.nav-item) { border-radius: 12px; }
:root[data-ui-style="retro-futurism"] :is(input,select,textarea,.form-control) {
  color: var(--p16-aero-ink);
  background: rgba(250,255,255,.88);
  border: 1px solid rgba(255,255,255,.98);
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(20,119,148,.08), 0 1px 0 rgba(255,255,255,.9);
}
:root[data-ui-style="retro-futurism"] :is(input,select,textarea,.form-control):focus { outline: 2px solid rgba(0,169,199,.35); outline-offset: 2px; }
:root[data-ui-style="retro-futurism"] :is(.badge,.status-badge,.chip,.tag) { border: 1px solid rgba(255,255,255,.92); border-radius: 999px; box-shadow: 0 3px 8px rgba(21,113,143,.08), inset 0 1px 0 #fff; }
:root[data-ui-style="retro-futurism"] :is(.table,.data-table) { color: var(--p16-aero-ink); }
:root[data-ui-style="retro-futurism"] :is(.table thead,.data-table thead) { background: linear-gradient(110deg,rgba(190,241,245,.7),rgba(227,250,241,.75)); }
:root[data-ui-style="retro-futurism"] :is(.table th,.table td,.data-table th,.data-table td) { border-color: rgba(37,145,166,.14); }
:root[data-ui-style="retro-futurism"] .pos16-theme-card { background: linear-gradient(145deg,rgba(255,255,255,.95),rgba(216,245,248,.9)); border: 1px solid rgba(255,255,255,.95); border-radius: 17px; box-shadow: 0 8px 20px rgba(21,113,143,.11), inset 0 1px 0 #fff; transition: transform .2s ease, box-shadow .2s ease; }
:root[data-ui-style="retro-futurism"] .pos16-theme-card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(21,113,143,.16), inset 0 1px 0 #fff; }
:root[data-ui-style="retro-futurism"] .pos16-theme-card.is-selected { outline: 2px solid var(--p16-aero-cyan); outline-offset: 2px; }
:root[data-ui-style="retro-futurism"] .pos16-preview-retro-futurism { background: radial-gradient(circle at 78% 18%,#fff 0 8%,transparent 9%),linear-gradient(145deg,#dffbff,#a7e8ee 55%,#b5efd9); border-radius: 9px; box-shadow: inset 0 1px 0 #fff,0 3px 8px rgba(0,130,160,.16); }
:root[data-ui-style="retro-futurism"] .pos16-preview-retro-futurism .pos16-preview-rail { background: linear-gradient(180deg,#fff,#bdebf0); border-radius: 5px; box-shadow: 2px 3px 5px rgba(0,130,160,.16),inset 0 1px 0 #fff; }
:root[data-ui-style="retro-futurism"] .pos16-preview-retro-futurism .pos16-preview-tile { background: linear-gradient(145deg,#fff,#a9e4ec); border-radius: 5px; box-shadow: 2px 3px 5px rgba(0,130,160,.17),inset 0 1px 0 #fff; }
:root[data-ui-style="retro-futurism"] :is(button,a,[role="button"]) { -webkit-tap-highlight-color: transparent; }
:root[data-ui-style="retro-futurism"] :is(button,a,[role="button"]):focus-visible { outline: 2px solid var(--p16-aero-cyan); outline-offset: 3px; }
@media (max-width: 760px) {
  :root[data-ui-style="retro-futurism"] :is(.surface-card,.stat-card,.dashboard-card,.widget-card,.pos16-theme-panel) { border-radius: 15px; box-shadow: 0 7px 18px rgba(21,113,143,.11), inset 0 1px 0 #fff; }
  :root[data-ui-style="retro-futurism"] :is(.surface-card,.stat-card,.dashboard-card,.widget-card):hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-ui-style="retro-futurism"] *, :root[data-ui-style="retro-futurism"] *::before, :root[data-ui-style="retro-futurism"] *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
