/*
 * PersonalOS 17 — Phase 2/10: Liquid Glass.
 * A restrained glass-material layer for the existing application shell.
 * Content, navigation, controls and business-module behavior remain unchanged.
 */

html[data-ui-style="liquid-glass"] {
  color-scheme: light;
  --app-bg: #eaf0fa;
  --surface: rgba(255, 255, 255, .70);
  --surface-2: rgba(255, 255, 255, .48);
  --border: rgba(255, 255, 255, .82);
  --text: #1e2c43;
  --muted: #66778f;
  --primary: #4779c9;
  --primary-hover: #3568b8;
  --primary-soft: rgba(112, 157, 226, .16);
  --shadow: 0 12px 34px rgba(46, 73, 116, .10);
  --shadow-pop: 0 24px 70px rgba(40, 62, 100, .20);
  --radius-lg: 23px;
  --radius-md: 17px;
  --radius-sm: 13px;
  background: #eaf0fa;
}

html[data-ui-style="liquid-glass"] body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 9% 8%, rgba(178, 209, 255, .60), transparent 34%),
    radial-gradient(ellipse at 94% 15%, rgba(224, 202, 255, .48), transparent 32%),
    radial-gradient(ellipse at 78% 92%, rgba(177, 232, 225, .42), transparent 31%),
    linear-gradient(135deg, #edf3fc 0%, #e7edf8 48%, #f2effb 100%);
  background-attachment: fixed;
}

html[data-ui-style="liquid-glass"] .app-shell,
html[data-ui-style="liquid-glass"] .app-frame {
  background: transparent;
}

/* Main navigation surface */
html[data-ui-style="liquid-glass"] .sidebar {
  background: rgba(246, 249, 255, .60);
  border-right: 1px solid rgba(255, 255, 255, .84);
  box-shadow: 9px 0 34px rgba(62, 87, 130, .075);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  backdrop-filter: blur(28px) saturate(155%);
}
html[data-ui-style="liquid-glass"] .brand-row {
  border-bottom-color: rgba(255, 255, 255, .58);
}
html[data-ui-style="liquid-glass"] .nav-group-label {
  color: #71829c;
}
html[data-ui-style="liquid-glass"] .nav-item {
  border: 1px solid transparent;
  border-radius: 14px;
  transition: background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
html[data-ui-style="liquid-glass"] .nav-item:hover {
  background: rgba(255, 255, 255, .48);
  border-color: rgba(255, 255, 255, .76);
}
html[data-ui-style="liquid-glass"] .nav-item.active,
html[data-ui-style="liquid-glass"] .nav-item[aria-current="page"] {
  color: #315f9f;
  background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(207,225,252,.58));
  border-color: rgba(255,255,255,.94);
  box-shadow: 0 5px 16px rgba(71, 112, 174, .10), inset 0 1px 0 rgba(255,255,255,.94);
}
html[data-ui-style="liquid-glass"] .nav-item.active::before,
html[data-ui-style="liquid-glass"] .nav-item[aria-current="page"]::before {
  opacity: 0;
}
html[data-ui-style="liquid-glass"] .sidebar-bottom {
  border-top-color: rgba(255,255,255,.72);
}
html[data-ui-style="liquid-glass"] .drive-chip,
html[data-ui-style="liquid-glass"] .quick-add-button {
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 15px;
  background: rgba(255,255,255,.54);
  box-shadow: 0 5px 16px rgba(48,76,119,.06), inset 0 1px 0 rgba(255,255,255,.86);
}
html[data-ui-style="liquid-glass"] .drive-chip:hover,
html[data-ui-style="liquid-glass"] .quick-add-button:hover {
  background: rgba(255,255,255,.78);
}

