/* FacEX app prototype. The brand system as the Android app uses it: Ink, Paper, hairlines, one green,
   square fields and buttons, rounded only for status pills. No shadows, no gradients. Figtree stands in for
   Proxima Nova, as in the app. */
:root {
  --ink: #0F1412;
  --paper: #FAFBFA;
  --paper-2: #F2F5F3;
  --line: #DCE3DF;
  --muted: #55625B;
  --green: #4F9674;
  --btn: #3D7959;
  --green-text: #397053;
  --green-light: #8FD3B0;
  --mint: #D9EDE2;
  --alert: #B3261E;
  --alert-soft: #FBE9E7;
  --on-ink-2: rgba(250, 251, 250, .72);
  --line-ink: rgba(250, 251, 250, .14);
  --f: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--f); color: var(--ink); background: #e9eeeb; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* the phone: full screen on a phone, a phone-sized column on anything wider */
.device { position: relative; height: 100%; max-width: 420px; margin: 0 auto; background: var(--paper); overflow: hidden; }
@media (min-width: 560px) and (min-height: 700px) {
  body { display: grid; place-items: center; }
  .device { height: min(860px, calc(100vh - 32px)); width: 400px; border: 10px solid #121614; border-radius: 44px; }
}
.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.screen { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }

/* top bar */
.top { flex: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.top h1 { flex: 1; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 -8px; border: 0; background: none; }
.icon-btn svg, .tab svg, .row-ic svg, .btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bell { position: relative; }
.bell::after { content: ""; position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--alert); }
.logo { line-height: 0; margin: 0; }
.logo img { height: 26px; width: auto; display: block; }
.logo i { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 1px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; vertical-align: 2px; }

/* bottom tabs */
.tabs { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); background: var(--paper); padding-bottom: env(safe-area-inset-bottom); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; border: 0; background: none; font-size: 11px; font-weight: 600; color: var(--muted); }
.tab.on { color: var(--green-text); }
.tab.on svg { stroke: var(--green); }

