﻿*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

/* ── Scrollbar ──────────────────────────────────────────── */

html, .app {
  scrollbar-width: thin;
  scrollbar-color: #1a2e32 transparent;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #1a2e32;
  border-radius: 2px;
}

body {
  /* base gradient + a subtle cyan tint pooling toward the bottom */
  background:
    linear-gradient(to bottom, transparent 55%, #0d1a1b 160%),
    linear-gradient(145deg, #0a0e10 0%, #080c0f 50%, #0a0f12 100%);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e2eaec;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 1px cyan accent line fading at both ends, at the very top of the window */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #328F94, transparent);
  z-index: 1000;
  pointer-events: none;
}

/* ── Custom titlebar ────────────────────────────────────── */

.titlebar {
  flex-shrink: 0;
  height: 32px;
  background: #0a0f11;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  user-select: none;
}

.titlebar-title {
  font-size: 12px;
  color: #3e5258;
  letter-spacing: 0.02em;
}

.titlebar-controls {
  display: flex;
  height: 100%;
}

.tb-btn {
  width: 44px;
  height: 100%;
  border: none;
  background: transparent;
  color: #3e5258;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.12s, color 0.12s;
}

.tb-btn:hover {
  background: #141c1f;
  color: #c8d4d7;
}

.tb-close:hover {
  background: #b3303a;
  color: #e2eaec;
}

/* ── App shell ──────────────────────────────────────────── */

.app {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ── Header ─────────────────────────────────────────────── */

.header {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.date {
  font-size: 12px;
  font-weight: 400;
  color: #3e5258;
  letter-spacing: 0.025em;
}

.greeting-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.greeting {
  font-size: 25px;
  font-weight: 500;
  color: #e2eaec;
  letter-spacing: -0.015em;
}

/* ── Progress ───────────────────────────────────────────── */

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: #0d1a1d;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a5560, #328F94);
  transition: width 0.5s ease;
}

.progress-label {
  font-size: 12px;
  color: #3e5258;
  white-space: nowrap;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  text-align: right;
}

/* ── Add row ────────────────────────────────────────────── */

.add-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-row[hidden] {
  display: none;
}

.task-input {
  flex: 1;
  height: 38px;
  padding: 0 13px;
  background: linear-gradient(135deg, #0d181c, #0a1215);
  border: 0.5px solid #1a2e32;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 #1f3a3f;
  color: #e2eaec;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.task-input::placeholder {
  color: #2a3c40;
}

.task-input:focus {
  border-color: #328F94;
}

/* Validation cue — flashes when add is attempted with a field missing. */
.task-input.invalid {
  border-color: #f87171;
  animation: field-shake 0.4s ease;
}

@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

/* ── Custom dropdowns ───────────────────────────────────── */

.cdd {
  position: relative;
  flex-shrink: 0;
}

.cdd-trigger {
  height: 38px;
  padding: 0 34px 0 11px;
  background: linear-gradient(135deg, #0d181c, #0a1215);
  border: 0.5px solid #1a2e32;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 #1f3a3f;
  color: #c8d4d7;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  position: relative;
  transition: border-color 0.15s;
}

.cdd-trigger:focus {
  outline: none;
  border-color: #328F94;
}

.cdd.invalid .cdd-trigger {
  border-color: #f87171;
  animation: field-shake 0.4s ease;
}

.cdd-trigger-pre:empty {
  display: none;
}

.cdd-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #3e5258;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.cdd.open .cdd-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.cdd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cdd-panel {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 100%;
  background: linear-gradient(160deg, #0f1c20, #0a1315);
  border: 0.5px solid #1a2e32;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  z-index: 200;
  padding: 4px;
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
  pointer-events: none;
}

.cdd-panel.open-up {
  top: auto;
  bottom: calc(100% + 5px);
  transform-origin: bottom center;
}

.cdd.open .cdd-panel {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.cdd-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #c8d4d7;
  transition: background 0.1s;
  user-select: none;
  outline: none;
}

.cdd-option:hover,
.cdd-option.focused {
  background: rgba(26, 46, 50, 0.7);
}

.cdd-opt-label {
  flex: 1;
}

.cdd-check {
  display: flex;
  align-items: center;
  color: #328F94;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.1s;
}

.cdd-option[aria-selected="true"] .cdd-check {
  opacity: 1;
}

/* ── Urgent label ───────────────────────────────────────── */

.urgent-label {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1e3035;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  user-select: none;
}

.urgent-label.active {
  color: #f87171;
  text-shadow: 0 0 8px #c0192088, 0 0 16px #c0192044;
}

.add-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1f6069, #328F94);
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 12px #1a4a50;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2eaec;
  transition: opacity 0.15s;
}

.add-btn:hover {
  opacity: 0.82;
}

/* ── Category colours ───────────────────────────────────── */

[data-category="Personal"].cat-card  { border-color: #a78bfa33; box-shadow: inset 0 1px 0 0 #a78bfa22; }
[data-category="Personal"] .cat-dot  { background: #a78bfa; box-shadow: 0 0 8px #a78bfa66; }
[data-category="Personal"] .cat-name { color: #a78bfa; }
[data-category="Personal"] .checkbox.checked { background: linear-gradient(135deg, #6d28d9, #a78bfa); box-shadow: 0 0 8px #a78bfa44; }

[data-category="Shopping"].cat-card  { border-color: #2dd4bf33; box-shadow: inset 0 1px 0 0 #2dd4bf22; }
[data-category="Shopping"] .cat-dot  { background: #2dd4bf; box-shadow: 0 0 8px #2dd4bf66; }
[data-category="Shopping"] .cat-name { color: #2dd4bf; }
[data-category="Shopping"] .checkbox.checked { background: linear-gradient(135deg, #0f766e, #2dd4bf); box-shadow: 0 0 8px #2dd4bf44; }

[data-category="Maths"].cat-card  { border-color: #c084fc33; box-shadow: inset 0 1px 0 0 #c084fc22; }
[data-category="Maths"] .cat-dot  { background: #c084fc; box-shadow: 0 0 8px #c084fc66; }
[data-category="Maths"] .cat-name { color: #c084fc; }
[data-category="Maths"] .checkbox.checked { background: linear-gradient(135deg, #7c3aed, #c084fc); box-shadow: 0 0 8px #c084fc44; }

[data-category="Physics"].cat-card  { border-color: #38bdf833; box-shadow: inset 0 1px 0 0 #38bdf822; }
[data-category="Physics"] .cat-dot  { background: #38bdf8; box-shadow: 0 0 8px #38bdf866; }
[data-category="Physics"] .cat-name { color: #38bdf8; }
[data-category="Physics"] .checkbox.checked { background: linear-gradient(135deg, #0369a1, #38bdf8); box-shadow: 0 0 8px #38bdf844; }

[data-category="Coding"].cat-card  { border-color: #fb923c33; box-shadow: inset 0 1px 0 0 #fb923c22; }
[data-category="Coding"] .cat-dot  { background: #fb923c; box-shadow: 0 0 8px #fb923c66; }
[data-category="Coding"] .cat-name { color: #fb923c; }
[data-category="Coding"] .checkbox.checked { background: linear-gradient(135deg, #c2410c, #fb923c); box-shadow: 0 0 8px #fb923c44; }

[data-category="EPQ"].cat-card  { border-color: #34d39933; box-shadow: inset 0 1px 0 0 #34d39922; }
[data-category="EPQ"] .cat-dot  { background: #34d399; box-shadow: 0 0 8px #34d39966; }
[data-category="EPQ"] .cat-name { color: #34d399; }
[data-category="EPQ"] .checkbox.checked { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 0 8px #34d39944; }

[data-category="Project"].cat-card  { border-color: #818cf833; box-shadow: inset 0 1px 0 0 #818cf822; }
[data-category="Project"] .cat-dot  { background: #818cf8; box-shadow: 0 0 8px #818cf866; }
[data-category="Project"] .cat-name { color: #818cf8; }
[data-category="Project"] .checkbox.checked { background: linear-gradient(135deg, #4338ca, #818cf8); box-shadow: 0 0 8px #818cf844; }

[data-category="Admin"].cat-card  { border-color: #f8717133; box-shadow: inset 0 1px 0 0 #f8717122; }
[data-category="Admin"] .cat-dot  { background: #f87171; box-shadow: 0 0 8px #f8717166; }
[data-category="Admin"] .cat-name { color: #f87171; }
[data-category="Admin"] .checkbox.checked { background: linear-gradient(135deg, #b91c1c, #f87171); box-shadow: 0 0 8px #f8717144; }

[data-category="Cooking"].cat-card  { border-color: #fbbf2433; box-shadow: inset 0 1px 0 0 #fbbf2422; }
[data-category="Cooking"] .cat-dot  { background: #fbbf24; box-shadow: 0 0 8px #fbbf2466; }
[data-category="Cooking"] .cat-name { color: #fbbf24; }
[data-category="Cooking"] .checkbox.checked { background: linear-gradient(135deg, #b45309, #fbbf24); box-shadow: 0 0 8px #fbbf2444; }

[data-category="Health"].cat-card  { border-color: #fb718533; box-shadow: inset 0 1px 0 0 #fb718522; }
[data-category="Health"] .cat-dot  { background: #fb7185; box-shadow: 0 0 8px #fb718566; }
[data-category="Health"] .cat-name { color: #fb7185; }
[data-category="Health"] .checkbox.checked { background: linear-gradient(135deg, #be123c, #fb7185); box-shadow: 0 0 8px #fb718544; }

[data-category="Pets"].cat-card  { border-color: #1E520C33; box-shadow: inset 0 1px 0 0 #1E520C22; }
[data-category="Pets"] .cat-dot  { background: #1E520C; box-shadow: 0 0 8px #1E520C66; }
[data-category="Pets"] .cat-name { color: #1E520C; }
[data-category="Pets"] .checkbox.checked { background: linear-gradient(135deg, #0d2505, #1E520C); box-shadow: 0 0 8px #1E520C44; }

[data-category="Cleaning"].cat-card  { border-color: #6b728033; box-shadow: inset 0 1px 0 0 #6b728022; }
[data-category="Cleaning"] .cat-dot  { background: #6b7280; box-shadow: 0 0 8px #6b728066; }
[data-category="Cleaning"] .cat-name { color: #6b7280; }
[data-category="Cleaning"] .checkbox.checked { background: linear-gradient(135deg, #374151, #6b7280); box-shadow: 0 0 8px #6b728044; }

/* ── Task list ──────────────────────────────────────────── */

.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-list[hidden] {
  display: none;
}

/* ── Empty state ────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 48px 0;
  font-size: 13px;
  color: #2e3f44;
  letter-spacing: 0.01em;
}

/* ── Category card ──────────────────────────────────────── */

.cat-card {
  background: linear-gradient(160deg, #0f1c20, #0a1315);
  border: 0.5px solid #1a2e32;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 0 #1f3a3f;
  padding: 14px 16px;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}


.cat-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3e5258;
}


/* ── Task rows ──────────────────────────────────────────── */

.tasks {
  display: flex;
  flex-direction: column;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid #121a1d;
}

.task-row:first-child {
  padding-top: 0;
}

.task-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* ── Checkbox ───────────────────────────────────────────── */

.checkbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1.5px solid #1e3035;
  background: linear-gradient(135deg, #0d181c, #0a1215);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s;
}

.checkbox:hover:not(.checked) {
  border-color: #3e5258;
}

.checkbox.checked {
  border: none;
}


/* ── Task text ──────────────────────────────────────────── */

.task-text {
  flex: 1;
  font-size: 14px;
  color: #c8d4d7;
  line-height: 1.45;
  user-select: none;
  text-decoration: line-through;
  text-decoration-color: transparent;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.task-row.completed .task-text {
  color: #2e4448;
  text-decoration-color: #2e4448;
}

/* ── Priority pill ──────────────────────────────────────── */

.priority-pill {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  font-weight: 500;
  flex-shrink: 0;
  line-height: 1.6;
}

.priority-high   { background: #2a1215; border: 0.5px solid #7f1d1d; color: #f87171; }
.priority-medium { background: #271e0f; border: 0.5px solid #78350f; color: #fb923c; }
.priority-low    { background: #0f2318; border: 0.5px solid #14532d; color: #4ade80; }
.priority-urgent { background: #1a0a0a; border: 1px solid #991b1b; color: #ef4444; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }

/* ── Delete button ──────────────────────────────────────── */

.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #1e3035;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.12s, color 0.12s;
  flex-shrink: 0;
}

.task-row:hover .delete-btn,
.idea-row:hover .delete-btn {
  opacity: 1;
}

.delete-btn:hover {
  color: #328F94;
}

/* ── Ideas view ─────────────────────────────────────────── */

.ideas-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ideas-view[hidden] {
  display: none;
}

.ideas-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ideas-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ideas-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #328F94;
  box-shadow: 0 0 8px #328F9466;
}

.ideas-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #328F94;
}

.ideas-exit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: #3e5258;
  padding: 4px 6px;
  border-radius: 8px;
  transition: color 0.15s;
}

.ideas-exit:hover {
  color: #328F94;
}

.ideas-list {
  background: linear-gradient(160deg, #0f1c20, #0a1315);
  border: 0.5px solid #1a2e32;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 0 #1f3a3f;
  padding: 6px 16px;
}

.ideas-list .empty-state {
  padding: 36px 0;
}

.idea-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid #121a1d;
}

.idea-row:last-child {
  border-bottom: none;
}

/* ── Completed log view ─────────────────────────────────── */

.log-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.log-view[hidden] {
  display: none;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-list .empty-state {
  padding: 36px 0;
}

.log-group {
  background: linear-gradient(160deg, #0f1c20, #0a1315);
  border: 0.5px solid #1a2e32;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 0 #1f3a3f;
  padding: 12px 16px;
}

.log-group-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3e5258;
  margin-bottom: 8px;
}

.log-entries {
  display: flex;
  flex-direction: column;
}

.log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid #121a1d;
}

.log-row:first-child {
  padding-top: 0;
}

.log-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.log-text {
  flex: 1;
  font-size: 14px;
  color: #c8d4d7;
  line-height: 1.45;
}

.log-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #2e4448;
  font-variant-numeric: tabular-nums;
}

/* ── Launch splash ──────────────────────────────────────── */

/* Overlay is inert unless this is a fresh launch (boot-splash set
   synchronously in <head> before first paint; never set when the user
   prefers reduced motion, so they get an instant render). The app renders
   underneath it immediately — the overlay only hides, never delays. */
.splash {
  display: none;
}

html.boot-splash .splash {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background: #0a0f12;
  /* Same curve family as the logo's travel segment, so the overlay clearing
     reads as part of the logo's motion rather than a parallel fade. */
  transition: background-color 0.55s cubic-bezier(0.5, 0, 0.08, 1);
}

/* Once the handoff starts the overlay stops intercepting clicks — the UI
   fading in beneath is interactive immediately. Only the background fades;
   the travelling logo keeps full opacity. */
html.boot-splash .splash.fade-out {
  background-color: transparent;
  pointer-events: none;
}

/* Flies from centre to the header logo's measured position; the transform is
   driven entirely by the WAAPI timeline in runSplash() (gather → travel →
   settle), so no CSS transition here. */
.splash-logo {
  width: 96px;
  height: 96px;
  pointer-events: none;
  will-change: transform;
  transform-origin: center;
}

/* The real header logo stays hidden until the travelling logo lands on it,
   then the two swap in the same frame — no layout jump. */
html.boot-splash .header-logo {
  visibility: hidden;
}

html.boot-splash.logo-landed .header-logo {
  visibility: visible;
}

html.boot-splash.logo-landed .splash-logo {
  visibility: hidden;
}

/* UI entrance: greeting sharpens from a blur while the rest of the content
   rises in as one group slightly behind it. Containers are animated whole —
   no per-item stagger — so re-renders that swap .task-list children can
   never re-trigger anything. */
html.boot-splash .date,
html.boot-splash .greeting,
html.boot-splash .progress-row,
html.boot-splash .add-row,
html.boot-splash .task-list {
  opacity: 0;
}

@keyframes blur-in {
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 1; filter: blur(0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal starts at ~100ms while the logo is mid-flight and is staggered so
   greeting (~870ms), content (~710ms) and the logo itself (~800ms overall)
   come to rest in one beat — the interface arrives in the logo's wake.
   Greeting delay is pushed back past the content group so the text doesn't
   fade in while the header logo is still mid-flight — that made its dark
   square silhouette briefly visible behind/against the text. */
html.boot-splash.revealing .date,
html.boot-splash.revealing .greeting {
  animation: blur-in 0.4s cubic-bezier(0.25, 0.6, 0.35, 1) 0.37s both;
}

html.boot-splash.revealing .progress-row,
html.boot-splash.revealing .add-row,
html.boot-splash.revealing .task-list {
  animation: rise-in 0.45s cubic-bezier(0.25, 0.6, 0.35, 1) 0.16s both;
}

/* ── Corner options menu ────────────────────────────────── */

.corner-menu {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 300;
}

.corner-btn {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0d181c, #0a1215);
  border: 0.5px solid #1a2e32;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 #1f3a3f;
  color: #3e5258;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}

.corner-btn:hover,
.corner-menu.open .corner-btn {
  color: #328F94;
  border-color: #328F94;
}

.corner-panel {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 150px;
  background: linear-gradient(160deg, #0f1c20, #0a1315);
  border: 0.5px solid #1a2e32;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  padding: 4px;
  display: flex;
  flex-direction: column;
  transform-origin: bottom center;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
  pointer-events: none;
}

.corner-menu.open .corner-panel {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.corner-option {
  text-align: left;
  background: none;
  border: none;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: #c8d4d7;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
  outline: none;
}

.corner-option:hover,
.corner-option:focus-visible {
  background: rgba(26, 46, 50, 0.7);
  color: #328F94;
}