/* Top bar and floating actions */
html[data-ui-style="liquid-glass"] .topbar {
  background: rgba(246, 249, 255, .57);
  border-bottom: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 5px 24px rgba(50,74,112,.045);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
}
html[data-ui-style="liquid-glass"] .topbar-search,
html[data-ui-style="liquid-glass"] .drive-status-pill,
html[data-ui-style="liquid-glass"] .today-button,
html[data-ui-style="liquid-glass"] .avatar-button,
html[data-ui-style="liquid-glass"] .icon-button {
  border: 1px solid rgba(255,255,255,.84);
  background: rgba(255,255,255,.52);
  box-shadow: 0 4px 13px rgba(48,76,119,.055), inset 0 1px 0 rgba(255,255,255,.9);
}
html[data-ui-style="liquid-glass"] .topbar-search:hover,
html[data-ui-style="liquid-glass"] .drive-status-pill:hover,
html[data-ui-style="liquid-glass"] .today-button:hover,
html[data-ui-style="liquid-glass"] .avatar-button:hover,
html[data-ui-style="liquid-glass"] .icon-button:hover {
  background: rgba(255,255,255,.80);
}

/* Dashboard cards and module surfaces */
html[data-ui-style="liquid-glass"] .surface-card,
html[data-ui-style="liquid-glass"] .system-card,
html[data-ui-style="liquid-glass"] .kpi-card,
html[data-ui-style="liquid-glass"] .quick-action,
html[data-ui-style="liquid-glass"] .p2-note-card,
html[data-ui-style="liquid-glass"] .p4-budget-card,
html[data-ui-style="liquid-glass"] .p4-account-card,
html[data-ui-style="liquid-glass"] .p5-file-card,
html[data-ui-style="liquid-glass"] .p6-world-card {
  color: var(--text);
  background: rgba(255,255,255,.59);
  border: 1px solid rgba(255,255,255,.84);
  border-radius: var(--radius-lg);
  box-shadow: 0 11px 32px rgba(48,75,119,.075), inset 0 1px 0 rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
html[data-ui-style="liquid-glass"] .surface-card-header {
  border-bottom-color: rgba(255,255,255,.55);
}
html[data-ui-style="liquid-glass"] .surface-card-body {
  background: transparent;
}
html[data-ui-style="liquid-glass"] .kpi-card,
html[data-ui-style="liquid-glass"] .quick-action,
html[data-ui-style="liquid-glass"] .p2-note-card,
html[data-ui-style="liquid-glass"] .p4-budget-card,
html[data-ui-style="liquid-glass"] .p4-account-card,
html[data-ui-style="liquid-glass"] .p5-file-card,
html[data-ui-style="liquid-glass"] .p6-world-card {
  border-radius: 18px;
}
html[data-ui-style="liquid-glass"] .kpi-card:hover,
html[data-ui-style="liquid-glass"] .quick-action:hover,
html[data-ui-style="liquid-glass"] .p5-file-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(48,75,119,.12), inset 0 1px 0 rgba(255,255,255,.96);
}
html[data-ui-style="liquid-glass"] .page-kicker,
html[data-ui-style="liquid-glass"] .eyebrow {
  color: #6684b1;
}
html[data-ui-style="liquid-glass"] .page-title,
html[data-ui-style="liquid-glass"] .topbar-title {
  color: #233651;
}
html[data-ui-style="liquid-glass"] .page-description,
html[data-ui-style="liquid-glass"] .surface-card-header p {
  color: #71829a;
}

