/* Daily Task prototype. Palette from the case study: #061853 #3A519D #0588D8 #89B056 #B207EA */
.dt-stage { display: grid; place-items: center; background: #E6F2FC; border-radius: var(--radius); padding: clamp(24px, 5vw, 56px) 16px; min-width: 0; }
.dt-phone { width: min(340px, 100%); height: 680px; padding: 9px; border-radius: 38px; background: #14161c; box-shadow: 0 14px 30px rgba(6, 24, 83, .22), 0 2px 6px rgba(6, 24, 83, .18); }
.dt-proto { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #061853; }

#dt-proto, #dt-proto * { box-sizing: border-box; }
.dt-app { --ink: #061853; --card: #0F2A75; --blue: #0588D8; --action: #0F9AF0; --green: #89B056; --line: rgba(255, 255, 255, .2); --mut: rgba(255, 255, 255, .8);
  height: 100%; display: flex; flex-direction: column; position: relative; background: var(--ink); color: #fff; font-family: "Aller", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.4; }
.dt-app.light { background: #fff; color: var(--ink); }
.dt-surface { --ink: #061853; --card: #0F2A75; --blue: #0588D8; --action: #0F9AF0; --green: #89B056; --line: rgba(255, 255, 255, .2); --mut: rgba(255, 255, 255, .8); background: var(--ink); color: #fff; font-family: "Aller", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.4; }
.dt-surface, .dt-surface * { box-sizing: border-box; }
:where(.dt-app button, .dt-surface button) { font: inherit; color: inherit; cursor: pointer; }
.dt-app :focus-visible { outline: 2px solid #8fd0ff; outline-offset: 2px; }
.dt-app.light :focus-visible { outline-color: var(--blue); }
.dt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.dt-head { flex: none; padding: 16px 12px 6px; }
.dt-bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 44px; }
.dt-title { margin: 0; font-size: 20px; font-weight: 700; text-align: center; letter-spacing: -.01em; outline: none; }
.dt-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; }
.dt-icon:hover { background: rgba(255, 255, 255, .1); }
.dt-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.dt-body { padding: 10px 16px 24px; display: grid; gap: 14px; align-content: start; }
.dt-sub { margin: 0; color: var(--mut); font-size: 14px; }
.dt-hint { margin: 0; color: var(--mut); font-size: 13px; text-align: center; }

/* launch, auth */
.dt-launch { min-height: 560px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
.dt-launch .dt-title.big { font-size: 30px; color: #0B3AA8; }
.dt-launch p { margin: 0; color: var(--blue); font-weight: 700; font-size: 14px; }
.dt-app.light .dt-launch p { color: #0A6BB0; }
.dt-hero { display: grid; justify-items: start; gap: 12px; padding-top: 6px; }
.dt-hero .dt-title { text-align: left; font-size: 22px; line-height: 1.25; max-width: none; width: 100%; text-wrap: balance; }
.dt-form { display: grid; gap: 14px; }
.dt-field { display: grid; gap: 6px; }
.dt-field label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.dt-field label svg { color: #8fd0ff; flex: none; }
.dt-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 8px; background: var(--card); color: #fff; font: inherit; }
.dt-field input::placeholder { color: rgba(255, 255, 255, .7); }
.dt-field input[type="date"], .dt-field input[type="time"] { color-scheme: dark; }
.dt-field input::selection { background: var(--blue); color: var(--ink); }
.dt-row2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dt-chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.dt-chk input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }
.dt-chk.wide { border-bottom: 1px solid var(--line); }
.dt-chk a { color: #8fd0ff; }
.dt-link { padding: 0; min-height: 44px; border: 0; background: none; color: #8fd0ff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dt-primary { height: 44px; border: 0; border-radius: 8px; background: var(--action); color: var(--ink); font-weight: 700; font-size: 16px; }
.dt-primary:hover, .dt-primary.is-hover { background: #4DB5F7; }
.dt-primary:disabled { opacity: .5; cursor: default; }
.dt-primary.is-focus, .dt-link.is-focus { outline: 2px solid #8fd0ff; outline-offset: 2px; }
.dt-err { margin: 0; min-height: 0; color: #ffb4a8; font-size: 14px; font-weight: 700; }
.dt-err:empty { display: none; }
.dt-foot { margin: 0; text-align: center; color: var(--mut); font-size: 14px; }
.dt-foot .dt-link { min-height: 44px; }

/* home, lists */
.dt-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dt-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 8px; background: none; font-weight: 700; }
.dt-btn:hover { background: rgba(255, 255, 255, .1); }
.dt-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.dt-seg button { min-height: 44px; padding: 0 6px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 8px; background: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.dt-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.dt-seg button:disabled { opacity: .5; cursor: default; }
#dt-filters { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
.dt-group h4 { margin: 4px 0 6px; font-size: 14px; color: #8fd0ff; font-weight: 700; }
.dt-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.dt-task { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.dt-tasks .dt-task:first-child { border-top: 0; }
.dt-check { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 6px; background: none; color: var(--ink); padding: 0; position: relative; }
.dt-check::after { content: ''; position: absolute; inset: -10px; }
.dt-task.done .dt-check { background: var(--green); border-color: var(--green); }
.dt-task.done .dt-ttext b { text-decoration: line-through; color: var(--mut); }
.dt-ttext { display: grid; min-width: 0; }
.dt-ttext b { font-weight: 700; overflow-wrap: anywhere; }
.dt-ttext small { color: var(--mut); font-size: 13px; }
.dt-none { margin: 0; color: var(--mut); font-size: 14px; }
.dt-empty { display: grid; justify-items: start; gap: 2px; }
.dt-empty p { margin: 0; color: var(--mut); }

/* menu, tiles */
.dt-menu { list-style: none; margin: 0; padding: 0; }
.dt-menu button { display: grid; grid-template-columns: 24px 1fr 16px; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-size: 16px; font-weight: 700; }
.dt-menu li:first-child button { border-top: 0; }
.dt-menu button:hover { background: rgba(255, 255, 255, .06); }
.dt-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dt-tile { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 112px; padding: 12px; border: 0; border-radius: 10px; background: var(--card); color: #8fd0ff; }
.dt-tile b { color: #fff; font-size: 15px; }
.dt-tile small { color: var(--mut); font-size: 13px; }
.dt-tile.add { color: var(--green); background: var(--card); }
.dt-tile:hover { background: #163585; }

/* calendar */
.dt-views { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.dt-views button { min-height: 44px; border: 0; background: none; color: var(--mut); font-size: 14px; position: relative; }
.dt-views button[aria-pressed="true"] { color: #fff; font-weight: 700; }
.dt-views button[aria-pressed="true"]::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 3px; background: var(--blue); }
.dt-mnav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; }
.dt-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: #c8cfe0; border: 1px solid #c8cfe0; border-radius: 8px; overflow: hidden; }
.dt-dow { padding: 6px 0; background: var(--action); color: var(--ink); text-align: center; font-size: 12px; font-weight: 700; }
.dt-cell { position: relative; height: 40px; padding: 0; border: 0; background: #fff; color: var(--ink); font-size: 14px; display: grid; place-items: center; }
.dt-cell.out { background: #eef1f7; color: #6b7694; }
.dt-cell i { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.dt-cell.today { font-weight: 700; background: #e6f2fc; }
.dt-cell.sel { outline: 2px solid var(--ink); outline-offset: -2px; font-weight: 700; z-index: 1; }
.dt-cell:focus-visible { outline-color: var(--ink); z-index: 2; }
.dt-year { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dt-year button { display: grid; gap: 2px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); min-height: 56px; text-align: center; }
.dt-year small { color: var(--mut); font-size: 12px; }

/* add, settings, analytics */
.dt-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.dt-fs legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.dt-set { display: grid; gap: 14px; }
.dt-an { display: grid; gap: 6px; padding: 8px 0; }
.dt-an > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.dt-an span { color: var(--mut); font-size: 13px; }
.dt-meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.dt-meter i { display: block; height: 100%; background: var(--green); }

.dt-msg { position: absolute; left: 12px; right: 12px; bottom: 14px; margin: 0; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }

@media (prefers-reduced-motion: no-preference) { .dt-primary, .dt-btn, .dt-tile { transition: background-color .15s ease-out; } }
@media (max-width: 420px) { .dt-phone { height: min(680px, 86vh); } }

.dt-field input.is-error { border-color: #ffb4a8; }

/* Guides (brand, style, components) */
.dtg { display: grid; gap: clamp(32px, 5vw, 56px); min-width: 0; }
.dtg-block { display: grid; gap: 16px; min-width: 0; }
.dtg-block > h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; padding-top: 20px; border-top: 1px solid var(--line); }
.dtg h4 { margin: 0 0 6px; font-size: .95rem; }
.dtg-p { margin: 0; max-width: 66ch; line-height: 1.6; }
.dtg-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 70ch; line-height: 1.55; }
.dtg-list b { font-weight: 700; }
.dtg-plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dtg-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.dtg-logo { margin: 0; display: grid; justify-items: start; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; }
.dtg-logo.light { background: #fff; color: #061853; }
.dtg-logo.dark { background: #061853; color: #fff; border-color: #061853; }
.dtg-logo figcaption { font-size: .85rem; }
.dtg-dd { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 70ch; }
.dtg-dd ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; line-height: 1.5; }
.dtg-scroll { overflow-x: auto; max-width: 100%; }
.dtg-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.dtg-table th, .dtg-table td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-top: 1px solid var(--line); }
.dtg-table thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: .85rem; }
.dtg-table tbody th { font-weight: 700; white-space: nowrap; }
.dtg-sw { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.dtg-sw div { display: grid; gap: 2px; }
.dtg-sw i { display: block; height: 72px; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 6px; }
.dtg-sw code { font-size: .85rem; color: var(--muted); }
.dtg-fig { margin: 0; max-width: 760px; }
.dtg-type { display: grid; }
.dtg-type > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .dtg-type > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 24px; } }
.dtg-type span { font-family: "Aller", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.dtg-type .s30 { font-size: 30px; }
.dtg-type .s20 { font-size: 20px; }
.dtg-type .s15 { font-size: 15px; font-weight: 400; }
.dtg-type .s14 { font-size: 14px; font-weight: 400; }
.dtg-type .s13 { font-size: 13px; font-weight: 400; }
.dtg-type small { color: var(--muted); font-size: .9rem; }
.dtg-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 70ch; }
.dtg-space { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dtg-space li { display: flex; align-items: center; gap: 12px; }
.dtg-space i { display: block; height: 12px; background: #0588D8; flex: none; }

.dtg-comps { gap: 0; }
.dtg-comp { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px) 0; border-top: 1px solid var(--line); min-width: 0; }
@media (min-width: 860px) { .dtg-comp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; } }
.dtg-info h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -.02em; }
.dtg-info p { margin: 0; max-width: 46ch; line-height: 1.55; color: var(--muted); }
.dtg-spec { padding: 20px; border-radius: 10px; display: grid; gap: 12px; align-content: start; min-width: 0; max-width: 520px; }
.dtg-cap { font-size: 13px; color: var(--mut); }
.dtg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dtg-row .dt-primary { min-width: 92px; padding: 0 16px; }
.dtg-row .dt-btn { padding: 0 16px; }
.dtg-checked { background: var(--green); border-color: var(--green); }
.dtg-spec .dt-seg { max-width: 360px; }
.dtg-spec .dt-menu button:hover { background: none; }
.dtg-days { display: flex; flex-wrap: wrap; gap: 12px; }
.dtg-days > div { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--mut); }
.dtg-days .dt-cell { width: 48px; height: 44px; border-radius: 6px; }
.dtg-static { position: static; box-shadow: none; }

.dt-decisions ol { list-style: none; padding: 0; counter-reset: none; display: grid; gap: 0; }
.dt-decisions li { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.dt-decisions li:first-child { border-top: 0; padding-top: 0; }

/* Problem and goal */
.dt-pg { display: grid; gap: 28px 48px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 78ch; }
.dt-pg h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: var(--muted); }
.dt-pg p { margin: 0; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.38; letter-spacing: -.012em; max-width: 30ch; }

/* User flow as real text */
.dt-flow { min-width: 0; overflow-x: auto; }
.dt-tree, .dt-tree ul { list-style: none; margin: 0; padding: 0; }
.dt-tree ul { margin-left: 18px; padding-left: 26px; }
.dt-tree li { position: relative; padding: 7px 0; line-height: 1.4; }
.dt-tree ul > li::before { content: ""; position: absolute; left: -26px; top: 25px; width: 20px; border-top: 1px solid var(--line); }
.dt-tree ul > li::after { content: ""; position: absolute; left: -26px; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.dt-tree ul > li:first-child::after { top: -12px; }
.dt-tree ul > li:last-child::after { bottom: auto; height: 25px; }
.dt-tree .n { display: inline-block; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 6px; font-weight: 700; background: var(--paper); }
.dt-tree .n.start { background: var(--ink); color: var(--paper); }
.dt-tree .alt { margin-left: 10px; color: var(--muted); font-size: .92rem; }

/* Tabs (same as the Health Connect wireframe tabs) */
.dt-tabbed { min-width: 0; max-width: 100%; }
.dt-tabbed > [hidden] { display: none !important; }
.dt-tablist { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; margin-bottom: 24px; max-width: 100%; }
.dt-tablist [role="tab"] { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.dt-tablist [role="tab"]:hover { color: var(--ink); }
.dt-tablist [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.dt-tablist [role="tab"]:focus-visible, .dt-tabbed [role="tabpanel"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dt-gallery { min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); padding: 24px clamp(16px, 3vw, 32px) 16px; }

/* Screens strip */
.dt-strip { display: flex; gap: 28px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; max-width: 100%; }
.dt-strip > .dt-shot { flex: none; scroll-snap-align: start; }
.dt-shot { margin: 0; display: grid; gap: 14px; justify-items: center; }
.dt-shot figcaption { font-size: .92rem; color: var(--muted); }
.dt-shot .dt-phone { box-shadow: 0 8px 20px rgba(6, 24, 83, .18); }
.dt-boards { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.dt-boards .shot { margin: 0; }

/* Match the Health Connect brand specimens, with the Daily Task palette */
.hb.dtb { --navy: #061853; --soft: #E6F2FC; --slate: #33415A; --hair: #CBD5EC; --edge: #6B7694; }
.hb.dtb .hb-head { background: #061853; }
.hb.dtb .hb-head p { color: #DCEBFF; }
.hb.dtb .hb-pair { min-width: 56px; margin-right: 6px; }
.hb.dtb .dtg-logos { max-width: 520px; }
.hb-nums span:last-child { text-align: right; }

.cs-section:has(.dtg) .cs-label { position: static; }

/* Fit one screen tall: scale the phones to the window height */
.dt-strip { --z: 1; }
@media (max-height: 940px) { .dt-strip { --z: .85; } }
@media (max-height: 820px) { .dt-strip { --z: .72; } }
@media (max-height: 720px) { .dt-strip { --z: .6; } }
.dt-shot .dt-phone { width: 340px; flex: none; zoom: var(--z); }

/* Prototype: scale the device to the window height so it fits without scrolling */
.dt-stage { --z: 1; }
@media (max-height: 1000px) { .dt-stage { --z: .85; } }
@media (max-height: 900px) { .dt-stage { --z: .72; } }
@media (max-height: 800px) { .dt-stage { --z: .62; } }
@media (max-height: 700px) { .dt-stage { --z: .52; } }
.dt-stage .dt-phone { width: 340px; height: 680px; zoom: var(--z); }

/* Design process: the four stages of work from the project's own scope board */
.dtp { display: grid; gap: 28px; min-width: 0; }
.dtp-stages { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin: 0; padding: 0; list-style: none; }
.dtp-stages > li { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 3px solid #061853; }
.dtp-stages > li:nth-child(2) { border-top-color: #3A519D; }
.dtp-stages > li:nth-child(3) { border-top-color: #0588D8; }
.dtp-stages > li:nth-child(4) { border-top-color: #89B056; }
.dtp-stages h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }
.dtp-stages p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.dtp-stages ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; line-height: 1.45; }
.dtp-stages .out b { color: #061853; }
.dtp-fig { margin: 0; max-width: 860px; }
.cs-section:has(.dtp) .cs-label { position: static; }

/* Polish pass: today summary, task rows, hero band, tab bar, calendar, analytics ring */
.dt-app { --raise: #0F2A75; }
.dt-today { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: #163585; }
.dt-today h4 { margin: 0; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.dt-today p { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; }
.dt-today p b { font-size: 15px; }
.dt-today p span { color: var(--mut); font-size: 13px; }
.dt-today .dt-meter { height: 10px; }
.dt-task { padding: 10px 12px; border-top: 0; border-radius: 10px; background: var(--raise); position: relative; }
.dt-task::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #8fd0ff; }
.dt-task.c-business::before { background: var(--action); }
.dt-task.c-personal::before { background: #C9A3FF; }
.dt-tasks { gap: 6px; }
.dt-task.done { background: rgba(15, 42, 117, .55); }
.dt-task.done::before { background: var(--green); }
.dt-group h4 { margin: 8px 0 8px; font-size: 13px; text-transform: none; letter-spacing: .02em; }
.dt-hero.band { margin: -10px -16px 4px; padding: 22px 16px 26px; background: var(--raise); border-radius: 0 0 28px 28px; gap: 10px; }
.dt-hero.band p { margin: 0; color: var(--mut); font-size: 14px; }
.dt-hero.band .dt-title { font-size: 22px; }
.dt-tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: #040F38; padding: 4px 4px 6px; }
.dt-tabs button { display: grid; justify-items: center; gap: 2px; min-height: 48px; padding: 4px 0; border: 0; background: none; border-radius: 8px; color: var(--mut); font-size: 11px; font-weight: 700; }
.dt-tabs button[aria-current="page"] { color: #fff; }
.dt-tabs button[aria-current="page"] svg { color: #8fd0ff; }
.dt-tabs button[aria-current="page"] span { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dt-cell.sel { outline: 0; background: var(--blue); color: #fff; }
.dt-cell.sel i { background: #fff; }
.dt-cell.today:not(.sel) { box-shadow: inset 0 0 0 2px var(--blue); }
.dt-ring { display: flex; align-items: center; gap: 18px; padding: 4px 0 8px; }
.dt-ring b { display: block; font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.dt-ring span { color: var(--mut); font-size: 14px; }
.dt-tile { min-height: 120px; background: #163585; }
.dtg-spec .dt-task { margin: 0; }
@media (prefers-reduced-motion: reduce) { .dt-app * { transition: none !important; } }
.dt-app:has(.dt-tabs) .dt-msg { bottom: 70px; }

/* Native checkboxes for tasks */
.dt-tlabel { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 44px; position: relative; cursor: pointer; }
.dt-cb { position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin: -12px 0 0; opacity: 0; }
.dt-check svg { visibility: hidden; }
.dt-cb:checked + .dt-check { background: var(--green); border-color: var(--green); }
.dt-cb:checked + .dt-check svg { visibility: visible; }
.dt-cb:focus-visible + .dt-check { outline: 2px solid #8fd0ff; outline-offset: 2px; }
.dt-task { padding-top: 0; padding-bottom: 0; }
.dt-views button:focus-visible { outline-offset: -2px; }

/* Categories: one featured row, then grouped rows */
.dt-cfeat, .dt-crow { display: grid; grid-template-columns: 44px 1fr 16px; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; color: #fff; }
.dt-cfeat { min-height: 76px; padding: 14px; border-radius: 12px; background: #163585; }
.dt-crow { min-height: 64px; padding: 10px 12px; border-radius: 10px; background: var(--raise, #0F2A75); }
.dt-cfeat .ic, .dt-crow .ic { display: grid; place-items: center; border-radius: 10px; color: #8fd0ff; }
.dt-cfeat .ic { width: 44px; height: 44px; background: #061853; }
.dt-crow .ic { width: 44px; height: 44px; background: #061853; }
.dt-cfeat b, .dt-crow b { display: block; font-size: 16px; }
.dt-cfeat small, .dt-crow small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--mut); }
.dt-clist { display: grid; gap: 8px; }
.dt-cfeat > svg:last-child, .dt-crow > svg:last-child { color: #8fd0ff; }
@media (hover: hover) { .dt-cfeat:hover, .dt-crow:hover { background: #1D3F95; } }

/* Home: summary, up next, then the list */
.dt-next { display: grid; gap: 6px; }
.dt-next h4 { margin: 0; font-size: 13px; color: #8fd0ff; letter-spacing: .02em; }
.dt-next .dt-task { background: #163585; min-height: 64px; padding: 6px 12px; }
.dt-next .dt-ttext b { font-size: 17px; }
#dt-proto .dt-seg, .dt-shot .dt-seg { grid-template-columns: repeat(3, 1fr); }

/* Working shades: compact grid to save space */
.hb.dtb .hb-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border: 0; border-radius: 0; background: none; overflow: visible; gap: 0 28px; }
.hb.dtb .hb-work > div { grid-template-columns: 36px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line, #CBD5EC); }
.hb.dtb .hb-work > div + div { border-top: 1px solid var(--line, #CBD5EC); }
.hb.dtb .hb-work .chip { width: 36px; height: 36px; border-radius: 8px; }
.hb.dtb .hb-work > div > div { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: baseline; }
.hb.dtb .hb-work b { display: contents; font-size: .98rem; }
.hb.dtb .hb-work .tag { grid-column: 1 / -1; grid-row: 2; display: block; margin: 0; padding: 0; background: none; color: var(--muted, #33415A); font-size: .85rem; font-weight: 400; }
.hb.dtb .hb-work code { grid-column: 2; grid-row: 1; }
@media (max-width: 560px) { .hb.dtb .hb-work .chip { width: 36px; height: 36px; } }

/* Editorial theme (2026-11-19): case-study chrome follows the portfolio theme. The prototype and brand specimens keep the project's own colours. */
.dtp-stages > li, .dtp-stages > li:nth-child(n) { border-top: 3px solid var(--rule); }
.dtp-stages > li:first-child { border-top-color: var(--accent); }
.dt-stage { background: var(--paper-2); border-radius: 0; }
.dt-gallery { border-radius: 0; }
