html[data-theme] .location-now { background:var(--surface); border:0; border-radius:24px; padding:24px; margin:0 0 24px; }
.location-now-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.location-now-eyebrow { display:block; margin-bottom:7px; color:var(--muted); font-size:11px; font-weight:500; letter-spacing:.6px; line-height:1.5; }
.location-now-heading h2 { margin:0; color:var(--ink); font-size:25px; font-weight:600; letter-spacing:-.7px; }
.location-now-clock { flex-shrink:0; color:var(--ink); font-size:24px; font-variant-numeric:tabular-nums; font-weight:500; letter-spacing:-.7px; }
.location-now-clock small { display:block; text-align:right; font-size:10px; letter-spacing:.8px; color:var(--muted); margin-top:3px; }
.location-now-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:28px; }
.location-now-section-title { display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.location-now-section-title h3 { display:flex; align-items:center; gap:7px; margin:0; font-size:14px; font-weight:500; }
.location-now-section-title > .icon { width:16px; height:16px; margin-left:auto; color:var(--muted); }
.location-now-count { color:var(--muted); font-size:13px; }
.location-now-dot { display:block; width:6px; height:6px; border-radius:50%; background:var(--status-positive); }
.location-now-people { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 22px; }
.location-now-person { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px 12px; min-width:0; padding:4px 0 10px; }
.location-now-identity { display:flex; gap:10px; align-items:center; min-width:0; }
.location-now-identity .avatar { width:36px; height:36px; min-width:36px; flex:0 0 36px; border-radius:50%; }
.location-now-identity > div { min-width:0; }
.location-now-identity strong { display:block; color:var(--ink); font-size:14px; font-weight:550; line-height:1.4; overflow-wrap:anywhere; }
.location-now-identity span:not(.avatar) { display:block; margin-top:3px; color:var(--muted); font-size:11px; line-height:1.4; }
.location-now-time { text-align:right; font-variant-numeric:tabular-nums; }
.location-now-time strong { display:block; color:var(--ink); font-size:14px; font-weight:500; white-space:nowrap; }
.location-now-time > span { display:block; margin-top:4px; color:var(--muted); font-size:11px; white-space:nowrap; }
.location-now-progress { grid-column:1/-1; appearance:none; -webkit-appearance:none; display:block; border:0; width:100%; height:3px; border-radius:3px; overflow:hidden; background:var(--location-progress-track,var(--surface-subtle)); color:var(--muted); }
.location-now-progress::-webkit-progress-bar { background:var(--location-progress-track,var(--surface-subtle)); border-radius:3px; }
.location-now-progress::-webkit-progress-value { background:var(--control-accent); border-radius:3px; }
.location-now-progress::-moz-progress-bar { background:var(--control-accent); border-radius:3px; }
.location-now-more { margin-top:10px; }
.location-now-more > summary { display:flex; align-items:center; gap:8px; list-style:none; width:fit-content; padding:5px 0; color:var(--muted); font-size:12px; cursor:pointer; }
.location-now-more > summary::-webkit-details-marker { display:none; }
.location-now-more > summary:hover:where(:not(html[data-hover-disabled] *)) { color:var(--ink); }
.location-now-more > summary .icon { width:14px; height:14px; transition:transform 180ms ease; }
.location-now-more[open] > summary .icon { transform:rotate(90deg); }
.location-now-more .location-now-people { padding-top:12px; }
/* A compact pause row must not raise the neighbouring workday card. */
.location-now-idle { display:grid; gap:var(--surface-gap); min-width:0; padding:var(--surface-inset); background:var(--list-row-surface); border-radius:var(--inset-corner); corner-shape:var(--surface-curve); }
.location-now-idle>.location-now-empty { padding:0; background:transparent; border-radius:0; }
.location-now-rest { display:flex; align-items:center; justify-content:center; gap:var(--surface-gap); min-width:0; padding:var(--surface-gap) 0 0; border-top:1px solid var(--line); text-align:left; }
.location-now-rest>div { min-width:0; }
.location-now-rest-scene { display:flex; align-items:center; justify-content:center; flex:0 0 auto; gap:var(--compact-gap); }
.location-now-rest-scene .location-avatar-stack { margin:0; padding:0; }
.location-now-rest-scene .location-avatar-stack>.avatar { width:calc(var(--control-height) - 2 * var(--compact-gap)); height:calc(var(--control-height) - 2 * var(--compact-gap)); flex-basis:calc(var(--control-height) - 2 * var(--compact-gap)); border-color:var(--personal-board); }
.location-now-rest-moon { display:flex; color:var(--control-accent); }
.location-now-rest-moon>.icon { width:calc(var(--control-height) / 2); height:calc(var(--control-height) / 2); }
.location-now-rest strong { display:block; font-family:var(--panel-heading-font); font-size:var(--list-row-title-size); font-weight:var(--panel-heading-weight); line-height:1.5; color:var(--ink); }
.location-now-rest p { margin:calc(var(--compact-gap) / 2) 0 0; font-size:var(--panel-caption-size); line-height:1.6; color:var(--muted); }
@media(max-width:650px) {
 .location-now-rest { gap:var(--compact-gap); }
}

.location-now-empty strong { font-size:14px; color:var(--ink); font-weight:500; }
.location-now-empty p { margin:7px 0 0; font-size:12px; line-height:1.6; color:var(--muted); }
.location-now-empty { display:flex; align-items:center; box-sizing:border-box; gap:var(--surface-gap); padding:var(--surface-inset); border-radius:var(--inset-corner); corner-shape:var(--surface-curve); background:var(--list-row-surface); }
.location-now-empty > div { min-width:0; }
.location-now-empty-icon { display:flex; align-items:center; justify-content:center; flex:0 0 auto; color:var(--muted); }
.location-now-empty-icon > .icon { width:21px; height:21px; }
@media(max-width:650px) {
 .location-now-empty { gap:var(--compact-gap); align-items:flex-start; }
 .location-now-empty-icon > .icon { width:18px; height:18px; }
 .location-now-empty p { margin-top:4px; }
}
@media(max-width:1200px) { .location-now-people { grid-template-columns:minmax(0,1fr); } }
@media(max-width:750px) {
 html[data-theme] .location-now { padding:18px; margin-bottom:20px; }
 .location-now-heading { margin-bottom:18px;  }
 .location-now-heading h2 { font-size:22px; }
 .location-now-eyebrow { max-width:210px; font-size:11px; letter-spacing:.3px; }
 .location-now-clock { font-size:21px; }
 .location-now-layout { grid-template-columns:minmax(0,1fr); gap:18px; }
 .location-now-section-title { margin-bottom:12px; }
}


/* Compact presentation keeps the original rows and progress lines. */
html[data-theme] .location-now { padding:20px; }
.location-now-heading { margin-bottom:14px; align-items:center; }
.location-now-heading > div { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 14px; }
.location-now-heading h2 { font-size:21px; }
.location-now-scope { font-size:11px; color:var(--muted); line-height:1.4; }
.location-now-clock { display:flex; align-items:baseline; gap:6px; font-size:18px; letter-spacing:-.4px; }
.location-now-clock small { display:inline; margin:0; font-size:10px; }
.location-now-section-title { margin-bottom:10px; }
.location-now-people { gap:10px 24px; }
.location-now-person { padding-bottom:4px; gap:8px 12px; }
.location-now-more { grid-column:1/-1; margin-top:0; }
.location-now-extra { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px 24px; padding-top:var(--surface-gap); }
.location-now-more > summary { padding:3px 0; }
@media(max-width:650px) {
 html[data-theme] .location-now { padding:16px; }
  .location-now-heading > div { display:grid; gap:4px; }
 .location-now-heading h2 { font-size:20px; }
 .location-now-scope { font-size:10px; }
 .location-now-clock { font-size:16px; gap:4px; }
 .location-now-clock small { font-size:9px; }
 .location-now-person { padding-bottom:6px; }
}

.location-now-header-status { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; white-space:nowrap; }
.location-now-header-status b { color:var(--ink); font-weight:500; }
@media(max-width:650px) { .location-now-heading > div { display:flex; align-items:center; gap:6px 10px; } .location-now-scope { display:none; } }

.location-now-heading > div { align-items:center; }
.location-now-header-status,.location-now-scope { font-size:12px; line-height:1.4; }
.location-now-header-status { align-items:center; }
.location-now-header-status b { font-size:inherit; line-height:inherit; }

/* Active shifts use up to three columns, filling the row for smaller teams. */
.location-now-people { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px 24px; }
.location-now-people:focus-visible { outline:1px solid var(--muted); outline-offset:4px; border-radius:8px; }

@media(max-width:1100px) { .location-now-people,.location-now-extra { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) {
 .location-now-people { grid-template-columns:minmax(0,1fr); gap:10px; max-height:min(340px,45dvh); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--line) transparent; padding-right:3px; }
 .location-now-person { gap:6px 10px; padding-bottom:4px; }
 .location-now-identity .avatar { width:30px; height:30px; min-width:30px; flex-basis:30px; }
 .location-now-identity { gap:8px; }
 .location-now-identity strong { font-size:13px; }
 .location-now-time strong { font-size:13px; }
}

.location-now-more[hidden] { display:none!important; }
@media(max-width:650px) {
 .location-now-people { max-height:none; overflow:visible; padding-right:0; }
 .location-now-more { grid-column:1/-1; margin:0; }
 .location-now-extra { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; padding-top:12px; }
}

@media(min-width:651px) {
 .location-now-people:where(:not(.owner-team-list-dialog *)):not(:has(> .location-now-person:nth-of-type(3))) { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .location-now-people:where(:not(.owner-team-list-dialog *)):not(:has(> .location-now-person:nth-of-type(2))) { grid-template-columns:minmax(0,1fr); }
}
/* Match the line boxes as well as the flex alignment in the summary header. */
.location-now-heading h2 { line-height:1.4; }
.location-now-heading > div { align-items:center; }
.location-now-header-status,.location-now-scope { align-self:center; margin:0; }
.location-now-heading > div { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:4px 14px; min-width:0; }
.location-now-heading h2 { grid-column:1/-1; grid-row:1; }
.location-now-header-status { grid-column:1; grid-row:2; justify-self:start; }
.location-now-scope { grid-column:2; grid-row:2; }
@media(max-width:650px) {
 .location-now-heading > div { grid-template-columns:minmax(0,1fr); }
 .location-now-header-status { justify-self:start; }
}

.location-now-heading > .location-now-tools { min-height:var(--control-height); margin-left:auto; }

/* Plain daily staffing row, without a nested card or decorative chart. */
.location-now-tools > .button.location-now-coverage { display:grid; grid-template-columns:minmax(0,1fr) auto 14px; align-items:center; gap:var(--compact-gap); min-height:var(--control-height); margin-left:auto; padding:var(--compact-gap); border:0; background:transparent; color:var(--ink); text-align:left; box-shadow:none; }
.location-now-tools > .button.location-now-coverage:hover:where(:not(html[data-hover-disabled] *)) { background:var(--surface-subtle-hover); }
.location-now-coverage > span { color:var(--muted); font-size:var(--person-name-size); line-height:1.5; }
.location-now-coverage > strong { font-size:var(--person-name-size); font-weight:550; line-height:1.5; color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
.location-now-coverage.is-complete > strong { color:var(--status-positive); }
.location-now-coverage > .icon { width:14px; height:14px; color:var(--muted); }
@media(min-width:651px) and (max-width:1100px) {
 .location-now-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
 .location-now-heading > .location-now-tools { max-width:100%; gap:var(--compact-gap); }
 .location-now-tools > .button.location-now-coverage { width:auto; margin-left:0; padding-inline:var(--compact-gap); }
}
@media(min-width:651px) and (max-width:900px) {
 .location-now-heading { gap:var(--compact-gap); }
 .location-now-tools > .button.location-now-coverage { padding-inline:0; }
 .location-now-coverage > span { white-space:nowrap; }
 .location-now-heading > div:first-child { grid-template-columns:minmax(0,1fr); }
 .location-now-scope { grid-column:1; grid-row:3; }
}
@media(max-width:650px) {
 .location-now { --location-progress-track:var(--control-border); }
 .location-now-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; }
 html[data-theme] .location-now-heading > .location-now-tools { display:contents; }
 .location-now-heading > div:first-child { grid-column:1; grid-row:1; }
 .location-now-heading .location-now-clock { grid-column:2; grid-row:1; }
 .location-now-tools > .button.location-now-coverage { grid-column:1 / -1; grid-row:2; width:100%; margin:0; padding:var(--compact-gap) var(--surface-inset); background:var(--surface-subtle); }
 .location-now-tools > .button.location-now-coverage:hover:where(:not(html[data-hover-disabled] *)) { background:var(--surface-subtle-hover); }
}