/* Buttons, form controls and selectable rows */
html[data-ui-style="liquid-glass"] .primary-button {
  color: #fff;
  background: linear-gradient(135deg, #6f9de0, #4779c9);
  border-color: rgba(255,255,255,.45);
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(66,112,183,.23), inset 0 1px 0 rgba(255,255,255,.28);
}
html[data-ui-style="liquid-glass"] .primary-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #5f8fd4, #3769b7);
  box-shadow: 0 10px 23px rgba(66,112,183,.28), inset 0 1px 0 rgba(255,255,255,.32);
}
html[data-ui-style="liquid-glass"] .secondary-button,
html[data-ui-style="liquid-glass"] .ghost-button,
html[data-ui-style="liquid-glass"] .danger-button {
  border-radius: 13px;
  border-color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.56);
  box-shadow: 0 4px 13px rgba(48,76,119,.055), inset 0 1px 0 rgba(255,255,255,.9);
}
html[data-ui-style="liquid-glass"] .secondary-button:hover:not(:disabled),
html[data-ui-style="liquid-glass"] .ghost-button:hover:not(:disabled) {
  background: rgba(255,255,255,.86);
  border-color: rgba(255,255,255,.98);
}
html[data-ui-style="liquid-glass"] .input-control,
html[data-ui-style="liquid-glass"] #mainContent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
html[data-ui-style="liquid-glass"] #mainContent select,
html[data-ui-style="liquid-glass"] #mainContent textarea,
html[data-ui-style="liquid-glass"] #modalLayer .input-control,
html[data-ui-style="liquid-glass"] #modalLayer input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
html[data-ui-style="liquid-glass"] #modalLayer select,
html[data-ui-style="liquid-glass"] #modalLayer textarea {
  color: #253852;
  background: rgba(255,255,255,.67);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 13px;
  box-shadow: inset 0 1px 3px rgba(56,82,122,.055), 0 2px 9px rgba(56,82,122,.035);
}
html[data-ui-style="liquid-glass"] .input-control:focus,
html[data-ui-style="liquid-glass"] #mainContent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):focus,
html[data-ui-style="liquid-glass"] #mainContent select:focus,
html[data-ui-style="liquid-glass"] #mainContent textarea:focus,
html[data-ui-style="liquid-glass"] #modalLayer .input-control:focus,
html[data-ui-style="liquid-glass"] #modalLayer input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):focus,
html[data-ui-style="liquid-glass"] #modalLayer select:focus,
html[data-ui-style="liquid-glass"] #modalLayer textarea:focus {
  outline: none;
  border-color: rgba(86,139,213,.72);
  box-shadow: 0 0 0 3px rgba(91,145,220,.16), inset 0 1px 2px rgba(56,82,122,.04);
}
html[data-ui-style="liquid-glass"] .input-control::placeholder,
html[data-ui-style="liquid-glass"] #mainContent input::placeholder,
html[data-ui-style="liquid-glass"] #mainContent textarea::placeholder {
  color: #8a9ab0;
}

/* Dialogs, menus and sheets retain strong opacity for legibility. */
html[data-ui-style="liquid-glass"] .account-popover,
html[data-ui-style="liquid-glass"] .mobile-more-sheet,
html[data-ui-style="liquid-glass"] .pm-field-memory-panel,
html[data-ui-style="liquid-glass"] .os8-color-popover {
  color: var(--text);
  background: rgba(248,251,255,.88);
  border: 1px solid rgba(255,255,255,.94);
  box-shadow: 0 20px 55px rgba(35,57,94,.17), inset 0 1px 0 rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}
