/* The lite desk — the same application, on a telephone.
 *
 * Built for a thumb on a site visit rather than a mouse at a desk: one column,
 * nothing smaller than sixteen pixels (below that iOS zooms the page when you
 * focus a field, which throws the layout), and every target at least 44px tall.
 * The palette is the desktop's, neutral, so the two do not look like different
 * companies' software.
 */
:root {
  --bg: #191919; --side: #1c1c1c; --card: #232323; --hi: #262626; --hi-2: #2e2e2e;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --ink: #ededed; --ink-2: #9b9b9b; --ink-3: #6f6f6f;
  --done: #4ca96b; --wait: #d3a03f; --stop: #c9564c; --acid: #d6f24b;
  --fn: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff; --side: #f7f7f7; --card: #f2f2f2; --hi: #efefef; --hi-2: #e4e4e4;
    --line: rgba(0,0,0,.14); --line-2: rgba(0,0,0,.22);
    --ink: #1c1c1c; --ink-2: #6a6a6a; --ink-3: #8f8f8f;
    --done: #3f8f56; --wait: #b07a24; --stop: #bf3f33;
    color-scheme: light;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--fn);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
/* THIS ADDRESS OPENS ON ANYTHING, INCLUDING A LAPTOP.
 *
 * The layout is one column for a thumb, and one column stretched across a
 * fifteen-inch screen is a list of headlines with three feet of empty space
 * after each one. Held to the width of a large phone and centred, it stays the
 * same design on both instead of becoming a bad version of the desktop desk —
 * which already exists, and is where a laptop should really be working. */
#app { max-width: 560px; margin: 0 auto; min-height: 100%;
  display: flex; flex-direction: column; }
@media (min-width: 600px) {
  body { background: var(--side); }
  #app { background: var(--bg); border-left: 1px solid var(--line);
    border-right: 1px solid var(--line); }
}
button { background: none; border: 0; cursor: pointer; padding: 0; }
*, *::before, *::after { transition: none !important; animation: none !important; }
/* The one thing allowed to move, and only while something is happening. */
.nlogo.think .nd { animation: nspin 2.4s linear infinite !important; }
@keyframes nspin { to { transform: rotate(360deg); } }
.nlogo { position: relative; display: inline-block; width: 26px; height: 26px;
  flex: 0 0 auto; }
.nlogo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nlogo .nh { filter: invert(1); }
@media (prefers-color-scheme: light) { .nlogo .nh { filter: none; } }
.nlogo .nd { transform-origin: 46.56% 38.23%; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px
  env(safe-area-inset-bottom); }

.top { position: sticky; top: 0; z-index: 5; background: var(--bg);
  border-bottom: 1px solid var(--line); padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: center; gap: 12px; }
.top h1.mark { font-family: 'Nexa', 'Nexa Semi Bold', 'Geist', var(--fn);
  font-size: 20px; letter-spacing: -.012em; }
.top h1 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .back { min-width: 44px; height: 44px; margin-left: -12px; display: flex;
  align-items: center; color: var(--ink-2); font-size: 16px; }
.top .who { font-size: 13px; color: var(--ink-3); }

.tabs { display: flex; gap: 6px; padding: 12px 16px 0; }
.tab { flex: 1 1 0; height: 40px; border-radius: 8px; background: var(--hi);
  color: var(--ink-2); font-size: 14px; display: flex; align-items: center;
  justify-content: center; gap: 8px; }
.tab.on { background: var(--hi-2); color: var(--ink); font-weight: 500; }
.tab .n { font-size: 13px; color: var(--ink-3); }

.list { padding: 8px 0 40px; }
.item { display: block; width: 100%; text-align: left; padding: 16px 16px;
  border-bottom: 1px solid var(--line); min-height: 44px; }
.item:active { background: var(--hi); }
.item .s { font-size: 16px; line-height: 1.4; color: var(--ink); }
.item.read .s { color: var(--ink-2); }
.item .m { display: flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 13px; color: var(--ink-3); }
.item .m .ago { margin-left: auto; }
.pr { display: inline-flex; align-items: center; height: 19px; padding: 0 8px;
  border-radius: 4px; font-size: 12px; font-weight: 600; }
