/* Light is the body face; native emphasis faces give headings a clear hierarchy.
   All faces resolve locally. No Apple font files are distributed. */
@font-face {
  font-family: 'Crew Apple SD Gothic Neo';
  src: local('AppleSDGothicNeo-Light'), local('Apple SD Gothic Neo Light');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Crew Apple SD Gothic Neo';
  src: local('AppleSDGothicNeo-Regular');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Crew Apple SD Gothic Neo';
  src: local('AppleSDGothicNeo-Medium');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Crew Apple SD Gothic Neo';
  src: local('AppleSDGothicNeo-SemiBold');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

/* Theme picker and the FIS reveal are available in both visual styles. */
.visual-theme-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.visual-theme-choice { min-width: 0; padding: 10px 10px 18px; border: 1px solid var(--border2); border-radius: 24px; background: var(--bg2); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.visual-theme-choice:hover { border-color: var(--accent); }
.visual-theme-choice.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim2); }
.visual-theme-choice:disabled { cursor: default; }
.visual-theme-choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.visual-theme-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 8px 4px; }
.visual-theme-label strong { font-size: 17px; font-weight: 650; letter-spacing: -.03em; }
.visual-theme-check { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--border2); border-radius: 50%; color: transparent; }
.active > .visual-theme-label .visual-theme-check { background: var(--accent-fill); border-color: transparent; color: white; }
.visual-theme-description { display: block; padding: 0 8px; max-width: 33ch; color: var(--text2); font-size: 12px; line-height: 1.7; }
.visual-theme-note { margin-top: 18px; max-width: 70ch; color: var(--text3); font-size: 12px; line-height: 1.7; }
#visual-theme-retry[hidden] { display: none; }
.visual-theme-preview { position: relative; display: flex; gap: 10px; height: 190px; padding: 16px; overflow: hidden; border: 1px solid rgba(90,60,90,.08); border-radius: 17px; background: #f4eff4; }
.visual-preview-bar { display: flex; flex-direction: column; gap: 12px; width: 26px; padding: 10px 6px; flex-shrink: 0; border: 1px solid rgba(90,60,90,.06); border-radius: 10px; background: white; }
.visual-preview-bar i { display: block; width: 12px; height: 12px; border-radius: 4px; background: #d4bdca; }
.visual-preview-bar i:first-child { background: #a40134; }
.visual-preview-layout { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.visual-preview-hero { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: #f3e2e9; }
.visual-preview-hero b { max-width: 12ch; color: #573744; font-size: 9px; line-height: 1.5; letter-spacing: .04em; }
.visual-preview-hero i { width: 28px; height: 28px; border-radius: 50%; background: rgba(164,1,52,.13); }
.visual-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.visual-preview-grid i { height: 34px; border-radius: 7px; background: white; }
.visual-preview-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6px; }
.visual-preview-bottom i { height: 37px; border-radius: 7px; background: white; }
.visual-theme-preview.liquid { background: url('./liquid-wallpaper-light.svg') center / cover; }
.liquid :is(.visual-preview-bar, .visual-preview-hero, .visual-preview-grid i, .visual-preview-bottom i) { background: rgba(255,255,255,.36); border: 1px solid rgba(255,255,255,.75); box-shadow: inset 0 1px 0 white, 0 4px 10px rgba(65,38,90,.05); backdrop-filter: blur(9px); border-radius: 12px; }
.visual-preview-lens { position: absolute; width: 64px; height: 42px; right: 20px; bottom: 23px; border: 1px solid rgba(255,255,255,.8); border-radius: 30px; background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.12)); box-shadow: inset 0 1px 2px white, 0 9px 22px rgba(65,38,90,.13); backdrop-filter: blur(2px) saturate(1.6); }

.visual-theme-transition { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; overflow: hidden; background: radial-gradient(ellipse at 30% 30%, rgba(208,218,230,.55), transparent 60%), #f5f5f7; color: #302b40; text-align: center; opacity: 1; transition: opacity .32s ease; }
.visual-theme-transition.leaving { opacity: 0; pointer-events: none; }
.visual-theme-transition { font-family: 'Crew Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 300; font-kerning: normal; font-optical-sizing: auto; }
.visual-theme-transition h2 { margin: 18px 0 10px; font-family: inherit; font-size: clamp(27px, 4vw, 38px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.visual-theme-transition > p:last-of-type { color: #655e74; font-size: 13px; }
.theme-reveal-brand { margin-top: 36px; color: #856173; font-size: 11px; font-weight: 600; letter-spacing: normal; }
.theme-reveal-orbit { position: relative; display: grid; place-items: center; width: 156px; height: 156px; }
.theme-reveal-orbit > i { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.85); border-radius: 43%; background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.03)); box-shadow: inset 0 1px 2px white, 0 12px 32px rgba(105,70,120,.08); animation: themeGlassOrbit 5s ease-in-out infinite; }
.theme-reveal-orbit > i:nth-child(2) { inset: 14px; animation-direction: reverse; animation-duration: 7s; }
.theme-reveal-orbit > i:nth-child(3) { inset: -14px; opacity: .45; animation-duration: 9s; }
.theme-reveal-orbit > span { position: relative; display: grid; place-items: center; width: 100px; height: 100px; border: 1px solid rgba(255,255,255,.9); border-radius: 32px; background: rgba(255,255,255,.5); box-shadow: inset 0 2px 3px white, 0 14px 40px rgba(105,70,120,.1); backdrop-filter: blur(20px); }
.theme-reveal-orbit img { object-fit: contain; }
.theme-reveal-progress { width: 120px; height: 3px; overflow: hidden; margin-top: 30px; border-radius: 8px; background: rgba(105,70,120,.08); }
.theme-reveal-progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent-fill, #a40134); transform-origin: left; animation: themeGlassProgress 1.6s ease both; }
html.visual-theme-changing { overflow: hidden; }
@keyframes themeGlassOrbit { 50% { transform: rotate(90deg) scale(1.05); } 100% { transform: rotate(180deg); } }
@keyframes themeGlassProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
:root[data-theme="dark"] .visual-theme-transition { color: #f0eafa; background: radial-gradient(ellipse at 25% 30%, #42223f, transparent 60%), radial-gradient(ellipse at 90% 80%, #19394b, transparent 60%), #111425; }
:root[data-theme="dark"] .visual-theme-transition > p:last-of-type { color: #c0b7d0; }
:root[data-theme="dark"] .theme-reveal-brand { color: #d5b6ca; }
:root[data-theme="dark"] .theme-reveal-orbit > i { border-color: rgba(255,255,255,.18); background: linear-gradient(135deg, rgba(255,255,255,.09), transparent); box-shadow: inset 0 1px 1px rgba(255,255,255,.18); }
:root[data-theme="dark"] .theme-reveal-orbit > span { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); box-shadow: inset 0 1px 2px rgba(255,255,255,.25), 0 12px 40px #0003; }

/* Background controls live inside Appearance in both workspace styles. */
.glass-background-preference { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.glass-background-preference > p { color: var(--text2); font-size: 12px; line-height: 1.6; }
.glass-background-options { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin: 14px 0 20px; }
.glass-background-choice { min-width: 0; padding: 7px; border: 1px solid var(--border2); border-radius: 16px; background: var(--glass-surface,var(--bg2)); color: var(--text); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.glass-background-choice:hover,.glass-background-choice.active { border-color: var(--accent); }
.glass-background-choice.active { box-shadow: 0 0 0 2px var(--accent-dim2); }
.glass-background-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.glass-background-choice > .glass-background-label { display: flex; justify-content: space-between; gap: 4px; padding: 8px 3px 2px; }
.glass-background-check { color: var(--accent); visibility: hidden; }
.glass-background-choice.active .glass-background-check { visibility: visible; }
.glass-background-preview { position: relative; display: block; height: 70px; overflow: hidden; border-radius: 10px; background-position: center; background-size: cover; }
.glass-background-preview i { position: absolute; inset: 18px 12px; border-radius: 20px; border: 1px solid rgb(255 255 255 / .65); background: rgb(255 255 255 / .35); box-shadow: inset 0 1px 0 #fff, 0 3px 10px #15365526; backdrop-filter: blur(2px); }
.glass-background-preview.lagoon { background-image: url('./liquid-lagoon-light.svg'); }
.glass-background-preview.prism { background-image: url('./liquid-wallpaper-light.svg'); }
.glass-background-preview.dawn { background-image: url('./liquid-dawn-light.svg'); }
.glass-background-preview.maroon { background-image: url('./liquid-maroon-light.svg'); }
.glass-background-preview.campus { background-image: url('../events/applefest-courtyard.webp'); }
:root[data-theme="dark"] .glass-background-preview.lagoon { background-image: url('./liquid-lagoon-dark.svg'); }
:root[data-theme="dark"] .glass-background-preview.prism { background-image: url('./liquid-wallpaper-dark.svg'); }
:root[data-theme="dark"] .glass-background-preview.dawn { background-image: url('./liquid-dawn-dark.svg'); }
:root[data-theme="dark"] .glass-background-preview.maroon { background-image: url('./liquid-maroon-dark.svg'); }
.glass-density-control { max-width: 440px; }
.glass-density-control label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text); }
.glass-density-control output { font-variant-numeric: tabular-nums; color: var(--text2); }
.glass-density-control :is(input,#glass-background-slider) { width: 100%; accent-color: var(--accent-fill); }
.glass-density-control #glass-background-slider { display: block; --lg-surface: var(--bg2); --lg-track: var(--bg4); --lg-accent: var(--accent-fill); --lg-focus: var(--accent); }
.glass-density-control p { display: flex; justify-content: space-between; color: var(--text3); font-size: 11px; }
@media (max-width: 1100px) { .glass-background-options { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 500px) { .glass-background-options { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Glass belongs to navigation and controls. Reading surfaces stay quiet. */
:root[data-visual-theme="liquid"] {
  --bg: #dce7f4; --bg2: #f4f7fc; --bg3: #e6edf7; --bg4: #d3dfef;
  --text: #14243c; --text2: #31445f; --text3: #475c77;
  --accent: #005bc5; --accent-fill: #0065d7; --accent2: #0054bb;
  --accent-dim: rgb(0 101 215 / .16); --accent-dim2: rgb(0 101 215 / .08);
  --sidebar-accent: var(--accent); --sidebar-accent-dim: var(--accent-dim); --sidebar-accent-hover: var(--accent-dim2);
  --purple: #6544a1; --teal: #086c67; --blue: #075ab9; --amber: #87530c; --coral: #a83835;
  --border: rgb(29 61 104 / .12); --border2: rgb(29 61 104 / .25);
  --glass-wallpaper: url('./liquid-wallpaper-light.svg');
  --content-surface: #f7f9fc; --glass-raised: rgb(250 253 255 / .94);
  --glass-surface: rgb(255 255 255 / .4); --glass-rail: rgb(248 252 255 / .66);
  --glass-rim: rgb(255 255 255 / .85); --glass-lens: #f3f8ff;
  --glass-sheen: linear-gradient(145deg, rgb(255 255 255 / .4), rgb(255 255 255 / .03) 48%, rgb(255 255 255 / .2));
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -1px 0 rgb(255 255 255 / .25), 0 5px 18px rgb(25 57 102 / .09);
  --glass-content-shadow: 0 3px 14px rgb(25 57 102 / .045);
  --glass-control-tint: rgb(250 253 255 / .55);
  --glass-rail-tint: rgb(250 253 255 / calc(var(--glass-density-light, .68) - .4));
  --glass-selected-tint: rgb(238 247 255 / .66);
  --glass-optic-rim: inset 0 .75px 1px rgb(255 255 255 / .6), inset .5px 0 1px rgb(255 255 255 / .24), inset 0 -.75px 1px rgb(35 65 95 / .12), 0 2px 6px rgb(20 45 80 / .09);
  --lg-tint: rgb(250 253 255 / var(--glass-density-light, .68)); --lg-shadow-2: 0 5px 18px rgb(25 57 102 / .08);
  --radius: 22px; --radius-sm: 13px; --radius-lg: 28px; --sidebar: 244px; --sidebar-compact: 96px;
  --font-body: 'Crew Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: var(--font-body);
  background: var(--bg);
}
:root[data-visual-theme="liquid"][data-theme="dark"] {
  --bg: #101c38; --bg2: #15233e; --bg3: #233450; --bg4: #344a68;
  --text: #f5f8ff; --text2: #d9e5f8; --text3: #b6cbea;
  --accent: #a8d8ff; --accent-fill: #0668d9; --accent2: #0058c2;
  --accent-dim: rgb(119 187 255 / .22); --accent-dim2: rgb(119 187 255 / .12);
  --purple: #d4c4ff; --teal: #a2e7d9; --blue: #abd4ff; --amber: #f3d296; --coral: #ffbab6;
  --border: rgb(211 230 255 / .15); --border2: rgb(211 230 255 / .28);
  --glass-wallpaper: url('./liquid-wallpaper-dark.svg');
  --content-surface: #17263d; --glass-raised: rgb(22 38 65 / .96);
  --glass-surface: rgb(161 199 255 / .11); --glass-rail: rgb(16 30 56 / .74);
  --glass-rim: rgb(223 239 255 / .32); --glass-lens: #2b405f;
  --glass-sheen: linear-gradient(145deg, rgb(226 240 255 / .12), rgb(226 240 255 / .01) 48%, rgb(184 208 255 / .07));
  --glass-shadow: inset 0 1px 0 rgb(231 245 255 / .28), inset 0 -1px 0 rgb(231 245 255 / .05), 0 6px 22px rgb(0 7 23 / .26);
  --glass-content-shadow: 0 3px 14px rgb(0 7 23 / .13);
  --glass-control-tint: rgb(22 38 65 / .58);
  --glass-rail-tint: rgb(16 30 56 / calc(var(--glass-density-dark, .79) - .45));
  --glass-selected-tint: rgb(14 31 54 / .42);
  --glass-optic-rim: inset 0 .75px 1px rgb(235 248 255 / .35), inset .5px 0 1px rgb(229 245 255 / .13), inset 0 -.75px 1px rgb(0 10 30 / .25), 0 2px 7px rgb(0 7 23 / .18);
  --lg-tint: rgb(15 28 51 / var(--glass-density-dark, .79)); --lg-shadow-2: 0 5px 18px rgb(0 7 23 / .2);
}
:root[data-visual-theme="liquid"][data-glass-background="lagoon"] { --glass-wallpaper: url('./liquid-lagoon-light.svg'); }
:root[data-visual-theme="liquid"][data-glass-background="lagoon"][data-theme="dark"] { --glass-wallpaper: url('./liquid-lagoon-dark.svg'); }
:root[data-visual-theme="liquid"][data-glass-background="prism"] { --glass-wallpaper: url('./liquid-wallpaper-light.svg'); }
:root[data-visual-theme="liquid"][data-glass-background="prism"][data-theme="dark"] { --glass-wallpaper: url('./liquid-wallpaper-dark.svg'); }
:root[data-visual-theme="liquid"][data-glass-background="dawn"] { --glass-wallpaper: url('./liquid-dawn-light.svg'); }
:root[data-visual-theme="liquid"][data-glass-background="dawn"][data-theme="dark"] { --glass-wallpaper: url('./liquid-dawn-dark.svg'); }
:root[data-visual-theme="liquid"][data-glass-background="maroon"] { --glass-wallpaper: url('./liquid-maroon-light.svg'); }
:root[data-visual-theme="liquid"][data-glass-background="maroon"][data-theme="dark"] { --glass-wallpaper: url('./liquid-maroon-dark.svg'); }
 :root[data-visual-theme="liquid"][data-glass-background="campus"] { --glass-wallpaper: linear-gradient(rgb(239 247 255 / .68), rgb(239 247 255 / .68)), url('../events/applefest-courtyard.webp'); }
:root[data-visual-theme="liquid"][data-glass-background="campus"][data-theme="dark"] { --glass-wallpaper: linear-gradient(rgb(10 23 44 / .74), rgb(10 23 44 / .74)), url('../events/applefest-courtyard.webp'); }
:root[data-visual-theme="liquid"] *,
:root[data-visual-theme="liquid"] *::before,
:root[data-visual-theme="liquid"] *::after { letter-spacing: normal !important; }
:root[data-visual-theme="liquid"] body { isolation: isolate; background: var(--bg); font-size: 15px; font-weight: 300; line-height: 1.5; font-stretch: normal; font-kerning: normal; font-optical-sizing: auto; font-synthesis: none; word-spacing: normal; }
:root[data-visual-theme="liquid"] body::before { content: ""; position: fixed; inset: 0; z-index: -10; pointer-events: none; background: var(--glass-wallpaper) center / cover no-repeat, var(--bg); }
.liquid-wallpaper { display: none !important; }
:root[data-visual-theme="liquid"] :is(h1,h2,h3,h4,h5,h6,.page-title,.modal-title,.dashboard-hero-title,.dashboard-module-title,.event-title,.all-pages-title,.gallery-card-title,.member-name) { font-family: var(--font-head); font-weight: 600; letter-spacing: -.022em !important; line-height: 1.2; }
:root[data-visual-theme="liquid"] .page-title { font-size: clamp(28px, 2.4vw, 36px); }
:root[data-visual-theme="liquid"] .page-sub { font-size: 15px; line-height: 1.5; color: var(--text2); }
:root[data-visual-theme="liquid"] :is(.dashboard-eyebrow,.nav-section-label,.logo-sub,.page-kicker,.form-label,.stat-label,.workspace-menu-label,.all-pages-group-title) { text-transform: none; }
:root[data-visual-theme="liquid"] .form-label { font-size: 12px; font-weight: 500; }
/* Floating rails leave the wallpaper visible around the workspace. */
:root[data-visual-theme="liquid"] .sidebar { top: 12px; bottom: 12px; left: 12px; width: calc(var(--sidebar) - 24px); border: 1px solid var(--glass-rim); border-radius: 26px; background: var(--glass-rail); box-shadow: var(--glass-content-shadow); backdrop-filter: blur(24px) saturate(1.45); -webkit-backdrop-filter: blur(24px) saturate(1.45); }
:root[data-visual-theme="liquid"] body.sidebar-collapsed .sidebar { width: calc(var(--sidebar-compact) - 24px); }
:root[data-visual-theme="liquid"] .sidebar-logo { padding: 20px 14px 17px; }
:root[data-visual-theme="liquid"] .sidebar-logo .logo-mark { font-size: 19px; font-weight: 500; }
:root[data-visual-theme="liquid"] .logo-sub { font-weight: 300; }
:root[data-visual-theme="liquid"] .sidebar-nav { padding: 14px 9px; }
:root[data-visual-theme="liquid"] .nav-section-label { padding-left: 11px; font-size: 11px; color: var(--text3); }
:root[data-visual-theme="liquid"] :is(.nav-item,.sidebar-settings-button) { border-radius: 15px; font-weight: 400; }
:root[data-visual-theme="liquid"] .nav-item { min-height: 43px; padding: 10px; font-size: 14px; }
:root[data-visual-theme="liquid"] .nav-item:is(:hover,:active) { transform: none; }
:root[data-visual-theme="liquid"] .nav-item.active { color: var(--accent); background: var(--glass-surface); border-color: transparent; box-shadow: inset 0 1px 0 var(--glass-rim); }
:root[data-visual-theme="liquid"] .topbar { top: 12px; margin: 12px 28px 0; height: 56px; padding: 0 16px; border: 1px solid var(--glass-rim); border-radius: 28px; background: var(--glass-rail); box-shadow: var(--glass-shadow); backdrop-filter: blur(24px) saturate(1.45); -webkit-backdrop-filter: blur(24px) saturate(1.45); }
:root[data-visual-theme="liquid"] .topbar-title { font-family: var(--font-head); font-size: 15px; font-weight: 500; }
:root[data-visual-theme="liquid"] .liquid-beta-badge { display: inline-flex; flex-shrink: 0; align-items: center; padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--accent); background: var(--accent-dim2); font-size: 10px; line-height: 1.4; text-decoration: none; }
:root[data-visual-theme="liquid"] .liquid-beta-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root[data-visual-theme="liquid"] .topbar-motto { font-family: var(--font-body); color: var(--text2); }
/* Reading surfaces share a quiet tint; refraction is restricted to decoration. */
:root[data-visual-theme="liquid"] :is(.card,.stat-card,.event-card,.member-card,.gallery-card,.gallery-view-card,.about-feature-card,.about-project-card,.equipment-card,.equipment-status-card,.equipment-register-card,.meeting-card,.meeting-command-card,.media-calendar-card,.crew-personal-card,.role-guide-card,.profile-panel,.dashboard-module,.sac-dashboard-panel,.sac-home-card,.sac-review-panel,.sac-event-card,.sac-directory-card,.sac-home-metric,.sac-home-hero,.sac-planner,.sac-attendance-summary,.sac-attendance-row) { border-color: var(--border); border-radius: 22px; background: var(--content-surface); box-shadow: var(--glass-content-shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-visual-theme="liquid"] :is(.page-hero,.dashboard-hero,.equipment-status-hero,.deployment-hero,.role-guide-hero) { border: 1px solid var(--border); border-radius: 28px; background: var(--content-surface); box-shadow: var(--glass-content-shadow); }
:root[data-visual-theme="liquid"] :is(.page-hero,.dashboard-hero,.equipment-status-hero,.deployment-hero,.role-guide-hero)::before { display: block; opacity: .1; }
:root[data-visual-theme="liquid"][data-theme="dark"] :is(.page-hero,.dashboard-hero,.equipment-status-hero,.deployment-hero,.role-guide-hero)::before { opacity: .14; }
:root[data-visual-theme="liquid"] .role-guide-hero { color: var(--text); }
:root[data-visual-theme="liquid"] .role-guide-hero p { color: var(--text2); }
:root[data-visual-theme="liquid"] .role-guide-credit { color: var(--text2); background: var(--glass-surface); border-color: var(--glass-rim); }
:root[data-visual-theme="liquid"] .role-guide-credit span { color: var(--accent); }
:root[data-visual-theme="liquid"] :is(.modal,.sheet,.notification-panel,.all-pages-popover,.attendance-popover,.crew-date-picker,.workspace-menu,.toast,.auth-card) { border-color: var(--glass-rim); border-radius: 26px; background: var(--glass-raised); box-shadow: var(--glass-content-shadow); backdrop-filter: blur(24px) saturate(1.35); -webkit-backdrop-filter: blur(24px) saturate(1.35); }
:root[data-visual-theme="liquid"] :is(.modal-backdrop,.quick-search-scrim) { background: rgb(12 26 52 / .22); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
:root[data-visual-theme="liquid"] :is(.modal-title,.all-pages-title) { font-size: 24px; }
:root[data-visual-theme="liquid"] :is(.btn,.tab,.tab-btn,.sidebar-settings-button,.dashboard-quick-link,#auth-signout) { font-family: var(--font-body); font-weight: 400; }
:root[data-visual-theme="liquid"] :is(.btn,.quick-search-button,.notification-button,.sidebar-toggle-btn,.mob-menu-btn,.filter-chip,.crew-date-trigger) { border-radius: 999px; }
:root[data-visual-theme="liquid"] :is(.btn-ghost,.quick-search-button,.notification-button,.sidebar-toggle-btn,.mob-menu-btn,.dashboard-quick-link,.filter-chip,.crew-date-trigger) { border: 1px solid var(--glass-rim); background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-shadow); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); }
:root[data-visual-theme="liquid"] :is(.btn-accent,.filter-chip.active) { color: #fff; border: 1px solid rgb(255 255 255 / .3); background: var(--accent-fill); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 3px 10px rgb(0 68 160 / .16); }
:root[data-visual-theme="liquid"] .btn-accent:hover { background: var(--accent2); }
:root[data-visual-theme="liquid"] :is(.form-input,.form-select,.form-textarea) { font-size: 14px; border-radius: 13px; border-color: var(--border2); background: var(--glass-raised); box-shadow: inset 0 1px 3px rgb(20 48 87 / .035); }
:root[data-visual-theme="liquid"] :is(.form-input,.form-select,.form-textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
:root[data-visual-theme="liquid"] :is(.theme-choice,.visual-theme-choice,.cursor-trail-choice) { border-radius: 20px; border-color: var(--glass-rim); background: var(--glass-surface); }
:root[data-visual-theme="liquid"] :is(.theme-choice.active,.visual-theme-choice.active,.cursor-trail-choice.active) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim2); }
:root[data-visual-theme="liquid"] :is(input[type="checkbox"],input[type="radio"]) { accent-color: var(--accent-fill); }
:root[data-visual-theme="liquid"] :is(.sheet-table,.data-table,.crew-table,.equipment-table) { background: transparent; }
:root[data-visual-theme="liquid"] :is(.sheet-table,.data-table,.crew-table,.equipment-table) th { background: var(--glass-raised); }
:root[data-visual-theme="liquid"] :is(.sheet-table,.data-table) tr:hover td { background: var(--glass-surface); }
:root[data-visual-theme="liquid"] :is(.announcement-row,.sac-dashboard-activity,.sac-review-card,.sac-signup-slot,.signup-entry-card,.dashboard-choice,.sidebar-choice,.notification-choice,.equipment-history-row,.meeting-agenda-item) { border-radius: 16px; border-color: var(--border); }
:root[data-visual-theme="liquid"] .badge { font-weight: 400; }
:root[data-visual-theme="liquid"] .theme-preview.light { --preview-panel: rgb(255 255 255 / .65); --preview-rail: rgb(255 255 255 / .5); --preview-edge: rgb(28 69 112 / .18); background: url('./liquid-lagoon-light.svg') center / cover; }
:root[data-visual-theme="liquid"] .theme-preview.dark { --preview-panel: rgb(15 28 51 / .75); --preview-rail: rgb(15 28 51 / .7); background: url('./liquid-lagoon-dark.svg') center / cover; }
:root[data-visual-theme="liquid"] .theme-preview-rail i:first-child { background: #0065d7; }
:root[data-visual-theme="liquid"] .theme-preview-banner { border-color: var(--preview-edge); background: var(--preview-panel); }
/* Moving lenses retain the original native control layout. */
:root[data-visual-theme="liquid"] :is(.tab-row,.signup-sheet-period-options) { position: relative; padding: 5px; gap: 4px; border: 1px solid var(--glass-rim); border-radius: 24px; background: var(--glass-surface); box-shadow: inset 0 1px 0 var(--glass-rim); }
:root[data-visual-theme="liquid"] .settings-nav { border-color: var(--glass-rim); border-radius: 22px; padding: 7px; background: var(--content-surface); box-shadow: var(--glass-content-shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
:root[data-visual-theme="liquid"] :is(.tab,.tab-btn,.settings-nav a,.signup-sheet-period-button) { border-radius: 20px; font-weight: 400; }
:root[data-visual-theme="liquid"] :is(.settings-nav a,.signup-sheet-period-button) { border-radius: 15px; }
:root[data-visual-theme="liquid"] .settings-nav a.active { color: var(--accent); background: var(--glass-lens); box-shadow: var(--glass-shadow); }
:root[data-visual-theme="liquid"] .tab-indicator { top: 5px; bottom: 5px; border-radius: 20px; border-color: var(--glass-rim); background: var(--glass-lens); box-shadow: var(--glass-shadow); }
:root[data-visual-theme="liquid"] .liquid-nav-ready { isolation: isolate; }
:root[data-visual-theme="liquid"] .liquid-nav-ready > :is(.tab-indicator) { display: none; }
:root[data-visual-theme="liquid"] .liquid-nav-ready > :is(a,button) { position: relative; z-index: 1; }
:root[data-visual-theme="liquid"] .liquid-nav-ready > :is(a,button).active,
:root[data-visual-theme="liquid"] .liquid-nav-ready > :is(a,button):hover { background: transparent; box-shadow: none; border-color: transparent; }
/* Glass sits beneath native labels/icons; it never clones or refracts them. */
.liquid-nav-lens { --glass-control-tint: var(--glass-selected-tint); position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; isolation: isolate; background: var(--accent-dim2); border: 1px solid transparent; }
:root[data-visual-theme="liquid"] .liquid-nav-ready > :is(a,button):focus-visible { z-index: 2; outline: 2px solid var(--accent); outline-offset: -2px; }
:root[data-visual-theme="liquid"] .liquid-nav-ready > :is(a,button):is(:hover,:active) { transform: none; }
.liquid-control-material { position: absolute; inset: -12px; z-index: -3; pointer-events: none; background-repeat: no-repeat; }
.liquid-control-tint,.liquid-control-rim { position: absolute; left: 0; top: 0; z-index: -2; pointer-events: none; }
.liquid-control-tint { background: var(--glass-control-tint); }
.liquid-control-rim { z-index: -1; box-shadow: var(--glass-optic-rim); background: radial-gradient(ellipse at var(--liquid-x,25%) var(--liquid-y,0%), rgb(255 255 255 / calc(.08 + var(--glass-press,0) * .12)), transparent 75%); }
:is(.liquid-control-material,.liquid-control-tint,.liquid-control-rim)[hidden] { display: none; }
.crew-glass-rail { --glass-control-tint: var(--glass-rail-tint); isolation: isolate; }
:root[data-visual-theme="liquid"] .crew-glass-rail { border-color: color-mix(in srgb, var(--glass-rim) 55%, transparent); }
.crew-glass-rail > .liquid-control-material { opacity: .88; }
:root[data-visual-theme="liquid"] .liquid-nav-ready > :is(a,button):hover:not(.active,[aria-selected="true"],[aria-pressed="true"],[aria-current="page"]) { background: var(--accent-dim2); }
/* Preference inputs stay native; the solid thumb turns refractive on press. */
.liquid-switch { position: relative; display: inline-block; flex: 0 0 56px; width: 56px; height: 30px; vertical-align: middle; }
:root[data-visual-theme="liquid"] .liquid-switch > input.liquid-switch-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; z-index: 4; cursor: pointer; }
.liquid-switch-track { position: absolute; inset: 0; border-radius: 15px; background: color-mix(in srgb, var(--bg4), var(--accent-fill) calc(var(--switch-value, 0) * 100%)); box-shadow: inset 0 1px 2px rgb(0 20 50 / .13); pointer-events: none; }
.liquid-switch-refract { position: absolute; left: -12px; top: -12px; width: 80px; height: 54px; background: var(--bg2); z-index: 2; pointer-events: none; }
.liquid-switch-refract > .liquid-switch-track { inset: 12px; }
.liquid-switch-thumb { position: absolute; top: 0; left: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgb(0 17 51 / .24); z-index: 3; pointer-events: none; }
.liquid-switch-input:focus-visible ~ .liquid-switch-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.liquid-switch:has(input:disabled) { opacity: .5; }
/* Dashboard content keeps a single overview strip and a clean reading rhythm. */
:root[data-visual-theme="liquid"] .dashboard-header { flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 28px; }
:root[data-visual-theme="liquid"] .dashboard-header-actions { margin-left: auto; gap: 12px; }
:root[data-visual-theme="liquid"] .dashboard-quick-link { min-height: 34px; padding: 7px 13px; border-radius: 999px; font-size: 12px; line-height: 1.4; color: var(--text2); }
:root[data-visual-theme="liquid"] .dashboard-hero { padding: 32px; margin-bottom: 24px; }
:root[data-visual-theme="liquid"] .dashboard-hero-title { font-size: clamp(32px, 3.3vw, 44px); }
:root[data-visual-theme="liquid"] .dashboard-eyebrow { margin-bottom: 14px; color: var(--text2); font-size: 13px; font-weight: 400; }
:root[data-visual-theme="liquid"] .dashboard-eyebrow::before { display: none; }
:root[data-visual-theme="liquid"] .dashboard-hero-meta { gap: 10px 20px; margin-top: 18px; font-size: 14px; }
:root[data-visual-theme="liquid"] .dashboard-hero-meta svg { color: var(--text3); }
:root[data-visual-theme="liquid"] .dashboard-hero-action .btn { min-height: 42px; padding: 10px 20px; font-size: 14px; }
:root[data-visual-theme="liquid"] .dashboard-workspace::before { display: none; }
:root[data-visual-theme="liquid"] #dashboard-stats { gap: 0; margin-bottom: 24px; overflow: hidden; border: 1px solid var(--glass-rim); border-radius: 24px; background: var(--content-surface); box-shadow: var(--glass-content-shadow); }
:root[data-visual-theme="liquid"] .dashboard-stat-card { min-height: 140px; padding: 20px 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-visual-theme="liquid"] .dashboard-stat-card + .dashboard-stat-card { border-left: 1px solid var(--border); }
:root[data-visual-theme="liquid"] .dashboard-stat-card:hover { transform: none; background: var(--glass-surface); box-shadow: none; }
:root[data-visual-theme="liquid"] .dashboard-stat-card:focus-visible { outline-offset: -3px; }
:root[data-visual-theme="liquid"] .dashboard-stat-card::after { display: none; }
:root[data-visual-theme="liquid"] .dashboard-stat-icon { display: none; }
:root[data-visual-theme="liquid"] .dashboard-stat-top { min-height: 20px; }
:root[data-visual-theme="liquid"] .dashboard-stat-label { font-size: 13px; font-weight: 400; color: var(--text2); }
:root[data-visual-theme="liquid"] .dashboard-stat-value { font-size: 38px; font-weight: 500; line-height: 1.1; font-variant-numeric: proportional-nums; }
:root[data-visual-theme="liquid"] .dashboard-stat-sub { font-size: 12px; }
:root[data-visual-theme="liquid"] .dashboard-module-grid { gap: 24px; }
:root[data-visual-theme="liquid"] .dashboard-module-head { padding: 28px 28px 16px; gap: 0; }
:root[data-visual-theme="liquid"] .dashboard-module-icon, :root[data-visual-theme="liquid"] .dashboard-module-caption { display: none; }
:root[data-visual-theme="liquid"] :is(.dashboard-module-title,.profile-panel-head h3) { font-size: 22px; font-weight: 500; }
:root[data-visual-theme="liquid"] .dashboard-module-link { font-size: 13px; font-weight: 400; }
:root[data-visual-theme="liquid"] .dashboard-module-body { padding: 0 16px 20px; }
:root[data-visual-theme="liquid"] .dashboard-list-row { position: relative; padding: 18px 12px; border-radius: 16px; }
:root[data-visual-theme="liquid"] .dashboard-list-row + .dashboard-list-row { margin-top: 4px; }
:root[data-visual-theme="liquid"] .dashboard-list-row + .dashboard-list-row::before { content: ""; position: absolute; top: -3px; left: 12px; right: 12px; height: 1px; background: var(--border); pointer-events: none; }
:root[data-visual-theme="liquid"] .dashboard-list-row:is(:hover,:focus-visible)::before,
:root[data-visual-theme="liquid"] .dashboard-list-row:is(:hover,:focus-visible) + .dashboard-list-row::before { opacity: 0; }
:root[data-visual-theme="liquid"] .dashboard-list-title { font-size: 15px; font-weight: 500; }
:root[data-visual-theme="liquid"] .dashboard-list-sub { font-size: 12px; }
:root[data-visual-theme="liquid"] .dashboard-list-date { width: 42px; border: 0; background: transparent; box-shadow: none; color: var(--text2); }
:root[data-visual-theme="liquid"] .dashboard-list-date strong { font-size: 20px; font-weight: 500; color: var(--text); }
:root[data-visual-theme="liquid"] .dashboard-list-date span { font-size: 10px; }
:root[data-visual-theme="liquid"] .dashboard-list-row > .badge { padding: 0; border: 0; background: transparent; color: var(--text3); font-size: 11px; font-weight: 400; }
:root[data-visual-theme="liquid"] .dashboard-module .announcement-row-copy > strong { font-size: 16px; font-weight: 500; line-height: 1.3; }
:root[data-visual-theme="liquid"] .dashboard-module .announcement-excerpt { font-size: 14px; line-height: 1.55; }

.liquid-feedback-target { isolation: isolate; }
:root[data-visual-theme="liquid"] .liquid-feedback-target.liquid-feedback-covered:is(.btn,.quick-search-button,.notification-button,.sidebar-toggle-btn,.mob-menu-btn,.dashboard-quick-link,.dashboard-module-link,.dashboard-utility-link) { background: transparent; border-color: transparent; box-shadow: none; }
/* Text-label spacing must never move the decorative optical layers. */
:is(.liquid-control-optics,.liquid-control-material,.liquid-control-tint,.liquid-control-rim) { margin:0 !important; padding:0 !important; }
.liquid-control-optics { position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; isolation: isolate; border-radius: var(--liquid-control-radius,16px); }
.btn-accent > .liquid-control-optics { --glass-control-tint: color-mix(in srgb, var(--accent-fill) 86%, transparent); }
.btn-danger > .liquid-control-optics { --glass-control-tint: color-mix(in srgb, var(--coral) 12%, var(--content-surface)); }
:is(.dashboard-list-row,.announcement-row) > .liquid-control-optics { --glass-control-tint: var(--accent-dim2); }
.liquid-trace-surface { isolation: isolate; }
.liquid-comet-layer { --comet-ion: #599aac; --comet-light: #fff9eb; position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; border-radius: inherit; color: #c58d71; }
.liquid-comet-layer > svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.liquid-comet-line, .liquid-comet-ion { fill: none; stroke-linecap: round; }
.liquid-comet-line { stroke-width: 1.7; opacity: .8; }
.liquid-comet-halo { opacity: .4; }
.liquid-comet-plume { opacity: .65; }
.liquid-comet-wisp { opacity: .45; }
.liquid-comet-ion { stroke-width: 2.5; opacity: .4; }
.liquid-comet-aura { fill: currentColor; opacity: .95; }
.liquid-comet-head { fill: var(--comet-light); stroke: currentColor; stroke-width: .6; }
:root[data-theme="dark"] .liquid-comet-layer { --comet-ion: #b5e1e9; color: #f0d0ac; }
.liquid-comet-layer[data-cursor-trail="aurora"] { --aurora-0: #9c67bd; --aurora-1: #7c83ce; --aurora-2: #40aaa5; --aurora-3: #89c9c5; --aurora-4: #e4fff8; --comet-light: #effffb; color: #71bbb5; }
:root[data-theme="dark"] .liquid-comet-layer[data-cursor-trail="aurora"] { --aurora-0: #ad82e6; --aurora-1: #8296e9; --aurora-2: #6ed8ce; --aurora-3: #b4f0e4; color: #a0e6df; }
.liquid-comet-layer[data-cursor-trail="aurora"] :is(.liquid-comet-plume,.liquid-comet-wisp,.liquid-comet-ion),
.liquid-comet-layer[data-cursor-trail="stardust"] :is(.liquid-comet-plume,.liquid-comet-wisp,.liquid-comet-ion,.liquid-comet-line,.liquid-comet-halo) { display: none; }
.liquid-comet-layer[data-cursor-trail="aurora"] .liquid-comet-line { stroke-width: 7; opacity: .85; }
.liquid-comet-layer[data-cursor-trail="aurora"] .liquid-comet-halo { stroke-width: 24; opacity: .6; }
.liquid-comet-layer[data-cursor-trail="stardust"] { --star-0: #a16cb5; --star-1: #4f8fa3; --star-2: #b88747; color: #aa86b6; }
:root[data-theme="dark"] .liquid-comet-layer[data-cursor-trail="stardust"] { --star-0: #d9bcf7; --star-1: #a7e6eb; --star-2: #f6d49e; color: #ded1ef; }
.cursor-trail-star[data-tone="0"] { fill: var(--star-0); }
.cursor-trail-star[data-tone="1"] { fill: var(--star-1); }
.cursor-trail-star[data-tone="2"] { fill: var(--star-2); }
.liquid-comet-layer[data-cursor-trail="ribbon"] { --aurora-0: #b677b8; --aurora-1: #cd8aac; --aurora-2: #c5a0da; --aurora-3: #9bc8d4; --aurora-4: #e7ddff; color: #aa83bd; }
:root[data-theme="dark"] .liquid-comet-layer[data-cursor-trail="ribbon"] { --aurora-0: #cf94d8; --aurora-1: #eebad0; --aurora-2: #d2baff; --aurora-3: #a8e0ee; color: #d7b6eb; }
.liquid-comet-layer[data-cursor-trail="ribbon"] :is(.liquid-comet-plume,.liquid-comet-ion) { display: none; }
.liquid-comet-layer[data-cursor-trail="ribbon"] .liquid-comet-halo { stroke-width: 14; opacity: .3; }
.liquid-comet-layer[data-cursor-trail="ribbon"] .liquid-comet-line { stroke-width: 2; }
.liquid-comet-layer[data-cursor-trail="ribbon"] .liquid-comet-wisp { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .7; }
.liquid-comet-layer[data-cursor-trail="bubbles"] { --bubble: #477b97; color: #477b97; }
:root[data-theme="dark"] .liquid-comet-layer[data-cursor-trail="bubbles"] { --bubble: #c8f2ff; color: #c8f2ff; }
.liquid-comet-layer[data-cursor-trail="bubbles"] :is(.liquid-comet-plume,.liquid-comet-ion,.liquid-comet-wisp,.liquid-comet-line,.liquid-comet-halo) { display: none; }
.liquid-comet-layer[data-cursor-trail="bubbles"] .cursor-trail-star { fill: color-mix(in srgb,var(--bubble) 15%,transparent); stroke: var(--bubble); stroke-width: .8; }
:root[data-cursor-trail="off"] .liquid-comet-layer { display: none; }

@media (max-width: 900px) {
  :root[data-visual-theme="liquid"] .topbar { top: 8px; margin: 8px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); height: 56px; padding: 0 10px; }
  :root[data-visual-theme="liquid"] .sidebar { top: 0; bottom: 0; left: 0; width: var(--sidebar); border-radius: 0 26px 26px 0; }
  :root[data-visual-theme="liquid"] .mobile-navigation { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 7px; gap: 2px; border: 1px solid var(--glass-rim); border-radius: 30px; background: var(--glass-rail); box-shadow: var(--glass-content-shadow); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
  :root[data-visual-theme="liquid"] .mobile-nav-item { min-height: 52px; border-radius: 24px; }
  :root[data-visual-theme="liquid"] .page-hero { padding: 20px; }
  :root[data-visual-theme="liquid"] .dashboard-stat-card { min-height: 144px; padding: 18px; }
  :root[data-visual-theme="liquid"] .dashboard-stat-top { min-height: 40px; }
  :root[data-visual-theme="liquid"] .dashboard-stat-card:nth-child(odd) { border-left: 0; }
  :root[data-visual-theme="liquid"] .dashboard-stat-card:nth-child(n+3) { border-top: 1px solid var(--border); }
  :root[data-visual-theme="liquid"] #dashboard-stats[data-count="3"] .dashboard-stat-card:last-child { grid-column: 1 / -1; }
  :root[data-visual-theme="liquid"] .dashboard-stat-value { font-size: 34px; }
  :root[data-visual-theme="liquid"] .dashboard-header .page-title { font-size: 28px; }
  :root[data-visual-theme="liquid"] #dashboard-focus { padding: 24px; margin-bottom: 0; }
  :root[data-visual-theme="liquid"] .dashboard-hero-title { font-size: 32px; }
  :root[data-visual-theme="liquid"] .dashboard-hero-action .btn { min-height: 44px; }
  :root[data-visual-theme="liquid"] .dashboard-module-head { padding: 24px 20px 16px; }
  :root[data-visual-theme="liquid"] .dashboard-module-title { font-size: 20px; }
  :root[data-visual-theme="liquid"] .dashboard-module-body { padding: 0 16px 16px; }
  :root[data-visual-theme="liquid"] .dashboard-list-row { padding: 16px 4px; }
  :root[data-visual-theme="liquid"] .dashboard-quick-link { min-height: 44px; padding: 9px 10px; font-size: 12px; }
}
@media (max-width: 700px) {
  .visual-theme-options { grid-template-columns: 1fr; gap: 14px; }
  .visual-theme-preview { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .liquid-comet-layer { display: none; }
  .theme-reveal-orbit > i, .theme-reveal-progress span { animation: none; }
  .visual-theme-transition { transition: none; }
  :root[data-visual-theme="liquid"] *, :root[data-visual-theme="liquid"] *::before, :root[data-visual-theme="liquid"] *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  :root[data-visual-theme="liquid"] { --content-surface: var(--bg2); --glass-surface: var(--bg2); --glass-raised: var(--bg2); --glass-rail: var(--bg2); --glass-rim: var(--border2); --glass-sheen: linear-gradient(transparent, transparent); }
  :root[data-visual-theme="liquid"] body { background: var(--bg); }
  :root[data-visual-theme="liquid"] body::before,.liquid-control-material,.liquid-control-tint,.liquid-control-rim,.liquid-nav-lens,.liquid-switch-refract,.lg-refract,.lg-lens-shadow { display: none !important; }
  :root[data-visual-theme="liquid"] :is(.sidebar,.topbar,.mobile-navigation,.tab-row,.settings-nav) { background: var(--bg2); }
  :root[data-visual-theme="liquid"] .liquid-nav-ready > :is(a,button).active { background: var(--accent-dim); }
  :root[data-visual-theme="liquid"] :is(.page-hero,.dashboard-hero,.equipment-status-hero,.deployment-hero) { background: var(--bg2); }
  :root[data-visual-theme="liquid"] *, :root[data-visual-theme="liquid"] *::before, :root[data-visual-theme="liquid"] *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .liquid-control-optics { display: none; }
  lg-slider .lg-thumb { opacity: 1 !important; }
  .liquid-comet-layer { display: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-visual-theme="liquid"] { --content-surface: var(--bg2); --glass-surface: var(--bg2); --glass-raised: var(--bg2); --glass-rail: var(--bg2); }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .glass-density-control .lg-slider__input { opacity: 1; appearance: auto; }
  .glass-density-control :is(.lg-slider__track,.lg-refract,.lg-thumb,.lg-lens-shadow) { display: none; }
  .glass-density-control .lg-slider__input::-webkit-slider-thumb { -webkit-appearance: auto; appearance: auto; }
}

.visual-theme-availability { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--bg3); color: var(--text2); font-size: 10px; font-weight: 500; white-space: nowrap; }
.visual-theme-choice[aria-disabled="true"] .visual-theme-preview { opacity: .45; filter: grayscale(.65); }
.glass-background-preference[hidden] { display: none; }

:root[data-visual-theme="liquid"] .main { transition: margin-left .28s cubic-bezier(.22,.68,0,1); }
:root[data-visual-theme="liquid"] .sidebar { transition: width .28s cubic-bezier(.22,.68,0,1), transform .28s cubic-bezier(.22,.68,0,1), box-shadow .2s ease; }
:root[data-visual-theme="liquid"] body.sidebar-collapsed .sidebar-nav { padding-left: 10px; padding-right: 10px; }
:root[data-visual-theme="liquid"] body.sidebar-collapsed .nav-item:is(:hover,:active) { transform: none; }
:root[data-visual-theme="liquid"] .page { animation: none; }

@media (min-width: 901px) {
  :root[data-visual-theme="liquid"] .sidebar-logo { transition: padding .28s cubic-bezier(.22,.68,0,1); }
  :root[data-visual-theme="liquid"] .sidebar-nav { transition: padding .28s cubic-bezier(.22,.68,0,1); }
  :root[data-visual-theme="liquid"] .sidebar-nav > .nav-item { height: 43px; transition: width .28s cubic-bezier(.22,.68,0,1), height .28s cubic-bezier(.22,.68,0,1), padding .28s cubic-bezier(.22,.68,0,1), gap .28s cubic-bezier(.22,.68,0,1), margin-bottom .28s cubic-bezier(.22,.68,0,1), background .18s, color .18s; }
  :root[data-visual-theme="liquid"] body.sidebar-collapsed .sidebar-nav > .nav-item { height: 48px; }
  :root[data-visual-theme="liquid"] .nav-section-label { max-height: 40px; overflow: hidden; white-space: nowrap; transition: max-height .28s cubic-bezier(.22,.68,0,1), padding .28s cubic-bezier(.22,.68,0,1), opacity .18s; }
  :root[data-visual-theme="liquid"] body.sidebar-collapsed .nav-section-label { display: block; max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
}

:root[data-visual-theme="liquid"] :is(.setup-signup-callout,.sac-linked-callout) { border-color: var(--glass-rim); background: var(--content-surface); box-shadow: var(--glass-content-shadow); }
:root[data-visual-theme="liquid"] .signup-booking-summary { background: var(--glass-surface); border-color: var(--border); }
:root[data-visual-theme="liquid"] .signup-entry-body { transition: opacity .2s ease; }
:root[data-visual-theme="liquid"] .dashboard-module .announcement-row { width: calc(100% - 24px); margin: 4px 12px; padding: 16px; border: 1px solid transparent; border-radius: 16px; }
:root[data-visual-theme="liquid"] .dashboard-module .announcement-feed > .announcement-row { padding: 12px 14px; }
:root[data-visual-theme="liquid"] :is(.dashboard-list-row,.announcement-row):is(:hover,:focus-visible) { background: var(--accent-dim2); border-color: var(--border2); box-shadow: inset 0 1px 0 var(--glass-rim), 0 2px 8px rgb(0 20 50 / .04); }
:root[data-visual-theme="liquid"] .announcement-row:hover .announcement-row-arrow { transform: none; }
:root[data-visual-theme="liquid"] .announcement-row:focus-visible { border-radius: 16px; outline-offset: -2px; }

.crew-glass-slider { position: relative; display: block; height: 36px; }
.glass-density-control .crew-glass-slider > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 4; }
.crew-slider-track { position: absolute; left: 16px; right: 16px; top: 15px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--bg4); pointer-events: none; }
.crew-slider-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--slider-t, .35) * 100%); background: var(--accent-fill); }
.crew-slider-refract { position: absolute; inset: -12px; background: var(--bg2); pointer-events: none; z-index: 2; }
.crew-slider-refract > .crew-slider-track { left: 28px; right: 28px; top: 27px; }
.crew-slider-thumb { position: absolute; left: 0; top: 0; width: 32px; height: 26px; border-radius: 999px; box-shadow: 0 1px 4px #00113340; background: #fff; pointer-events: none; z-index: 3; }
.crew-glass-slider > input:focus-visible ~ .crew-slider-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Returning tabs can still be running the earlier renderer. Its full-panel
   decorations must never become flex items or contribute to content height. */
:is(.liquid-material-window,.lg-surface,.liquid-nav-copy,.liquid-nav-shadow)[data-liquid-decoration] {
  position: absolute !important;
  display: none !important;
  pointer-events: none !important;
}

/* Media Maroon keeps the FIS identity while retaining readable content surfaces. */
:root[data-visual-theme="liquid"][data-glass-background="maroon"] {
  --accent: #8b1538; --accent-fill: #a30b3c; --accent2: #800b2f;
  --accent-dim: rgb(163 11 60 / .16); --accent-dim2: rgb(163 11 60 / .08);
  --sidebar-accent: var(--accent); --sidebar-accent-dim: var(--accent-dim); --sidebar-accent-hover: var(--accent-dim2);
  --glass-rail-tint: rgb(255 246 249 / .23); --glass-selected-tint: rgb(255 232 239 / .72);
}
:root[data-visual-theme="liquid"][data-glass-background="maroon"][data-theme="dark"] {
  --accent: #ffb5ca; --accent-fill: #b91549; --accent2: #a10e3c;
  --accent-dim: rgb(255 150 182 / .22); --accent-dim2: rgb(255 150 182 / .12);
  --glass-rail-tint: rgb(61 16 37 / .45); --glass-selected-tint: rgb(92 34 55 / .76);
}
:root[lang="zh-CN"] { text-spacing-trim: trim-start; }

:root[lang="zh-CN"][data-visual-theme="liquid"] { --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; --font-head: var(--font-body); }
:root[lang="zh-CN"][data-visual-theme="liquid"] body { font-weight: 400; line-height: 1.65; }
:root[lang="zh-CN"][data-visual-theme="liquid"] :is(h1,h2,h3,h4,.page-title,.topbar-title,.modal-title,.dashboard-hero-title,.event-title,.section-head,.all-pages-title) { letter-spacing: 0 !important; line-height: 1.4; }
