/* PersonalOS 17 — Soft Tactile / Neumorphism (Phase 6/10)
   A restrained tactile surface system. All rules are scoped to this theme.
   Shared components, SVG icon set, layout and application behavior are unchanged. */
:root[data-ui-style="soft-tactile"] {
  color-scheme: light;
  --p16-soft-bg: #e9edf3;
  --p16-soft-surface: #e9edf3;
  --p16-soft-raised: #edf1f7;
  --p16-soft-text: #354052;
  --p16-soft-muted: #788397;
  --p16-soft-accent: #526f9d;
  --p16-soft-accent-2: #6f8cba;
  --p16-soft-border: rgba(255,255,255,.72);
  --p16-soft-shadow: 9px 9px 20px rgba(163,174,190,.42), -9px -9px 20px rgba(255,255,255,.82);
  --p16-soft-shadow-sm: 4px 4px 10px rgba(163,174,190,.38), -4px -4px 10px rgba(255,255,255,.78);
  --p16-soft-inset: inset 4px 4px 9px rgba(163,174,190,.34), inset -4px -4px 9px rgba(255,255,255,.82);
  background: var(--p16-soft-bg);
  color: var(--p16-soft-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-ui-style="soft-tactile"] body,
:root[data-ui-style="soft-tactile"] .app-frame,
:root[data-ui-style="soft-tactile"] .main-content { background: var(--p16-soft-bg); color: var(--p16-soft-text); }
:root[data-ui-style="soft-tactile"] .sidebar { background: var(--p16-soft-bg); border-right: 1px solid rgba(255,255,255,.55); box-shadow: 5px 0 18px rgba(163,174,190,.16); }
:root[data-ui-style="soft-tactile"] .topbar { background: rgba(233,237,243,.88); border-bottom: 1px solid rgba(255,255,255,.7); box-shadow: 0 5px 16px rgba(163,174,190,.2); backdrop-filter: blur(14px); }
:root[data-ui-style="soft-tactile"] :is(.page-title,.page-header h1,.topbar-title,.surface-card-header h2,.modal-title) { color: #303c50; letter-spacing: -.025em; font-weight: 680; }
:root[data-ui-style="soft-tactile"] :is(.eyebrow,.page-kicker,.section-kicker,.pos16-section-eyebrow) { color: var(--p16-soft-accent); letter-spacing: .12em; font-weight: 750; }
:root[data-ui-style="soft-tactile"] :is(.surface-card,.stat-card,.dashboard-card,.widget-card,.pos16-theme-panel,.modal-content,.dialog,.calendar-panel,.photo-card,.document-card) {
  background: var(--p16-soft-surface); color: var(--p16-soft-text); border: 1px solid var(--p16-soft-border); border-radius: 18px; box-shadow: var(--p16-soft-shadow);
}
:root[data-ui-style="soft-tactile"] :is(.surface-card-header,.card-header) { border-bottom: 1px solid rgba(255,255,255,.68); }
:root[data-ui-style="soft-tactile"] :is(.sidebar .nav-item,.sidebar button,.topbar button,.icon-button) { border-radius: 12px; transition: box-shadow .18s ease, transform .18s ease, background .18s ease; }
:root[data-ui-style="soft-tactile"] .sidebar .nav-item.active,
:root[data-ui-style="soft-tactile"] .sidebar .nav-item[aria-current="page"] { background: var(--p16-soft-bg); color: var(--p16-soft-accent); box-shadow: var(--p16-soft-inset); }
:root[data-ui-style="soft-tactile"] :is(button.primary-button,.primary-button,button.btn-primary) { color: #fff; background: linear-gradient(145deg,#6f8cba,#4d6995); border: 1px solid rgba(255,255,255,.42); border-radius: 12px; box-shadow: 5px 5px 11px rgba(137,153,178,.42), -4px -4px 10px rgba(255,255,255,.72); }
:root[data-ui-style="soft-tactile"] :is(button,.btn,.icon-button):not(.primary-button):not(.btn-primary):not(.nav-item) { border-radius: 11px; }
:root[data-ui-style="soft-tactile"] :is(input,select,textarea,.form-control) { color: var(--p16-soft-text); background: #e6eaf1; border: 1px solid rgba(255,255,255,.78); border-radius: 11px; box-shadow: var(--p16-soft-inset); }
:root[data-ui-style="soft-tactile"] :is(input,select,textarea,.form-control):focus { outline: 2px solid rgba(82,111,157,.34); outline-offset: 2px; box-shadow: inset 2px 2px 5px rgba(163,174,190,.25), inset -2px -2px 5px rgba(255,255,255,.75); }
:root[data-ui-style="soft-tactile"] :is(.badge,.status-badge,.chip,.tag) { border: 1px solid rgba(255,255,255,.7); border-radius: 999px; box-shadow: 2px 2px 5px rgba(163,174,190,.22), -2px -2px 5px rgba(255,255,255,.55); }
:root[data-ui-style="soft-tactile"] :is(.table,.data-table) { color: var(--p16-soft-text); }
:root[data-ui-style="soft-tactile"] :is(.table thead,.data-table thead) { background: rgba(255,255,255,.34); }
:root[data-ui-style="soft-tactile"] :is(.table th,.table td,.data-table th,.data-table td) { border-color: rgba(255,255,255,.65); }
:root[data-ui-style="soft-tactile"] .pos16-theme-card { background: var(--p16-soft-bg); border: 1px solid rgba(255,255,255,.7); border-radius: 16px; box-shadow: var(--p16-soft-shadow-sm); }
:root[data-ui-style="soft-tactile"] .pos16-theme-card.is-selected { outline: 2px solid var(--p16-soft-accent); outline-offset: 2px; }
:root[data-ui-style="soft-tactile"] .pos16-preview-soft-tactile { background: #e9edf3; border-radius: 9px; box-shadow: inset 2px 2px 4px #c4cbd6, inset -2px -2px 4px #fff; }
:root[data-ui-style="soft-tactile"] .pos16-preview-soft-tactile .pos16-preview-rail { background: #e9edf3; border-radius: 5px; box-shadow: 2px 2px 4px #c4cbd6, -2px -2px 4px #fff; }
:root[data-ui-style="soft-tactile"] .pos16-preview-soft-tactile .pos16-preview-tile { background: #e9edf3; border-radius: 5px; box-shadow: 2px 2px 4px #c4cbd6, -2px -2px 4px #fff; }
:root[data-ui-style="soft-tactile"] :is(button,a,[role="button"]) { -webkit-tap-highlight-color: transparent; }
:root[data-ui-style="soft-tactile"] :is(button,a,[role="button"]):focus-visible { outline: 2px solid var(--p16-soft-accent); outline-offset: 3px; }
:root[data-ui-style="soft-tactile"] :is(button.primary-button,.primary-button,button.btn-primary):active,
:root[data-ui-style="soft-tactile"] .sidebar .nav-item:active { transform: translateY(1px); box-shadow: var(--p16-soft-inset); }
@media (max-width: 760px) {
  :root[data-ui-style="soft-tactile"] :is(.surface-card,.stat-card,.dashboard-card,.widget-card,.pos16-theme-panel) { border-radius: 15px; box-shadow: 5px 5px 13px rgba(163,174,190,.32), -5px -5px 13px rgba(255,255,255,.76); }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-ui-style="soft-tactile"] *, :root[data-ui-style="soft-tactile"] *::before, :root[data-ui-style="soft-tactile"] *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
