/* Glass-only live demo: a scaled replica of desktop_v6 (composer + task list + calendar). */
.gd {
  --bg: #07070a; --fg: #ededf0; --muted: #b6b6c2; --dim: #8a8a96; --neutral: #d8d8e0;
  --fog: rgba(255, 255, 255, 0.07); --cell: rgba(255, 255, 255, 0.05); --cell-weekend: rgba(255, 255, 255, 0.07);
  --cell-out: rgba(255, 255, 255, 0.015); --hover: rgba(255, 255, 255, 0.13); --link-bg: rgba(139, 147, 255, 0.3);
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.14);
  --edge: inset 1px 1px 0 rgba(255, 255, 255, 0.14), inset -1px -1px 0 rgba(255, 255, 255, 0.05), inset 0 0 24px rgba(255, 255, 255, 0.035);
  --accent: #8b93ff; --accent-rgb: 139, 147, 255; --accent-ink: #0b0b14;
  --danger: #ff6b6b; --warn: #f5c542; --alert: #ffb326; --tint: 20%;
  position: relative; isolation: isolate; overflow: hidden;
  /* grows with the page so the calendar cells keep their shape, up to a max size (cells stop growing past ~2100px) */
  height: clamp(780px, 44vw, 940px); max-width: 2100px; margin: 0 auto; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 20px;
  font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 13px; line-height: 1.45;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}
/* the dashboard's colored light, drifting behind its glass */
.gd-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: 0.55; pointer-events: none; }
.gd-blob.b1 { width: 460px; height: 460px; left: -120px; top: 60px; background: #6e76ff; animation: gdDrift 26s ease-in-out infinite alternate; }
.gd-blob.b2 { width: 400px; height: 400px; right: 12%; top: -140px; background: #a880ff; animation: gdDrift 31s ease-in-out -8s infinite alternate-reverse; }
.gd-blob.b3 { width: 380px; height: 380px; right: -80px; bottom: -120px; background: #38bde6; opacity: 0.4; animation: gdDrift 24s ease-in-out -4s infinite alternate; }
.gd-blob.b4 { width: 260px; height: 260px; left: 36%; bottom: -80px; background: #ec66aa; opacity: 0.35; animation: gdDrift 29s ease-in-out -12s infinite alternate-reverse; }
@keyframes gdDrift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } 100% { transform: translate(-40px, 70px) scale(0.94); } }

.gd-bar {
  flex-shrink: 0; height: 48px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); background: rgba(7, 7, 10, 0.3);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.gd-brand { font-size: 17px; font-weight: 700; letter-spacing: -0.6px; }
.gd-brand i { font-style: normal; color: var(--accent); }
.gd-barr { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.gd-user { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; }
.gd-user::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; }

.gd-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); gap: 14px; padding: 14px; }
.gd-left { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.gd-pane {
  position: relative; isolation: isolate; border-radius: 16px; box-shadow: var(--edge), 0 24px 48px -26px rgba(0, 0, 0, 0.75);
}
.gd-pane::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 35%), linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), rgba(18, 18, 28, 0.42);
  backdrop-filter: blur(32px) saturate(115%); -webkit-backdrop-filter: blur(32px) saturate(115%);
}
.gd-pane::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06) 24%, transparent 60%, rgba(255, 255, 255, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* composer */
.gd-composer { padding: 15px 15px 14px; flex-shrink: 0; }
.gd-ctitle { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.gd-ctitle h4 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.2px; }
.gd-ctitle span { font-size: 11.5px; color: var(--muted); }
.gd-fog { background: var(--fog); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--edge); }
.gd-input { min-height: 64px; padding: 11px 13px 2px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.gd-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: gdBlink 1s steps(1) infinite; }
@keyframes gdBlink { 50% { opacity: 0; } }
.gd-cbar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 13px; }
.gd-count { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--dim); }
.gd-rem { display: none; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius: 6px; padding: 1px 7px; }
.gd-rem.on { display: inline-block; }
.gd-sp { flex: 1; }
.gd-add {
  background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); transition: transform 0.1s, filter 0.1s;
}
.gd-add.press { transform: translateY(1px) scale(0.97); filter: brightness(1.15); }

