/* The customer portal. Builds on ../styles.css and the judge app's form pieces (../play/play.css):
   the same paper, ink and marigold, laid out for someone checking on their game between other jobs.
   White cards on paper, one marigold action at a time, figures in Hanken Grotesk tabular numerals. */

/* ---- frame: the footer sits at the foot of a short page ---- */
body{min-height:100vh;display:flex;flex-direction:column}
body > main{flex:1 0 auto}
.portal-wrap{width:min(1100px,100%)}
main.portal-wrap{padding-block:28px 72px;display:grid;gap:16px;align-content:start}
.site-head .portal-wrap{min-height:64px;gap:16px}
/* the links: beside the logo on a wide screen; on a phone one row under it, so nothing scrolls sideways */
.portal-nav{display:flex;align-items:center;gap:4px}
.portal-nav[hidden],.portal-nav a[hidden]{display:none}
.portal-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;font:600 15.5px var(--body);color:var(--text);text-decoration:none;white-space:nowrap}
.portal-nav a:hover{color:var(--pine)}
.portal-nav a[aria-current="page"]{color:var(--pine-ink);box-shadow:inset 0 -3px var(--gold);border-radius:10px 10px 0 0}
@media(max-width:860px){
  .site-head .portal-wrap{flex-wrap:wrap;min-height:64px;padding-top:0;gap:0 12px}
  .site-head .logo{min-height:64px}
  .site-head .portal-wrap > .btn{margin-block:0}
  .portal-nav{order:3;width:100%;gap:0;border-top:1px solid var(--line)}
  .portal-nav a{flex:1 1 0;min-width:0;justify-content:center;padding:0 4px;font-size:15px;border-radius:0}
  .portal-nav a[aria-current="page"]{border-radius:0}
}
.site-head .who{min-width:0;font-size:14.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:640px){.site-head .who{display:none}}
.site-head .btn{flex:none}

/* staff looking at a customer's page */
.as-customer{background:var(--ink);color:#E6EEEA;border-top:1px solid var(--line)}
.as-customer p{max-width:none;margin:0 auto;width:min(1100px,100%);padding:9px 20px;font:600 14.5px/1.45 var(--body)}
.as-customer a{color:var(--gold);margin-left:4px}
.as-customer a:hover{color:var(--paper)}

.portal{display:grid;gap:clamp(28px,4vw,40px)}
.portal section{padding-block:0}
.portal h1{font-size:clamp(32px,5.4vw,48px)}
.portal h2{font-size:clamp(24px,3.2vw,30px)}
.portal h3{font-size:20px}
.portal h1:focus-visible[tabindex="-1"]{outline:none}
.page-head{display:grid;gap:12px;justify-items:start}
.page-head .lede{max-width:60ch}
.portal .back{margin-bottom:-12px;text-decoration:none}
.portal .back:hover{text-decoration:underline}

.portal-foot{border-top:1px solid var(--line);padding-block:24px 36px}
.portal-foot .wrap{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;align-items:baseline}
.portal-foot p,.portal-foot a{font-size:15px;color:var(--muted)}
.portal-foot a{color:var(--pine-ink)}

/* ---- sign in ---- */
.signin{display:grid;gap:18px;width:min(520px,100%);margin-inline:auto;padding-top:clamp(8px,4vw,40px)}
.signin form.stack .actions .btn{flex:1 1 180px}

/* ---- status: Live / Paused / Coming soon / Finished ---- */
.status{display:inline-flex;align-items:center;gap:7px;flex:none;font:700 13px/1 var(--body);padding:7px 11px;border-radius:999px;white-space:nowrap}
.status.live{background:var(--mint);color:var(--on-mint)}
.status.live::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--pine)}
.status.paused{background:var(--gold-soft);color:var(--ink)}
.status.draft{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.status.ended{background:var(--shut);color:var(--on-shut)}

/* ---- home: your games ---- */
.games{display:grid;gap:16px}
@media(min-width:760px){.games{grid-template-columns:repeat(2,1fr)}}
.game-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:6px 16px;align-content:start;background:var(--card);
  border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);text-decoration:none;color:var(--text)}
