/* DV46 LIQUID · Daylight: clear frosted glass over a sunset lake; a water droplet for the active item. */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --side-w: 300px; --rail-w: 92px; --icon-cx: 36px; --sb-pad: 14px; --ic: 25px; --row-h: 62px; --row-r: 16px; --row-fs: 19px; --row-gap: 6px;
  --radius-sb: 30px; --lane: 86px; --gap: 28px; --app-pad: 28px;
  --bg: #6b6fb5;
  --ink: #17171c; --ink-2: #1f1f26; --ink-3: rgba(28, 28, 44, .58); --line: rgba(30, 30, 60, .1);
  --accent: #2f6df6; --accent-hot: #ff3b30; --focus: #1d5cff; --kbd-bg: rgba(255, 255, 255, .55);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .54) 0%, rgba(255, 252, 255, .42) 45%, rgba(255, 250, 255, .38) 100%);
  --glass-filter: blur(30px) saturate(170%) brightness(1.04);
  --glass-filter-strong: blur(40px) saturate(170%);
  --glass-rim: linear-gradient(165deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .45) 30%, rgba(255, 255, 255, .25) 70%, rgba(255, 255, 255, .6));
  --glass-sheen: radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%);
  --glass-shadow: 0 40px 80px -30px rgba(40, 20, 90, .45), 0 2px 10px rgba(60, 40, 120, .12);
  --edge-line: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .85) 14%, rgba(255, 255, 255, .5) 80%, rgba(255, 255, 255, 0));
  --hover-bg: rgba(255, 255, 255, .26);
  --pill-bg: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .46));
  --pill-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 10px 24px -12px rgba(70, 40, 120, .45);
  --pill-shadow-rm: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 16px -8px rgba(70, 40, 120, .35);
  --ripple: rgba(255, 255, 255, .95); --ripple-glow: rgba(255, 255, 255, .5);
  --drop-line: #2f6df6; --placeholder: rgba(30, 30, 80, .35);
  --ghost-bg: rgba(255, 255, 255, .72); --ghost-shadow: 0 24px 50px -16px rgba(50, 30, 100, .5), inset 0 0 0 1px rgba(255, 255, 255, .9);
  --tip-bg: rgba(255, 255, 255, .78); --tip-ink: var(--ink); --pop-shadow: 0 14px 30px -12px rgba(50, 30, 100, .45), 0 0 0 1px rgba(255, 255, 255, .7);
  --scrim: rgba(30, 20, 70, .22);
  --pal-bg: rgba(255, 255, 255, .62); --pal-shadow: 0 40px 90px -24px rgba(40, 20, 90, .55), 0 0 0 1px rgba(255, 255, 255, .6); --pal-sel: rgba(255, 255, 255, .6); --pal-ic-bg: rgba(255, 255, 255, .6);
  --overlay-shadow: 30px 0 80px -30px rgba(40, 20, 90, .6);
  --grip: rgba(30, 30, 60, .3); --dot-ring: rgba(255, 255, 255, .9);
  --card-bg: linear-gradient(180deg, rgba(255, 248, 251, .78), rgba(255, 244, 248, .66));
  --card-shadow: 0 30px 60px -28px rgba(50, 20, 90, .5), inset 0 0 0 1px rgba(255, 255, 255, .6);
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #f4f5ff; --ink-2: #e8eaff; --ink-3: rgba(220, 226, 255, .62); --line: rgba(255, 255, 255, .12);
  --accent: #7aa7ff; --focus: #8fb4ff; --kbd-bg: rgba(255, 255, 255, .1);
  --glass-bg: linear-gradient(180deg, rgba(40, 52, 110, .42), rgba(20, 28, 70, .38));
  --glass-filter: blur(30px) saturate(150%) brightness(.9);
  --glass-rim: linear-gradient(165deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .14) 30%, rgba(255, 255, 255, .08) 70%, rgba(255, 255, 255, .25));
  --glass-sheen: radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 60%);
  --glass-shadow: 0 40px 80px -30px rgba(0, 0, 20, .8);
  --edge-line: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .4) 14%, rgba(255, 255, 255, .2) 80%, rgba(255, 255, 255, 0));
  --hover-bg: rgba(255, 255, 255, .08);
  --pill-bg: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .12));
  --pill-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px -12px rgba(0, 0, 20, .7);
  --pill-shadow-rm: inset 0 0 0 1px rgba(255, 255, 255, .4);
  --ripple: rgba(200, 220, 255, .85); --ripple-glow: rgba(150, 180, 255, .35);
  --drop-line: #8fb4ff; --placeholder: rgba(255, 255, 255, .4);
  --ghost-bg: rgba(40, 52, 110, .8); --ghost-shadow: 0 24px 50px -16px rgba(0, 0, 20, .8), inset 0 0 0 1px rgba(255, 255, 255, .25);
  --tip-bg: rgba(30, 40, 90, .85); --pop-shadow: 0 14px 30px -12px rgba(0, 0, 20, .7), 0 0 0 1px rgba(255, 255, 255, .15);
  --scrim: rgba(0, 0, 20, .4);
  --pal-bg: rgba(26, 34, 80, .72); --pal-shadow: 0 40px 90px -24px rgba(0, 0, 20, .8), 0 0 0 1px rgba(255, 255, 255, .12); --pal-sel: rgba(255, 255, 255, .1); --pal-ic-bg: rgba(255, 255, 255, .1);
  --grip: rgba(255, 255, 255, .35); --dot-ring: rgba(20, 28, 70, .9);
  --card-bg: linear-gradient(180deg, rgba(36, 46, 100, .55), rgba(22, 30, 76, .5));
  --card-shadow: 0 30px 60px -28px rgba(0, 0, 20, .8), inset 0 0 0 1px rgba(255, 255, 255, .14);
  color-scheme: dark;
}

