/* Taifa ESS mobile app. Taifa colours: navy #12304F, teal #005FA8 (white text 5:1), green #237A3E,
   yellow #F2C230 (navy text only). All text meets 4.5:1. Touch targets 44px or more. */
:root {
	/* HCMOS tokens (0.14.0): the ESS names stay, the values come from hc_tokens.css so the phone app
	   and the desk are one product. Contrast: ink 17.2:1, muted 7.6:1, teal 5.0:1 with white. */
	--navy: var(--hc-brand-ink, #0B1C2E);
	--navy-2: #071321;
	--teal: var(--hc-brand-action, #007C86);
	--teal-soft: var(--hc-brand-tint, #E6F7F8);
	--green: var(--hc-status-ok, #067647);
	--green-text: var(--hc-status-ok, #067647);
	--green-soft: var(--hc-status-ok-bg, #ECFDF3);
	--yellow: #F2C230;
	--yellow-soft: var(--hc-status-warning-bg, #FEF6E7);
	--yellow-text: var(--hc-status-warning, #A15C07);
	--red: var(--hc-status-critical, #B42318);
	--red-soft: var(--hc-status-critical-bg, #FEF3F2);
	--ground: var(--hc-surface-canvas, #F4F6F8);
	--card: var(--hc-surface-panel, #FFFFFF);
	--line: #E8ECF0;
	--muted: #46576A;
	--ink: var(--hc-text-1, #0B1C2E);
	--radius: var(--hc-radius-sheet, 14px);
	--shadow: var(--hc-shadow-2);
	--shadow-s: var(--hc-shadow-1);
	--fs: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ground); color: var(--ink); }
body { font-family: var(--hc-font-ui, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); font-feature-settings: "lnum" 1; font-size: calc(15px * var(--fs)); -webkit-font-smoothing: antialiased; }
body.big { --fs: 1.18; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
#ess-app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); position: relative; }
.ess-boot { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.ess-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--teal); animation: spin 0.9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.stripe { height: 3px; flex-shrink: 0; background: var(--hc-stripe); } /* the flag hairline, once per screen */
.stripe i { display: none; }

/* header */
.hdr { background: var(--navy); color: #fff; border-radius: 0 0 30px 30px; padding: 10px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.hdr.tall { padding-bottom: 86px; }
.hdr.mid { padding-bottom: 64px; }
.hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.brand { display: flex; align-items: baseline; gap: 6px; }
.brand b { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.brand span { font-size: 12px; font-weight: 700; color: var(--hc-brand-accent, #F7D100); }
.hdr h1 { margin: 0; font-size: 21px; font-weight: 700; }
.hdr .sub { font-size: 13px; color: #D6D1C9; }
.hdr .date { font-size: 14px; color: #B8B2A8; }
.hdr .hello { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.back { width: 44px; height: 44px; margin-left: -10px; border: 0; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.titlebar { display: flex; align-items: center; gap: 4px; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255,255,255,0.1); color: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.badge { position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--yellow); color: var(--navy); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.seg { display: flex; border-radius: 10px; background: rgba(255,255,255,0.12); padding: 3px; }
.seg button { height: 32px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); font-weight: 700; }
.tabs { height: 46px; border-radius: 23px; background: rgba(255,255,255,0.12); padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.tabs button { border: 0; border-radius: 19px; background: transparent; color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); font-weight: 700; }
.tabs .count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* body */
.body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 14px; padding-bottom: 96px; }
.body.lift { margin-top: -66px; }
.body.lift-s { margin-top: -50px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 12px; }
.card.float { box-shadow: var(--shadow); }
.sec-title { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; }
.sec-title a, .sec-title button.link { font-size: 13px; font-weight: 600; text-decoration: none; background: none; border: 0; color: var(--teal); cursor: pointer; padding: 8px 0; }
.small { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.label { font-size: 12px; font-weight: 600; color: var(--muted); }
.big-num { font-size: 22px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip-ok { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green-text); }
.chip-warn { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--yellow-text); }
.pill { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: var(--green-text); }
.pill.wait { background: var(--yellow-soft); color: var(--yellow-text); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.mute { background: var(--ground); color: var(--muted); }

.btn { min-height: 52px; border: 0; border-radius: 14px; background: var(--teal); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; padding: 0 16px; width: 100%; }
.btn.navy { background: var(--navy); }
.btn.green { background: var(--green); }
.btn.out { background: #fff; color: var(--teal); border: 1px solid var(--teal); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid #CBD5DF; font-weight: 600; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #C9837B; }
.btn[disabled] { background: var(--line); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.btile { border: 0; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; text-decoration: none; }
.btile .l { font-size: 12px; font-weight: 600; }
.btile .v { font-size: 22px; font-weight: 700; }
.btile .v small { font-size: 13px; font-weight: 600; }
.t-green { background: var(--green); color: #fff; } .t-green .l, .t-green small { color: #D8F3E1; }
.t-teal { background: var(--teal); color: #fff; } .t-teal .l, .t-teal small { color: #DCE7F3; }
.t-yellow { background: var(--yellow); color: var(--navy); } .t-yellow .l, .t-yellow small { color: #4D3A00; }
.t-navy { background: var(--navy); color: #fff; } .t-navy .l, .t-navy small { color: #D6D1C9; }
.qtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qtile { background: #fff; border: 0; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; text-align: left; box-shadow: var(--shadow-s); font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; min-height: 88px; }
.list-card { background: #fff; border: 0; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-s); text-align: left; color: var(--ink); cursor: pointer; width: 100%; }
.lc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.lc-title { font-size: 15px; font-weight: 700; }
.bar4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bar4 i { height: 5px; border-radius: 3px; background: var(--line); }
.bar4 i.d { background: var(--green); } .bar4 i.c { background: var(--yellow); }
.alert { background: #FFFBEB; border: 1px solid var(--yellow); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; color: var(--ink); cursor: pointer; text-align: left; width: 100%; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--muted); padding: 0 4px; }
.avatar { width: 40px; height: 40px; border-radius: 20px; background: var(--hc-brand-tint, #E8F1FA); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy); }
.avatar.lg { width: 60px; height: 60px; border-radius: 30px; font-size: 20px; border: 3px solid var(--hc-brand-accent, #F7D100); }

/* bottom nav */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; height: 68px; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -4px 16px rgba(18,48,79,0.06); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
.nav button { border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; position: relative; cursor: pointer; }
.nav button[aria-current="page"] { color: var(--teal); font-weight: 700; }
/* the marker, as in the desk: a short Taifa-yellow bar over the open tab (25 Oct 2026) */
.nav button[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--hc-brand-accent, #F7D100); }
.nav .badge { top: 8px; right: auto; left: 56%; background: #C0392B; color: #fff; }

/* forms */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label, .field .lbl { font-size: 12px; font-weight: 600; }
.in { height: 48px; border: 1px solid #CBD5DF; border-radius: 12px; padding: 0 12px; font-size: 16px; background: #fff; width: 100%; }
textarea.in { height: auto; padding: 10px 12px; resize: none; }
.in:focus { outline: 3px solid rgba(27,122,136,0.35); border-color: var(--teal); }
.phone { display: flex; height: 56px; border: 2px solid var(--teal); border-radius: 14px; overflow: hidden; background: #fff; }
.phone span { padding: 0 14px; background: var(--ground); display: flex; align-items: center; font-size: 17px; font-weight: 700; }
.phone input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font-size: 19px; font-weight: 600; letter-spacing: 0.04em; outline: none; }
.pwd { position: relative; }
.pwd button { position: absolute; right: 4px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; width: 100%; text-align: left; color: var(--ink); }
.opt[aria-checked="true"] { border-color: var(--green); background: var(--green-soft); }
.opt .dot { width: 22px; height: 22px; border-radius: 11px; border: 2px solid #9AA9B8; flex-shrink: 0; }
.opt[aria-checked="true"] .dot { border: 7px solid var(--green); background: #fff; }
.opt .t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opt .t b { font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps div { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: #B8B2A8; }
.steps i { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.2); }
.steps .on { color: #fff; } .steps .on i { background: var(--yellow); }
.footer-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px 18px; display: flex; gap: 10px; margin: 0 -16px -96px; }
.footer-bar .btn { width: auto; flex: 1; }

/* PIN */
.pinboxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pinboxes div { height: 52px; border-radius: 12px; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.pinboxes div.f { background: var(--teal-soft); border-color: var(--teal); }
.pinboxes div.a { border-color: var(--navy); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { height: 52px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(18,48,79,0.08); font-size: 22px; font-weight: 700; color: var(--navy); cursor: pointer; }
.keypad button.blank { visibility: hidden; }
.keypad button.del { background: transparent; box-shadow: none; }
.rules div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mark { width: 20px; height: 20px; border-radius: 10px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mark.ok { background: var(--green-soft); color: var(--green-text); }
.mark.no { background: var(--red-soft); color: var(--red); }
.mark.wait { background: var(--ground); color: var(--muted); }

/* attendance */
.ring { position: relative; width: 124px; height: 124px; flex-shrink: 0; }
.ring .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.week { height: 118px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.week i { width: 12px; border-radius: 6px; background: #C8D7EA; display: block; }
.week .today i { background: var(--teal); } .week .today { color: var(--teal); font-weight: 700; }
.week .miss i { background: var(--yellow); } .week .miss { color: var(--yellow-text); font-weight: 700; }
.stat { background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow-s); }
.stat .l { font-size: 11px; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 700; }
.geo { position: relative; height: 150px; border-radius: 14px; background: #E8EEF2; overflow: hidden; }
.geo .area { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 66px; background: rgba(35,122,62,0.14); border: 2px dashed var(--green); }
.geo .me { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 8px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--navy); }
.geo .acc { position: absolute; right: 10px; top: 10px; padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,0.92); font-size: 11px; font-weight: 700; }
.banner { border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.banner.ok { background: var(--green-soft); color: var(--green-text); }
.banner.warn { background: var(--yellow-soft); color: var(--yellow-text); }
.banner.bad { background: var(--red-soft); color: var(--red); }
.banner b { font-size: 15px; } .banner span { font-size: 13px; line-height: 1.4; }

/* trail */
.trail { display: flex; flex-direction: column; }
.tstep { display: flex; gap: 12px; }
.tstep .rail { display: flex; flex-direction: column; align-items: center; width: 24px; }
.tstep .dotc { width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.tstep .dotc.d { background: var(--green); } .tstep .dotc.c { background: var(--yellow); border: 4px solid var(--yellow-soft); } .tstep .dotc.n { border: 2px solid #CBD5DF; }
.tstep .ln { flex: 1; width: 2px; background: var(--line); min-height: 18px; }
.tstep .tx { padding-bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.tstep .tx b { font-size: 14px; }

/* sheet, toast */
.sheet-bg { position: fixed; inset: 0; background: rgba(10,30,51,calc(0.55 * var(--shade, 1))); z-index: 40; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 200ms var(--hc-ease-out); }
.sheet-bg.in { opacity: 1; }
.sheet { width: 100%; max-width: 520px; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 16px 24px; display: flex; flex-direction: column; gap: 12px; max-height: 92vh; overflow: auto; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #CBD5DF; align-self: center; flex: none; }
.sheet { will-change: transform; touch-action: pan-y; overscroll-behavior: contain; }
.sheet .grab { position: relative; cursor: grab; touch-action: none; }   /* the grip is dragged by the finger; the content keeps native scrolling */
.sheet .grab::after { content: ''; position: absolute; inset: -14px -40px; }   /* a thumb-sized grip around the bar */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 60; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: 92vw; box-shadow: var(--shadow); }
.toast.err { background: var(--red); }
.offline { background: var(--yellow-soft); color: var(--yellow-text); text-align: center; font-size: 12px; font-weight: 700; padding: 6px; }
.empty { background: #fff; border-radius: 22px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; box-shadow: var(--shadow); }
.empty .ic { width: 64px; height: 64px; border-radius: 32px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.slip { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-s); }
.slip .sh { padding: 14px 16px; border-bottom: 1px solid #E3EAF0; display: flex; justify-content: space-between; gap: 10px; }
.slip .sm { padding: 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 12px; border-bottom: 1px solid #E3EAF0; }
.slip .sl { padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; border-bottom: 1px solid #E3EAF0; }
.slip .sl div { display: flex; justify-content: space-between; gap: 10px; }
.slip .net { padding: 14px 16px; background: var(--teal-soft); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.list-plain { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-s); }
.list-plain > * { min-height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--ground); background: #fff; width: 100%; font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; text-decoration: none; }
.list-plain > *:last-child { border-bottom: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* 0.12.0: five quick actions (same pattern as the HCMOS pages), install card, requests waiting to send */
.acts5 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.act5 { background: #fff; border: 0; border-radius: 16px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow-s); color: var(--ink); cursor: pointer; min-height: 96px; }
.act5 .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.act5 .lb { font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
@media (min-width: 480px) { .acts5:not(.six) { grid-template-columns: repeat(5, 1fr); } }
.inst { border: 1.5px solid var(--teal); }
.inst .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.list-card.queued { cursor: default; border: 1.5px dashed var(--yellow-text); }
@media (min-width: 521px) { body { background: #DCE3EA; } #ess-app { box-shadow: 0 0 40px rgba(18,48,79,0.12); } }
/* 0.12.1: one design on every screen (Kira, 23 Oct 2026). Fields never spill out of their card on iPhone or Android. */
.in { display: block; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; text-align: left; }
input[type="date"].in, input[type="time"].in { line-height: 46px; padding-top: 0; padding-bottom: 0; }
.in::-webkit-date-and-time-value { text-align: left; margin: 0; }
.in::-webkit-datetime-edit { padding: 0; line-height: 46px; }
.in::-webkit-calendar-picker-indicator { opacity: 0.6; }
select.in { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5D72' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.grid2 > *, .grid3 > *, .row > *, .field, .card, .list-card { min-width: 0; }
.field .lbl { color: var(--muted); }
.flabel { font-size: 13px; font-weight: 700; color: var(--navy); }
.fs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fs legend { padding: 0; margin-bottom: 8px; }
.opt input[type="radio"], .opt input[type="checkbox"] { flex: none; margin: 0; width: 20px; height: 20px; accent-color: var(--green); }
.opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.opt .t b { font-size: 14px; }
.hdr .lead { font-size: 13px; line-height: 1.4; color: #D6D1C9; margin-top: -6px; }
.hdr .lead.indent { padding-left: 38px; margin-top: -10px; }
.hpill { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.14); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hbtn { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.4); background: transparent; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill { flex: none; }
.banner.info { background: var(--teal-soft); color: var(--navy); }
/* menus: start a request, notifications, days with no record */
.menu { background: #fff; border-radius: 18px; box-shadow: var(--shadow-s); overflow: hidden; display: flex; flex-direction: column; }
.menu.float { box-shadow: var(--shadow); }
.menu.flat { box-shadow: none; border: 1px solid var(--line); border-radius: 14px; }
.menu > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; border: 0; border-bottom: 1px solid var(--ground); background: #fff; text-align: left; color: var(--ink); cursor: pointer; }
.menu > button:last-child { border-bottom: 0; }
.menu > button > svg { flex: none; color: var(--muted); }
.menu .mk { padding: 12px 14px 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }
.mi { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--teal-soft); }
.mi svg { width: 22px; height: 22px; }
.mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt b { font-size: 15px; line-height: 1.3; }
.mt span { font-size: 12px; line-height: 1.35; color: var(--muted); }
.mt .warnt { color: var(--yellow-text); font-weight: 700; }
.menu > button:not(.unread) .mt b.nt { font-weight: 600; }
.udot { width: 9px; height: 9px; border-radius: 5px; background: var(--teal); flex: none; }
.card.miss { border: 1px solid var(--yellow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip.warn { border-color: var(--yellow); background: #FFFBEB; color: var(--yellow-text); }
.chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
/* requests */
.sumrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sum { background: #fff; border: 2px solid transparent; border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow-s); text-align: left; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sum[aria-pressed="true"] { border-color: var(--teal); }
.sum .l { font-size: 11px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sum .l i { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.sum .v { font-size: 22px; font-weight: 700; }
.rq .lc-top { align-items: center; gap: 12px; }
.prog { display: grid; gap: 4px; }
.prog div { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.prog i { height: 5px; border-radius: 3px; background: var(--line); }
.prog .d { color: var(--green-text); } .prog .d i { background: var(--green); }
.prog .c { color: var(--yellow-text); font-weight: 700; } .prog .c i { background: var(--yellow); }
/* attendance */
.stat .l i { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.week { position: relative; }
.week i { background: #7E9CC6; }
.week em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--navy); min-height: 12px; }
.week.none div:not(.today):not(.miss) i { background: var(--line); }
.week-empty { position: absolute; left: 0; right: 0; top: 26%; margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.empty .ic svg { width: 30px; height: 30px; }
.footer-bar { margin-top: auto; }

/* HCMOS type (0.14.0): titles and key figures in the display face, figures aligned */
.hdr h1, .hdr .hello, .big-num, .btile .v, .brand b { font-family: var(--hc-font-display, inherit); font-weight: 600; letter-spacing: -0.005em; }
.hdr h1 { font-size: 24px; } .hdr .hello { font-size: 27px; } .big-num, .btile .v { font-size: 26px; font-variant-numeric: tabular-nums; }

/* ---------- sign-in: the doorway (24 Oct 2026; DESIGN.md, "Doorway pages") ----------
 * Only the sign-in screen wears the company's public identity (paper, ink, yellow, Bebas / Lato / JetBrains
 * Mono, a photograph of its people), the same as its home page and the HCMOS sign-in. Every screen after
 * sign-in stays on the product layer above. Built from the --hc-door-* tokens in hc_tokens.css. */
.ess-door { flex: 1; display: flex; flex-direction: column; background: var(--hc-door-paper); color: var(--hc-door-ink); font-family: var(--hc-font-door-text); }
#ess-app:has(> .ess-door) { background: var(--hc-door-paper); }
.ess-door :focus-visible { outline: 2px solid var(--hc-door-focus); outline-offset: 3px; }
.door-hdr {
	position: relative; display: flex; flex-direction: column; gap: 16px; padding: 12px 20px 16px; color: #fff;
	/* the photo is the hero: dark only behind the controls at the top and the small heading at the foot */
	background:
		linear-gradient(180deg, rgba(11, 12, 14, 0.38) 0%, rgba(11, 12, 14, 0) 28%, rgba(11, 12, 14, 0) 58%, rgba(11, 12, 14, 0.78) 100%),
		var(--hc-door-photo-people) center 38% / cover no-repeat,
		var(--hc-door-ink);
	min-height: 236px;
}
.door-home { display: inline-flex; align-items: center; background: #fff; border-radius: 4px; padding: 7px 10px; line-height: 0; }
.door-home img { height: 24px; width: auto; }
.ess-door .seg { background: rgba(11, 12, 14, 0.42); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ess-door .seg button { border-radius: 999px; font-family: var(--hc-font-door-mono); letter-spacing: 0.06em; min-height: 32px; }
.ess-door .seg button[aria-pressed="true"] { background: var(--hc-door-accent); color: var(--hc-door-on-accent); }
.door-hdr h1 { margin: auto 0 0; display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.door-kicker { display: flex; align-items: center; gap: 10px; font: 400 11px/1 var(--hc-font-door-mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.94); }
.door-kicker::before { content: ""; width: 8px; height: 8px; background: var(--hc-door-accent); flex: none; }
.door-title { font-family: var(--hc-font-door-display); text-transform: var(--hc-door-display-case); font-size: 26px; line-height: 1; letter-spacing: 0.01em; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.door-tabs { margin: 16px 16px 0; height: 48px; padding: 4px; border-radius: 999px; background: var(--hc-door-card); box-shadow: inset 0 0 0 1px var(--hc-door-line); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.door-tabs button { border: 0; border-radius: 999px; background: transparent; color: var(--hc-door-ink); font: 600 12px/1 var(--hc-font-door-mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.door-tabs button[aria-selected="true"] { background: var(--hc-door-ink); color: #fff; }
.ess-door .body { padding: 16px 16px 24px; gap: 14px; }
.door-card { border-radius: 6px; box-shadow: 0 1px 2px rgba(18, 19, 22, 0.06), 0 10px 28px -14px rgba(18, 19, 22, 0.28); gap: 16px; padding: 20px 18px; }
.door-card h2 { margin: 0; font-family: var(--hc-font-door-display); font-weight: 400; text-transform: var(--hc-door-display-case); font-size: 30px; line-height: 0.95; letter-spacing: 0.005em; color: var(--hc-door-ink); }
.ess-door .small { margin: 0; font-size: 13px; line-height: 1.45; color: var(--hc-door-muted); }
.door-card .small { margin-top: 6px; }
.ess-door .field label { font: 600 11px/1 var(--hc-font-door-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hc-door-ink); margin-bottom: 4px; }
.ess-door .in { height: 52px; border: 1px solid rgba(18, 19, 22, 0.24); border-radius: 4px; color: var(--hc-door-ink); }
.ess-door .in:focus, .ess-door .phone:focus-within { outline: none; border-color: var(--hc-door-focus); box-shadow: 0 0 0 3px rgba(0, 118, 209, 0.2); }
.ess-door .phone { height: 56px; border: 1px solid rgba(18, 19, 22, 0.24); border-radius: 4px; }
.ess-door .phone span { font-family: var(--hc-font-door-mono); font-size: 16px; color: var(--hc-door-ink); border-right: 1px solid var(--hc-door-line); background: var(--hc-door-paper); }
.ess-door .phone input { font-family: var(--hc-font-door-mono); font-size: 19px; color: var(--hc-door-ink); }
.ess-door .phone input::placeholder, .ess-door .in::placeholder { color: #767A82; }
.ess-door .pwd button { color: var(--hc-door-muted); top: 4px; }
.ess-door .btn { min-height: 54px; border-radius: 999px; background: var(--hc-door-accent); color: var(--hc-door-on-accent); font: 600 14px/1 var(--hc-font-door-mono); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(18, 19, 22, 0.08); }
.ess-door .btn:hover { background: var(--hc-door-accent-hover); }
.ess-door .btn.ghost { background: transparent; color: var(--hc-door-ink); box-shadow: inset 0 0 0 1.5px var(--hc-door-ink); border: 0; font-size: 12px; }
.ess-door .btn.ghost:hover { background: var(--hc-door-ink); color: #fff; }
.ess-door .btn.door-mini { min-height: 40px; width: auto; padding: 0 14px; font-size: 11px; flex: none; }
.ess-door .btn[disabled] { background: #E4E1D8; color: #5C636E; box-shadow: none; }
.door-link { align-self: flex-end; font-size: 14px; font-weight: 700; color: var(--hc-door-link); text-decoration: none; padding: 6px 0; }
.door-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ess-door .note { color: var(--hc-door-muted); font-size: 13px; }
.ess-door .note svg { flex: none; color: var(--hc-door-ink); }
.ess-door .pinboxes div { border-radius: 4px; border: 1px solid rgba(18, 19, 22, 0.24); font-family: var(--hc-font-door-mono); }
.ess-door .pinboxes div.f { background: #FFF6CC; border-color: var(--hc-door-ink); }
.ess-door .pinboxes div.a { border: 2px solid var(--hc-door-focus); }
.ess-door .keypad button { border-radius: 4px; background: var(--hc-door-card); color: var(--hc-door-ink); font-family: var(--hc-font-door-mono); font-weight: 600; box-shadow: 0 1px 2px rgba(18, 19, 22, 0.1); }
.ess-door .keypad button:active { background: #FFF6CC; }
.ess-door .keypad button.del { background: transparent; box-shadow: none; }
.door-foot { margin: auto 0 0; padding-top: 12px; text-align: center; font: 400 11px/1.4 var(--hc-font-door-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hc-door-muted); }
@media (min-width: 521px) { body:has(.ess-door) { background: var(--hc-door-paper); } }
@media (max-height: 640px) { .door-hdr { min-height: 196px; } }
/* the PIN step needs the room for its keypad: a shorter header */
.door-hdr.compact { min-height: 150px; }
.door-hdr.compact .door-title { font-size: 22px; }
.ess-door .keypad button { height: 50px; }
/* the maker's mark: sign-in foot and the Me screen (Kira, 24 Oct 2026) */
.ess-sig { display: block; text-align: center; padding: 6px 0 2px; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.ess-sig b { font-weight: 700; color: var(--ink); }
.ess-door .ess-sig { font: 400 11px/1.4 var(--hc-font-door-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hc-door-muted); padding-top: 4px; }
.ess-door .ess-sig b { font-weight: 600; color: var(--hc-door-ink); }

/* SW | EN: the bubble switch shared with the public site and the sign-in pages (Kira, 24 Oct 2026) */
.seg { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; border-radius: 999px; }
.seg button { position: relative; z-index: 1; border-radius: 999px; background: transparent !important; transition: color .3s cubic-bezier(.16, 1, .3, 1); }
.seg button[aria-pressed="true"] { color: var(--navy); }
.seg-bub { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform .46s cubic-bezier(.34, 1.45, .64, 1); }
.seg[data-cur="en"] .seg-bub { transform: translateX(100%); }
.seg.go .seg-bub { animation: seg-stretch .46s cubic-bezier(.34, 1.2, .64, 1); }
@keyframes seg-stretch { 0% { scale: 1 1; } 35% { scale: 1.28 .86; } 70% { scale: .96 1.04; } 100% { scale: 1 1; } }
.ess-door .seg-bub { background: var(--hc-door-accent); }
.ess-door .seg button[aria-pressed="true"] { background: transparent; color: var(--hc-door-on-accent); }
@media (prefers-reduced-motion: reduce) { .seg-bub { transition: none; } .seg.go .seg-bub { animation: none; } }

/* ---------- motion (26 Oct 2026): springs and the rubber band; transform and opacity only ---------- */
.ess-app, body { overscroll-behavior-y: contain; }
.btn, .tile, .card[data-go], [data-go] { transition: transform var(--hc-dur-spring-snappy, 320ms) var(--hc-spring-snappy, ease-out), background-color 180ms ease; }
.btn:active, .tile:active, [data-go]:active { transform: scale(0.97); transition-duration: 90ms; }
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; z-index: 45; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(10,30,51,0.18);
  transform: translate3d(-50%, -48px, 0); opacity: 0; pointer-events: none; will-change: transform; }
.ptr svg { width: 20px; height: 20px; transition: transform 200ms var(--hc-spring-snappy, ease-out); }
.ptr.busy svg { animation: ptr-spin 0.8s linear infinite; }
.ptr.busy svg path:last-child { display: none; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
.seg-bub { transition-timing-function: var(--hc-spring-soft, cubic-bezier(.34, 1.45, .64, 1)); }
@media (prefers-reduced-motion: reduce) {
  .btn, .tile, [data-go], .ptr svg, .sheet-bg { transition: none !important; }
  .btn:active, .tile:active, [data-go]:active { transform: none; }
  .ptr.busy svg { animation: none; }
}

/* guides and films (29 Oct 2026) */
.help-card{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;border:0;cursor:pointer;font:inherit;color:inherit;box-shadow:inset 0 0 0 1.5px var(--hc-brand-action, #005FA8)}
.help-card .ic{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--hc-brand-tint, #E8F1FA);color:var(--hc-brand-action, #005FA8);flex:0 0 40px}
.howto{display:inline-flex;align-items:center;gap:4px;margin:6px 0 0 16px;padding:4px 12px 4px 8px;border:0;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-weight:600;font-size:13px;font-family:inherit;cursor:pointer}
.howto svg{width:16px;height:16px}
.g-step{display:flex;flex-direction:column;gap:10px}
.g-n{flex:0 0 26px;height:26px;border-radius:50%;background:var(--hc-brand-ink, #1E1C1A);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.g-shot{height:312px;overflow:hidden;display:flex;justify-content:center;background:var(--hc-surface-sunken, #EAEEF2);border-radius:12px;pointer-events:none}

/* my photo on Me (30 Oct 2026): tap to add or change it */
.me-photo { position: relative; padding: 0; cursor: pointer; font-family: inherit; overflow: visible; }
.me-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.me-photo i { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.me-photo:active { transform: scale(0.97); }
.me-photo:focus-visible { outline: 3px solid var(--hc-brand-accent, #F7D100); outline-offset: 3px; }