/* labels and type */
.label { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.label::before { content: ""; width: 6px; height: 6px; background: var(--green); flex: none; }
.label.alert::before { background: var(--alert); }
.label .end { margin-left: auto; }
.sec { padding: 20px 16px 8px; }
.muted { color: var(--muted); }
.headline { font-size: 30px; font-weight: 300; line-height: 1.05; letter-spacing: -.01em; }
.num { font-size: 40px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.cap { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.small { font-size: 13px; line-height: 1.4; }

/* the dark panel */
.panel { background: var(--ink); color: var(--paper); padding: 16px 16px 18px; }
.panel .label::before { background: var(--green-light); }
.panel .muted { color: var(--on-ink-2); }
.panel-top { display: flex; justify-content: space-between; margin-bottom: 14px; }
.who { font-size: 17px; font-weight: 600; }
.shift { margin-top: 14px; font-size: 40px; font-weight: 300; letter-spacing: -.02em; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.trio b { display: block; font-size: 26px; font-weight: 300; }
.punch-note { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--on-ink-2); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; }
.stat-grid > div { padding: 14px 14px 16px 0; border-bottom: 1px solid var(--line-ink); }
.stat-grid > div:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line-ink); }
.stat-grid .cap { margin-top: 6px; color: var(--on-ink-2); }
.stat-grid .alert-text { color: #FF8A80; font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.stat-grid .alert-text::before { content: ""; width: 6px; height: 6px; background: #FF8A80; }

/* buttons: square */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--ink); background: transparent; font-weight: 600; font-size: 15px; }
.btn.fill { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { background: var(--paper-2); border-color: var(--paper-2); color: #8b968f; cursor: not-allowed; }
.btn.ghost { border-color: var(--line); }
.btn.alert { border-color: var(--alert); color: var(--alert); }
.panel .btn.fill { margin-top: 16px; }

/* status pills: the one rounded shape */
.pill { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border: 1.5px solid currentColor; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pill.green { color: var(--green-text); }
.pill.alert { color: var(--alert); }
.pill.mute { color: var(--muted); }

/* rows */
.rows { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.row:active { background: var(--paper-2); }
.row-ic { flex: none; width: 24px; color: var(--ink); }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.row-main span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.chev { flex: none; width: 8px; height: 8px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); margin-left: 4px; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 12px 16px 0; }
.cards2 button { text-align: left; padding: 14px 14px 18px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.cards2 .num { display: block; margin-bottom: 10px; }

/* checklists */
.scan-panel { background: var(--mint); padding: 16px; }
.scan-panel p { margin: 8px 0 14px; font-size: 15px; }
.kv { display: grid; grid-template-columns: 112px 1fr; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv dt { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.kv dd { margin: 0; }
.task { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 15px; }
.box { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.task.done .box { background: var(--btn); border-color: var(--btn); }
.task.done .box::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.task small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--green-text); margin-top: 2px; }
.task .time { margin-left: auto; font-size: 12px; color: var(--muted); }
.photos { display: flex; gap: 10px; padding: 12px 16px 16px; flex-wrap: wrap; }
.add-photo { width: 76px; height: 76px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--green-text); }
.add-photo b { font-size: 22px; font-weight: 300; line-height: 1; }
.photo { position: relative; width: 76px; height: 76px; background: linear-gradient(160deg, #cfd8d3, #9fb1a7); overflow: hidden; }
.photo::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 16px; height: 22px; border: 2px solid rgba(255,255,255,.75); border-top-width: 6px; }
.photo span { position: absolute; left: 4px; bottom: 3px; font-size: 9px; color: #fff; font-weight: 600; }
.warn { padding: 4px 16px 0; font-size: 12.5px; color: var(--alert); }
.foot { padding: 14px 16px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.foot p { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }

/* scanner */
.scanner { position: absolute; inset: 0; z-index: 20; background: #0b0f0d; color: #fff; display: flex; flex-direction: column; }
.scanner .top { background: transparent; border-color: rgba(255,255,255,.12); color: #fff; }
.viewfinder { flex: 1; display: grid; place-items: center; position: relative; }
.frame { position: relative; width: 220px; height: 220px; }
.frame i { position: absolute; width: 34px; height: 34px; border: 3px solid var(--green-light); }
.frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.frame::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--green-light); top: 10px; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { to { top: 206px; } }
.qr { position: absolute; inset: 52px; background:
  conic-gradient(from 90deg at 30% 30%, #fff 0 25%, transparent 0) 0 0 / 22px 22px; opacity: .35; }
.scan-hint { text-align: center; padding: 0 24px 12px; font-size: 14px; color: rgba(255,255,255,.75); }
.scan-acts { padding: 0 16px 22px; display: flex; flex-direction: column; gap: 10px; }
.scan-acts .btn.ghost { border-color: rgba(255,255,255,.3); color: #fff; }
@media (prefers-reduced-motion: reduce) { .frame::after { animation: none; top: 50%; } }

/* tickets */
.overdue { margin: 14px 16px 4px; padding: 14px 14px 12px; background: var(--alert-soft); }
.overdue .label { color: var(--alert); }
.overdue h3 { font-size: 20px; font-weight: 600; color: var(--alert); margin: 8px 0 2px; }
.overdue p { font-size: 13px; }
.ladder { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ladder li { display: flex; align-items: center; gap: 8px; }
.ladder li::before { content: ""; width: 9px; height: 9px; border: 1.5px solid var(--alert); flex: none; }
.ladder li.hit::before { background: var(--alert); }
.ladder li.ok::before { border-color: var(--green); background: var(--green); }
.t-head { padding: 16px 16px 6px; }
.t-head .pills { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.t-head h2 { font-size: 24px; font-weight: 300; line-height: 1.15; }
.t-head p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.timeline { padding: 6px 16px 14px; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; background: var(--ink); }
.timeline li.g::before { background: var(--green); }
.timeline li.r::before { background: var(--alert); }
.timeline li span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.timeline li q { display: block; margin-top: 4px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); font-style: normal; quotes: none; }
.msg { display: flex; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--line); background: var(--paper); }
.msg input { flex: 1; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 0; }
.msg button { width: 44px; border: 0; background: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.chip { flex: none; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 600; }
.chip.on { background: var(--mint); border-color: var(--green); color: var(--green-text); }
.field { display: block; padding: 10px 16px; }
.field > span { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); background: #fff; border-radius: 0; }
.field textarea { min-height: 84px; resize: vertical; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); background: #fff; text-align: left; }
.opt.on { border-color: var(--btn); background: var(--mint); }
.opt b { font-weight: 600; }
.opt span { font-size: 12.5px; color: var(--muted); }
.fab { position: absolute; right: 16px; bottom: 76px; z-index: 5; min-height: 52px; padding: 0 18px; border: 0; background: var(--btn); color: #fff; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.fab svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }

/* assets summary */
.trip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px; gap: 0; }
.trip > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.trip .cap { margin-top: 6px; color: var(--muted); }

/* sign-in */
.signin { display: flex; flex-direction: column; min-height: 100%; }
.signin-hero { background: var(--ink); color: var(--paper); padding: 34px 22px 26px; }
.signin-hero .logo img { height: 40px; }
.signin-hero .logo i { width: 34px; height: 34px; font-size: 18px; }
.signin-hero h1 { margin-top: 40px; font-size: 34px; font-weight: 300; line-height: 1.08; }
.signin-hero p { margin-top: 10px; color: var(--on-ink-2); font-size: 14px; line-height: 1.45; }
.signin-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.role-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 1px solid var(--line); background: #fff; text-align: left; }
.role-btn:hover { border-color: var(--btn); }
.role-btn b { display: block; font-size: 16px; font-weight: 600; }
.role-btn span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.signin-note { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* done screen */
.done { padding: 40px 22px; text-align: left; }
.done .tick { width: 56px; height: 56px; background: var(--btn); display: grid; place-items: center; margin-bottom: 22px; }
.done .tick::after { content: ""; width: 22px; height: 11px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(2px, -2px); }
.done h2 { font-size: 28px; font-weight: 300; line-height: 1.1; }
.done dl { margin: 22px -22px 26px; }
.done dl .kv { padding-left: 22px; padding-right: 22px; }

.toast { position: absolute; left: 16px; right: 16px; bottom: 76px; z-index: 30; padding: 12px 14px; background: var(--ink); color: var(--paper); font-size: 14px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.pad { height: 90px; }
.role-btn > svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--green-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.role-btn > div { flex: 1; }

/* portfolio demo: scroll without a visible scrollbar, like the real app on a phone */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
