/* Admin tabs + Projects (projects, teams, sprints, velocity). Builds on the tokens in style.css. */

input[type=date] { width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input[type=date]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43, 92, 255, .14); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: none; }
.small { font-size: 13px; }
.nowrap { flex-wrap: nowrap; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hint.warn-hint { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 8px 12px; border-radius: 10px; margin: 0 0 14px; }
.badge.muted { background: #f2f4f7; color: #667085; }

/* ----- Tabs ----- */
.tabs { background: #fff; border-bottom: 1px solid var(--line); }
.tabs-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; color: var(--muted); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-600); }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.page.wide { max-width: 1120px; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ----- Project cards ----- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.proj-card { position: relative; display: block; overflow: hidden; margin: 0; text-decoration: none; padding-top: 28px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.proj-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--pc); }
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--pc) 40%, white); }
.proj-top { display: flex; align-items: center; gap: 12px; }
.proj-top > .ico { color: var(--faint); transition: transform .2s var(--ease); }
.proj-card:hover .proj-top > .ico { transform: translateX(3px); color: var(--pc); }
.proj-titles { flex: 1; min-width: 0; }
.proj-titles h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-titles p { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-avatar { display: grid; place-items: center; flex: none; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 14px; background: linear-gradient(150deg, color-mix(in srgb, var(--pc) 78%, white), var(--pc)); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; box-shadow: 0 8px 18px -8px var(--pc), inset 0 1px 0 rgba(255, 255, 255, .3); }
.proj-avatar.lg { min-width: 60px; height: 60px; border-radius: 18px; font-size: 17px; }
.proj-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 12px; font-size: 13px; color: var(--muted); }
.proj-stats b { color: var(--text); font-weight: 650; }
.spark { height: 44px; display: flex; align-items: flex-end; gap: 4px; }
.spark i { flex: 1; min-height: 4px; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--pc) 65%, white); transition: background .2s; }
.proj-card:hover .spark i { background: var(--pc); }
.empty-spark { align-items: center; justify-content: center; font-size: 12px; color: var(--faint); background: #fafbfd; border-radius: 10px; }
.proj-foot { margin-top: 14px; }
.hero-empty { padding: 20px; }
.proj-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 170px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 12%, white); color: color-mix(in srgb, var(--pc) 70%, black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); flex: none; }

