/* angelHUB - angelOS (beach video, aero glass, bubbles, Outfit, turquoise/lavender/orange/seafoam)
   merged with HUB (dark high-contrast HUD, neon cyan/magenta/lime, Chakra Petch + JetBrains Mono). */
:root {
  /* angelOS */
  --aqua: #4DD0C4;
  --aqua-deep: #2FB8AC;
  --lav: #C9B6F5;
  --orange: #FFB06B;
  --seafoam: #8FE3C0;
  --up: #2FBF8F;
  --down: #FF7A5C;
  /* HUB */
  --cy: #00e5ff;
  --mg: #ff5fd8;
  --lime: #b6ff3c;
  --amber: #ffb020;
  --bad: #ff5c7a;
  --violet: #a58bff;
  /* shared */
  --text: #ffffff;
  --dim: #c3d3e0;
  --glass: rgba(6, 18, 30, 0.52);
  --glass-solid: #0b1a26;
  --edge: rgba(255, 255, 255, 0.24);
  --line: rgba(143, 227, 220, 0.24);
  --line-strong: rgba(143, 227, 220, 0.55);
  --f-display: 'Outfit', 'Segoe UI', Arial, sans-serif;
  --f-hud: 'Chakra Petch', 'Segoe UI', Arial, sans-serif;
  --f-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  padding: 8px;
  color: var(--text);
  font: 13px/1.4 var(--f-body);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  background: #061018;
  overflow-x: hidden;
}

/* ---- Backdrop --------------------------------------------------------- */
.bg-video { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-wash {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(201, 182, 245, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(77, 208, 196, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 15%, rgba(255, 95, 216, 0.10) 0%, transparent 45%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.42) 0%, rgba(4, 12, 22, 0.62) 100%);
  transition: background 1.2s ease;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 227, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 227, 220, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.wisp { position: fixed; z-index: 2; pointer-events: none; filter: blur(2px); opacity: 0.5; }
.wisp svg { display: block; width: 100%; height: 100%; }
.wisp.w1 { top: 8%; left: -10%; width: 70vw; height: 220px; animation: wispDrift1 34s ease-in-out infinite; }
.wisp.w2 { bottom: 12%; right: -12%; width: 65vw; height: 200px; animation: wispDrift2 40s ease-in-out infinite; }
@keyframes wispDrift1 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(4vw, 3vh) rotate(1.5deg); } }
@keyframes wispDrift2 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-4vw, -2vh) rotate(-1.5deg); } }
.bubbles { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 35%, rgba(255, 255, 255, 0.03) 60%, transparent 75%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: riseUp linear infinite;
}
@keyframes riseUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.55; }
  90% { opacity: 0.32; }
  100% { transform: translateY(-115vh) translateX(30px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wisp { animation: none; } .bubble { display: none; } }

.banner, .grid-stack, .taskbar { position: relative; z-index: 5; }

/* ---- Glass primitive (angelOS gloss + HUB dark fill for contrast) ----- */
.glass, .panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02) 30%, transparent 60%),
    var(--glass);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid var(--edge);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.glass::before, .panel::before {
  content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 38%; pointer-events: none;
  border-radius: 20px 20px 60% 60% / 20px 20px 100% 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 100%);
}
/* HUB corner bracket, bottom right */
.panel::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; pointer-events: none;
  border: 2px solid var(--cy); border-left: 0; border-top: 0; border-bottom-right-radius: 19px;
  filter: drop-shadow(0 0 4px var(--cy));
}

/* ---- Panels ----------------------------------------------------------- */
.panel { display: flex; flex-direction: column; padding: 9px 13px 11px; }
.grid-stack > .grid-stack-item > .panel { overflow: hidden; }
.ptitle {
  flex: none; position: relative;
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px; min-height: 24px;
  font: 700 12px/1 var(--f-display);
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  cursor: move; user-select: none;
}
.modal .ptitle { cursor: default; margin-bottom: 14px; }
.ptitle .glyph { color: var(--aqua); text-shadow: 0 0 10px var(--cy); }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua-deep); box-shadow: 0 0 10px var(--aqua), 0 0 4px var(--cy); flex: none; }
.psub { font: 500 11px var(--f-mono); letter-spacing: 0.02em; text-transform: none; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.right { margin-left: auto; }
.stitle {
  flex: none; margin: 10px 0 6px; padding-bottom: 4px;
  font: 600 10px var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--aqua);
  border-bottom: 1px solid var(--line);
}
.pbody > .stitle:first-child { margin-top: 0; }
.pbody { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; container-type: size; }