.game-card:hover{box-shadow:var(--shadow),inset 0 0 0 1.5px var(--pine);color:var(--text)}
.game-card .tile{grid-row:1/span 3}
.game-card-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.game-card-top b{font:600 22px/1.2 var(--display);color:var(--ink);letter-spacing:-.01em;font-variation-settings:"SOFT" 50}
.game-card-where{font-size:15.5px;color:var(--muted)}
.game-card-month{margin-top:8px;padding-top:12px;border-top:1px solid var(--line);font-size:15.5px;color:var(--text)}
.game-card-month b{font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.game-card.clash{background:var(--sand);box-shadow:none}
.game-card.clash:hover{box-shadow:inset 0 0 0 1.5px var(--pine)}
.game-card.clash .game-card-month{border-top-color:var(--line-2)}

/* the mint tile that carries an icon */
.tile{width:52px;height:52px;border-radius:14px;background:var(--mint);color:var(--pine);display:grid;place-items:center}
.tile svg{width:28px;height:28px}

/* ---- a game ---- */
.game{display:grid;gap:clamp(32px,4.5vw,48px)}
.game-head{display:grid;gap:14px;justify-items:start}
.game-facts{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;max-width:none;font-size:16px;line-height:1.55;color:var(--muted)}
.game-facts .status{align-self:center}
.game-facts > span:not(.status){flex:1 1 280px}
.game-head .notice{max-width:66ch}
.player-link{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--pine-ink)}
.player-link svg{width:17px;height:17px}
/* the quick actions under a game's title: only on a phone, where "Look after your trail" is a long scroll away */
.quick-actions{display:none}
@media(max-width:699px){
  .quick-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
  .quick-actions .btn{flex:1 1 0;min-width:max-content;min-height:44px;padding-inline:14px}
}

/* how it's going */
.numbers{display:grid;gap:14px}
.numbers-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px}
.period-dates{font-size:15.5px;color:var(--muted);margin-top:-4px}
.numbers-body{display:grid;gap:18px;transition:opacity .15s ease}
.numbers-body[aria-busy="true"]{opacity:.45}
@media(prefers-reduced-motion:reduce){.numbers-body{transition:none}}

/* the period switch: four pills, the chosen one in ink */
.period{border:0;margin:0;padding:4px;display:grid;grid-template-columns:repeat(2,1fr);gap:4px;background:var(--card);
  border-radius:20px;box-shadow:inset 0 0 0 1px var(--line-2);width:100%}
@media(min-width:640px){.period{display:inline-flex;width:auto;border-radius:999px}}
.period label{position:relative;display:block;cursor:pointer}
.period input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.period span{display:grid;place-items:center;min-height:42px;padding:8px 16px;border-radius:999px;text-align:center;
  font:600 15px/1.2 var(--body);color:var(--text);white-space:nowrap}
.period label:hover span{background:var(--sand)}
.period input:checked + span{background:var(--ink);color:var(--paper)}
.period input:focus-visible + span{outline:2px solid var(--focus);outline-offset:2px}

