/* Vox web. Same look as the phone app: scenery behind smoky dark glass, white text,
   one glowing ice blue accent. Status tints come from the scenery. */

:root {
  --accent: #8CD9FF;
  --ink: #0A1724;
  --error: #FF8C85;
  --todo: #94ADD1;
  --doing: #F7AD52;
  --done: #8CD1B3;
  --folder: #8FA8D8;

  --t1: #FFFFFF;
  --t2: rgba(255, 255, 255, 0.58);
  --t3: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.1);
  --fill: rgba(255, 255, 255, 0.07);
  --fill-hover: rgba(255, 255, 255, 0.12);

  /* Glass sliders in Settings, like the app. */
  --dark: 0.6;
  --frost: 0.3;
  --bg-blur: 0px;
  --bg-dim: 0;

  --r-card: 22px;
  --r-row: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--t1);
  background: #0b1018;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { background: var(--fill); border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; outline: none; color-scheme: dark; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: rgba(140, 217, 255, 0.6); box-shadow: 0 0 0 3px rgba(140, 217, 255, 0.15); }
select option { background: #141a22; }
textarea { resize: vertical; min-height: 200px; line-height: 1.55; }
::placeholder { color: var(--t3); }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Scenery ---------- */
.scenery {
  position: fixed; inset: -24px;
  background: url("scenery.jpg") center / cover;
  filter: blur(var(--bg-blur)) brightness(calc(1 - var(--bg-dim)));
  transform: scale(calc(1 + var(--bg-dim) / 2));
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
  z-index: -2;
}
.scenery::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.4));
}

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0) 45%),
    rgba(4, 8, 14, calc(var(--dark) * 0.6));
  backdrop-filter: blur(calc(var(--frost) * 36px)) saturate(1.2);
  -webkit-backdrop-filter: blur(calc(var(--frost) * 36px)) saturate(1.2);
  border-radius: var(--r-card);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.16),
    inset -1px -1px 0 rgba(255,255,255,0.03),
    0 0 0 1px rgba(255,255,255,0.06),
    0 18px 40px rgba(0,0,0,0.22);
}
.card { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.card-head h2 { font-size: 17px; font-weight: 600; }
.card-head .count { color: var(--t3); font-weight: 500; margin-left: 6px; font-size: 15px; }
.card-head a, .card-head .link { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.card-head .chev { color: var(--t3); }
.card-head .link:hover .chev { color: var(--t1); }
.hint { color: var(--t2); font-size: 14px; padding: 12px 0 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--t1);
  transition: transform 0.15s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn.glass { border-radius: 999px; }
.btn.glass:hover { background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03) 45%), rgba(4,8,14,calc(var(--dark) * 0.6)); }
.btn.primary { background: var(--accent); color: var(--ink); box-shadow: 0 0 24px rgba(140,217,255,0.35); }
.btn.primary:hover { background: #a3e0ff; }
.btn.danger { color: var(--error); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 14px; }
.btn.round { width: 40px; padding: 0; }
.btn.round.sm { width: 34px; }
.btn.on { background: var(--accent); color: var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.12em; }
.btn .icon { font-size: 16px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; }
.seg button { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--t2); display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s, color 0.2s; }
.seg button:hover { color: var(--t1); }
.seg button.on { background: rgba(255,255,255,0.92); color: #1a1a1a; }
.seg button .icon { font-size: 14px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9); white-space: nowrap; transition: background 0.2s; }
.chip.on { background: rgba(255,255,255,0.92); color: #1a1a1a; font-weight: 600; }

/* ---------- Layout ---------- */
.app { max-width: 1120px; margin: 0 auto; padding: 18px 16px 80px; min-height: 100vh; }
.screen { animation: rise 0.35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 4px 14px; }
.topbar .left { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.eyebrow.crumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.eyebrow.crumbs a { color: inherit; text-decoration: none; }
.eyebrow.crumbs a:hover { color: var(--t1); }
.eyebrow.crumbs span.sep { color: var(--t3); }
.title { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.title.editable { cursor: text; border-radius: 8px; padding: 0 4px; margin-left: -4px; }
.title.editable:hover { background: var(--fill); }
.title input { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; padding: 0 4px; height: 40px; background: var(--fill); border-color: transparent; }
.topbar .right { display: flex; gap: 8px; align-items: center; flex: none; padding-top: 16px; }
.topbar .right.flat { padding-top: 0; }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.home-grid > .col { display: grid; gap: 14px; }
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 820px) {
  .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .days { grid-template-columns: 1fr; }
  .title { font-size: 30px; }
  .topbar .right .label { display: none; }
}

/* ---------- Countdown pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  margin: 0 0 14px 4px;
}
.pill .icon { color: var(--accent); font-size: 12px; filter: drop-shadow(0 0 6px rgba(140,217,255,0.7)); }
.pill .clock { font-variant-numeric: tabular-nums; }
.pill .what { color: var(--t2); font-weight: 400; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { width: 24px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.15); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width 1s linear; }

/* ---------- Day boxes ---------- */
.day { height: 164px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.day h3 { font-size: 16px; font-weight: 600; }
.day .rows { overflow-y: auto; display: grid; gap: 8px; align-content: start; scrollbar-width: thin; }
.day .none { color: var(--t2); font-size: 12px; }
.dayrow { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; border-radius: 8px; }
.dayrow:hover { color: var(--accent); }
.dayrow .time { color: var(--t2); font-variant-numeric: tabular-nums; width: 46px; flex: none; }
.dayrow .icon { font-size: 12px; color: var(--t2); }
.dayrow .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dayrow.past { opacity: 0.45; }
.dayrow.alarm .icon { color: var(--accent); }

/* ---------- Rows ---------- */
.rows-list { display: grid; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 6px; border-top: 1px solid var(--line);
  border-radius: 10px; position: relative;
  transition: background 0.15s;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.row:first-child { border-top: 0; }
.row:hover { background: rgba(255,255,255,0.04); }
.row .open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.row .tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); flex: none; }
.row .tile .icon { font-size: 16px; }
.row .tile.folder { background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.row .text { min-width: 0; flex: 1; }
.row .t { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { font-size: 12px; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.row.done .t { text-decoration: line-through; color: var(--t2); }
.row .chev { color: rgba(255,255,255,0.25); font-size: 13px; }
.row .more { opacity: 0; color: var(--t2); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; transition: opacity 0.15s; }
.row:hover .more, .row.menu-open .more { opacity: 1; }
.row .more:hover { background: var(--fill-hover); color: var(--t1); }
.row .del { color: var(--error); width: 28px; height: 28px; display: grid; place-items: center; animation: pop 0.2s var(--ease); }
@keyframes pop { from { transform: scale(0.5); opacity: 0; } }
.row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--t2); margin: 0 15px; flex: none; }
.row .bullet { width: 36px; display: grid; place-items: center; color: var(--t1); flex: none; }
.row .bullet .icon { font-size: 20px; }
.row.plain .bullet .icon { font-size: 18px; }

.badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(247,173,82,0.18); color: var(--doing); flex: none; }
.badge.todo { background: rgba(148,173,209,0.18); color: var(--todo); }
.badge.late { background: rgba(255,140,133,0.16); color: var(--error); }
.badge.alarm { background: rgba(140,217,255,0.14); color: var(--accent); }
.stars { display: inline-flex; gap: 1px; color: var(--doing); font-size: 11px; }
.stars .off { color: rgba(255,255,255,0.22); }

/* Checkbox: circle, half for doing, filled check for done. */
.check {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255,255,255,0.45); display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s; position: relative; color: var(--ink);
}
.check:hover { border-color: var(--done); background: rgba(140,209,179,0.18); }
.check:active { transform: scale(0.9); }
.check .icon { font-size: 14px; opacity: 0; transition: opacity 0.15s; }
.check.done { background: var(--done); border-color: var(--done); }
.check.done .icon { opacity: 1; }
.check.doing { border-color: var(--doing); background: linear-gradient(90deg, var(--doing) 50%, transparent 50%); }
.check.tinted.todo { border-color: var(--todo); }

/* Inline add row at the bottom of a list. */
.addrow { display: flex; align-items: center; gap: 10px; padding: 8px 6px 2px; }
.addrow .plus { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--t2); flex: none; }
.addrow input { background: transparent; border-color: transparent; padding: 8px 6px; }
.addrow input:focus { background: var(--fill); border-color: transparent; box-shadow: none; }

