/* Total Alarm Pro clock-in. Colors only: #1E90FF, #2F343A, #FFFFFF. */
:root { --blue: #1E90FF; --charcoal: #2F343A; --white: #FFFFFF; --panel: #3a4048; --line: #4d545e; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--charcoal); color: var(--white); }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-size: 18px; line-height: 1.4; min-height: 100vh; }
a { color: var(--blue); }
h1 { font-size: 1.6rem; margin: 0 0 .5rem; letter-spacing: .02em; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
code { word-break: break-all; font-size: .9em; }

.brand { padding: 14px 18px; border-bottom: 2px solid var(--blue); }
.brand-name { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; }

.wrap { max-width: 640px; margin: 0 auto; padding: 18px; }
.panel { background: var(--panel); border-radius: 16px; padding: 22px; }
.panel.highlight { border: 2px solid var(--blue); }
.site-name { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.hint { color: #d6dbe1; font-size: .92rem; margin: .4rem 0; }
.last { margin: .8rem 0 1.2rem; }

.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
input, select, textarea { font: inherit; color: var(--white); background: var(--charcoal); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 52px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue); outline-offset: 2px; }

button, .button { font: inherit; font-weight: 700; cursor: pointer; border-radius: 14px; border: 2px solid var(--blue); background: transparent; color: var(--white); padding: 12px 18px; min-height: 48px; text-decoration: none; display: inline-block; }
button:disabled { opacity: .55; cursor: wait; }
button.primary, .button.primary { background: var(--blue); }
button.big { width: 100%; min-height: 96px; font-size: 1.6rem; letter-spacing: .04em; text-transform: uppercase; }
.link-btn { border: 0; background: none; color: var(--blue); padding: 10px 4px; min-height: 0; text-decoration: underline; width: auto; }
.link-btn:disabled { opacity: .55; }
.big + .link-btn, .link-btn + .link-btn { display: block; margin-top: 12px; }

.status { min-height: 1.6em; margin: 16px 0 0; font-weight: 600; }
.status.good { color: var(--white); }
.status.warn { color: var(--white); border-left: 4px solid var(--blue); padding-left: 10px; }
.status.bad { color: var(--white); border-left: 4px solid var(--white); padding-left: 10px; text-decoration: underline; }
.notice { background: var(--panel); border-left: 4px solid var(--blue); padding: 12px 14px; border-radius: 10px; }

/* Admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.admin-nav a { color: var(--white); text-decoration: none; font-weight: 600; }
.admin-nav a:hover { color: var(--blue); }
.admin-nav form { margin-left: auto; }
form.inline { display: inline; }
.wrap:has(.table-wrap), .wrap:has(.panel .filters) { max-width: 1100px; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.stats div { background: var(--charcoal); border-radius: 14px; padding: 14px 18px; min-width: 170px; display: flex; flex-direction: column; }
.stats .num { font-size: 2rem; font-weight: 800; color: var(--blue); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.filters label { min-width: 150px; }
.filters .check { min-width: 0; padding-bottom: 12px; }
.row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-form input { width: auto; flex: 1 1 160px; min-height: 44px; font-size: .95rem; }
.row-form button { min-height: 44px; }
.card-url { margin: 6px 0 2px; font-size: .9rem; }
tr.inactive td { opacity: .6; }
.table-wrap { overflow-x: auto; margin: 10px 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--blue); font-weight: 700; white-space: nowrap; }
tr.flagged td:first-child { border-left: 4px solid var(--blue); }
.flag { display: inline-block; background: var(--blue); color: var(--white); font-weight: 800; font-size: .75rem; padding: 2px 6px; border-radius: 6px; letter-spacing: .06em; }

@media (min-width: 720px) {
  body { font-size: 17px; }
}

.geo { display:flex; flex-direction:column; gap:8px; }
.geo .link-btn { align-self:flex-start; }
.geo-results { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.geo-results li { background:var(--charcoal); border:2px solid var(--line); border-radius:12px; padding:10px 12px; font-size:.92rem; }
.geo-results li .link-btn { text-align:left; text-decoration:none; width:100%; padding:2px 0; min-height:0; color:var(--white); }
.geo-check { color:var(--blue); font-weight:600; }

.others { margin-top: 18px; text-align: center; }
.others .hint { display: block; margin-bottom: 4px; }
.others #others { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.shift { flex: 1 1 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.shift legend { color: var(--white); font-size: .85rem; padding: 0 6px; }
.shift label { font-size: .85rem; }
.shift input { min-height: 44px; width: 110px; }
.shift .days { display: flex; flex-wrap: wrap; gap: 4px 12px; flex: 1 1 100%; }
.shift .days input { width: auto; min-height: 0; }

/* Fixes: shift boxes were being stretched by the shared row-form input rule */
.row-form .shift input { flex: 0 0 auto; height: 44px; min-height: 44px; width: 110px; }
.row-form .shift .days input, .shift .days input { flex: 0 0 auto; width: auto; height: auto; min-height: 0; }
.shift input { flex: 0 0 auto; }
.others .link-btn { min-height: 0; padding: 8px 4px; }
.others #others { gap: 0; }

.badge { display:inline-block; background:var(--blue); color:var(--white); border-radius:999px; padding:0 7px; font-size:.75rem; font-weight:800; margin-left:2px; }
.state { display:inline-block; border:2px solid var(--blue); border-radius:999px; padding:1px 10px; font-size:.8rem; font-weight:700; white-space:nowrap; }
.state-working { background:var(--blue); color:var(--white); }
.state-none { border-color:var(--line); color:#d6dbe1; }
.star { color:var(--blue); font-weight:800; margin-left:2px; }
.stats a { color:inherit; display:flex; flex-direction:column; }

textarea { font: inherit; color: var(--white); background: var(--charcoal); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 90px; width: 100%; resize: vertical; }
.tag { display:inline-block; border:2px solid var(--blue); border-radius:6px; padding:0 6px; font-size:.75rem; font-weight:700; color:var(--blue); white-space:nowrap; }

tr.voided td { opacity: .55; text-decoration: line-through; }
tr.voided td:last-child, tr.voided td:nth-last-child(2) { text-decoration: none; opacity: 1; }
table.facts th { width: 11rem; color: var(--white); white-space: normal; }

/* Dashboard tiles sit two across on a phone */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stats div { min-width: 0; }

.shift .quick { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.chip { border: 2px solid var(--line); background: transparent; color: var(--white); border-radius: 999px; padding: 6px 12px; min-height: 0; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip:hover, .chip:focus-visible { border-color: var(--blue); }
.chip-preset { border-color: var(--blue); color: var(--blue); }
.quick-sep { color: #d6dbe1; font-size: .85rem; margin-left: 6px; }

/* Accent colour for text sitting on top of the accent (white on blue, dark on lime) */
:root { --on-accent: #FFFFFF; }
button.primary, .button.primary, .state-working, .flag, .badge, .btn.primary { color: var(--on-accent); }

/* Sycamore Construction: dark teal and lime, like the Sycamore business cards */
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
body.theme-syccon {
  --blue: #a4bc63; --charcoal: #0e2a30; --panel: #173b42; --line: #2b5660; --on-accent: #081a1e;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: #081a1e;
  background-image: radial-gradient(60% 40% at 50% 8%, #a4bc6329 0%, #a4bc6300 70%);
  background-repeat: no-repeat;
}
html:has(body.theme-syccon) { background: #081a1e; }
body.theme-syccon h1, body.theme-syccon h2, body.theme-syccon button, body.theme-syccon .button, body.theme-syccon th,
body.theme-syccon .site-name, body.theme-syccon .stats .num, body.theme-syccon .chip, body.theme-syccon .state, body.theme-syccon .tag { font-family: "Poppins", "Inter", system-ui, sans-serif; }
body.theme-syccon h1 { text-transform: uppercase; letter-spacing: .06em; }
body.theme-syccon .brand-logo { padding: 18px 18px 10px; border-bottom: 0; text-align: center; }
body.theme-syccon .brand-img { width: min(100%, 250px); height: auto; margin: 0 auto; filter: drop-shadow(0 0 18px rgba(164,188,99,.45)); }
body.theme-syccon .panel { background: #0e2a30; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
body.theme-syccon button, body.theme-syccon .button { border-radius: 999px; letter-spacing: .06em; }
body.theme-syccon .big { text-transform: uppercase; }
body.theme-syccon .admin-nav { border-bottom-color: #2b5660; }
body.theme-syccon .stats div, body.theme-syccon .geo-results li { background: #173b42; }
body.theme-syccon input, body.theme-syccon select, body.theme-syccon textarea { background: #081a1e; border-color: #2b5660; }
body.theme-syccon .plus-links a { background: #173b42; }

.sched { flex: 1 1 100%; margin-top: 4px; }
.sched summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .9rem; }
.sched-line { margin: 8px 0 6px; font-size: .95rem; }
.chip-active { background: var(--blue); color: var(--on-accent); border-color: var(--blue); }
.crew-box { background: var(--charcoal); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0 14px; }
.sched-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Front door: Who do you work for? */
.landing { text-align: center; }
.landing .ask { font-size: 1.2rem; margin: 0 0 18px; }
.company-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.company { border-radius: 20px; padding: 16px 16px 10px; border: 2px solid var(--line); }
.company-main { display: block; color: inherit; text-decoration: none; }
.company-logo { width: min(100%, 260px); height: auto; margin: 0 auto 8px; }
.company-name { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.company-go { display: block; border-radius: 999px; padding: 14px 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 1.05rem; }
.company-office { display: inline-block; margin-top: 10px; font-size: .9rem; color: inherit; opacity: .85; }
.company-tap { background: #2F343A; border-color: #1E90FF; }
.company-tap .company-go { background: #1E90FF; color: #FFFFFF; }
.company-syccon { background: #0e2a30; border-color: #a4bc63; box-shadow: 0 0 24px rgba(164,188,99,.18); }
.company-syccon .company-logo { filter: drop-shadow(0 0 14px rgba(164,188,99,.4)); }
.company-syccon .company-go { background: #a4bc63; color: #081a1e; }
.company-soon { opacity: .6; }
.company-soon .company-go { background: transparent; border: 2px solid var(--line); color: #d6dbe1; }
.switcher { padding: 8px 18px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.switcher a { margin: 0 2px; }

/* All companies view */
.co-box { background: var(--panel); border-radius: 16px; padding: 18px 22px; margin-top: 18px; border-left: 6px solid var(--blue); }
.co-box.co-syccon { border-left-color: #a4bc63; }
.co-box.co-tap { border-left-color: #1E90FF; }
.co-head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.co-logo { height: 34px; width: auto; }
.co-line { margin: 4px 0 12px; }

.row-form .mini { flex: 1 1 150px; font-size: .8rem; }
.row-form select { width: auto; min-width: 140px; flex: 1 1 150px; min-height: 44px; font-size: .95rem; }

.rank-card { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.rank-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rank-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--on-accent); font-weight: 800; }
.rank-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }

/* Company swap as logos */
.switcher { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 18px; border-bottom: 1px solid var(--line); }
.co-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 5px 12px; border: 2px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); color: var(--white); text-decoration: none; font-size: .85rem; font-weight: 600; }
a.co-chip:hover, a.co-chip:focus-visible { border-color: var(--blue); }
.co-current { border-color: var(--blue); background: rgba(255,255,255,.10); }
.co-icon { height: 30px; width: auto; display: block; }

/* Family Medical Supply: navy and blue, like its business cards */
body.theme-fms {
  --blue: #2aa1db; --charcoal: #191b41; --panel: #24275a; --line: #3c4080; --on-accent: #0e0f26;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: #0e0f26;
}
html:has(body.theme-fms) { background: #0e0f26; }
body.theme-fms h1, body.theme-fms h2, body.theme-fms button, body.theme-fms .button, body.theme-fms th,
body.theme-fms .site-name, body.theme-fms .stats .num, body.theme-fms .chip, body.theme-fms .state, body.theme-fms .tag { font-family: "Poppins", "Inter", system-ui, sans-serif; }
body.theme-fms h1 { text-transform: uppercase; letter-spacing: .06em; }
body.theme-fms .brand-logo { padding: 18px 18px 10px; border-bottom: 0; text-align: center; }
body.theme-fms .brand-img { width: min(100%, 300px); height: auto; margin: 0 auto; }
body.theme-fms .panel { background: #191b41; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
body.theme-fms button, body.theme-fms .button { border-radius: 999px; letter-spacing: .06em; }
body.theme-fms .big { text-transform: uppercase; }
body.theme-fms .admin-nav, body.theme-fms .switcher { border-bottom-color: #3c4080; }
body.theme-fms .stats div, body.theme-fms .geo-results li, body.theme-fms .plus-links a { background: #24275a; }
body.theme-fms input, body.theme-fms select, body.theme-fms textarea { background: #0e0f26; border-color: #3c4080; }
.co-box.co-fms { border-left-color: #2aa1db; }
.company-fms { background: #191b41; border-color: #2aa1db; }
.company-fms .company-go { background: #2aa1db; color: #0e0f26; }

/* Logo header for every company (the Sycamore and Family Medical Supply themes tune it further) */
.brand-logo { padding: 16px 18px 10px; border-bottom: 0; text-align: center; }
.brand-icon { width: 84px; height: auto; margin: 0 auto 4px; display: block; }
.brand-img { width: min(100%, 300px); height: auto; margin: 0 auto; display: block; }
.co-dim { opacity: .5; border-style: dashed; }
.co-todo { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }

.forgot { margin-top: 18px; }
.forgot summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .9rem; }
.forgot form { margin-top: 10px; }
label[hidden] { display: none; }

/* Fix: boxes inside the small labelled fields of a person's row were being stretched tall */
.row-form .mini input, .row-form .mini select { flex: 0 0 auto; width: 100%; height: 44px; min-height: 44px; }
.row-form .mini { flex: 1 1 150px; }
.row-form .mini:has(input[type="email"]) { flex: 1 1 260px; }

/* Buttons: normal size on forms; only the punch button on the tag page is huge */
button.big { min-height: 52px; font-size: 1.05rem; letter-spacing: .05em; padding: 12px 20px; }
#clock button.big { min-height: 96px; font-size: 1.6rem; }

.state-salary { background: transparent; border-color: var(--blue); color: var(--white); }
.state-salary::before { content: "\25CF  "; color: #3fb950; }

/* Who-is-working tables: the same column widths everywhere, so every company lines up */
table.people { table-layout: fixed; width: 100%; min-width: 680px; }
table.people th:nth-child(1) { width: 19%; }
table.people th:nth-child(2) { width: 25%; }
table.people th:nth-child(3) { width: 19%; }
table.people th:nth-child(4) { width: 10%; }
table.people th:nth-child(5) { width: 8%; }
table.people th:nth-child(6) { width: 10%; }
table.people th:nth-child(7) { width: 9%; }
table.people td { overflow-wrap: anywhere; }

/* Same coordinates on every screen and every company: fixed header height, fixed logo row, same menu font */
html { overflow-y: scroll; } /* the scrollbar never appears or disappears, so nothing shifts sideways */
header.brand { height: 132px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 18px; overflow: hidden; border-bottom: 0; }
body header.brand-logo .brand-img { width: auto !important; max-width: min(100%, 300px); max-height: 108px; margin: 0 auto; }
body header.brand-logo .brand-icon { height: 60px; width: auto; margin: 0 auto 6px; }
body header.brand-logo .brand-icon + .brand-img { max-height: 30px; }
.switcher { height: 62px; box-sizing: border-box; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
.admin-nav, .switcher, .admin-nav a, .admin-nav button { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important; font-size: 16px !important; letter-spacing: 0 !important; text-transform: none !important; }
.admin-nav { min-height: 52px; box-sizing: border-box; }
.admin-nav a { position: relative; }
.admin-nav .badge { position: absolute; top: -8px; right: -16px; margin: 0; } /* the request counter floats, so it never pushes the menu */

.brand-title { font-size: 1.7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.co-pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .8rem; font-weight: 700; border: 2px solid var(--line); white-space: nowrap; }
.co-pill-tap { border-color: #1E90FF; } .co-pill-syccon { border-color: #a4bc63; } .co-pill-fms { border-color: #2aa1db; }

/* Getting started checklist */
.check-bar { height: 10px; border-radius: 999px; background: var(--charcoal); border: 1px solid var(--line); overflow: hidden; margin: 6px 0 12px; }
.check-bar span { display: block; height: 100%; background: var(--blue); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.check-box { flex: 0 0 26px; width: 26px; height: 26px; border: 2px solid var(--blue); border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: var(--on-accent); }
.check-item.is-done .check-box { background: var(--blue); }
.check-item.is-done .check-text { opacity: .65; text-decoration: line-through; }
.check-text { flex: 1 1 260px; }
.check-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===================================================================================================
   v2 look: modern and quiet. Built only on the colour variables, so every company follows its own colours.
   Nothing here changes a size or a position, so nothing moves between pages or companies.
   =================================================================================================== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --edge: rgba(255,255,255,.09); --edge-2: rgba(255,255,255,.16); --muted: rgba(255,255,255,.66); --ok: #3fb950; --amber: #f2b24c;
  --glow: color-mix(in srgb, var(--blue) 38%, transparent); --tint: color-mix(in srgb, var(--blue) 14%, transparent); }
html { scrollbar-width: thin; scrollbar-color: var(--edge-2) transparent; }
body, body.theme-syccon, body.theme-fms { font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums;
  background: radial-gradient(900px 420px at 50% -120px, color-mix(in srgb, var(--blue) 20%, transparent), transparent 72%) no-repeat, var(--charcoal); }
::selection { background: color-mix(in srgb, var(--blue) 45%, transparent); }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 65%, transparent); outline-offset: 2px; }
h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.005em; }
.hint { color: var(--muted); font-size: .9rem; }
main.wrap { animation: fade-in .35s var(--ease) both; } /* fade only, so nothing slides around */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Header and menu: a quiet glass bar that stays at the top while you scroll */
header.brand { border-bottom: 0; background: transparent; }
.switcher { border-bottom: 0; background: transparent; padding-top: 4px; }
.co-chip { border-radius: 16px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease); }
.co-chip:hover { border-color: var(--edge-2); background: var(--tint); }
.co-current, .co-chip[aria-current] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 28%, transparent), 0 8px 22px -8px var(--glow); }
.admin-nav { position: sticky; top: 0; z-index: 30; gap: 2px 4px; padding: 6px 12px; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  background: color-mix(in srgb, var(--charcoal) 78%, transparent); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.admin-nav a, .admin-nav .link-btn { color: var(--muted); font-weight: 500 !important; padding: 8px 12px; border-radius: 10px; text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease); }
.admin-nav a:hover { background: var(--tint); color: var(--white); }
.admin-nav a[aria-current="page"] { color: var(--white); font-weight: 600 !important; background: color-mix(in srgb, var(--blue) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 45%, transparent); }
.admin-nav form.inline { margin-left: auto; }
.admin-nav .link-btn { text-decoration: none; }

/* Cards */
body .panel, body.theme-syccon .panel, body.theme-fms .panel, .crew-box, .notice {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, white 4%), color-mix(in srgb, var(--panel) 96%, black 4%));
  border: 1px solid var(--edge); border-radius: 22px; box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 40px -22px rgba(0,0,0,.65); }
.panel.highlight { border-color: color-mix(in srgb, var(--blue) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent), 0 18px 40px -22px rgba(0,0,0,.65); }
.notice { border-left: 3px solid var(--blue); }
.stats div, body.theme-syccon .stats div, body.theme-fms .stats div { background: color-mix(in srgb, var(--charcoal) 70%, transparent); border: 1px solid var(--edge); border-radius: 18px; }
.stats .num { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stats div { color: var(--muted); font-size: .88rem; }

/* Buttons */
button, .button, body.theme-syccon button, body.theme-syccon .button { font-weight: 600; letter-spacing: 0; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--blue) 55%, transparent);
  background: color-mix(in srgb, var(--blue) 9%, transparent); transition: background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), filter .15s var(--ease); }
button:hover, .button:hover { background: color-mix(in srgb, var(--blue) 20%, transparent); border-color: var(--blue); }
button:active, .button:active { filter: brightness(.94); }
button.primary, .button.primary, body.theme-syccon button.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 86%, white 14%), var(--blue)); border-color: transparent;
  box-shadow: 0 8px 22px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.28); }
button.primary:hover, .button.primary:hover { filter: brightness(1.08); }
.link-btn, .link-btn:hover { background: none; border: 0; box-shadow: none; }
.chip { border: 1px solid var(--edge-2); background: color-mix(in srgb, var(--white) 4%, transparent); font-weight: 500; transition: background .15s var(--ease), border-color .15s var(--ease); }
.chip:hover, .chip:focus-visible { background: var(--tint); border-color: var(--blue); }
.chip-preset { border-color: color-mix(in srgb, var(--blue) 55%, transparent); }
.chip-active, .chip-active:hover { background: var(--blue); border-color: var(--blue); }

/* The punch button on the tag page: the one big thing on the screen */
#clock button.big, body.theme-syccon #clock button.big { border-radius: 26px; border: 0; min-height: 104px; font-size: 1.5rem; font-weight: 700; letter-spacing: .03em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 82%, white 18%), var(--blue)); color: var(--on-accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--blue) 14%, transparent), 0 24px 48px -16px var(--glow), inset 0 1px 0 rgba(255,255,255,.35); }
#clock button.big:active { filter: brightness(.92); }

/* Forms */
input, select, textarea, body.theme-syccon input, body.theme-syccon select, body.theme-syccon textarea, body.theme-fms input, body.theme-fms select, body.theme-fms textarea {
  background: color-mix(in srgb, var(--charcoal) 62%, black); border: 1px solid var(--edge-2); border-radius: 12px; min-height: 48px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--white) 30%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 26%, transparent); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.4); }
label { font-weight: 600; font-size: .92rem; }
.shift, .geo-results li { border: 1px solid var(--edge-2); border-radius: 16px; }
.shift legend { color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }

/* Tables: airy, small caps headers, a soft row highlight */
.table-wrap { border: 1px solid var(--edge); border-radius: 16px; background: color-mix(in srgb, var(--charcoal) 35%, transparent); }
th { color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; padding: 12px 12px; border-bottom: 1px solid var(--edge-2); }
td { padding: 12px 12px; border-bottom: 1px solid var(--edge); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s var(--ease); }
tbody tr:hover td { background: color-mix(in srgb, var(--white) 3.5%, transparent); }
td:first-child { font-weight: 600; }
tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--amber); border-left: 0; }
tr.voided td { opacity: .5; }

/* Pills: status with a dot, flags in amber */
.state { border: 1px solid var(--edge-2); background: color-mix(in srgb, var(--white) 5%, transparent); color: var(--white); font-size: .78rem; font-weight: 600; padding: 2px 10px 2px 8px; display: inline-flex; align-items: center; gap: 7px; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 7px; }
.state-working { background: color-mix(in srgb, var(--ok) 16%, transparent); border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--white); }
.state-working::before { background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.state-lunch { background: color-mix(in srgb, var(--amber) 14%, transparent); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.state-lunch::before { background: var(--amber); }
.state-done::before { background: var(--blue); }
.state-none { color: var(--muted); } .state-none::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.state-salary { background: color-mix(in srgb, var(--blue) 12%, transparent); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.state-salary::before { content: ""; background: var(--blue); }
.flag { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 999px; padding: 1px 8px; font-size: .7rem; }
.tag { border: 1px solid var(--edge-2); border-radius: 999px; padding: 0 8px; color: var(--muted); font-weight: 600; }
.badge { box-shadow: 0 0 0 2px var(--charcoal); }
.co-pill { border: 1px solid var(--edge-2); background: color-mix(in srgb, var(--white) 4%, transparent); font-weight: 600; }

/* Getting started */
.check-bar { height: 8px; border: 0; background: color-mix(in srgb, var(--white) 8%, transparent); }
.check-bar span { background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--blue) 60%, white)); border-radius: 999px; transition: width .5s var(--ease); }
.check-item { border-top: 1px solid var(--edge); }
.check-box { border: 1.5px solid color-mix(in srgb, var(--blue) 70%, transparent); border-radius: 50%; }
.check-item.is-done .check-box { background: var(--blue); box-shadow: 0 6px 16px -6px var(--glow); }

/* Front door */
.company { border: 1px solid var(--edge-2); border-radius: 26px; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.company:hover { box-shadow: 0 18px 40px -18px var(--glow); }
.company-go { border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }

/* v2 fixes */
.admin-nav .link-btn, body.theme-syccon .admin-nav .link-btn, body.theme-fms .admin-nav .link-btn { border: 0; background: none; box-shadow: none; border-radius: 10px; padding: 8px 12px; color: var(--muted); text-decoration: none; }
.admin-nav .link-btn:hover { background: var(--tint); color: var(--white); }
.panel > h1:first-child, .panel > h2:first-child, .panel > .site-name:first-child { margin-top: 0; }
.stats a { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.stats a .num { color: var(--blue); }
.stats a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
table.people th:nth-child(1) { width: 17%; } table.people th:nth-child(2) { width: 21%; } table.people th:nth-child(3) { width: 17%; }
table.people th:nth-child(4) { width: 10%; } table.people th:nth-child(5) { width: 9%; } table.people th:nth-child(6) { width: 11%; } table.people th:nth-child(7) { width: 15%; }
table.people th { white-space: normal; }
#others { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
#others .link-btn { display: inline-flex; align-items: center; margin: 0; min-height: 40px; padding: 8px 14px; border: 1px solid var(--edge-2); border-radius: 999px; background: color-mix(in srgb, var(--white) 5%, transparent); color: var(--white); font-weight: 500; font-size: .9rem; text-decoration: none; }
#others .link-btn:hover { background: var(--tint); border-color: var(--blue); }


/* ===== v2.1: people, live, floating messages ===== */
.who { display: inline-flex; align-items: center; gap: 10px; }
.avatar { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.av-0 { background: #3b82f6; } .av-1 { background: #8b5cf6; } .av-2 { background: #ec4899; } .av-3 { background: #f97316; }
.av-4 { background: #14b8a6; } .av-5 { background: #22a55a; } .av-6 { background: #d9a406; color: #1a1400; } .av-7 { background: #0ea5c6; }
.meter { display: block; height: 4px; min-width: 56px; margin-top: 6px; border-radius: 999px; background: color-mix(in srgb, var(--white) 10%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue); transition: width .6s var(--ease); }
.meter.near i { background: var(--amber); } .meter.over i { background: #ef6a6a; }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; color: var(--muted); border: 1px solid var(--edge-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: live 2s ease-out infinite; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; width: max-content; max-width: min(92vw, 560px); margin: 0;
  background: color-mix(in srgb, var(--charcoal) 88%, black); border: 1px solid var(--edge-2); border-left: 3px solid var(--blue); border-radius: 14px; padding: 12px 18px; cursor: pointer;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.7); animation: toast-in .35s var(--ease) both; transition: opacity .35s var(--ease); }
.toast.bye { opacity: 0; pointer-events: none; }
@keyframes toast-in { from { opacity: 0; } to { opacity: 1; } }
.now { text-align: center; margin: 4px 0 14px; line-height: 1.15; }
.now b { display: block; font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; }
.now span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.status { display: flex; align-items: center; gap: 10px; }
.status.good::before, .status.warn::before, .status.bad::before { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #08130a; }
.status.good::before { content: "\2713"; background: var(--ok); }
.status.warn::before { content: "!"; background: var(--amber); }
.status.bad::before { content: "\00d7"; background: #ef6a6a; }
.status.warn, .status.bad { border-left: 0; padding-left: 0; text-decoration: none; }
.meter.m-0 i { width: 0%; }
.meter.m-5 i { width: 5%; }
.meter.m-10 i { width: 10%; }
.meter.m-15 i { width: 15%; }
.meter.m-20 i { width: 20%; }
.meter.m-25 i { width: 25%; }
.meter.m-30 i { width: 30%; }
.meter.m-35 i { width: 35%; }
.meter.m-40 i { width: 40%; }
.meter.m-45 i { width: 45%; }
.meter.m-50 i { width: 50%; }
.meter.m-55 i { width: 55%; }
.meter.m-60 i { width: 60%; }
.meter.m-65 i { width: 65%; }
.meter.m-70 i { width: 70%; }
.meter.m-75 i { width: 75%; }
.meter.m-80 i { width: 80%; }
.meter.m-85 i { width: 85%; }
.meter.m-90 i { width: 90%; }
.meter.m-95 i { width: 95%; }
.meter.m-100 i { width: 100%; }

/* Tooltip on the company logos: appears at once on hover or keyboard focus, so you always know which company you are about to open */
.switcher { overflow: visible !important; position: relative; z-index: 40; }
.co-chip { position: relative; }
.co-chip[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: max-content; max-width: 240px; padding: 7px 12px; border-radius: 10px;
  background: #0b0d10; color: #fff; border: 1px solid var(--edge-2); box-shadow: 0 14px 34px -10px rgba(0,0,0,.8); font-size: .8rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s var(--ease), visibility .12s; }
.co-chip[data-tip]:last-child::after { left: auto; right: 0; }
.co-chip[data-tip]:hover::after, .co-chip[data-tip]:focus-visible::after { opacity: 1; visibility: visible; }

/* v2.2: company themes must not turn link-style buttons into boxes, or wash out primary buttons */
body .link-btn, body.theme-syccon .link-btn, body.theme-fms .link-btn { border: 0; background: none; box-shadow: none; border-radius: 6px; }
body .link-btn:hover, body.theme-syccon .link-btn:hover, body.theme-fms .link-btn:hover { background: none; }
body.theme-syccon .button.primary, body.theme-fms .button.primary, body.theme-fms button.primary, body.theme-syccon button.primary, body .button.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 86%, white 14%), var(--blue)); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 22px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.28); }
th { white-space: normal; vertical-align: bottom; }
.table-wrap table:not(.people) td:first-child { min-width: 8.5rem; }

/* v2.3 phones: tables become stacked cards so nothing hides off to the side */
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; border: 0; background: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; box-sizing: border-box; }
  .table-wrap thead { position: absolute; left: -9999px; }
  .table-wrap tr { border: 1px solid var(--edge); border-radius: 14px; margin: 0 0 10px; padding: 6px 12px; background: color-mix(in srgb, var(--charcoal) 35%, transparent); }
  .table-wrap td, .table-wrap table:not(.people) td:first-child { min-width: 0; border-bottom: 1px solid var(--edge); padding: 8px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .table-wrap tr td:last-child { border-bottom: 0; }
  .table-wrap td[data-label]::before { content: attr(data-label); flex: 0 0 38%; text-align: left; color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; padding-top: 3px; }
  .table-wrap td[colspan] { display: block; text-align: left; }
  .table-wrap td > * { max-width: 62%; }
  .table-wrap td .flag { align-self: flex-start; max-width: none; height: auto; flex: 0 0 auto; }
  .table-wrap td:empty { display: none; }
  .table-wrap tr.flagged { border-left: 4px solid var(--blue); }
  .table-wrap tr.flagged td:first-child { border-left: 0; }
  .table-wrap td form, .table-wrap td .row-form { max-width: 100%; }
}

/* v2.4 dashboard buttons */
.reqs { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.reqs .req { border: 1px solid var(--edge-2); border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--charcoal) 35%, transparent); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.reqs .req .row-form { margin: 0; }
details.fix summary { cursor: pointer; color: var(--blue); font-weight: 600; list-style: none; min-height: 32px; display: inline-flex; align-items: center; }
details.fix summary::-webkit-details-marker { display: none; }
details.fix[open] { min-width: 14rem; }
details.fix form { margin-top: 8px; }
table.people { min-width: 780px; }
table.people th:nth-child(1) { width: 17%; } table.people th:nth-child(2) { width: 17%; } table.people th:nth-child(3) { width: 14%; }
table.people th:nth-child(4) { width: 9%; } table.people th:nth-child(5) { width: 8%; } table.people th:nth-child(6) { width: 11%; }
table.people th:nth-child(7) { width: 8%; } table.people th:nth-child(8) { width: 16%; }
@media (max-width: 640px) { table.people { min-width: 0; } }
@media (max-width: 640px) {
  .table-wrap table:not(.people) td[colspan], .table-wrap td[colspan] { display: block; text-align: left; padding: 8px 0; border-bottom: 0; }
  .table-wrap td[colspan] > *, .table-wrap td[colspan] form { max-width: 100%; }
  .table-wrap td[colspan] .row-form { display: flex; flex-wrap: wrap; gap: 10px; }
  .table-wrap td[colspan] .row-form > input, .table-wrap td[colspan] .row-form > select { flex: 1 1 100%; }
  .table-wrap td[colspan] .sched-line { flex: 1 1 100%; }
}

/* v2.5 phone menu: a bar at the bottom, the same on every page. Laptops keep the menu at the top. */
.tabbar, .tab-sheet { display: none; }
@media (max-width: 640px) {
  nav.admin-nav { display: none; }
  body:has(.tabbar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); box-sizing: border-box; gap: 4px;
    background: color-mix(in srgb, var(--charcoal) 94%, black); border-top: 1px solid var(--edge-2); backdrop-filter: blur(14px); }
  .tabbar a, .tabbar .tab-more, .tabbar .tab-back { position: relative; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: none; color: var(--muted); font: 600 14px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; text-decoration: none; min-height: 52px; padding: 0; box-shadow: none; cursor: pointer; }
  .tabbar a[aria-current="page"], .tabbar .tab-more.on, .tabbar .tab-more[aria-expanded="true"] { color: var(--white); background: color-mix(in srgb, var(--blue) 24%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 45%, transparent); }
  .tabbar .badge { position: absolute; top: 4px; right: 8px; }
  .tab-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 61; padding: 12px; border-radius: 18px; border: 1px solid var(--edge-2); background: var(--panel); box-shadow: 0 20px 50px -12px rgba(0,0,0,.6); }
  .tab-sheet[hidden] { display: none; }
  .tab-sheet a, .tab-sheet .link-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--white) 6%, transparent); color: var(--white); font: 600 16px/1 -apple-system, system-ui, sans-serif; text-decoration: none; border: 0; width: 100%; box-shadow: none; }
  .tab-sheet a[aria-current="page"] { background: color-mix(in srgb, var(--blue) 24%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 45%, transparent); }
  .tab-sheet form { margin: 0; display: contents; }
  .tab-sheet a:first-child, .tab-sheet a:nth-child(2) { display: none; } /* Dashboard and Hours are already in the bar */
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

.pin-map-box { flex: 1 1 100%; margin: 8px 0; }
.pin-map { height: 340px; border-radius: 14px; border: 1px solid var(--edge-2); overflow: hidden; z-index: 1; }
.leaflet-container { font: inherit; }

[hidden] { display: none !important; }
/* A punch already made today is crossed out with a check */
#others .link-btn.done { text-decoration: line-through; opacity: .5; }
#others .link-btn.done::before { content: "\2713\00a0"; text-decoration: none; display: inline-block; }

/* My punches: flags explained, and date/time boxes never wider than the screen */
input[type="date"], input[type="time"], input[type="datetime-local"] { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; -webkit-appearance: none; appearance: none; text-align: left; }
.reqs .req, .reqs .attn { border: 1px solid var(--edge-2); border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--charcoal) 35%, transparent); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; }
.attn .why { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.attn .mine { margin: 8px 0 0; }
.attn details.fix { flex: 1 1 100%; }
.attn details.fix summary { margin-bottom: 4px; }
.attn textarea { width: 100%; min-height: 80px; }
input[type="date"], input[type="time"], input[type="datetime-local"] { min-height: 48px; display: block; }

/* v2.6 My punches, rebuilt: striped cards, one-tap reasons, all-clear state */
.portal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.portal-stats > div { min-width: 0; }
.reqs .attn { position: relative; flex-direction: column; align-items: stretch; gap: 8px; border-left-width: 5px; }
.reqs .attn.flagitem { border-left-color: var(--amber); }
.reqs .attn.flagitem.explained { border-left-color: #3ecf6e; }
.reqs .attn.missitem { border-left-color: #ef5b5b; }
.attn-head { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: color-mix(in srgb, var(--white) 9%, transparent); color: var(--white); }
.chip.warn { background: color-mix(in srgb, var(--amber) 28%, transparent); color: var(--amber); }
.chip.bad { background: color-mix(in srgb, #ef5b5b 26%, transparent); color: #ff8e8e; }
.chip.ok { background: color-mix(in srgb, #3ecf6e 24%, transparent); color: #6fe39a; }
.attn .why { margin: 0; padding-left: 18px; }
.explain .quick { display: flex; flex-wrap: wrap; gap: 8px; }
.explain .quick button { flex: 1 1 calc(50% - 8px); min-height: 48px; font-size: .92rem; border-radius: 12px; line-height: 1.2; }
.quick-label { margin: 2px 0 0; }
.attn .button.primary { align-self: stretch; text-align: center; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.allclear { display: flex; gap: 14px; align-items: center; margin: 16px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, #3ecf6e 40%, transparent); background: color-mix(in srgb, #3ecf6e 10%, transparent); }
.allclear .big-check { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #3ecf6e; color: #08130a; font-weight: 800; font-size: 1.3rem; flex: 0 0 40px; }
details.forgot-box > summary { cursor: pointer; color: var(--blue); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
h2 .badge { vertical-align: middle; margin-left: 6px; }

/* v2.7 My punches, redesigned: who/where first, big hours, day list, short words */
.me .me-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.me .me-top .av { width: 48px; height: 48px; flex: 0 0 48px; font-size: 1.05rem; }
.me .me-who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.me .me-who h1 { flex: 1 1 100%; margin: 0; font-size: 1.5rem; line-height: 1.1; }
.me .me-out { color: var(--muted); font-size: .9rem; text-decoration: none; padding: 8px; }
.me-hero { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; padding: 18px; margin-bottom: 8px; border-radius: 20px; border: 1px solid var(--edge-2);
  background: linear-gradient(160deg, color-mix(in srgb, var(--blue) 20%, var(--panel)), var(--panel)); }
.hero-today { display: flex; flex-direction: column; }
.hero-num { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--white); }
.hero-lbl { color: var(--muted); font-size: .78rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.hero-week { display: flex; flex-direction: column; gap: 2px; }
.hero-week b { font-size: 1.5rem; }
.hero-punches { grid-column: 1 / -1; margin-top: 6px; }
.d-punch { display: flex; flex-wrap: wrap; gap: 6px; }
.pp { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: color-mix(in srgb, var(--white) 10%, transparent); color: var(--white); white-space: nowrap; }
.pp.fl { background: color-mix(in srgb, var(--amber) 28%, transparent); color: var(--amber); }
ul.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.days .day { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--edge); background: color-mix(in srgb, var(--charcoal) 35%, transparent); display: grid; gap: 8px; }
ul.days .day.today { border-color: color-mix(in srgb, var(--blue) 50%, transparent); }
.d-top { display: flex; justify-content: space-between; align-items: baseline; }
.d-hrs { font-weight: 700; font-variant-numeric: tabular-nums; }
.me h2 { font-size: 1.05rem; margin: 22px 0 10px; }
.reqs .attn { padding: 12px 14px; }
.explain .quick button { flex: 1 1 auto; min-height: 42px; padding: 0 14px; font-size: .88rem; border-radius: 999px; }
.whatmean { margin-top: 10px; } .whatmean summary { cursor: pointer; color: var(--muted); font-size: .9rem; min-height: 40px; display: flex; align-items: center; }
.whatmean .why { padding-left: 18px; color: var(--muted); font-size: .9rem; }
.me .stats { display: none; }
