/* Refinement of the existing GIG Team screens. Structure, controls and app routes are unchanged. */
body.bo {
  --bg:#f4f7f5; --surface:#fff; --surface-2:#f7f9f8; --ink:#192d25;
  --muted:#586e63; --line:#dfe7e2; --accent:#155e54; --accent-soft:#e1eee8;
  --r:14px; --r-sm:9px; --shadow:0 2px 5px rgba(24,55,42,.035);
  background:var(--bg);
}
body.bo h1, body.bo h2, body.bo h3 { font-family:var(--font-body); font-weight:700; letter-spacing:-.025em; }
body.bo .page { gap:20px; }
body.bo .topbar { background:#fff; color:var(--ink); border-bottom:1px solid var(--line); box-shadow:none; }
body.bo .topbar .brand strong { color:var(--accent); }
body.bo .topbar .brand-sub, body.bo .who-name { color:var(--muted); }
body.bo .topbar .btn.ghost { color:var(--ink); background:#fff; border-color:var(--line); }
body.bo .bo-hero { border-radius:14px; background:#155e54; box-shadow:none; padding:22px; }
body.bo .bo-hero::after { display:none; }
body.bo .bo-hero-text strong { font:700 clamp(1.4rem,1.1rem + 1vw,1.8rem)/1.2 var(--font-body); }
body.bo .bo-hero-role { background:#f3deb0; box-shadow:none; font-weight:700; }
body.bo .bo-hero-date { color:#d5e9df; font-weight:500; }
body.bo .tabs { border-radius:10px; box-shadow:none; background:#fff; padding:5px; backdrop-filter:none; }
body.bo .tabs a { border-radius:7px; font-weight:600; min-height:44px; display:inline-flex; align-items:center; }
body.bo .tabs a.active { background:var(--accent); box-shadow:none; }
body.bo .tabs .tab-kiosk { background:var(--accent-soft); color:var(--accent); box-shadow:none; }
body.bo .stat { border-radius:12px; background:#fff; box-shadow:none; }
body.bo .stat-value { font:700 2rem var(--font-body); }
body.bo .stat-label { font-size:.84rem; font-weight:600; }
body.bo .stats .stat:nth-child(1) { background:#155e54; }
body.bo .stat-ic { border-radius:9px; }
body.bo .card { border-radius:14px; box-shadow:none; }
body.bo .card.flush > h2 { background:var(--surface); }
body.bo .table th { text-transform:none; letter-spacing:0; padding:12px 16px; font-size:.8rem; background:var(--surface-2); }
body.bo .table td { padding:13px 16px; border-color:#e8eee9; }
body.bo tr.clickable:hover td { background:#f5f9f6; }
body.bo .staff-name { font-weight:650; }
body.bo .pill { font-weight:600; }
body.bo .pill-accent { background:var(--accent-soft); color:var(--accent); }
body.bo .btn { border-radius:9px; min-height:44px; font-weight:600; box-shadow:none; }
body.bo .btn.primary { background:#155e54; color:#fff; box-shadow:none; }
body.bo .btn::before, body.bo .btn::after { display:none; }
body.bo .notice { border-radius:9px; box-shadow:none; }
body.bo .notice.warn { background:#fff4d9; }
body.bo .scope-note { border-radius:9px; background:#e9f2ed; }
/* Keep the staff app's GP, streaks, quests, Bori and bottom navigation. */
.gt {
  --gt-bg:#f4f7f5; --gt-line:#dfe7e2; --gt-shadow:0 2px 5px rgba(24,55,42,.035);
  --gt-muted:#586e63; background:var(--gt-bg);
}
body:has(.gt) { background:#f4f7f5; }
.gt h1,.gt h2,.gt h3 { font-family:var(--font-body); letter-spacing:-.025em; font-weight:700; }
.gt .gt-hero { border-radius:18px; background:#155e54; box-shadow:none; }
.gt .gt-hero::before,.gt .gt-hero::after { display:none; }
.gt .gt-hello strong,.gt .gt-hero-xp strong,.gt .gt-hero-tile strong { font-family:var(--font-body); font-weight:650; }
.gt .gt-hero-level { border-radius:12px; background:#ffffff0c; }
.gt .gt-hero-tile { border-radius:12px; background:#ffffff09; }
.gt .gt-card { border-radius:14px; box-shadow:none; }
.gt .gt-streak.hot { background:#a7432f; box-shadow:none; }
.gt .gt-chip.gold { background:#f2d69a; box-shadow:none; }
.gt .gt-btn { border-radius:10px; box-shadow:none; }
.gt .gt-btn.gold { background:#f1cc7e; color:#3b2b0d; box-shadow:none; }
.gt .gt-btn::before,.gt .gt-btn::after { display:none; }
.gt .gt-nudge { border-radius:12px; background:#fff; border:1px solid var(--gt-line); box-shadow:none; }
.gt .gt-quest { border-radius:12px; box-shadow:none; }
.gt .gt-tabs { border-radius:16px; border-color:#dfe7e2; box-shadow:0 4px 20px rgba(24,55,42,.10); }
.gt .gt-tab { border-radius:10px; }
.gt .gt-tab-clock { background:#f1cc7e; box-shadow:none; animation:none; }
.gt .gt-tab.active .ic { animation:none; }
/* Charts use existing attendance summaries and need no third-party chart package. */
.attendance-insights { display:grid; grid-template-columns:1.1fr 1fr; gap:18px; }
.insight-card { min-width:0; align-content:start; gap:18px; }
.insight-heading { display:grid; gap:5px; }
.insight-heading h2 { font-family:var(--font-body); font-size:1.05rem; line-height:1.3; }
.insight-heading .hint { line-height:1.5; }
.insight-distribution { display:flex; align-items:center; gap:24px; padding:6px 0; }
.insight-donut { width:150px; height:150px; border-radius:50%; display:grid; place-items:center; flex:none; }
.insight-donut > div { width:112px; height:112px; border-radius:50%; background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.insight-donut strong { font:700 2rem var(--font-body); color:#192d25; font-variant-numeric:tabular-nums; }
.insight-donut span { font-size:.75rem; color:#586e63; }
.insight-key { margin:0; padding:0; list-style:none; display:grid; gap:12px; flex:1; font-size:.82rem; }
.insight-key li { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.insight-key strong { margin-left:auto; font-weight:650; font-variant-numeric:tabular-nums; }
.insight-dot { display:inline-block; height:9px; width:9px; border-radius:50%; flex:none; }
.insight-total { font:700 1.8rem var(--font-body); display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; font-variant-numeric:tabular-nums; }
.insight-total > span { font:400 .8rem var(--font-body); color:#586e63; }
.insight-track { display:flex; height:24px; border-radius:6px; overflow:hidden; background:#e5ece8; }
.insight-track > span { background:#247d6b; }
.insight-track > span.late { background:#d6a13b; }
.insight-legend { display:flex; gap:20px; flex-wrap:wrap; font-size:.82rem; }
.insight-legend > span { display:flex; gap:7px; align-items:center; }
.insight-bars { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; margin-top:5px; }
.insight-day { display:grid; gap:9px; text-align:center; font-size:.68rem; color:#586e63; }
.insight-bar-space { display:flex; flex-direction:column; justify-content:flex-end; align-items:center; height:142px; border-bottom:1px solid #dfe7e2; padding-top:22px; }
.insight-bar { display:block; width:60%; max-width:28px; background:#337f6e; border-radius:4px 4px 0 0; flex-shrink:0; }
.insight-hours-label { font-size:.68rem; margin-bottom:4px; }
.insight-details summary { cursor:pointer; color:#155e54; font-size:.82rem; font-weight:600; padding:12px 0; min-height:44px; }
.insight-details summary:focus-visible { outline:3px solid #b78e37; outline-offset:3px; }
.insight-card .hint { color:#586e63; }
@media(max-width:800px) { .attendance-insights { grid-template-columns:1fr; } }
@media(max-width:390px) { .insight-distribution { gap:15px; } .insight-donut { width:120px; height:120px; } .insight-donut>div { width:88px; height:88px; } }
@media(prefers-reduced-motion:reduce) { .insight-card * { transition:none!important; animation:none!important; } }

/* Staff workspace: a calm Home, Salary below the fold, Schedule one tap away. */
.gt .gt-page { gap:20px; }
.gt .gt-content { max-width:560px; }
.gt .gt-hero { padding:20px; gap:20px; }
.gt .gt-home-mission { background:#fffdf8; box-shadow:none; border:1px solid #e4e9df; border-radius:14px; }
.gt .gt-mission-message { background:#f1f5ed; box-shadow:none; border-radius:12px; }
.gt .gt-home-mission .gt-mission-times { background:#edf2eb; box-shadow:none; border-radius:8px; }
.gt .gt-home-mission .gt-mission-times span { font-size:.7rem; letter-spacing:0; }
.gt .gt-home-mission .gt-eyebrow,.gt .gt-bear-status { font-size:.72rem; }
.gt .gt-hero-level { padding:12px; }
.gt .gt-home-overview { gap:12px; }
.gt .gt-home-overview .gt-hero-tile { background:#fff; color:#192d25; border:1px solid #dfe7e2; padding:16px; min-height:130px; border-radius:14px; }
.gt .gt-home-overview .gt-hero-tile-label { color:#4d665a; font-size:.78rem; font-weight:600; }
.gt .gt-home-overview .gt-hero-tile-label .ic { color:#347d69; }
.gt .gt-home-overview .gt-hero-tile-hint { color:#586e63; font-size:.78rem; }
.gt .gt-home-overview .gt-hero-tile:nth-child(2) { background:#fff8e8; border-color:#eee2c6; }
.gt .gt-home-overview .gt-hero-tile:nth-child(3) { background:#edf4f0; }
.gt .gt-home-overview .gt-hero-tile:nth-child(4) { background:#f2f4f8; }
.gt .gt-home-essentials { display:grid; gap:12px; }
.gt .gt-home-essentials .gt-section-head { margin-bottom:4px; }
.gt .gt-home-essentials h2 { margin:0 0 4px; }
.gt .gt-salary-card { display:flex; gap:16px; align-items:flex-start; padding:24px; border:1px solid #e7ddc6; border-radius:14px; background:#fcf6e9; color:#302e22; text-decoration:none; }
.gt .gt-salary-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:12px; background:#efe0bb; color:#715320; flex:none; }
.gt .gt-salary-copy { min-width:0; flex:1; }
.gt .gt-salary-copy h3 { margin:0 0 6px; font-size:1.15rem; }
.gt .gt-salary-copy p { margin:0; color:#675c46; font-size:.88rem; line-height:1.5; }
.gt .gt-salary-action { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:20px; font-size:.85rem; font-weight:650; color:#6f521f; }
.gt .gt-salary-action > span { font-size:1.2rem; }
.gt .gt-home-essentials .gt-nudge { padding:16px; }
.gt .gt-home-essentials .gt-nudge-ic { background:#e6efea; color:#28634f; border-radius:10px; }
.gt .gt-nudge-text > span { font-size:.8rem; line-height:1.5; color:#586e63; }
.gt .gt-back-home { display:inline-flex; align-items:center; gap:8px; justify-self:start; min-height:44px; color:#155e54; text-decoration:none; font-size:.9rem; font-weight:600; }
.gt .gt-tabs { background:#fff; backdrop-filter:none; max-width:520px; display:grid; grid-template-columns:1fr 1fr 64px 1fr 1fr; gap:2px; padding:8px 6px; }
.gt .gt-tab { min-width:0; padding:4px 2px; color:#59685f; font-size:.72rem; min-height:52px; }
.gt .gt-tab.active { color:#155e54; background:#e7f0eb; }
.gt .gt-tab-clock { margin-top:-16px; }
.gt .gt-schedule-header { padding:12px 0 0; }
.gt .gt-schedule-kicker { color:#517265; font-size:.8rem; font-weight:600; }
.gt .gt-schedule-header .gt-title { display:flex; justify-content:space-between; gap:12px; align-items:center; margin:4px 0 8px; font-size:1.8rem; }
.gt .gt-schedule-header p { font-size:.9rem; font-weight:400; }
.gt .gt-schedule-summary { border-radius:14px; background:#155e54; color:#fff; padding:20px; display:grid; gap:20px; }
.gt .gt-schedule-range { display:flex; align-items:center; gap:12px; font-size:.9rem; }
.gt .gt-schedule-range .ic { color:#f1cc7e; }
.gt .gt-schedule-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; border-top:1px solid #ffffff28; padding-top:16px; }
.gt .gt-schedule-counts > div { display:grid; gap:4px; }
.gt .gt-schedule-counts strong { font-size:1.75rem; font-weight:600; font-variant-numeric:tabular-nums; }
.gt .gt-schedule-counts span { color:#d5e9df; font-size:.8rem; }
.gt .my-schedule-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.gt .my-schedule-list > .gt-schedule-day { display:grid; grid-template-columns:48px minmax(0,1fr); gap:8px 14px; padding:16px; border:1px solid #dfe7e2; background:#fff; border-radius:12px; align-items:start; }
.gt .gt-schedule-day.is-today { border-color:#58917e; background:#f1f7f3; }
.gt .gt-schedule-date { grid-row:span 2; display:grid; justify-items:center; align-content:center; gap:2px; width:48px; min-height:58px; border-radius:8px; background:#edf3ef; color:#345d4c; }
.gt .gt-schedule-date span { font-size:.72rem; }
.gt .gt-schedule-date strong { font-size:1.4rem; line-height:1.2; font-weight:650; }
.gt .gt-schedule-day.is-today .gt-schedule-date { background:#155e54; color:#fff; }
.gt .gt-schedule-day-body { display:grid; gap:4px; }
.gt .gt-schedule-day-body > strong { font-size:.9rem; font-weight:650; }
.gt .gt-schedule-day-body .sub { font-size:.75rem; color:#586e63; }
.gt .gt-schedule-day > .text-ok,.gt .gt-schedule-day > .muted { grid-column:2; font-size:.87rem; line-height:1.5; }
.gt .gt-schedule-day.is-tbc > .muted { color:#8a621a; }
.gt .gt-schedule-page .hint { font-size:.8rem; line-height:1.5; }
.gt .gt-salary-card,.gt .gt-home-overview .gt-hero-tile,.gt .gt-home-essentials .gt-nudge { transition:transform .16s ease,border-color .16s ease; }
.gt .gt-salary-card:focus-visible,.gt .gt-back-home:focus-visible,.gt .gt-tab:focus-visible { outline:3px solid #b78e37; outline-offset:3px; }
@media(hover:hover) {
  .gt .gt-salary-card:hover,.gt .gt-home-overview .gt-hero-tile:hover,.gt .gt-home-essentials .gt-nudge:hover { transform:translateY(-2px); border-color:#93b0a0; }
}
@media(max-width:360px) {
  .gt .gt-hero { padding:14px; }
  .gt .gt-home-overview .gt-hero-tile { padding:12px; }
  .gt .gt-salary-card { padding:16px; gap:12px; }
  .gt .gt-tabs { left:8px; right:8px; grid-template-columns:1fr 1fr 56px 1fr 1fr; }
  .gt .gt-tab-clock { width:56px; height:56px; }
  .gt .gt-tab { font-size:.65rem; }
}
@media(prefers-reduced-motion:reduce) {
  .gt .gt-salary-card,.gt .gt-home-overview .gt-hero-tile,.gt .gt-home-essentials .gt-nudge { transition:none; transform:none; }
}
.gt .gt-tab > span:not(.ic) { white-space:nowrap; }

/* The phone menu occupies its own row below the scrolling staff page. */
@media (max-width: 767px) {
  body:has(main.gt > .gt-staff-scroll) { padding: 0; }
  main.gt:has(> .gt-staff-scroll) {
    padding-top: env(safe-area-inset-top, 0px);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }
  .gt-staff-scroll { flex: 1; min-height: 0; overflow-y: auto; }
  .gt-locked .gt-staff-scroll { overflow: hidden; }
  .gt-staff-scroll .gt-content { padding-bottom: 24px; }
  .gt .gt-tabs {
    position: relative;
    inset: auto;
    flex: none;
    width: calc(100% - 24px);
    margin: 8px auto 0;
  }
}
