/* My Helpdesk app: one column, phone first. Colors match the website and the mockups. */
:root{
  --navy:#12182B; --navy2:#1B2338; --gold:#C98A2B; --gold-ink:#8A5E17; --gold-wash:#FBF3E4; --gold-soft:#F3D7A6;
  --bg:#F6F7F9; --card:#FFFFFF; --line:#E1E4EA; --line2:#D5D9E1; --ink:#12182B; --soft:#3C4356; --muted:#5B6270;
  --ok:#1E7B4F; --ok-wash:#EAF5EF; --warn:#8E2A1E; --warn-wash:#FBEDEB;
  --display:"Manrope","Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --body:"Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--body);min-height:100vh;min-height:100dvh}
button,input,textarea,select{font:inherit;color:inherit}
a{color:var(--gold-ink)}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
[hidden]{display:none!important}
#view{max-width:560px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding-bottom:calc(84px + var(--safe-b))}
#view.noTabs{padding-bottom:var(--safe-b)}
.brand{font:800 20px var(--display)}
.brand span{color:var(--gold)}
h1,h2{font-family:var(--display);line-height:1.15;margin:0}
.muted{color:var(--muted)}
.small{font-size:13px}

/* top bars */
.hero{background:var(--navy);color:#fff;padding:calc(20px + var(--safe-t)) 20px 30px;display:flex;flex-direction:column;gap:16px}
.hero .row{display:flex;justify-content:space-between;align-items:center}
.hero .hi{font-size:15px;color:#C7CAD6}
.hero h1{font-size:26px;font-weight:800}
.iconbtn{width:44px;height:44px;border-radius:22px;border:0;background:rgba(255,255,255,.08);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.iconbtn svg,.back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bar{background:var(--card);border-bottom:1px solid var(--line);padding:calc(10px + var(--safe-t)) 12px 12px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0;z-index:3}
.bar .row{display:flex;align-items:center;gap:6px}
.bar h1{font-size:22px;font-weight:800}
.bar p{margin:0 8px;font-size:14px;color:var(--muted)}
.back{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--ink);border-radius:12px}

/* content */
.content{flex:1;padding:16px;display:flex;flex-direction:column;gap:14px}
.lift{margin-top:-16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:14px}
.card.shadow{box-shadow:0 8px 24px rgba(18,24,43,.06)}
.linkrow{display:flex;gap:16px;align-items:center}
.qr{width:112px;height:112px;flex:none;border-radius:12px;border:1px solid var(--line);background:#fff;padding:6px;display:block}
.qr img,.qr svg{width:100%;height:100%;display:block;image-rendering:pixelated}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-ink)}
.link{font-size:15px;font-weight:600;line-height:1.35;word-break:break-all}
.btn{min-height:52px;border-radius:14px;border:0;background:var(--gold);color:var(--navy);font-weight:700;font-size:17px;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;cursor:pointer;padding:0 16px;width:100%}
.btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btn.line{background:#fff;border:1px solid var(--line2);font-size:15px;font-weight:600;min-height:46px}
.btn.dark{background:var(--navy);color:#fff}
.btn:disabled{opacity:.55;cursor:default}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:2px}
.stat b{font:800 24px var(--display);font-variant-numeric:tabular-nums}
.stat b.ok{color:var(--ok)}
.stat span{font-size:12px;color:var(--muted)}
.rowlink{display:flex;gap:12px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px;text-decoration:none;color:var(--ink);min-height:60px}
.rowlink.dash{border:1px dashed var(--gold)}
.rowlink .txt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.rowlink .txt b{font-weight:600;font-size:15px}
.rowlink .txt span{font-size:13px;color:var(--muted)}
.dot{width:40px;height:40px;flex:none;border-radius:20px;display:flex;align-items:center;justify-content:center;background:var(--gold-wash);color:var(--gold-ink)}
.dot.ok{background:var(--ok-wash);color:var(--ok)}
.dot svg,.chev{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.chev{width:18px;height:18px;color:#8A90A0;flex:none}
.note{background:var(--gold-wash);border-radius:14px;padding:12px 14px;font-size:13px;line-height:1.5;color:var(--soft);margin:0}

/* forms */
label.lbl{font-size:13px;font-weight:600;display:block;margin-bottom:6px}
.input{width:100%;min-height:50px;border-radius:12px;border:1px solid var(--line2);background:#fff;padding:0 14px;font-size:17px}
textarea.input{padding:12px 14px;min-height:140px;line-height:1.45;font-size:16px;resize:vertical}
.code{letter-spacing:.5em;font:800 26px var(--display);text-align:center;padding-left:.5em}
.seg{display:flex;gap:4px;padding:4px;background:#E9EBF0;border-radius:14px}
.seg button{flex:1;min-height:44px;border-radius:10px;border:0;background:transparent;font-weight:600;font-size:15px;cursor:pointer}
.seg button[aria-selected="true"]{background:var(--navy);color:#fff;font-weight:700}
.err{color:var(--warn);font-size:14px;margin:0}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line2);background:#fff;font-size:14px;font-weight:600;cursor:pointer}
.chip[aria-pressed="true"]{background:var(--navy);color:#fff;border-color:var(--navy)}

/* sign in */
.signin{background:var(--navy);color:#fff;flex:1;padding:calc(22px + var(--safe-t)) 20px calc(24px + var(--safe-b));display:flex;flex-direction:column;gap:16px}
.signin .icon{width:52px;height:52px;border-radius:14px;background:var(--gold);color:var(--navy);display:flex;align-items:center;justify-content:center}
.signin .icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.signin h1{font-size:28px;font-weight:800;margin-top:6px}
.signin p{margin:0;color:#C7CAD6;font-size:15px}
.signin .input{background:var(--navy2);border-color:#3A4360;color:#fff}
.signin label.lbl{color:#DADDE6}
.signin .fine{font-size:12px;color:#A9AFC0}
.signin a{color:var(--gold-soft);font-weight:600}
.signin .err{color:#F5B3A8}
.linkbtn{background:none;border:0;padding:6px 0;color:var(--gold-soft);font-weight:600;font-size:15px;text-decoration:underline;cursor:pointer;text-align:left}
.spacer{flex:1}

/* clients */
.client{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.client .top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.client .top b{font-size:16px}
.pill{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;background:var(--gold-wash);color:#7A5212;white-space:nowrap}
.pill.ok{background:var(--ok-wash);color:#1E6B45}
.pill.closed{background:#EEF0F4;color:var(--muted)}
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.steps i{height:5px;border-radius:3px;background:var(--line)}
.steps i.on{background:var(--gold)}
.steps.ok i.on{background:var(--ok)}
.steplabels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;font-size:11px;color:var(--muted)}
.empty{text-align:center;color:var(--muted);padding:32px 12px;font-size:15px}

/* bottom tabs */
.tabs{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:6px 8px calc(10px + var(--safe-b));z-index:5}
.tabs a{min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:var(--muted);font-size:12px;font-weight:600}
.tabs a[aria-current="page"]{color:var(--gold-ink);font-weight:700}
.tabs svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:600px){.tabs{left:50%;right:auto;width:560px;transform:translateX(-50%);border-left:1px solid var(--line);border-right:1px solid var(--line)}}

/* sheets and overlays */
.sheet{position:fixed;inset:0;background:rgba(18,24,43,.55);z-index:10;display:flex;align-items:flex-end;justify-content:center}
.sheet .panel{background:#fff;width:100%;max-width:560px;border-radius:20px 20px 0 0;padding:20px 18px calc(20px + var(--safe-b));display:flex;flex-direction:column;gap:12px;max-height:90vh;overflow:auto}
.sheet .panel h2{font-size:20px}
.bigqr{width:min(78vw,320px);aspect-ratio:1;margin:8px auto;background:#fff;padding:10px;border-radius:16px;border:1px solid var(--line)}
.bigqr img,.bigqr svg{width:100%;height:100%;display:block;image-rendering:pixelated}
.toast{position:fixed;left:50%;bottom:calc(96px + var(--safe-b));transform:translateX(-50%);background:var(--navy);color:#fff;padding:10px 16px;border-radius:12px;font-size:14px;font-weight:600;z-index:20;max-width:90vw;text-align:center}
.offline{background:#5B6270;color:#fff;text-align:center;font-size:13px;padding:6px 12px;padding-top:calc(6px + var(--safe-t))}
.skeleton{background:linear-gradient(90deg,#EEF0F4,#F7F8FA,#EEF0F4);background-size:200% 100%;animation:sk 1.2s infinite;border-radius:14px;min-height:90px}
@keyframes sk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.skeleton{animation:none}}