/* ---- Gridstack theming ------------------------------------------------ */
.grid-stack-item > .ui-resizable-handle { background-image: none !important; z-index: 5; }
.grid-stack-placeholder > .placeholder-content {
  background: rgba(77, 208, 196, 0.12) !important;
  border: 1px dashed var(--aqua); border-radius: 20px;
}
.grid-stack-item.ui-draggable-dragging > .panel,
.grid-stack-item.ui-resizable-resizing > .panel { border-color: var(--aqua); box-shadow: 0 0 28px rgba(0, 229, 255, 0.4); }

/* ---- Buttons / inputs (aero glass with a turquoise charge) ------------ */
.btn {
  padding: 6px 12px; border-radius: 10px; cursor: pointer;
  font: 700 11px var(--f-display); letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  background: linear-gradient(160deg, rgba(77, 208, 196, 0.62), rgba(47, 184, 172, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn.small { padding: 3px 9px; font-size: 10px; }
.icon-btn {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; padding: 0;
  color: #fff; font-size: 14px; line-height: 1;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--edge);
}
.icon-btn:hover { background: linear-gradient(160deg, rgba(77, 208, 196, 0.5), rgba(77, 208, 196, 0.15)); }
input[type=text], input[type=number], input[type=date], input[type=password], textarea {
  color: var(--text); font: 13px var(--f-body);
  background: rgba(0, 0, 0, 0.32); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px;
  padding: 5px 9px; min-width: 0; color-scheme: dark;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
input:focus, textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.25); }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--aqua); cursor: pointer; flex: none; margin: 0; }

.slider { height: 4px; -webkit-appearance: none; appearance: none; background: rgba(255, 255, 255, 0.24); border-radius: 3px; outline: none; cursor: pointer; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--aqua-deep); border: 2px solid rgba(255, 255, 255, 0.8); box-shadow: 0 0 8px var(--cy);
}
.slider::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--aqua-deep); border: 2px solid rgba(255, 255, 255, 0.8); }
/* fingers need a bigger target than a mouse */
@media (pointer: coarse) {
  .slider { height: 6px; }
  .slider::-webkit-slider-thumb { width: 22px; height: 22px; }
  .slider::-moz-range-thumb { width: 22px; height: 22px; }
}

/* ---- Banner: world clocks + markets (bottom of the page, compact) ------ */
.banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; margin: 5px 5px 5px; }
.clocks { display: contents; }
.zone {
  display: block; min-width: 0; padding: 3px 8px; border-radius: 12px;
  color: inherit; text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 45%), rgba(6, 18, 30, 0.5);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.zone.night { border-color: rgba(201, 182, 245, 0.45); }
