/*
* /checkin - technician check-in page (app/Views/checkin/index.php).
* Phone first; from 960px wide the check-in column (440px) and Team sit side
* by side and the bottom tabs go away. Colours follow the design files: ink
* #0E1525 on #F3F5F9 with white cards; status tones chosen to pass contrast.
*/

:root {
    --bg: #F3F5F9;
    --card: #FFFFFF;
    --ink: #0E1525;
    --ink-2: #3A4252;
    --muted: #5B6474;
    --line: #E3E7EE;
    --line-soft: #EEF1F5;
    --field: #D5DAE3;
    --link: #1F4FB8;
    --link-hover: #163C8C;
    --zero-bg: #EEF1F5;
    --mine-bg: #FDE8EA; --mine-fg: #B42335;
    --open-bg: #FFF1DB; --open-fg: #8A5300;
    --cb-bg: #E3F0FF;   --cb-fg: #1F5FA8;
    --tabs-h: 64px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

/*Status tones*/
.t-active   { --tbg: #E3F5EA; --tfg: #0F6E40; --tdot: #2ECC71; }
.t-transit  { --tbg: #FFF1DB; --tfg: #8A5300; --tdot: #F5A623; }
.t-meeting  { --tbg: #EFEAFE; --tfg: #5B33C4; --tdot: #9B6DFF; }
.t-out      { --tbg: #FDE8EA; --tfg: #B42335; --tdot: #E74C3C; }
.t-vacation { --tbg: #E3F0FF; --tfg: #1F5FA8; --tdot: #3EA8FF; }
.t-pending  { --tbg: #EEF1F5; --tfg: #5B6474; --tdot: #C3C9D4; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    -webkit-tap-highlight-color: transparent;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
button, input { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
img.logo { display: block; flex: none; object-fit: contain; }
img.logo.inline { display: inline-block; vertical-align: -4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card { background: var(--card); border: 1px solid var(--line); }

.sec-title {
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.sec-title .sq { flex: none; width: 10px; height: 10px; border-radius: 3px; }

/*--------------------------------------------------------------- Top */
.updating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    background: var(--ink);
    color: #FFFFFF;
    font-size: 13px;
}
.updating strong { font-weight: 700; }
.updating a { color: #B9CCFF; font-weight: 700; padding: 12px 4px; white-space: nowrap; }
.updating a:hover { color: #FFFFFF; }

.top-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px 4px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 36px; object-fit: contain; }
.top-name { display: none; }
.me {
    margin-left: auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-decoration: none;
}
.me span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #E8ECF7;
    color: #2B4590;
    font-size: 13px;
    font-weight: 800;
}
.me:hover span { background: #DCE3F5; }

/*--------------------------------------------------------------- Layout */
.wrap { padding: 4px 16px 28px; }
.col-checkin, .col-team { min-width: 0; }
.view { display: flex; flex-direction: column; gap: 18px; }

/*Phone: one panel at a time*/
@media (max-width: 959.98px) {
    body.tab-team .col-checkin { display: none; }
    body:not(.tab-team) .col-team { display: none; }
    body[data-view="all"] .top,
    body[data-view="done"] .top,
    body[data-view="all"] .tabs,
    body[data-view="done"] .tabs { display: none; }
    body[data-view="all"] .wrap,
    body[data-view="done"] .wrap { padding-bottom: 24px; }
    body[data-view="all"] .foot,
    body[data-view="done"] .foot { display: none; }
}

.foot {
    padding: 0 20px calc(var(--tabs-h) + var(--safe-b) + 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}
.foot .classic { color: var(--muted); font-size: 12px; padding: 8px; }
.picker + .foot { padding-bottom: 28px; }

.tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: calc(var(--tabs-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: #FFFFFF;
    border-top: 1px solid var(--line);
}
.tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/*--------------------------------------------------------------- Banners */
.banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
}
.banner svg { flex: none; margin-top: 1px; }
.banner.is-error { background: #FDE8EA; color: #8F1B2A; }
.banner ul { margin: 4px 0 0; padding-left: 18px; }

.sending {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--ink);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
}
.spinner {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .3);
    border-top-color: #FFFFFF;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.prefill { padding: 14px 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.prefill-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prefill-what { font-size: 17px; }
.prefill-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }

/*--------------------------------------------------------------- Hello */
.hello { padding: 0 4px; display: flex; flex-direction: column; gap: 8px; }
.hello h1 { font-size: 25px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.lede { color: var(--muted); font-size: 15px; }
.statusline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--tbg);
    color: var(--tfg);
    font-size: 13px;
    font-weight: 700;
}
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tdot); }

/*--------------------------------------------------------------- Group */
.group { display: flex; flex-direction: column; gap: 8px; }
.group-head { display: flex; align-items: center; gap: 8px; padding: 0 4px; white-space: nowrap; min-height: 28px; }
.gtag {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--g);
    color: var(--gi);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.group-mode { font-size: 17px; font-weight: 700; }
.group-mode:empty { display: none; }
.group-hint { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

.away-note { padding: 10px 12px; border-radius: 12px; background: #FFF1DB; color: #6E4300; font-size: 13px; line-height: 1.4; }

.partner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.partner > svg { flex: none; }
.partner-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-link-inline { color: var(--ink); font-weight: 600; text-decoration: none; }
.p-link-inline:hover { color: var(--link); text-decoration: underline; }
.partner-where {
    margin-left: auto;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tfg);
    font-weight: 600;
    white-space: nowrap;
}

/*--------------------------------------------------------------- School rows */
.rows { display: flex; flex-direction: column; gap: 8px; }
.srow, .arow, .placerow {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink);
    position: relative;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}
.srow { min-height: 64px; padding: 10px 12px; border-radius: 16px; }
.srow.is-priority { border: 2px solid var(--g); padding: 9px 11px; }
.srow:hover, .arow:hover, .placerow:hover { border-color: #B8C0CE; box-shadow: 0 2px 8px rgba(14, 21, 37, .06); }
.srow.is-priority:hover { border-color: var(--g); }
.srow:active, .arow:active, .placerow:active, .chip:active { transform: scale(.99); }
.srow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.srow-top { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; min-width: 0; }
.srow-label { font-size: 19px; font-weight: 800; letter-spacing: .01em; line-height: 1.15; }
.srow-name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tag { flex: none; padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1.2; }
.tag-priority { background: #E8ECF7; color: #2B4590; }
.tag-here { background: #E3F5EA; color: #0F6E40; }

/*Counts: number over icon / OPEN; grey at zero*/
.cnts { flex: none; display: flex; gap: 5px; }
.cnt {
    width: 42px;
    padding: 6px 0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.cnt b { font-size: 17px; font-weight: 800; line-height: 1; }
.cnt small { font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 14px; }
.cnt-mine { background: var(--mine-bg); color: var(--mine-fg); }
.cnt-open { background: var(--open-bg); color: var(--open-fg); }
.cnt-cb   { background: var(--cb-bg);   color: var(--cb-fg); }
.cnt.is-zero, .big.is-zero { background: var(--zero-bg); color: var(--muted); }

.empty-note { padding: 14px; border-radius: 14px; background: var(--card); border: 1px dashed var(--field); color: var(--muted); font-size: 14px; }

/*Other places (Transit / Meeting)*/
.others { display: none; flex-direction: column; gap: 8px; }
body[data-mode="transit"] .others,
body[data-mode="meeting"] .others { display: flex; }
.placerow { min-height: 56px; padding: 0 14px; border-radius: 14px; gap: 12px; }
.placerow .logo { width: 26px; height: 28px; }
.placerow-label { font-size: 17px; font-weight: 800; }
.placerow-name { flex: 1; font-size: 14px; color: var(--muted); }
.placerow > svg { flex: none; color: var(--muted); }

/*--------------------------------------------------------------- Not at a school? */
.else { display: flex; flex-direction: column; gap: 8px; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 2px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}
.chip:hover { border-color: #B8C0CE; }
.chip[aria-pressed="true"] { background: var(--tbg); color: var(--tfg); border: 2px solid var(--tfg); }

.alllink {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}
.alllink:hover { color: var(--ink); border-color: #B8C0CE; }
.alllink span { flex: 1; }
.alllink svg { flex: none; color: var(--muted); }
.mode-note { padding: 0 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/*--------------------------------------------------------------- Modes */
body[data-mode="transit"] .srow,
body[data-mode="meeting"] .srow { border: 1px dashed #9AA3B2; padding: 10px 12px; }
body[data-mode="transit"] .tag-priority,
body[data-mode="meeting"] .tag-priority { display: none; }
body[data-mode="transit"] .srow.is-here,
.arow:disabled, .placerow:disabled { opacity: .55; cursor: default; }
body[data-mode="meeting"] .srow.is-here { border: 2px solid #5B33C4; padding: 9px 11px; }
body[data-mode="transit"] .group-mode { color: #8A5300; }
body[data-mode="meeting"] .group-mode { color: #5B33C4; }

/*Sending: one tap only*/
body.is-busy .view button,
body.is-busy .view a { pointer-events: none; }
body.is-busy .view .srow:not(.is-sending),
body.is-busy .view .arow:not(.is-sending),
body.is-busy .view .placerow:not(.is-sending),
body.is-busy .view .chip:not(.is-sending) { opacity: .5; }
.is-sending { box-shadow: 0 0 0 3px rgba(31, 79, 184, .35); }
.is-sending::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(14, 21, 37, .2);
    border-top-color: var(--ink);
    animation: spin .8s linear infinite;
}
.chip.is-sending { position: relative; }

/*--------------------------------------------------------------- All schools */
.view-all { gap: 0; }
.all-head { position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 8px 0 12px; background: var(--bg); }
.all-bar { display: flex; align-items: center; gap: 8px; margin-left: -8px; }
.all-title { font-size: 20px; font-weight: 800; }
.legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.legend .dot, .onsite { background: #2ECC71; }
.onsite { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.iconbtn {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink);
}
.iconbtn:hover { background: #E6EAF0; }
.search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--field);
    color: var(--muted);
}
.search:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px rgba(31, 79, 184, .2); }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: #6B7380; }
.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #E6EAF0; }
.levels button { height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.levels button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(14, 21, 37, .14); }
.all-list { display: flex; flex-direction: column; gap: 16px; }
.all-sec { display: flex; flex-direction: column; gap: 6px; }
.arow { min-height: 58px; padding: 8px 10px 8px 12px; border-radius: 14px; }
.arow.is-here { border-color: #9BD8B4; }
.arow-label { font-size: 16px; font-weight: 800; }
.arow .srow-name { font-size: 12px; }
.arow .srow-main { gap: 2px; }
.gmini { flex: none; padding: 2px 5px; border-radius: 5px; font-size: 10px; font-weight: 800; line-height: 1.2; background: var(--g); color: var(--gi); }
.arow .cnts { gap: 4px; }
.arow .cnt { width: 38px; padding: 5px 0; border-radius: 9px; gap: 2px; }
.arow .cnt b { font-size: 15px; }
.arow .cnt small { font-size: 9px; line-height: 12px; }
.all-empty { padding: 24px 4px; text-align: center; font-size: 15px; color: var(--muted); }

/*--------------------------------------------------------------- Done */
.view-done { gap: 22px; padding: 0 4px; }
/*Phone: the buttons sit at the bottom of the screen, as in the design*/
@media (max-width: 959.98px) {
    .view-done { min-height: calc(100vh - 28px); min-height: calc(100dvh - 28px); }
    body.is-other .view-done { min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); }
    .done-next { margin-top: auto; }
}
.done-close { display: flex; justify-content: flex-end; margin: 4px -12px -18px 0; }
.done-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; text-align: center; }
.done-mark {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--tdot);
    color: var(--ink);
    box-shadow: 0 0 0 10px var(--tbg);
    animation: pop .35s cubic-bezier(.2, .9, .3, 1.3) both;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-kicker { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--tfg); letter-spacing: .04em; text-transform: uppercase; }
.done-place { display: flex; align-items: center; gap: 12px; font-size: 46px; font-weight: 800; letter-spacing: .01em; line-height: 1; }
.done-place.is-word { font-size: 40px; }
.done-line { font-size: 16px; color: var(--muted); line-height: 1.4; max-width: 34ch; }
.waiting { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; }
.waiting-head { display: flex; align-items: baseline; gap: 8px; }
.waiting-head h2 { font-size: 17px; font-weight: 700; }
.waiting-head .meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.waiting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.big { padding: 12px 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.big b { font-size: 30px; font-weight: 800; line-height: 1; }
.big span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.done-partner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.done-partner strong { color: var(--ink); font-weight: 600; }
.done-next { display: flex; flex-direction: column; gap: 10px; }
.done-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.done-pair:empty { display: none; }
.done-pair > :only-child { grid-column: 1 / -1; }
.btn-primary, .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
.btn-primary { min-height: 54px; border: 0; background: var(--ink); color: #FFFFFF; font-size: 16px; font-weight: 700; }
.btn-primary:hover { background: #24304A; }
.btn { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn:hover { border-color: #B8C0CE; }
.ic-transit { color: #8A5300; display: inline-flex; }
.ic-meeting { color: #5B33C4; display: inline-flex; }
.ic-active { color: #0F6E40; display: inline-flex; }
.foot-note { margin-top: 4px; text-align: center; font-size: 13px; color: var(--muted); }

/*--------------------------------------------------------------- Team + picker rows */
.team-head { display: flex; flex-direction: column; gap: 10px; padding: 14px 4px 14px; }
.team-title { font-size: 25px; font-weight: 800; letter-spacing: -.01em; }
.tally { display: flex; gap: 6px; flex-wrap: wrap; }
.tally span { padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill-in { background: #E3F5EA; color: #0F6E40; }
.pill-away { background: #FDE8EA; color: #B42335; }
.pill-not { background: #E6EAF0; color: var(--ink-2); }
.team-cols { display: flex; flex-direction: column; gap: 16px; }
.team-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.team-sec { display: flex; flex-direction: column; gap: 6px; }
.plist { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; }
.prow {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 8px 14px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink);
    text-decoration: none;
}
.prow:first-child { border-top: 0; }
.prow:hover { background: #F8F9FC; color: var(--ink); }
.avatar {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--tbg);
    color: var(--tfg);
    box-shadow: inset 0 0 0 2px var(--tdot);
    font-size: 13px;
    font-weight: 800;
}
.done-partner .avatar { width: 34px; height: 34px; font-size: 12px; }
.p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.p-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.p-link, .p-text { overflow: hidden; text-overflow: ellipsis; color: var(--ink); text-decoration: none; }
/*The whole row opens the person's check-in*/
.p-link::after { content: ""; position: absolute; inset: 0; }
.p-link:hover { color: var(--link); text-decoration: underline; }
.p-link:focus-visible { outline: none; }
.p-link:focus-visible::after { outline: 3px solid var(--link); outline-offset: -3px; border-radius: 4px; }
.you-tag { flex: none; padding: 2px 6px; border-radius: 5px; background: #E8ECF7; color: #2B4590; font-size: 11px; font-weight: 700; }
.p-line { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; font-size: 13px; color: var(--muted); white-space: nowrap; }
.p-status { flex: none; font-weight: 700; color: var(--tfg); }
.p-at, .p-to { flex: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.p-at { color: var(--ink-2); }
.p-to { color: #8A5300; }
.p-note { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.p-when { flex: none; font-size: 13px; color: var(--muted); }
.prow.is-pick .p-when::after { content: ""; }

/*--------------------------------------------------------------- Desktop */
@media (min-width: 960px) {
    .top { background: #FFFFFF; border-bottom: 1px solid var(--line); }
    .top-in { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 64px; gap: 12px; }
    .brand { font-size: 16px; }
    .top-name { display: block; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-2); }
    .me { margin-left: -4px; }
    .wrap {
        max-width: 1200px;
        margin: 0 auto;
        padding: 28px 32px 24px;
        display: flex;
        flex-wrap: wrap;
        gap: 28px;
        align-items: flex-start;
    }
    .col-checkin { flex: 1 1 360px; max-width: 440px; }
    .col-team { flex: 999 1 560px; }
    .picker .col-checkin { max-width: 560px; margin: 0 auto; }
    .hello h1 { font-size: 26px; }
    .srow .logo { width: 38px; height: 38px; }
    .srow { gap: 12px; }
    .cnt { width: 44px; }
    .tabs { display: none; }
    .foot { max-width: 1200px; margin: 0 auto; padding: 0 32px 28px; align-items: flex-start; text-align: left; flex-direction: row; justify-content: space-between; }
    .team-head { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 4px 14px; }
    .team-title { font-size: 26px; }
    .team-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
    .prow { min-height: 58px; }
    .prow .avatar { width: 36px; height: 36px; font-size: 12px; }
    .view-all .all-head { top: 0; }
    .done-close { margin-top: -8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; }
}

/*--------------------------------------------------------------- Who are you? */
.picker .col-checkin { display: flex; flex-direction: column; gap: 18px; }
.picker .hello { padding-top: 8px; }
.picker .team-sec { gap: 8px; }
