/* Home Base page layout on top of Deck Neon (deck-neon/*.css, copied from
   mikah-deck by scripts/sync-deck-neon.mjs; don't edit those files here). */

html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
main.wrap { flex: 1; display: grid; gap: var(--space-5, 26px); align-content: start; padding-top: 28px; padding-bottom: 40px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--text); color: var(--ground); border-radius: 6px; }
.skip:focus { left: 8px; }

.dn-page-head h1 { font-size: clamp(40px, 9vw, 72px); }

/* the Lens mark, drawn in CSS colors because the CSP blocks inline styles */
.lens-mark .lm-pane { fill: var(--lens); fill-opacity: 0.08; stroke: var(--lens); stroke-opacity: 0.55; stroke-width: 1.6; }
.lens-mark .lm-leak { stroke: var(--lens); stroke-width: 2.6; stroke-linecap: round; }
.lens-mark .lm-warm { fill: var(--lens-fringe-warm); }
.lens-mark .lm-cool { fill: var(--lens-fringe-cool); }

.dn-nav { position: sticky; top: 0; z-index: 5; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.dn-nav form { margin: 0; }
.dn-nav .dn-btn { min-height: 38px; padding: 8px 14px; font-size: 15px; }

a.dn-btn { text-decoration: none; }
.dn-btn { cursor: pointer; }
.dn-btn[disabled] { cursor: progress; opacity: 0.7; }

.stack { display: grid; gap: 14px; }
.dn-field { max-width: none; }
.capture .dn-field { max-width: 720px; }

.notice { max-width: 640px; }

/* Home: three columns on wide screens; below that the columns dissolve and the
   order classes put the panels back in reading order. No CSS multi-column:
   Safari mis-draws glass panels inside it. */
.sections { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.sections .col { display: contents; }
.sections .slot { min-width: 0; }
.o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .o6 { order: 6; } .o7 { order: 7; }
@media (min-width: 720px) { .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .sections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sections .col { display: grid; gap: 18px; align-content: start; }
  .sections .slot { order: 0; }
}
.dn-panel-title { margin: 0; }
.dn-panel .dn-note { margin: 0; }

.plain { list-style: none; margin: 0; padding: 0; }
.key-row { grid-template-columns: 1fr auto; }
.dn-row-main { display: grid; gap: 2px; min-width: 0; }
.dn-row-end { margin: 0; }

.login { display: grid; gap: 22px; max-width: 520px; }
.login-passkey { display: grid; gap: 10px; justify-items: start; }
.login-password summary { cursor: pointer; font: 600 14px/1.2 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.login-password[open] summary { margin-bottom: 14px; }
.login-password .dn-note { margin: 14px 0 0; }

.site-foot { padding-top: 12px; padding-bottom: 28px; font: 400 14px/1.4 var(--font-body); }
.site-foot a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--lens); text-underline-offset: 3px; }
.site-foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Deck Neon defaults --dn-state to green, which means "ready". Labels and
   neutral panel eyebrows aren't a state, so they read in text or muted. */
.dn-field > .dn-eyebrow { color: var(--text); }
.dn-panel:not([data-state]):not(.is-dim) .dn-panel-head .dn-eyebrow { color: var(--muted); }

/* ---- Screens ---- */

.dn-nav-links { gap: 18px; }
.dn-btn.small { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.inline { display: inline; margin: 0; }
.quiet-link { color: var(--muted); font: 600 13px/1.2 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.quiet-link:hover { color: var(--text); }
.dn-muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--lens); text-underline-offset: 3px; overflow-wrap: anywhere; }
.dn-page-head .dn-eyebrow a { color: inherit; text-decoration: none; }
.dn-page-head .dn-eyebrow a:hover { color: var(--text); }

/* tabs: tracked caps, the current one lit like the nav */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 10px; background: var(--lens-glass); border: 1px solid var(--lens-edge); max-width: 100%; }
.tabs a { padding: 8px 12px; border-radius: 7px; font: 600 13px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--text); background: var(--lens-glass-top); box-shadow: inset 0 1px 0 var(--lens-sheen), 0 0 0 1px var(--lens-edge); }
.tabs a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* rows */
.dn-row-main { text-decoration: none; color: inherit; }
a.dn-row-main:hover .dn-row-title { text-decoration: underline; text-decoration-color: var(--lens); text-underline-offset: 3px; }
/* Deck Neon's row title is a one-line key label; task and project names are
   sentences, so they wrap in body type instead of truncating in caps. */