.zone.mkt { border-color: rgba(255, 176, 107, 0.4); }
.zone.mkt:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 45%), rgba(6, 18, 30, 0.5); }
.zone-city { display: flex; justify-content: space-between; gap: 4px; font: 600 9px var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; }
.zone-city .sun { color: var(--orange); }
.zone.night .zone-city .sun { color: var(--lav); }
.mkt-glyph { color: var(--orange); }
.zone-time { font: 600 14px/1.25 var(--f-mono); font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone.mkt .zone-time { font-size: 12px; line-height: 1.45; }
.zone-day { font: 400 9px var(--f-mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone-wx { color: var(--seafoam); }
.mkt-change.up { color: var(--up); font-weight: 600; }
.mkt-change.down { color: var(--down); font-weight: 600; }

/* ---- Today panel ------------------------------------------------------ */
.p-clock .pbody { justify-content: space-between; overflow: hidden; }
.tb-time {
  font: 700 40px/1 var(--f-hud);
  font-size: min(54cqh, 13cqw);
  letter-spacing: 0.04em; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 18px rgba(0, 229, 255, 0.6), 0 0 2px rgba(201, 182, 245, 0.8);
}
.tb-time small { font-size: 0.4em; margin-left: 6px; color: var(--aqua); }
.tb-row { display: flex; align-items: center; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.tb-date { font: 600 12px var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.chip {
  padding: 3px 11px; border-radius: 999px;
  font: 700 12px var(--f-display); letter-spacing: 0.03em; white-space: nowrap;
  color: #062018; text-shadow: none;
  background: linear-gradient(180deg, #e8fff4, var(--seafoam) 55%, var(--lime));
  box-shadow: 0 0 16px rgba(143, 227, 192, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ---- Alerts ----------------------------------------------------------- */
.alerts { flex: none; margin-bottom: 8px; display: grid; gap: 4px; }
.alert { padding: 5px 10px; border-radius: 10px; font-size: 12px; background: rgba(255, 92, 122, 0.22); border: 1px solid var(--bad); }
.alert b { font-family: var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: #ffd6de; margin-right: 8px; }

/* ---- Weather ---------------------------------------------------------- */
.wx-hero { flex: none; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-bottom: 10px; }
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-temp { font: 700 60px/0.9 var(--f-hud); color: #fff; text-shadow: 0 0 22px rgba(0, 229, 255, 0.55); font-variant-numeric: tabular-nums; }
.wx-nowmeta { color: var(--dim); font-size: 12px; white-space: nowrap; }
.wx-sky { font: 600 19px var(--f-display); color: #fff; }
.wx-minor { flex: 1; min-width: 240px; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 5px 12px; }
.kv { display: flex; flex-direction: column; border-left: 2px solid var(--aqua); padding-left: 7px; min-width: 0; }
.kv span { font: 600 9px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.kv b { font: 600 13px var(--f-mono); color: #fff; white-space: nowrap; }

.tiles { flex: 1; min-height: 190px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@container (max-width: 760px) {
  .tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-auto-rows: minmax(190px, 1fr); }
}
.tile {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: 10px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 40%), rgba(0, 0, 0, 0.36);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tlabel { font: 700 10px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--aqua); }
.tval { margin-top: 3px; font: 700 32px/1.05 var(--f-hud); color: #fff; font-variant-numeric: tabular-nums; }
.tunit { margin-left: 6px; font: 600 11px var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.tmeta { margin: 3px 0 8px; font-size: 12px; min-height: 17px; }
.tfoot { flex: none; font: 400 9px var(--f-mono); color: var(--dim); margin-top: 3px; }
.lvl-low { color: var(--lime); }
.lvl-mod { color: #ffe14d; }
.lvl-high { color: var(--amber); }
.lvl-vhigh { color: var(--bad); }
.lvl-ext { color: var(--mg); }

.spark { flex: 1; min-height: 40px; position: relative; }
.spark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spark .ln { fill: none; stroke: var(--aqua); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px var(--cy)); }
.spark .fc { fill: none; stroke: var(--lav); stroke-width: 2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.spark .now { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.7; }

.bars { flex: 1; min-height: 50px; display: flex; gap: 2px; }
.bcol { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: center; }
.bwrap { flex: 1; position: relative; background: rgba(255, 255, 255, 0.05); border-radius: 3px; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--cy), var(--aqua)); }
.bcol.now .bwrap { outline: 1px solid #fff; }
.bcol.peak .blab { color: #fff; font-weight: 600; }
.bcol.win .bwrap { background: rgba(182, 255, 60, 0.16); box-shadow: inset 0 0 0 1px var(--lime); }
.bcol.win .blab { color: #fff; font-weight: 600; }
.blab { flex: none; height: 12px; font: 400 9px var(--f-mono); color: var(--dim); white-space: nowrap; }
.bg-low { background: var(--lime); } .bg-mod { background: #ffe14d; } .bg-high { background: var(--amber); }
.bg-vhigh { background: var(--bad); } .bg-ext { background: var(--mg); }

.pollen-rows { display: grid; gap: 4px; }
.prow { display: flex; justify-content: space-between; gap: 6px; font: 500 12px var(--f-mono); border-bottom: 1px dashed var(--line); padding-bottom: 2px; }
.linklike { color: var(--aqua); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }

/* ---- Best time outside ------------------------------------------------ */
.out-head { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.out-win { font: 700 28px/1.05 var(--f-hud); white-space: nowrap; text-shadow: 0 0 18px rgba(143, 227, 192, 0.6); }
.out-score { font: 600 12px var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.out-score b { font: 700 22px var(--f-hud); color: #fff; margin-right: 4px; }
.out-score em { font-style: normal; margin-left: 8px; }

/* ---- Forecast --------------------------------------------------------- */
/* Hourly is one compact row: as many hours as fit, the rest clipped, so cells never collide. */
.hourly {
  flex: none; display: grid; overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  grid-template-rows: auto; grid-auto-rows: 0; gap: 0 3px;
}
.hr { min-width: 0; overflow: hidden; padding: 2px 0; text-align: center; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.12); }
.hr .h { font: 400 9px/1.3 var(--f-mono); color: var(--dim); }
.hr .g { font-size: 12px; line-height: 1.3; color: var(--aqua); }
.hr .t { font: 600 12px/1.3 var(--f-mono); color: #fff; }
.hr .p { font: 400 9px/1.3 var(--f-mono); color: var(--lav); }
.daily { flex: 1 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); grid-auto-rows: minmax(min-content, 1fr); gap: 6px; }
.dy { display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; padding: 5px 9px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.12); }
.dy.today { border-color: var(--aqua); box-shadow: 0 0 12px rgba(0, 229, 255, 0.25); }
.dy .d { font: 700 11px var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua); white-space: nowrap; }
.dy .s { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dy .t { font: 600 15px var(--f-mono); color: #fff; white-space: nowrap; }
.dy .t i { font-style: normal; color: var(--dim); font-weight: 400; }
.dy .x { font: 400 10px var(--f-mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Moon ------------------------------------------------------------- */
.moon-top { flex: none; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.moon-disc { flex: none; width: 38%; aspect-ratio: 1; filter: drop-shadow(0 0 20px rgba(201, 182, 245, 0.55)); }
.moon-disc svg { display: block; width: 100%; height: 100%; }
.moon-dark { fill: #0a1426; }
.moon-ring { fill: none; stroke: rgba(201, 182, 245, 0.55); stroke-width: 1.5; }
.moon-info { flex: 1; min-width: 0; }
.moon-name { font: 700 18px/1.1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; }
.moon-meta { color: var(--dim); font: 500 11px var(--f-mono); margin: 2px 0 8px; }
.moon-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 8px; }
.moon-stats .kv { border-left-color: var(--lav); }
.moon-next { flex: none; }

/* ---- Scripture -------------------------------------------------------- */
.verse-body { cursor: pointer; transition: opacity 0.45s ease; justify-content: center; }
.verse-text { margin: 0; font: italic 12px/1.45 var(--f-body); }
.verse-ref { color: var(--seafoam); font: 700 11px var(--f-display); letter-spacing: 0.04em; }

/* ---- Lists ------------------------------------------------------------ */
.plain, .list { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.plain li span:last-child { font: 500 11px var(--f-mono); color: var(--aqua); white-space: nowrap; }
.plain li.minor span:first-child { color: var(--dim); }
.plain li.soon span:last-child { color: var(--lime); font-weight: 600; }
.plain li small { display: block; font: 400 10px var(--f-mono); color: var(--dim); }

.addrow { flex: none; display: flex; gap: 6px; margin-bottom: 6px; }
.addrow input[type=text] { flex: 1; }
#bill-amt { width: 70px; }
#bill-due { width: 128px; }
.list { flex: 1; min-height: 0; overflow: auto; }
.list li { display: flex; align-items: center; gap: 6px; padding: 2px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.list li input[type=text] { flex: 1; background: transparent; border-color: transparent; padding: 4px 5px; }
.list li input[type=text]:hover { border-color: rgba(255, 255, 255, 0.2); }
.list li.done input[type=text] { text-decoration: line-through; color: var(--dim); }
.list .amt { width: 74px; text-align: right; font-family: var(--f-mono); padding: 4px 5px; }
.list .due { width: 126px; font-family: var(--f-mono); font-size: 12px; padding: 4px 5px; }
.list .tag { width: 68px; flex: none; text-align: right; font: 600 10px var(--f-mono); color: var(--dim); white-space: nowrap; }
.list li.overdue .tag { color: var(--bad); }
.list li.overdue .due { border-color: var(--bad); }
.list li.soon .tag { color: var(--amber); }
.list li.soon .due { border-color: var(--amber); }
.x-btn { flex: none; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; padding: 0; color: var(--dim); background: transparent; border: 1px solid transparent; font-size: 11px; }
.x-btn:hover { color: #fff; background: rgba(255, 92, 122, 0.3); border-color: var(--bad); }
.mo-btn { flex: none; padding: 3px 6px; border-radius: 8px; cursor: pointer; color: var(--aqua); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); font: 600 10px var(--f-mono); }
.mo-btn:hover { border-color: var(--aqua); }
.empty { color: var(--dim); font-size: 12px; padding: 6px 0; }

/* ---- Quick notes (angelOS sticky tints, HUB neon edge) ---------------- */
.note-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: minmax(110px, 1fr); gap: 8px; }
.note {
  --nc: var(--aqua);
  display: flex; flex-direction: column; min-height: 0;
  border-radius: 16px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--nc) 60%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--nc) 30%, transparent), color-mix(in srgb, var(--nc) 10%, rgba(0, 0, 0, 0.3)));
  box-shadow: 0 0 14px color-mix(in srgb, var(--nc) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.note.c1 { --nc: var(--lav); } .note.c2 { --nc: var(--orange); } .note.c3 { --nc: var(--seafoam); } .note.c4 { --nc: var(--mg); }
.note-bar { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.note-dot { width: 14px; height: 14px; border-radius: 50%; cursor: pointer; background: var(--nc); border: 2px solid #fff; padding: 0; }
.note textarea { flex: 1; min-height: 0; resize: none; background: transparent; border: 0; border-radius: 0; color: #fff; font: 13px/1.45 var(--f-body); padding: 6px 10px; }
.note textarea:focus { box-shadow: none; }

/* ---- Taskbar: music | dock | ambient ----------------------------------- */
.taskbar {
  position: fixed; z-index: 20; left: 13px; right: 13px; bottom: 8px;
  display: grid; grid-template-columns: minmax(330px, 1fr) auto minmax(280px, 1fr); gap: 10px; align-items: stretch;
}
.seg { padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.seg .glyph { color: var(--aqua); }

.music-seg { overflow: visible; }
.music-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.music-eq { display: flex; align-items: flex-end; gap: 3px; height: 14px; flex: none; }
.music-eq span { width: 3px; height: 4px; border-radius: 2px; background: var(--aqua); opacity: 0.6; }
.music-eq.playing span { animation: eqBounce 0.9s ease-in-out infinite; opacity: 0.95; box-shadow: 0 0 6px var(--cy); }
.music-eq span:nth-child(2) { animation-delay: 0.15s; }
.music-eq span:nth-child(3) { animation-delay: 0.3s; }
.music-eq span:nth-child(4) { animation-delay: 0.45s; }
@keyframes eqBounce { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.music-track { flex: 1; min-width: 0; font: 600 12px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-times { flex: none; font: 400 10px var(--f-mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.music-ctrl {
  flex: none; border-radius: 50%; padding: 0; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease;
}
.music-ctrl:hover { transform: scale(1.08); }
.music-ctrl-side { width: 26px; height: 26px; font-size: 8px; letter-spacing: -1px; }
.music-ctrl-play { width: 32px; height: 32px; font-size: 12px; background: linear-gradient(160deg, rgba(77, 208, 196, 0.7), rgba(47, 184, 172, 0.25)); box-shadow: 0 0 12px rgba(0, 229, 255, 0.35); }
.music-ctrl-toggle { width: 22px; height: 22px; font-size: 10px; opacity: 0.75; }
.music-ctrl-toggle.active { opacity: 1; background: var(--aqua-deep); border-color: rgba(255, 255, 255, 0.6); }
.music-seek-slider { flex: 1; min-width: 50px; }
.music-volume-slider { width: 60px; flex: none; }
.vol-glyph { flex: none; font-size: 10px; color: var(--dim); }
.music-expand-btn {
  flex: none; width: 20px; height: 20px; border-radius: 50%; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--edge); color: #fff; font-size: 9px;
  transition: transform 0.2s ease;
}
.music-expand-btn.open { transform: rotate(180deg); }
.playlist {
  display: none; position: absolute; left: 0; bottom: calc(100% + 10px); width: min(360px, 90vw);
  max-height: 50vh; overflow-y: auto; padding: 8px; z-index: 30;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 40%), var(--glass-solid);
}
.playlist.open { display: block; }
.playlist-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 12px; cursor: pointer; border-radius: 10px; }
.playlist-row:hover { background: rgba(255, 255, 255, 0.08); }
.playlist-row.active { color: var(--aqua); font-weight: 700; }
.playlist-row .pl-glyph { width: 14px; text-align: center; font-size: 10px; }

.dock { flex-direction: row; align-items: flex-end; gap: 6px; padding: 6px 12px; overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
.dock-icon {
  display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none;
  width: 54px; padding: 0; font: inherit; color: #fff; text-decoration: none;
  background: none; border: none; cursor: pointer;
  transition: transform 0.18s ease;
}
.dock-icon:hover, .dock-icon:focus-visible { transform: translateY(-5px) scale(1.06); }
.dock-icon .tile {
  width: 40px; height: 40px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--edge);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.dock-icon:hover .tile { border-color: var(--aqua); box-shadow: 0 0 14px rgba(0, 229, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.dock-icon .glyph { font-size: 18px; line-height: 1; color: #fff; }
.dock-icon > span:last-child { font: 600 9px var(--f-body); white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }

.ambient-head { display: flex; align-items: center; gap: 6px; font: 600 10px var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; }
.ambient-vol { width: 90px; flex: none; }
.ambient-grid { display: flex; gap: 5px; }
.ambient-chip {
  flex: 1; min-width: 0; padding: 5px 4px; border-radius: 10px; cursor: pointer;
  color: #fff; font: 600 11px var(--f-body); text-align: center; white-space: nowrap;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--edge);
}
.ambient-chip:hover { background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)); }
.ambient-chip.active { background: linear-gradient(160deg, rgba(77, 208, 196, 0.55), rgba(77, 208, 196, 0.16)); border-color: var(--aqua); box-shadow: 0 0 12px rgba(0, 229, 255, 0.35); }

/* ---- Dock folders ----------------------------------------------------- */
.folder {
  position: fixed; bottom: 100px; left: 50%; z-index: 1100;
  transform: translateX(-50%) scale(0.85); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.folder.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }
.folder-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 14px 22px; padding: 16px 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 40%), var(--glass-solid); }

/* ---- Glass app windows ------------------------------------------------ */
#windows-layer { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.glasswin {
  position: fixed; pointer-events: auto; display: flex; flex-direction: column;
  overflow: hidden; min-width: 260px; min-height: 200px; resize: both;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 30%), rgba(8, 22, 34, 0.82);
}
.glasswin.fullscreen { border-radius: 0; }
.glasswin-titlebar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: move; flex-shrink: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.glasswin-glyph { font-size: 15px; color: var(--aqua); }
.glasswin-title { flex: 1; min-width: 0; font: 600 12.5px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glasswin-host { font: 400 10.5px var(--f-mono); opacity: 0.7; margin-left: 6px; }
.glasswin-btn {
  flex: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)); border: 1px solid var(--edge);
}
.glasswin-btn:hover { background: linear-gradient(160deg, rgba(77, 208, 196, 0.5), rgba(77, 208, 196, 0.15)); }
.glasswin-body { position: relative; flex: 1; min-height: 0; }
.glasswin-body iframe { width: 100%; height: 100%; border: 0; display: block; background: #0d1f1f; }
.glasswin-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 500 12px var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; background: rgba(20, 50, 50, 0.3); }

.calc-wrap { padding: 14px; height: 100%; display: flex; flex-direction: column; }
.calc-display {
  margin-bottom: 12px; padding: 12px 16px; border-radius: 14px; text-align: right;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.18);
  font: 600 28px var(--f-hud); font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}
.calc-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(5, 1fr); gap: 8px; }
.calc-btn {
  border-radius: 12px; cursor: pointer; color: #fff; font: 600 17px var(--f-body);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.2);
}
.calc-btn:hover { background: linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)); }
.calc-btn:active { transform: scale(0.95); }
.calc-btn.op { color: var(--aqua); }
.calc-btn.zero { grid-column: span 2; }

.notepad-wrap { height: 100%; padding: 14px; }
.notepad-area { width: 100%; height: 100%; resize: none; padding: 12px 14px; border-radius: 14px; font: 14px/1.5 var(--f-body); }

.doodle-wrap { height: 100%; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.doodle-toolbar { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.doodle-swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); cursor: pointer; padding: 0; }
.doodle-swatch.active { border-color: #fff; box-shadow: 0 0 8px var(--cy); }
.doodle-clear-btn { margin-left: auto; padding: 6px 12px; border-radius: 10px; cursor: pointer; color: #fff; font: 600 11px var(--f-body); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); }
.doodle-canvas { flex: 1; width: 100%; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; background: rgba(0, 0, 0, 0.2); touch-action: none; }

/* ---- Ambient mode ----------------------------------------------------- */
body.ambient-mode .bg-wash {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(201, 182, 245, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(77, 208, 196, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(5, 10, 15, 0.58) 0%, rgba(5, 15, 20, 0.86) 100%);
}
#ambient-overlay {
  position: fixed; inset: 0; z-index: 1500; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 10, 15, 0.2);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.ambient-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(560px, 90vw); cursor: default; }
.ambient-clock { font: 700 120px/1 var(--f-hud); letter-spacing: 0.03em; text-shadow: 0 0 40px rgba(0, 229, 255, 0.55), 0 0 4px rgba(201, 182, 245, 0.9); }
.ambient-date { margin-top: -10px; font: 600 15px var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.ambient-stage .seg { width: 100%; padding: 16px 22px; }
.ambient-stage .music-track { font-size: 16px; }
.ambient-stage .music-ctrl-play { width: 48px; height: 48px; font-size: 18px; }
.ambient-stage .music-ctrl-side { width: 36px; height: 36px; font-size: 11px; }
.ambient-stage .music-ctrl-toggle { width: 30px; height: 30px; font-size: 12px; }
.ambient-stage .ambient-chip { padding: 8px 6px; font-size: 12px; }

/* ---- Public layout: featured scripture, markets panel, compact weather ---- */
.p-verse.featured {
  border-color: rgba(201, 182, 245, 0.6);
  box-shadow: 0 0 34px rgba(201, 182, 245, 0.35), 0 0 12px rgba(0, 229, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.p-verse.featured .ptitle { font-size: 13px; }
.p-verse.featured .verse-ref { font-size: 14px; }
.p-verse.featured .verse-body { align-items: center; text-align: center; padding: 0 4%; }
.p-verse.featured .verse-text {
  font-size: clamp(14px, min(15cqh, 3.4cqw), 34px); line-height: 1.4;
  text-shadow: 0 0 18px rgba(201, 182, 245, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.markets { display: flex; flex-direction: column; gap: 4px; }
.markets .zone { display: flex; align-items: center; gap: 8px; padding: 3px 10px; border-radius: 10px; flex: none; }
.markets .zone-city { flex: 1; overflow: hidden; }
.markets .mkt-glyph { display: none; }
.markets .zone-time { flex: none; font-size: 13px; }
.markets .zone-day { flex: none; width: 76px; text-align: right; }

.tiles { min-height: 150px; }
/* narrower default weather panel: keep all five tiles on one row */
@container (min-width: 480px) {
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; }
}
.tile { padding: 8px; }
.tval { font-size: 26px; }
.tlabel { letter-spacing: 0.08em; }
.daily { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }
.dy { padding: 5px 7px; }
.moon-disc { width: 30%; }
.moon-next { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }

/* ---- Location ---------------------------------------------------------- */
.place-btn { padding: 0; border: 0; background: none; cursor: pointer; color: var(--seafoam); font: 500 11px var(--f-mono); text-decoration: underline dotted; text-underline-offset: 3px; text-shadow: inherit; }
.place-btn:hover { color: #fff; }
.loc-row { display: flex; gap: 8px; margin-top: 6px; }
.loc-row input { flex: 1; }
.set-place { font: 600 13px var(--f-mono); margin-right: 10px; }

/* ---- Settings modal --------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.modal-box { width: min(470px, 100%); max-height: 100%; overflow: auto; padding: 16px 18px 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 30%), var(--glass-solid); }
.field { display: grid; gap: 6px; font: 600 11px var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; cursor: pointer; }
.hint { color: var(--dim); font-size: 12px; margin: 8px 0; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Narrow screens: taskbar stacks into the page flow ---------------- */
@media (max-width: 900px) {
  /* relative, not static: static drops the z-index and the fixed wash/grid
     layers painted over the taskbar, dimming all three segments */
  .taskbar { position: relative; z-index: 20; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr; margin: 8px 5px 0; }
  body.clocks-docked .banner { display: none; }
  .p-clocks .clocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 5px; }
  .p-clocks .zone { padding: 3px 6px; }
  .folder { bottom: 20px; }
}
