/* VIBRIYOGN Clock-in — same brand tokens as Ops: ink + paper + signal yellow, VIBGYOR stripe. */
:root {
  --ink: #0a0a0a; --ink-2: #1c1c1c; --ink-3: #2c2c2c;
  --paper: #ffffff; --ground: #eceef0; --line: #d9dce0; --line-2: #e7e9ec;
  --text: #16181b; --muted: #5b6168; --faint: #8a9097;
  --accent: #ffd400; --accent-ink: #0a0a0a;
  --good: #1fa85a; --warn: #ff8a00; --bad: #e63b2e; --info: #1e7fd8;
  --s1: #7b3fbf; --s2: #3b3fb5; --s3: #1e7fd8; --s4: #1fa85a; --s5: #e8b900; --s6: #ff8a00; --s7: #e63b2e;
  --spectrum: linear-gradient(90deg, var(--s1), var(--s2), var(--s3), var(--s4), var(--s5), var(--s6), var(--s7));
  /* Project colors: validated categorical order (8 slots), --c0 = no project / other */
  --c0: #a3a8ae; --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #6250d6; --c8: #e34948;
  --head: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 12px; --r-sm: 8px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--ground); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 750; }
h3 { font-size: 15px; font-weight: 700; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, td.n, .kpi b, .dur, .clock { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sign-in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--ink); }
.signin-card { width: min(420px, 100%); background: var(--paper); border-radius: 18px; overflow: hidden; }
.signin-card .stripe { height: 6px; background: var(--spectrum); }
.signin-card .inner { padding: 28px; }
.brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.brandline img { width: 34px; height: 34px; }
.brandline span { font-family: var(--head); font-weight: 800; font-size: 18px; }
.signin-card p { color: var(--muted); margin: 6px 0 18px; }
.code-input { font-size: 26px; letter-spacing: .3em; text-indent: .3em; text-align: center; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #eee; }
.top .stripe { height: 4px; background: var(--spectrum); }
.top .bar { display: flex; align-items: center; gap: 14px; padding: 10px 20px; max-width: 1280px; margin: 0 auto; }
.top .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; flex: none; }
.top .brand img { width: 26px; height: 26px; }
.top .brand b { font-family: var(--head); font-size: 16px; font-weight: 800; }
.top select.biz { background: var(--ink-3); border: 1px solid #3b3b3b; color: #fff; border-radius: var(--r-sm); padding: 6px 8px; max-width: 200px; }
.top nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: var(--r-sm); text-decoration: none; color: #c9c9c9; font-weight: 600; font-size: 14px; white-space: nowrap; }
.top nav a:hover { color: #fff; background: var(--ink-2); }
.top nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
.top nav svg { width: 16px; height: 16px; }
.top .pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink-3); border: 1px solid #3b3b3b; color: #fff; border-radius: 99px; padding: 5px 6px 5px 12px; font-size: 13px; text-decoration: none; flex: none; }
.top .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse 1.6s infinite; }
.top .pill button { background: var(--bad); border: 0; color: #fff; border-radius: 99px; padding: 3px 10px; font-weight: 700; cursor: pointer; font-size: 12px; }
@keyframes pulse { 50% { opacity: .35; } }
.top .who { flex: none; }
.top .who button { background: none; border: 1px solid #3b3b3b; color: #ddd; border-radius: 99px; padding: 5px 11px; cursor: pointer; font-size: 13px; }
main { max-width: 1280px; margin: 0 auto; padding: 22px 20px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--paper); padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #b9bec4; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.signal { background: var(--accent); border-color: #e6bf00; color: var(--accent-ink); }
.btn.stop { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.icon { padding: 7px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--ground); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input:not([type]), select, textarea {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-sm); padding: 8px 10px; min-width: 0; width: 100%; }
textarea { min-height: 70px; resize: vertical; }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
label.f > input, label.f > select, label.f > textarea, label.f > .row { margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.seg button { border: 0; background: none; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bill { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 800; color: var(--faint); flex: none; }
.bill[aria-pressed="true"] { color: var(--good); border-color: var(--good); background: #e3f6ea; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.dotc { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c0); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--ground); color: var(--ink-3); white-space: nowrap; }
.tag.good { background: #e3f6ea; color: #136c3a; } .tag.warn { background: #fff1de; color: #9a5300; } .tag.bad { background: #ffe9e6; color: #b3261b; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-family: var(--head); font-size: 17px; margin-bottom: 4px; }

/* Tracker */
.timerbar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, 230px) minmax(120px, 190px) auto auto auto; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.timerbar .desc { font-size: 16px; border-color: transparent; background: var(--ground); }
.timerbar .clock { font-family: var(--head); font-size: 22px; font-weight: 800; min-width: 104px; text-align: right; }
.timerbar.manual { grid-template-columns: minmax(180px, 1fr) minmax(150px, 230px) minmax(120px, 190px) auto; }
.timerbar .manualrow { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.timerbar .manualrow input[type=date] { width: 150px; } .timerbar .manualrow input[type=time] { width: 112px; } .timerbar .manualrow input.durin { width: 90px; }
.weekline { display: flex; gap: 18px; align-items: baseline; margin: 18px 2px 8px; flex-wrap: wrap; }
.weekline b { font-family: var(--head); font-size: 18px; }
.day { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-top: 12px; overflow: hidden; }
.day-head { display: flex; justify-content: space-between; padding: 9px 16px; background: #f6f7f8; border-bottom: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--muted); }
.day-head .dur { color: var(--text); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 9px 12px 9px 16px; border-top: 1px solid var(--line-2); }
.entry:first-of-type { border-top: 0; }
.entry .what { min-width: 0; cursor: pointer; }
.entry .what .d { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry .what .d.none { color: var(--faint); font-weight: 500; }
.entry .proj { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.entry .span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.entry .dur { font-weight: 700; min-width: 58px; text-align: right; }
.entry .acts { display: flex; gap: 2px; }
.entry.running { background: #fffbe0; }
.entry .who { font-size: 12px; color: var(--faint); }
.bill-mark { color: var(--good); font-weight: 800; font-size: 13px; }

/* Timesheet */
.ts { width: 100%; border-collapse: collapse; }
.ts th, .ts td { border-bottom: 1px solid var(--line-2); padding: 6px; text-align: center; }
.ts th { font-size: 12px; color: var(--muted); font-weight: 700; }
.ts th.today { color: var(--ink); background: #fff7c2; border-radius: 6px 6px 0 0; }
.ts td.lbl { text-align: left; min-width: 200px; }
.ts td.lbl .proj { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.ts td.lbl small { color: var(--muted); display: block; padding-left: 16px; }
.ts input { width: 70px; text-align: center; padding: 6px 4px; }
.ts input.has { font-weight: 700; background: #f6f7f8; }
.ts td.tot, .ts tfoot td { font-weight: 800; font-variant-numeric: tabular-nums; }
.ts tfoot td { border-bottom: 0; }

/* Calendar */
.cal { display: grid; grid-template-columns: 54px repeat(var(--cols), minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal .ch { position: sticky; top: 0; background: #f6f7f8; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-2); padding: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.cal .ch b { display: block; color: var(--text); font-size: 15px; }
.cal .ch.today { background: #fff7c2; }
.cal .scroll { grid-column: 1 / -1; display: grid; grid-template-columns: 54px repeat(var(--cols), minmax(0, 1fr)); max-height: 68vh; overflow-y: auto; }
.cal .hours div { height: 48px; font-size: 11px; color: var(--faint); text-align: right; padding: 0 6px; transform: translateY(-7px); }
.cal .col { position: relative; border-left: 1px solid var(--line-2); background: repeating-linear-gradient(to bottom, transparent 0 47px, var(--line-2) 47px 48px); cursor: copy; }
.cal .blk { position: absolute; left: 3px; right: 3px; border-radius: 6px; padding: 3px 6px; font-size: 12px; line-height: 1.25; color: #fff; overflow: hidden; cursor: pointer; border: 2px solid var(--paper); }
.cal .blk b { display: block; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal .blk.run { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px); }
.cal .now { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 2; pointer-events: none; }

/* Reports */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 16px; }
.filters label.f { min-width: 112px; flex: 1 1 112px; max-width: 210px; }
.filters .dates { display: flex; gap: 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; }
.kpi { padding: 14px 18px; border-left: 1px solid var(--line-2); }
.kpi:first-child { border-left: 0; }
.kpi span { display: block; color: var(--muted); font-size: 13px; }
.kpi b { display: block; font-family: var(--head); font-size: 26px; font-weight: 800; }
.charts { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.charts .panel + .panel { margin-top: 0; }
.charts > * { min-width: 0; } /* long labels shrink instead of widening the page */
.charts.two { grid-template-columns: 1fr 1fr; } .charts.one { grid-template-columns: 1fr; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { font-size: 11px; fill: var(--muted); }
.chart .grid line { stroke: var(--line-2); }
.chart .base { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.hbars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hbar .lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.hbar .lbl span:first-child { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.hbar .lbl span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.hbar .track { height: 10px; background: var(--ground); border-radius: 4px; margin-top: 4px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12px; line-height: 1.4; max-width: 260px; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.tip b { font-weight: 700; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); padding: 8px; white-space: nowrap; }
.tbl td { border-bottom: 1px solid var(--line-2); padding: 8px; vertical-align: top; }
.tbl th.n, .tbl td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr.sub td { color: var(--muted); font-size: 13px; }
.tbl tr.sub td:first-child { padding-left: 30px; }
.tbl tr.total td { font-weight: 800; border-bottom: 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #f8f9fa; }
.table-wrap { overflow-x: auto; }
.pbar { height: 6px; background: var(--ground); border-radius: 4px; overflow: hidden; margin-top: 4px; width: 140px; }
.pbar i { display: block; height: 100%; background: var(--good); }
.pbar i.over { background: var(--bad); }

/* Projects */
.proj-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.proj-row:first-child { border-top: 0; }
.proj-row .nm { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.proj-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-row.subp { padding-left: 22px; } .proj-row.subp .nm { font-weight: 600; }
.proj-row.archived { opacity: .55; }
.tasks { padding: 2px 0 8px 40px; display: flex; flex-wrap: wrap; gap: 6px; }
.tasks .tag { cursor: pointer; } .tasks .tag.done { text-decoration: line-through; opacity: .6; }
.client-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

/* Dialog + toast */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100% - 24px)); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,10,10,.5); }
dialog .dh { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; }
dialog .db { padding: 16px 20px; max-height: 70vh; overflow-y: auto; }
dialog .df { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px 18px; flex-wrap: wrap; }
dialog .df .left { margin-right: auto; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: calc(100% - 32px); text-align: center; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; z-index: 70; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast.bad { background: var(--bad); }
.loading { color: var(--muted); padding: 30px 0; }

@media (max-width: 900px) {
  .timerbar, .timerbar.manual { grid-template-columns: 1fr 1fr; }
  .timerbar .desc { grid-column: 1 / -1; }
  .timerbar .clock { text-align: left; }
  .charts, .charts.two { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 640px) {
  .top .bar { flex-wrap: wrap; padding: 8px 16px; gap: 8px; }
  .top nav { order: 3; flex-basis: 100%; }
  .top select.biz { max-width: 140px; }
  main { padding: 16px 16px 40px; }
  .entry { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 2px; }
  .entry .what { grid-column: 1 / -1; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .proj-row { grid-template-columns: minmax(0, 1fr) auto; }
  .proj-row .hide-sm { display: none; }
  .filters label.f { max-width: none; }
}
@media print {
  .top, .filters, .no-print { display: none !important; }
  body { background: #fff; } main { padding: 0; }
  .panel, .kpis { border-color: #ccc; }
}

/* ── Left icon rail (expands with labels on hover/focus) ───────── */
.rail { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 64px; background: var(--ink); display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; overflow: hidden; transition: width .2s ease, box-shadow .2s ease; border-right: 1px solid #1f1f1f; }
.rail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--s1), var(--s2), var(--s3), var(--s4), var(--s5), var(--s6), var(--s7)); }
.rail:hover, .rail:has(:focus-visible) { width: 212px; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
.rail a, .rail button { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px; border-radius: 10px; color: #c9c9c9; text-decoration: none; font: 600 14px var(--body); white-space: nowrap; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.rail svg, .rail img { width: 20px; height: 20px; flex: none; }
.rail span, .rail b { opacity: 0; transition: opacity .15s ease; }
.rail:hover span, .rail:hover b, .rail:has(:focus-visible) span, .rail:has(:focus-visible) b { opacity: 1; }
.rail .brand { color: #fff; margin-bottom: 14px; }
.rail .brand img { width: 24px; height: 24px; }
.rail .brand b { font-family: var(--head); font-size: 17px; font-weight: 800; }
.rail nav { display: flex; flex-direction: column; gap: 4px; }
.rail nav a:hover, .rail-out:hover, .rail-apps:hover { color: #fff; background: var(--ink-2); }
.rail nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
.rail-apps { margin-top: auto; }
body:has(.rail) { padding-left: 64px; }
.top .bar { max-width: none; }
.top .brand-sm { display: none; }
.top .biz-name { font-family: var(--head); font-size: 15px; color: #fff; }
.top .grow { flex: 1; }

/* Phone: tab strip under the header (sticks to the top while scrolling) */
@media (max-width: 640px) {
  body:has(.rail) { padding-left: 0; }
  #app:has(.rail) { display: flex; flex-direction: column; min-height: 100vh; }
  #app:has(.rail) > .top { order: 1; position: static; }
  #app:has(.rail) > main { order: 3; width: 100%; }
  .rail, .rail:hover, .rail:has(:focus-visible) { order: 2; position: sticky; top: 0; left: auto; bottom: auto; width: auto; height: auto; flex-direction: row; padding: 6px 6px 7px; border-right: 0; border-bottom: 1px solid #1f1f1f; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
  .rail::before { display: none; }
  .rail .brand { display: none; }
  .rail nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .rail a, .rail button { width: auto; height: 46px; padding: 0 12px; justify-content: center; }
  .rail span { display: none; }
  .top .bar { flex-wrap: nowrap; }
  .top .brand-sm { display: flex; } .top .brand-sm img { width: 24px; height: 24px; }
}
@media print { .rail { display: none !important; } body:has(.rail) { padding-left: 0; } }

/* Sign in with Google / Microsoft / Apple: provider-branded buttons */
a.sso { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; text-decoration: none; }
a.sso:hover { background: #f7f8f8; border-color: #c4c7c5; color: #1f1f1f; }
a.sso svg { width: 18px; height: 18px; flex: none; }
a.sso-apple { background: #000; color: #fff; border-color: #000; } a.sso-apple:hover { background: #1c1c1c; color: #fff; }

/* ── Crew features: breaks, job sites, who's in, approvals, time off, payroll, settings ── */
.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi b.neg { color: var(--bad); }
.rail nav { overflow-y: auto; scrollbar-width: none; min-height: 0; flex: 1 1 auto; }
.rail nav::-webkit-scrollbar { display: none; }
.rail nav a { position: relative; }
.rail .badge { position: absolute; left: 30px; top: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font: 700 11px/17px var(--body); font-style: normal; text-align: center; opacity: 1 !important; }
.top .pill.brk .dot { background: var(--warn); animation: none; }
.breakbar { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 12px; align-items: center; background: #fff6e8; border: 1px solid #ffd9a8; border-radius: var(--r); padding: 12px 14px; }
.breakbar .cupi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--warn); color: #fff; }
.breakbar .cupi svg { width: 22px; height: 22px; }
.breakbar b { display: block; font-family: var(--head); font-size: 17px; }
.breakbar small { color: var(--muted); }
.breakbar .clock { font-family: var(--head); font-size: 22px; font-weight: 800; }
.entry.is-break { background: #fffaf2; }
.entry.is-break .what .d { color: var(--muted); font-weight: 500; }
.proj .site { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: var(--good); }
.proj .site svg, .on-site svg, .geo svg { width: 14px; height: 14px; }
.on-site { display: flex; align-items: center; gap: 6px; margin: 8px 2px 0; }
.on-site.warn { color: #9a5300; }
.geo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 14px; border-radius: var(--r); background: #eaf7ef; border: 1px solid #bfe6cd; }
.geo svg { width: 18px; height: 18px; color: var(--good); }
.geo span { flex: 1; min-width: 160px; }
.geo.warn { background: #fff4e5; border-color: #ffd9a8; } .geo.warn svg { color: var(--warn); }
.geo.ok { background: transparent; border-color: transparent; padding: 4px 2px; color: var(--muted); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.live-grid.one { grid-template-columns: 1fr; }
.live-grid .panel + .panel { margin-top: 0; }
.who-list { padding: 6px; }
.who-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; }
.who-card + .who-card { border-top: 1px solid var(--line-2); }
.who-card .av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--pc); color: #fff; font: 700 14px var(--body); }
.who-card.off .av { opacity: .55; }
.who-main b { display: block; }
.who-main small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-time { font: 800 18px var(--head); font-variant-numeric: tabular-nums; color: var(--faint); }
.who-time.in { color: var(--good); } .who-time.break { color: var(--warn); }
.map { height: 420px; border-radius: 10px; overflow: hidden; background: var(--ground); }
.map.pick { height: 300px; }
.map-panel { padding: 10px; position: sticky; top: 16px; }
.mpin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pc); color: #fff; font: 700 12px var(--body); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.notes p { display: flex; align-items: center; gap: 8px; margin: 0; } .notes p + p { margin-top: 8px; }
.notes svg { width: 16px; height: 16px; color: var(--warn); flex: none; }
.off-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.off-top .panel + .panel { margin-top: 0; }
.bal { display: flex; flex-direction: column; gap: 6px; }
.bal .big { font: 800 40px/1 var(--head); margin-top: 10px; }
.pbar { height: 8px; border-radius: 99px; background: var(--ground); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--good); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; align-items: end; }
#setf .panel + .panel { margin-top: 16px; }
#setf + .panel { margin-top: 16px; }
@media (max-width: 900px) { .live-grid, .off-top { grid-template-columns: 1fr; } .map-panel { position: static; } .map { height: 320px; } }
@media (max-width: 640px) {
  .rail nav { overflow-x: auto; overflow-y: hidden; justify-content: flex-start; }
  .rail .badge { left: auto; right: 4px; top: 2px; }
  .breakbar { grid-template-columns: auto 1fr auto; }
  .breakbar .btn { grid-column: span 3; }
  .breakbar .btn + .btn { grid-column: span 3; }
}
.timerbar:has(#brk) { grid-template-columns: minmax(180px, 1fr) minmax(150px, 230px) minmax(120px, 190px) auto auto auto auto; }
@media (max-width: 900px) { .timerbar:has(#brk) { grid-template-columns: 1fr 1fr; } }
.bal .pbar { width: 100%; max-width: none; }

/* ── Schedule ── */
.sched-wrap { padding: 0; overflow: hidden; }
.sched { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 900px; }
.sched th, .sched td { border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); vertical-align: top; padding: 6px; }
.sched thead th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; background: #fafbfb; padding: 10px 8px; }
.sched thead th b { color: var(--text); font-size: 15px; margin-left: 2px; }
.sched thead th.today { background: #fff8cc; }
.sched td.today { background: #fffdf0; }
.sched th.who { width: 170px; text-align: left; border-left: 0; padding: 10px 12px; background: var(--paper); }
.sched tbody th.who b { display: block; font-size: 14px; }
.sched tr.me th.who { box-shadow: inset 3px 0 0 var(--accent); }
.sched tr.openrow th.who b { color: var(--muted); }
.sched tr.openrow td { background: repeating-linear-gradient(135deg, transparent 0 8px, #f6f7f8 8px 9px); }
.sched td { height: 74px; position: relative; }
.sched tfoot td, .sched tfoot th { font-weight: 700; font-size: 13px; background: #fafbfb; height: auto; }
.shift { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; margin-bottom: 4px; padding: 6px 8px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--sc) 40%, transparent); border-left: 4px solid var(--sc); background: color-mix(in srgb, var(--sc) 12%, #fff); text-align: left; cursor: pointer; font-size: 12px; line-height: 1.3; }
.shift b { font-size: 13px; }
.shift span { color: var(--text); font-weight: 600; }
.shift small { color: var(--muted); font-size: 11px; }
.shift.draft { border-style: dashed; background: #fff; }
.shift .dr { color: var(--warn); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }
.shift em { font-style: normal; font-size: 11px; font-weight: 700; }
.shift em.late { color: var(--bad); } .shift em.ok { color: var(--good); }
.shift .claim { font-style: normal; margin-top: 3px; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 11px; }
.shift.mine { box-shadow: 0 0 0 2px var(--accent); }
.offchip { display: block; margin-bottom: 4px; padding: 4px 8px; border-radius: 8px; background: #eef0f2; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.worked { display: block; font-size: 11px; color: var(--muted); }
.addsh { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px dashed var(--line); background: var(--paper); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s; }
.addsh svg { width: 14px; height: 14px; }
.sched td:hover .addsh, .addsh:focus-visible { opacity: 1; }
@media (hover: none) { .addsh { opacity: .8; } }
.warnt { color: var(--bad) !important; font-weight: 600; }
.badt { color: var(--bad); }
.day-pick { font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; }

/* ── Phone pass ── */
.rail-more { display: none; }
.ts-days { display: none; }
@media (max-width: 640px) {
  /* tab bar: four labelled tabs + More */
  .rail nav { overflow: visible; justify-content: space-between; gap: 0; }
  .rail nav a:not(.pri) { display: none; }
  .rail nav a.pri, .rail .rail-more { display: flex; flex-direction: column; gap: 2px; height: 46px; padding: 0 4px; flex: 1; min-width: 0; border-radius: 12px; font-size: 10.5px; font-weight: 600; }
  .rail nav a.pri span, .rail .rail-more span { display: block; opacity: 1; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .rail nav a.pri svg, .rail .rail-more svg { width: 20px; height: 20px; }
  .rail .rail-more { color: #c9c9c9; background: none; border: 0; align-items: center; justify-content: center; position: relative; }
  .rail .rail-more.on { color: var(--accent-ink); background: var(--accent); }
  .rail-apps, .rail-out { display: none !important; }
  .rail .badge { left: auto; right: calc(50% - 22px); top: 2px; }
  .rail .badge.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; right: calc(50% - 16px); top: 6px; }
  /* More sheet */
  .msheet { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0); transition: background .2s; display: flex; align-items: flex-start; }
  .msheet.in { background: rgba(0,0,0,.45); }
  .msheet-card { width: 100%; background: var(--paper); border-radius: 0 0 20px 20px; padding: calc(14px + env(safe-area-inset-top)) 14px 10px; transform: translateY(-100%); transition: transform .22s ease; display: flex; flex-direction: column; }
  .msheet .grab { order: 9; margin: 12px auto 2px !important; }
  .msheet.in .msheet-card { transform: none; }
  .msheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 12px; }
  .msheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .msheet-grid a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--ground); color: var(--text); text-decoration: none; font-weight: 600; font-size: 13px; text-align: center; }
  .msheet-grid a.on { background: var(--accent); color: var(--accent-ink); }
  .msheet-grid svg { width: 22px; height: 22px; }
  .msheet-grid .badge { position: absolute; top: 6px; right: 10px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--bad); color: #fff; font: 700 11px/18px var(--body); font-style: normal; }
  .msheet-foot { display: flex; gap: 8px; margin-top: 12px; }
  .msheet-foot a, .msheet-foot button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--text); font: 600 14px var(--body); text-decoration: none; }
  .msheet-foot svg { width: 18px; height: 18px; }
  /* page head: tighter */
  h1 { font-size: 26px; }
  .page-head { margin-bottom: 14px; gap: 10px; }
  .page-head p { font-size: 14px; }
  .page-head .row { width: 100%; }
  /* tables → stacked cards */
  table.tbl.stack, table.tbl.stack tbody, table.tbl.stack tfoot { display: block; width: 100%; }
  table.tbl.stack thead { display: none; }
  table.tbl.stack tr { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line-2); }
  table.tbl.stack tr:last-child { border-bottom: 0; }
  table.tbl.stack td { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: 6px 10px; border: 0; padding: 3px 0; text-align: right; min-height: 0; }
  table.tbl.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; text-align: left; flex: none; margin-right: auto; }
  table.tbl.stack td:first-child { display: block; text-align: left; padding-bottom: 6px; }
  table.tbl.stack td:first-child::before, table.tbl.stack td[data-label=""]::before { content: none; }
  table.tbl.stack td[data-label=""] { justify-content: flex-end; }
  table.tbl.stack td:empty { display: none; }
  .table-wrap:has(table.tbl.stack) { overflow: visible; }
  /* timesheet: one day */
  .ts-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; }
  .ts-days button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font: inherit; }
  .ts-days button small { font-size: 11px; color: var(--muted); }
  .ts-days button b { font-size: 16px; }
  .ts-days button i { font-style: normal; font-size: 10.5px; color: var(--muted); }
  .ts-days button.today { border-color: var(--accent); }
  .ts-days button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .ts-days button.on small, .ts-days button.on i { color: #ccc; }
  .ts.one th:nth-child(n+2):nth-child(-n+8), .ts.one td:nth-child(n+2):nth-child(-n+8) { display: none; }
  .ts.one.d0 :is(th, td):nth-child(2), .ts.one.d1 :is(th, td):nth-child(3), .ts.one.d2 :is(th, td):nth-child(4), .ts.one.d3 :is(th, td):nth-child(5),
  .ts.one.d4 :is(th, td):nth-child(6), .ts.one.d5 :is(th, td):nth-child(7), .ts.one.d6 :is(th, td):nth-child(8) { display: table-cell; }
  .ts.one { min-width: 0; width: 100%; }
  .ts.one td input { width: 84px; font-size: 16px; }
  .ts.one td.lbl { min-width: 0; }
  .ts.one th, .ts.one td { padding: 6px 4px; }
  #addrow select { max-width: none !important; flex: 1 1 100%; }
  #addrow .btn { width: 100%; }
  /* schedule agenda */
  .sched-agenda { padding: 4px 14px; }
  .ag-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); position: relative; }
  .ag-row:last-child { border-bottom: 0; }
  .ag-row.me .ag-who b { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
  .ag-who b { display: inline; font-size: 15px; }
  .ag-who small { display: block; }
  .ag-cells { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; }
  .ag-row .addsh { position: static; opacity: 1; grid-row: 1; grid-column: 2; width: 34px; height: 34px; }
  .ag-cells .shift { margin: 0; }
  .ag-row.openrow { background: repeating-linear-gradient(135deg, transparent 0 8px, #f6f7f8 8px 9px); margin: 0 -14px; padding: 12px 14px; }
  /* misc */
  .timerbar { padding: 10px; }
  .kpi b { font-size: 22px; }
  .notes p { align-items: flex-start; font-size: 14px; }
  .live-grid .map { height: 260px; }
  .who-card { padding: 12px 4px; }
  .off-top { margin-bottom: 12px; }
  .bal .big { font-size: 34px; }
}
/* Date pickers: iOS gives them a fixed intrinsic width that spills out of narrow grids */
input[type="date"], input[type="time"], input[type="datetime-local"] { min-width: 0; max-width: 100%; width: 100%; -webkit-appearance: none; appearance: none; display: block; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.filters label.f, .filters .dates > * { min-width: 0; }
.map { isolation: isolate; position: relative; z-index: 0; }
tr[data-site] { cursor: pointer; }
tr[data-site].sel td:first-child b { box-shadow: inset 0 -3px 0 var(--accent); }
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .dates { display: contents; }
  /* Job sites: map first, list under it */
  .live-grid.sites .map-panel { order: -1; padding: 6px; }
  .live-grid .map-panel .map { height: 260px; }
  .map.pick { height: 220px; }
  dialog .row:has(#find) { flex-wrap: wrap; }
  dialog .row:has(#find) input { flex: 1 1 100% !important; }
  dialog .row:has(#find) .btn { flex: 1; justify-content: center; }
  .leaflet-tooltip { font-size: 12px; padding: 3px 7px; }
}
/* Timesheet: start and end times */
.ts-mode { margin-bottom: 12px; max-width: 420px; }
.tt-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 12px; }
.tt-day { margin: 0; padding: 14px 16px; }
.tt-day.today { box-shadow: inset 0 3px 0 var(--accent); }
.tt-day header { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; margin-bottom: 8px; }
.tt-day header .small { grid-column: 1; grid-row: 2; }
.tt-day header .num { grid-row: 1 / span 2; font-size: 18px; }
.tt-list { list-style: none; margin: 0; padding: 0; }
.tt-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line-2); }
.tt-row.brk { color: var(--muted); }
.tt-times { display: inline-flex; align-items: center; gap: 4px; }
.tt-times input[type=time] { width: 104px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.tt-run { font-size: 13px; color: var(--good); font-weight: 600; width: 104px; }
.tt-what { all: unset; cursor: pointer; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tt-what:hover b, .tt-what:focus-visible b { text-decoration: underline; }
.tt-what b { font-weight: 600; font-size: 14px; }
.tt-what small { color: var(--muted); font-size: 12.5px; }
.tt-desc { flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-dur { font-weight: 700; font-size: 14px; }
.tt-none { margin: 4px 0; }
.tt-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--line); }
.tt-add select { flex: 1 1 140px; min-width: 0; }
.tt-total { text-align: right; margin: 14px 4px 0; font-size: 15px; }
.tt-total b { font-size: 20px; margin-left: 6px; }
@media (max-width: 640px) {
  .tt-week { grid-template-columns: minmax(0, 1fr); }
  .tt-day:not(.sel) { display: none; }
  .tt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tt-row .tt-what { grid-column: 1 / -1; grid-row: 2; }
  .tt-times input[type=time] { width: 112px; font-size: 16px; }
  .tt-add .btn { flex: 1 1 100%; justify-content: center; }
  .ts-mode { max-width: none; }
}
.ts-mode { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: #e9e9e4; }
.ts-mode button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: 600 14px var(--body); color: var(--muted); cursor: pointer; }
.ts-mode button[aria-selected="true"] { background: var(--paper); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.tt-times input[type=time] { width: 8.6em; }
@media (max-width: 640px) { .ts-mode { display: flex; } .ts-mode button { flex: 1; } .tt-times input[type=time] { width: 8.4em; } }

/* Same-device sign-in alerts (Who's in) */
.dev-alerts { margin-bottom: 14px; border-color: var(--warn); }
.dev-alert { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line-2); }
.dev-alert small { display: block; color: var(--muted); margin-top: 2px; }
.dev-act { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 640px) { .dev-alert { flex-direction: column; align-items: flex-start; } }

/* Inside Ops: Ops draws the menu and header; phones keep the tab strip */
html.embed .top, html.embed .rail .brand, html.embed .rail-apps, html.embed .rail-out, html.embed .msheet-foot { display: none !important; }
@media (min-width: 641px) {
  html.embed .rail { display: none !important; }
  html.embed body:has(.rail) { padding-left: 0; }
}
html.embed main { padding-top: 24px; }

/* ===== v1.1 consistency layer: match Ops (admin.vibriyogn.us) so pages look the same inside the Ops frame ===== */
:root {
  --ground: #f4f4f1; --paper: #ffffff; --line: #e2e2dd; --line-2: #ececE8;
  --text: #1b1b19; --muted: #6b6b65; --faint: #9b9b94; --ink-2: #1e1e20; --ink-3: #2b2b2e; --hover: #f7f7f4;
  --r: 14px; --r-sm: 10px; --r-xs: 6px;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 24px;
}
body { font-size: var(--fs-md); line-height: 1.5; }
h1 { font-size: var(--fs-2xl); font-weight: 750; letter-spacing: -0.02em; }
h2 { font-family: var(--body); font-size: var(--fs-lg); font-weight: 650; }
h3 { font-family: var(--body); font-size: var(--fs-md); font-weight: 650; }
.page-head { min-height: 64px; align-items: center; margin-bottom: 20px; }
.page-head p { font-size: var(--fs-md); margin-top: 2px; max-width: 72ch; }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-head .actions > .primary, .page-head .actions > .signal { order: 10; }
.btn { padding: 7px 12px; font-size: var(--fs-sm); font-weight: 600; border-color: var(--line); border-radius: var(--r-sm); transition: background .12s, border-color .12s; }
.btn:hover { border-color: #cfcfc8; background: var(--hover); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn.small { padding: 4px 10px; font-size: var(--fs-xs); }
.page-head .actions > .btn { min-height: 34px; }
.page-head .actions > .btn.signal { background: var(--ink); border-color: var(--ink); color: #fff; }
td a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
td a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .page-head { min-height: 0; } }
/* Same app label above every title as Ops pages show (shown inside the Ops frame). */
html.embed .page-head > div:first-child::before { content: "Clock-in"; display: block; margin-bottom: 2px; font: 700 12px/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #1fa85a; }