/* ---------- Checklist tree ---------- */
.tree { display: grid; }
.tree ul { display: grid; padding-left: 26px; }
.tree ul.closed { display: none; }
.tree .row { border-top: 0; }
.tree .row .fold { width: 22px; height: 22px; display: grid; place-items: center; color: var(--t3); border-radius: 6px; transition: transform 0.2s var(--ease), color 0.15s; flex: none; margin-left: -4px; }
.tree .row .fold:hover { color: var(--t1); background: var(--fill); }
.tree .row .fold.closed { transform: rotate(-90deg); }
.tree .row .fold.none { visibility: hidden; }

/* ---------- Folder grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.tile-card {
  min-height: 140px; padding: 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  --c: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.tile-card.folder { background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0) 45%), color-mix(in srgb, var(--c) 22%, rgba(4,8,14,calc(var(--dark) * 0.6))); }
.tile-card:hover { transform: translateY(-2px); }
.tile-card .icon { font-size: 30px; color: var(--t1); }
.tile-card.folder .icon { color: var(--c); }
.tile-card .sp { flex: 1; }
.tile-card .t { font-size: 16px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-card .s { font-size: 12px; color: var(--t2); }
.tile-card .more { position: absolute; top: 10px; right: 10px; opacity: 0; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--t2); }
.tile-card:hover .more { opacity: 1; }
.tile-card .more:hover { background: var(--fill-hover); color: var(--t1); }

/* ---------- Board ---------- */
.board { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 18px; align-items: flex-start; scroll-snap-type: x proximity; }
.board::-webkit-scrollbar { height: 8px; }
.board::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.column { width: 300px; flex: none; padding: 12px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; max-height: calc(100vh - 220px); transition: background 0.2s; }
.column.over { background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04) 45%), rgba(255,255,255,0.08); }
.column .head { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.column .head .d { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--t2)); box-shadow: 0 0 8px var(--c, transparent); }
.column .head .n { font-size: 15px; font-weight: 600; }
.column .head .k { font-size: 13px; color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; flex: 1; }
.column .head button { color: var(--t2); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.column .head button:hover { color: var(--t1); background: var(--fill); }
.cards { display: grid; gap: 10px; overflow-y: auto; min-height: 60px; padding: 2px; scrollbar-width: thin; align-content: start; }
.tcard {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px;
  background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; position: relative;
  transition: transform 0.15s var(--ease), box-shadow 0.2s;
}
.tcard.tinted { background: color-mix(in srgb, var(--c) 16%, rgba(255,255,255,0.03)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.tcard:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.tcard .text { flex: 1; min-width: 0; }
.tcard .t { font-size: 15px; font-weight: 500; line-height: 1.3; }
.tcard.done .t { text-decoration: line-through; color: var(--t2); }
.tcard .s { font-size: 12px; color: var(--t2); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tcard .sec { font-size: 11px; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: 0.05em; }
.tcard .more { opacity: 0; color: var(--t2); width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; }
.tcard:hover .more { opacity: 1; }
.tcard .more:hover { background: var(--fill-hover); color: var(--t1); }
.addcard { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; color: var(--t2); font-size: 14px; border-radius: 12px; }
.addcard:hover { background: var(--fill); color: var(--t1); }
.addcard input { background: transparent; border-color: transparent; padding: 8px 4px; }
.addcard input:focus { box-shadow: none; }
.edit-tile { width: 130px; height: 160px; flex: none; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--t2); font-size: 14px; font-weight: 500; cursor: pointer; }
.edit-tile:hover { color: var(--t1); }
.edit-tile .icon { font-size: 24px; }

/* ---------- Note ---------- */
.note-editor { padding: 20px; }
.note-editor textarea { background: transparent; border: 0; padding: 0; font-size: 16px; min-height: 50vh; box-shadow: none; }
.note-editor textarea:focus { box-shadow: none; }
.note-editor .saved { color: var(--t3); font-size: 12px; margin-top: 10px; text-align: right; }

/* ---------- Empty ---------- */
.empty { text-align: center; color: var(--t2); padding: 40px 20px; font-size: 15px; }
.empty b { display: block; color: var(--t1); font-size: 17px; margin-bottom: 6px; }

/* ---------- Drag and drop ---------- */
body.dragging, body.dragging * { cursor: grabbing !important; }
.drag-ghost {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; margin: 0;
  opacity: 0.96; will-change: transform; box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.18) !important;
  transition: transform 0.22s var(--ease), opacity 0.2s;
}
.drag-ghost.live { transition: none; }
.drag-ghost.glass, .drag-ghost .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 20, 28, 0.96); }
.drag-ghost.tcard { background: rgba(24, 30, 40, 0.98); }
.drag-ghost.row { background: rgba(14, 20, 28, 0.96); border-radius: 12px; border-top: 0; }
.drag-placeholder { opacity: 0.25; }
.drag-placeholder.tcard, .drag-placeholder.tile-card { opacity: 0; box-shadow: inset 0 0 0 2px dashed; }
.drag-placeholder.tcard { opacity: 0.2; }
.drag-placeholder.tile-card { opacity: 0.2; }
.drop-into { outline: 2px solid var(--accent); outline-offset: -2px; box-shadow: 0 0 24px rgba(140,217,255,0.35) !important; }
.row.drop-into { background: rgba(140,217,255,0.12); }
.drop-into-crumb { color: var(--accent) !important; }
[data-zone] { min-height: 8px; }