/* the four figures (five for a hunt) */
.figures{margin:0;display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:900px){.figures{grid-template-columns:repeat(4,minmax(0,1fr))}.figures.five{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:899px){.figures.five .figure:last-child{grid-column:1/-1}}
.figure{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 18px 20px;display:grid;
  grid-template-rows:auto auto 1fr;gap:8px;align-content:start}
.figure dt{font:600 12.5px/1.3 var(--body);letter-spacing:.1em;text-transform:uppercase;color:var(--pine-ink)}
.figure dd{margin:0}
/* label, value and note line up across a row of figures, even when one label wraps */
@supports (grid-template-rows:subgrid){
  .figures{grid-auto-rows:auto}
  .figure{grid-row:span 3;grid-template-rows:subgrid;row-gap:8px}
}
.fig-value{font:700 clamp(30px,4vw,40px)/1.05 var(--body);color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.fig-value.held{font:600 17px/1.35 var(--body);color:var(--muted);letter-spacing:0}
.fig-note{font-size:14px;line-height:1.45;color:var(--muted)}

/* nothing to count */
.empty{display:flex;align-items:center;gap:18px;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}
.empty svg{flex:none;width:44px;height:44px;color:var(--pine);opacity:.75}
.empty p{font-size:17px;color:var(--text)}
.problem{display:grid;gap:12px;justify-items:start}

/* the two charts */
.detail{display:grid;gap:18px}
@media(min-width:980px){.detail{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);align-items:start}}
.block{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px clamp(18px,3vw,26px) 24px;display:grid;gap:10px;min-width:0}
.block-note{font-size:15px;line-height:1.55;color:var(--muted)}

/* how far teams get: a bar per stop, as a share of the teams that started */
.bars{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:14px}
.bars li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:baseline}
.bar-name{display:flex;gap:10px;align-items:baseline;min-width:0;font-weight:600;color:var(--ink);font-size:16px;line-height:1.35}
.bar-name span:last-child{min-width:0;overflow-wrap:anywhere}
.bar-n{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--gold);color:var(--on-gold);
  font:700 12.5px/1 var(--body);transform:translateY(-1px)}
.bar-count{font-size:15px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.bar-count b{color:var(--ink);font-weight:700;margin-right:6px}
.bar-track{grid-column:1/-1;height:12px;border-radius:999px;background:var(--sand);overflow:hidden}
.bar-fill{display:block;height:100%;border-radius:999px;background:var(--pine);min-width:4px}

/* week by week: columns for the teams that started, a darker foot for those that finished */
.cols{list-style:none;margin:12px 0 0;padding:0;display:flex;gap:8px;align-items:flex-end;border-bottom:1.5px solid var(--line-2)}
.cols.many{gap:2px}
.cols li{flex:1 1 0;min-width:0}
.col-area{display:block;position:relative;height:150px}
.col-bar{position:absolute;inset:auto 0 0;height:calc(var(--h) * 1.3px);border-radius:6px 6px 0 0;
  background:color-mix(in srgb,var(--pine) 30%,var(--card));overflow:hidden}
.cols.many .col-bar{border-radius:2px 2px 0 0}
.col-bar.zero{height:0}
.col-done{position:absolute;inset:auto 0 0;height:var(--f);background:var(--pine)}
.col-v{position:absolute;inset:auto 0 calc(var(--h) * 1.3px + 4px);text-align:center;font:700 13px/1 var(--body);
  color:var(--ink);font-variant-numeric:tabular-nums}
.cols-axis{display:flex;justify-content:space-between;gap:12px;max-width:none;font-size:12.5px;line-height:1.2;color:var(--muted)}
/* one label under each column: the same flex as the columns, so they line up */
.cols-axis.each{gap:8px}
.cols-axis.each span{flex:1 1 0;min-width:0;text-align:center;white-space:nowrap}
.legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px;color:var(--muted);margin-top:2px}
.legend .key{width:12px;height:12px;border-radius:3px;margin-left:10px}
.legend .key:first-child{margin-left:0}
.legend .key.started{background:color-mix(in srgb,var(--pine) 30%,var(--card))}
.legend .key.done{background:var(--pine)}

/* ---- look after your game ---- */
.look-after{display:grid;gap:18px}
.shortcuts{display:grid;gap:14px}
@media(min-width:640px){.shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.shortcuts .shortcut:last-child{grid-column:1/-1}}
@media(min-width:980px){
  .shortcuts{grid-template-columns:repeat(6,minmax(0,1fr))}
  .shortcuts .shortcut{grid-column:span 2}
  .shortcuts .shortcut:nth-child(n+4){grid-column:span 3}
}
.shortcut{display:grid;grid-template-columns:52px minmax(0,1fr) 20px;gap:16px;align-items:center;background:var(--card);
  border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow);text-decoration:none;color:var(--text)}
