:root{
  --teal:#00796b; --teal-deep:#004d40; --ink:#1c1c1a; --muted:#6b6b66;
  --line:#e2e0d8; --bg:#f7f6f2; --card:#fff; --amber:#b45309; --red:#b91c1c; --green:#0f766e;
  --tap:48px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
/* Room for the tab bar and for the plus button, which used to sit on top
   of the last card in a list. */
body{background:var(--bg);color:var(--ink);font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;padding-bottom:150px}
h1,h2,h3{margin:0 0 10px;line-height:1.25}
h1{font-size:22px} h2{font-size:18px} h3{font-size:15px}
p{margin:0 0 12px}
a{color:var(--teal)}
.hidden{display:none !important}

/* header */
.topbar{background:var(--teal);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:20}
.topbar h1{font-size:17px;margin:0;flex:1;font-weight:600}
.topbar button{background:transparent;border:0;color:#fff;font-size:15px;padding:8px;min-width:var(--tap);cursor:pointer}
.back{font-size:22px;line-height:1}
/* The logo sits on the coloured bar, so it is given a white rounded tile:
   a logo drawn for white paper disappears against the teal otherwise. */
.brandmark{height:28px;width:28px;object-fit:contain;border-radius:6px;background:#fff;
  padding:2px;flex:none}

/* layout */
main{padding:16px;max-width:760px;margin:0 auto}

/* ---------- sign in ----------
   One centred column, not two panels: a split screen on a 1500px monitor left
   most of it empty, and there is not enough to say to fill half a window. */
body.full main{padding:0;max-width:none}
.landing{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px 18px}
.landing .gate{width:100%;max-width:420px}

.landing .mast{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.landing .mast img{width:56px;height:56px;object-fit:contain;border-radius:12px;
  background:#fff;border:1px solid var(--line);padding:5px;flex:none}
.landing .eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.landing .mast h1{font-size:26px;margin:1px 0 0;letter-spacing:-.01em}

.landing .card h2{font-size:21px;margin:0 0 3px}
.landing .card .muted{margin:0}

.landing .foot{margin-top:18px;font-size:12px;color:var(--muted);line-height:1.6;text-align:center}

.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:14px}
.card.tap{cursor:pointer}
.card.tap:active{background:#fafaf7}
.row{display:flex;gap:12px;align-items:center}
.row.between{justify-content:space-between}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.muted{color:var(--muted);font-size:13.5px}
.stat{font-size:28px;font-weight:700;line-height:1.1}
.stat-label{font-size:12.5px;color:var(--muted);margin-top:2px}

/* forms */
label{display:block;font-size:13.5px;font-weight:600;margin:14px 0 6px}
input,select,textarea{width:100%;padding:13px 12px;font-size:16px;font-family:inherit;
  border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);min-height:var(--tap)}
/* The rule above is written for text fields. A checkbox inheriting full width
   and 13px of padding renders as a large empty square in a column of its own. */
/* min-height is the one that has to be reset: the rule above gives every input
   a 48px touch target, and min-height beats height, so a checkbox came out
   18px wide and 48px tall. */
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:0;
  padding:0;margin:0;flex:none;accent-color:var(--teal);cursor:pointer}
input:focus,select:focus,textarea:focus{outline:2px solid var(--teal);outline-offset:-1px;border-color:var(--teal)}
textarea{min-height:110px;resize:vertical}
.btn{width:100%;min-height:var(--tap);padding:13px;font-size:16px;font-weight:600;font-family:inherit;
  border:0;border-radius:10px;background:var(--teal);color:#fff;cursor:pointer;margin-top:16px}
.btn:active{background:var(--teal-deep)}
.btn[disabled]{opacity:.55}
.btn.secondary{background:#fff;color:var(--teal);border:1.5px solid var(--teal)}
.btn.danger{background:#fff;color:var(--red);border:1.5px solid var(--red)}
.btn-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.btn-row .btn{margin-top:0}
.hint{font-size:12.5px;color:var(--muted);margin-top:5px}
.err{background:#fdecec;border:1px solid #f3c5c5;color:var(--red);padding:11px 13px;border-radius:9px;font-size:14px;margin:12px 0}
.ok{background:#eaf5f2;border:1px solid #bfe0d8;color:var(--green);padding:11px 13px;border-radius:9px;font-size:14px;margin:12px 0}

/* chips */
.chip{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.03em;padding:3px 9px;border-radius:20px;white-space:nowrap}
.chip.open{background:#e8f2ff;color:#1e40af}
.chip.progress{background:#eaf5f2;color:var(--green)}
.chip.hold{background:#fdf3e6;color:var(--amber)}
.chip.done{background:#eef0ec;color:var(--muted)}
.chip.urgent{background:#fdecec;color:var(--red)}
.chip.cover{background:#eef4f3;color:var(--teal)}

/* ticket list */
.tno{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;color:var(--muted)}
.ttitle{font-weight:600;margin:4px 0}
/* Who is signed in, and for which company. A site user often works for one
   branch of a customer, so the company name is not obvious to them. */
.greet{margin:2px 0 16px}
.greet .who{font-size:20px;font-weight:600;line-height:1.2}

.sec{margin:22px 0 10px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}

/* A card that is a button: something is waiting on the customer. */
.card.act{display:flex;width:100%;align-items:center;gap:10px;text-align:left;font:inherit;
  cursor:pointer;border-left:3px solid var(--amber)}
.card.act strong{font-size:19px}
.card.act .chev{margin-left:auto;font-size:24px;color:var(--muted);line-height:1}
.card.warn{border-color:#f0d9b5;background:#fdf8ef}

/* Left aligned, because the plus button is anchored bottom right. */
.supportline{margin:14px 0 0;font-size:14px;color:var(--muted)}
.supportline a{font-weight:600}

.card.support{background:#eef4f3;border-color:#cfe0dd}
.card.support h3{margin-bottom:10px}
/* Wraps rather than squeezing a long telephone number onto two lines. */
.card.support .row{flex-wrap:wrap}
.card.support .btn{margin:0;flex:1 1 46%;min-width:150px;text-decoration:none;
  display:flex;align-items:center;justify-content:center;text-align:center}

.empty{text-align:center;padding:46px 20px;color:var(--muted)}
.empty .big{font-size:40px;margin-bottom:10px;opacity:.35}

/* timeline */
.tl{list-style:none;margin:0;padding:0}
.tl li{position:relative;padding:0 0 18px 22px;border-left:2px solid var(--line)}
.tl li:last-child{border-left-color:transparent;padding-bottom:0}
.tl li::before{content:"";position:absolute;left:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--teal)}
.tl li.sys::before{background:var(--line)}
.tl .when{font-size:12px;color:var(--muted)}
.tl .what{font-size:14px;margin-top:2px}

/* photographs */
.photos{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:10px}
.photos img{height:92px;width:92px;object-fit:cover;border-radius:9px;border:1px solid var(--line);flex:0 0 auto}

/* progress bar */
.bar{height:6px;background:var(--line);border-radius:3px;overflow:hidden;margin-top:8px}
.bar span{display:block;height:100%;background:var(--green)}
.bar.warn span{background:var(--amber)} .bar.late span{background:var(--red)}

/* bottom navigation */
nav.tabs{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);
  display:grid;grid-template-columns:repeat(5,1fr);z-index:20;padding-bottom:env(safe-area-inset-bottom)}
nav.tabs button{background:none;border:0;padding:9px 4px 11px;font-size:11px;color:var(--muted);
  font-family:inherit;cursor:pointer;min-height:var(--tap)}
nav.tabs button .ic{display:block;font-size:19px;line-height:1.3}
nav.tabs button.on{color:var(--teal);font-weight:600}
/* The unread count, on the tab rather than buried in Account. */
nav.tabs button{position:relative}
.badge{position:absolute;top:5px;left:50%;margin-left:5px;min-width:17px;height:17px;
  border-radius:9px;background:var(--red);color:#fff;font-size:10.5px;font-weight:700;
  font-style:normal;line-height:17px;text-align:center;padding:0 4px}

.fab{position:fixed;right:18px;bottom:88px;width:56px;height:56px;border-radius:28px;background:var(--teal);
  color:#fff;border:0;font-size:28px;line-height:1;box-shadow:0 3px 12px rgba(0,0,0,.22);z-index:19;cursor:pointer}
.spinner{text-align:center;padding:40px;color:var(--muted);font-size:14px}
@media (min-width:720px){ .grid2{grid-template-columns:repeat(4,1fr)} }