.pr.urgent { background: var(--stop); color: #fff; }
.pr.high { color: var(--wait); box-shadow: inset 0 0 0 1px currentColor; }
.pips { display: inline-flex; gap: 4px; }
.pp { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.pp.on { background: var(--done); }

.msg { padding: 16px; border-bottom: 1px solid var(--line); }
.msg h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; display: flex;
  align-items: baseline; gap: 12px; }
.msg h3 time { margin-left: auto; font-size: 13px; color: var(--ink-3);
  font-weight: 400; }
.msg .body { white-space: pre-wrap; line-height: 1.65; font-size: 16px; }
.msg.agent .body { color: var(--ink-2); }

.head { padding: 16px; border-bottom: 1px solid var(--line); }
.head .co { font-size: 14px; color: var(--ink-2); }
.head h2 { margin: 6px 0 8px; font-size: 23px; font-weight: 600; line-height: 1.25;
  letter-spacing: -.02em; }
.head .meta { font-size: 13px; color: var(--ink-3); }
.track { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.step .pip { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; }
.step.done .pip { background: var(--done); border-color: var(--done); }
.step.done { color: var(--ink-2); }
.step .pip svg { display: block; }

.compose { position: sticky; bottom: 0; background: var(--bg);
  border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.compose .who { display: flex; gap: 6px; margin-bottom: 12px; }
.compose .who button { flex: 1 1 0; height: 36px; border-radius: 8px; font-size: 14px;
  background: var(--hi); color: var(--ink-3); }
.compose .who button.on { background: var(--hi-2); color: var(--ink); }
textarea, input { width: 100%; background: var(--hi); border: 1px solid transparent;
  border-radius: 10px; padding: 12px 16px; font-size: 16px; line-height: 1.5; }
textarea { resize: none; min-height: 84px; }
input:focus, textarea:focus { outline: none; border-color: var(--line-2); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%;
  height: 48px; border-radius: 10px; background: var(--hi); color: var(--ink);
  font-size: 16px; margin-top: 12px; }
.btn.pri { background: var(--ink); color: var(--bg); font-weight: 600; }
.btn:disabled { opacity: .4; }
.row2 { display: flex; gap: 8px; }
.row2 .btn { margin-top: 12px; }

.auth { max-width: 380px; margin: 0 auto; padding: 12vh 20px 40px; }
.auth h1 { font-size: 21px; font-weight: 600; margin: 0 0 6px; }
.auth p { color: var(--ink-3); font-size: 14px; margin: 0 0 20px; line-height: 1.6; }
.auth label { display: block; font-size: 13px; color: var(--ink-3); margin: 16px 0 6px; }
.auth .er { color: var(--stop); font-size: 14px; min-height: 1.3em; margin-top: 12px; }
#code { text-align: center; letter-spacing: .12em; font-size: 18px;
  font-family: ui-monospace, Menlo, monospace; }

.empty { padding: 60px 24px; text-align: center; color: var(--ink-3); }
.empty h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink-2); }
.note { padding: 16px 16px; font-size: 13px; color: var(--ink-3);
  border-bottom: 1px solid var(--line); }
.rel { padding: 16px 16px; border-bottom: 1px solid var(--line); }
.rel .v { font-size: 16px; font-weight: 600; }
.rel .n { font-size: 14px; color: var(--ink-2); margin-top: 6px; white-space: pre-wrap; }
.rel .m { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.tag { display: inline-flex; height: 19px; padding: 0 8px; border-radius: 4px;
  font-size: 12px; font-weight: 600; align-items: center; margin-left: 8px; }
.tag.live { background: var(--done); color: #fff; }
.tag.bad { background: var(--stop); color: #fff; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom));
  background: var(--hi-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 16px; font-size: 16px; z-index: 20; text-align: center; }
.toast.bad { color: var(--stop); }

/* =========================================================================
   THE SAME PROCEDURE AS THE DESK, DOWN ONE LINE
   -------------------------------------------------------------------------
   Same five steps, same words, same circles. Somebody who knows one knows the
   other, and a problem on step three here is on step three there. Sized for a
   thumb: 44px targets, nothing under 16px, and the step you are on is the only
   one holding a button.
   ======================================================================== */
/* The reply bar below is stuck to the bottom of the screen and draws over the
   page, so the last step needs room to get out from under it — otherwise step
   five is on the page, and correct, and no thumb can ever reach it. */
.psteps { padding: 4px 0 8px; }
.pstep { display: grid; grid-template-columns: 32px 1fr; gap: 14px;
  position: relative; padding: 0 16px 24px; }
.pstep::before { content: ''; position: absolute; left: 31px; top: 34px; bottom: 0;
  width: 2px; background: var(--line); }
.pstep.last::before { display: none; }
.pstep.done::before { background: var(--done); }
.pstep .pip { width: 32px; height: 32px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; border: 2px solid var(--line-2);
  background: var(--bg); color: var(--ink-3); font-size: 15px; font-weight: 600;
  position: relative; z-index: 1; }
.pstep .pip i { font-style: normal; }
.pstep.done .pip { background: var(--done); border-color: var(--done); color: #fff; }
.pstep.now .pip { border-color: var(--ink); color: var(--ink); }
.ptitle { font-size: 17px; font-weight: 600; margin: 4px 0 10px; }
.pstep.later .ptitle { color: var(--ink-3); }
.pstep.later .pbody { opacity: .6; }
.pstep.done .ptitle { color: var(--ink-2); }
.pbody { min-width: 0; }
.pbody .body { white-space: pre-wrap; line-height: 1.6; font-size: 16px;
  color: var(--ink-2); margin-bottom: 10px; }
.pbody .body:last-child { margin-bottom: 0; }

/* what a phone hands to a computer, and how honest it is about it */
.rs { font-size: 14px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.remote { background: var(--hi); border-radius: 10px; padding: 14px 16px; }
.remote.on { background: var(--hi-2); }
.remote .rt { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.remote .rs { margin-top: 6px; }
.pstep .btn { margin-top: 0; }