.shortcut:hover{box-shadow:var(--shadow),inset 0 0 0 1.5px var(--pine);color:var(--text)}
.shortcut-text{display:grid;gap:4px;min-width:0}
.shortcut-text b{font:600 20px/1.2 var(--display);color:var(--ink);letter-spacing:-.01em;font-variation-settings:"SOFT" 50}
.shortcut-text span{font-size:15px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.shortcut .go{width:20px;height:20px;color:var(--gold-dk)}
/* something to know rather than somewhere to go: sand, flat, no arrow */
.shortcut.info{grid-template-columns:52px minmax(0,1fr);background:var(--sand);box-shadow:none}
.shortcut.info .tile{background:var(--card)}

/* ---- a game's own pages: stops, opening and pausing, the offer ---- */
.part{display:grid;gap:clamp(22px,3vw,30px);min-width:0}
.part-grid{display:grid;gap:18px;align-items:start}
@media(min-width:900px){.part-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* .portal .panel, not .panel: a section on these pages has its block padding taken off (above) */
.portal .panel{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(20px,3vw,28px);display:grid;gap:14px;min-width:0}
.panel.narrow{max-width:680px}
.portal .panel h2{font-size:clamp(22px,2.6vw,26px)}
.portal .panel h3{font-size:19px}
.state-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;max-width:none;font-size:16.5px;color:var(--text)}
.state-line.plain{flex-wrap:nowrap;align-items:flex-start}
.state-line.plain svg{flex:none;width:22px;height:22px;color:var(--pine);margin-top:2px}
.state-line b{color:var(--ink);font-variant-numeric:tabular-nums}
.hint{font-size:14.5px;line-height:1.5;color:var(--muted)}

/* forms on these pages: fields straight on the card (play.css boxes a form.stack; these aren't) */
.stack-form{display:grid;gap:16px;min-width:0}
.stack-form .field,.stop-form .field{gap:6px}
textarea.input{overflow:hidden;resize:none}
textarea.input.short{min-height:0}
.portal .input::placeholder{color:var(--muted);opacity:1}
.input.code{letter-spacing:.06em;font-weight:600}
.count{justify-self:end;font-size:13.5px;line-height:1.3;color:var(--muted);font-variant-numeric:tabular-nums}
.form-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.form-foot .btn svg{width:16px;height:16px}
.form-msg{display:flex;gap:8px;align-items:flex-start;font-size:15px;line-height:1.5;max-width:60ch}
.form-msg:empty{display:none}
.form-msg.done{color:var(--pine-ink);font-weight:600}
.form-msg.done svg{flex:none;width:18px;height:18px;margin-top:2px}
.form-msg.alert{background:#FBE3D9;color:#7A2A12;border-radius:12px;padding:10px 14px}
.times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.times .input{min-width:0}

/* step-free: three pills, one chosen (real radio buttons, drawn as pills) */
.step-free{border:0;margin:0;padding:0;display:grid;gap:10px;min-width:0}
.step-free legend{padding:0;margin-bottom:10px;font:600 16px/1.3 var(--body);color:var(--ink)}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill-choice{position:relative;display:block;cursor:pointer}
.pill-choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.pill-choice span{display:grid;place-items:center;min-height:44px;padding:8px 18px;border-radius:999px;background:var(--card);
  box-shadow:inset 0 0 0 1.5px var(--line-2);font:600 15.5px/1.2 var(--body);color:var(--ink);text-align:center}
.pill-choice:hover span{background:var(--sand)}
.pill-choice input:checked + span{background:var(--ink);color:var(--paper);box-shadow:none}
.pill-choice input:focus-visible + span{outline:2px solid var(--focus);outline-offset:2px}
.step-says{margin:0;font-size:14.5px;line-height:1.45;color:var(--muted)}

/* stops: one card each, what players see on the left and what you look after on the right */
.stops-body{display:grid;gap:14px}
.stops-sum{font-size:16px;color:var(--muted)}
.stop-list{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.stop{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(18px,3vw,26px);display:grid;gap:20px;min-width:0}
@media(min-width:900px){.stop{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:20px 36px;align-items:start}}
.stop.is-closed{box-shadow:var(--shadow),inset 0 0 0 2px var(--gold)}
.stop-main{display:grid;gap:12px;align-content:start;min-width:0}
.stop-top{display:flex;align-items:center;gap:12px;min-width:0}
.stop-top .pill-unsaved{align-self:center;margin-left:0;flex:none}
.stop-n{flex:none;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--gold);color:var(--on-gold);
  font:700 14px/1 var(--body);font-variant-numeric:tabular-nums}
.portal .stop-name{font-size:22px;line-height:1.2;min-width:0;overflow-wrap:anywhere}
.stop-teaser{display:grid;gap:2px}
.stop-teaser p:last-child{font-size:16.5px;line-height:1.5;color:var(--ink)}
.stop-label,.stop-facts dt{font:600 12px/1.3 var(--body);letter-spacing:.1em;text-transform:uppercase;color:var(--pine-ink)}
.stop-closing{display:grid;gap:12px;justify-items:start;min-width:0}
.stop-closing .actions{margin:0}
.closed-says{display:grid;gap:8px;justify-items:start;background:var(--gold-soft);border-radius:12px;padding:12px 14px;width:100%}
.closed-says .status{background:var(--card)}
.closed-says p{font-size:15.5px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
.close-panel{display:grid;gap:12px;width:100%;background:var(--paper);border-radius:12px;padding:14px;box-shadow:inset 0 0 0 1px var(--line)}
.close-panel .input{background:var(--card)}
.stop-form{display:grid;gap:16px;min-width:0}
@media(min-width:900px){.stop-form,.stop-facts{border-left:1px solid var(--line);padding-left:36px}}
.stop-facts{margin:0;display:grid;gap:14px;align-content:start}
.stop-facts div{display:grid;gap:3px}
.stop-facts dd{margin:0;font-size:16px;line-height:1.5;color:var(--text);overflow-wrap:anywhere;white-space:pre-line}
.story-note{display:flex;gap:12px;align-items:center;max-width:none;background:var(--sand);border-radius:var(--radius-sm);padding:14px 18px;font-size:16px}
.story-note svg{flex:none;width:28px;height:28px;color:var(--pine)}

/* the offer: where it stands, the form, and the finish-screen block as players see it */
.offer-state{display:flex;gap:12px;align-items:flex-start;max-width:none}
.offer-state svg{flex:none;width:22px;height:22px;margin-top:2px;color:var(--ink)}
.offer-state.off{background:var(--sand)}
.offer-side{align-content:start}
.offer-preview{background:var(--paper);border-radius:var(--radius-sm);padding:4px 16px;box-shadow:inset 0 0 0 1px var(--line);width:min(100%,420px);justify-self:center}
/* on a phone the frame would make the block narrower than it is on a player's phone: drop it */
@media(max-width:560px){.offer-preview{background:none;box-shadow:none;padding:0}}
.preview-empty{margin:16px 0;text-align:center;color:var(--muted);font-size:15.5px}
/* walk.css's .offer rules (the finish screen), copied here for the preview only */
.offer-preview .offer{background:var(--gold-soft);border:2px solid var(--gold);border-radius:var(--radius);padding:16px 18px;margin:16px 0;text-align:center;color:var(--ink);overflow-wrap:anywhere}
.offer-preview .offer .offer-text{margin:0 0 8px;font-weight:600}
.offer-preview .offer .offer-code{margin:0 0 8px;font:700 32px/1.1 var(--display);letter-spacing:.08em;color:var(--ink)}

/* ---- the organisation's own pages: orders, help, people ---- */
.org-pick{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:-8px;font:600 14px/1.4 var(--body);color:var(--ink)}
.org-pick .input{width:auto;min-width:0;max-width:100%;min-height:44px;padding:8px 14px}
.panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.tile.small{width:40px;height:40px;border-radius:12px}
.tile.small svg{width:22px;height:22px}
.empty.quiet{background:var(--paper);box-shadow:inset 0 0 0 1px var(--line);padding:18px}
.empty.quiet svg{width:34px;height:34px}
.empty.quiet p{font-size:16px}
.portal select.input{appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23063132' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:18px}

/* the game page's shortcuts when the lead also has People: two rows of three */
@media(min-width:640px){.shortcuts.six .shortcut:last-child{grid-column:auto}}
@media(min-width:980px){.shortcuts.six .shortcut,.shortcuts.six .shortcut:nth-child(n+4){grid-column:span 2}}
/* four cards: two rows of two */
@media(min-width:640px){.shortcuts.four .shortcut:last-child{grid-column:auto}}
@media(min-width:980px){.shortcuts.four .shortcut,.shortcuts.four .shortcut:nth-child(n+4){grid-column:span 3}}
/* the quiet line about the printed kit, under the shortcuts */
.kit-line{margin:16px 0 0;max-width:none;font-size:15.5px;line-height:1.5;color:var(--muted)}
.kit-line a{font-weight:600;color:var(--pine-ink)}

/* status pills for orders and conversations, beside the game ones */
.status.order-received{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.status.order-printing,.status.thread-waiting{background:var(--gold-soft);color:var(--ink)}
.status.order-sent,.status.thread-answered{background:var(--mint);color:var(--on-mint)}
.status.order-cancelled{background:var(--shut);color:var(--on-shut)}

/* orders: one card each, newest first */
.orders-body{display:grid;gap:14px}
.orders{list-style:none;margin:0;padding:0;display:grid;gap:16px;align-items:start}
@media(min-width:980px){.orders{grid-template-columns:repeat(2,minmax(0,1fr))}}
.order{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(18px,3vw,26px);display:grid;gap:14px;min-width:0}
.order.fresh{box-shadow:var(--shadow),inset 0 0 0 2px var(--pine)}
.order-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px}
.portal .order-h{font-size:21px;line-height:1.25}
.order-for{font-size:15.5px;color:var(--muted);margin-top:-8px}
.order-lines{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.order-lines li{display:grid;grid-template-columns:2.4em minmax(0,1fr);gap:10px;align-items:baseline;font-size:16.5px;color:var(--ink)}
.order-lines b{font-variant-numeric:tabular-nums;text-align:right;font-weight:700}
.order-lines span{overflow-wrap:anywhere}
.order-cancelled{font-size:16px;color:var(--text)}
.order-note{background:var(--sand);border-radius:12px;padding:12px 14px;font-size:15.5px;line-height:1.5;color:var(--ink);max-width:none;overflow-wrap:anywhere}
.order-facts{margin:0;display:grid;gap:12px;padding-top:14px;border-top:1px solid var(--line)}
@media(min-width:700px){.order-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px}}
.order-facts div{display:grid;gap:3px;min-width:0;align-content:start}
.order-facts dt{font:600 12px/1.3 var(--body);letter-spacing:.1em;text-transform:uppercase;color:var(--pine-ink)}
.order-facts dd{margin:0;font-size:15.5px;line-height:1.5;color:var(--text);white-space:pre-line;overflow-wrap:anywhere}
/* received, being printed, sent */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.steps li{position:relative;display:grid;justify-items:center;align-content:start;gap:6px;text-align:center}
.steps li + li::before{content:"";position:absolute;top:13px;right:calc(50% + 18px);width:calc(100% - 30px);height:2px;background:var(--line-2)}
.steps li.done + li.done::before{background:var(--pine)}
.step-dot{position:relative;z-index:1;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--card);box-shadow:inset 0 0 0 2px var(--line-2)}
.steps li.done .step-dot{background:var(--pine);box-shadow:none;color:var(--card)}
.step-dot svg{width:16px;height:16px}
.step-text{display:grid;gap:1px;font-size:14px;line-height:1.35;color:var(--muted)}
.step-text b{font-size:14.5px;font-weight:600;color:var(--text)}
.steps li.now .step-text b{color:var(--ink);font-weight:700}

/* a manager or viewer: what there is to ask the lead for */
.ask-lead{font-weight:600}
.catalogue{list-style:none;margin:0;padding:0;display:grid}
.catalogue li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 16px;padding:14px 0;border-top:1px solid var(--line)}
.catalogue li:first-child{border-top:0;padding-top:0}
.item-text{display:grid;gap:3px;min-width:0;flex:1 1 220px}
.item-text b{font:600 17px/1.3 var(--body);color:var(--ink)}
.item-text > span{font-size:15px;line-height:1.5;color:var(--muted)}
.item-text .price,.catalogue .price{font-size:15px;font-weight:600;color:var(--pine-ink)}

/* a new order: the items, then where it's going */
.order-form{display:grid;gap:18px;align-items:start}
@media(min-width:900px){.order-form{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
.items{list-style:none;margin:0;padding:0;display:grid}
.item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;padding:16px 0;border-top:1px solid var(--line)}
.item:first-child{border-top:0;padding-top:4px}
.qty{display:inline-flex;align-items:center;gap:6px;flex:none}
.qty-btn{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--paper);color:var(--ink);
  box-shadow:inset 0 0 0 1.5px var(--line-2);cursor:pointer}
.qty-btn svg{width:18px;height:18px}
@media(hover:hover){.qty-btn:hover{box-shadow:inset 0 0 0 1.5px var(--pine)}}
.qty-btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.qty-n{width:4.6em;min-height:46px;padding:8px 6px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums;-moz-appearance:textfield}
.qty-n::-webkit-inner-spin-button,.qty-n::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.order-sum{background:var(--paper);border-radius:12px;padding:12px 14px;box-shadow:inset 0 0 0 1px var(--line);font-size:15.5px}
.order-sum-h{font:600 12px/1.3 var(--body);letter-spacing:.1em;text-transform:uppercase;color:var(--pine-ink);margin-bottom:6px}
.order-sum ul{list-style:none;margin:0;padding:0;display:grid;gap:3px;color:var(--ink)}
.order-sum li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 14px}
.order-sum .sum-price{color:var(--muted);font-variant-numeric:tabular-nums}
.order-sum .order-total{margin:10px 0 0;padding-top:10px;border-top:1px solid var(--line);font-weight:700;color:var(--ink)}
.order-sum b{font-variant-numeric:tabular-nums}
.order-foot{display:flex;justify-content:flex-end;margin-top:-6px}
.order-foot.restore{justify-content:flex-start;margin-top:0}
.order-foot.restore .btn{min-height:44px}
.order-help{margin:-4px 0 0;font-size:15.5px}
.order-help a{font-weight:600;color:var(--pine-ink)}
.form-foot a.small{font-weight:600;color:var(--pine-ink)}

/* help: the guides, and the conversations */
.help-grid{display:grid;gap:18px;align-items:start}
@media(min-width:900px){.help-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}.help-grid.solo{grid-template-columns:minmax(0,680px)}}
.guide-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.guide-link{display:grid;grid-template-columns:40px minmax(0,1fr) 18px;gap:14px;align-items:center;padding:10px 12px 10px 10px;border-radius:14px;
  background:var(--paper);text-decoration:none;color:var(--ink);font:600 16.5px/1.35 var(--body)}
