/* Harmony punch app — tokens taken from mockups/Theme.dc.html, which read
   them from the source palette rather than sampling a screenshot.

   The punch app opens LIGHT and not on the OS setting: it is used outdoors
   in daylight on cheap screens. A worker who picks dark keeps it. */
:root {
  --page:#FFFFFF; --paper:#FFFFFF; --subtle:#F4F6F8; --rowalt:#F9FAFB;
  --fg:#161C24; --muted:#454F5B; --faint:#637381;
  --line:#DFE3E8; --line2:#C4CDD5;
  --primary:#227D70; --primary-hover:#195045; --primary-ink:#FFFFFF; --primary-tint:#F1F7F6;
  --ok:#08692C; --ok-line:#63C278; --ok-ink:#FFFFFF; --ok-tint:#F2F8F4;
  --info:#1E5DCF;
  --warn:#9A5518; --warn-tint:#FDF8F3;
  --err:#A8381F; --err-line:#EA886F; --err-ink:#FFFFFF; --err-tint:#FCF4F2;
  --scrim:rgba(22,28,36,.42);
}
[data-theme="dark"] {
  --page:#161C24; --paper:#212B36; --subtle:#161C24; --rowalt:#1C242E;
  --fg:#F4F4F5; --muted:#C4CDD5; --faint:#919EAB;
  --line:#333D49; --line2:#454F5B;
  --primary:#5AB3A9; --primary-hover:#8ACCC4; --primary-ink:#161C24; --primary-tint:#1C3330;
  --ok:#5BBA7F; --ok-line:#265D3C; --ok-ink:#161C24; --ok-tint:#1E2C23;
  --info:#5A93FF;
  --warn:#F6B685; --warn-tint:#322A20;
  --err:#EB8F77; --err-line:#774439; --err-ink:#161C24; --err-tint:#32201C;
  --scrim:rgba(0,0,0,.58);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--subtle); color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* The punch button must not move under a thumb because the browser
     decided the tap was a double-tap zoom. */
  touch-action: manipulation;
}
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* One phone-width column, centred on anything larger. */
.app {
  max-width: 430px; margin: 0 auto; min-height: 100%;
  display: flex; flex-direction: column; padding: 0 20px;
  position: relative;
}

/* ...except the LIST screens on a wide one (9 Nov 2026).
 *
 * The punch screen stays 430px wherever it is opened: it is a clock and
 * two buttons, and a thumb reaches the same place on a laptop as on a
 * phone. The lists are different — leave requests and marked days are
 * read, often several at once, and on a 1440px screen they were a
 * column of cards down the left third with nothing beside them.
 *
 * Keyed on which SHEET is open rather than on a class the JS has to
 * remember to set, so a screen cannot be shown in the wrong shape by
 * forgetting a line. :has() is the one thing holding it up; a browser
 * without it simply keeps the phone column, which is the layout that
 * was there before and is not broken, merely narrow.
 */
