/* One stylesheet for the sign-in page, the hub and the CRM. Written for a phone first; wider screens add to it. */
:root{
  --ink:#14263b; --ink-2:#3d4f63; --ink-3:#566578;
  --paper:#fff; --wash:#eef3f8; --rule:#c9d3de;
  --act:#e08a2e; --link:#1f5f9a; --sky:#dfe7f0; --good:#1d6b45; --warn:#9a4a05;
  --sans:"Avenir Next","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --serif:Charter,"Iowan Old Style","Palatino Linotype",Georgia,serif;
  --tap:3rem; --bar:3.75rem; --scroll:#b4c1cf;
}
*{box-sizing:border-box}
/* scroll bars: thin and rounded, in a quiet tone of the page's ink, with no track */
*{scrollbar-width:thin; scrollbar-color:var(--scroll) transparent}
::-webkit-scrollbar{width:10px; height:10px}
::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-thumb{background:var(--scroll); background-clip:content-box; border:3px solid transparent; border-radius:10px}
::-webkit-scrollbar-thumb:hover{background-color:var(--ink-3)}
html{-webkit-text-size-adjust:100%}
body{margin:0; background:var(--paper); color:var(--ink); font:1.0625rem/1.55 var(--sans)}
h1,h2,h3{overflow-wrap:anywhere}
h1{font:400 clamp(1.75rem,6vw,2.5rem)/1.12 var(--serif); letter-spacing:-.01em; margin:0 0 .8rem}
h2{font:600 1.25rem/1.25 var(--sans); margin:2.2rem 0 .6rem}
h3{font:600 1.0625rem/1.3 var(--sans); margin:0 0 .15rem}
p{margin:0 0 .9rem}
a{color:var(--link); text-underline-offset:.16em}
:focus-visible{outline:3px solid var(--link); outline-offset:2px; border-radius:3px}
[hidden]{display:none !important}
.muted{color:var(--ink-2)} .small{font-size:.94rem}

/* controls: every target is at least 48px tall */
.btn{display:inline-flex; align-items:center; justify-content:center; min-height:var(--tap); padding:.55rem 1.1rem; font:600 1.0625rem/1.2 var(--sans);
  border:2px solid var(--act); border-radius:6px; background:var(--act); color:var(--ink); text-decoration:none; cursor:pointer; text-align:center}