.guide-link:hover{box-shadow:inset 0 0 0 1.5px var(--pine);color:var(--ink)}
.guide-link .go{width:18px;height:18px;color:var(--gold-dk)}
.threads{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.thread-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:14px 16px;border-radius:14px;
  background:var(--paper);text-decoration:none;color:var(--text)}
.thread-row:hover{box-shadow:inset 0 0 0 1.5px var(--pine);color:var(--text)}
.thread-text{display:grid;gap:3px;min-width:0;flex:1 1 220px}
.thread-text b{font:600 16.5px/1.35 var(--body);color:var(--ink);overflow-wrap:anywhere}
.thread-text span{font-size:14.5px;color:var(--muted)}

/* one guide */
.guide{display:grid;gap:18px;min-width:0}
.portal .guide-body{max-width:760px;gap:0}
.guide-body > :first-child{margin-top:0}
.guide-body p,.guide-body li{font-size:17px;line-height:1.6;color:var(--text);max-width:64ch}
.guide-body p{margin:0 0 14px}
.portal .guide-body h2{font-size:21px;line-height:1.3;margin:22px 0 8px}
.guide-body ol,.guide-body ul{margin:0 0 14px;padding-left:1.4em;display:grid;gap:6px}
.guide-body b{color:var(--ink);font-weight:700}
.guide-body a{color:var(--pine-ink);font-weight:600}
.guide-more{display:grid;gap:14px;max-width:760px}
.guide-note{max-width:760px}
.guide-more .guide-link{background:var(--card);box-shadow:var(--shadow)}

