html { height: auto; min-height: 100%; overflow-x: auto; overflow-y: auto; }
body.board { height: auto; min-height: 100%; overflow: visible; }
body.board { display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 40px; max-width: 1680px; margin: 0 auto; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.top .iconnav { margin-left: auto; }
.iconnav { display: inline-flex; align-items: center; gap: 4px; }

.ptitle { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
body[data-view="tasks"] #w-sub,
body[data-view="tasks"] .capsule,
body[data-view="tasks"] #daypick { display: none; }
.ptitle h1 { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.ptitle .sub { margin-top: 8px; padding: 0; border: 0; background: none; font: 600 13px/1.3 var(--sans); color: #E4E4E4; font-variant-numeric: tabular-nums; cursor: pointer; text-align: left; }
.ptitle #banner:not(:empty) { margin-bottom: 16px; }
.pnav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.days-label, .label, .tl-label { font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #A0A0A0; cursor: default; user-select: none; }
.capsule { display: inline-flex; align-items: center; height: 36px; padding: 0 2px; border: 1px solid var(--hairline); border-radius: 999px; }
.capsule .today { height: 32px; min-width: 64px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-1); font: 600 13px/1 var(--sans); }
.capsule .today:hover { background: rgba(255,255,255,.06); }
.seg { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface-1); contain: layout paint; }
.seg > button { position: relative; z-index: 1; height: 36px; min-width: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.seg > button:hover { color: var(--text-1); background: rgba(255,255,255,.06); transition: background-color var(--d-hover-in) var(--ease-out), color var(--d-hover-in) var(--ease-out); }
.seg > button.on { color: var(--text-2); background: transparent; }
.daypick { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.daypick .batch { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hairline); background: transparent; color: var(--text-2); font: 600 13px/1 var(--sans); }
.batch-menu { min-width: 220px; }
.batch-next { display: flex; align-items: center; gap: 4px; padding: 6px 8px; color: var(--text-2); font: 600 12px/1 var(--sans); }
.batch-next button { width: 28px; height: 28px; border-radius: 999px; border: 0; background: transparent; color: var(--text-1); font: 600 13px/1 var(--sans); }
.batch-next button.on { background: #fff; color: #000; }
.dowseg { display: inline-flex; align-items: center; height: 36px; padding: 0 2px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface-1); }
.dowseg button { width: 36px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 13px/1 var(--sans); }
.dowseg button[aria-pressed="true"] { background: #fff; color: #000; }
.seg-over { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: #000; background: #fff; border-radius: 999px; clip-path: inset(0 100% 0 0 round 999px); transition: clip-path var(--d-indicator) var(--ease-glide); }
.seg-over .seg-label { position: absolute; display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; overflow: hidden; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.seg-over .count { margin: 0; color: #000; border-color: rgba(0,0,0,.28); }
.seg-over .tl-name { flex: 0 1 auto; }
.seg-v .seg-over .seg-label { justify-content: flex-start; padding: 0 10px; }
.spanseg .seg-over .seg-label { padding: 0; gap: 0; }
.seg-v { display: grid; height: auto; border-radius: 10px; }
.seg-v > .seg-over { border-radius: 10px; }
#b-add.btn { height: 40px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; }
.more { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 180px; padding: 6px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface-2); display: grid; gap: 2px; animation: pop-in var(--d-popover) var(--ease-out); }
.menu[hidden] { display: none; }
.menu button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-1); font: 500 13px/1 var(--sans); text-align: left; display: flex; align-items: center; gap: 8px; }
.menu button:hover { background: rgba(255,255,255,.06); }
.refresh-ico { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; }
.menu button.spin .refresh-ico { animation: spin 800ms linear infinite; }
.workspace { display: block; min-width: 0; }
body.view-split .workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
body.view-split #tasks-view { display: flex; flex-direction: column; width: 320px; max-width: 100%; max-height: calc(100vh - 140px); overflow: auto; position: sticky; top: 16px; }
body.view-split #tasks-view .task-detail { width: auto; margin-left: 0; margin-right: 0; }
body.view-split .task-rail { display: block; height: auto; overflow: visible; min-width: 0; }
body.view-split .chip-scroller { position: relative; width: 100%; min-width: 0; }
body.view-split .tl-tabs { display: flex; flex-direction: row; gap: 6px; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; height: 40px; align-items: center; scrollbar-width: none; }
body.view-split .tl-tabs::-webkit-scrollbar { display: none; }
body.view-split .tl-tabs.overflows { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
body.view-split .tl-label, body.view-split .tl-add { display: none; }
.chip-nav { position: absolute; top: 2px; z-index: 4; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(0,0,0,.72); color: var(--text-1); font: 600 16px/1 var(--sans); }
.chip-nav.prev { left: 0; }
.chip-nav.next { right: 0; }
.chip-nav[hidden] { display: none; }
body.view-split .task-rail .tl { width: auto; flex: none; }
.view-leave { animation: view-out var(--d-view-out) var(--ease-in) forwards; }
.view-enter { animation: view-in var(--d-view-in) var(--ease-out) both; animation-delay: 60ms; }
.view-idle { content-visibility: hidden; }
@keyframes view-out { to { opacity: 0; transform: translateY(calc(-4px * var(--move))); } }
@keyframes view-in { from { opacity: 0; transform: translateY(calc(8px * var(--move))); } to { opacity: 1; transform: none; } }
body.view-split #tasks-view.view-enter { animation-name: rail-in; animation-duration: var(--d-drawer); animation-timing-function: var(--ease-glide); animation-delay: 0ms; }
@keyframes rail-in { from { opacity: 0; transform: translateX(calc(24px * var(--move))); } to { opacity: 1; transform: none; } }
.cols.fade .ev { animation: col-fade var(--d-view-in) var(--ease-out); }
@keyframes col-fade { from { opacity: .4; } to { opacity: 1; } }
.kbd-glide { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; border-radius: 8px; z-index: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 3px 0 0 #fff; background: rgba(255,255,255,.04);
  transition: transform var(--d-indicator) var(--ease-glide); }
.skel-row { height: 48px; margin: 8px 0; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), #16181d, var(--surface-2)); background-size: 200% 100%; animation: sk 1.1s linear infinite; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tm-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.tm-legend span { font: 500 12px/1.3 var(--sans); color: var(--text-2); font-variant-numeric: tabular-nums; }
.ico.add { background: #fff; color: #000; border-color: #fff; }
.tasks-view { width: 100%; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; min-width: 0; position: relative; overflow-anchor: none; }
.tasks-view[hidden] { display: none !important; }
.task-stage { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.tasks-view .btn.primary { border-radius: 999px; }
.task-rail, .task-main, .task-detail { min-width: 0; max-width: 100%; box-sizing: border-box; }
.task-rail { position: relative; display: grid; gap: 4px; align-content: start; padding: 4px 12px 12px 0; }
.tl-tabs.seg { display: grid; height: auto; width: 100%; border-radius: 10px; padding: 4px 0; }
.task-main { width: min(100%, 880px); display: grid; gap: 0; align-content: start; padding: 4px 0 32px; }
.task-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 16px; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--text-2); font: 500 13px/1.4 var(--sans); }
.tl { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; box-sizing: border-box; text-align: left; min-height: 40px; padding: 8px 10px; border-radius: var(--radius); color: var(--text-1); font: 500 14px/1.35 var(--sans); }
.tl { position: relative; z-index: 1; background: transparent; }
.tl:hover { background: transparent; color: var(--text-1); }
.tl.on { background: transparent; }
.tl-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl .count, .sec-h .count, .task-head .count { flex: none; margin-left: 8px; font: 600 11px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--text-2); border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 2px 7px; }
.tl-label { margin: 16px 0 4px; font: 600 11px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.tl-add, .btn.ghost { color: var(--text-2); background: transparent; border-color: transparent; }
.tl-add { text-align: left; min-height: 40px; padding: 8px 10px; font: 500 13px/1.4 var(--sans); }
.tl-new { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.tl-new input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--hairline-strong); background: var(--surface-1); color: var(--text-1); font: 500 13px/1.4 var(--sans); }
.task-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 24px; }
.task-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 20px/1.25 var(--sans); letter-spacing: -.01em; }
.task-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sortseg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface-1); }
.sortseg button { height: 28px; padding: 0 10px; border-radius: 999px; color: var(--text-2); font: 500 13px/1 var(--sans); }
.sortseg button[aria-pressed="true"] { background: #fff; color: #000; }
.task-compose { margin-bottom: 0; }
.compose-line { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 1px solid var(--hairline-strong); border-radius: var(--radius); background: transparent; }
.compose-line .plus { color: var(--text-2); font: 500 16px/1 var(--sans); }
.compose-line input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text-1); font: 500 13px/1.4 var(--sans); outline: none; }
.compose-line input::placeholder, .task-detail textarea::placeholder, #task-notes::placeholder { color: var(--text-3); }
.compose-expand { display: grid; grid-template-rows: 0fr; }
.task-compose.open .compose-expand { grid-template-rows: 1fr; }
.compose-clip { overflow: hidden; min-height: 0; }
.compose-pad { display: grid; gap: 8px; padding-top: 8px; align-content: start; }
.task-compose { align-self: start; }
#task-notes, .task-detail textarea, .task-detail input { width: 100%; min-width: 0; box-sizing: border-box; border-radius: var(--radius); border: 1px solid var(--hairline); background: var(--surface-1); color: var(--text-1); font: 500 13px/1.4 var(--sans); padding: 8px 10px; }
#task-notes { resize: none; min-height: 36px; }
.compose-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--hairline-strong); color: var(--text-1); font: 500 13px/1 var(--sans); background: var(--surface-1); }
.chip-btn[aria-pressed="true"] { border-color: var(--neon-white); }
button.chip-btn:focus-visible { border: 1px solid transparent; border-radius: 999px; outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; transition: none; }
@media (forced-colors: active) {
  button.chip-btn:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; box-shadow: none; border-color: ButtonText; }
}
.compose-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn.primary { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.sec { margin-top: 32px; contain: layout paint; }
.sec-h { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 8px 0 10px; border-bottom: 1px solid var(--hairline); border-left: 2px solid var(--hairline); color: var(--text-1); text-align: left; }
.sec.overdue .sec-h { border-left-color: var(--neon-red); }
.sec.today .sec-h { border-left-color: var(--neon-white); }
.sec-title { font: 600 16px/1.25 var(--sans); letter-spacing: -.01em; }
.sec-h .chev { width: 16px; height: 16px; flex: none; transform: rotate(90deg); transition: transform var(--dur-switch) var(--ease-out); }
.sec.collapsed .sec-h .chev { transform: rotate(0deg); }
.sec-body { display: block; }
.sec.collapsed .sec-clip { height: 0; opacity: 0; overflow: hidden; }
.sec-clip { overflow: hidden; }
.task-pane { position: relative; contain: layout paint; }
.task-item { position: relative; display: grid; grid-template-columns: 16px 20px minmax(0, 1fr) auto 72px; gap: 10px; align-items: center; min-height: 48px; margin-left: calc(var(--d, 0) * 16px); padding: 6px 8px; border: 1px solid transparent; border-radius: var(--radius); }
.task-item:hover { background: var(--surface-1); border-color: var(--hairline); }
.task-item.sel { box-shadow: inset 2px 0 0 var(--neon-white); background: var(--surface-1); }
.task-item.kbd { border-color: var(--hairline-strong); }
.task-item.lifted { z-index: 3; background: var(--surface-1); border-color: var(--neon-white); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.task-copy { min-width: 0; display: grid; }
.task-title { text-align: left; font: 500 14px/1.35 var(--sans); color: var(--text-1); background: none; border: 0; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-notes { color: var(--text-2); font: 500 13px/1.4 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-item.done .task-title, .task-item.is-done .task-title { text-decoration: line-through; color: var(--text-3); }
.tick { width: 20px; height: 20px; border: 1.5px solid var(--text-2); border-radius: 50%; }
.task-item.done .tick, .task-item.is-done .tick { background: var(--neon-white); border-color: var(--neon-white); transition: background 120ms linear; }
.grip { width: 16px; height: 28px; visibility: hidden; cursor: grab; background: linear-gradient(var(--text-2), var(--text-2)) 2px 8px / 12px 1px no-repeat, linear-gradient(var(--text-2), var(--text-2)) 2px 13px / 12px 1px no-repeat, linear-gradient(var(--text-2), var(--text-2)) 2px 18px / 12px 1px no-repeat; }
.task-item:hover .grip, .task-item:focus-within .grip, .task-item.lifted .grip { visibility: visible; }
.task-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.meta-chip { font: 500 13px/1.2 var(--sans); color: var(--text-2); white-space: nowrap; }
.meta-chip.overdue { color: var(--neon-red); }
.star { width: 20px; height: 20px; color: var(--text-3); font-size: 14px; }
.star.on { color: var(--neon-white); }
.task-acts { width: 72px; display: flex; justify-content: flex-end; gap: 4px; visibility: hidden; }
.task-item:hover .task-acts, .task-item:focus-within .task-acts { visibility: visible; }
.act { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--hairline); color: var(--text-1); background: var(--surface-2); }
.act svg { width: 14px; height: 14px; }
.sub-toggle { width: 16px; color: var(--text-2); font-size: 11px; }
.tasks-empty, .hint { margin: 0; font: 500 13px/1.4 var(--sans); color: var(--text-2); }
.tasks-empty-center { min-height: 240px; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; }
.tasks-empty-center p { margin: 0; font: 500 16px/1.4 var(--sans); letter-spacing: -.01em; }
.task-detail { width: auto; margin: 8px 0 4px; display: grid; align-content: start; gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: #14161c; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.55); }
.drawer-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; min-height: 28px; }
.editor-kicker { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.task-detail h2 { font: 600 16px/1.25 var(--sans); letter-spacing: -.01em; }
.task-detail label { display: grid; gap: 4px; font: 600 11px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.task-pop { position: fixed; z-index: 40; width: 260px; padding: 8px; border-radius: var(--radius-lg); border: 1px solid var(--hairline-strong); background: var(--surface-2); box-shadow: 0 8px 16px rgba(0,0,0,.45); }
.task-pop .pop-col { display: grid; gap: 4px; }
.task-pop button { text-align: left; min-height: 32px; padding: 6px 8px; border-radius: var(--radius); color: var(--text-1); font: 500 13px/1.4 var(--sans); }
.task-pop button:hover { background: var(--surface-1); }
.cal-h { display: flex; align-items: center; justify-content: space-between; font: 600 13px/1 var(--sans); }
.cal-h button { width: 32px; text-align: center; }
.cal-grid { display: grid; gap: 2px; }
.cal-grid [role="row"] { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow span { height: 24px; display: grid; place-items: center; font: 600 12px/1 var(--sans); letter-spacing: .04em; color: var(--text-2); }
.cal-grid button { height: 32px; display: grid; place-items: center; border-radius: var(--radius); text-align: center; padding: 0; }
.cal-grid button.is-past:not(.is-sel) { color: var(--text-3); }
.cal-grid button.is-out:not(.is-sel) { opacity: .45; }
.cal-grid button.is-today:not(.is-sel) { box-shadow: inset 0 0 0 1.5px var(--text-1); }
.cal-grid button.is-sel { background: var(--text-1); color: #000; }
.task-pop .pop-top { display: flex; justify-content: flex-end; min-height: 28px; }
.task-pop .pop-top .x { margin: 0; }
.time-list { max-height: 220px; overflow: auto; display: grid; }
.type-time { display: grid; gap: 4px; font: 500 13px/1.4 var(--sans); color: var(--text-2); text-transform: none; letter-spacing: 0; }
.type-time input { height: 32px; padding: 0 8px; border-radius: var(--radius); border: 1px solid var(--hairline); background: var(--bg); color: var(--text-1); font: 500 13px/1.4 var(--sans); }
@keyframes row-in { from { opacity: 0; transform: translateY(calc(6px * var(--move))); } to { opacity: 1; transform: none; } }
.task-item.enter { animation: row-in var(--dur-switch) var(--ease-out); }
.task-item.flash::after { transform: translateX(130%); transition: transform var(--d-hover-out) var(--ease-out); }
.igroup { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface-1); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.gridcard { min-width: 0; overflow: visible; padding: 8px 0 16px; }
.grid { --gutter: 56px; min-width: 0; display: grid; grid-template-rows: auto auto auto; }
.ghead, .gallday { display: grid; grid-template-columns: var(--gutter) repeat(var(--days, 7), minmax(0, 1fr)); min-width: 0; }
.ghead > div { padding: 12px 8px; cursor: pointer; min-width: 0; }
.ghead > div:hover { background: var(--elev); }
.ghead > div:first-child, .gallday > div:first-child { cursor: default; background: none; }
.ghead .w { font: 600 11px/1.2 var(--sans); letter-spacing: .06em; color: var(--text-2); overflow-wrap: break-word; }
.ghead .n { font: 600 20px/1.1 var(--sans); letter-spacing: -.02em; margin-top: 4px; display: grid; justify-items: start; gap: 2px; min-width: 0; }
.ghead .n .tag { font: 600 12px/1.2 var(--sans); color: #E4E4E4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.alloc-sum { margin: 0; font: 500 13px/1.4 var(--sans); color: var(--text-1); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-h .btn { height: 28px; padding: 0 10px; }
.ghead .today .n b { background: #fff; color: #000; border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.ghead .past .n, .ghead .past .w { color: var(--dim); }
.ghead .load { height: 2px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.ghead .load i { display: block; height: 100%; background: var(--dim); }
.ghead .load.hot i, .ghead .today .load i { background: #fff; }
.gallday { grid-template-rows: 28px 0fr; align-items: start; }
.gallday:not(.open) { overflow: hidden; }
.gallday.open { grid-template-rows: 28px 1fr; }
.gallday.empty { display: none; }
.due-toggle { grid-column: 1; grid-row: 1 / span 2; align-self: start; display: flex; align-items: center; justify-content: flex-end; gap: 2px; width: 100%; min-width: 0; max-width: 100%; height: 28px; padding: 0 4px 0 0; border: 0; background: none; color: var(--text-2); font: 600 12px/1 var(--sans); cursor: pointer; overflow: hidden; white-space: nowrap; box-sizing: border-box; }
.due-chev { width: 14px; height: 14px; flex: none; transition: transform var(--d-fade) var(--ease-out); }
.gallday.open .due-chev { transform: rotate(90deg); }
.due-sum { grid-row: 1; height: 28px; min-width: 0; display: flex; align-items: center; padding: 0 8px; }
.due-count, .due-dot { height: 22px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: transparent; color: var(--text-1); font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.due-count { padding: 0 8px; }
.due-dot { width: 22px; padding: 0; display: grid; place-items: center; }
.due-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--neon-white)); }
.due-detail { display: contents; }
.due-cell { grid-row: 2; min-width: 0; min-height: 0; overflow: hidden; }
.due-clip { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; padding: 0 6px 8px; opacity: 0; visibility: hidden; transition: opacity var(--d-fade) var(--ease-out), visibility 0s linear var(--d-fade); }
.gallday.open .due-clip { opacity: 1; visibility: visible; transition: opacity var(--d-view-in) var(--ease-out), visibility 0s linear 0s; }
.gallday .ad { width: 100%; height: auto; min-height: 36px; padding: 6px 8px; border-radius: var(--radius); font: 500 13px/1.35 var(--sans); letter-spacing: 0; cursor: pointer; text-align: left; white-space: normal; overflow-wrap: normal; hyphens: none; word-break: normal; display: block;
  color: var(--text-1); text-shadow: none; background: #000;
  border: 1px solid color-mix(in oklab, var(--c, var(--neon-white)) 70%, transparent);
  border-left: 3px solid var(--c, var(--neon-white)); box-shadow: none; backdrop-filter: none; }
.gallday .ad.task { border-style: dashed; }
.grid-stick { position: sticky; top: 0; z-index: 8; background: #000; isolation: isolate; }
#date-pop { display: flex; align-items: center; gap: 6px; width: auto; }
#date-pop .jump { position: static; }
.ghead, .gallday { background: #000; }
.gbody { overflow: clip; position: relative; z-index: 1; display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); min-width: 0; padding-top: 12px; background: #000; }
.cols { display: grid; grid-template-columns: repeat(var(--days, 7), minmax(0, 1fr)); min-width: 0; }
@media (max-width: 720px) {
  html { overflow-x: clip; }
  body.board { padding: 16px 12px 28px; overflow-x: clip; }
  .ptitle h1 { font-size: 28px; }
  .pnav, .daypick { max-width: 100%; min-width: 0; }
  .daypick { display: flex; flex-wrap: wrap; }
  .dowseg { flex: 1 1 100%; min-width: 0; max-width: 100%; justify-content: space-between; }
  .dowseg button { width: 36px; flex: 0 0 36px; }
}
.cols .tl-col { min-width: 0; border-left: 0; box-shadow: inset 1px 0 0 rgba(255,255,255,.05); }
.slot-hot { position: absolute; left: 3px; right: 3px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.06); opacity: 0; pointer-events: none; z-index: 0; }
.slot-hot.on { opacity: 1; }
.task-title.title { white-space: normal; text-overflow: clip; }
.task-item.enter { animation: row-in var(--d-view-in) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(calc(6px * var(--move))); } to { opacity: 1; transform: none; } }
#w-title { transition: opacity var(--d-fade) var(--ease-out); }
.cols .tl-col.today { background: rgba(255, 255, 255, .045); }
#split-exit { position: fixed; top: 16px; right: 16px; z-index: 20; background: #000; border: 1px solid var(--hairline); }
#split-exit[hidden] { display: none; }

.rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow: visible; position: sticky; top: 16px; align-self: start; }
.rail .card-h { padding: 16px 16px 0; }
.rail .card-h .label { color: var(--text-3); letter-spacing: .06em; text-shadow: none; }
.rail .card-b { padding: 8px 16px 16px; }
.focus { display: grid; gap: 4px; }
.focus button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 8px 4px; border: 0; border-radius: 8px; text-align: left; }
.focus button:hover { background: var(--elev); }
.focus .d { font: 500 14px/1.35 var(--sans); letter-spacing: 0; color: #fff; overflow-wrap: break-word; }
.focus .r { font: 600 12px/1.3 var(--sans); color: #E4E4E4; font-variant-numeric: tabular-nums; grid-column: 1; overflow-wrap: break-word; }
.focus .m { font: 700 13px var(--sans); font-variant-numeric: tabular-nums; grid-row: 1 / 3; grid-column: 2; }

body.board .strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
body.board .stat { display: flex; flex-direction: column; min-height: 96px; padding: 16px; }
body.board .stat .lbl { min-height: 2.6em; }
body.board .stat .val { margin-top: auto; font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .rail { position: static; }
}
@media (max-width: 760px) {
  body.board { padding: 12px 12px 24px; gap: 10px; }
  .ptitle { gap: 8px; }
  .ptitle h1 { font-size: 26px; }
  #stats { display: none; }
  body.board .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { display: none; }
  .top .iconnav { margin-left: auto; }
  .grid { --gutter: 40px; }
  .due-toggle span { display: none; }
  .ghead > div { padding: 8px 2px; }
  .ghead .n { font-size: 16px; }
  .ghead .w { font-size: 11px; }
  .ghead .n .tag { display: none; }
  .pnav .ico { width: 40px; height: 40px; }
  .spanseg button[data-span="4"], .spanseg button[data-span="5"], .spanseg button[data-span="6"], .spanseg button[data-span="7"] { display: none; }
}
@media (max-width: 800px) {
  .tasks-view { grid-template-columns: minmax(0, 1fr); }
  .task-rail { width: 100%; overflow: hidden; }
}
@media (min-width: 1440px) {
  body.board { padding: 24px 32px 48px; }
}
@media (max-width: 380px) {
  body.view-split .task-item { grid-template-columns: 16px 20px minmax(0, 1fr); }
  body.view-split .task-meta { grid-column: 1 / -1; }
  body.view-split .task-title.title { --lines: 2; }
}