body { background: #4a4f96; }
.sky-wrap { position: fixed; inset: 0; z-index: 0; background: linear-gradient(#2b4a92, #e47b98 45%, #ffc27a 60%, #2a3466); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; }
.sky.is-front { opacity: 1; }
.sky-wrap picture { position: absolute; inset: 0; }
.sky-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sky-dim { position: absolute; inset: 0; background: linear-gradient(rgba(8, 12, 48, .58), rgba(5, 8, 34, .74)); opacity: 0; transition: opacity .7s ease; pointer-events: none; }
[data-theme="dark"] .sky-dim { opacity: 1; }
.pcell picture, .np-art-wrap picture { display: contents; }
.app { z-index: 1; }

/* sidebar */
.sb-head--dl { min-height: 16px; padding: 0; }
.item { color: var(--ink-2); }
.item .ic { color: var(--ink); }
.sub-item .ic { opacity: .75; }
.badge { margin-left: 2px; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.badge .n::before { content: '('; } .badge .n::after { content: ')'; }
.item.pinged .badge { color: var(--accent); }
.disclose { color: var(--ink-3); }
.sb-foot { position: relative; padding: 10px var(--sb-pad) 14px; }
.foot-row { display: flex; align-items: center; gap: 2px; }
.space-btn { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; height: 52px; padding: 0 6px 0 calc(var(--icon-cx) - var(--sb-pad) - 18px); border-radius: 16px; text-align: left; }
.space-btn:hover { background: var(--hover-bg); }
.space-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.space-av svg, .space-av img { width: 100%; height: 100%; display: block; }
.space-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; white-space: nowrap; transition: opacity .2s .1s; }
.space-tx b { font-weight: 600; font-size: 14.5px; }
.space-tx span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.space-chev { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.icon-btn { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--ink-2); transition: background .15s; }
.icon-btn:hover { background: var(--hover-bg); }
.icon-btn .ic { width: 19px; height: 19px; }
.th-sun { display: none !important; }
[data-theme="dark"] .th-sun { display: block !important; } [data-theme="dark"] .th-moon { display: none !important; }
.expand-btn { position: absolute; left: calc(var(--icon-cx) - 19px); top: -46px; }
.menu .mi-tx { display: flex; flex-direction: column; line-height: 1.25; }
.menu .mi-tx b { font-weight: 600; } .menu .mi-tx span { font-size: 12px; color: var(--ink-3); }
.menu .space-av { width: 30px; height: 30px; }

/* main: cards float on the right, the lake stays visible */
main { padding: 0 6px 30px 0; }
.dl-top { display: none; }
.views { justify-items: end; }
.view { width: min(390px, 100%); }
.view[data-view="photos"], .view[data-view="files"], .view[data-view^="files/"], .view[data-view="calendar"], .view[data-view="music"], .view[data-view="settings"] { width: min(560px, 100%); }
.cards { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.card { position: relative; border-radius: 26px; background: var(--card-bg); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); box-shadow: var(--card-shadow); padding: 18px 18px 18px; color: var(--ink); }
.card-h { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 12px; }
.card-h h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.card-sub { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.muted { color: var(--ink-3); margin: 6px 4px; }

.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ev { display: grid; grid-template-columns: 52px 4px 1fr; align-items: center; gap: 10px; padding: 9px 10px 9px 4px; border-radius: 14px; }
.ev.is-next { background: rgba(255, 255, 255, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
[data-theme="dark"] .ev.is-next { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ev-time { font-size: 13px; color: var(--ink-3); text-align: right; align-self: start; padding-top: 2px; }
.ev-bar { width: 4px; height: 38px; border-radius: 2px; background: var(--c); }
.ev-tx { display: flex; flex-direction: column; line-height: 1.3; }
.ev-tx b { font-weight: 600; font-size: 15.5px; }
.ev-tx span { font-size: 14px; color: var(--ink-3); }

.np-top { display: flex; align-items: center; gap: 14px; }
.np-art { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: linear-gradient(#f7a46b, #6f6fc4); box-shadow: 0 10px 24px -10px rgba(60, 30, 100, .55); flex: none; }
.np-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.np-meta b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.np-meta span { font-size: 15px; color: var(--ink-3); }
.np-note { align-self: flex-start; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .5); }
.np-note .ic { width: 16px; height: 16px; }
.np-scrub { position: relative; margin: 16px 4px 0; height: 20px; display: flex; align-items: center; cursor: pointer; touch-action: none; border-radius: 6px; }
.np-rail { flex: 1; height: 5px; border-radius: 3px; background: rgba(30, 30, 60, .14); overflow: hidden; }
[data-theme="dark"] .np-rail { background: rgba(255, 255, 255, .16); }
.np-rail i { display: block; height: 100%; background: var(--ink); opacity: .75; border-radius: inherit; transform-origin: left; transform: scaleX(0); }
.np-times { display: flex; justify-content: space-between; margin: 2px 4px 0; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.np-ctrl { display: flex; justify-content: center; gap: 22px; margin-top: 6px; }
.np-b { width: 52px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--ink); }
.np-b:hover { background: var(--hover-bg); }
.np-b .ic { width: 30px; height: 30px; }
.np-play .ic { width: 34px; height: 34px; }
.np-big .np-top { flex-direction: column; align-items: flex-start; }
.np-big .np-art { width: 100%; height: auto; aspect-ratio: 1.6; border-radius: 18px; }
.np-big .np-meta { margin-top: 4px; }

.pgrid { list-style: none; margin: 0; padding: 0 0 2px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 236px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: 12px; }
.pall .pgrid { grid-template-columns: repeat(4, 1fr); max-height: none; }
.pcell { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #5560b0, #f09080 60%, #2d3a78); }
.ph { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .4s var(--ease-out); }
.ph.is-in { opacity: 1; }
.pcell:hover .ph { transform: scale(1.05); }
.arrive { animation: arrive .6s var(--ease-out); }
@keyframes arrive { from { opacity: 0; transform: scale(.85); } }
.viewer { position: absolute; inset: 8px; z-index: 3; border-radius: 20px; overflow: hidden; background: rgba(10, 10, 30, .5); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: flex; flex-direction: column; }
.viewer[hidden] { display: none; }
.viewer img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; color: #fff; }
.viewer-bar .icon-btn { color: #fff; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 14px; color: var(--ink-3); font-size: 12px; }
.day b { font-size: 18px; font-weight: 600; color: var(--ink); }
.day.today b { color: var(--accent-hot); }
.day[aria-checked="true"] { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
[data-theme="dark"] .day[aria-checked="true"] { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }

.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.qrow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 14px; text-align: left; }
.qrow:hover { background: var(--hover-bg); }
.qrow.is-now, [data-q].is-now { background: rgba(255, 255, 255, .45); }
[data-theme="dark"] [data-q].is-now { background: rgba(255, 255, 255, .1); }
.q-art { width: 44px; height: 44px; border-radius: 9px; opacity: 1; background: linear-gradient(#f7a46b, #6f6fc4); }
.q-tx { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.q-tx b { font-weight: 600; } .q-tx span { font-size: 13.5px; color: var(--ink-3); }
.q-len { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.crumbs { display: flex; gap: 6px; font-size: 13.5px; color: var(--ink-3); margin: -4px 4px 10px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.fset-h { display: flex; align-items: center; gap: 8px; margin: 10px 4px 6px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.fset-h .ic { width: 18px; height: 18px; }
.fset-h span { font-weight: 500; margin-left: 2px; }
.flist { list-style: none; margin: 0; padding: 0; }
.frow { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 12px; min-height: 46px; padding: 0 8px; border-radius: 12px; font-size: 15px; }
.frow:hover { background: var(--hover-bg); }
.f-ic .ic { width: 20px; height: 20px; color: var(--accent); }
.f-thumb { display: block; width: 30px; height: 30px; border-radius: 7px; overflow: hidden; box-shadow: 0 2px 6px -2px rgba(40, 20, 80, .4); }
.f-thumb picture { display: contents; }
.f-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-size, .f-date { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.seg { display: flex; padding: 3px; border-radius: 13px; background: rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
[data-theme="dark"] .seg { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.seg button { height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--ink-3); }
.seg button[aria-checked="true"] { background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: 0 4px 10px -4px rgba(60, 40, 120, .35); }
[data-theme="dark"] .seg button[aria-checked="true"] { background: rgba(255, 255, 255, .2); }
.set-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); font-weight: 500; font-size: 14px; }
[data-theme="dark"] .pill-btn { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.set-note { margin: 14px 4px 2px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

@media (pointer: coarse) { .icon-btn { width: 44px; height: 44px; } }

/* the tablet overlay keeps the lake visible */
.is-tablet .views { justify-items: center; }

/* smaller laptops */
@media (max-height: 820px) { :root { --row-h: 54px; --row-fs: 17px; } .pgrid { max-height: 180px; } .np-art { width: 64px; height: 64px; } }
@media (max-width: 1280px) { :root { --app-pad: 22px; --gap: 22px; } }

/* phone: glass bottom sheet, the photo fills the screen */
.m-sheet { --lane: 0px; --row-h: 52px; --row-fs: 17px; --row-gap: 2px; --radius-sheet: 30px; --main-pad-sheet: 14px; }
.m-sheet .views { justify-items: stretch; }
.m-sheet .view { width: 100% !important; }
.m-sheet .dl-top { display: flex; align-items: center; gap: 8px; height: 56px; margin-bottom: 4px; position: sticky; top: 0; z-index: 4; }
.m-sheet .dl-title { margin: 0 auto 0 4px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 14px rgba(30, 10, 60, .45); }
.glassy { background: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); color: #fff; width: 44px; height: 44px; border-radius: 22px; }
[data-theme="dark"] .glassy { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.m-sheet .cards { gap: 14px; }
.m-sheet .card { padding: 14px; border-radius: 22px; }
.m-sheet .view[data-view="home"] .card.phc, .m-sheet .view[data-view="home"] .card.npc { display: none; }
.m-sheet .pall .pgrid { grid-template-columns: repeat(3, 1fr); }
.m-sheet .sb { --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .34)); }
[data-theme="dark"].m-sheet .sb { --glass-bg: linear-gradient(180deg, rgba(40, 52, 110, .55), rgba(20, 28, 70, .5)); }
.m-sheet .sb-head--dl { display: none; }
.m-sheet .sb-body { padding: 0 12px 4px; }
.m-sheet .nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 8px; }
.m-sheet .item { padding-left: 16px; padding-right: 16px; }
.m-sheet .group .row > .item { padding-right: 52px; }
.m-sheet .disclose { right: 8px; }
.m-sheet .sub-item { padding-left: 52px; }
.m-sheet .sb-foot { border-top: 1px solid var(--line); margin: 6px 12px 0; padding: 8px 0 4px; }
.m-sheet .space-btn { padding-left: 4px; }
.m-sheet .expand-btn { display: none; }
@media (max-height: 500px) { .m-sheet { --row-h: 46px; } .m-sheet .dl-top { height: 46px; } .m-sheet .dl-title { font-size: 22px; } }
