/* Studio screens (spec sections 16-19). Uses the colours and parts of app.css. No animation, 44px tap targets. */
.today-title { margin-bottom: 14px; }
.today-title h1 { margin-top: 4px; }
.next-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-title { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: inherit; text-decoration: none; font: 700 20px/1.2 var(--head); }
.next-title .cname { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.next-n { margin-left: auto; }
.names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.name { display: inline-flex; align-items: center; gap: 6px; background: var(--stone); border-radius: 8px; padding: 5px 10px; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.name i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); }
.name i.t { color: var(--teal-deep); } .name i.b { color: var(--blush-ink); } .name i.r { color: var(--danger); }

.lines { display: grid; grid-template-columns: minmax(0, 1fr); }
.line { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; }
.lines > .line:last-child { border-bottom: 0; }
button.line, a.line { cursor: pointer; }
a.line:hover b, button.line:hover b { color: var(--teal-deep); }
.line > .i { color: var(--muted); flex: none; }
.line .grow { min-width: 0; }
.line .grow > .tiny { display: block; }
.line-t { width: 48px; flex: none; font-variant-numeric: tabular-nums; }
.line-t.wide { width: 92px; }
.line-c { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.line-c .i { color: var(--muted); }
.line-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.line-n { flex: none; }
.line-n.full { color: var(--danger); }
.line.off { opacity: .6; }
.line.off .line-c { text-decoration: line-through; }
.card.lines { padding-top: 6px; padding-bottom: 6px; }
.impact { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; max-height: 230px; overflow: auto; }
.impact .line { min-height: 42px; font-size: 14.5px; }

.notice { background: var(--teal-soft); border-color: var(--teal-line); color: inherit; text-decoration: none; padding: 12px 14px; margin-bottom: 12px; }
.stack > .notice { margin-bottom: 0; }
.fold > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font-weight: 600; color: var(--muted); }
.fold[open] > summary::after { content: "–"; }
.fold-in { margin-top: 14px; }
.item > .i { color: var(--muted); flex: none; }

/* one class */
.cls-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.cls-head h1 { font-size: 24px; }
.cls-head p { margin-top: 4px; }
.cls-acts { margin-bottom: 16px; }
.cls-acts > :only-child { grid-column: 1 / -1; }
.people { padding-bottom: 8px; }
.prow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow-main { flex: 1; min-width: 0; min-height: 56px; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.prow-main .grow { min-width: 0; }
.prow-main .grow b, .prow-main .grow .tiny { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-main > .i { color: var(--muted); }
.prow .t { color: var(--teal-deep); font-weight: 600; } .prow .w { color: #8a4b06; font-weight: 600; } .prow .r { color: var(--danger); font-weight: 600; }
.prow-health { flex-basis: 100%; display: flex; gap: 8px; font-size: 13.5px; color: #7a1d14; background: var(--danger-soft); border-radius: var(--radius-sm); padding: 6px 10px; margin: 0 0 8px; }
.prow-health .i { color: var(--danger); margin-top: 2px; flex: none; }
.att { min-height: 40px; min-width: 104px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff; font: 600 14px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.att.bad { background: var(--danger); border-color: var(--danger); color: #fff; }
.seg.full { display: flex; margin-top: 14px; } .seg.full button { flex: 1; min-height: 42px; }

/* sheets */
.menu { display: grid; margin-top: 8px; }
.menu button { display: flex; align-items: center; gap: 12px; min-height: 52px; border: 0; border-bottom: 1px solid var(--line); background: none; font: 500 16px/1.2 var(--body); color: inherit; text-align: left; cursor: pointer; }
.menu button:last-child { border-bottom: 0; }
.menu .i { color: var(--muted); } .menu .danger, .menu .danger .i { color: var(--danger); }
.tell { display: flex; align-items: center; gap: 10px; min-height: 54px; border-bottom: 1px solid var(--line); }
.tell .grow { min-width: 0; overflow-wrap: anywhere; }
.tick { width: 44px; height: 44px; margin-left: -8px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; position: relative; flex: none; }
.tick::before { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--line-2); border-radius: 6px; }
.tell.done .tick::before { background: var(--teal-deep); border-color: var(--teal-deep); }
.tell .tick .i { position: relative; color: #fff; }
.tgroup { margin: 16px 0 2px; font-size: 15px; }
.booksheet h3 { margin: 14px 0 2px; font-size: 15px; }
.booksheet .line { cursor: pointer; } .booksheet input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.sticky-acts { position: sticky; bottom: calc(-22px - var(--safe-b)); background: #fff; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 0 calc(16px + var(--safe-b)); margin-bottom: calc(-22px - var(--safe-b)); }
.modal-back { animation: none; } .modal { animation: none; }
.modal:focus { outline: none; }

/* schedule */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: -6px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 12px; min-height: 44px; white-space: nowrap; font-weight: 600; font-size: 14.5px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.tabs a:first-child { padding-left: 0; }
.weeknav { margin-bottom: 12px; }
.weekstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekstrip .day { width: auto; padding: 8px 0 6px; color: inherit; text-decoration: none; display: block; }
.weekstrip .day.on { color: #fff; }
.weekstrip .day .dw { font-size: 10px; letter-spacing: 0; }
.weekstrip .dc { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.weekstrip .day.on .dc { color: rgba(255, 255, 255, .75); }
.closed-note { display: flex; align-items: center; gap: 6px; color: var(--blush-ink); background: var(--blush-soft); border-radius: var(--radius-sm); padding: 7px 10px; margin-bottom: 8px; }
.only-wide { display: none; }
@media (min-width: 900px) { .only-phone { display: none; } .only-wide { display: grid; } .slot-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .slot-days > * { margin: 0 !important; } }
.slot-days > * { margin-bottom: 12px; }
.grid-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.daypick { display: flex; flex-wrap: wrap; gap: 6px; }
.daypick label { position: relative; }
.daypick input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.daypick span { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }
.daypick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.daypick input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* clients, setup */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 12px; scrollbar-width: none; }
.fchip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; font: 600 14px/1 var(--body); color: inherit; cursor: pointer; }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.plain { color: inherit; text-decoration: none; min-width: 0; }
.narrow { max-width: 620px; }
.help { padding: 12px 0; border-bottom: 1px solid var(--line); } .help:last-child { border-bottom: 0; } .help p { margin: 4px 0 6px; }
.pr { display: grid; gap: 10px; } .pr .linkbtn { min-height: 40px; } .pr .linkbtn[disabled] { opacity: .35; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* toast with buttons */
#toast.withbtn { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; text-align: left; width: max-content; }
#toast.withbtn button, #toast.withbtn a { border: 0; background: none; color: #8fe0d8; font: 700 14.5px/1 var(--body); padding: 12px 0; min-height: 40px; cursor: pointer; text-decoration: none; }

/* cards in a .cols block stack on the phone */
@media (max-width: 899px) { .shell.wide > .cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* 44px tap targets */
.shell.wide .linkbtn, .modal .linkbtn { min-height: 44px; }
.att, .fchip, #toast.withbtn button, #toast.withbtn a { min-height: 44px; }
@media (pointer: coarse) { .shell.wide .btn.small, .modal .btn.small { min-height: 44px; } }