@media (min-width: 900px) {
  .app:has(#view-leave:not([hidden])),
  .app:has(#view-attendance:not([hidden])) { max-width: 980px; }

  /* ONE ROW PER ENTRY, with the columns lined up down the whole list.
   *
   * A grid of cards was tried first and was wrong: a leave request is a
   * record, and several are read by comparing them — which dates, which
   * kind, waiting or approved. Cards put each entry's date in a
   * different place on the screen, so comparing four of them means
   * hunting four times. In rows every date is in one column and the eye
   * runs down it.
   *
   * The LIST owns the columns and each row borrows them with `subgrid`.
   * Giving every row its own grid was the second wrong answer: a row
   * with no reason, or a settled one with no buttons, sized its own
   * columns and stopped lining up with the rows above it — measured at
   * 38px adrift. Subgrid is what makes the alignment a property of the
   * list rather than a coincidence between rows.
   */
  #leave-requests {
    display: grid;
    grid-template-columns:
      minmax(170px, 1fr)   /* the dates */
      92px                 /* leave or week off */
      minmax(130px, 1fr)   /* waiting, or who approved it */
      minmax(0, 1.6fr)     /* the reason, which may be absent */
      auto;                /* what can still be done about it */
    gap: 8px 16px;
    align-items: start;
  }
  /* A heading belongs to the row, not to its first cell. */
  #leave-requests > .leavehead,
  #leave-requests > .empty { grid-column: 1 / -1; margin-top: 14px; }
  #leave-requests > .leavehead:first-child { margin-top: 0; }

  .day.request {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 0;
  }
  /* so the date and the kind are columns of the ROW rather than a
     nested pair inside the first cell */
  .day.request .when { display: contents; }
  /* Assigned EXPLICITLY, not left to flow: the reason is optional, and
     with auto-placement a request without one pulls its buttons into
     the reason's column. */
  .day.request .d { grid-column: 1; }
  .day.request .k { grid-column: 2; text-align: left; }
  .day.request .note:not(.reason) { grid-column: 3; margin: 0; }
  .day.request .note.reason { grid-column: 4; margin: 0; }
  .day.request .reqactions { grid-column: 5; margin: 0; justify-self: end; }
  .day.request .reqactions .small { flex: 0 0 auto; min-width: 104px; }

  /* The ask button keeps a hand's width. Stretched across 980px it
     reads as a banner rather than as something to press. */
  .askleave { max-width: 420px; }
  /* ...and the credits above it keep the same width, so the pair reads
     as one block rather than a banner over a button. */
  #comp-offs { max-width: 420px; }
}



/* ── header ───────────────────────────────────────────────────────── */
.top { display: flex; align-items: center; gap: 10px; padding: 18px 0 6px; flex: 0 0 auto; }
.brand { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; }
/* A SQUARE box, not a circle. The logo is square artwork that bleeds to
   its own edges, so a circular badge clips the corners — which is what
   forced production to shrink it to 66% and float it in white. Square at a
   small radius lets it fill the box at its intended size. */
.logo {
  width: 32px; height: 32px; border-radius: 7px; flex: 0 0 auto;
  object-fit: cover; background: var(--paper);
  /* The artwork carries its own pale border, so the box needs only a hair
     of definition to sit on a white page without floating. */
  box-shadow: 0 0 0 1px var(--line);
}
.logo-lg { width: 72px; height: 72px; border-radius: 14px; }
.wordmark { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; }
.icon-btn {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line2);
  background: transparent; color: var(--muted); cursor: pointer;
  position: relative;
}
/* 32px of circle, 44px of target.
   The circle stays 32 because the header has about 19px of slack at
   375px and the name beside it already ellipsises — widening the box
   would eat into "Rahul Verma / Lotus Enclave" to buy space a finger
   cannot see. So the TOUCH AREA grows instead, 6px past the border on
   every side, which is invisible and costs no layout.
   The neighbours are 10px away, so the bleed stops 4px short of the
   account button and never steals a tap meant for it. */