/* one conversation: our messages and theirs, told apart by side, colour and name */
.thread{display:grid;gap:clamp(22px,3vw,30px);min-width:0}
.thread-facts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;max-width:none;font-size:15.5px;color:var(--muted)}
.portal .thread-head h1{font-size:clamp(28px,4.4vw,40px);overflow-wrap:anywhere}
.messages{list-style:none;margin:0;padding:0;display:grid;gap:14px;max-width:820px}
.msg{display:grid;gap:6px;max-width:min(640px,92%);padding:14px 18px 12px;border-radius:18px}
.msg.from-us{justify-self:start;background:var(--mint);border-bottom-left-radius:6px}
.msg.from-them{justify-self:end;background:var(--card);box-shadow:var(--shadow);border-bottom-right-radius:6px}
.msg-who{display:flex;align-items:center;gap:8px;font:700 14px/1.3 var(--body);color:var(--ink)}
.msg.from-us .msg-who{color:var(--pine-ink)}
.msg-who img{width:22px;height:22px}
.msg-body{font-size:16.5px;line-height:1.55;color:var(--ink);white-space:pre-line;overflow-wrap:anywhere}
.msg-when{font-size:13px;color:var(--muted)}
.msg.from-them .msg-when{text-align:right}
.reply-form{max-width:820px}
.ask-form{max-width:720px}
.ask-about-one{font-size:16.5px;color:var(--text)}