.btn:hover{background:#eb9a45; border-color:#eb9a45}
.btn.quiet{background:transparent; border-color:var(--ink); color:var(--ink)}
.btn.quiet:hover{background:var(--ink); color:#fff}
.btn.wide{width:100%}
.btn[disabled]{opacity:.55; cursor:default}
.btns{display:flex; flex-wrap:wrap; gap:.6rem}
.icon{width:1.15em; height:1.15em; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.btn .icon{margin:0 .4rem}
.btn .icon:first-child{margin-left:0}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
button.link{background:none; border:0; padding:.7rem 0; font:inherit; color:var(--link); text-decoration:underline; text-underline-offset:.16em; cursor:pointer; text-align:left}
label{display:block; font-weight:600; margin:0 0 .35rem}
label .hint{display:block; font-weight:400; color:var(--ink-2); font-size:.94rem}
input[type=text],input[type=email],input[type=search],input[type=date],textarea,select{width:100%; min-height:var(--tap); font:1.125rem/1.4 var(--sans); padding:.6rem .8rem;
  border:2px solid var(--ink-3); border-radius:6px; color:var(--ink); background:#fff}
textarea{min-height:6rem; resize:vertical}
.field{margin:0 0 1.1rem}
.check{display:flex; gap:.8rem; align-items:flex-start; padding:.75rem 0; font-weight:400; cursor:pointer}
.check input{width:1.6rem; height:1.6rem; margin:.05rem 0 0; flex:none; accent-color:var(--ink)}
.msg{min-height:1.5em; font-weight:600; color:var(--warn)}
.msg.ok{color:var(--good)}

/* sign-in and other one-purpose pages */
body.plain{background:var(--wash)}
.card{max-width:27rem; margin:0 auto; padding:2rem 1.25rem 3rem}
.card .brand{font-weight:600; margin-bottom:2rem}
.card .brand span{display:block; font-weight:400; color:var(--ink-2); font-size:.94rem}
.card form{margin:1.4rem 0 .6rem}
.card input{margin-bottom:1rem}
.card #code{font-size:1.6rem; letter-spacing:.3em; text-align:center}
.fine{font-size:.9rem; color:var(--ink-2); margin-top:2rem}

/* the frame */
.top{background:var(--ink); color:#fff; position:sticky; top:0; z-index:10}
.top .in{display:flex; align-items:center; gap:1rem; min-height:3.25rem; max-width:64rem; margin:0 auto; padding:0 1.25rem}
.top .brand{display:flex; align-items:center; gap:.65rem; color:#fff; font-weight:600; text-decoration:none; white-space:nowrap; padding:.6rem 0}
.top .brand img{display:block; width:1.6rem; height:auto}
.top .who{color:var(--sky); text-decoration:none; padding:.9rem .6rem; font-size:.98rem; white-space:nowrap}
.top .who{margin-left:auto; background:none; border:0; font:inherit; font-size:.98rem; cursor:pointer}
main{max-width:44rem; min-height:calc(100dvh - 3.25rem); margin:0 auto; padding:1.6rem 1.25rem calc(var(--bar) + 3rem)}
main:focus{outline:0}
main.wide{max-width:88rem}
.tabs{position:fixed; left:0; right:0; bottom:0; z-index:10; display:flex; background:#fff; border-top:1px solid var(--rule); padding-bottom:env(safe-area-inset-bottom)}
.tabs a{flex:1; min-height:var(--bar); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.2rem; color:var(--ink-3); text-decoration:none; font-size:.8rem; font-weight:500}
.tabs a svg{width:1.5rem; height:1.5rem; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.tabs a[aria-current]{color:var(--ink); font-weight:700}
.tabs a[aria-current] svg{stroke-width:2.4}
.tabs a.wide{display:none}
.tabs .count{position:absolute; margin:-1.6rem 0 0 1.6rem; min-width:1.25rem; padding:.1rem .3rem; border-radius:1rem; background:var(--act); color:var(--ink); font-size:.75rem; line-height:1.05rem; text-align:center}
/* a wide screen: the same menu becomes a side menu that is always there */
@media (min-width:56rem){
  body.app{padding-left:15rem}
  body.app .top{margin-left:-15rem}
  .top .in{max-width:none; padding:0 1.5rem}
  .tabs{top:3.25rem; right:auto; width:15rem; flex-direction:column; gap:0; padding:1rem 0; background:var(--wash); border-top:0; border-right:1px solid var(--rule)}
  .tabs a,.tabs a.wide{display:flex; flex:none; flex-direction:row; justify-content:flex-start; gap:.85rem; min-height:var(--tap); padding:0 1.5rem; font-size:1.0625rem; color:var(--ink-2); border:solid transparent; border-width:1px 0}
  .tabs a:hover{color:var(--ink)}
  .tabs a[aria-current]{background:var(--paper); border-color:var(--rule); margin-right:-1px}
  .tabs .count{position:static; margin:0 0 0 auto}
  main{padding-bottom:4rem; min-height:calc(100dvh - 3.25rem)}
  footer.foot{padding-bottom:2rem}
}

/* lists of things to act on */
.rows{list-style:none; margin:0 0 1.2rem; padding:0; border-top:2px solid var(--ink)}
.rows > li{padding:1rem 0; border-bottom:1px solid var(--rule)}
.rows p{margin:0; color:var(--ink-2)}
.rows .meta{font-size:.94rem; color:var(--ink-3); margin-top:.2rem}
.rows .btns{margin-top:.75rem}
.rows a.go{display:block; color:inherit; text-decoration:none; margin:-1rem 0; padding:1rem 1.6rem 1rem 0; position:relative}
.rows a.go::after{content:""; position:absolute; right:.3rem; top:50%; width:.6rem; height:.6rem; border:solid var(--ink-3); border-width:2px 2px 0 0; transform:translateY(-50%) rotate(45deg)}
.rows a.go:hover h3{text-decoration:underline}
.tag{display:inline-block; font:600 .8rem/1 var(--sans); padding:.3rem .5rem; border-radius:4px; background:var(--wash); color:var(--ink); margin-right:.3rem; white-space:nowrap}
.tag.hot{background:var(--ink); color:#fff} .tag.warm{background:#f6dcbd} .tag.late{background:#f3d3c2; color:#7a2e05} .tag.good{background:#d3ebdd; color:#12432b}
.panel{background:var(--wash); border-radius:8px; padding:1.1rem 1.1rem 1.2rem; margin:0 0 1.2rem}
.panel h2{margin-top:0}
.panel > :last-child{margin-bottom:0}
.ask-row{display:flex; flex-direction:column; gap:.6rem}
@media (min-width:36rem){.ask-row{flex-direction:row} .ask-row input{flex:1}}

/* the scorecard: one signal on the screen at a time */
.progress{height:.4rem; background:var(--rule); border-radius:1rem; overflow:hidden; margin:.2rem 0 1.2rem}
.progress i{display:block; height:100%; background:var(--act); transition:width .2s}
@media (prefers-reduced-motion:reduce){.progress i{transition:none}}
.choices{display:grid; gap:.6rem; margin:1rem 0}
.choice{display:block; width:100%; text-align:left; min-height:var(--tap); padding:.85rem 1rem; font:1.0625rem/1.4 var(--sans); color:var(--ink); background:#fff; border:2px solid var(--ink-3); border-radius:8px; cursor:pointer}
.choice b{display:block; font-size:.86rem; color:var(--ink-3); margin-bottom:.15rem}
.choice:hover{border-color:var(--ink)}
.choice[aria-pressed=true]{background:var(--ink); border-color:var(--ink); color:#fff}
.choice[aria-pressed=true] b{color:var(--act)}
.total{font:600 3.2rem/1 var(--sans); letter-spacing:-.03em}
.total small{font:400 1.0625rem/1 var(--sans); color:var(--ink-3); letter-spacing:0}
.answers{list-style:none; margin:0; padding:0}
.answers li{border-bottom:1px solid var(--rule)}
.answers button{display:flex; justify-content:space-between; gap:1rem; width:100%; min-height:var(--tap); padding:.6rem 0; background:none; border:0; font:inherit; color:var(--ink); text-align:left; cursor:pointer}
.answers button span:last-child{font-weight:600; white-space:nowrap}

/* dialogs */
dialog{border:0; border-radius:12px; padding:1.4rem 1.25rem; width:min(32rem, calc(100vw - 1.5rem)); max-height:calc(100dvh - 1.5rem); color:var(--ink)}
dialog::backdrop{background:rgba(20,38,59,.55)}
dialog h2{margin-top:0}
dl.facts{margin:0 0 1.1rem; display:grid; grid-template-columns:auto 1fr; gap:.25rem 1rem; font-size:.98rem}
dl.facts dt{color:var(--ink-3)} dl.facts dd{margin:0}
details{border-bottom:1px solid var(--rule)}
summary{cursor:pointer; padding:.9rem 0; font-weight:600; min-height:var(--tap)}
details > p{color:var(--ink-2)}
footer.foot{background:var(--ink); color:var(--sky); padding:2rem 1.25rem calc(var(--bar) + 2rem); font-size:.98rem}
footer.foot div{max-width:44rem; margin:0 auto}
footer.foot strong{display:block; color:#fff; font:400 1.35rem/1.25 var(--serif); margin-bottom:.5rem}
footer.foot a,footer.foot button.link{color:#fff}

/* the CRM */
.stats{display:grid; grid-template-columns:repeat(2,1fr); gap:.6rem; margin:0 0 1.4rem}
.stats div{background:var(--wash); border-radius:8px; padding:.8rem 1rem}
.stats b{display:block; font:600 1.7rem/1.1 var(--sans)}
.stats span{font-size:.9rem; color:var(--ink-2)}
@media (min-width:40rem){.stats{grid-template-columns:repeat(5,1fr)}}
.split{display:grid; gap:0 2.5rem}
@media (min-width:56rem){.split{grid-template-columns:1fr 1fr}}
.feed{list-style:none; margin:0; padding:0; font-size:.98rem}
.feed li{padding:.5rem 0; border-bottom:1px solid var(--rule); display:flex; gap:.8rem}
.feed time{color:var(--ink-3); white-space:nowrap; min-width:5.2rem; font-size:.9rem; padding-top:.1rem}
.acct{border:1px solid var(--rule); border-radius:8px; padding:1rem; margin:0 0 1rem}
.grid2{display:grid; gap:0 1rem}
@media (min-width:36rem){.grid2{grid-template-columns:1fr 1fr}}
pre.mail{white-space:pre-wrap; background:var(--wash); padding:1rem; border-radius:8px; font:.95rem/1.5 ui-monospace,Menlo,monospace; overflow-x:auto}
a.more{display:inline-block; padding:.7rem 0}

/* pictures on cards: a document's first page, a session's date */
.pic{display:grid; grid-template-columns:4.75rem minmax(0,1fr); gap:1rem; align-items:start}
.rows a.go.pic{display:grid}
img.page{display:block; width:100%; height:auto; background:#fff; border:1px solid var(--rule); box-shadow:0 1px 3px rgba(20,38,59,.18)}
@media (min-width:40rem){ .pic{grid-template-columns:6rem minmax(0,1fr); gap:1.25rem} }

/* a short choice is a row of buttons, never a dropdown */
fieldset.pick{border:0; padding:0; min-width:0}
fieldset.pick legend{font-weight:600; padding:0; margin-bottom:.45rem}
fieldset.pick legend .hint{display:block; font-weight:400; color:var(--ink-2); font-size:.94rem}
.seg{display:flex; flex-wrap:wrap; gap:.5rem}
.seg label{margin:0; font-weight:400; position:relative}
.seg input{position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer}
.seg span{display:flex; align-items:center; min-height:var(--tap); padding:.4rem .9rem; border:2px solid var(--ink-3); border-radius:6px; background:#fff}
.seg input:checked + span{background:var(--ink); border-color:var(--ink); color:#fff}
.seg input:focus-visible + span{outline:3px solid var(--link); outline-offset:2px}
.back{display:inline-block; padding:.4rem 0 .9rem}
.facts-line{color:var(--ink-2); margin:-.3rem 0 1.2rem}
.people{list-style:none; margin:0 0 1rem; padding:0}
.people li{padding:.55rem 0; border-bottom:1px solid var(--rule)}
.people li span{color:var(--ink-3)}

/* the pipeline: a count for each stage, then a column for each */
.funnel{list-style:none; margin:0 0 1.4rem; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--rule); border:1px solid var(--rule)}
.funnel li{background:var(--paper)}
.funnel li.hot{background:var(--wash)}
.funnel a{display:block; min-height:var(--tap); padding:.55rem .6rem; color:var(--ink); text-decoration:none}
.funnel b{display:block; font:600 1.5rem/1.1 var(--sans)}
.funnel span{font-size:.82rem; color:var(--ink-2)}
.board{display:grid; gap:1.6rem}
.board section{min-width:0}
.board h2{display:flex; justify-content:space-between; align-items:baseline; gap:.5rem; margin:0 0 .6rem; padding-bottom:.4rem; border-bottom:2px solid var(--ink); font-size:1.0625rem}
.board h2 a{color:var(--ink)}
.chip{display:block; padding:.7rem .8rem; margin:0 0 .5rem; border:1px solid var(--rule); border-radius:6px; color:var(--ink); text-decoration:none; background:#fff}
.chip:hover{border-color:var(--ink)}
.chip strong,.chip span{display:block}
.chip span{font-size:.92rem; margin-top:.2rem}
.chip .who{color:var(--ink-2)}
.chip .tag{display:inline-block}
@media (min-width:56rem){
  .funnel{grid-template-columns:repeat(8,1fr)}
  .board{grid-auto-flow:column; grid-auto-columns:minmax(11rem,1fr); gap:.9rem; overflow-x:auto; padding-bottom:1rem; align-items:start}
}
/* handbook pages */
.doc-body{max-width:44rem}
.doc-body h2{margin-top:1.8rem}
ul.doc{margin:0 0 1rem; padding-left:1.2rem}
ul.doc li{margin-bottom:.4rem}
@media (min-width:84rem){ .board{grid-auto-flow:row; grid-template-columns:repeat(8,minmax(0,1fr)); overflow:visible} .chip{padding:.6rem .65rem; overflow-wrap:anywhere} }

/* the brand on plain pages, and people as initials */
.card .brand img{display:block; width:7.1rem; height:auto; margin-bottom:1.1rem}
.avatar{display:inline-flex; align-items:center; justify-content:center; flex:none; width:2.5rem; height:2.5rem; border-radius:50%; background:var(--sky); color:var(--ink); font:600 .95rem/1 var(--sans); letter-spacing:.02em}
.top .avatar{margin-left:auto; border:2px solid rgba(255,255,255,.55); background:transparent; color:#fff; cursor:pointer; padding:0}
.top .avatar:hover{background:#fff; color:var(--ink)}
.top .who + .avatar{margin-left:.4rem}
.top a.who{margin-left:auto; text-decoration:underline}
.people li{display:flex; align-items:center; gap:.75rem}
.who-row{grid-template-columns:2.5rem minmax(0,1fr) !important; align-items:center}

/* reading a document: its pages, one under the other */
.doc-acts{position:sticky; top:3.25rem; z-index:5; background:var(--paper); padding:.6rem 0; margin-bottom:.4rem; border-bottom:1px solid var(--rule)}
.sheets{display:grid; gap:1rem; margin:1rem -0.75rem 0}
.sheets img{display:block; width:100%; height:auto; background:#fff; border:1px solid var(--rule); box-shadow:0 1px 4px rgba(20,38,59,.16)}
@media (min-width:40rem){ .sheets{margin-left:0; margin-right:0} }

/* a document in a list: its first page, then Read, which opens a new tab, and Download */
.doc-item h3 a{color:var(--ink); text-decoration:none}
.doc-item h3 a:hover{text-decoration:underline}
.doc-item h3 .icon{display:none}
/* a document named in a handbook page: the words open it, the arrow beside them downloads it */
.doc-link a:first-child .icon{width:.8em; height:.8em; margin-left:.2em; vertical-align:-.02em}
.doc-link a.dl{display:inline-flex; align-items:center; justify-content:center; width:2.2rem; height:2.2rem; margin:-.6rem 0 -.6rem .1rem; border-radius:50%; color:var(--ink-2); vertical-align:middle}
.doc-link a.dl:hover{background:var(--sky); color:var(--ink)}

/* the reader: one document in its own tab, its pages one under the other */
body.reader{background:var(--wash)}
.reader .top .btn{margin-left:auto; min-height:2.6rem; padding:.3rem .9rem; font-size:1rem}
.reader main{max-width:62rem; padding-bottom:3rem}
.reader .sheets{margin-top:1.4rem}
.reader .btns.end{margin-top:1.6rem}

/* the demo: the hub on a phone and on a desktop, side by side */
body.demo{display:flex; flex-direction:column; height:100dvh; overflow:hidden; color:var(--ink); background:radial-gradient(130% 100% at 50% 0%, #fdfdfe 0%, #eef2f7 55%, #e2e8f0 100%)}
.demo .top .in{max-width:none; flex-wrap:wrap; padding:0 1.5rem}
.demo-go{display:flex; flex-wrap:wrap; gap:.4rem; margin-left:auto; padding:.45rem 0}
.demo-go button{min-height:2.25rem; padding:.3rem .85rem; border:1px solid rgba(255,255,255,.35); border-radius:2rem; background:transparent; color:#fff; font:500 .95rem/1 var(--sans); cursor:pointer}
.demo-go button:hover{background:#fff; color:var(--ink)}
.stage{display:flex; align-items:center; justify-content:center; gap:32px; flex:1; width:100%; max-width:none; min-height:0; margin:0; padding:24px}
.device{margin:0; display:flex; flex-direction:column; align-items:center; gap:10px}
.device figcaption{font-size:.88rem; font-weight:500; color:var(--ink-3); height:20px}
.glass{position:relative; overflow:hidden; background:#fff}
.glass iframe{position:absolute; left:0; top:0; border:0; transform-origin:0 0; background:#fff}
.phone .glass{border:12px solid #111c28; border-radius:56px; box-shadow:0 0 0 1px #3a4757, 0 2px 4px rgba(20,38,59,.18), 0 28px 56px -16px rgba(20,38,59,.45)}
/* the phone is Safari on an iPhone: its status bar, the page, then Safari's address bar, toolbar and home indicator */
.ios{position:absolute; left:0; top:0; width:393px; height:852px; transform-origin:0 0; display:flex; flex-direction:column; background:#fff; color:#000; font-family:-apple-system,"SF Pro Text",system-ui,sans-serif}
.ios-status{position:relative; flex:none; height:54px; display:flex; align-items:center; justify-content:space-between; padding:6px 30px 0 52px; background:#fff; transition:background .2s}
.ios-time{font-size:17px; font-weight:600; letter-spacing:-.01em}
.ios-island{position:absolute; left:50%; top:11px; width:126px; height:37px; margin-left:-63px; border-radius:19px; background:#000}
.ios-icons{display:flex; align-items:center; gap:6px}
.ios-icons svg{fill:currentColor; display:block}
.ios-web{flex:none; height:670px; position:relative}
.ios-web iframe{position:absolute; left:0; top:0; width:393px; height:670px; border:0; background:#fff}
.ios-safari{flex:none; height:128px; padding:8px 14px 0; background:rgba(246,246,248,.97); border-top:.5px solid rgba(0,0,0,.2)}
.ios-url{display:flex; align-items:center; gap:10px; height:44px; padding:0 14px; border-radius:13px; background:#fff; box-shadow:0 0 0 .5px rgba(0,0,0,.1), 0 3px 10px rgba(0,0,0,.08); font-size:17px}
.ios-aa{font-weight:600; font-size:17px} .ios-aa small{font-size:12px}
.ios-host{flex:1; text-align:center; overflow:hidden; white-space:nowrap; text-overflow:ellipsis}
.ios-url svg,.ios-tools svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none}
.ios-url svg{width:18px; height:18px}
.ios-tools{display:flex; justify-content:space-between; align-items:center; height:46px; padding:0 14px; color:#007aff}
.ios-tools svg.off{color:#b5b5ba}
.ios-home{display:flex; justify-content:center; padding-top:13px}
.ios-home::after{content:""; width:134px; height:5px; border-radius:3px; background:#000}
.desk .frame{border-radius:10px; overflow:hidden; background:#fff; box-shadow:0 0 0 1px rgba(20,38,59,.14), 0 2px 4px rgba(20,38,59,.12), 0 28px 56px -16px rgba(20,38,59,.4)}
.chrome{display:flex; align-items:center; gap:7px; height:34px; padding:0 12px; background:#eef1f5; border-bottom:1px solid #dde3ea}
.chrome i{width:12px; height:12px; border-radius:50%; background:#ec6a5e}
.chrome i:nth-child(2){background:#f4bf4f} .chrome i:nth-child(3){background:#61c554}
.addr{flex:1; max-width:34rem; margin:0 auto; padding:3px 12px; border-radius:6px; background:#fff; border:1px solid #dde3ea; color:var(--ink-2); font-size:.8rem; text-align:center; overflow:hidden; white-space:nowrap; text-overflow:ellipsis}
@media (max-width:900px){ body.demo{height:auto; overflow:visible} .stage{flex-direction:column} }

/* ---- hierarchy: one title, labelled groups, one filled button a view ---- */
input[type=number],input[type=tel],input[type=datetime-local]{width:100%; min-height:var(--tap); font:1.125rem/1.4 var(--sans); padding:.6rem .8rem; border:2px solid var(--ink-3); border-radius:6px; color:var(--ink); background:#fff}
h2.label,.label{font:600 .86rem/1.2 var(--sans); text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3); margin:1.6rem 0 .45rem}
.btn[aria-pressed=true]{background:var(--wash); border-color:var(--ink-3); color:var(--ink)}
.rows li.line{display:flex; align-items:center; justify-content:space-between; gap:1rem}
.rows li.line h3{margin:0}
.attached{list-style:none; margin:.5rem 0 0; padding:0}
.attached li{padding:.15rem 0 .15rem 1.4rem; position:relative}
.attached li::before{content:""; position:absolute; left:.2rem; top:.55rem; width:.6rem; height:.75rem; border:2px solid var(--ink-3); border-radius:2px}
.top .bag{margin-left:auto; display:inline-flex; align-items:center; gap:.4rem}
.top .bag b:not(:empty){min-width:1.4rem; padding:.15rem .4rem; border-radius:1rem; background:var(--act); color:var(--ink); font-size:.8rem; line-height:1.1rem; text-align:center}
.top .bag + .avatar{margin-left:.4rem}


/* times on offer */
.slots{display:grid; grid-template-columns:repeat(auto-fill,minmax(6.25rem,1fr)); gap:.5rem; margin:0 0 .4rem}
.slot{min-height:var(--tap); border:2px solid var(--ink-3); border-radius:6px; background:#fff; color:var(--ink); font:600 1rem/1 var(--sans); cursor:pointer}
.slot:hover{border-color:var(--ink)}
.slot[aria-pressed=true]{background:var(--ink); border-color:var(--ink); color:#fff}

/* messages */
.fab{position:fixed; right:1rem; bottom:calc(var(--bar) + 1rem + env(safe-area-inset-bottom)); z-index:9; min-height:var(--tap); padding:.6rem 1.15rem; border:0; border-radius:2rem;
  background:var(--ink); color:#fff; font:600 1rem/1 var(--sans); box-shadow:0 4px 14px rgba(20,38,59,.3); cursor:pointer}
.fab .count{display:inline-block; margin-left:.5rem; min-width:1.3rem; padding:.15rem .35rem; border-radius:1rem; background:var(--act); color:var(--ink); font-size:.8rem}
@media (min-width:56rem){.fab{bottom:1.5rem; right:1.5rem}}
.thread{display:flex; flex-direction:column; gap:.15rem; max-height:45dvh; min-height:6rem; overflow-y:auto; overscroll-behavior:contain; margin:0 0 1rem; padding:.2rem}
.thread.tall{max-height:60dvh; padding:1rem; border:1px solid var(--rule); border-radius:14px 14px 0 0; margin:0}
.thread > :first-child{margin-top:auto}
.bubble{max-width:82%; padding:.5rem .85rem; border-radius:18px; background:var(--wash); align-self:flex-start; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.4}
.bubble.me{align-self:flex-end; background:var(--ink); color:#fff}
.bubble.first{margin-top:.45rem}
.bubble:not(.me):not(.first){border-top-left-radius:6px} .bubble:not(.me):not(.last){border-bottom-left-radius:6px}
.bubble.me:not(.first){border-top-right-radius:6px} .bubble.me:not(.last){border-bottom-right-radius:6px}
.bubble.pending{opacity:.55}
.stamp{align-self:flex-start; margin:.15rem .35rem .3rem; font-size:.75rem; color:var(--ink-3)}
.stamp.me{align-self:flex-end}
.day{align-self:center; margin:.9rem 0 .2rem; font:600 .75rem/1 var(--sans); color:var(--ink-3)}
.bubble.dots{display:flex; gap:.25rem; align-items:center; margin-top:.45rem; padding:.75rem .85rem}
.bubble.dots i{width:.42rem; height:.42rem; border-radius:50%; background:var(--ink-3); animation:dot 1.2s infinite ease-in-out}
.bubble.dots i:nth-child(2){animation-delay:.15s} .bubble.dots i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,60%,100%{opacity:.3; transform:none} 30%{opacity:1; transform:translateY(-.18rem)}}
.x{display:grid; place-items:center; flex:none; width:2.75rem; height:2.75rem; border:0; border-radius:50%; background:none; color:inherit; cursor:pointer}
.composer{display:flex; align-items:flex-end; gap:.5rem; padding:.6rem .7rem calc(.6rem + env(safe-area-inset-bottom)); border-top:1px solid var(--rule); background:var(--paper)}
.composer.inline{border:1px solid var(--rule); border-top:0; border-radius:0 0 14px 14px; padding:.6rem .7rem}
.composer textarea{flex:1; min-height:2.75rem; max-height:10rem; resize:none; border:1px solid var(--rule); border-radius:1.4rem; padding:.55rem .95rem; font:1.0625rem/1.4 var(--sans)}
.composer .send{display:grid; place-items:center; flex:none; width:2.75rem; height:2.75rem; border:0; border-radius:50%; background:var(--act); color:var(--ink); cursor:pointer}
.composer .send .icon{width:1.35rem; height:1.35rem; stroke-width:2.4}
.chips{display:flex; flex-direction:column; align-items:flex-end; gap:.45rem; margin-top:auto}
.chip{min-height:2.75rem; padding:.5rem .95rem; border:1.5px solid var(--ink); border-radius:1.4rem; background:var(--paper); color:var(--ink); font:600 .97rem/1.25 var(--sans); text-align:left; cursor:pointer}
.chip:hover{background:var(--ink); color:#fff}
dialog.im{padding:0; flex-direction:column; width:min(25rem, calc(100vw - 1.5rem)); height:min(40rem, calc(100dvh - 3rem)); overflow:hidden; border-radius:16px}
dialog.im[open]{display:flex}
.im-top{display:flex; align-items:center; gap:.7rem; padding:.6rem .4rem .6rem 1rem; background:var(--ink); color:#fff}
.im-top .avatar{background:#fff; font-size:.85rem}
.im-top h2{margin:0; font-size:1.05rem; color:#fff}
.im-top p{margin:0; font-size:.85rem; line-height:1.3; color:#d5dde7}
.im-top p.here::before{content:""; display:inline-block; width:.5rem; height:.5rem; margin-right:.4rem; border-radius:50%; background:#63d394}
.im-top .x{margin-left:auto} .im-top .x:hover{background:rgba(255,255,255,.14)}
dialog.im .thread{flex:1; max-height:none; margin:0; padding:.6rem 1rem 1rem}
dialog.im .msg{margin:0 1rem; min-height:0}
@media (min-width:40rem){dialog.im{margin:auto 1.5rem 1.5rem auto} dialog.im::backdrop{background:rgba(20,38,59,.2)}}
.peek{position:fixed; right:1rem; bottom:calc(var(--bar) + 4.6rem + env(safe-area-inset-bottom)); z-index:9; max-width:min(18rem, calc(100vw - 2rem)); padding:.6rem .85rem; border:1px solid var(--rule); border-radius:16px 16px 4px 16px;
  background:var(--paper); color:var(--ink); font:1rem/1.35 var(--sans); text-align:left; box-shadow:0 6px 20px rgba(20,38,59,.18); cursor:pointer; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden}
@media (min-width:56rem){.peek{bottom:5.2rem; right:1.5rem}}

/* tables of numbers and of rules */
table.num{width:100%; border-collapse:collapse; margin:0 0 1.4rem; font-size:.98rem}
table.num th{text-align:left; font:600 .86rem/1.2 var(--sans); text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3); padding:.4rem .5rem .4rem 0; border-bottom:2px solid var(--ink)}
table.num td{padding:.5rem .5rem .5rem 0; border-bottom:1px solid var(--rule); vertical-align:middle}
table.num .n{text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; width:1%; padding-left:1rem}
table.num input{min-height:2.5rem; padding:.3rem .5rem; font-size:1rem}
table.num input[type=number]{width:5.5rem; text-align:right}
.checks{display:flex; flex-wrap:wrap; gap:.2rem 1.4rem; margin:0 0 .8rem}
.checks .check{margin:0}
details.group{border:1px solid var(--rule); border-radius:8px; padding:0 1rem; margin:0 0 .6rem}
details.group[open]{padding-bottom:.6rem}
details.group > summary{min-height:var(--tap); display:flex; align-items:center; flex-wrap:wrap; gap:0 .3rem; cursor:pointer}
.sticky{position:sticky; bottom:calc(var(--bar) + .5rem); background:#fff; padding:.8rem 0; border-top:1px solid var(--rule); z-index:5}
@media (min-width:56rem){.sticky{bottom:0}}
.steps{list-style:none; margin:0 0 1.4rem; padding:0; counter-reset:step}
.steps > li{counter-increment:step; padding:0 0 1.2rem 2.6rem; position:relative}
.steps > li::before{content:counter(step); position:absolute; left:0; top:0; width:1.8rem; height:1.8rem; border-radius:50%; background:var(--ink); color:#fff; font:600 .95rem/1.8rem var(--sans); text-align:center}
.steps > li > h3{padding-top:.2rem; margin-bottom:.6rem}

/* what we know, and what happened */
dl.know{margin:0 0 1rem; border-top:2px solid var(--ink)}
dl.know dt{font-size:.82rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); padding-top:.8rem}
dl.know dd{margin:0; padding:.15rem 0 .8rem; border-bottom:1px solid var(--rule)}
dl.know dd p{margin:0} dl.know .meta, .story .meta{font-size:.94rem; color:var(--ink-3)}
.know-add{display:grid; gap:.5rem; margin-bottom:1.2rem; justify-items:start}
.know-add input{width:100%}
ol.story{list-style:none; margin:0 0 1.2rem; padding:0; border-top:2px solid var(--ink)}
ol.story > li{display:grid; grid-template-columns:5.2rem minmax(0,1fr); gap:.8rem; padding:.8rem 0; border-bottom:1px solid var(--rule)}
ol.story time{font-size:.94rem; color:var(--ink-3)}
ol.story p{margin:0} ol.story .what{font-weight:600}
ol.story .detail{white-space:pre-line; color:var(--ink-2); margin:.15rem 0}
ol.story li.did .what, ol.story li.person .what{font-weight:400; color:var(--ink-2)}
/* an automation, drawn as a flow from top to bottom */
.flow{margin:1.2rem 0}
.node{position:relative; border:1px solid var(--rule); border-radius:8px; padding:1rem; margin:0 0 1.6rem; background:#fff; box-shadow:0 2px 6px rgba(20,38,59,.08)}
.node::after{content:""; position:absolute; left:1.9rem; top:100%; height:1.6rem; border-left:2px solid var(--ink)}
.node > header{display:flex; align-items:center; gap:.6rem; margin:0 0 .8rem}
.node > header h2{margin:0; font-size:1.1rem}
.node .kind{font:700 .8rem/1 var(--sans); letter-spacing:.06em; text-transform:uppercase; padding:.4rem .55rem; border-radius:4px; background:var(--ink); color:#fff}
.node.when .kind{background:var(--act); color:var(--ink)}
.node.if .kind{background:var(--wash); color:var(--ink)}
.node .tools{margin-left:auto; display:flex; gap:.9rem}
.node .tools .link{padding:0; min-height:var(--tap)}
.node .tools .link[disabled]{opacity:.35; text-decoration:none; cursor:default}
.node > select{width:100%; margin:0 0 1rem; font-weight:600}
.node > :last-child{margin-bottom:0}
.cond{display:grid; gap:.5rem; padding:.7rem 0; border-top:1px solid var(--rule)}
.cond-rest{display:flex; flex-wrap:wrap; gap:.5rem; align-items:center}
.cond-rest > select,.cond-rest > input[type=text]{flex:1 1 12rem}
.cond .link{padding:0; justify-self:start}
label.inline{display:inline-flex; align-items:center; gap:.4rem; white-space:nowrap}
label.inline input{width:5rem}
@media (min-width:48rem){.cond{grid-template-columns:15rem 1fr auto; align-items:center}}
ol.steps{list-style:none; margin:.7rem 0; padding:0; counter-reset:step}
ol.steps li{counter-increment:step; display:grid; grid-template-columns:1.6rem 1fr; gap:0 .5rem; padding:.3rem 0}
ol.steps li > span{grid-column:2}
ol.steps li::before{content:counter(step); grid-column:1; grid-row:1 / span 2; font:700 .8rem/1.5rem var(--sans); width:1.5rem; height:1.5rem; text-align:center; border-radius:50%; background:var(--wash); color:var(--ink)}
ol.steps li.done::before{background:#d3ebdd; color:#12432b}
ol.steps li.failed::before,ol.steps li.doing::before{background:#f3d3c2; color:#7a2e05}
ol.steps li.asking::before{background:#f6dcbd}
ol.steps li.to-come > span:first-of-type{color:var(--ink-3)}
ol.steps .meta{margin:0}
/* touch: a press answers at once, a page arrives quietly, and on a phone a dialog is a sheet that rises to the thumb */
.btn:active,.slot:active{transform:scale(.98)}
.rows a.go:active{background:var(--wash)}
#view > *,#body > *{animation:arrive .18s ease-out}
@keyframes arrive{from{opacity:0; transform:translateY(6px)}}
@keyframes sheet{from{transform:translateY(100%)}}
@keyframes dim{from{opacity:0}}
dialog[open]::backdrop{animation:dim .3s ease-in-out}
@media (max-width:39.99rem){
  dialog{margin:auto 0 0; width:100%; max-width:100%; max-height:90dvh; border-radius:16px 16px 0 0; padding:1.4rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom))}
  dialog[open]{animation:sheet .3s ease-in-out}
  dialog.im{width:100%; height:92dvh; max-height:92dvh; padding:0; border-radius:16px 16px 0 0}
  .btns > .btn{flex:1 1 auto}
  .top .desk{display:none}
}
@media (prefers-reduced-motion:reduce){
  #view > *,#body > *,dialog[open],dialog[open]::backdrop{animation:none}
  .btn:active,.slot:active{transform:none}
  .bubble.dots i{animation:none}
}

/* a sheet */
h2 .change{float:right; padding:0; font-size:1rem; font-weight:400; min-height:var(--tap); margin-top:-.7rem}

/* a meeting's run sheet */
.run{list-style:none; margin:0 0 1.6rem; padding:0; border-top:2px solid var(--ink)}
.run > li{border-bottom:1px solid var(--rule); padding:.1rem 0}
.run .meta{font-size:.94rem; color:var(--ink-3)}
.run li.done .check > span{color:var(--ink-3)}
.run li.late .meta{color:var(--warn); font-weight:600}
.run details{margin:0 0 .9rem 2.4rem}
.run .btn{margin-bottom:.4rem}
body[data-at=sheet] .fab, body[data-at=score] .fab, body[data-at=book] .fab{display:none}

/* Apple's Human Interface Guidelines, measured: every target is at least 44 by 44 points, and a view has one filled button */
.top button.avatar{width:2.75rem; height:2.75rem}
main :is(p, h2, h3, li, span, td) > a:not(.btn):not(.go):not([class]){display:inline-block; padding:.7rem 0; margin:-.7rem 0; min-width:2.75rem}
button.link{min-width:2.75rem}
input:not([type=checkbox]):not([type=radio]):not([type=file]), select{min-height:2.75rem}
button.link{min-height:2.75rem}
h1 > a{display:inline-flex; align-items:center; min-height:2.75rem}

/* a notice from Quant8 on the home page: one slim line, as a toast is, that stays until it is done or put away */
.notice{display:flex; align-items:center; gap:.25rem; margin:0 0 1.2rem; padding:0 .25rem 0 1rem; border-radius:.9rem; background:var(--ink); color:#fff}
.notice > a{flex:1; display:flex; flex-wrap:wrap; align-items:baseline; gap:0 .7rem; min-height:var(--tap); padding:.6rem 0; align-content:center; color:#fff; text-decoration:none; font-size:.94rem; line-height:1.35}
.notice > a span{text-decoration:underline; text-underline-offset:.16em; white-space:nowrap}
.notice .x{color:#fff; opacity:.75; flex:none}
.notice .x:hover{opacity:1; background:rgba(255,255,255,.12)}
/* the page a person at Quant8 shares on a call: a QR code to sign in */
body.show{background:var(--ink); color:#fff; min-height:100vh; display:grid; place-items:center}
body.show main{display:grid; grid-template-columns:minmax(14rem,42vh) 1fr; gap:5vw; align-items:center; max-width:68rem; padding:5vh 5vw}
body.show .code svg{display:block; width:100%; height:auto; border-radius:.6rem}
body.show .brand{display:flex; align-items:center; gap:.6rem; color:#fff; margin:0 0 2vh}
body.show h1{font-size:clamp(2rem,5vw,4rem); margin:0 0 2vh; color:#fff}
body.show p{font-size:clamp(1.1rem,2.2vw,1.9rem); margin:0 0 1.5vh; overflow-wrap:anywhere}
body.show .address b{color:var(--act)}
@media (max-width:40rem){body.show main{grid-template-columns:1fr}}

/* Kept as an app, the hub reaches the top of the screen, under the status bar. The page starts below the bar, on a band
   of the header's colour. In a browser the bar's height is nothing, so nothing changes. */
body{padding-top:env(safe-area-inset-top)}
body::before{content:""; position:fixed; inset:0 0 auto; height:env(safe-area-inset-top); background:var(--ink); z-index:20}
.top{top:env(safe-area-inset-top)}
@media (display-mode:standalone){
  body{overscroll-behavior-y:none; -webkit-tap-highlight-color:transparent}
  .top, .tabs{-webkit-user-select:none; user-select:none; -webkit-touch-callout:none}
}

/* A row has at most one boxed button. What else it can do is a line of plain links beneath it. */
.acts{display:flex; flex-wrap:wrap; gap:0 1.25rem; margin-top:.25rem}
.acts > :is(a, button, label){display:inline-flex; align-items:center; gap:.35rem; min-height:2.75rem; padding:0; border:0; background:none; font:inherit; font-size:.94rem; color:var(--link);
  text-decoration:underline; text-underline-offset:.16em; cursor:pointer}
.acts > [aria-pressed="true"]{color:var(--good); text-decoration:none; font-weight:600}
.acts .icon{width:1rem; height:1rem}
/* A whole row that is one action: the same shape as a row that is a link. */
.rows button.go{display:block; width:calc(100% + 0rem); margin:-1rem 0; padding:1rem 1.6rem 1rem 0; border:0; background:none; font:inherit; color:inherit; text-align:left; cursor:pointer; position:relative}
.rows button.go::after{content:""; position:absolute; right:.3rem; top:50%; width:.6rem; height:.6rem; border:solid var(--ink-3); border-width:2px 2px 0 0; transform:translateY(-50%) rotate(45deg)}
.rows button.go:hover h3{text-decoration:underline}
.rows button.go:active{background:var(--wash)}
/* A folded group in a long list says what it holds and how much. */
details.fold > summary{display:flex; align-items:baseline; gap:.6rem; list-style:none; padding:.9rem 1.6rem .9rem 0; position:relative}
details.fold > summary::-webkit-details-marker{display:none}
details.fold > summary::after{content:""; position:absolute; right:.3rem; top:1.35rem; width:.6rem; height:.6rem; border:solid var(--ink-3); border-width:0 2px 2px 0; transform:rotate(45deg); transition:transform .15s}
details.fold[open] > summary::after{transform:rotate(-135deg); top:1.6rem}
details.fold > summary h2{margin:0; font-size:1.125rem}
details.fold > summary .count{color:var(--ink-3); font-weight:400; font-size:.94rem}
details.fold > summary + p{margin:-.5rem 0 .9rem}
details.fold .rows{border-top:1px solid var(--rule); margin-bottom:.4rem}
details.fold .rows > li:last-child{border-bottom:0}
/* The account dialog: one thing to save, then a short list of places to go. */
.menu{display:grid; margin:1rem 0 0; border-top:1px solid var(--rule)}
.menu > :is(a, button, label){display:flex; align-items:center; min-height:var(--tap); padding:0; border:0; border-bottom:1px solid var(--rule); background:none; font:inherit; color:var(--ink); text-decoration:none; text-align:left; cursor:pointer}
.menu > :is(a, button, label):hover{color:var(--link)}
.menu > .apart{color:var(--ink-2); border-bottom:0}
@media (prefers-reduced-motion:reduce){ details.fold > summary::after{transition:none} }
.menu > label{justify-content:space-between; gap:1rem; font-weight:400; margin:0}
.menu small{display:block; color:var(--ink-3); font-size:.82rem}
.sheet-head{display:flex; align-items:center; justify-content:space-between}
.sheet-head h2{margin:0; border:0; padding:0}
input.switch{appearance:none; flex:none; width:2.9rem; height:1.75rem; margin:0; border-radius:1rem; background:var(--rule); position:relative; cursor:pointer; transition:background .15s}
input.switch::after{content:""; position:absolute; top:.2rem; left:.2rem; width:1.35rem; height:1.35rem; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(20,38,59,.3); transition:transform .15s}
input.switch:checked{background:var(--good)}
input.switch:checked::after{transform:translateX(1.15rem)}
/* What is next, as a line down the page: when, then what. Only the step waiting on the person carries a button. */
.line{list-style:none; margin:0 0 1.4rem; padding:0}
.line > li{display:grid; grid-template-columns:3.4rem .9rem minmax(0,1fr); column-gap:.6rem; position:relative; padding:0 0 1.15rem}
.line > li::before{content:""; grid-column:2; grid-row:1; width:.7rem; height:.7rem; margin:.4rem auto 0; border-radius:50%; border:2px solid var(--ink-3); background:var(--paper); position:relative; z-index:1}
.line > li::after{content:""; position:absolute; left:calc(4.45rem - 1px); top:.9rem; bottom:-.4rem; width:2px; background:var(--rule)}
.line > li:last-child{padding-bottom:0}
.line > li:last-child::after{display:none}
.line > li.now::before{border-color:var(--act); background:var(--act)}
.line .when{grid-column:1; grid-row:1; text-align:right; font:600 .78rem/1.5rem var(--sans); letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3)}
.line .now .when{color:var(--ink)}
.line .what{grid-column:3; grid-row:1; min-width:0}
.line h3{margin:0; font-size:1.0625rem; line-height:1.4}
.line h3 a{color:inherit; text-decoration:none}
.line h3 a:hover{text-decoration:underline}
.line p{margin:.1rem 0 0}
.line .meta{color:var(--ink-2); font-size:.94rem}
.line .btns{margin-top:.5rem; display:block}
.line .btns .btn{width:auto; min-height:2.75rem; padding:.45rem 1.3rem}
.line .acts{margin-top:-.15rem}
/* A few places to go, as small pills. */
.quick{display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1.8rem}
.quick > :is(a, button){display:inline-flex; align-items:center; min-height:2.75rem; padding:0 1rem; border:1px solid var(--rule); border-radius:2rem; background:var(--paper); color:var(--ink); font:inherit; font-size:.94rem; font-weight:600; text-decoration:none; cursor:pointer}
.quick > :is(a, button):hover{border-color:var(--ink)}
@media (prefers-reduced-motion:reduce){ input.switch, input.switch::after{transition:none} }
.line > li.held{color:var(--ink-3)}
.line > li.held h3{font-weight:400}