.icon-btn::after {
  content: '';
  position: absolute;
  /* An explicit, centred 44x44 box. Written with four negative insets
     first, which LOOKED right and measured wrong: real clicks landed on
     the button above and to the left of the circle but missed below and
     to the right, every time. Two sides out of four is worse than not
     trying, because it reads as a flaky button rather than a small one.
     A definite width and height leaves nothing to resolve. */
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.who { flex: 1 1 0; display: flex; justify-content: flex-end; }
.who button { display: flex; align-items: center; gap: 9px; background: transparent; border: none; cursor: pointer; padding: 0; }
.who .lines { text-align: right; line-height: 1.25; }
.who .nm { display: block; font-size: 13px; font-weight: 500; color: var(--fg); }
.who .sub { display: block; font-size: 11px; color: var(--muted); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  border: 1px solid var(--primary); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 600; color: var(--primary-ink);
}

/* ── language ─────────────────────────────────────────────────────── */
.lang {
  display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 3px; margin-top: 6px; flex: 0 0 auto;
}
.lang button {
  flex: 1; height: 34px; border: none; border-radius: 6px; background: transparent;
  color: var(--fg); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }

/* ── §2's comp off banner ─────────────────────────────────────────── */
/* Directly under the language bar and outside .face, which centres
   itself in what is left: the card holds this one place whether somebody
   is punched in or out, and looks the same in both. */
.compoff {
  position: relative; overflow: hidden; display: block; width: 100%;
  flex: 0 0 auto; margin: 8px 0 0; padding: 11px 13px; min-height: 44px;
  border-radius: 13px;
  background: var(--primary-tint); border: 1.5px solid var(--ok-line);
  color: var(--fg); font-family: inherit; text-align: left; cursor: pointer;
}
.compoff:active { transform: translateY(1px); }
/* 230px, the mockup's own measure: it keeps the line clear of the
   pieces flying in on the right, and it is where "you've earned a comp
   off" breaks after "a" rather than orphaning "off" on a line. */
/* balance only moves a break that is already happening, so the English
   two-liner stops leaving "off" alone on the second line and the Hindi,
   which fits on one, is untouched. A browser without it keeps the plain
   break, which is the mockup's. */
.co-head { display: block; max-width: 230px; font-size: 14.5px; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.co-cheer { color: var(--ok); }
.co-why { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
/* The deadline, in the colour the rest of the app uses for a thing that
   runs out. */
.co-by { color: var(--warn); font-weight: 600; }
.co-go { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.co-go svg { flex: 0 0 auto; }

/* Party popper, thrown in from the RIGHT and continuous — the mockup's
   animation, piece for piece. Balloons were tried there and rejected.
   The staggered starts and unequal durations are what keep something
   always in flight without the pattern repeating visibly.

   The travel is on `right` rather than a transform: the card is as wide
   as the phone, so the fixed -340px translate the mockup could afford
   stops short of the far edge on a 430px screen and is clipped
   mid-fade on a 360px one — and a percentage inside translate()
   measures the PIECE, not the card. */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti .cf { position: absolute; right: -14px; animation: copop 6.5s linear infinite; }
.confetti .c1 { top: 6px;  width: 5px;   height: 9px;   border-radius: 1.6px; background: var(--ok-line); }
.confetti .c2 { top: 3px;  width: 4.5px; height: 8px;   border-radius: 1.6px; background: var(--primary); animation-duration: 8.2s; animation-delay: .9s; }
.confetti .c3 { top: 13px; width: 5px;   height: 9px;   border-radius: 1.6px; background: var(--warn);    animation-duration: 7.1s; animation-delay: 2.1s; }
.confetti .c4 { top: 25px; width: 4.5px; height: 8px;   border-radius: 1.6px; background: var(--ok-line); animation-duration: 9.4s; animation-delay: 1.4s; }
.confetti .c5 { top: 18px; width: 5px;   height: 5px;   border-radius: 50%;   background: var(--primary); animation-duration: 6.8s; animation-delay: 3.2s; }
.confetti .c6 { top: 33px; width: 4.4px; height: 4.4px; border-radius: 50%;   background: var(--warn);    animation-duration: 8.8s; animation-delay: 4.1s; }
.confetti .c7 { top: 9px;  width: 5px;   height: 5px;   border-radius: 50%;   background: var(--ok-line); animation-duration: 7.6s; animation-delay: 5.0s; }
@keyframes copop {
  0%   { right: -14px; transform: translateY(0) rotate(0deg); opacity: 0; }
  7%   { opacity: 1; }
  78%  { opacity: 1; }
  /* Gone before the left edge, so a piece fades out rather than being
     cut off by the overflow. */
  100% { right: calc(100% - 26px); transform: translateY(30px) rotate(300deg); opacity: 0; }
}
/* A phone set to reduce motion gets the pieces PARKED — the same
   arrangement, standing still in the corner. Not removed: the card is
   announcing a day off, and the confetti is how it says so. */
@media (prefers-reduced-motion: reduce) {
  .confetti .cf { animation: none; opacity: .85; }
  .confetti .c1 { right: 12px; top: 6px; }
  .confetti .c2 { right: 34px; top: 3px; }
  .confetti .c3 { right: 56px; top: 12px; }
  .confetti .c4 { right: 78px; top: 4px; }
  .confetti .c5 { right: 24px; top: 22px; }
  .confetti .c6 { right: 48px; top: 28px; }
  .confetti .c7 { right: 70px; top: 20px; }
}

/* ── the punch face ───────────────────────────────────────────────── */
.face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; min-height: 0; padding: 12px 0;
}
.clock { margin: 0; font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 50px; font-weight: 500; letter-spacing: 1px; line-height: 1; }
.date { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.chip {
  margin: 20px 0 0; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line2);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.chip .label { font-size: 12px; font-weight: 600; letter-spacing: 0.8px; color: var(--muted); }
.chip.in { background: var(--ok-tint); border-color: var(--ok-line); }
.chip.in .dot { background: var(--ok); }
.chip.in .label { color: var(--ok); }

.shiftline { margin: 11px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

.buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; width: 100%; }

/* Punch in is GREEN and punch out is RED at all times, in both themes.
   Only one is ever live, and the dead one is GREY — not its own colour
   as an outline, which is what this did until 7 Nov 2026. Two coloured
   buttons side by side made a worker read the pair and choose; one
   coloured button and one grey leaves nothing to choose between, which
   is the whole point when somebody is punching in at a gate in the rain.
   The cost, accepted deliberately: the button they are looking for is
   green in the morning and red in the evening rather than always green.

   The default here is the DEAD look, so a button is grey until the
   server has said it is live. Offering a punch before the state has
   loaded is how you get a tap that cannot be honoured. */
.punch {
  height: 56px; border-radius: 12px; font-size: 16px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  border: 1.5px solid var(--line2); background: var(--subtle); color: var(--faint);
}
.punch.in[data-live="1"]  { border: none; background: var(--ok);  color: var(--ok-ink); }
.punch.out[data-live="1"] { border: none; background: var(--err); color: var(--err-ink); }
/* Still tappable on purpose, and still says why (§3.1): a button that
   does nothing at all when tapped reads as broken and gets tapped four
   more times. not-allowed is the cursor, not a dead element. */
.punch[aria-disabled="true"] { cursor: not-allowed; }
.punch[data-busy="1"] { opacity: .72; cursor: progress; }

.hint { margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }

/* A refusal names a time (§3.1), so it has room to say it. */
.notice {
  margin: 16px 0 0; width: 100%; padding: 11px 14px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.45;
  background: var(--warn-tint); border: 1px solid var(--warn); color: var(--warn);
}
.notice.bad { background: var(--err-tint); border-color: var(--err-line); color: var(--err); }
.notice.good { background: var(--ok-tint); border-color: var(--ok-line); color: var(--ok); }

/* ── footer counters ──────────────────────────────────────────────── */
.counters { padding: 14px 0 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex: 0 0 auto; }
.counters div.cell { text-align: center; flex: 1; }
.counters .rule { width: 1px; background: var(--line); }
.counters p.k { margin: 0; font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }
.counters p.v { margin: 4px 0 0; font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 17px; }

/* ── account menu ─────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 4; border: none; padding: 0; background: var(--scrim); cursor: pointer; }
.menu {
  position: absolute; top: 62px; right: 20px; z-index: 5; width: 262px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.26); overflow: hidden;
}
.menu .head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.menu .head .nm { display: block; font-size: 14.5px; font-weight: 600; }
.menu .head .em { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.menu .head .tag { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--primary-tint); color: var(--primary); font-size: 11.5px; font-weight: 600; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px;
  font-size: 14.5px; color: var(--fg); text-decoration: none;
  border: none; border-bottom: 1px solid var(--line); background: transparent;
  font-family: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.menu button.signout { color: var(--err); border-bottom: none; }
.menu svg { flex-shrink: 0; color: var(--muted); }

/* ── sign in ──────────────────────────────────────────────────────── */
.signin { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.signin h1 { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 26px; letter-spacing: -0.4px; }
.signin p { margin: 0; font-size: 14px; color: var(--muted); max-width: 30ch; line-height: 1.5; }
/* Written as `.signin p.support` because `.signin p` above is MORE
   specific than a bare `.support` and its 30ch wins otherwise — which
   wrapped "Head Office" onto a line of its own. */
.signin p.support { font-size: 13px; max-width: 42ch; }
.support a:hover { text-decoration: underline; }
.dev { width: 100%; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.dev input { height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--paper); color: var(--fg); font-family: inherit; font-size: 15px; }
.dev button { height: 44px; border: none; border-radius: 8px; background: var(--primary); color: var(--primary-ink); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* ── camera ───────────────────────────────────────────────────────── */
.camera { position: fixed; inset: 0; z-index: 9; background: #000; display: flex; flex-direction: column; }
.camera video { flex: 1; min-height: 0; width: 100%; object-fit: cover; transform: scaleX(-1); }
.camera .bar { flex: 0 0 auto; padding: 16px 20px 28px; display: flex; gap: 12px; background: #000; }
.camera .bar button { flex: 1; height: 52px; border-radius: 12px; border: none; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.camera .bar .shoot { background: var(--ok); color: #fff; }
.camera .bar .cancel { background: transparent; border: 1.5px solid #fff; color: #fff; }
.camera .note { position: absolute; top: 44px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.camera .camtitle { position: absolute; top: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 18px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* The captured frame, shown in place of the live view while they decide.
   NOT mirrored: the preview is flipped so moving left moves left, but the
   shot is what everybody else will see. */
.camera #cam-shot { flex: 1; min-height: 0; width: 100%; object-fit: cover; }

.camera .linklike { align-self: center; margin: 0 0 22px; padding: 6px 10px; background: none; border: none; color: rgba(255,255,255,.75); font-family: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* Shown while the fix is taken. It covers the screen because the native
   permission prompt sits on top of it, and whatever is behind that prompt
   must not look tappable. */
.locating { position: fixed; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.72); color: #fff; font-size: 16px; text-align: center; }

/* ── my attendance ────────────────────────────────────────────────── */
.sheet { flex: 1; padding: 10px 0 24px; }
.sheet h2 { margin: 6px 0 12px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 19px; }
/* padding, not font-size: the control was 17px tall — a target a thumb
   misses — while the words stay the size they were. This is the punch
   app, which is only ever used on a phone. */
.back { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; color: var(--primary); font-family: inherit; font-size: 14px; font-weight: 500; padding: 12px 8px 12px 0; margin-left: -2px; min-height: 44px; cursor: pointer; }
.day { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.day .when { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.day .d { font-size: 14px; font-weight: 600; }
.day .h { font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 14px; color: var(--muted); }
.day .times { margin: 6px 0 0; font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 13px; color: var(--muted); }
.day .flags { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flag { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid; }
.flag.late { color: var(--warn); border-color: var(--warn); background: var(--warn-tint); }
.flag.early { color: var(--err); border-color: var(--err-line); background: var(--err-tint); }
.flag.auto { color: var(--err); border-color: var(--err-line); background: var(--err-tint); }
.flag.open { color: var(--ok); border-color: var(--ok-line); background: var(--ok-tint); }
.empty { padding: 28px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ── §3.12: asking to be away ─────────────────────────────────────── */
.leavehead { margin: 22px 0 10px; font-size: 13px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.leavehead:first-child { margin-top: 6px; }
/* The one thing somebody opens this screen to DO, so it is the one
   filled button on it (9 Nov 2026). It was a dashed outline — the
   convention for "add another row to a form you are already filling in"
   — which read as a placeholder sitting above the real content, and the
   requests below it carried the only solid colour on the page. */
.askleave { display: inline-flex; align-items: center; gap: 8px; width: 100%;
  justify-content: center; min-height: 52px; border-radius: 12px;
  border: none; background: var(--primary); color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.askleave:active { transform: translateY(1px); box-shadow: none; }
.askleave svg, .askleave .plus { opacity: .9; }
/* §2's credits, above the button that spends them. Same tint and same
   green edge as the banner that sent them here, so it is plainly the
   same subject. */
#comp-offs {
  margin: 0 0 16px; padding: 15px 16px 13px; border-radius: 14px;
  background: var(--primary-tint); border: 1.5px solid var(--ok-line);
}
.cocount { margin: 0; display: flex; align-items: baseline; gap: 9px; }
.cocount .n { font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 30px; font-weight: 500; line-height: 1; color: var(--ok); }
.cocount .w { font-size: 15px; font-weight: 600; }
/* ONE ROW PER CREDIT, each with its own expiry. Not a sum: two credits
   granted on different days run out on different days, and a single
   date over both is how the second day gets lost. */
.colist { margin-top: 13px; display: flex; flex-direction: column; gap: 9px; }
.corow { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.corow svg { flex: 0 0 auto; color: var(--faint); }
/* The soonest-expiring credit is the one a request spends (§2) and the
   one the banner names, so it is the one marked. */
.corow.soonest svg { color: var(--warn); }
.corow .lines { flex: 1; font-size: 13.5px; line-height: 1.35; }
.corow .coby { display: block; }
.corow .cofor { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.conote { margin: 13px 0 0; font-size: 12.5px; color: var(--faint); line-height: 1.45; }
.day.request .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.day .note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.day .note.reason { color: var(--fg); }
/* The two actions on a waiting request. Full-height targets, because
   this is read at arm's length on a phone at a gate. */
.reqactions { display: flex; gap: 8px; margin-top: 10px; }
.reqactions .small { flex: 1; min-height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.reqactions .small.danger { color: var(--err); border-color: var(--err-line); }

#askleave-form label { display: block; margin-bottom: 14px; font-size: 13px;
  font-weight: 600; color: var(--muted); }
#askleave-form input, #askleave-form select { display: block; width: 100%;
  margin-top: 6px; min-height: 46px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--fg);
  font-family: inherit; font-size: 16px; font-weight: 400; }
#askleave-form .hint { display: block; margin-top: 5px; font-size: 12px;
  font-weight: 400; color: var(--muted); }
/* The kind hint changes with the dropdown, and the six sentences are
   not the same length — a one-line hint followed by a two-line one
   moved the date field up and down under a thumb already reaching for
   it. Two lines are reserved whatever it says, so nothing below the
   dropdown moves while somebody looks through the choices. */
#ask-kind-hint { min-height: 34px; line-height: 1.4; }
#askleave-form .primary { width: 100%; min-height: 50px; margin-top: 6px;
  border-radius: 12px; border: none; background: var(--primary); color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
#askleave-form .primary:disabled { opacity: .6; }
