:root {
  --bg: #0d0e11; --panel: #15171c; --panel-2: #1b1e25; --line: #262a33;
  --text: #ecebe6; --muted: #8d919b; --accent: #f0b54a; --accent-ink: #1a1305;
  --ok: #5fcf9a; --bad: #f0786c; --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
h1 { font-size: 28px; line-height: 1.2; margin: 0; letter-spacing: -0.02em; font-weight: 650; }
h2 { font-size: 15px; margin: 0 0 14px; font-weight: 600; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.muted { color: var(--muted); } .small-text { font-size: 13px; }
.nowrap { white-space: nowrap; } .break { word-break: break-word; }

.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 22px 14px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { white-space: nowrap; font-size: 14px; display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em;
  padding: 0 10px 22px; color: var(--text); }
.mark { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--accent);
  box-shadow: inset -7px -7px 0 rgba(0,0,0,.22); }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; }
nav a:hover { background: var(--panel-2); color: var(--text); }
nav a.on { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
  padding: 18px 12px 6px; opacity: .7; }
.who { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-name small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

main { padding: 34px 40px 60px; max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  flex-wrap: wrap; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.eyebrow a { color: var(--muted); } .eyebrow a:hover { color: var(--accent); }
.page-head p.muted { margin: 6px 0 0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px; overflow-x: auto; }
.card.narrow { max-width: 520px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.cols .card { margin-bottom: 18px; }
.pill, .tag { font-size: 12px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 99px; white-space: nowrap; font-weight: 500; }
.tag { padding: 1px 8px; vertical-align: middle; letter-spacing: 0; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.stat span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.stat strong { font-size: 34px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat em { font-style: normal; color: var(--muted); margin-left: 6px; }
.stat.accent strong { color: var(--accent); }
.stat.inline { padding: 10px 18px; text-align: right; }
.stat.inline strong { font-size: 26px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  font-weight: 500; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 550; }
.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; white-space: nowrap; }
th.num { padding-right: 0; }
td.num + td.num, th.num + th.num { padding-left: 18px; }
tr.off td { opacity: .5; }
.empty { color: var(--muted); margin: 4px 0; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
label small { font-weight: 400; }
input, select, textarea { height: 40px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: #5d616b; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible, .link-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[type=checkbox] { width: 16px; height: 16px; flex: none; accent-color: var(--accent); padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13px; color: var(--muted); font-weight: 500; padding: 0; margin-bottom: 8px; }
.check { flex-direction: row; align-items: center; gap: 9px; color: var(--text); font-size: 14px; font-weight: 400; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top-gap { margin-top: 16px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.grid-form .btn { justify-self: start; }
.grid-form.time { grid-template-columns: 170px 130px minmax(170px, 1fr) auto; margin-bottom: 20px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); }
form { margin: 0; }

.btn { font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px; padding: 9px 16px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); display: inline-block;
  white-space: nowrap; text-align: center; }
.btn:hover { border-color: #3a3f4b; color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.wide { width: 100%; padding: 11px 16px; }
.link-btn { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--bad); }

details.adder { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
details.adder summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; list-style: none; width: fit-content; }
details.adder summary::-webkit-details-marker { display: none; }
details.adder summary::before { content: "+ "; }
details.adder[open] summary::before { content: "– "; }
details.adder form { margin-top: 14px; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.tabs a { padding: 6px 14px; border-radius: 99px; color: var(--muted); font-weight: 500; font-size: 14px; }
.tabs a.on { background: var(--panel-2); color: var(--text); }

.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 18px; font-weight: 500;
  background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--ok); }
.flash.error { border-left-color: var(--bad); }

body.auth { display: grid; place-items: center; min-height: 100vh; padding: 20px;
  background: radial-gradient(900px 500px at 50% -10%, #1d1a12 0%, var(--bg) 60%); }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 30px; }
.auth-card .brand { padding: 0 0 26px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card p.muted { margin: 0 0 22px; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center;
    padding: 12px 14px; gap: 6px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 6px 0 4px; }
  nav { flex-direction: row; flex-wrap: wrap; }
  nav a.on { box-shadow: none; }
  .nav-label { display: none; }
  .who { margin: 0 0 0 auto; padding: 0; border: 0; }
  .who-name small { display: none; }
  main { padding: 22px 16px 50px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat strong { font-size: 28px; }
  .grid-form.time { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 24px; }
}

a.stat { display: block; color: var(--text); }
a.stat:hover { border-color: var(--accent); color: var(--text); }
.year-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.year-head .tabs { margin: 0; }
.year-total { font-size: 15px; color: var(--muted); }
.year-total strong { font-size: 30px; color: var(--accent); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-right: 6px; }
td.bar { width: 38%; vertical-align: middle; }
progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px;
  background: var(--panel-2); overflow: hidden; display: block; }
progress::-webkit-progress-bar { background: var(--panel-2); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
@media (max-width: 820px) { td.bar { display: none; } }

/* start / stop timer */
.timer-form { margin: 0; display: inline-block; }
.btn.stop { background: var(--bad); border-color: var(--bad); color: #1b0f0d; }
.btn.stop:hover { filter: brightness(1.08); color: #1b0f0d; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.live-clock { font-variant-numeric: tabular-nums; }
.timer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 18px; border-radius: 8px; background: var(--panel);
  border: 1px solid var(--line); border-left: 3px solid var(--bad); font-weight: 500; }
.timer-bar.paused { border-left-color: var(--accent); }
.timer-bar form { margin: 0; }
.timer-bar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad);
  margin-right: 8px; vertical-align: middle; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .timer-bar .dot { animation: none; } }
textarea { height: auto; resize: vertical; }

/* wide tables scroll inside their card on narrow screens */
.card { overflow-x: auto; }

/* ---------- public pages: landing + client booking ---------- */
.public { min-height: 100vh; }
.public .brand { font-size: 17px; font-weight: 650; padding: 0; }
.public .mark { width: 24px; height: 24px; }
.display { font-size: clamp(32px, 5vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 750; margin: 0 0 14px; }
.display.small { font-size: 32px; }
.lede { font-size: 17px; color: #b4b7be; max-width: 720px; margin: 0 0 28px; }
.kicker, .step { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.accent { color: var(--accent); }
.accent-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.btn.big { padding: 13px 24px; font-size: 16px; border-radius: 9px; }
.btn.wide.big { width: 100%; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* landing: two panels */
.landing { display: flex; flex-direction: column; }
.landing-top { padding: 22px 56px; border-bottom: 1px solid var(--line); background: #0b0c0f; }
.split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.split-pane { display: flex; align-items: center; padding: 56px; }
.split-pane.clients { background: var(--panel); border-right: 1px solid var(--line); }
.split-pane.employees { justify-content: center; }
.split-inner { max-width: 460px; }
.split-inner.narrow { width: 100%; max-width: 380px; }
.split-inner .lede { font-size: 16px; }
.pane-title { font-size: 26px; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 18px; }
.split-inner .stack { margin-bottom: 18px; }
.split-inner input { height: 44px; background: var(--panel); }
@media (max-width: 860px) {
  .landing-top { padding: 18px 20px; }
  .split { grid-template-columns: 1fr; }
  .split-pane { padding: 40px 20px; }
  .split-pane.clients { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* booking page */
.public-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 24px 60px; }
.public-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 44px; flex-wrap: wrap; }
.public-wrap .card { border-radius: 14px; padding: 26px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.cal-title { font-size: 20px; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.cal-nav { display: flex; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel-2); font-size: 22px; line-height: 1; color: var(--text); }
.icon-btn:hover { border-color: #3a3f4b; color: var(--text); }
.icon-btn.off { opacity: .3; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dow { text-align: center; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.day { position: relative; aspect-ratio: 6 / 5; display: grid; }
.day > span:first-of-type { display: grid; place-items: center; border-radius: 9px; font-weight: 650; font-variant-numeric: tabular-nums; }
.day.open { cursor: pointer; }
.day.open input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day.open > span { background: var(--panel-2); border: 1px solid var(--line); }
.day.open:hover > span { border-color: #444a57; }
.day.open input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day.open input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.day.booked > span:first-of-type { border: 1px dashed #3a3f4b; color: var(--muted); }
.day.booked s { text-decoration-thickness: 2px; }
.day.weekend > span, .day.past > span { color: #6b6f78; font-weight: 500; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: #b4b7be; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.key.open { background: var(--panel-2); border: 1px solid #3a3f4b; }
.key.sel { background: var(--accent); }
.key.booked { border: 1px dashed #4a4f5b; }
.request { display: flex; flex-direction: column; gap: 16px; }
.req-title { font-size: 20px; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.req-sub { margin: -14px 0 4px; }
.summary { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.summary strong { display: block; }
.sum-label { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #b4b7be; }
.sum-right { text-align: right; font-size: 13px; }
.sum-right strong { font-size: 16px; }
.request input, .request textarea { background: var(--bg); height: 44px; }
.request textarea { height: auto; min-height: 104px; }
.request .small-text { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.steps h2 { font-size: 18px; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 8px; }
.steps .muted { margin: 0; }
.thanks { margin-top: 20px; }
@media (max-width: 900px) {
  .book-grid, .steps { grid-template-columns: 1fr; }
  .public-wrap { padding: 20px 16px 48px; }
  .public-top { margin-bottom: 28px; }
  .cal-grid { gap: 5px; }
  .public-wrap .card { padding: 18px; }
}

/* admin bookings */
.count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--accent);
  color: var(--accent-ink); font-size: 12px; font-weight: 700; text-align: center; }
.booking h2 { margin-bottom: 2px; }
.days-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.details { white-space: pre-wrap; margin: 0 0 14px; color: #c9cbd0; }
.booking .row form { margin: 0; }

/* client accounts */
.public-nav { display: flex; flex-direction: row; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; }
.public-nav form { margin: 0; }
.public-nav a { padding: 6px 4px; color: var(--text); font-weight: 550; }
.public-nav a:hover { background: none; color: var(--accent); }
.public-nav a.accent-link { padding: 0; color: var(--accent); }
.center-card { margin: 0 auto; }
.center-card .pane-title { margin-bottom: 8px; }
.center-card .stack { margin: 18px 0; }
.center-card h2 { margin-top: 22px; }
.client-links { margin: 18px 0 0; font-size: 14px; color: #b4b7be; }
.booking-as { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.portal-head .display { margin-bottom: 6px; }
.portal-head p { margin: 0; }
.public-wrap .card + .card { margin-top: 20px; }
.client-booking { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--line); }
.client-booking:last-of-type { border-bottom: 0; }
.client-booking:first-of-type { padding-top: 0; }
.cb-main { min-width: 0; flex: 1; }
.cb-main .row { margin-bottom: 8px; }
.client-booking form { margin: 0; }
.status { font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.status.pending { color: var(--accent); border-color: #5a4720; }
.status.confirmed { color: var(--ok); border-color: #22503b; }
.status.declined, .status.cancelled { color: var(--bad); border-color: #5a2a26; }
.confirm summary { list-style: none; }
.confirm summary::-webkit-details-marker { display: none; }
.confirm[open] summary { display: none; }
.confirm-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.pill.warn { color: var(--accent); border-color: #5a4720; }
.card.off { opacity: .6; }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* client accounts on the Clients page */
.sub-head { font-size: 13px; font-weight: 600; color: var(--muted); margin: 20px 0 4px; display: flex; align-items: center; gap: 8px; }
.acct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.acct-main { flex: 1; min-width: 220px; }
.acct.off .acct-main { opacity: .55; }
.acct-edit { flex-basis: 100%; margin-top: 0; border-top: 0; padding-top: 0; }
.acct-edit form + form { margin-top: 12px; }
.card.attention { border-color: #5a4720; }
.booking-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; }
.booking-meta .muted { margin-right: 4px; }
[hidden] { display: none !important; }
.review-form { gap: 8px; }
.review-form input { width: 220px; height: 34px; padding: 6px 10px; }
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; margin: 0; }
.row-actions a.link-btn { margin-right: 12px; font-weight: 400; }
.row-actions a.link-btn:hover { color: var(--accent); }

/* completed (locked) projects */
.head-right { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.head-right form { margin: 0; }
.head-right .confirm-box { margin-top: 8px; justify-content: flex-end; }
.tag.done { color: var(--ok); border-color: #22503b; }
.lock-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 18px; border-radius: 8px; background: var(--panel);
  border: 1px solid #22503b; border-left: 3px solid var(--ok); }
.lock-bar form { margin: 0; }
.status.completed { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); border-color: #22503b; }
.status .check { flex: none; }
.status.active { color: var(--accent); border-color: #5a4720; }
.public-wrap .steps .card { margin-top: 0; }
/* calendar panel matches the height of the "Your request" panel */
.book-grid { align-items: stretch; }
.book-grid .cal { display: flex; flex-direction: column; }
.book-grid .cal .legend { margin-top: auto; padding-top: 22px; }
@media (max-width: 900px) { .book-grid .cal .legend { margin-top: 0; } }
.public-wrap .book-grid .card { margin-top: 0; }

/* progress ring: white track, yellow arc for percent complete */
.ring { display: inline-block; vertical-align: middle; flex: none; }
.ring-track { stroke: #f4f3ef; }
.ring-fill { stroke: var(--accent); transition: stroke-dasharray .2s ease; }
.progress-row { display: flex; align-items: center; gap: 16px; }
.progress-main { flex: 1; min-width: 0; }
.progress-main h2 { margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px; }
.progress-pct { color: var(--accent); font-variant-numeric: tabular-nums; }
.progress-form { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.progress-form input[type=range] { flex: 1; height: auto; padding: 0; border: 0; background: none; accent-color: var(--accent); }
.progress-main .small-text { margin: 0; }
@media (prefers-reduced-motion: reduce) { .ring-fill { transition: none; } }
/* project header: Complete button is the same size as the Total hours panel */
.head-right { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: stretch; }
.head-right > form, .head-right .confirm { display: flex; min-width: 0; }
.head-right .confirm { flex: 1; flex-direction: column; justify-content: center; }
.head-right .confirm > summary.btn { flex: 1; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-size: 16px; padding: 10px 18px; }
.head-right .confirm-box { margin-top: 0; flex-direction: column; align-items: stretch; text-align: center; gap: 8px;
  font-size: 13px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); height: 100%; justify-content: center; }
.head-right .confirm[open] > summary.btn { display: none; }
/* keep the main column at screen width; wide tables scroll inside their cards */
.shell > main { min-width: 0; }

/* Spot Transmission panel */
.tx-form { display: flex; flex-direction: column; gap: 12px; }
.tx-row { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; min-height: 40px; }
.tx-row .check { min-width: 120px; }
.tx-isci { flex-direction: row; align-items: center; gap: 10px; flex: 1; min-width: 200px; max-width: 360px; }
.tx-isci input { text-transform: uppercase; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tx-form input:disabled { opacity: .6; cursor: default; }
.tx-form .row { margin-top: 4px; }
.tx-isci input::placeholder { text-transform: none; letter-spacing: 0; }

/* admin Overview: company statistics */
.company-stats { margin-bottom: 18px; }
.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.company-grid .stat { background: var(--panel-2); }
.company-grid .stat em { display: block; margin: 2px 0 0; font-size: 13px; }
a.stat:hover { border-color: #3a3f4b; color: inherit; }
@media (max-width: 820px) { .company-grid { grid-template-columns: 1fr; } }
.company-stats .sub-head { margin-top: 22px; }
.by-client th.bar { width: 38%; }
@media (max-width: 820px) { .by-client th.bar { display: none; } }
.by-client td.bar { padding-left: 18px; }
/* company tiles: hours + projects on top, the three transmission types below */
.company-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.company-grid > .stat:nth-child(-n+2) { grid-column: span 3; }
.company-grid > .stat:nth-child(n+3) { grid-column: span 2; }
@media (max-width: 820px) { .company-grid { grid-template-columns: 1fr; } .company-grid > .stat { grid-column: auto !important; } }

/* booking calendar: editor initials on days they're free */
.day.open > .eds { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; justify-content: center; gap: 3px; pointer-events: none; }
.ed { display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 4px;
  border: 1px solid #4a4f5b; background: var(--bg); color: #c9cbd0; font-style: normal; font-size: 9px;
  font-weight: 700; line-height: 1; letter-spacing: .02em; }
.day.open > span:first-of-type { padding-bottom: 12px; }
.ed.chosen { border-color: var(--accent); color: var(--accent); }
.ed.dim { opacity: .35; }
.day.unavailable { cursor: not-allowed; }
.day.unavailable > span:first-of-type { opacity: .35; }
.day.unavailable input { cursor: not-allowed; }
.legend .ed { margin-right: 2px; }
@media (max-width: 900px) {
  .ed { min-width: 12px; height: 12px; font-size: 8px; padding: 0 2px; border-radius: 3px; }
  .day.open > .eds { bottom: 3px; gap: 2px; }
  .day.open > span:first-of-type { padding-bottom: 9px; }
}
/* admin: pick the editor when confirming */
.confirm-with { gap: 8px; }
.inline-label { flex-direction: row; align-items: center; gap: 8px; }
.inline-label select { height: 32px; padding: 4px 8px; width: auto; }
@media (max-width: 900px) { .cal-grid .day { aspect-ratio: auto; height: 48px; } }
.day.open > .eds, .day.open input:checked ~ .eds { background: none; border: 0; border-radius: 0; }

/* editor icons: filled color squares, no border (one color per editor) */
.ed, .day.open input:checked ~ .eds .ed { border: 0; color: #121317; }
.ed-c0 { background: #5ec2b7; }   /* teal */
.ed-c1 { background: #a99bff; }   /* violet */
.ed-c2 { background: #ff8f80; }   /* coral */
.ed-c3 { background: #6fb4ff; }   /* blue */
.ed-c4 { background: #86d695; }   /* green */
.ed-c5 { background: #f39ad6; }   /* pink */
.ed.chosen { box-shadow: 0 0 0 1.5px var(--text); color: #121317; }
.day.open input:checked ~ .eds .ed { box-shadow: 0 0 0 1px rgba(26, 19, 5, .35); }
.legend .ed { margin-right: 6px; }

/* "Editor available" key at the top of the calendar */
.ed-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: -6px 0 18px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 13px; color: #c9cbd0; }
.ed-legend-title { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.ed-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.ed-legend .ed { min-width: 16px; height: 16px; font-size: 10px; }

/* ---------- staff calendar ---------- */
.cal-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -6px 0 16px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 13px; color: #c9cbd0; }
.key-sep { width: 1px; height: 16px; background: var(--line); }
.scal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.scal-day { min-height: 104px; border: 1px solid var(--line); border-radius: 9px; padding: 6px; display: flex; flex-direction: column;
  gap: 4px; background: var(--panel-2); min-width: 0; }
.scal-day.weekend { background: transparent; }
.scal-day.out { opacity: .4; }
.scal-day.today { border-color: var(--accent); }
.scal-num { font-size: 12px; font-weight: 650; color: #c9cbd0; }
.scal-day.today .scal-num { color: var(--accent); }
.ev { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; line-height: 1.2; padding: 3px 5px;
  border-radius: 6px; border: 1px solid transparent; color: var(--text); }
.ev .ev-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .ed { flex: none; }
.ev-booking.confirmed { background: #262a33; }
.ev-booking.pending { border: 1px dashed #4a4f5b; }
.ev-off.approved { background: repeating-linear-gradient(135deg, #2b2f38 0 6px, #22252d 6px 12px); color: #c9cbd0; }
.ev-off.pending { border: 1px dashed #5a4720; color: #c9cbd0; }
.ev.mine { box-shadow: inset 2px 0 0 var(--accent); }
.ev.sample { width: 22px; height: 14px; padding: 0; display: inline-block; }
.ed-cx { background: #4a4f5b; color: var(--text); }
.more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.scal-compact { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.to-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.to-main { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.to-main .ed { margin-top: 3px; }
.to-actions form { margin: 0; }
.clash { color: var(--accent); margin-top: 2px; }
.ag-day { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ag-day:first-of-type { border-top: 0; padding-top: 0; }
.ag-date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ag-list { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ag-item { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.ag-item .ev { flex: none; padding: 2px 4px; }
@media (max-width: 900px) {
  .scal-grid { gap: 3px; }
  .scal-day { min-height: 58px; padding: 4px; }
  .scal-day > .ev, .scal-day > .more { display: none; }
  .scal-compact { display: flex; flex-wrap: wrap; gap: 2px; }
  .scal-compact .ev { padding: 1px; border-radius: 4px; }
  .two { grid-template-columns: 1fr; }
  .ag-day { grid-template-columns: 1fr; gap: 4px; }
}

/* staff calendar: click a day to request / block time off */
.scal-day { position: relative; }
.scal-day.pickable { cursor: pointer; }
.scal-day.pickable:hover { border-color: #444a57; }
.scal-add { position: absolute; top: 4px; right: 5px; width: 18px; height: 18px; display: grid; place-items: center;
  border-radius: 5px; font-size: 14px; line-height: 1; color: var(--muted); opacity: 0; }
.scal-day.pickable:hover .scal-add, .scal-add:focus-visible { opacity: 1; color: var(--accent); background: var(--panel); }
.to-dialog { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  background: var(--panel); color: var(--text); }
.to-dialog::backdrop { background: rgba(5, 6, 8, .65); }
.to-dialog[open]:not(:modal) { position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 50;
  box-shadow: 0 0 0 100vmax rgba(5, 6, 8, .65); }
.to-dialog-head { display: flex; justify-content: space-between; align-items: center; }
.to-dialog-head h2 { margin: 0; font-size: 18px; }
.to-dialog .stack { gap: 14px; }
.to-dialog .small-text { margin: -6px 0 0; }
.icon-btn.small { width: 32px; height: 32px; font-size: 18px; }
@media (max-width: 900px) { .scal-add { display: none; } }

/* My hours: paid time off */
.pto-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pto-grid .stat { background: var(--panel-2); padding: 14px 16px; }
.pto-grid .stat strong { font-size: 28px; }
.pto-grid .stat em { display: block; margin: 0; font-size: 12px; }
.pto-grid .stat em.over { color: var(--bad); }
.pto-meter { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-bottom: 10px; }
.pip { display: inline-block; height: 10px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line); }
.pip.taken { background: var(--accent); border-color: var(--accent); }
.pip.scheduled { background: #8a6a2a; border-color: #8a6a2a; }
.pip.pending { background: transparent; border: 1px dashed var(--accent); }
.pip.over { box-shadow: 0 0 0 1px var(--bad); }
.pto-key { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-bottom: 14px; }
.pto-key span { display: inline-flex; align-items: center; gap: 6px; }
.pto-key .pip { width: 14px; }
.pto-key .pto-note { flex-basis: 100%; }
@media (max-width: 820px) { .pto-grid { grid-template-columns: 1fr 1fr; } }

/* staff names link to their Staff page (admins) */
a.staff-link { color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-color: rgba(236, 235, 230, .25);
  text-underline-offset: 3px; }
a.staff-link:hover { color: var(--accent); text-decoration-color: currentColor; }

/* time off blocked for the whole team */
.ed-call { background: var(--accent); color: #121317; }
.cal-key .ed-call { min-width: 16px; height: 16px; font-size: 10px; }

/* "In progress" pill with its progress ring inside, like "Completed ✓" */
.status.with-ring { display: inline-flex; align-items: center; gap: 5px; }

/* hover window on the client's progress ring */
.ring-wrap { position: relative; display: inline-flex; cursor: default; border-radius: 99px; outline: none; }
.ring-wrap:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.ring-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); z-index: 20;
  width: 150px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #1d1f25;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); color: var(--text); font-weight: 400; white-space: normal; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease, transform .12s ease, visibility .12s; }
.ring-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: #1d1f25; }
.ring-wrap:hover .ring-tip, .ring-wrap:focus .ring-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ring-tip-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.ring-tip-head strong { font-size: 16px; color: var(--accent); }
.ring-tip-bar { display: block; width: 100%; height: 6px; margin: 7px 0 6px; }
.ring-tip-bar .bar-track { fill: #2e313a; }
.ring-tip-bar .bar-fill { fill: var(--accent); }
.ring-tip-note { display: block; font-size: 11.5px; color: #c9cbd0; }
@media (prefers-reduced-motion: reduce) { .ring-tip { transition: none; } }

/* three progress dots inside the client's "In progress" pill */
.pdots { display: inline-flex; align-items: center; gap: 2px; padding: 2px 0; }
.pdots i { width: 4px; height: 4px; border-radius: 50%; background: #5d606a; }
.pdots i.on { background: var(--accent); opacity: 1; }

/* "In progress •••" matches the natural size of "Completed ✓" (about 8.45em × 24px at 12px text) */
.status.with-ring { box-sizing: border-box; width: 8.45em; padding: 2px 6px; gap: 3px; justify-content: center; }

/* client Overview: four headline tiles, then stock footage and the three spot types */
.client-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.client-grid .stat { background: var(--panel-2); grid-column: span 3; min-width: 0; }
.client-grid .stat em { display: block; margin: 2px 0 0; font-size: 13px; }
.client-grid .stat.tx strong { font-size: 28px; }
.facts strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .client-grid .stat, .client-grid .stat.tx { grid-column: span 6; } }
@media (max-width: 560px) { .client-grid .stat, .client-grid .stat.tx { grid-column: span 12; } }

/* hover window on the "Completed ✓" pill: full bar in the same green */
.done-tip .ring-tip-head strong { color: var(--ok); }
.done-tip .ring-tip-bar .bar-fill { fill: var(--ok); }
.done-tip { width: 172px; }
/* let the progress windows show above the first row instead of being cut off by the card */
@media (min-width: 821px) { .card.client-projects { overflow: visible; } }
/* which master(s) a completed project was delivered as */
.ring-tip-masters { display: flex; flex-direction: column; gap: 5px; margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.tx-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tx-tag { padding: 1px 6px; border-radius: 99px; background: rgba(95, 207, 154, .12); color: var(--ok); font-weight: 600; font-size: 11px; }
/* ISCI code in the Completed hover box */
.ring-tip-isci { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.ring-tip-isci strong { color: var(--text); font-weight: 600; letter-spacing: .04em; overflow-wrap: anywhere; text-align: right; }
.ring-tip-isci em { font-style: normal; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

/* landing: both sides use the same content width, centered in their half */
.split-pane.clients { justify-content: center; }
.split-pane .split-inner { width: 100%; max-width: 380px; }

/* "Point35 | Contact Us" in the top bar of the public pages */
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-sep { color: #4a4f5b; font-size: 17px; line-height: 1; }
.brand-link { color: #c9cbd0; font-size: 14px; font-weight: 600; }
.brand-link:hover { color: var(--accent); }
/* Contact Us: one row per company email */
.contact-list { display: grid; gap: 10px; margin-top: 18px; }
.contact-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text); }
.contact-item:hover { border-color: #3a3f4b; color: var(--text); }
.contact-item strong { display: block; font-size: 15px; }
.contact-item .contact-email { display: block; margin-top: 2px; color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.contact-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.contact-item .arrow { flex: none; color: var(--muted); font-size: 18px; }
.contact-item:hover .arrow { color: var(--accent); }

/* landing: blur the other side
   - hovering "See open days", "Log in" or "Create one" blurs the employee side
   - typing in the employee login blurs the client side */
/* only the content blurs, so the dividing line and panel edges stay sharp */
.split-pane > .split-inner { transition: filter .25s ease, opacity .25s ease; }
.split:has(.clients [data-focus-client]:hover) .employees > .split-inner,
.split:has(.clients [data-focus-client]:focus-visible) .employees > .split-inner,
.split.typing .clients > .split-inner,
.split:has(.employees input:focus) .clients > .split-inner { filter: blur(5px); opacity: .55; }
/* pointing at a client link wins over the typing / selected-box blur */
.split:has(.clients [data-focus-client]:hover) .clients > .split-inner,
.split:has(.clients [data-focus-client]:focus-visible) .clients > .split-inner { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .split-pane > .split-inner { transition: none; } }

/* Overview: upcoming client bookings sits between the hour tiles and the rest */
.upcoming-card { margin-bottom: 18px; }

/* Calendar: PTO panel sits beside the time-off list, so its tiles go 2 x 2 */
.cols > .card.pto .pto-grid { grid-template-columns: 1fr 1fr; }
.pto { margin-bottom: 18px; }

/* Hours by Project / Client: period dropdown in the card header */
.period-pick select { height: 32px; padding: 4px 30px 4px 10px; width: auto; font-size: 13px; }
.period-range { margin: 2px 0 0; }


/* Overview > Recent entries: the entry's own note, kept to two lines */
td.entry-note { width: 45%; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* Contact Us pop-up: the page behind blurs and the panel slides into view */
.contact-dialog { width: min(460px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  background: var(--panel); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.contact-dialog::backdrop { background: rgba(5, 6, 8, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.contact-dialog[open] { animation: contact-in .22s ease-out; }
.contact-dialog[open]::backdrop { animation: contact-fade .22s ease-out; }
@keyframes contact-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes contact-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .contact-dialog[open], .contact-dialog[open]::backdrop { animation: none; } }
.contact-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.contact-dialog-head .pane-title { margin-bottom: 6px; }

/* Project files link: staff paste it on the project page, clients open it from Bookings */
.files-form { flex-wrap: nowrap; align-items: center; }
.files-input { flex: 1; min-width: 0; }
.files-input input { width: 100%; }
.files-link { white-space: nowrap; }
th.files-col, td.files-col { padding-left: 28px; }
/* two client links on the project page, and "SptTx" keeps its own capitals in the client table */
.link-row { display: flex; align-items: flex-end; gap: 10px; }
.link-row .btn { flex: none; margin-bottom: 1px; }
th.keep-case { text-transform: none; }

/* client Projects page: folders by sub-client, projects inside like files */
.folder-tree { padding: 8px 10px; }
.folder + .folder { border-top: 1px solid var(--line); }
.folder > summary { display: flex; align-items: center; gap: 10px; padding: 14px 12px; cursor: pointer; list-style: none; border-radius: 10px; }
.folder > summary::-webkit-details-marker { display: none; }
.folder > summary:hover { background: var(--panel-2); }
.folder > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.folder-icon { color: var(--accent); flex: none; }
.folder-name { font-weight: 650; font-size: 15px; }
.folder-meta { font-size: 13px; margin-left: 4px; }
.chev { margin-left: auto; color: var(--muted); font-size: 18px; transition: transform .15s ease; }
.folder[open] > summary .chev { transform: rotate(90deg); }
.folder-files { margin: 0 0 12px; }
.folder-files td:first-child, .folder-files th:first-child { padding-left: 40px; }
.file-name { display: inline-flex; align-items: center; gap: 9px; }
.file-icon { color: var(--muted); flex: none; }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }
/* same column widths in every folder so they line up */
.folder-files { table-layout: fixed; width: 100%; }
.folder-files col.c-name { width: 30%; }
.folder-files col.c-status { width: 17%; }
.folder-files col.c-date { width: 17%; }
.folder-files col.c-hours { width: 8%; }
.folder-files col.c-link { width: 14%; }
.folder-files .file-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-files .file-name { max-width: 100%; }
@media (max-width: 820px) { .folder-files { table-layout: auto; } }
/* Review files / SptTx: just a centered arrow */
th.files-col, td.files-col { text-align: center; padding-left: 12px; padding-right: 12px; }
a.files-link { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  color: var(--accent); font-size: 17px; font-weight: 700; text-decoration: none; }
a.files-link:hover { background: var(--panel-2); color: var(--accent); }
a.files-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Overview: the running timer sits right of "Hello, …" */
.hello-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hello-row h1 { margin: 0; }
.hello-timer { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--line);
  border-left: 3px solid var(--bad); border-radius: 12px; background: var(--panel); font-size: 13px; }
.hello-timer.paused { border-left-color: var(--accent); }
.hello-timer form { margin: 0; }
.hello-timer .ht-label { display: inline-flex; align-items: center; gap: 8px; color: #c9cbd0; max-width: 220px; }
.hello-timer .ht-label a { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hello-timer .ht-clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.hello-timer .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; animation: pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hello-timer .dot { animation: none; } }
/* the timer stretches across the space between the greeting and "Log Hours" */
.page-head > .hello-wrap { flex: 1; min-width: 0; }
.hello-row { flex-wrap: nowrap; }
.hello-row h1 { flex: none; }
.hello-timer { flex: 1; min-width: 0; }
.hello-timer .ht-label { margin-right: auto; max-width: none; min-width: 0; }
/* narrow windows: the timer gets its own full-width line under the greeting */
@media (max-width: 1100px) { .hello-row { flex-wrap: wrap; row-gap: 10px; } .hello-timer { flex-basis: 100%; } }
/* client › sub-client next to the project in the Overview timer */
.hello-timer .ht-client { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hello-timer .ht-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hello-timer .ht-names a { font-size: 13.5px; }
.hello-timer .ht-client { font-size: 11.5px; }

/* "Log your time" pop-up (shares the Contact Us pop-up's blurred backdrop) */
.timer-dialog .eyebrow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 330px; }
.td-time { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 14px; }
.td-time strong { font-size: 30px; font-variant-numeric: tabular-nums; color: var(--accent); }
.timer-dialog .stack { margin-top: 4px; }
/* after a timer is logged, Overview keeps the bar for a few hours with "Start again" */
.hello-timer.idle { border-left-color: #4a4f5b; }
.hello-timer .ht-ago { font-size: 12px; white-space: nowrap; }

/* Account > Danger zone (admins) */
.danger-zone { border-color: rgba(240, 120, 108, .45); }
.danger-zone h2 { color: var(--bad); }
.danger-item { border-top: 1px solid var(--line); padding: 14px 0 4px; margin-top: 14px; }
.danger-item > summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.danger-item > summary::-webkit-details-marker { display: none; }
.danger-item > summary small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; }
.danger-item > summary .btn { flex: none; }
.danger-item[open] > summary .btn { visibility: hidden; }
.danger-item form { margin-top: 12px; }
