/* TYV Time by The Yovth: black, white, one orange accent, and a punch-clock face. */
:root {
  --bg: #0e0e0e;
  --bg-2: #0a0a0a;
  --card: #161616;
  --card-2: #1e1e1e;
  --card-3: #262626;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --text: #d7d7d7;
  --white: #ffffff;
  --muted: #8c8b8b;
  --dim: #5f5e5e;
  --v: #ff4a17;
  --v-2: #ef3c23;
  --v-soft: rgba(255, 74, 23, .12);
  --go: #3dd68c;
  --go-soft: rgba(61, 214, 140, .14);
  --display: "League Spartan", "Arial Black", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --r: 6px;
  --glow: 0 0 0 1px rgba(255, 74, 23, .55), 0 10px 32px -8px rgba(255, 74, 23, .6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font: 15px/1.55 var(--body); font-variant-numeric: tabular-nums; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: var(--v); color: #fff; }
a { color: inherit; }
code { font: 600 12.5px var(--body); background: var(--card-3); color: var(--white); padding: 2px 6px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--white); }
h1 { font: 900 clamp(34px, 4vw, 54px)/.92 var(--display); text-transform: uppercase; padding-top: .08em; }
h1 em { font-style: normal; color: var(--v); }
h2 { font: 800 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
h2 span { color: var(--muted); font-weight: 600; margin-left: 6px; }
h3 { font: 700 11px/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
h3 .pill { letter-spacing: .1em; }
.h-aside { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12.5px; color: var(--dim); }
.sub { color: var(--muted); font-size: 12.5px; }
.fine { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.late { color: var(--v); font-weight: 700; }
a.late { text-decoration: none; }
a.late:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { color: var(--dim); font-style: italic; margin: 6px 0; }
.warn { color: #ffd3c4; background: var(--v-soft); border: 1px solid rgba(255, 74, 23, .45); padding: 10px 12px; border-radius: var(--r); font-size: 13.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.back { display: inline-block; margin-bottom: 14px; font: 700 11px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--v); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; z-index: 3; background: var(--bg-2); display: flex; flex-direction: column; padding: 26px 14px 18px; border-right: 1px solid #1c1c1c; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-decoration: none; padding: 0 10px 28px; }
.brand-logo { display: block; width: 132px; height: auto; }
.brand-word { font: 700 10.5px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.brand-word::before { content: ""; width: 14px; height: 2px; background: var(--v); }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; min-height: 0; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); text-decoration: none; color: #a9a8a8; font: 700 12px/1.15 var(--body); letter-spacing: .08em; text-transform: uppercase; position: relative; transition: color .15s, background .15s; }
.nav a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { color: var(--white); background: var(--card); }
.nav a.on { color: var(--white); background: var(--card-2); }
.nav a.on svg { color: var(--v); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; background: var(--v); box-shadow: 0 0 14px var(--v); }
.nav .count { margin-left: auto; font: 800 10.5px/1 var(--body); letter-spacing: .04em; padding: 4px 6px; border-radius: 4px; background: var(--v); color: #fff; }
.nav .count + .count { margin-left: 6px; }
.nav .count.note { background: transparent; color: var(--v); box-shadow: inset 0 0 0 1.5px var(--v); }
.nav-label { font: 700 10px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); padding: 16px 10px 8px; }
.rail-foot { margin-top: auto; padding: 0 6px; }
.feedback-btn { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 9px 10px; border: 1px dashed var(--line-2); border-radius: var(--r); color: #a9a8a8; text-decoration: none; font: 700 12px/1.15 var(--body); letter-spacing: .08em; text-transform: uppercase; transition: color .15s, border-color .15s, background .15s; }
.feedback-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feedback-btn:hover, .feedback-btn.on { color: var(--white); border-color: var(--v); background: var(--card); }
.me { display: flex; flex-direction: column; gap: 4px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.me a { text-decoration: none; font-weight: 700; color: var(--white); }
.me form { margin-top: 6px; }
.link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; opacity: .75; padding: 0; }
.link:hover { opacity: 1; color: var(--v); }

.main { padding: 40px 48px 90px; min-width: 0; max-width: 1380px; position: relative; isolation: isolate; }
.main::before { content: "V"; position: fixed; right: -4vw; bottom: -14vh; z-index: -1; pointer-events: none; font: 900 min(92vh, 62vw)/1 var(--display); color: rgba(255, 74, 23, .04); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head .sub { margin: 10px 0 0; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 12.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 13px 18px; border-radius: var(--r); cursor: pointer; background: transparent; color: var(--white); border: 1px solid var(--line-2); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--white); transform: translateY(-1px); }
.btn.primary { background: var(--v); border-color: var(--v); color: #fff; box-shadow: var(--glow); }
.btn.primary::after { content: "→"; font-size: 14px; letter-spacing: 0; transition: transform .15s; }
.btn.primary:hover { background: var(--v-2); border-color: var(--v-2); }
.btn.primary:hover::after { transform: translateX(3px); }
.btn.stop { background: var(--white); color: #0e0e0e; border-color: var(--white); font-size: 14px; padding: 16px 26px; }
.btn.stop::before { content: ""; width: 11px; height: 11px; background: var(--v); border-radius: 2px; }
.btn.stop:hover { background: #ffe6dd; }
.btn.danger { border-color: rgba(255, 74, 23, .5); color: #ffb39c; }
.btn.danger:hover { background: var(--v-soft); border-color: var(--v); }
.btn.google { background: var(--white); color: #1f1f1f; border-color: var(--white); text-transform: none; letter-spacing: 0; font-size: 15px; padding: 15px 18px; }
.btn.google svg { width: 20px; height: 20px; }
.btn.small { font-size: 11px; padding: 9px 12px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; box-shadow: none; }
label { display: flex; flex-direction: column; gap: 7px; font: 700 11px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
input, select { font: 15px/1.4 var(--body); color: var(--white); background: #111; border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; width: 100%; letter-spacing: 0; text-transform: none; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: var(--dim); }
input[type=date], input[type=time] { color-scheme: dark; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--v); padding: 0; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: none; border-color: var(--v); box-shadow: 0 0 0 3px rgba(255, 74, 23, .25); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; margin-top: 16px; }
.grid-form .f-desc { grid-column: span 2; }
.grid-form .f-reason, .grid-form .f-note { grid-column: span 2; }
select:user-invalid, input:user-invalid { border-color: var(--v); }
.grid-form > .btn, .grid-form .row-actions { grid-column: 1 / -1; justify-self: start; }
.grid-form .hint { grid-column: span 1; align-self: center; color: var(--dim); font-size: 12.5px; }
.row-actions { display: flex; gap: 10px; margin-top: 6px; }
.flash { padding: 13px 16px; border-radius: var(--r); margin-bottom: 18px; background: var(--go-soft); border: 1px solid rgba(61, 214, 140, .35); color: #c9f5de; font-weight: 600; animation: drop .35s ease both; }
.flash.error { background: var(--v-soft); border-color: rgba(255, 74, 23, .45); color: #ffd3c4; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Test copies (APP_BANNER): a tag by the logo and a striped strip on every page. */
.env-tag { display: inline-block; font: 800 10px/1 var(--body); letter-spacing: .14em; padding: 4px 6px; border-radius: 4px; background: var(--v); color: #fff; }
input.file-pick { width: auto; flex: 1 1 300px; max-width: 460px; padding: 9px 10px; }
.env-strip { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px 14px; border: 1px solid rgba(255, 74, 23, .55); border-radius: var(--r); color: #ffd3c4; font-size: 13.5px; font-weight: 600; background: repeating-linear-gradient(-45deg, rgba(255, 74, 23, .14) 0 12px, rgba(255, 74, 23, .06) 12px 24px); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 18px; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.card.narrow { max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.chip { display: inline-block; font: 800 11px/1 var(--body); letter-spacing: .06em; padding: 5px 7px; border-radius: 4px; background: var(--white); color: #0e0e0e; vertical-align: middle; }
.chip.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); font-weight: 600; letter-spacing: 0; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 30px; color: var(--text); text-decoration: none; }
.pill.go { border-color: rgba(61, 214, 140, .5); color: #c9f5de; }
a.pill:hover { border-color: var(--v); color: var(--white); }

/* ---------- progress ---------- */
.bar { height: 6px; background: var(--card-3); border-radius: 6px; overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; background: var(--v); border-radius: 6px; transition: width .6s ease; }
.bar.over span { background: var(--go); }
.day-total { min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.day-num b { font: 900 44px/.9 var(--display); color: var(--white); }
.day-num span { font: 800 22px var(--display); color: var(--dim); }
.day-total .bar { height: 8px; }

/* ---------- the clock ---------- */
.clock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; background: var(--card); animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.clock-face { position: relative; padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 16px; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 74, 23, .08), transparent 60%), var(--bg-2); border-right: 1px solid var(--line); }
.clock-face::after { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(255, 255, 255, .06); border-radius: 4px; pointer-events: none; }
.clock-state { display: flex; align-items: center; gap: 10px; font: 700 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.clock-state .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.is-running .clock-state { color: var(--white); }
.is-running .clock-state .dot { background: var(--v); box-shadow: 0 0 0 4px var(--v-soft); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 74, 23, 0); } }
.digits { font: 800 clamp(64px, 8.4vw, 120px)/.85 var(--display); letter-spacing: -.02em; color: var(--dim); padding-top: .08em; }
.is-running .digits { color: var(--white); text-shadow: 0 0 40px rgba(255, 74, 23, .25); }
.clock-task { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.clock-task strong { font-size: 18px; color: var(--white); width: 100%; }
.clock-face form { margin-top: 4px; }
.clock-in { padding: 26px 28px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.clock-in h3, .clock-in .f-desc, .clock-in > .btn, .clock-in .switch-when { grid-column: 1 / -1; }
.clock-in h3 { margin-bottom: 0; }
.clock-in > .btn { justify-self: start; padding: 15px 24px; font-size: 13px; }

.recent { display: flex; flex-wrap: wrap; gap: 10px; }
.recent-task { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 30px; padding: 8px 14px 8px 10px; cursor: pointer; font: 600 13.5px var(--body); transition: border-color .15s, transform .15s; }
.recent-task svg { width: 15px; height: 15px; fill: var(--v); flex: none; }
.recent-task:hover { border-color: var(--v); transform: translateY(-1px); color: var(--white); }
.rt-desc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); }
.rt-dept { color: var(--muted); font-size: 12px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 700 10.5px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
th.right { text-align: right; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.entries td.when { white-space: nowrap; color: var(--muted); width: 120px; }
.entries strong { color: var(--white); font-weight: 600; }
tr.live td { background: linear-gradient(90deg, var(--v-soft), transparent 60%); }
tr.live td:first-child { box-shadow: inset 3px 0 0 var(--v); }
.manual { margin-top: 16px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.manual summary { cursor: pointer; font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); list-style: none; }
.manual summary::before { content: "+ "; color: var(--v); }
.manual[open] summary::before { content: "– "; }
.manual summary:hover { color: var(--white); }
.review-actions { min-width: 220px; }
.review-actions form { margin: 0 0 8px; }
.review-decline { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.weekbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wb { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; padding: 6px 0; border-radius: var(--r); }
.wb:hover { background: var(--card-2); }
.wb-col { position: relative; width: 22px; height: 120px; background: var(--card-3); border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; }
.wb-fill { width: 100%; background: var(--line-2); border-radius: 4px; }
.wb.today .wb-fill { background: var(--v); }
.wb.short .wb-col { box-shadow: 0 0 0 1px rgba(255, 74, 23, .6); }
.wb-day { font: 700 10.5px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wb.today .wb-day { color: var(--v); }
.wb-num { font-size: 12.5px; color: var(--white); }

.day .day-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 8px; }
.day-meta { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.day-meta .bar { flex: 1; }
.day.today { border-color: rgba(255, 74, 23, .45); }

.people td.meter { min-width: 150px; }
.people td.meter .bar { margin-top: 8px; }
.people strong { color: var(--white); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--v); margin-right: 8px; box-shadow: 0 0 0 3px var(--v-soft); animation: pulse 1.6s infinite; }

.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbars.big { margin-bottom: 26px; }
.hb { display: grid; grid-template-columns: 210px 1fr 64px 44px; gap: 12px; align-items: center; }
.hb-label { font-size: 13.5px; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 14px; background: var(--card-3); border-radius: 3px; overflow: hidden; }
.hb-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--v-2), var(--v)); animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.hb-num { text-align: right; color: var(--white); font-weight: 700; }
.hb-pct { text-align: right; color: var(--dim); font-size: 12.5px; }
.hbars:not(.big) .hb { grid-template-columns: 210px 1fr 64px; }
.big-total { text-align: right; }
.big-total b { display: block; font: 900 52px/.9 var(--display); color: var(--white); }
.big-total span { color: var(--muted); font-size: 12.5px; }

.tree tr.d0 td { color: var(--white); font-weight: 700; background: rgba(255, 255, 255, .02); }
.tree tr.d1 td:first-child { color: var(--text); }
.tree tr.d2 td:first-child { color: var(--muted); }
.tree tr.total td { border-top: 1px solid var(--line-2); font-weight: 800; color: var(--white); }
.cost-sheet { overflow-x: auto; }
.cost-cols { display: grid; grid-template-columns: minmax(180px, 1fr) 72px 96px 104px 64px; column-gap: 10px; align-items: baseline; min-width: 560px; padding: 11px 10px; }
.cost-head { font: 700 10.5px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cost-client { border-bottom: 1px solid var(--line); }
.cost-client summary { cursor: pointer; color: var(--white); font-weight: 700; background: rgba(255, 255, 255, .02); list-style: none; }
.cost-client summary::-webkit-details-marker { display: none; }
.cost-client summary::marker { content: ""; }
.cost-client summary .cost-name::before { content: "+ "; color: var(--v); }
.cost-client[open] summary .cost-name::before { content: "– "; }
.cost-client summary:focus-visible { outline: 1px solid var(--v); outline-offset: -1px; }
.cost-person { color: var(--text); border-top: 1px solid var(--line); }
.cost-person > span:first-child { padding-left: 22px; }
.cost-total { border-top: 1px solid var(--line-2); font-weight: 800; color: var(--white); }
.cost-client .sub { font-weight: 500; }
.grid td.short { color: var(--v); font-weight: 700; }
.grid td.met { color: #c9f5de; }
.grid .wkend { color: var(--dim); }
.detail td { font-size: 13.5px; }
.actions { margin: 20px 0 0; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--white); border-color: var(--v); }
.tabs a:hover { color: var(--white); }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 14px; }
.filters.foot { margin-top: 18px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 30px; background: transparent; color: var(--text); cursor: pointer; }
a.chip-btn { display: inline-flex; align-items: center; text-decoration: none; }
.chip-btn:hover { border-color: var(--white); }
.chip-btn.on { background: var(--v); border-color: var(--v); color: #fff; }
.card .presets { margin: 12px 0 16px; }
.filter-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.filter-row input, .filter-row select { padding: 9px 10px; font-size: 14px; }
.filter-row .btn { padding: 11px 14px; }

.settings-table td { padding: 8px 0; }
.inline-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-row input, .inline-row select { width: auto; padding: 8px 10px; font-size: 13.5px; flex: 1 1 140px; min-width: 0; }
.inline-row input.short { flex: 0 0 90px; }
.inline-row input.code { font-weight: 800; letter-spacing: .04em; }
.inline-row input.tz { flex: 1 1 150px; }
.inline-row .cell-person { flex: 2 1 260px; display: flex; flex-direction: column; gap: 4px; }
.inline-row .cell-person input { flex: none; width: 100%; }
.inline-row .check { flex-direction: row; align-items: center; }
.settings-table tr.off { opacity: .5; }
.settings-table tr.off:hover { opacity: 1; }
.settings-table tr.dirty { opacity: 1; box-shadow: inset 3px 0 0 var(--v); }
.settings-table tr.dirty td { background: var(--v-soft); }
.settings-table tr.dirty .inline-row { padding-left: 10px; }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 14px 0 4px; background: var(--card); border-top: 1px solid var(--line); margin-top: 6px; }
.save-bar .unsaved { visibility: hidden; color: var(--v); font-weight: 700; }
form.bulk.dirty .save-bar .unsaved { visibility: visible; }
.map td { vertical-align: middle; padding: 8px 10px; }
.map select { padding: 8px 10px; font-size: 13.5px; min-width: 150px; }
.map tr.needs td:first-child { box-shadow: inset 3px 0 0 var(--v); }
.map input.email-edit { padding: 8px 10px; font-size: 13.5px; min-width: 240px; }
.inline-row input.email-edit { font-size: 12.5px; padding: 6px 8px; }
.check-line { display: flex; flex-direction: row; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }
.check-line input { width: auto; }
.history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.history .num { color: var(--muted); margin-right: 8px; }
.history b { color: var(--white); font-weight: 600; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 10px; margin: 0 0 22px; }
.facts dt { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.facts dd { margin: 0; color: var(--white); }
.delete-form { margin-top: 18px; border-top: 1px dashed var(--line-2); padding-top: 16px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--bg); }
.login-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 54px 60px; border-right: 1px solid #1c1c1c; background: var(--bg-2); }
.login-art::before { content: "V"; position: absolute; right: -6%; bottom: -22%; pointer-events: none; font: 900 min(110vh, 62vw)/1 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(255, 74, 23, .3); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-2%, -3%); } }
.login-cities { position: relative; z-index: 1; font: 700 11px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--text); }
.login-hero { position: relative; z-index: 1; }
.login-hero h2 { font: 900 clamp(46px, 6vw, 92px)/.86 var(--display); text-transform: uppercase; color: var(--white); padding-top: .08em; }
.login-hero h2 em { font-style: normal; color: var(--v); }
.login-hero p { margin: 22px 0 0; font: 700 15px/1.5 var(--body); color: var(--white); max-width: 360px; }
.login-hero p span { color: var(--muted); font-weight: 400; display: block; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 60px clamp(30px, 7vw, 110px); max-width: 620px; }
.login-form h1 { font-size: 56px; margin: 44px 0 28px; }
.login-form .dev { margin-top: 34px; padding-top: 24px; border-top: 1px dashed var(--line-2); }
.brand.big { padding: 0; }
.brand.big .brand-logo { width: 168px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .clock, .split { grid-template-columns: 1fr; }
  .clock-face { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; gap: 10px; border-right: 0; border-bottom: 1px solid #1c1c1c; }
  .brand { padding: 0 8px 0 4px; }
  .brand-logo { width: 104px; }
  .brand-word, .nav-label { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav a { padding: 9px; font-size: 11px; }
  .nav a.on::before { display: none; }
  .rail-foot { margin: 0; width: 100%; }
  .feedback-btn { display: inline-flex; margin-bottom: 8px; padding: 8px 10px; font-size: 11px; }
  .me { flex-direction: row; align-items: center; gap: 12px; border: 0; padding: 0; }
  .main { padding: 24px 14px 60px; }
  .clock-in, .grid-form { grid-template-columns: 1fr; }
  .grid-form .f-desc, .grid-form .f-reason, .grid-form .f-note { grid-column: auto; }
  .hb, .hbars:not(.big) .hb { grid-template-columns: 110px 1fr 56px; }
  .hb-pct { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .detail, .grid { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.save-bar label.inline { flex-direction: row; align-items: center; gap: 8px; margin-right: auto; color: var(--muted); font-size: 13px; }
.save-bar label.inline input { width: auto; padding: 6px 8px; }
.table-scroll { overflow-x: auto; }
.pay-table { width: 100%; border-collapse: collapse; min-width: 1100px; }
.pay-table th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pay-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pay-table td input, .pay-table td select { width: 100%; min-width: 0; padding: 8px 10px; font-size: 13.5px; }
.pay-table td.cell-person { width: 210px; display: table-cell; }
.pay-table td.cell-person b { display: block; color: var(--white); }
.pay-table td.cell-person .sub { display: block; font-size: 12px; }
.pay-table td:nth-child(2) { width: 190px; }
.pay-table td:nth-child(3), .pay-table td:nth-child(4), .pay-table td:nth-child(9) { width: 80px; }
.pay-table td:nth-child(5), .pay-table td:nth-child(6) { width: 120px; }
.pay-table td:nth-child(7), .pay-table td:nth-child(8) { width: 95px; }
.pay-table td.per-hour { width: 110px; white-space: nowrap; }
.pay-table tr.off td { opacity: .55; }
.pay-table tr.missing { box-shadow: inset 3px 0 0 var(--v); }
.pay-table tr.missing td.cell-person b,
.pay-table tr.missing .need-rate { color: var(--v); }
.pay-table .need-rate { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }

.cells { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 760px; }
#people .cells { min-width: 980px; }
.cells th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cells td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cells td input:not([type=checkbox]), .cells td select { width: 100%; min-width: 0; padding: 8px 10px; font-size: 13.5px; }
.cells td input.code { font-weight: 800; letter-spacing: .04em; }
.cells td.stacked > * + * { margin-top: 4px; }
.cells td.stacked .sub { display: block; font-size: 12px; }
.cells td.stacked input.email-edit { font-size: 12.5px; padding: 6px 8px; }
.cells th.center, .cells td.center { text-align: center; }
.cells td.center .check { justify-content: center; }
.cells tr.off td { opacity: .55; }
.cells tr.dirty td:first-child { box-shadow: inset 3px 0 0 var(--v); }

/* Shared work: which clients the time covers. */
.f-meeting { grid-column: 1 / -1; }
.f-meeting[hidden] { display: none; }
.f-shared { grid-column: 1 / -1; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
.f-shared[hidden] { display: none; }
.f-shared legend { font: 700 11px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.f-shared legend .sub { letter-spacing: 0; text-transform: none; font-weight: 400; }
.f-shared .check { flex-direction: row; align-items: center; gap: 6px; letter-spacing: .04em; }
.f-shared .check input { width: auto; }
.f-shared .check.all { flex-basis: 100%; color: var(--white); }
.f-shared .live-hint { flex-basis: 100%; margin: 0; }

/* A running Shared timer: clients are added as the person moves between them. */
.shared-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shared-live select { width: auto; min-width: 210px; padding: 8px 32px 8px 10px; font-size: 13.5px; }
.chip-x { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--muted); font: 700 13px/1 var(--body); cursor: pointer; }
.chip-x:hover, .chip-x:focus-visible { color: var(--v); }

/* A timer stopped at 8 hours, or hand-added time HR declined. */
.fix-end { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; border-color: rgba(255, 74, 23, .55); margin-bottom: 18px; }
.fix-end p { flex-basis: 100%; margin: 0; font-size: 14px; }
.fix-end label { width: 160px; }
.fix-end .btn { width: auto; }
textarea { font: 15px/1.4 var(--body); color: var(--white); background: #111; border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; width: 100%; letter-spacing: 0; text-transform: none; resize: vertical; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-2 .full { grid-column: 1 / -1; }
.must { color: var(--v); margin-left: 3px; }
.optional { color: var(--dim); font-weight: 600; letter-spacing: .08em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.next-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.next-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.5; }
.next-steps li b { color: var(--white); }
.next-steps .n { width: 22px; height: 22px; border-radius: 50%; background: var(--card-3); color: var(--white); font: 800 11px/22px var(--body); text-align: center; }
.feedback-list { margin-top: 18px; }
.feedback-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feedback-rows li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.feedback-rows li:first-child { padding-top: 0; }
.feedback-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.feedback-rows .meta { font-size: 12.5px; color: var(--muted); }
.feedback-rows .meta b { color: var(--white); font-weight: 600; }
.feedback-rows p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
label.wide { margin-top: 12px; }
button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