/* task list */
.gd-list { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.gd-lhead { display: flex; justify-content: space-between; align-items: flex-end; padding: 15px 15px 6px; flex-shrink: 0; }
.gd-ltitle { font-size: 14.5px; font-weight: 600; letter-spacing: -0.2px; }
.gd-ltitle span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 7px; }
.gd-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.gd-t { font-size: 28px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.gd-t em { font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; color: var(--accent); margin-left: 4px; }
.gd-d { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; opacity: 0.85; margin-top: 7px; }
.gd-cards { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 11px 11px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.gd-cards::-webkit-scrollbar { width: 8px; }
.gd-cards::-webkit-scrollbar-track { background: transparent; }
.gd-cards::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.gd-cards::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,0.26); }
.gd-div { display: flex; align-items: center; gap: 12px; margin: 10px 2px 9px; }
.gd-div::before, .gd-div::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--line-strong), transparent); }
.gd-div span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--dim); }
.gd-div.od::before, .gd-div.od::after { background: linear-gradient(to right, transparent, color-mix(in srgb, var(--danger) 55%, transparent), transparent); }
.gd-div.od span { color: var(--danger); }
.gd-card {
  position: relative; padding: 10px 13px 10px 16px; margin-bottom: 8px; border-radius: 13px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) var(--tint), transparent), transparent 70%), var(--fog);
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line-strong)); box-shadow: var(--edge);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.gd-card::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.gd-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--c) 70%, var(--line-strong)); }
.gd-card.od { border-color: color-mix(in srgb, var(--danger) 35%, var(--line-strong)); }
.gd-card.new { animation: gdIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards, gdGlow 2.2s ease-out 0.2s backwards; }
@keyframes gdIn { 0% { opacity: 0; transform: translateY(-8px) scale(0.98); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes gdGlow { 0%, 30% { box-shadow: var(--edge), 0 0 0 1px var(--c), 0 0 24px -4px var(--c); } 100% { box-shadow: var(--edge); } }
.gd-name { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.35; color: color-mix(in srgb, var(--c) 60%, var(--fg)); }
.gd-desc { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.gd-meta { display: flex; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
.gd-pill { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--muted); background: var(--fog); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.gd-card.od .gd-pill.when { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.gd-pill.bell { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }

/* calendar */
.gd-cal { display: flex; flex-direction: column; min-height: 0; padding: 18px; }
.gd-ctool { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 2px 14px; gap: 12px; }
.gd-month { font-size: 32px; font-weight: 600; letter-spacing: -1.1px; line-height: 1; }
.gd-year { font-family: 'IBM Plex Mono', monospace; font-size: 15px; color: var(--dim); margin-left: 10px; }
.gd-stats { display: flex; gap: 7px; margin-top: 11px; }
.gd-stat {
  --s: var(--accent); display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px 5px; border-radius: 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  color: color-mix(in srgb, var(--s) 70%, var(--fg)); background: color-mix(in srgb, var(--s) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--s) 45%, transparent); box-shadow: var(--edge);
}
.gd-stat b { font-family: 'Instrument Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--fg); letter-spacing: -0.3px; }
.gd-stat.od { --s: var(--danger); }
.gd-stat.od b { color: var(--danger); }
.gd-stat.zero { --s: var(--dim); opacity: 0.7; }
.gd-stat.zero b { color: var(--muted); }
.gd-seg { display: flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--fog); }
.gd-seg span { height: 30px; min-width: 32px; padding: 0 11px; display: grid; place-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; }
.gd-seg span + span { border-left: 1px solid var(--line-strong); }
.gd-wd, .gd-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.gd-wd { padding-bottom: 7px; }
.gd-wd span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding-left: 9px; }
.gd-grid { flex: 1; min-height: 0; }
.gd-cell {
  min-height: 0; padding: 6px 7px; overflow: hidden; display: flex; flex-direction: column; gap: 4px;
  background: var(--cell); border: 1px solid var(--line-strong); border-radius: 11px; box-shadow: var(--edge);
  transition: background 0.12s, border-color 0.12s;
}
.gd-cell.we { background: var(--cell-weekend); }
.gd-cell.out { background: var(--cell-out); border-color: var(--line); box-shadow: none; }
.gd-cell.out .n { color: var(--dim); opacity: 0.7; }
.gd-cell.out .gd-chip { opacity: 0.7; }
.gd-cell.today {
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.1) 65%), var(--cell);
  border-color: var(--accent); box-shadow: var(--edge), 0 0 0 1px var(--accent), 0 0 26px -4px rgba(var(--accent-rgb), 0.6);
}
.gd-cell.linked { background: var(--link-bg); border-color: var(--accent); box-shadow: var(--edge), 0 0 0 1px var(--accent); }
.gd-cell.bump { animation: gdBump 1.4s ease-out; }
@keyframes gdBump { 0% { box-shadow: var(--edge), 0 0 0 2px var(--accent); background: var(--link-bg); } 100% { box-shadow: var(--edge); } }
.gd-num { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.gd-num .n { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted); }
.gd-num .more { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--muted); }
.gd-cell.today .gd-num { justify-content: flex-start; gap: 7px; }
.gd-cell.today .gd-num::after { content: 'TODAY'; font-family: 'IBM Plex Mono', monospace; font-size: 9px; font-weight: 600; letter-spacing: 1.4px; color: var(--accent); }
.gd-cell.today .gd-num .more { order: 2; margin-left: auto; }
.gd-cell.today .n { color: var(--accent-ink); background: var(--accent); font-weight: 600; padding: 1px 6px; border-radius: 6px; margin-left: -4px; }
.gd-chip {
  display: flex; align-items: center; gap: 5px; height: 19px; padding: 0 6px; border-radius: 6px; flex-shrink: 0;
  font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden;
  background: color-mix(in srgb, var(--c) calc(var(--tint) + 4%), transparent);
  border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); color: color-mix(in srgb, var(--c) 55%, var(--fg));
}
.gd-chip .l { overflow: hidden; text-overflow: ellipsis; }
.gd-chip .at { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; opacity: 0.8; flex-shrink: 0; }
.gd-chip.od .l, .gd-chip.od .at { opacity: 0.7; }
.gd-chip svg { flex-shrink: 0; color: var(--alert); }

@media (max-width: 900px) {
  .gd { height: 700px; }
  .gd-body { grid-template-columns: 1fr; }
  .gd-cal { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gd-blob { animation: none; } }
