/* Work family app (Work Hours Log). Colours come from the look's theme file (themes/<look>.css); the clock character from themes/<look>/character.js. */
:root { --glass-top: 0px; --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.07);
  --backdrop: rgba(20, 18, 30, .4); }
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) and (orientation: portrait) { :root { --glass-top: 34px; } }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--app); }
body { margin: 0; background: var(--app); color: var(--ink); font: 17px/1.4 var(--font); font-variant-numeric: tabular-nums;
  transition: background-color .5s ease; min-height: 100svh; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }
html.booting #app { visibility: hidden; }

.app { max-width: 480px; margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 6px + var(--glass-top)) 16px calc(env(safe-area-inset-bottom) + 104px); }
main { flex: 1; display: flex; flex-direction: column; }
.view { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.view-title { font-size: 28px; margin: 6px 2px 2px; }
.view > p { margin: 0 2px; }

/* Top line: today's date and the sync pill */
.top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; gap: 10px; }
.date { font-weight: 700; font-size: 17px; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
/* The dot sits inside the label's own padding, so it can never cover the words. */
.pill .dot { display: none; }
#sync-text { position: relative; padding-left: 15px; }
#sync-text::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--ink-2); }
.pill.sample #sync-text { padding-left: 0; }
.pill.sample #sync-text::before { display: none; }
.pill.ok #sync-text::before { background: var(--ok); }
.pill.attn { color: var(--over-ink); }
.pill.attn #sync-text::before { background: var(--over); }

/* ---------- Clock tab: the look's own colour with a dotted screen; the character shows the mood ---------- */
body.on-clock { background-image: radial-gradient(var(--dots) 1.4px, transparent 1.6px); background-size: 18px 18px; }

.stage { position: relative; height: 354px; flex: none; margin-top: 4px; }
.hint { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-2); z-index: 3; pointer-events: none; }
.hint i { font-style: normal; display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.cardwrap { position: absolute; left: 50%; top: 22px; width: 118px; margin-left: -59px; z-index: 1; }
.tcard { position: relative; width: 118px; height: 150px; background: var(--paper); color: var(--paper-ink); border: 2.5px solid var(--outline);
  border-radius: 4px; padding: 7px; font-family: var(--mono); font-size: 9.5px; line-height: 1.3; text-align: left;
  box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.tcard .nm { font-weight: 700; letter-spacing: .06em; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard table { width: 100%; border-collapse: collapse; }
.tcard th { font-size: 8px; letter-spacing: .08em; text-align: left; border-bottom: 1px solid currentColor; padding: 2px 1px; font-weight: 700; }
.tcard td { border-bottom: 1px dashed rgba(0,0,0,.2); height: 17px; padding: 1px; font-weight: 700; white-space: nowrap; }
.tcard td.o { color: var(--stamp-out); }
.tcard td.i { color: var(--stamp-in); }
.cardwrap.idle .tcard { animation: wiggle 2.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: translateY(20px) rotate(-2deg); } 50% { transform: translateY(12px) rotate(2deg); } }
.cardwrap.in .tcard { transform: translateY(4px); }
.cardwrap.punching .tcard { animation: none; transform: translateY(118px); }
.cardwrap.moving .tcard { animation: none; }
.stampmark { position: absolute; right: -16px; top: -12px; z-index: 2; background: #fff; border: 3px solid currentColor; border-radius: 8px;
  padding: 2px 8px; font-family: var(--font); font-weight: 900; font-size: 16px; letter-spacing: .08em; box-shadow: 0 3px 0 rgba(0,0,0,.25);
  transform: rotate(-14deg); opacity: .9; animation: slam .35s cubic-bezier(.3,1.8,.5,1); }
.stampmark.in { color: var(--stamp-in); }
.stampmark.out { color: var(--stamp-out); }
@keyframes slam { from { transform: rotate(-14deg) scale(2.6); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: .9; } }

.machine { position: absolute; left: 50%; top: 126px; width: 240px; margin-left: -120px; z-index: 2; pointer-events: none; }
.machine svg { width: 240px; height: 220px; display: block; overflow: visible; filter: drop-shadow(0 6px 0 rgba(0,0,0,.18)); }
.machine.idlebob { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-1deg); } }
.machine.hit { animation: squash .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes squash { 0% { transform: scale(1,1); } 20% { transform: scale(1.08,.88) translateY(10px); } 45% { transform: scale(.95,1.07) translateY(-8px); } 70% { transform: scale(1.02,.98); } 100% { transform: scale(1,1); } }

.bub { position: absolute; left: -2px; top: 80px; z-index: 3; max-width: 96px; background: #fff; color: #26332F; border: 3px solid var(--outline);
  border-radius: 14px; padding: 6px 9px; font-size: 13px; font-weight: 800; line-height: 1.2; box-shadow: 0 3px 0 var(--outline);
  animation: pop .4s cubic-bezier(.3,1.8,.5,1); }
.bub::after { content: ""; position: absolute; right: -9px; bottom: 10px; width: 12px; height: 12px; background: inherit;
  border-right: 3px solid var(--outline); border-bottom: 3px solid var(--outline); transform: rotate(-45deg); }
.bub.done { background: #FFF7D1; }
.bub:empty { display: none; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

#fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.boom { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); animation: boom .9s ease-out forwards; }
.boom svg { width: 170px; height: 96px; display: block; }
@keyframes boom { 0% { transform: translateX(-50%) scale(.2) rotate(-12deg); opacity: 0; } 25% { transform: translateX(-50%) scale(1.15) rotate(-6deg); opacity: 1; }
  60% { transform: translateX(-50%) scale(1) rotate(-6deg); opacity: 1; } 100% { transform: translateX(-50%) scale(1.05) rotate(-6deg); opacity: 0; } }
.conf { position: absolute; inset: -40px -16px; overflow: hidden; }
.conf i { position: absolute; top: 212px; width: 9px; height: 14px; border-radius: 2px; animation: conf 1.3s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes conf { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx),var(--dy)) rotate(var(--r)); opacity: 0; } }

.info { text-align: center; display: flex; flex-direction: column; gap: 2px; align-items: center; min-height: 24px; }
.info .el { font-size: 34px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.info .sub { font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.job-pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border-radius: 18px;
  background: var(--card); border: 2px solid var(--outline); text-align: left; color: var(--ink); }
.job-pick > i { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.job-pick > i.none, .pick-row i.none { box-shadow: inset 0 0 0 2px var(--hair); }
.job-pick span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.job-pick small { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.job-pick b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-pick em { flex: none; font-style: normal; font-size: 14px; font-weight: 700; color: var(--primary-ink); }
.job-pick em::after { content: " ›"; }
.job-pick.add { border-style: dashed; justify-content: center; text-align: center; }
.job-pick.add span { align-items: center; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick button { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 14px; background: var(--card);
  border: 2px solid transparent; font-size: 15px; font-weight: 600; text-align: left; min-width: 0; color: var(--ink); }
.quick button i { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.quick button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick button[aria-pressed="true"] { border-color: var(--outline); font-weight: 800; }
.quick .more { justify-content: center; color: var(--ink); font-weight: 700; background: transparent; border: 2px dashed var(--outline); }
.pick-list { display: grid; grid-template-columns: 1fr 48px; align-items: center; column-gap: 4px; }
.star { width: 48px; height: 48px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink-2); }
.star[aria-pressed="true"] { color: #E0A21B; }
.pick-row { display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: center; min-height: 54px; padding: 0 12px; border-radius: 14px; text-align: left; font-size: 16.5px; font-weight: 600; }
.pick-row { margin-top: 2px; }
.pick-row i { width: 16px; height: 16px; border-radius: 50%; }
.pick-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row em { font-style: normal; font-weight: 400; color: var(--ink-2); font-size: 14.5px; }
.pick-row[aria-pressed="true"] { background: var(--app); box-shadow: inset 0 0 0 2px var(--outline); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-h { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-2); padding-bottom: 2px; }
.cal-day { min-height: 50px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: color-mix(in srgb, var(--primary) calc(var(--t, 0) * 30%), var(--card)); }
.cal-day b { font-size: 14px; font-weight: 700; }
.cal-day small { font-size: 11px; font-weight: 700; color: var(--ink); min-height: 13px; line-height: 13px; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--ink-2); }
.cal-day.future b { color: var(--ink-2); font-weight: 500; }
.cal-day[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 2px var(--outline); }
.cal-day[aria-pressed="true"] small { color: var(--on-primary); }
#rec-bars:has(.cal) { padding: 12px 8px; }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.list-head h3 { margin: 0; }
.list-head .link { min-height: 40px; padding: 0 4px; }
.bigpunch { width: 100%; min-height: 66px; border: 3px solid var(--outline); border-radius: 22px; background: var(--primary); color: var(--on-primary);
  font-size: 21px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 6px 0 var(--outline); display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .08s, box-shadow .08s; }
.bigpunch:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--outline); }
.bigpunch .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--on-primary); color: var(--primary); display: grid; place-items: center; font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.row2 button { min-height: 58px; border: 3px solid var(--outline); border-radius: 18px; font-weight: 800; font-size: 17px; box-shadow: 0 4px 0 var(--outline);
  transition: transform .08s, box-shadow .08s; }
.row2 button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--outline); }
.row2 .b1 { background: var(--primary); color: var(--on-primary); letter-spacing: .06em; }
.row2 .b2 { background: var(--card); color: var(--paper-ink); }
.link { align-self: center; min-height: 44px; padding: 0 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- cards, Records, Jobs, Settings ---------- */
.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; }
.card h3 { font-size: 15px; margin-bottom: 8px; }
.card p { margin: 0 0 10px; line-height: 1.45; }
.card.list { padding: 4px 16px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-radius: 14px; padding: 4px; margin-top: 6px; box-shadow: var(--shadow); }
.seg button { min-height: 40px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.period-nav { display: flex; align-items: center; justify-content: space-between; }
.period-nav b { font-size: 17px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--ink-2); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.hero { background: var(--primary); color: var(--on-primary); border: 3px solid var(--outline); box-shadow: 0 5px 0 var(--outline); }
.hero small { font-size: 14px; font-weight: 600; }
.hero > b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.hero-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; margin-top: 6px; }
.bars { display: flex; gap: 3px; align-items: stretch; height: 120px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 30px; background: var(--chart); border-radius: 5px 5px 2px 2px; min-height: 3px; }
.bar span { font-size: 11px; color: var(--ink-2); height: 14px; line-height: 14px; }
.bars.month { gap: 1.5px; }
.jobline { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; min-height: 40px; font-size: 15.5px; }
.jobline i { width: 12px; height: 12px; border-radius: 50%; }
.jobline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobline em { font-style: normal; color: var(--ink-2); min-width: 5ch; text-align: right; }
.shift { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; width: 100%; text-align: left; padding: 10px 0; min-height: 56px; }
.shift + .shift { border-top: 1px solid var(--hair); }
.shift .d { font-weight: 700; font-size: 15.5px; }
.shift .t { grid-row: 2; color: var(--ink-2); font-size: 14px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.shift b { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 16px; }
.jobrow { display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: center; width: 100%; min-height: 56px; text-align: left; font-size: 16.5px; font-weight: 600; }
.jobrow + .jobrow { border-top: 1px solid var(--hair); }
.jobrow i { width: 16px; height: 16px; border-radius: 50%; }
.jobrow em { font-style: normal; color: var(--ink-2); font-weight: 400; font-size: 14.5px; }
.row { display: block; width: 100%; text-align: left; min-height: 52px; font-weight: 600; color: var(--primary-ink); }
.row + .row { border-top: 1px solid var(--hair); }
#set-version { margin: 4px 2px; }

.primary-btn { display: block; width: 100%; text-align: center; min-height: 52px; padding: 14px; border-radius: 16px; background: var(--primary); color: var(--on-primary);
  font-weight: 800; margin-top: 12px; text-decoration: none; }
.primary-btn:disabled, .row-btn:disabled { opacity: .55; cursor: default; }
.row-btn { display: block; width: 100%; text-align: center; min-height: 52px; padding: 14px; border-radius: 16px; background: var(--card); color: var(--primary-ink);
  font-weight: 700; margin-top: 8px; text-decoration: none; box-shadow: var(--shadow); }
.danger-btn { display: block; width: 100%; text-align: center; min-height: 52px; padding: 14px; border-radius: 16px; background: var(--danger); color: #fff; font-weight: 800; margin-top: 14px; }
.danger-link { display: block; margin: 12px auto 0; min-height: 44px; padding: 0 12px; color: var(--danger); font-weight: 700; }
.view > .row-btn { margin-top: 0; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 12px); width: calc(100% - 24px); max-width: 456px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 999px; z-index: 10;
  background: rgba(255,255,255,.94); box-shadow: 0 8px 26px rgba(0,0,0,.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.side-brand { display: none; }
.tabbar button { min-height: 48px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #5E5A6E; }
.tabbar button[aria-current="page"] { background: var(--primary); color: var(--on-primary); }

/* ---------- bottom sheets ---------- */
.backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 20; }
.sheet { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: calc(100% - env(safe-area-inset-top) - 24px - var(--glass-top)); z-index: 30;
  background: var(--card); color: var(--ink); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  transform: translate(-50%, 105%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s;
  padding-bottom: calc(env(safe-area-inset-bottom) + 12px); }
.sheet.open { transform: translate(-50%, 0); visibility: visible; transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.sheet-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 10px 10px 0; }
.sheet-head h2 { grid-column: 2; font-size: 18px; text-align: center; }
.sheet-head .icon-btn { font-size: 18px; }
.sheet-body { padding: 8px 20px 8px; }
.sheet-body h2 { font-size: 20px; margin: 10px 0 6px; }
.sheet-body h3 { font-size: 19px; margin: 6px 0 6px; }
.sheet-body p { margin: 0 0 8px; line-height: 1.45; }
.field { display: block; margin-top: 12px; }
.field > span { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field small { font-weight: 400; }
.field input, .field select, .field textarea, #note-text { width: 100%; min-height: 50px; border: 1.5px solid var(--hair); border-radius: 12px; background: var(--app);
  color: var(--ink); font: inherit; padding: 10px 12px; -webkit-appearance: none; appearance: none; }
.field textarea, #note-text { resize: vertical; min-height: 84px; }
.field input:disabled { opacity: .6; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two .field { min-width: 0; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ink); }
.form-err { color: var(--over-ink); font-weight: 600; margin: 12px 0 0 !important; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translate(-50%, 20px); z-index: 55;
  max-width: calc(100% - 32px); background: #26232F; color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- first-run screens ---------- */
.onboard { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--app); }
.ob { max-width: 480px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + max(28px, var(--glass-top) + 6px)) 24px calc(env(safe-area-inset-bottom) + 24px); }
.ob-logo { width: 96px; height: 96px; border-radius: 24px; margin: 7vh auto 22px; display: block; box-shadow: var(--shadow); }
.ob h1 { font-size: 27px; line-height: 1.2; margin-bottom: 10px; }
.ob p { color: var(--ink-2); line-height: 1.5; margin: 0 0 12px; font-size: 16.5px; }
.ob-sub { font-size: 19px; margin: 18px 0 2px; }
.ob-steps { padding-left: 22px; margin: 8px 0 14px; line-height: 1.5; }
.ob-steps li { padding: 6px 0; }
.ob-actions { margin-top: auto; padding-top: 20px; }
.ob-error { background: var(--card); border-left: 4px solid var(--over); border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 15px; line-height: 1.45; }
.trust { list-style: none; padding: 0; margin: 8px 0 12px; }
.trust li { padding: 11px 0 11px 30px; position: relative; line-height: 1.45; border-top: 1px solid var(--hair); font-size: 16px; }
.trust li:first-child { border-top: 0; }
.trust li::before { content: "✓"; position: absolute; left: 2px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft);
  color: var(--primary-ink); font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.code-box { background: var(--card); border-radius: 16px; padding: 14px 16px 12px; box-shadow: var(--shadow); margin: 6px 0 4px; }
.code-box label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.code-box label span { font-weight: 400; color: var(--ink-2); font-size: 14px; }
.code-in { display: flex; align-items: center; background: var(--app); border-radius: 12px; padding: 0 14px; border: 1.5px solid var(--hair); min-height: 54px; }
.code-in:focus-within { border-color: var(--primary-ink); }
.code-in.ok { border-color: var(--ok); }
.code-in input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 12px 0; color: var(--ink);
  font: 600 19px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ob .code-msg { font-size: 14px; color: var(--ink-2); margin: 8px 2px 0; }
.ob .code-msg.ok { color: var(--primary-ink); font-weight: 700; }

@media (max-width: 360px) {
  .bub { max-width: 80px; font-size: 12px; padding: 5px 7px; }
}
/* Shorter phones: the character gets smaller so CLOCK IN / CLOCK OUT stays above the tab bar without scrolling */
@media (max-height: 740px) {
  .stage { transform: scale(.84); transform-origin: top center; margin-bottom: -57px; }
}
@media (max-height: 620px) {
  .stage { transform: scale(.55); margin-bottom: -159px; }
  .info .el { font-size: 28px; }
}
/* ---------- computer: tabs on the left, the clock beside its buttons, pop-ups in the middle ---------- */
@media (min-width: 960px) {
  .app { max-width: none; margin: 0 0 0 232px; padding: 18px 40px 48px; }
  .top, main { width: 100%; max-width: 880px; margin-left: auto; margin-right: auto; }
  .tabbar { left: 0; top: 0; bottom: 0; transform: none; width: 232px; max-width: none; display: flex; flex-direction: column; gap: 4px;
    padding: 24px 14px; border-radius: 0; box-shadow: none; border-right: 1px solid var(--hair); background: var(--card); }
  .side-brand { display: block; font-size: 19px; font-weight: 800; color: var(--ink); padding: 8px 14px 22px; }
  .tabbar button { text-align: left; padding: 0 16px; border-radius: 14px; font-size: 16px; }
  .tabbar button:hover:not([aria-current]) { background: var(--app); }
  #view-clock:not([hidden]) { display: grid; grid-template-columns: 360px minmax(0, 380px); grid-template-rows: auto auto;
    justify-content: center; align-content: center; column-gap: 56px; row-gap: 14px; padding-bottom: 8vh; }
  #view-clock .stage { grid-row: 1 / 3; transform: scale(1.2); transform-origin: top center; margin: 10px 0 70px; }
  #view-clock .info { align-self: end; }
  #view-clock .actions { margin-top: 0; align-self: start; }
  #view-records, #view-jobs, #view-settings { max-width: 640px; width: 100%; margin: 0 auto; }
  .sheet { top: 50%; bottom: auto; border-radius: 24px; max-height: calc(100% - 48px); transform: translate(-50%, -46%); opacity: 0;
    transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s; padding-bottom: 16px; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; transition: transform .25s ease, opacity .2s ease; }
  .toast { bottom: 28px; left: calc(50% + 116px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