html[data-ui-style="liquid-glass"] .modal-layer {
  background: rgba(49,68,98,.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html[data-ui-style="liquid-glass"] .modal-card {
  background: rgba(249,251,255,.91);
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 22px;
  box-shadow: 0 28px 85px rgba(30,51,85,.24), inset 0 1px 0 rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  backdrop-filter: blur(30px) saturate(155%);
}
html[data-ui-style="liquid-glass"] .modal-header,
html[data-ui-style="liquid-glass"] .modal-footer {
  border-color: rgba(117,143,180,.16);
}
html[data-ui-style="liquid-glass"] .mobile-bottom-nav {
  background: rgba(246,249,255,.78);
  border-top: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 -8px 26px rgba(43,65,103,.09);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  backdrop-filter: blur(25px) saturate(160%);
}
html[data-ui-style="liquid-glass"] .mobile-more-layer {
  background: rgba(46,62,91,.25);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
html[data-ui-style="liquid-glass"] .app-footer {
  border-top-color: rgba(255,255,255,.65);
  color: #71829a;
}

/* Table headers and data panels: glass surface, stable text contrast. */
html[data-ui-style="liquid-glass"] .main-content table thead,
html[data-ui-style="liquid-glass"] .main-content table th {
  background: rgba(224,234,248,.72);
}
html[data-ui-style="liquid-glass"] .main-content table td {
  background: rgba(255,255,255,.20);
}
html[data-ui-style="liquid-glass"] .main-content table tr:hover td {
  background: rgba(255,255,255,.52);
}
html[data-ui-style="liquid-glass"] .p6-settings-preview,
html[data-ui-style="liquid-glass"] .pos16-theme-note,
html[data-ui-style="liquid-glass"] .pos16-rollout-badge {
  background: rgba(255,255,255,.52);
  border-color: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

/* Fallback when blur filters are unavailable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-ui-style="liquid-glass"] .sidebar { background: #f2f6fd; }
  html[data-ui-style="liquid-glass"] .topbar,
  html[data-ui-style="liquid-glass"] .mobile-bottom-nav { background: #f7f9fd; }
  html[data-ui-style="liquid-glass"] .surface-card,
  html[data-ui-style="liquid-glass"] .system-card { background: #f8faff; }
}

/* Dark preference is preserved while keeping Liquid Glass material cues. */
html[data-ui-style="liquid-glass"][data-theme="dark"] {
  color-scheme: dark;
  --app-bg: #111a2a;
  --surface: rgba(34,47,68,.78);
  --surface-2: rgba(39,54,77,.70);
  --border: rgba(151,177,211,.18);
  --text: #e8effa;
  --muted: #a6b6cc;
  --primary: #8cb7f5;
  --primary-hover: #a6c8fb;
  --primary-soft: rgba(105,151,214,.20);
  background: #111a2a;
}
html[data-ui-style="liquid-glass"][data-theme="dark"] body {
  color: var(--text);
  background:
    radial-gradient(ellipse at 10% 8%, rgba(57,91,145,.38), transparent 34%),
    radial-gradient(ellipse at 95% 18%, rgba(103,72,140,.30), transparent 32%),
    radial-gradient(ellipse at 75% 93%, rgba(40,112,112,.22), transparent 31%),
    linear-gradient(135deg,#111a2a,#18253a 55%,#1b2034);
  background-attachment: fixed;
}
html[data-ui-style="liquid-glass"][data-theme="dark"] .sidebar,
html[data-ui-style="liquid-glass"][data-theme="dark"] .topbar,
html[data-ui-style="liquid-glass"][data-theme="dark"] .mobile-bottom-nav {
  background: rgba(24,36,56,.70);
  border-color: rgba(175,198,228,.16);
  box-shadow: 0 9px 30px rgba(0,0,0,.16);
}
html[data-ui-style="liquid-glass"][data-theme="dark"] .nav-group-label,
html[data-ui-style="liquid-glass"][data-theme="dark"] .page-kicker,
html[data-ui-style="liquid-glass"][data-theme="dark"] .eyebrow { color: #9cb6d9; }
html[data-ui-style="liquid-glass"][data-theme="dark"] .page-title,
html[data-ui-style="liquid-glass"][data-theme="dark"] .topbar-title,
html[data-ui-style="liquid-glass"][data-theme="dark"] .surface-card h1,
html[data-ui-style="liquid-glass"][data-theme="dark"] .surface-card h2,
html[data-ui-style="liquid-glass"][data-theme="dark"] .surface-card h3 { color: #edf4ff; }
html[data-ui-style="liquid-glass"][data-theme="dark"] .page-description,
html[data-ui-style="liquid-glass"][data-theme="dark"] .surface-card-header p,
html[data-ui-style="liquid-glass"][data-theme="dark"] .app-footer { color: #a8b8cf; }
html[data-ui-style="liquid-glass"][data-theme="dark"] .nav-item.active,
html[data-ui-style="liquid-glass"][data-theme="dark"] .nav-item[aria-current="page"] {
  color: #dbeaff;
  background: linear-gradient(135deg,rgba(111,151,207,.30),rgba(79,111,161,.20));
  border-color: rgba(180,207,244,.18);
}
html[data-ui-style="liquid-glass"][data-theme="dark"] .surface-card,
html[data-ui-style="liquid-glass"][data-theme="dark"] .system-card,
html[data-ui-style="liquid-glass"][data-theme="dark"] .kpi-card,
html[data-ui-style="liquid-glass"][data-theme="dark"] .quick-action,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p2-note-card,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p4-budget-card,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p4-account-card,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p5-file-card,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p6-world-card {
  color: var(--text);
  background: rgba(31,45,66,.70);
  border-color: rgba(173,199,232,.17);
  box-shadow: 0 12px 34px rgba(0,0,0,.16), inset 0 1px 0 rgba(220,236,255,.07);
}
html[data-ui-style="liquid-glass"][data-theme="dark"] .topbar-search,
html[data-ui-style="liquid-glass"][data-theme="dark"] .drive-status-pill,
html[data-ui-style="liquid-glass"][data-theme="dark"] .today-button,
html[data-ui-style="liquid-glass"][data-theme="dark"] .avatar-button,
html[data-ui-style="liquid-glass"][data-theme="dark"] .icon-button,
html[data-ui-style="liquid-glass"][data-theme="dark"] .drive-chip,
html[data-ui-style="liquid-glass"][data-theme="dark"] .quick-add-button,
html[data-ui-style="liquid-glass"][data-theme="dark"] .secondary-button,
html[data-ui-style="liquid-glass"][data-theme="dark"] .ghost-button {
  color: #dce8fa;
  background: rgba(69,89,119,.38);
  border-color: rgba(183,207,240,.19);
  box-shadow: inset 0 1px 0 rgba(231,242,255,.08), 0 4px 13px rgba(0,0,0,.10);
}
html[data-ui-style="liquid-glass"][data-theme="dark"] .input-control,
html[data-ui-style="liquid-glass"][data-theme="dark"] #mainContent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
html[data-ui-style="liquid-glass"][data-theme="dark"] #mainContent select,
html[data-ui-style="liquid-glass"][data-theme="dark"] #mainContent textarea,
html[data-ui-style="liquid-glass"][data-theme="dark"] #modalLayer .input-control,
html[data-ui-style="liquid-glass"][data-theme="dark"] #modalLayer input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
html[data-ui-style="liquid-glass"][data-theme="dark"] #modalLayer select,
html[data-ui-style="liquid-glass"][data-theme="dark"] #modalLayer textarea {
  color: #e6effd;
  background: rgba(20,31,49,.62);
  border-color: rgba(174,199,232,.22);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.15);
}
html[data-ui-style="liquid-glass"][data-theme="dark"] .account-popover,
html[data-ui-style="liquid-glass"][data-theme="dark"] .mobile-more-sheet,
html[data-ui-style="liquid-glass"][data-theme="dark"] .pm-field-memory-panel,
html[data-ui-style="liquid-glass"][data-theme="dark"] .os8-color-popover,
html[data-ui-style="liquid-glass"][data-theme="dark"] .modal-card {
  color: var(--text);
  background: rgba(28,42,63,.92);
  border-color: rgba(180,205,238,.20);
}
html[data-ui-style="liquid-glass"][data-theme="dark"] .main-content table th,
html[data-ui-style="liquid-glass"][data-theme="dark"] .main-content table thead { background: rgba(75,98,130,.32); }
html[data-ui-style="liquid-glass"][data-theme="dark"] .main-content table td { background: rgba(23,37,57,.24); }
html[data-ui-style="liquid-glass"][data-theme="dark"] .main-content table tr:hover td { background: rgba(104,133,174,.18); }

@media (prefers-color-scheme: dark) {
  html[data-ui-style="liquid-glass"][data-theme="system"] {
    color-scheme: dark;
    --app-bg: #111a2a;
    --surface: rgba(34,47,68,.78);
    --surface-2: rgba(39,54,77,.70);
    --border: rgba(151,177,211,.18);
    --text: #e8effa;
    --muted: #a6b6cc;
    --primary: #8cb7f5;
    --primary-hover: #a6c8fb;
    --primary-soft: rgba(105,151,214,.20);
    background: #111a2a;
  }
  html[data-ui-style="liquid-glass"][data-theme="system"] body {
    color: #e8effa;
    background: radial-gradient(ellipse at 10% 8%,rgba(57,91,145,.38),transparent 34%),radial-gradient(ellipse at 95% 18%,rgba(103,72,140,.30),transparent 32%),linear-gradient(135deg,#111a2a,#18253a 55%,#1b2034);
    background-attachment: fixed;
  }
  html[data-ui-style="liquid-glass"][data-theme="system"] .sidebar,
  html[data-ui-style="liquid-glass"][data-theme="system"] .topbar,
  html[data-ui-style="liquid-glass"][data-theme="system"] .mobile-bottom-nav { background: rgba(24,36,56,.70); border-color: rgba(175,198,228,.16); }
  html[data-ui-style="liquid-glass"][data-theme="system"] .surface-card,
  html[data-ui-style="liquid-glass"][data-theme="system"] .system-card,
  html[data-ui-style="liquid-glass"][data-theme="system"] .kpi-card,
  html[data-ui-style="liquid-glass"][data-theme="system"] .quick-action,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p2-note-card,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p4-budget-card,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p4-account-card,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p5-file-card,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p6-world-card { background: rgba(31,45,66,.70); border-color: rgba(173,199,232,.17); }
  html[data-ui-style="liquid-glass"][data-theme="system"] .page-title,
  html[data-ui-style="liquid-glass"][data-theme="system"] .topbar-title,
  html[data-ui-style="liquid-glass"][data-theme="system"] .surface-card h1,
  html[data-ui-style="liquid-glass"][data-theme="system"] .surface-card h2,
  html[data-ui-style="liquid-glass"][data-theme="system"] .surface-card h3 { color: #edf4ff; }
  html[data-ui-style="liquid-glass"][data-theme="system"] .page-description,
  html[data-ui-style="liquid-glass"][data-theme="system"] .surface-card-header p { color: #a8b8cf; }
  html[data-ui-style="liquid-glass"][data-theme="system"] .input-control,
  html[data-ui-style="liquid-glass"][data-theme="system"] #mainContent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  html[data-ui-style="liquid-glass"][data-theme="system"] #mainContent select,
  html[data-ui-style="liquid-glass"][data-theme="system"] #mainContent textarea,
  html[data-ui-style="liquid-glass"][data-theme="system"] #modalLayer .input-control,
  html[data-ui-style="liquid-glass"][data-theme="system"] #modalLayer input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  html[data-ui-style="liquid-glass"][data-theme="system"] #modalLayer select,
  html[data-ui-style="liquid-glass"][data-theme="system"] #modalLayer textarea { color: #e6effd; background: rgba(20,31,49,.62); border-color: rgba(174,199,232,.22); }
  html[data-ui-style="liquid-glass"][data-theme="system"] .topbar-search,
  html[data-ui-style="liquid-glass"][data-theme="system"] .drive-status-pill,
  html[data-ui-style="liquid-glass"][data-theme="system"] .today-button,
  html[data-ui-style="liquid-glass"][data-theme="system"] .avatar-button,
  html[data-ui-style="liquid-glass"][data-theme="system"] .icon-button,
  html[data-ui-style="liquid-glass"][data-theme="system"] .drive-chip,
  html[data-ui-style="liquid-glass"][data-theme="system"] .quick-add-button,
  html[data-ui-style="liquid-glass"][data-theme="system"] .secondary-button,
  html[data-ui-style="liquid-glass"][data-theme="system"] .ghost-button { color: #dce8fa; background: rgba(69,89,119,.38); border-color: rgba(183,207,240,.19); }
  html[data-ui-style="liquid-glass"][data-theme="system"] .account-popover,
  html[data-ui-style="liquid-glass"][data-theme="system"] .mobile-more-sheet,
  html[data-ui-style="liquid-glass"][data-theme="system"] .pm-field-memory-panel,
  html[data-ui-style="liquid-glass"][data-theme="system"] .os8-color-popover,
  html[data-ui-style="liquid-glass"][data-theme="system"] .modal-card { color: #e8effa; background: rgba(28,42,63,.92); border-color: rgba(180,205,238,.20); }
  html[data-ui-style="liquid-glass"][data-theme="system"] .main-content table th,
  html[data-ui-style="liquid-glass"][data-theme="system"] .main-content table thead { background: rgba(75,98,130,.32); }
  html[data-ui-style="liquid-glass"][data-theme="system"] .main-content table td { background: rgba(23,37,57,.24); }
}

@media (max-width: 767px) {
  html[data-ui-style="liquid-glass"] .sidebar { box-shadow: 14px 0 40px rgba(28,48,82,.18); }
  html[data-ui-style="liquid-glass"] .topbar { padding-right: 12px; padding-left: 12px; }
  html[data-ui-style="liquid-glass"] .mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
  html[data-ui-style="liquid-glass"] .modal-card,
  html[data-ui-style="liquid-glass"] .modal-card.wide { border-radius: 22px 22px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui-style="liquid-glass"] *,
  html[data-ui-style="liquid-glass"] *::before,
  html[data-ui-style="liquid-glass"] *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
html[data-ui-style="liquid-glass"] body.p6-reduced-motion *,
html[data-ui-style="liquid-glass"] body.p6-reduced-motion *::before,
html[data-ui-style="liquid-glass"] body.p6-reduced-motion *::after {
  transition-duration: .01ms !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
}

/* Module tabs, notifications and feature-module dialogs. */
html[data-ui-style="liquid-glass"] .subnav,
html[data-ui-style="liquid-glass"] .p4-tabs {
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 4px 14px rgba(49,76,119,.045);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}
html[data-ui-style="liquid-glass"] .subnav button,
html[data-ui-style="liquid-glass"] .p4-tab {
  border-radius: 10px;
  color: #667b98;
}
html[data-ui-style="liquid-glass"] .subnav button.active,
html[data-ui-style="liquid-glass"] .p4-tab.active {
  color: #315f9f;
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.96);
  box-shadow: 0 3px 11px rgba(48,76,119,.10), inset 0 1px 0 #fff;
}
html[data-ui-style="liquid-glass"] .toast {
  background: rgba(249,251,255,.91);
  border-color: rgba(255,255,255,.96);
  border-radius: 16px;
  box-shadow: 0 15px 38px rgba(34,57,94,.18), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
}
html[data-ui-style="liquid-glass"] .fc-dialog,
html[data-ui-style="liquid-glass"] .mm-dialog,
html[data-ui-style="liquid-glass"] .p3-modal-card,
html[data-ui-style="liquid-glass"] .p4-modal,
html[data-ui-style="liquid-glass"] .p5-dialog,
html[data-ui-style="liquid-glass"] .p5-preview-dialog,
html[data-ui-style="liquid-glass"] .p5-quick-dialog,
html[data-ui-style="liquid-glass"] .p5-search-dialog,
html[data-ui-style="liquid-glass"] .pl-editor-dialog,
html[data-ui-style="liquid-glass"] .os7-modal-card,
html[data-ui-style="liquid-glass"] .p12-modal,
html[data-ui-style="liquid-glass"] .q-modal,
html[data-ui-style="liquid-glass"] .q-sample-modal {
  background: rgba(249,251,255,.94);
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 22px;
  box-shadow: 0 24px 75px rgba(30,51,85,.22), inset 0 1px 0 rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  backdrop-filter: blur(26px) saturate(155%);
}
html[data-ui-style="liquid-glass"] .fc-dialog-layer,
html[data-ui-style="liquid-glass"] .mm-dialog-layer,
html[data-ui-style="liquid-glass"] .p3-modal-backdrop,
html[data-ui-style="liquid-glass"] .p5-dialog-layer,
html[data-ui-style="liquid-glass"] .p12-modal-backdrop,
html[data-ui-style="liquid-glass"] .q-modal-layer {
  background: rgba(49,68,98,.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html[data-ui-style="liquid-glass"] .fc-dialog-body,
html[data-ui-style="liquid-glass"] .mm-dialog-body,
html[data-ui-style="liquid-glass"] .modal-body {
  background: transparent;
}
html[data-ui-style="liquid-glass"][data-theme="dark"] .subnav,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p4-tabs {
  background: rgba(35,51,74,.72);
  border-color: rgba(178,202,235,.17);
}
html[data-ui-style="liquid-glass"][data-theme="dark"] .subnav button,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p4-tab { color: #b0c1d9; }
html[data-ui-style="liquid-glass"][data-theme="dark"] .subnav button.active,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p4-tab.active {
  color: #e3efff;
  background: rgba(93,120,159,.40);
  border-color: rgba(194,216,246,.18);
}
html[data-ui-style="liquid-glass"][data-theme="dark"] .toast,
html[data-ui-style="liquid-glass"][data-theme="dark"] .fc-dialog,
html[data-ui-style="liquid-glass"][data-theme="dark"] .mm-dialog,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p3-modal-card,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p4-modal,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p5-dialog,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p5-preview-dialog,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p5-quick-dialog,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p5-search-dialog,
html[data-ui-style="liquid-glass"][data-theme="dark"] .pl-editor-dialog,
html[data-ui-style="liquid-glass"][data-theme="dark"] .os7-modal-card,
html[data-ui-style="liquid-glass"][data-theme="dark"] .p12-modal,
html[data-ui-style="liquid-glass"][data-theme="dark"] .q-modal,
html[data-ui-style="liquid-glass"][data-theme="dark"] .q-sample-modal {
  color: #e8effa;
  background: rgba(28,42,63,.94);
  border-color: rgba(180,205,238,.20);
}
@media (prefers-color-scheme: dark) {
  html[data-ui-style="liquid-glass"][data-theme="system"] .subnav,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p4-tabs { background: rgba(35,51,74,.72); border-color: rgba(178,202,235,.17); }
  html[data-ui-style="liquid-glass"][data-theme="system"] .subnav button,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p4-tab { color: #b0c1d9; }
  html[data-ui-style="liquid-glass"][data-theme="system"] .subnav button.active,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p4-tab.active { color: #e3efff; background: rgba(93,120,159,.40); border-color: rgba(194,216,246,.18); }
  html[data-ui-style="liquid-glass"][data-theme="system"] .toast,
  html[data-ui-style="liquid-glass"][data-theme="system"] .fc-dialog,
  html[data-ui-style="liquid-glass"][data-theme="system"] .mm-dialog,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p3-modal-card,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p4-modal,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p5-dialog,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p5-preview-dialog,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p5-quick-dialog,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p5-search-dialog,
  html[data-ui-style="liquid-glass"][data-theme="system"] .pl-editor-dialog,
  html[data-ui-style="liquid-glass"][data-theme="system"] .os7-modal-card,
  html[data-ui-style="liquid-glass"][data-theme="system"] .p12-modal,
  html[data-ui-style="liquid-glass"][data-theme="system"] .q-modal,
  html[data-ui-style="liquid-glass"][data-theme="system"] .q-sample-modal { color: #e8effa; background: rgba(28,42,63,.94); border-color: rgba(180,205,238,.20); }
}