/* people */
.people-grid{align-items:start}
.people-lists{display:grid;gap:18px;min-width:0}
.people{list-style:none;margin:0;padding:0;display:grid}
.person{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:12px 0;border-top:1px solid var(--line)}
.person:first-child{border-top:0}
.person-text{display:grid;gap:2px;min-width:0;flex:1 1 200px}
.person-name{font-size:16.5px;overflow-wrap:anywhere}
.person-name b{font-weight:600;color:var(--ink)}
.person-text .you{font-size:14.5px;color:var(--muted)}
.person-role{font-size:14.5px;color:var(--muted)}
.person-act{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:0 4px;margin-left:auto}
.person-act .btn-remove{margin-left:0}
.person.gone{padding-block:14px}
.person.gone .person-text{color:var(--text)}
.role-edit{flex:1 1 100%;display:grid;gap:8px;padding:12px 14px;border-radius:12px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line)}
.role-edit label{font:600 14px/1.4 var(--body);color:var(--ink)}
.role-edit-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.role-edit-row .input{flex:1 1 160px;min-width:0;width:auto}
.role-edit .hint,.role-edit .form-msg{margin:0}
.confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--ink)}
.game-people{display:grid;gap:4px;padding-top:12px;border-top:1px solid var(--line)}
.game-people:first-of-type{border-top:0;padding-top:0}
.portal .game-people h3{font-size:18px}
.roles{border:0;margin:0;padding:0;display:grid;gap:8px;min-width:0}
.roles legend{font:600 14px/1.4 var(--body);color:var(--ink);margin-bottom:8px;padding:0}
.role{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;padding:12px 14px;border-radius:14px;background:var(--paper);
  box-shadow:inset 0 0 0 1px var(--line);cursor:pointer}
.role:has(input:checked){box-shadow:inset 0 0 0 2px var(--pine);background:var(--card)}
.role input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--pine)}
.role > span{display:grid;gap:2px}
.role b{font-size:16px;color:var(--ink)}
.role span span{font-size:14.5px;line-height:1.45;color:var(--muted)}
.invite{display:grid;gap:12px;padding-top:4px}
.invite .form-msg{margin:0}
.invite-text{font-size:15px;line-height:1.5;white-space:pre-wrap;background:var(--paper)}
.narrow-notice{max-width:680px}
