:root {
  color-scheme: dark;
  --ink: #fff5ed;
  --muted: #ac978a;
  --line: rgba(255, 197, 155, 0.15);
  --panel: #1a110d;
  --panel-2: #100a07;
  --mint: #f37321;
  --mint-strong: #ff9a57;
  --coral: #ffc06b;
  --sand: #ffd199;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; height: 100%; background: var(--panel-2); }
body { height: 100%; margin: 0; overflow: hidden; background: var(--panel-2); color: var(--ink); font-family: var(--sans); }
body.warm-mode { --mint: #ff9a57; --mint-strong: #ffd199; --panel: #251008; --panel-2: #160803; --line: rgba(255, 210, 169, .2); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }

.app-shell { height: 100dvh; min-height: 0; display: grid; grid-template-columns: minmax(332px, 31vw) 1fr; overflow: hidden; }
.list-panel { min-height: 0; height: 100%; padding: 28px 28px 22px; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); position: relative; z-index: 2; }
.panel-header, .summary-top, .summary-bottom, .section-label, .scene-topbar, .corner-info { display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.05em; font-size: clamp(14px, 1.35vw, 19px); display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 2px; }
.brand-mark i { display: block; background: var(--mint); border-radius: 1px; transform: rotate(-27deg); }
.brand-mark i:nth-child(1) { height: 9px; opacity: .55; }.brand-mark i:nth-child(2) { height: 16px; }.brand-mark i:nth-child(3) { height: 12px; opacity: .8; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s; }
.icon-button:hover { color: var(--mint); border-color: var(--mint); }.icon-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.intro { margin: clamp(28px, 6vh, 61px) 0 clamp(18px, 3vh, 29px); }.eyebrow { margin: 0 0 11px; color: var(--mint); font-family: var(--mono); font-size: 10px; letter-spacing: .13em; font-weight: 500; }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -0.065em; line-height: .99; } h1 { font-size: clamp(42px, 4.2vw, 62px); } h1 em { font-family: var(--serif); font-weight: 400; color: var(--mint); }
.intro-copy { color: var(--muted); margin: 18px 0 0; font-size: 12px; line-height: 1.7; letter-spacing: -.02em; }
.summary-card { padding: 15px 16px 13px; border: 1px solid var(--line); background: rgba(31, 12, 5, .24); border-radius: 4px; }
.summary-top { color: var(--muted); font-size: 11px; }.summary-top strong { color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.meter { height: 3px; margin: 14px 0 10px; overflow: hidden; border-radius: 9px; background: rgba(214, 250, 239, .11); }.meter span { display: block; width: 0%; height: 100%; background: var(--mint); border-radius: inherit; box-shadow: 0 0 12px var(--mint); transition: width .55s cubic-bezier(.2,.9,.3,1); }
.summary-bottom { color: var(--muted); font-family: var(--mono); font-size: 10px; }.summary-bottom span:first-child { color: var(--mint); }
.filter-row { display: flex; gap: 5px; padding: clamp(16px, 3vh, 28px) 0 14px; }.filter { padding: 7px 9px; color: var(--muted); font-size: 11px; font-weight: 700; border: 0; background: transparent; border-radius: 3px; transition: .2s; }.filter span { margin-left: 3px; font-family: var(--mono); font-size: 9px; opacity: .75; }.filter:hover { color: var(--ink); }.filter.active { background: rgba(243,115,33,.15); color: var(--mint); }
.items-wrap { min-height: 0; flex: 1; overflow-y: auto; padding-right: 2px; }.items-wrap::-webkit-scrollbar { width: 3px; }.items-wrap::-webkit-scrollbar-thumb { background: var(--line); }.section-label { padding: 0 4px 7px; color: var(--muted); text-transform: uppercase; font-family: var(--mono); font-size: 9px; letter-spacing: .11em; }
.item-list { padding: 0; margin: 0; list-style: none; }.item { display: grid; grid-template-columns: 25px 1fr 20px; align-items: center; gap: 8px; padding: 13px 4px; border-top: 1px solid var(--line); animation: item-in .35s both; }.item:last-child { border-bottom: 1px solid var(--line); }
.check { appearance: none; width: 17px; height: 17px; padding: 0; border: 1px solid #80675c; background: transparent; border-radius: 50%; position: relative; transition: .22s; }.check::after { content: ''; position: absolute; width: 6px; height: 3px; left: 4px; top: 4px; border-bottom: 1.5px solid #241008; border-left: 1.5px solid #241008; transform: rotate(-45deg) scale(0); transition: .18s; }.check:hover { border-color: var(--mint); }.item.done .check { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 15px rgba(243,115,33,.38); }.item.done .check::after { transform: rotate(-45deg) scale(1); }
.item-title { color: #f1ded1; font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; cursor: pointer; transition: .2s; }.item.done .item-title { color: #927b70; text-decoration: line-through; text-decoration-color: rgba(243,115,33,.55); }.item:hover .item-title { color: var(--mint); }
.delete { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: transparent; display: grid; place-items: center; transition: .15s; }.delete svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }.item:hover .delete { color: #80908d; }.delete:hover { background: rgba(255,144,125,.14); color: var(--coral) !important; }
.empty { color: var(--muted); padding: 20px 4px; font-size: 12px; line-height: 1.6; }
.new-item-form { margin-top: 18px; display: flex; border: 1px solid var(--line); background: #120906; border-radius: 4px; overflow: hidden; transition: border-color .2s; }.new-item-form:focus-within { border-color: rgba(243,115,33,.7); }.new-item-form input { min-width: 0; flex: 1; color: var(--ink); background: none; border: 0; outline: none; padding: 12px 12px; font-size: 12px; }.new-item-form input::placeholder { color: #8d7162; }.new-item-form button { width: 42px; border: 0; background: transparent; color: var(--mint); display: grid; place-items: center; }.new-item-form button:hover { background: rgba(243,115,33,.12); }.new-item-form svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.scene-panel { min-height: 0; height: 100%; isolation: isolate; position: relative; overflow: hidden; background: radial-gradient(circle at 64% 43%, #4c2615 0%, #25130c 31%, #100a07 68%); }.scene-panel::before { content: ''; pointer-events: none; z-index: -1; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(rgba(255,184,134,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,184,134,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent); }
.scene-topbar { position: absolute; inset: 28px 32px auto 34px; z-index: 2; }.live-status, .scene-control, .corner-info, .scene-legend { font-family: var(--mono); letter-spacing: .07em; font-size: 9px; }.live-status { color: #c3a99b; display: flex; align-items: center; gap: 7px; }.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(243,115,33,.65); animation: pulse 2s infinite; }.scene-actions { display: flex; gap: 18px; }.scene-control { padding: 0; border: 0; color: #bea292; background: transparent; transition: color .2s; }.scene-control:hover { color: var(--mint); }
.live-status.offline .pulse { background: #977462; box-shadow: none; animation: none; }.live-status.offline { color: #977462; }
.scene-copy { position: absolute; z-index: 2; top: clamp(78px, 10vh, 112px); left: clamp(34px, 6.7vw, 106px); right: clamp(34px, 6.7vw, 106px); display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; pointer-events: none; }.scene-heading { flex: 1; }.scene-copy .eyebrow { margin-bottom: 13px; }.scene-copy h2 { color: #fff4ea; font-size: clamp(35px, 3.7vw, 54px); }.scene-copy h2 span { color: var(--mint); font-family: var(--serif); font-style: italic; font-weight: 400; }.scene-heading > p:last-child { color: #c6aa9b; margin: 16px 0 0; font-size: 12px; line-height: 1.62; letter-spacing: -.025em; }.scene-score { flex: 0 0 auto; min-width: 128px; margin-top: 6px; padding: 0 0 10px 18px; border-left: 1px solid var(--line); display: grid; gap: 3px; }.scene-score span, .scene-score small { color: #c3a08c; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }.scene-score strong { color: var(--mint); font-family: var(--serif); font-size: clamp(42px, 4vw, 62px); font-weight: 400; line-height: 1; letter-spacing: -.07em; }
.canvas-mount { position: absolute; z-index: 1; top: clamp(276px, 37vh, 330px); right: 20px; bottom: 58px; left: 20px; cursor: grab; }.canvas-mount:active { cursor: grabbing; }.canvas-mount canvas { display: block; outline: none; }
.scene-legend { position: absolute; z-index: 2; bottom: 29px; left: 34px; color: #c1a79a; display: flex; gap: 14px; }.scene-legend span { display: flex; align-items: center; gap: 5px; }.legend-dot { width: 6px; height: 6px; border-radius: 50%; }.done-dot { background: var(--mint); box-shadow: 0 0 8px var(--mint); }.pending-dot { border: 1px solid #977462; }
.corner-info { position: absolute; z-index: 2; right: 32px; bottom: 29px; gap: 25px; color: #967462; }.toast { position: absolute; z-index: 4; top: 104px; left: 50%; transform: translate(-50%, -12px); padding: 10px 14px; border: 1px solid rgba(243,115,33,.4); border-radius: 2px; background: rgba(28,11,5,.86); color: var(--mint); font-size: 11px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; backdrop-filter: blur(8px); }.toast.show { transform: translate(-50%, 0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 5px rgba(243,115,33,0); } 100% { box-shadow: 0 0 0 0 rgba(243,115,33,0); } } @keyframes item-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 800px) { .app-shell { height: 100dvh; display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0, 53fr) minmax(0, 47fr); overflow: hidden; }.list-panel { min-height: 0; height: auto; padding: 14px 18px 12px; }.panel-header { min-height: 28px; }.intro { margin: 14px 0 10px; }.intro h1 { font-size: 34px; }.intro-copy { display: none; }.summary-card { padding: 9px 12px; }.meter { margin: 9px 0 7px; }.filter-row { padding: 9px 0 7px; }.filter { padding: 5px 7px; }.item { padding: 8px 4px; }.new-item-form { margin-top: 8px; }.new-item-form input { padding: 9px 10px; }.new-item-form button { width: 38px; }.scene-panel { min-height: 0; height: auto; }.scene-topbar { inset: 13px 18px auto; }.scene-copy { top: 43px; left: 18px; right: 18px; gap: 16px; }.scene-copy h2 { font-size: clamp(27px, 8vw, 38px); }.scene-heading > p:last-child { display: none; }.scene-copy .eyebrow { margin-bottom: 7px; font-size: 8px; }.scene-score { min-width: 84px; margin-top: 0; padding-left: 10px; }.scene-score span, .scene-score small { font-size: 7px; }.scene-score strong { font-size: clamp(34px, 11vw, 48px); }.canvas-mount { top: 128px; right: 6px; bottom: 32px; left: 6px; }.scene-legend { left: 18px; bottom: 12px; }.corner-info { right: 18px; bottom: 12px; }.sound-control { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
