/* SAVE AS: daytiles.css · LOCATION: C:/MarvelApps/dayhub/daytiles.css
 * Day Hub NEW LOOK - Phase 1 (Scott 11/01, Design Direction #1): Day Hub's own sky hero kept on top (time-of-day colour,
 * scene and weather photo), a deep ocean-blue page, bright white cards, colourful round quick buttons, sunrise-gold
 * accents. Everything is under body.dt, which shell.js paintTabs sets only while daytiles.js says the look is on
 * (switch DT_ON, or one phone's ?look=tiles preview). Without body.dt this file changes nothing. */

body.dt { --dt-ink: #0f2c55; --dt-line: rgba(255, 255, 255, .24);
  background: linear-gradient(180deg, #0b2545 0%, #0e3a74 30%, #145da0 65%, #2b86d6 100%) fixed; min-height: 100vh; }
html:has(body.dt) { background: #0b2545; }

/* the hero keeps the classic dark-sky colours (the page below turns light) */
body.dt #hero { --card: rgba(255, 255, 255, .055); --card-solid: #141a30; --line: rgba(255, 255, 255, .08); --text: #f2f4fb; --dim: #c3cbe6;
  --accent: #5eead4; --accent2: #818cf8; --gold: #fcd34d; --red: #fb7185; --green: #4ade80; --orange: #fb923c; color: var(--text); }
body.dt #hero .hero-btns .icon-btn:not(#settingsBtn):not(.stm-hero) { display: none; }   /* v1.67: Share the Magic's ✨ stays */      /* Ask / Don't forget / Brain dump are the quick buttons */
body.dt:not([data-tab="home"]) #hero .greet, body.dt:not([data-tab="home"]) #hero .verdict-row,
body.dt:not([data-tab="home"]) #hero .chips { display: none; }               /* other tabs: just the name bar + ⚙ */
body.dt:not([data-tab="home"]) #hero { padding-bottom: 12px; }

/* page titles, empty line */
body.dt .dt-title { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 14px 2px 8px; column-span: all; -webkit-column-span: all; }
body.dt .dt-empty { color: #dbeafe; font-size: 15px; padding: 18px 4px; }

/* HOME: the moment card - its colour follows the day (sunrise / day sky / sunset / night) */
body.dt .dt-home, body.dt .dt-quick, body.dt .dt-tools, body.dt .dt-cruise { column-span: all; -webkit-column-span: all; }
body.dt .dt-moment { display: block; width: 100%; text-align: left; font: inherit; color: #fff; border: 1px solid var(--dt-line); border-radius: 20px;
  padding: 14px 16px; margin: 12px 0 0; box-shadow: 0 12px 28px rgba(0, 20, 60, .35); cursor: pointer; }
body.dt section.dt-moment { cursor: default; }
body.dt .dt-moment.am { background: linear-gradient(135deg, #c2410c, #be185d 65%, #7e22ce); }
body.dt .dt-moment.pm { background: linear-gradient(135deg, #0369a1, #1d4ed8); }
body.dt .dt-moment.pm-eve { background: linear-gradient(135deg, #9a3412, #9d174d 60%, #5b21b6); }
body.dt .dt-moment.eve { background: linear-gradient(135deg, #312e81, #1e3a8a); }
body.dt .dt-moment .dt-k { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .95; }
body.dt .dt-moment b { display: block; font-size: 21px; font-weight: 800; margin-top: 4px; line-height: 1.2; }
body.dt .dt-moment small { display: block; font-size: 14px; opacity: .95; margin-top: 3px; }
body.dt .dt-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
body.dt .dt-moment .btn:not(.ghost):not(.on) { background: #fff; color: #0f2c55; border: 0; }   /* beats the gold button rule below */
body.dt .dt-moment .btn.ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
body.dt .dt-moment:active { transform: scale(.99); }
body.dt .dt-home .card { margin-top: 12px; }

/* Cruise help (Crisis Mode lives in Cruise Hub) - only while a cruise is on */
body.dt .dt-cruise { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: 18px; text-decoration: none;
  background: #fff1f2; color: #881337; border: 1px solid #fda4af; box-shadow: 0 8px 18px rgba(0, 30, 80, .2); }
body.dt .dt-cruise > span:first-child { font-size: 28px; }
body.dt .dt-cruise .grow { flex: 1; }
body.dt .dt-cruise b { display: block; font-size: 16px; } body.dt .dt-cruise small { display: block; font-size: 13px; color: #9f1239; }
body.dt .dt-cruise .chev { font-size: 22px; }

/* the four round quick buttons (Scott's board: Add · Ask AI · Brain Dump · Don't Forget) */
body.dt .dt-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 4px; }
body.dt .dt-q { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
body.dt .dt-q span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; text-shadow: none;
  border: 2px solid rgba(255, 255, 255, .4); box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
body.dt .dt-q.add span { background: linear-gradient(145deg, #a855f7, #6d28d9); color: #fff; font-size: 32px; font-weight: 700; }
body.dt .dt-q.ai span { background: linear-gradient(145deg, #fb923c, #ea580c); }
body.dt .dt-q.dump span { background: linear-gradient(145deg, #38bdf8, #2563eb); }
body.dt .dt-q.leave span { background: linear-gradient(145deg, #fb7185, #e11d48); }
body.dt .dt-q:active span { transform: scale(.94); }

/* your tools: the other cards as tiles */
body.dt .dt-tools { margin-top: 16px; }
body.dt .dt-tools h4 { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 8px; color: #dbeafe; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; }
body.dt .dt-arrange { background: rgba(255, 255, 255, .14); border: 1px solid var(--dt-line); color: #fff; border-radius: 999px; padding: 5px 11px;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; }
body.dt .dt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
body.dt .dt-tile { min-height: 88px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .7); background: rgba(240, 246, 255, .95); color: var(--dt-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; font: inherit; cursor: pointer;
  text-align: center; box-shadow: 0 8px 18px rgba(0, 30, 80, .2); min-width: 0; }
body.dt .dt-tile .dt-ic { font-size: 26px; line-height: 1; }
body.dt .dt-tile b { font-size: 12.5px; font-weight: 800; line-height: 1.15; }
body.dt .dt-tile small { font-size: 10.5px; font-weight: 600; color: #476a95; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dt .dt-tile:active { transform: scale(.97); }
body.dt .dt-more { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; column-span: all; -webkit-column-span: all; }
@media (min-width: 700px) { body.dt .dt-more { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* bottom tab bar: navy glass, white line icons, the chosen one sunrise gold */
body.dt #tabbar { background: rgba(7, 26, 60, .94); border-top: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 -8px 24px rgba(0, 15, 45, .35); }
body.dt #tabbar button { color: #dbe7ff; }
body.dt #tabbar button span { display: flex; justify-content: center; }
body.dt #tabbar button svg { width: 25px; height: 25px; }
body.dt #tabbar button.on { color: #fbbf24; background: rgba(251, 191, 36, .14); }

/* ---- the cards on the light page: the app's own colour tokens re-pointed (under body.dt only), then the pieces that
   hard-code dark-theme colours. The same set Cruise Hub's new look needed (cruisetiles.css Phase 2 + its review). */
body.dt { --card: rgba(255, 255, 255, .94); --card-solid: #ffffff; --line: rgba(15, 44, 85, .14); --text: #0f2c55; --dim: #4b6587;
  --gold: #a16207; --red: #e11d48; --green: #15803d; --orange: #c2410c; --accent: #b45309; --accent2: #4f46e5; --muted: #4b6587; color: var(--text); }
body.dt .card { border-color: rgba(255, 255, 255, .75); box-shadow: 0 8px 22px rgba(0, 30, 80, .16); }
body.dt .sheet-body { background: #f3f7fd; color: var(--text); }
body.dt .sheet .icon-btn { color: var(--text); background: #fff; border-color: rgba(15, 44, 85, .2); font-weight: 700; }
body.dt input, body.dt select, body.dt textarea { background: #fff; color: var(--text); border-color: rgba(15, 44, 85, .22); }
body.dt input:focus, body.dt select:focus, body.dt textarea:focus { border-color: #b45309; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
body.dt input[type=date], body.dt input[type=time] { color-scheme: light; }
body.dt .seg button:not(.on), body.dt .chip:not(.good):not(.warn):not(.on):not(.upd-flash) { background: #e8f0fb; color: #0f2c55; border-color: rgba(15, 44, 85, .14); }
body.dt .chip.good { background: #dcfce7; border-color: #86efac; color: #14532d; }
body.dt .chip.warn { background: #ffe4e6; border-color: #fda4af; color: #881337; }
body.dt .chip.on { background: #fef3c7; border-color: #f59e0b; color: #78350f; font-weight: 700; }
body.dt .add-link { color: #1d4ed8; }
body.dt .btn:not(.ghost):not(.on), body.dt .fab, body.dt .seg button.on, body.dt .gbar span { background: linear-gradient(135deg, #fbbf24, #fb923c); color: #1c1206; }
body.dt .btn.ghost { background: #fff; color: #0f2c55; border-color: rgba(15, 44, 85, .2); }
body.dt #proBox { --text: #ffffff; --dim: #dbe7ff; background: linear-gradient(140deg, #0b2545, #1d4ed8 75%, #0369a1); color: #fff;
  border-radius: 18px; padding: 14px 16px; margin: 12px 0; box-shadow: 0 10px 24px rgba(0, 30, 80, .25); }
body.dt #proBox .btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
body.dt #proBox a:not(.btn) { color: #fde68a; }
body.dt #proBox input { background: rgba(255, 255, 255, .95); color: #0f2c55; }
body.dt .tab.on { background: #0f2c55; color: #fff; }
body.dt .seg button.on { color: #1c1206; }
body.dt input[type=checkbox].tick:not(:checked) { border-color: rgba(15, 44, 85, .45); background: #fff; }
body.dt .tl-row.now .tl-ic { background: #fbbf24; }
body.dt .tile.on { box-shadow: 0 0 0 2px #b45309 inset; }
body.dt .hour .r, body.dt .dayrow .rn { color: #0369a1; }
body.dt .gbadge { color: #1d4ed8; background: #dbeafe; }
body.dt .bar, body.dt .gbar { background: rgba(15, 44, 85, .1); }
body.dt .ring { background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(15, 44, 85, .14) 0); }
body.dt .grab { background: rgba(15, 44, 85, .22); }
body.dt .hour, body.dt .fact { background: #eef4ff; }
body.dt .card h3 .ci, body.dt .tl-row .tl-ic { background: #e8f0fb; }
body.dt .tag { background: #fde68a; color: #78350f; }
body.dt .paygrid .take { background: #dcfce7; }
body.dt .row.late b { color: #c2410c; }                                     /* overdue upkeep / returns */
body.dt .pay-left.neg b { color: #e11d48; }                                 /* payday "Short by $X" */
@media (prefers-reduced-motion: reduce) { body.dt .dt-tile:active, body.dt .dt-q:active span, body.dt .dt-moment:active { transform: none; } }

/* ---------------------------------------------------------------- Phase 2: the big tools as their own screens */
body.dt .dt-k { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
body.dt .dt-title, body.dt .dt-seg, body.dt .dt-mtop, body.dt .dt-bigs, body.dt .dt-line, body.dt .dt-hours, body.dt .dt-wxhero, body.dt .dt-infos,
body.dt .dt-prohero, body.dt .dt-lists { column-span: all; -webkit-column-span: all; }
body.dt.dt-screen .fab { display: none; }

/* the section bar (Money: Overview · Bills · Budget · Pay · Goals; Tasks: To-Do · Lists · Routines · Don't Forget) */
body.dt .dt-seg { display: flex; gap: 4px; padding: 4px; margin: 2px 0 12px; border-radius: 999px; background: rgba(7, 26, 60, .55); border: 1px solid var(--dt-line); }
body.dt .dt-seg button { flex: 1 1 auto; min-width: 0; padding: 9px 4px; border: 0; border-radius: 999px; background: none; color: #e6efff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
body.dt .dt-seg button.on { background: #fff; color: #0f2c55; box-shadow: 0 3px 10px rgba(0, 15, 45, .35); }

/* big full-width actions */
body.dt .dt-bigs { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 2px; }
body.dt .dt-big, body.dt a.dt-probuy { display: block; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; font: inherit; font-size: 16px; font-weight: 800; text-align: center; text-decoration: none;
  cursor: pointer; color: #fff; box-shadow: 0 8px 18px rgba(0, 20, 60, .3); }
body.dt .dt-big.green { background: linear-gradient(135deg, #16a34a, #15803d); }
body.dt .dt-big.blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
body.dt a.dt-probuy { background: linear-gradient(135deg, #fbbf24, #fb923c); color: #1c1206; }
body.dt .dt-price { margin: 0; text-align: center; color: #dbeafe; font-size: 13.5px; font-weight: 600; }

/* MONEY overview */
body.dt .dt-mtop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: #fff; color: #0f2c55; box-shadow: 0 10px 24px rgba(0, 30, 80, .22); margin-bottom: 12px; }
body.dt .dt-mtop .dt-k { color: #476a95; margin-bottom: 4px; }
body.dt .dt-mnums small { display: block; font-size: 13px; font-weight: 600; color: #4b6587; margin-top: 4px; }
body.dt .dt-mnums b { display: block; font-size: clamp(22px, 7vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #15803d; }
body.dt .dt-mnums b.out { color: #be123c; }
body.dt .dt-ring { --tone: #16a34a; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--tone) calc(var(--p) * 1%), rgba(15, 44, 85, .12) 0); }
body.dt .dt-ring > span { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
body.dt .dt-ring b { font-size: 24px; font-weight: 800; line-height: 1; } body.dt .dt-ring small { font-size: 11.5px; font-weight: 700; color: #4b6587; margin-top: 2px; }
body.dt .dt-mtop.tight .dt-ring { --tone: #d97706; } body.dt .dt-mtop.over .dt-ring { --tone: #e11d48; }
body.dt .dt-msay { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 8px; border-top: 1px solid #e3ecf8; font-size: 14px; font-weight: 600; color: #15803d; }
body.dt .dt-mtop.tight .dt-msay { color: #b45309; } body.dt .dt-mtop.over .dt-msay { color: #be123c; }
body.dt .dt-mtop.none { display: block; } body.dt .dt-mtop.none b { display: block; font-size: 19px; font-weight: 800; line-height: 1.2; }
body.dt .dt-mtop.none small { display: block; font-size: 14px; color: #4b6587; margin-top: 4px; }
body.dt .dt-link { margin-left: auto; background: none; border: 0; color: #1d4ed8; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 2px 4px; }
body.dt .dt-line { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 12px 14px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .94); color: #0f2c55; font: inherit; font-size: 15px; text-align: left; cursor: pointer; box-shadow: 0 8px 18px rgba(0, 30, 80, .16); }
body.dt .dt-line .grow { flex: 1; } body.dt .dt-line .chev { color: #7a93b5; font-size: 20px; }

/* TASKS: the list tiles */
body.dt .dt-lists { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
body.dt .dt-lists .dt-tile { min-height: 76px; }
body.dt .dt-lists .dt-tile.on { box-shadow: 0 0 0 3px #fbbf24 inset, 0 8px 18px rgba(0, 30, 80, .2); }
body.dt .dt-lists .dt-tile.add .dt-ic { font-size: 24px; font-weight: 700; color: #1d4ed8; }
body.dt [data-card="lists"] .tabs { display: none; }                         /* the tiles above are the tabs */
body.dt .dt-todos [data-card="todos"] .add-link { display: none; }           /* the big Add Task button is right below */
body.dt .dt-quicklists { margin-top: 14px; }

/* TODAY: four points of today's weather */
body.dt .dt-hours { display: flex; align-items: center; width: 100%; padding: 10px 8px; margin-bottom: 12px; border: 1px solid var(--dt-line); border-radius: 18px; background: rgba(7, 26, 60, .5); color: #fff; font: inherit; cursor: pointer; }
body.dt .dt-h { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
body.dt .dt-h small { font-size: 12px; font-weight: 700; color: #dbeafe; } body.dt .dt-h i { font-size: 24px; font-style: normal; line-height: 1.1; } body.dt .dt-h b { font-size: 16px; font-weight: 800; }
body.dt .dt-hours .chev { font-size: 22px; color: #dbeafe; padding: 0 4px; }

/* WEATHER & ALERTS */
body.dt .dt-backrow { display: flex; align-items: center; gap: 8px; }
body.dt .dt-back { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--dt-line); background: rgba(7, 26, 60, .5); color: #fff; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
body.dt .dt-wxhero { display: block; padding: 18px; border-radius: 22px; color: #fff; text-align: center; background: linear-gradient(160deg, #0369a1, #0284c7 55%, #38bdf8); box-shadow: 0 12px 28px rgba(0, 20, 60, .35); }
body.dt .dt-wxhero.night { background: linear-gradient(160deg, #1e1b4b, #1e3a8a); }
body.dt .dt-wxhero.gloomy { background: linear-gradient(160deg, #334155, #475569); }
body.dt .dt-wxrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
body.dt .dt-wxrow i { font-size: 56px; font-style: normal; line-height: 1; } body.dt .dt-wxrow b { font-size: 64px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
body.dt .dt-wxword { display: block; font-size: 20px; font-weight: 700; margin-top: 4px; text-transform: capitalize; }
body.dt .dt-wxhero small { display: block; font-size: 14px; font-weight: 600; margin-top: 4px; }
body.dt .dt-infos { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
body.dt .dt-info { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .94); color: #0f2c55; box-shadow: 0 8px 18px rgba(0, 30, 80, .16); }
body.dt .dt-info > span:first-child { font-size: 26px; } body.dt .dt-info .grow { flex: 1; min-width: 0; }
body.dt .dt-info b { display: block; font-size: 15.5px; font-weight: 800; } body.dt .dt-info small { display: block; font-size: 13.5px; color: #4b6587; margin-top: 1px; }

/* BRAIN DUMP: the whole phone (the same form and sorter; daytiles.js dresses it) */
body.dt #qa:has(textarea[name="dump"]) { background: none; }
body.dt #qa:has(textarea[name="dump"]) .sheet-body { position: fixed; inset: 0; max-height: none; height: 100%; max-width: none; width: 100%; border-radius: 0; overflow-y: auto; color: #fff;
  background: radial-gradient(90% 40% at 50% 12%, rgba(129, 140, 248, .35), transparent 70%), linear-gradient(180deg, #0b2545, #0e3a74 60%, #145da0); padding: max(14px, env(safe-area-inset-top)) 18px 40px; }
body.dt #qa:has(textarea[name="dump"]) .grab, body.dt #qa:has(textarea[name="dump"]) #qaTypes, body.dt #qa:has(textarea[name="dump"]) .sheet-head h2 { display: none; }
body.dt #qa:has(textarea[name="dump"]) .sheet-head { justify-content: flex-end; }
body.dt #qa:has(textarea[name="dump"]) .sheet-head .icon-btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
body.dt #qa:has(textarea[name="dump"]) #qaForm { max-width: 560px; margin: 0 auto; }
body.dt .dt-dumphero { text-align: center; padding: 0 0 14px; }
body.dt .dt-brain { font-size: 62px; line-height: 1; filter: drop-shadow(0 6px 18px rgba(129, 140, 248, .8)); }
body.dt .dt-dumphero h2 { margin: 8px 0 2px; font-size: 26px; font-weight: 800; color: #0f2c55; } body.dt .dt-dumphero p { margin: 0; font-size: 15.5px; color: #4b6587; }   /* readable on the plain sheet where :has isn't supported */
body.dt #qa:has(textarea[name="dump"]) .dt-dumphero h2 { color: #fff; } body.dt #qa:has(textarea[name="dump"]) .dt-dumphero p { color: #dbeafe; }
body.dt .btn.dt-mic, body.dt .btn.dt-mic:not(.ghost):not(.on) { display: block; margin: 14px auto 0; width: 112px; height: 112px; padding: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .55); font-size: 17px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 35% 30%, #60a5fa, #1d4ed8); box-shadow: 0 0 0 10px rgba(96, 165, 250, .18), 0 12px 26px rgba(0, 0, 0, .35); }
body.dt .btn.dt-mic.on { background: radial-gradient(circle at 35% 30%, #fb7185, #be123c); color: #fff; }
body.dt #qa:has(textarea[name="dump"]) textarea { min-height: 110px; font-size: 16px; }
body.dt #qa:has(textarea[name="dump"]) .hint { color: #dbeafe; }
body.dt .dt-dumpinto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: 13px; color: #0f2c55; }
body.dt .dt-dumpinto b { flex: 1 0 100%; font-size: 13.5px; }
body.dt .dt-dumpinto span { padding: 4px 10px; border-radius: 999px; background: #e8f0fb; border: 1px solid rgba(15, 44, 85, .14); }
body.dt #qa:has(textarea[name="dump"]) .dt-dumpinto { color: #fff; }
body.dt #qa:has(textarea[name="dump"]) .dt-dumpinto span { background: rgba(255, 255, 255, .14); border-color: var(--dt-line); }
/* sorted rows: white cards, so the type, the ✕ and the repeat line can all be read */
body.dt #qa:has(textarea[name="dump"]) .dump-row { background: #fff; border-color: transparent; color: #0f2c55; --dim: #4b6587; }
body.dt #qa:has(textarea[name="dump"]) .dump-row .x { color: #4b6587; opacity: 1; }
body.dt #qa:has(textarea[name="dump"]) .dump-h { color: #fff; }
body.dt #qa:has(textarea[name="dump"]) #dumpOut { color: #0f2c55; }
body.dt #qa:has(textarea[name="dump"]) #dumpOut .dump-h { color: #fff; }
body.dt #qa:has(textarea[name="dump"]) #qaForm > .btn { width: 100%; margin-top: 12px; }

/* the + sheet: every kind on screen, no sideways hunting */
body.dt #qaTypes { flex-wrap: wrap; overflow: visible; }

/* PRO STATUS */
body.dt .dt-prohero { display: block; padding: 16px 18px; border-radius: 20px; color: #fff; background: linear-gradient(140deg, #0b2545, #1d4ed8 75%, #0369a1); box-shadow: 0 12px 28px rgba(0, 20, 60, .35); margin-bottom: 12px; }
body.dt .dt-prohero.on { background: linear-gradient(140deg, #14532d, #15803d 75%, #0f766e); }
body.dt .dt-prohero.soon { background: linear-gradient(140deg, #7c2d12, #c2410c 75%, #b45309); }
body.dt .dt-prohero b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; } body.dt .dt-prohero small { display: block; font-size: 14.5px; margin-top: 4px; }
body.dt .dt-prorow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
body.dt .dt-prorow:first-child { border-top: 0; } body.dt .dt-prorow .grow { flex: 1; min-width: 0; }
body.dt .dt-prorow b { font-size: 14px; font-weight: 700; color: #4b6587; text-align: right; }
body.dt .dt-prorow b.on { color: #15803d; } body.dt .dt-prorow b.soon { color: #c2410c; }
body.dt .dt-prolist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 15px; }
body.dt .pulse svg { width: 52px; height: 52px; }                            /* the Life pulse ring reads at a glance */

/* from the screen-by-screen check */
body.dt input[type=checkbox].tick { position: relative; }                    /* the ✓: white and centred on the darker green */
body.dt input[type=checkbox].tick::after { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
body.dt:not([data-tab="today"]) .fab { display: none; }                      /* Home, Tasks, Money and More have their own Add buttons */
body.dt [data-card="payday"] .goal, body.dt [data-card="payday"] form[data-goalnew], body.dt [data-card="payday"] .rs-h:has(+ .goal),
body.dt [data-card="payday"] .rs-h:has(+ form[data-goalnew]) { display: none; }   /* goals have their own section */
/* Brain Dump's one main button: Sort it (it shows "Sorting…" and locks while the AI works); Add all appears once there's something to add */
body.dt #qa:has(textarea[name="dump"]) .dump-acts { display: block; }
body.dt #qa:has(textarea[name="dump"]) [data-dumpsort] { display: block; width: 100%; padding: 13px 16px; font-size: 16px; font-weight: 800; }
body.dt #qaForm:has(textarea[name="dump"]):has(#dumpOut:empty) > .btn:last-child { display: none; }
/* a section's own card doesn't fold, so no fold arrow */
body.dt[data-tab="money"] .card h3 .chev, body.dt[data-tab="tasks"] [data-card="lists"] h3 .chev, body.dt[data-tab="tasks"] [data-card="routines"] h3 .chev, body.dt[data-tab="tasks"] [data-card="leave"] h3 .chev { display: none; }
body.dt .add-link[data-top3] { white-space: nowrap; flex: none; }
body.dt .split-item { flex-wrap: wrap; } body.dt .split-item .grow { flex: 1 0 100%; } body.dt .split-item select { flex: 1 1 40%; min-width: 0; }
/* tablets: the single cards on these screens run the full width, the tiles spread out */
body.dt .dt-nextbills, body.dt .dt-goals, body.dt .dt-wxcard, body.dt .dt-prosync, body.dt .dt-proben, body.dt .dt-empty { column-span: all; -webkit-column-span: all; }
@media (min-width: 700px) { body.dt .dt-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Phase 3: the rest of the board */
body.dt .dt-triphero, body.dt .dt-triprows, body.dt .dt-uphero, body.dt .dt-resethero, body.dt .dt-resetcard, body.dt .dt-famwrap, body.dt .dt-editing { column-span: all; -webkit-column-span: all; }
body.dt .fab { display: none; }                                              /* Today has its own Add event + Add task */
body.dt .dt-bigs.two { flex-direction: row; } body.dt .dt-bigs.two > * { flex: 1 1 0; min-width: 0; padding: 13px 8px; font-size: 15px; }
body.dt a.dt-line { text-decoration: none; }
body.dt .dt-line small { display: block; font-size: 13px; color: #4b6587; margin-top: 1px; }

/* TODAY: the NOW line in sunrise gold; the form while it changes a plan */
body.dt [data-card="schedule"] .now-line::before { background: #f59e0b; height: 2px; }
body.dt [data-card="schedule"] .now-line span { background: #f59e0b; color: #1c1206; font-weight: 800; }
body.dt [data-card="schedule"] .ctl { flex: none; display: inline-flex; align-items: center; gap: 2px; }
body.dt #qa:has(input[name="dtevedit"]) #qaTypes, body.dt #qa:has(input[name="dtevedit"]) .sheet-head h2 { display: none; }
body.dt .dt-editing { margin-bottom: 8px; } body.dt .dt-editing b { display: block; font-size: 18px; font-weight: 800; color: #0f2c55; } body.dt .dt-editing small { display: block; font-size: 13.5px; color: #4b6587; }

/* TRIPS & CRUISES */
body.dt .dt-triphero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 16px; margin-bottom: 10px; border-radius: 22px; color: #fff;
  background: linear-gradient(150deg, #0369a1, #0e7490 60%, #0f766e); box-shadow: 0 12px 28px rgba(0, 20, 60, .35); }
body.dt .dt-tripnums .nm { display: block; font-size: 21px; font-weight: 800; line-height: 1.2; margin-top: 3px; } body.dt .dt-tripnums small { display: block; font-size: 14px; margin-top: 2px; }
body.dt .dt-tripn { display: block; font-size: 15px; font-weight: 700; margin-top: 8px; } body.dt .dt-tripn b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
body.dt .dt-triphero .dt-ring { --tone: #fbbf24; background: conic-gradient(var(--tone) calc(var(--p) * 1%), rgba(255, 255, 255, .25) 0); }
body.dt .dt-ring > span { color: #0f2c55; }
body.dt .dt-tripnext { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .35); font-size: 14.5px; font-weight: 600; }
body.dt .dt-triprows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; } body.dt .dt-triprows .dt-line { margin-top: 0; }
body.dt.dt-screen [data-card="trips"] > h3, body.dt.dt-screen [data-card="home"] > h3, body.dt.dt-screen [data-card="auto"] > h3 { display: none; }   /* the screen's title says it */
body.dt.dt-screen [data-card="trips"] .trip-n, body.dt.dt-screen [data-card="trips"] .trip-hero .sub:first-of-type, body.dt.dt-screen [data-card="trips"] .foot-actions:has([data-qa="trip"]),
body.dt.dt-screen [data-card="home"] .add-link[data-qa="upkeep"], body.dt.dt-screen [data-card="auto"] .add-link[data-qa="upkeep"] { display: none; }   /* said above, or a big button below */

/* UPKEEP + NIGHTLY RESET */
body.dt .dt-uphero, body.dt .dt-resethero { display: block; padding: 16px 18px; margin-bottom: 12px; border-radius: 20px; color: #fff; box-shadow: 0 12px 28px rgba(0, 20, 60, .35); }
body.dt .dt-uphero { background: linear-gradient(140deg, #0f766e, #0369a1); } body.dt .dt-uphero.late { background: linear-gradient(140deg, #9f1239, #c2410c); }
body.dt .dt-resethero { background: linear-gradient(140deg, #9a3412, #9d174d 60%, #5b21b6); }
body.dt .dt-uphero b, body.dt .dt-resethero b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; margin-top: 3px; }
body.dt .dt-uphero small, body.dt .dt-resethero small { display: block; font-size: 14.5px; margin-top: 3px; }
body.dt .dt-resetcard { margin-top: 12px; }

/* HUB FAMILY */
body.dt .dt-fam { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.dt .dt-famtile { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 18px; background: rgba(240, 246, 255, .95); color: #0f2c55; text-decoration: none; box-shadow: 0 8px 18px rgba(0, 30, 80, .2); min-width: 0; }
body.dt .dt-famtile .dt-ic { font-size: 32px; line-height: 1.1; } body.dt .dt-famtile b { font-size: 16px; font-weight: 800; } body.dt .dt-famtile small { font-size: 13px; line-height: 1.3; color: #4b6587; }
body.dt .dt-famtile .tag { align-self: flex-start; }
body.dt .dt-famtile.wide { grid-column: 1 / -1; background: linear-gradient(135deg, #312e81, #1e3a8a); color: #fff; } body.dt .dt-famtile.wide small { color: #dbeafe; }
body.dt .dt-famfine { color: #dbeafe; font-size: 13.5px; margin: 12px 2px 0; }
@media (min-width: 700px) { body.dt .dt-fam { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- Scott's board, with its art (11/08 "Yes, build it"; 11/04 "a layout with emoji and CSS is not built"). Phones only: the sunset lake fills Home, the greeting sits on the sky,
   the weather and Life Pulse sit on the water, and the opening glide (shell.js) brings the chips and the day up. Real photo off in Settings = the plain look above. */
@media (max-width: 599px) {
  body.dt.dt-art[data-tab="home"], body.dt.dt-art[data-tab="today"] { background: none; }
  body.dt.dt-art[data-tab="home"]::before, body.dt.dt-art[data-tab="today"]::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
  body.dt.dt-art[data-tab="home"]::before { background: linear-gradient(180deg, rgba(11, 37, 69, 0) 0, rgba(11, 37, 69, 0) 74vh, #0b2545 94vh), url("art/home.webp") center top / max(100vw, 55.8vh) auto no-repeat #0b2545; }
  body.dt.dt-art[data-tab="today"]::before { background: linear-gradient(180deg, rgba(11, 37, 69, .35), rgba(11, 37, 69, .82) 45%, #0b2545 80%), url("art/home.webp") center -8vh / max(100vw, 55.8vh) auto no-repeat #0b2545; }
  body.dt.dt-art[data-tab="home"] #hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; background: none; box-shadow: none; border-radius: 0; padding-bottom: 4px; }
  body.dt.dt-art[data-tab="home"] #hero::before, body.dt.dt-art[data-tab="home"] #hero::after { display: none; }
  body.dt.dt-art[data-tab="home"] #hero .hero-top, body.dt.dt-art[data-tab="home"] #hero .greet, body.dt.dt-art[data-tab="home"] #hero .chips { grid-column: 1 / -1; }
  body.dt.dt-art[data-tab="home"] #hero .brand span { font-size: 19px; font-weight: 800; letter-spacing: .06em; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
  body.dt.dt-art[data-tab="home"] #hero .brand img { width: 32px; height: 32px; border-radius: 9px; }
  body.dt.dt-art[data-tab="home"] #hero .greet { margin-top: 12px; font-size: 27px; line-height: 1.14; font-weight: 800; opacity: 1; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
  body.dt.dt-art[data-tab="home"] #hero .hero-main { display: contents; }
  body.dt.dt-art[data-tab="home"] #hero .hero-main > div:first-child { grid-column: 1 / -1; }
  body.dt.dt-art[data-tab="home"] #hero .hero-clock { display: none; }
  body.dt.dt-art[data-tab="home"] #hero .hero-date { margin-top: 4px; font-size: 15.5px; font-weight: 700; opacity: 1; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
  body.dt.dt-art[data-tab="home"] #hero .hero-wx, body.dt.dt-art[data-tab="home"] #hero .verdict-row { margin-top: calc(1.075 * max(100vw, 55.8vh) - 152px - env(safe-area-inset-top)); min-height: 128px; box-sizing: border-box; padding: 12px; border-radius: 20px;
    background: rgba(9, 28, 62, .62); border: 1px solid rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); color: #fff; }
  body.dt.dt-art[data-tab="home"] #hero .hero-wx { grid-column: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  body.dt.dt-art[data-tab="home"] #hero .verdict-row { grid-column: 2; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
  body.dt.dt-art[data-tab="home"] #hero .pulse svg { width: 70px; height: 70px; }
  body.dt.dt-art[data-tab="home"] #hero .pulse .pw { font-size: 12px; margin-top: 0; }
  body.dt.dt-art[data-tab="home"] #hero .verdict { font-size: 14.5px; line-height: 1.2; }
  body.dt.dt-art[data-tab="home"] #hero .chips { margin-top: 10px; }
  body.dt.dt-art[data-tab="home"] #hero .chip:not(.warn):not(.good) { background: rgba(255, 255, 255, .95); border-color: transparent; color: var(--dt-ink); font-weight: 800; }
  body.dt.dt-art[data-tab="home"] #hero .hero-top { position: relative; flex-wrap: wrap; justify-content: center; }
  body.dt.dt-art[data-tab="home"] #hero .hero-top::after { content: "Your Life \00b7  Your Plans \00b7  All in One"; flex-basis: 100%; text-align: center; margin-top: 3px; font-size: 13.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
  body.dt.dt-art[data-tab="home"] #hero .hero-btns { position: absolute; right: 0; top: 0; }
  body.dt.dt-art[data-tab="home"] #hero .pulse::after { content: "Life Pulse"; order: 1; font-size: 14px; font-weight: 800; line-height: 1.15; }
  body.dt.dt-art[data-tab="home"] #hero .pulse svg { order: 0; } body.dt.dt-art[data-tab="home"] #hero .pulse .pw { order: 2; }
  body.dt.dt-art:not([data-tab="home"]) #hero { background: #0b2545; } body.dt.dt-art:not([data-tab="home"]) #hero::before, body.dt.dt-art:not([data-tab="home"]) #hero::after { display: none; }
  body.dt.dt-art[data-tab="money"] .dt-title:not(.dt-backrow) { display: none; }
  body.dt .dt-mbanner { column-span: all; -webkit-column-span: all; display: flex; align-items: flex-start; justify-content: center; height: 132px; margin: 0 0 12px; padding-top: 16px; box-sizing: border-box; border-radius: 20px; overflow: hidden; border: 1px solid var(--dt-line);
    background: linear-gradient(180deg, rgba(9, 28, 62, .35), rgba(9, 28, 62, 0) 55%), url("art/money.webp") center 62% / cover no-repeat #0b2545; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
  body.dt .dt-mbanner b { color: #fff; font-size: 27px; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
}

/* Scott's own pictures for Morning Brief, Nightly Reset, Brain Dump and Pack & Prep (11/09, made by him; placed as a picture card at the top of each screen,
   the words below on the screen's own colour so they stay easy to read). Real photo off in Settings = no pictures. */
body.dt .dt-pic { display: none; }
body.dt.dt-art .dt-pic { display: block; height: 196px; margin: 0 0 12px; border-radius: 20px; overflow: hidden; border: 1px solid var(--dt-line); box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  background: #0b2545 center 50% / cover no-repeat; column-span: all; -webkit-column-span: all; }
body.dt.dt-art .dt-pic.night { background-image: url("art/night.webp"); background-position: center 42%; }
body.dt.dt-art .dt-pic.brain { background-image: url("art/brain.webp"); background-position: center 38%; height: 210px; margin-bottom: 14px; }
body.dt.dt-art .dt-pic.pack { background-image: url("art/pack.webp"); background-position: center 48%; }
body.dt.dt-art .brief-body::before { content: ""; display: block; height: 196px; margin: 0 0 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3); background: #0b2545 url("art/morning.webp") center 50% / cover no-repeat; }

/* Scott's board, 11/09 pass: Life Pulse as a big dial sitting on the lake, no box (drawn by dtPulseDial in daytiles.js). Phones with the art on only; everywhere else the small ring stays. */
body.dt .pulse .pdial { display: none; }
@media (max-width: 599px) {
  body.dt.dt-art[data-tab="home"] #hero .verdict-row { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 0 2px; gap: 3px; }
  body.dt.dt-art[data-tab="home"] #hero .pulse > svg:not(.pdial), body.dt.dt-art[data-tab="home"] #hero .pulse .pw, body.dt.dt-art[data-tab="home"] #hero .pulse::after { display: none; }
  body.dt.dt-art[data-tab="home"] #hero .pulse .pdial { display: block; width: min(100%, 162px); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
  body.dt.dt-art[data-tab="home"] #hero .verdict { font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .75); }
}