/* ---------- Context menu ---------- */
.menu {
  position: fixed; z-index: 900; min-width: 200px; padding: 6px; border-radius: 16px;
  animation: menu-in 0.16s var(--ease);
  background: rgba(10, 14, 20, 0.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
}
@keyframes menu-in { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 14px; text-align: left; }
.menu button:hover { background: var(--fill-hover); }
.menu button .icon { font-size: 15px; color: var(--t2); width: 18px; }
.menu button.on .icon { color: var(--accent); }
.menu button.danger { color: var(--error); }
.menu button.danger .icon { color: var(--error); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .lbl { font-size: 11px; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 10px 2px; }

/* ---------- Modal ---------- */
.backdrop { position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: end center; animation: fade 0.2s; padding: 16px; }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 640px) { .backdrop { place-items: center; } }
.modal { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; animation: rise 0.3s var(--ease); background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0) 45%), rgba(6, 10, 16, 0.9); }
.modal h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.modal .field { margin-bottom: 14px; }
.modal label { display: block; font-size: 12px; font-weight: 600; color: var(--t2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.modal .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; align-items: center; }
.modal .actions .sp { flex: 1; }
.modal .err { color: var(--error); font-size: 14px; min-height: 18px; margin-top: 8px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; transition: transform 0.15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.4); }
.swatch.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); position: relative; overflow: hidden; }
.swatch.custom input { position: absolute; inset: -10px; opacity: 0; cursor: pointer; }
.details-list { display: grid; gap: 8px; }
.details-list .d { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 8px; align-items: center; }
.details-list .d button { color: var(--t3); height: 34px; border-radius: 8px; display: grid; place-items: center; }
.details-list .d button:hover { color: var(--error); background: var(--fill); }
.cols-list { display: grid; gap: 8px; }
.cols-list .c { display: grid; grid-template-columns: 24px 1fr 120px 34px; gap: 8px; align-items: center; }
.cols-list .grip { color: var(--t3); display: grid; place-items: center; cursor: grab; }
.range { display: flex; align-items: center; gap: 12px; }
.range input[type=range] { padding: 0; height: 4px; appearance: none; background: rgba(255,255,255,0.18); border: 0; border-radius: 2px; }
.range input[type=range]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.range span { width: 36px; text-align: right; color: var(--t2); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .modal { width: min(380px, 100%); padding: 30px 28px; }
.brand { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.brand span { color: var(--accent); text-shadow: 0 0 26px rgba(140,217,255,0.6); }
.login .sub { color: var(--t2); margin: 4px 0 22px; font-size: 15px; }
.login .switch { text-align: center; color: var(--t2); font-size: 14px; margin-top: 14px; }
.login .switch button { color: var(--accent); font-weight: 600; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); z-index: 950; padding: 10px 10px 10px 18px; border-radius: 999px; opacity: 0; transition: 0.3s var(--ease); pointer-events: none; display: flex; align-items: center; gap: 12px; font-size: 14px; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.err { color: var(--error); }
.toast button { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 600; font-size: 13px; }

/* ---------- Status pill in top bar ---------- */
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t2); margin-right: 4px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--done); box-shadow: 0 0 8px var(--done); }
.live.off i { background: var(--error); box-shadow: 0 0 8px var(--error); }

/* ---------- Celebration ---------- */
.burst { position: fixed; z-index: 999; pointer-events: none; width: 0; height: 0; }
.burst i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--c); animation: fly 0.7s var(--ease) forwards; }
@keyframes fly { to { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; } }

/* ---------- History ---------- */
.hist { display: grid; gap: 2px; }
.hist .row { align-items: flex-start; padding: 12px 6px; }
.hist .when { font-size: 12px; color: var(--t3); width: 92px; flex: none; padding-top: 2px; }
.hist .q { color: var(--t2); font-size: 13px; margin-top: 3px; font-style: italic; }
.hist .undone { opacity: 0.45; }
.hist .undone .t { text-decoration: line-through; }

.cmd { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 6px 6px 6px 16px; border-radius: 999px; }
.cmd .icon { color: var(--accent); font-size: 16px; filter: drop-shadow(0 0 8px rgba(140,217,255,0.7)); }
.cmd input { background: transparent; border: 0; padding: 8px 0; box-shadow: none; }