/* ----- Project hero + filters ----- */
.proj-hero { margin-bottom: 20px; padding: 18px 24px 24px; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: radial-gradient(640px 220px at 0% 0%, color-mix(in srgb, var(--pc) 15%, white), transparent 70%), #fff; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 550; text-decoration: none; margin-bottom: 14px; }
.back:hover { color: var(--accent-600); }
.hero-row { display: flex; align-items: center; gap: 16px 18px; flex-wrap: wrap; }
.hero-text { flex: 1 1 260px; min-width: 0; }
.hero-text h1 { font-size: 30px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 18px; }
.tool { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.tool-l { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: #eceef4; border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-btn { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #475467; font-weight: 550; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* ----- Stat tiles ----- */
.tiles-p { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.tile-p { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.tile-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-50); color: var(--accent); }
.tile-v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-l { font-size: 13px; font-weight: 600; margin-top: 3px; }
.tile-s { font-size: 12px; color: var(--muted); }

/* ----- Blocks ----- */
.block { margin-bottom: 34px; }
.block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.block-head h2 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.block-head .count { margin: 0; }
.card.flush { padding: 4px 20px; }
.empty.slim { padding: 22px 12px; }

/* ----- Velocity ----- */
.vel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.vel-card { margin: 0; }
.vel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.vel-head h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.vel-head p { font-size: 13px; }
.vel-avg { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vel-avg b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.vel-avg span { font-size: 12px; color: var(--muted); }
.vel-avg em { font-style: normal; font-size: 12px; font-weight: 650; padding: 1px 7px; border-radius: 999px; }
.vel-avg em.up { color: #067647; background: #ecfdf3; }
.vel-avg em.down { color: var(--warn); background: var(--warn-bg); }
.chart { --pc: var(--accent); display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: 170px auto; column-gap: 8px; row-gap: 8px; }
.yl { position: relative; }
.yl span { position: absolute; right: 0; transform: translateY(50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; line-height: 1; }
.plot { position: relative; }
.gl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.avg-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed #f79009; z-index: 2; pointer-events: none; }
.avg-line span { position: absolute; right: 0; bottom: 3px; font-size: 11px; font-weight: 650; color: var(--warn); background: rgba(255, 255, 255, .9); padding: 0 5px; border-radius: 6px; }
.cols { position: absolute; inset: 0; display: flex; gap: 10px; z-index: 1; }
.col { flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: center; }
.b-commit { position: relative; width: min(100%, 46px); min-height: 3px; border-radius: 9px 9px 3px 3px; background: color-mix(in srgb, var(--pc) 15%, white); transform-origin: bottom; }
.b-done { position: absolute; left: 0; right: 0; bottom: 0; border-radius: inherit; background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 82%, white), var(--pc)); }
.col.now .b-commit { outline: 1.5px dashed color-mix(in srgb, var(--pc) 55%, white); outline-offset: 1px; }
.val { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 4px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xl { grid-column: 2; display: flex; gap: 10px; }
.xl span { flex: 1; min-width: 0; text-align: center; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xl span.now { color: var(--accent-600); font-weight: 650; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.k-done { background: var(--accent); }
.k-commit { background: var(--accent-100); }
.forecast { margin-left: auto; color: var(--accent-600); font-weight: 600; }

/* ----- Sprints ----- */
.sprint { padding: 0; overflow: hidden; margin-bottom: 12px; }
.sprint.is-active { border-color: #b7c9ff; box-shadow: 0 0 0 3px rgba(43, 92, 255, .06), var(--shadow-sm); }
.sprint-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; background: none; border: 0; text-align: left; transition: background .15s; }
.sprint-head:hover { background: #fafbfd; }
.sprint-head > .ico { color: var(--faint); transition: transform .2s var(--ease); }
.sprint.open .sprint-head > .ico { transform: rotate(90deg); }
.sprint-main { flex: 1; min-width: 0; }
.sprint-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.state { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; }
.state.active { background: #ecfdf3; color: #067647; }
.state.upcoming { background: var(--accent-50); color: var(--accent-600); }
.state.completed { background: #f2f4f7; color: #667085; }
.sprint-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; color: var(--muted); font-size: 13px; }
.sprint-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.team-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 550; color: #475467; background: #f2f4f7; padding: 1px 8px; border-radius: 999px; }
.sprint-pts { flex: none; text-align: right; line-height: 1.2; }
.sprint-pts b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sprint-pts span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.sprint-pts small { display: block; color: var(--faint); font-size: 12px; }
.sprint-body { padding: 0 20px 18px; border-top: 1px solid var(--line); }
.prog { display: flex; height: 8px; margin: 16px 0; border-radius: 999px; overflow: hidden; background: #eceef4; }
.prog i { display: block; height: 100%; transition: width .5s var(--ease); }
.p-done { background: var(--ok); }
.p-doing { background: var(--accent); }
.goal { margin-bottom: 8px; font-size: 14px; color: #475467; }
.goal b { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }

/* ----- Stories ----- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 16px; padding: 12px 2px; border-top: 1px solid var(--line); }
.stories > .story:first-child { border-top: 0; }
.story-main { min-width: 0; }
.story-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.story-title { overflow-wrap: anywhere; font-weight: 500; }
.story.is-done .story-title { color: var(--muted); }
.src { display: inline-flex; color: var(--faint); }
.story-pts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mp.hl { background: var(--accent-50); color: var(--accent-600); }
.mp.hl b { color: var(--accent-600); }
.total { min-width: 38px; text-align: center; padding: 3px 10px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.story-ctl { display: flex; align-items: center; gap: 6px; }
.story-ctl select { width: auto; max-width: 150px; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-sel.st-todo { background: #f2f4f7; border-color: #e4e7ec; color: #475467; }
.status-sel.st-doing { background: var(--accent-50); border-color: var(--accent-100); color: var(--accent-600); }
.status-sel.st-done { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.assign-sel { color: var(--muted); font-weight: 500; }

/* ----- Per-role scheduling (waterfall: Dev, SIT and UAT land in different sprints) ----- */
.role-badge { display: inline-grid; place-items: center; flex: none; min-width: 44px; padding: 3px 9px; border-radius: 9px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.role-badge.r-DEV { background: #eef3ff; color: #1f47d6; }
.role-badge.r-SIT { background: #f4f0ff; color: #6a43d9; }
.role-badge.r-UAT { background: #e8f8f1; color: #067647; }
.story.grouped { grid-template-columns: minmax(0, 1fr) auto; }
.edit-btn { margin-left: auto; }
.slices { display: grid; gap: 6px; justify-items: end; }
.slice-line { display: flex; align-items: center; gap: 8px; }
.slice-line select { width: auto; max-width: 150px; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.plan { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.plan:empty { display: none; }
.plan-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 9px; border-radius: 999px; border: 1px solid transparent; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-chip b { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .75; }
.plan-chip em { font-style: normal; font-weight: 600; }
.plan-chip.st-todo { background: #f2f4f7; color: #475467; }
.plan-chip.st-doing { background: var(--accent-50); color: var(--accent-600); }
.plan-chip.st-done { background: #ecfdf3; color: #067647; }
.plan-chip.unsched { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }
.sched-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.sched-title h3 { font-size: 14px; font-weight: 650; }
.sched-title select { width: auto; max-width: 100%; height: 34px; border-radius: 10px; font-size: 13px; }
.sched { display: grid; gap: 8px; margin-bottom: 14px; }
.sched-head, .sched-row { display: grid; grid-template-columns: 62px 84px minmax(0, 1fr) 140px; gap: 10px; align-items: center; }
.sched-head { padding: 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sched-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; }
.sched-row select { height: 40px; }
.sc small { display: none; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }

/* ----- Linked sessions ----- */
.links { list-style: none; margin: 0; padding: 0; }
.link-row { display: flex; align-items: center; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.link-row:first-child { border-top: 0; }
.link-main { flex: 1; min-width: 0; margin-right: 6px; }
.link-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----- Modal ----- */
dialog.modal { border: 0; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: min(90vh, 880px); border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 28px 70px -18px rgba(16, 24, 40, .4), 0 0 0 1px rgba(16, 24, 40, .05); overflow: hidden; }
dialog.modal.wide { width: min(720px, calc(100vw - 24px)); }
dialog.modal[open] { display: flex; flex-direction: column; animation: pop .22s var(--ease); }
dialog.modal::backdrop { background: rgba(13, 23, 51, .45); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 6px; }
.modal-head h2 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.modal-body { padding: 8px 22px 22px; overflow: auto; }
.modal-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.two.wide-left { grid-template-columns: 150px 1fr; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.swatches span { position: relative; display: inline-flex; }
.swatches input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatches label { width: 26px; height: 26px; margin: 0; border-radius: 50%; background: var(--c); cursor: pointer; transition: transform .15s; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.swatches input:hover + label { transform: scale(1.12); }
.swatches input:checked + label { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.swatches input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-t { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--accent-50); color: var(--accent-600); font-size: 13px; font-weight: 600; }
.chip-t button { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: transparent; color: inherit; padding: 0; }
.chip-t button:hover { background: rgba(43, 92, 255, .15); }
.quick { display: flex; align-items: center; gap: 6px; margin: -4px 0 16px; }
.team-list { display: grid; gap: 8px; }
.team-row { display: flex; align-items: center; gap: 10px; }
.team-row input { flex: 1; }
.pick-box { border: 1px solid var(--line-strong); border-radius: 14px; max-height: 300px; overflow: auto; background: #fff; }
.pick-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); cursor: pointer; font-weight: 400; color: var(--text); transition: background .12s; }
.pick-box > .pick-row:first-child { border-top: 0; }
.pick-row:hover { background: #fafbfd; }
.pick-all { position: sticky; top: 0; z-index: 1; background: #f7f8fb; font-weight: 600; }
.pick-main { flex: 1 1 200px; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.pick-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----- Entrance motion (first paint of a view only) ----- */
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.tab-content.anim > * { animation: rise .45s var(--ease) both; }
.tab-content.anim > *:nth-child(2) { animation-delay: .04s; }
.tab-content.anim > *:nth-child(3) { animation-delay: .08s; }
.tab-content.anim > *:nth-child(4) { animation-delay: .12s; }
.tab-content.anim > *:nth-child(n+5) { animation-delay: .16s; }
.tab-content.anim .b-commit { animation: grow .7s var(--ease) both; animation-delay: var(--d, 0ms); }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .tiles-p { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: minmax(0, 1fr) auto; }
  .story-ctl { grid-column: 1 / -1; flex-wrap: wrap; }
}
@media (max-width: 960px) {
  .top.compact { flex-wrap: nowrap; }
  .top.compact .top-actions { order: 0; flex-basis: auto; flex-wrap: nowrap; }
}
@media (max-width: 640px) {
  .tabs-in { padding: 0 8px; }
  .page.wide { padding: 20px 14px 56px; }
  .row-head .btn { width: 100%; }
  .proj-hero { padding: 14px 16px 18px; border-radius: 20px; }
  .hero-text h1 { font-size: 25px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn.primary { flex: 1 1 100%; }
  .hero-actions .btn:not(.icon):not(.primary) { flex: 1; }
  .tool { flex-wrap: wrap; width: 100%; }
  .tool .seg { width: 100%; }
  .seg-btn { flex: 1; padding: 0 10px; }
  .tiles-p { gap: 10px; }
  .tile-p { flex-direction: column; gap: 10px; padding: 14px; }
  .tile-v { font-size: 22px; }
  .vel-head { flex-wrap: wrap; }
  .chart { grid-template-rows: 150px auto; column-gap: 6px; }
  .cols, .xl { gap: 6px; }
  .forecast { margin-left: 0; width: 100%; }
  .sprint-head { padding: 14px; gap: 10px; }
  .sprint-body { padding: 0 14px 16px; }
  .sprint-pts b { font-size: 18px; }
  .sprint-pts span { display: none; }
  .hide-sm { display: none; }
  .proj-chip { max-width: 100px; }
  .story-ctl select { max-width: none; flex: 1; min-width: 110px; }
  .slices { justify-items: stretch; }
  .slice-line select { flex: 1; max-width: none; }
  .story.grouped { grid-template-columns: minmax(0, 1fr); }
  .story-ctl .btn.icon { flex: none; }
  dialog.modal, dialog.modal.wide { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92vh; }
  dialog.modal[open] { animation: sheet .28s var(--ease); }
  .modal-head { padding: 16px 16px 4px; }
  .modal-body { padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); }
  .two, .two.wide-left { grid-template-columns: 1fr; }
  .modal-foot .btn { flex: 1; }
  .pick-title { white-space: normal; }
  .sched-head { display: none; }
  .sched-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sched-row .role-badge { grid-column: 1 / -1; justify-self: start; }
  .sc small { display: block; }
  .sc-sprint { grid-column: 1 / -1; order: 3; }
}