.dn-row-title { font: 600 15.5px/1.3 var(--font-body); text-transform: none; letter-spacing: 0; white-space: normal; overflow: visible; color: var(--text); overflow-wrap: anywhere; }
.dn-row-note { font: 400 13.5px/1.35 var(--font-body); color: var(--muted); white-space: normal; overflow: visible; }
.dn-row-end { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dn-list .dn-row { grid-template-columns: 1fr auto; }
/* In a narrow panel, a task's buttons sit under its name. */
.dn-panel { container-type: inline-size; }
.dn-list .task-row { grid-template-columns: 1fr; gap: 8px; }
.task-row .dn-row-end { justify-content: flex-start; }
@container (min-width: 520px) {
  .dn-list .task-row { grid-template-columns: 1fr auto; }
  .task-row .dn-row-end { justify-content: flex-end; }
}
.task-row .overdue { color: var(--red); font-weight: 600; }
.dn-panel h3.group { margin: 10px 0 0; font: 600 12px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dn-panel h3.group:first-of-type { margin-top: 0; }
.empty { margin: 0; }

/* forms */
.field-input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-lens-control, 9px); border: 1px solid var(--lens-edge); background: var(--lens-glass); color: var(--text); font: 500 15px/1.3 var(--font-body); }
.field-input:focus { outline: none; border-color: color-mix(in srgb, var(--text) 42%, transparent); background: var(--lens-glass-top); }
.field-input:disabled { color: var(--muted); }
textarea.field-input { resize: vertical; line-height: 1.5; }
select.field-input[multiple] { padding: 6px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.form-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.form-field.wide { grid-column: 1 / -1; }
.form-field .dn-eyebrow, .checks legend { color: var(--text); font-size: 12px; }
fieldset.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
fieldset.checks legend { margin-bottom: 8px; padding: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font: 400 15px/1.3 var(--font-body); min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--text); }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.record-layout { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .record-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.record-form { gap: 18px; }
.record-side { display: grid; gap: 18px; }
.delete-form { margin: 0; }
.action-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font: 400 14px/1.4 var(--font-body); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.filter { display: grid; gap: 6px; min-width: 150px; }
.filter.grow { flex: 1 1 220px; }
.filters .push { margin-left: auto; }
.today-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.today-form .dn-input-wrap { grid-column: 1 / -1; }
.today-form .field-input { min-height: 46px; }
.capture-card { gap: 16px; }
.capture-card form { margin: 0; }
.keep { padding-top: 14px; border-top: 1px solid var(--track); }
.report { margin: 0; padding-left: 1.2em; font: 400 14px/1.5 var(--font-body); color: var(--muted); max-height: 320px; overflow: auto; }

/* the Builds board */
.board { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); overflow-x: auto; padding-bottom: 8px; }
.board-col { display: grid; gap: 10px; align-content: start; }
.board-col h2 { margin: 0; color: var(--muted); }
.card { display: grid; gap: 4px; padding: 12px 14px; text-decoration: none; color: inherit; }

.dn-prose pre { overflow-x: auto; padding: 12px; border-radius: 8px; background: var(--track); font: 500 13px/1.5 var(--font-mono); }
.dn-prose .todo { list-style: none; margin-left: -1.1em; }
.synced .facts { font-size: 13px; }

/* Wide tables scroll inside their panel instead of widening the page. */
main.wrap > *, .dn-panel > *, .record-layout > * { min-width: 0; }
.dn-table a { color: var(--text); text-decoration: none; font-weight: 600; }
.dn-table a:hover { text-decoration: underline; text-decoration-color: var(--lens); text-underline-offset: 3px; }
.dn-table td { vertical-align: top; }
.dn-panel-head { gap: 12px; flex-wrap: wrap; }
