.shift-home {
  --sh-paper:var(--ui-surface);
  --sh-ink:var(--ui-text);
  --sh-muted:var(--ui-muted);
  --sh-edge:var(--ui-line);
  --sh-accent:var(--ui-accent);
  --sh-wash:var(--ui-soft);
  display:grid;
  gap:20px;
  width:min(100%,1050px);
  margin-inline:auto;
  color:var(--sh-ink);
  font-family:inherit;
}
.shift-home h1,.shift-home h2,.shift-home h3,.shift-home p { margin:0; }
.shift-home button { font:inherit;cursor:pointer; }
.shift-home button:focus-visible {outline:3px solid var(--sh-accent);outline-offset:4px;}
.shift-home .ico {width:19px;height:19px;flex:none;stroke-width:1.7;}
.sh-head,.sh-person,.sh-date {display:flex;align-items:center;}
.sh-head {justify-content:space-between;gap:15px;}
.sh-head h1 {
  margin-top:7px;
  font-size:clamp(34px,4.4vw,57px);
  line-height:1.02;letter-spacing:-.065em;
  font-weight:740;
}
.sh-date {color:var(--sh-muted);gap:7px;font-size:13px;font-weight:550;}
.sh-date time::first-letter,.sh-month span::first-letter {text-transform:uppercase;}
.sh-date .ico {width:15px;height:15px;}
.sh-person {gap:10px;}
.sh-person-icon,.sh-task-icon,.sh-visit-icon {display:grid;place-items:center;color:var(--sh-accent);background:var(--sh-wash);}
.sh-person-icon {width:39px;height:39px;border-radius:12px;}
.sh-person strong,.sh-person div>span {display:block;}
.sh-person strong {font-size:14px;font-weight:680;}
.sh-person div>span {font-size:12px;color:var(--sh-muted);}
.sh-clock-card {
  position:relative;
  isolation:isolate;overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.72fr);
  align-items:center;gap:30px;min-height:267px;
  padding:35px clamp(28px,5vw,74px);
  border-radius:20px;color:#fff;
  background:linear-gradient(105deg,#28282b,#323235);
}
.sh-clock-card::before {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:url("./brand-watermark.svg") no-repeat right -28px center / auto 116%;
  opacity:.065;
}
.sh-clock-copy {max-width:410px;}
.sh-clock-person {display:flex;align-items:center;gap:11px;margin-bottom:20px;}
.sh-clock-person>.oa-avatar,.sh-visit-avatar>.oa-avatar {--oa-size:48px;}
.sh-clock-person .sh-state {margin:0;}
body[data-surface="system"] .sh-clock-person .oa-avatar>.orel-presence-dot {border-color:var(--hero-bg,#28282b);}
.sh-state {
  width:max-content;display:flex;align-items:center;gap:8px;
  margin-bottom:23px;padding:4px 10px;
  font-size:12px;font-weight:600;line-height:1.4;border-radius:99px;
  background:#ffffff12;border:1px solid #ffffff40;color:#fff;
}
.sh-state i {width:7px;height:7px;border-radius:50%;background:#a4a4a6;}
.is-on .sh-state i {background:#53dc81;box-shadow:0 0 0 3px #53dc811c;}
.sh-clock-card h2 {
  font-size:clamp(32px,4.5vw,57px);
  line-height:1.05;letter-spacing:-.06em;
  font-weight:680;color:#fff;
}
.sh-clock-card p {margin-top:9px;color:#e3dfda;font-size:clamp(14px,1.35vw,17px);line-height:1.45;}
.sh-mode {display:inline-flex;align-items:center;gap:6px;margin-top:10px;color:#ece9e5;font-size:13px;}
.sh-mode .ico {width:15px;height:15px;}
.sh-control {align-self:center;display:grid;justify-items:center;gap:12px;}
.sh-clock-button {
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:clamp(146px,14vw,181px);aspect-ratio:1;
  border:1px solid #fff8;border-radius:50%;
  background:var(--punch-fill);color:white;
  box-shadow:0 5px 19px #14131452,0 0 0 6px #ffffff10,0 0 0 7px #ffffff42;
  transition:transform .18s ease,box-shadow .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.sh-clock-button .ico {width:clamp(30px,3vw,39px);height:clamp(30px,3vw,39px);stroke-width:1.65;margin-bottom:8px;}
.sh-clock-button span {font-size:clamp(21px,2.2vw,28px);font-weight:725;letter-spacing:-.055em;line-height:1;}
.sh-clock-card .sh-clock-button:focus-visible,.sh-clock-card .sh-visit:focus-visible {outline-color:#fff;}
@media(hover:hover) {
  .sh-clock-button:hover {transform:translateY(-2px);background:var(--punch-hover);box-shadow:0 10px 26px #17161766,0 0 0 7px #ffffff20,0 0 0 8px #ffffff55;}
}
.sh-clock-button:active {transform:scale(.96);}
.sh-visit {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;
  background:transparent;color:#fff;border:0;border-radius:6px;font-weight:500;font-size:13px;
}
.sh-visit .ico {width:15px;height:15px;}
.sh-visit:hover {text-decoration:underline;text-underline-offset:3px;}
.sh-visit-card {border:1px solid var(--sh-edge);border-radius:16px;background:var(--sh-paper);display:flex;align-items:center;gap:18px;padding:clamp(20px,3vw,38px);}
.sh-visit-icon {border-radius:50%;width:52px;height:52px;flex:none;}
.sh-visiting {display:flex;align-items:center;gap:9px;}
.sh-visiting::before {content:"";width:7px;height:7px;border-radius:50%;background:#939397;flex:none;}
.sh-visit-icon .ico {width:24px;height:24px;}
.sh-visit-card h2 {font-size:clamp(21px,2.8vw,30px);letter-spacing:-.04em;}
.sh-visit-card p,.sh-note {font-size:13px;color:var(--sh-muted);}
.sh-visit-card button,.sh-month button {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--sh-accent);background:transparent;
  border:1px solid var(--sh-edge);border-radius:8px;min-height:40px;padding:6px 12px;
}
.sh-visit-card button {margin-inline-start:auto;font-size:14px;}
.sh-details {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:16px;align-items:start;}
.sh-card {padding:clamp(18px,2.2vw,27px);min-width:0;border:1px solid var(--sh-edge);border-radius:16px;background:var(--sh-paper);}
.sh-card h2 {display:flex;align-items:center;gap:9px;font-size:clamp(18px,1.7vw,22px);font-weight:685;letter-spacing:-.035em;line-height:1.2;}
.sh-card h2 .ico {color:var(--sh-accent);width:19px;height:19px;}
.sh-task-list {margin-top:14px;}
.sh-task-list button {
  width:100%;padding:9px 0;border:0;border-top:1px solid var(--sh-edge);background:transparent;color:var(--sh-ink);
  display:flex;align-items:center;gap:11px;text-align:left;min-height:53px;
}
.sh-task-list button:first-child {border-top:0;}
.sh-task-icon {border-radius:10px;width:35px;height:35px;flex:none;}
.sh-task-list button>strong {font-weight:620;font-size:15px;}
.sh-task-list button>.ico {margin-inline-start:auto;color:var(--sh-muted);width:15px;height:15px;}
.sh-task-list button:hover>strong {color:var(--sh-accent);text-decoration:underline;text-underline-offset:3px;}
.sh-hours>header {display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;}
.sh-month {display:flex;align-items:center;gap:3px;}
.sh-month span {font-size:12px;font-weight:600;color:var(--sh-muted);min-width:82px;text-align:center;}
.sh-month button {min-width:34px;min-height:36px;padding:0;border:0;}
.sh-month button:first-child>.ico {transform:rotate(180deg);}
.sh-month .ico {width:16px;height:16px;}
.sh-month button:hover {background:var(--sh-wash);}
.sh-hours-group {margin-top:17px;}
.sh-hours-group+.sh-hours-group {padding-top:15px;border-top:1px solid var(--sh-edge);}
.sh-hours-group h3 {margin-bottom:9px;font-size:14px;font-weight:630;}
.sh-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.sh-stat>span,.sh-stat strong,.sh-stat>i,.sh-stat>i>i {display:block;}
.sh-stat>span {color:var(--sh-muted);font-size:12px;}
.sh-stat strong {margin:3px 0 8px;font-weight:670;font-size:clamp(21px,2.3vw,32px);line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.045em;}
.sh-stat>i {background:var(--sh-wash);height:4px;border-radius:10px;overflow:hidden;}
.sh-stat>i>i {height:100%;border-radius:inherit;background:var(--ui-control-line);}
.sh-stat-done>i>i {background:var(--sh-accent);}
.sh-hours .sh-note {margin-top:14px;font-size:12px;}
@media(max-width:640px){
  .shift-home {gap:14px;}
  .sh-head {align-items:end;gap:10px;}
  .sh-head h1 {font-size:35px;}
  .sh-person {max-width:43%;text-align:right;}
  .sh-person-icon {display:none;}
  .sh-person strong {font-size:13px;}
  .sh-person div>span {font-size:11px;}
  .sh-clock-card {grid-template-columns:1fr;gap:20px;min-height:0;padding:22px 20px 14px;text-align:center;}
  .sh-clock-card::before {background-position:right -35px bottom -25px;background-size:auto 66%;}
  .sh-clock-copy {max-width:none;}
  .sh-state {margin:0 auto 12px;}
  .sh-clock-person {justify-content:center;margin-bottom:13px;}
  .sh-clock-person .sh-state {margin:0;}
  .sh-clock-card h2 {font-size:34px;}
  .sh-clock-card p {margin-top:5px;font-size:14px;}
  .sh-mode {margin:4px 0 0;}
  .sh-control {gap:8px;}
  .sh-clock-button {width:140px;}
  .sh-clock-button .ico {width:32px;height:32px;}
  .sh-clock-button span {font-size:23px;}
  .sh-clock-card.is-on {padding-bottom:25px;}
  .sh-details {gap:12px;}
  .sh-visit-card {display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;padding:20px 17px;}
  .sh-visit-card button {margin:0;grid-column:2;justify-self:start;}
  .sh-card {padding:16px;}
  .sh-month {gap:0;}
  .sh-month button {min-width:36px;min-height:40px;}
}
@media(prefers-reduced-motion: no-preference) {
  @keyframes sh-open {from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
  .sh-clock-card,.sh-visit-card {animation:sh-open .26s ease-out;}
}

.sh-schedule {margin-top:18px;padding-top:12px;border-top:1px solid #ffffff40;}
.sh-schedule h3,.sh-slot,.sh-slot small,.sh-clock-card .sh-plan-empty,.sh-review-status,.sh-reviews summary {display:flex;align-items:center;}
.sh-schedule h3 {gap:6px;color:#edeae5;font-size:12px;font-weight:650;}
.sh-schedule h3 .ico,.sh-plan-empty .ico {width:15px;height:15px;}
.sh-schedule ul,.sh-reviews ul {padding:0;margin:0;list-style:none;}
.sh-slot {gap:9px;min-height:41px;margin-top:6px;text-align:start;}
.sh-slot-icon {width:31px;height:31px;display:grid;place-items:center;border-radius:10px;flex:none;}
.sh-slot-icon .ico {width:17px;height:17px;}
.sh-slot.practice .sh-slot-icon {color:#c4d9f7;background:#b3c9f21e;}
.sh-slot.dpp .sh-slot-icon {color:#f6d3a1;background:#ffe0aa20;}
.sh-slot div>strong,.sh-slot div>span {display:block;line-height:1.4;}
.sh-slot strong {color:#fff;font-size:14px;}
.sh-slot div>span {color:#ebe8e4;font-size:12px;font-variant-numeric:tabular-nums;}
.sh-slot small {margin-inline-start:auto;border:1px solid #ffffff43;border-radius:100px;padding:2px 7px;font-size:10px;font-weight:600;color:#f1ede8;}
.sh-clock-card .sh-plan-empty {gap:6px;margin-top:16px;font-size:12px;color:#e0dcd7;}
.sh-reviews {margin-top:15px;padding-top:12px;border-top:1px solid var(--sh-edge);}
.sh-reviews summary {gap:7px;cursor:pointer;font-size:13px;min-height:36px;color:var(--sh-accent);list-style:none;}
.sh-reviews summary::-webkit-details-marker {display:none;}
.sh-reviews summary .ico,.sh-review-status .ico {width:15px;height:15px;}
.sh-reviews summary .ico:last-child {margin-left:auto;}
.sh-reviews[open] summary .ico:last-child {transform:rotate(180deg);}
.sh-reviews li {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--sh-edge);padding:9px 0;}
.sh-reviews li strong,.sh-reviews li div>span,.sh-correction {display:block;font-size:13px;}
.sh-reviews li div>span,.sh-correction {color:var(--sh-muted);}
.sh-review-status {gap:4px;line-height:1.25;font-size:12px;color:var(--sh-accent);}
.sh-review-status.is-pending {color:#865016;}
.sh-review-status.is-rejected {color:#934542;}
[data-theme="dark"] .sh-review-status.is-pending{color:#f0ca8b;}
[data-theme="dark"] .sh-review-status.is-rejected{color:#f3ad9f;}
@media(max-width:640px){
  .sh-schedule {margin:14px auto 0;max-width:330px;}
  .sh-slot {min-height:36px;}
  .sh-clock-card .sh-plan-empty{justify-content:center;margin-top:10px;}
}

/* One shared clock for staff and leaders; management stays available off duty. */
.sh-leader {width:100%;margin:20px 0 26px;gap:12px;}
.sh-leader-head h2 {display:flex;align-items:center;gap:8px;font-size:19px;letter-spacing:-.025em;}
.sh-leader-head p {margin-top:5px;font-size:13px;color:var(--sh-muted);}
.sh-leader-grid {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);gap:16px;align-items:stretch;}
.sh-leader .sh-clock-card {min-height:245px;padding:25px 30px;gap:20px;grid-template-columns:minmax(0,1fr) 145px;}
.sh-leader .sh-clock-card h2 {font-size:35px;}
.sh-leader .sh-clock-card p {font-size:14px;}
.sh-leader .sh-state {margin-bottom:14px;}
.sh-leader .sh-clock-button {width:138px;}
.sh-leader .sh-clock-button span {font-size:23px;}
.sh-leader .sh-hours {align-self:stretch;}
.sh-comms>div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.sh-comms button {display:flex;align-items:center;gap:10px;min-height:58px;width:100%;padding:13px 18px;border:1px solid var(--sh-edge);border-radius:12px;background:var(--sh-paper);color:var(--sh-ink);text-align:start;}
.sh-comms button>.ico:first-child {color:var(--sh-accent);}
.sh-comms button>.ico:last-child {margin-left:auto;width:16px;}
.sh-comms button:hover {background:var(--sh-wash);}
.sh-comms p {margin-top:8px;font-size:12px;color:var(--sh-muted);}
@media(max-width:1100px){.sh-leader-grid {grid-template-columns:1fr;}}
@media(max-width:640px){
 .sh-leader .sh-clock-card {grid-template-columns:1fr;padding:22px 20px 14px;gap:20px;}
 .sh-leader .sh-clock-card.is-on {padding-bottom:25px;}
 .sh-leader .sh-state {margin:0 auto 12px;}
 .sh-comms>div {gap:8px;}
 .sh-comms button {padding:12px 13px;font-size:14px;}
 .sh-comms button>.ico:last-child {display:none;}
}

.sh-gps-example { padding:14px 18px; border:1px solid var(--sh-edge); border-radius:12px; background:var(--sh-paper); color:var(--sh-ink); }
.sh-gps-example summary { cursor:pointer; font-weight:650; }
.sh-gps-example summary:focus-visible { outline:2px solid var(--sh-accent); outline-offset:3px; }
.sh-gps-example p { margin-top:10px; max-width:60ch; font-size:.9rem; line-height:1.5; }
.sh-gps-choices { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.sh-gps-choices button { min-height:42px; padding:6px 12px; border:1px solid var(--sh-edge); border-radius:8px; color:var(--sh-ink); background:var(--sh-wash); }
.sh-gps-choices button[aria-pressed="true"] { border-color:var(--sh-accent); box-shadow:inset 0 0 0 1px var(--sh-accent); }
.sh-gps-result:empty { display:none; }
