/* MP Trasporti panel. AmplioFlow look: ink, nebbia and one accent (verde), lots of air.
   Tokens from the AmplioFlow design system (01-colori) and amplioflow.com (css/styles.css,
   light theme). Fonts self-hosted, SIL OFL 1.1: fonts/OFL.txt. */

@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url(fonts/syne.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --ink: #0C0D10;          /* inchiostro: header, primary text on light */
  --text: #17181E;         /* grafite */
  --muted: #5E5B56;        /* 6.8:1 on white */
  --nebbia: #EFEDE6;
  --page: #F7F6F2;         /* nebbia, lighter: the page */
  --surface: #FFFFFF;
  --line: #E4E1D8;
  --line-strong: #D3CFC4;
  --accent: #35DD79;       /* verde acido: the one accent (buttons, active, focus) */
  --accent-ink: #0E7A42;   /* verde for text and links on light, 5.4:1 */
  --accent-soft: #E3F8EC;
  --bad: #A4231B;  --bad-soft: #FBEDEB;
  --warn: #8A5A00; --warn-soft: #FFF6E0;
  --radius: 10px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Syne", "Hanken Grotesk", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--text); background: var(--page); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header */
.topbar { background: var(--ink); color: var(--nebbia); }
.topbar .wrap { display: flex; align-items: center; gap: 36px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--nebbia); text-decoration: none; }
.brand:hover { color: #fff; }
.mainnav { display: flex; gap: 26px; flex: 1; flex-wrap: wrap; }
.mainnav a { color: #A9A59D; text-decoration: none; padding: 19px 0 17px; border-bottom: 2px solid transparent; font-weight: 500; }
.mainnav a:hover { color: var(--nebbia); }
.mainnav a[aria-current="page"] { color: var(--nebbia); border-bottom-color: var(--accent); }
.mainnav .count { display: inline-block; min-width: 1.5em; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: #2A2B31; color: var(--nebbia); font-size: .75rem; text-align: center; line-height: 1.5; }
.userbox { display: flex; align-items: center; gap: 16px; font-size: .875rem; color: #A9A59D; }
.userbox strong { color: var(--nebbia); font-weight: 500; }
.userbox a { color: #A9A59D; }
.userbox a:hover { color: var(--nebbia); }
.userbox form { margin: 0; }
.linkbutton { background: none; border: 0; padding: 0; font: inherit; color: #A9A59D; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbutton:hover { color: var(--nebbia); }

/* ---- page */
main.wrap { flex: 1; padding-top: 36px; padding-bottom: 72px; }
main.wrap > :first-child { margin-top: 0; }
h1 { font-family: var(--display); font-weight: 700; font-size: 1.75rem; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 6px; color: var(--ink); }
h2 { font-size: 1.05rem; font-weight: 650; margin: 0 0 14px; color: var(--ink); }
h3 { font-size: .95rem; font-weight: 650; margin: 22px 0 10px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 70ch; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.pagehead .lead { margin-bottom: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 22px; }
.card > :last-child { margin-bottom: 0; }
section.card { overflow-x: auto; }
section.card { scroll-margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.hint { color: var(--muted); font-size: .875rem; max-width: 80ch; }

/* ---- messages */
.messages { list-style: none; padding: 0; margin: 0 0 24px; }
.messages li { padding: 11px 16px; border-radius: 8px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); }
.messages .success { border-left-color: var(--accent); }
.messages .error { border-left-color: var(--bad); color: var(--bad); background: var(--bad-soft); border-color: #F1D3CF; }
.messages .warning { border-left-color: var(--warn); }
.notice { padding: 11px 16px; border-radius: 8px; margin: 0 0 16px; background: var(--page); border: 1px solid var(--line); }
.notice.bad { background: var(--bad-soft); border-color: #F1D3CF; color: var(--bad); }

/* ---- tables */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th, tr.head th { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom-color: var(--line-strong); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
table.kv th { width: 30%; font-weight: 500; color: var(--muted); }
table.list tbody tr:hover td { background: #FBFAF7; }
table.list td a.code { font-weight: 600; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; }
table.list td a.code:hover { color: var(--accent-ink); text-decoration: underline; }
/* The whole row opens the job: the code's link covers the row (no JavaScript). */
table.list, table.list tbody tr { position: relative; }
table.list td { -webkit-user-select: text; user-select: text; }
table.list a.rowlink::after { content: ""; position: absolute; inset: 0; }
table.list tbody tr:hover { cursor: pointer; }
table.list tbody tr:focus-within td { background: var(--accent-soft); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
#dati table.kv th, #dati table.kv td { padding: 5px 12px; vertical-align: middle; }
#dati input[type=text], #dati input[type=date], #dati input[type=number], #dati select { padding: 5px 9px; }
tr.missing th, tr.missing td { background: var(--bad-soft); }
tr.low td { background: var(--warn-soft); }
.tablewrap { overflow-x: auto; margin: 0 -26px; padding: 0 26px; }

/* ---- labels: quiet. A dot says who has the next move, never a full colour. */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 9px; border-radius: 999px; background: #F1EFE9; color: #3B392F; font-size: .8rem; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B4B0A8; }
.status.us::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.status.closed { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.status.closed::before { display: none; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; background: #F1EFE9; color: #3B392F; font-size: .8rem; font-weight: 500; }
.badge.ok { background: var(--accent-soft); color: var(--accent-ink); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
/* A label beside text: the same pill as .badge, a step smaller than the text, on its baseline.
   .first when it starts the line (the reason follows it, after a space). */
.flag { display: inline-block; padding: 0 8px; border-radius: 999px; background: #F1EFE9; color: #3B392F; font-family: var(--font); font-size: .78rem; font-weight: 500; line-height: 1.6; vertical-align: baseline; white-space: nowrap; margin-left: 6px; }
/* Inside a sentence (a reason, an outgoing email's row): the size of the text around it. */
.flag.first { margin: 0 3px 0 0; font-size: 1em; line-height: inherit; padding: 0 .55em; }
details.draft > summary .badge { font-size: 1em; padding: 0 .55em; margin-right: 3px; }
.flag.muted { color: var(--muted); }
.flag.missing, .flag.bad { background: var(--bad-soft); color: var(--bad); }
.flag.low { background: var(--warn-soft); color: var(--warn); }
.flag.ok { background: var(--accent-soft); color: var(--accent-ink); }
tr.missing .flag, tr.low .flag { background: var(--surface); }
.why + .why { margin-top: 6px; }
/* The review form under a quote: fields and button stacked with even gaps. */
form.review { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
form.review input[type=text] { max-width: 360px; }
.source { border-bottom: 1px dotted var(--muted); cursor: help; }

/* ---- forms and buttons */
button, input[type=submit], .button { display: inline-block; font: inherit; font-weight: 600; font-size: .9rem; line-height: 1.2; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
button:hover, input[type=submit]:hover, .button:hover { border-color: var(--ink); color: var(--ink); }
button.primary, input[type=submit], .button.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
button.primary:hover, input[type=submit]:hover, .button.primary:hover { background: #2BC86A; border-color: #2BC86A; }
button.quiet { background: transparent; }
input[type=text], input[type=search], input[type=date], input[type=number], input[type=password], select, textarea {
  font: inherit; color: var(--text); padding: 8px 10px; width: 100%; max-width: 440px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
label { font-weight: 500; }
.errorlist { color: var(--bad); margin: 4px 0; padding-left: 18px; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.actions form, .inline-form { display: flex; gap: 8px; align-items: center; margin: 0; flex-wrap: wrap; }
.actions input[type=text] { width: 220px; }
.stack > * + * { margin-top: 12px; }
.form-p p { margin: 0 0 16px; }
.form-p label { display: block; margin-bottom: 4px; }
.form-p ul { list-style: none; padding: 0; margin: 4px 0; }
.form-p ul label { font-weight: 400; display: flex; gap: 8px; align-items: baseline; }

/* ---- "Pratiche": the system's state, then the work queue. One row per thing to decide. */
.system { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 28px; padding: 11px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.system .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.system .dot + span { flex: 1 1 320px; }
.system.working { background: var(--warn-soft); border-color: #F0E2BC; color: var(--warn); }
.system.working .dot { background: var(--warn); animation: pulse 1.4s ease-in-out infinite; }
.system.held { background: var(--bad-soft); border-color: #F1D3CF; color: var(--bad); }
.system.held .dot { background: var(--bad); }
.system .button { padding: 5px 12px; font-size: .85rem; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .system.working .dot { animation: none; } }
.queue { margin: 0 0 36px; }
.queue h2 { font-size: 1.15rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.count { display: inline-block; min-width: 1.6em; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.6; }
.count.quiet { background: #F1EFE9; color: #3B392F; }
.mainnav .count { background: #2A2B31; color: var(--nebbia); margin-left: 4px; }
.todo { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.todo li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 22px; }
.todo li + li { border-top: 1px solid var(--line); }
.todo .what strong { display: block; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.todo .what .who, .todo .what .hint { display: block; font-size: .875rem; color: var(--muted); }
.todo .code, .waiting-list .code { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.todo .button { padding: 9px 18px; white-space: nowrap; }
.empty-todo { margin: 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); max-width: 80ch; }
.waiting-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .9rem; }
.waiting-list li { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; padding: 9px 18px; align-items: baseline; }
.waiting-list li + li { border-top: 1px solid var(--line); }
.waiting-list .code { text-decoration: none; }
.waiting-list .code:hover { text-decoration: underline; color: var(--accent-ink); }
.waiting-list .line { color: var(--text); }
.waiting-list .whom { color: var(--muted); white-space: nowrap; }
h2.listhead { font-size: 1.15rem; margin: 0 0 12px; }

/* ---- filters */
.filters { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(4, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.filters label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.filters input, .filters select { max-width: none; }
.filters .buttons { display: flex; gap: 8px; align-items: center; }
.resultline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; font-size: .875rem; color: var(--muted); }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 22px; font-size: .9rem; }
.empty { padding: 36px 0; text-align: center; color: var(--muted); }

/* ---- demo banner */
.demobar { background: #FFF6E0; border-bottom: 1px solid #F0E2BC; color: var(--warn); font-size: .875rem; }
.demobar .wrap { padding-top: 8px; padding-bottom: 8px; }

/* ---- job page */
details.card { padding-top: 18px; padding-bottom: 18px; }
details.card > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "›"; display: inline-block; width: 1em; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .15s; }
details.card[open] > summary::before { transform: rotate(90deg); }
details.card > summary h2 { margin: 0; }
details.card[open] > summary { margin-bottom: 14px; }
dl.summary { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
dl.summary div { display: flex; flex-direction: column; }
dl.summary dt { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
dl.summary dd { margin: 0; font-weight: 500; color: var(--ink); }
details.draft.done > summary { color: var(--muted); }
form.archive { margin-top: 18px; }
.jobhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.jobhead .meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .9rem; margin-top: 8px; }
.jobhead .meta strong { color: var(--text); font-weight: 500; }
.nextstep { border: 1px solid var(--line-strong); border-left: 4px solid var(--line-strong); }
.nextstep.yours { border-left-color: var(--accent); }
.nextstep .tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nextstep.yours .tag { color: var(--accent-ink); }
.nextstep p.text { font-size: 1.02rem; margin: 6px 0 14px; max-width: 78ch; color: var(--ink); }
.jobhead h1 .status { vertical-align: middle; font-family: var(--font); margin-left: 6px; }
.nextstep .back { margin: 14px 0 0; font-size: .875rem; }
.nextstep .closing textarea { width: 260px; resize: vertical; min-height: 38px; }
/* The job as a story: numbered parts, what the system did as a checklist. */
h2.part { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 34px 0 12px; }
h2.part span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--nebbia); font-size: .75rem; letter-spacing: 0; }
h2.part.now { color: var(--accent-ink); }
h2.part.now span { background: var(--accent); color: var(--ink); }
.arrived p { margin: 0 0 6px; }
.arrived details { border: 0; padding: 4px 0 0; }
ol.story { list-style: none; margin: 0; padding: 0; }
ol.story li { position: relative; padding: 3px 0 3px 28px; }
ol.story li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
ol.story li.waiting::before { content: ""; background: var(--surface); border: 2px solid var(--warn); width: 14px; height: 14px; top: 5px; }
ol.story li.waiting > span:first-child { color: var(--warn); }
.note { color: var(--muted); font-size: .875rem; font-weight: 400; }
details.howto { border: 0; padding: 0; margin: 0 0 14px; font-size: .875rem; }
details.howto summary { color: var(--accent-ink); }
.people { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.people label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.people select { width: 240px; }
pre.body { white-space: pre-wrap; word-break: break-word; background: var(--page); padding: 14px 16px; border-radius: 8px; font: 13px/1.5 var(--mono); max-height: 40em; overflow: auto; margin: 12px 0; border: 1px solid var(--line); }
details:not(.card) { border-bottom: 1px solid var(--line); padding: 10px 0; }
details:not(.card):last-of-type { border-bottom: 0; }
details summary { cursor: pointer; }
details:not(.card)[open] > summary { margin-bottom: 6px; }
ol.timeline { list-style: none; padding: 0; margin: 0; }
ol.timeline > li { position: relative; border-left: 2px solid var(--line); padding: 2px 0 16px 18px; margin-left: 5px; }
ol.timeline > li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
ol.timeline > li.email-in::before { border-color: var(--ink); }
ol.timeline > li.email-out::before { border-color: var(--accent); background: var(--accent); }
ol.timeline details { border: 0; padding: 4px 0 0; }
.when { color: var(--muted); font-size: .8rem; margin-right: 8px; font-variant-numeric: tabular-nums; }
dl.details { margin: 6px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; font-size: .875rem; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; }

/* ---- Come funziona */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--nebbia); font-weight: 700; display: grid; place-items: center; }
.steps li strong { display: block; color: var(--ink); }
.steps .sys, .steps .who { font-weight: 600; color: var(--ink); }
.steps .sys { color: var(--accent-ink); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-bottom: 22px; }
.cols .card { margin: 0; }
ul.plain { padding-left: 18px; margin: 0; }
ul.plain li + li { margin-top: 6px; }

/* ---- Da smistare: each email with its button in sight */
.sortable { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sortable:last-of-type { border-bottom: 0; }
.sorthead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sortable .why { margin: 8px 0 4px; font-size: .9rem; }
.sortable form.actions { display: block; margin-top: 10px; }
.sortable form.actions .hint { margin: 0 0 8px; }
.sortable form.actions button + button { margin-left: 8px; }
.sortable details { border: 0; padding: 4px 0 0; font-size: .9rem; }
dl.glossary { margin: 0; display: grid; gap: 10px; }
dl.glossary dt { font-weight: 600; color: var(--ink); }
dl.glossary dd { margin: 0; color: var(--muted); }

/* ---- footer */
.foot { border-top: 1px solid var(--line); padding: 18px 0 22px; font-size: .8rem; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.poweredby { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.poweredby img { width: 18px; height: 18px; border-radius: 4px; }
.poweredby b { font-weight: 600; color: var(--text); }

/* ---- login */
body.login { background: var(--ink); color: var(--nebbia); justify-content: center; align-items: center; padding: 24px; }
.loginbox { width: 100%; max-width: 380px; }
.loginbox .card { background: var(--surface); color: var(--text); border: 0; padding: 32px 32px 28px; }
.loginbox .brand { display: block; font-size: 1.6rem; margin-bottom: 4px; }
.loginbox .tagline { color: #A9A59D; margin: 0 0 26px; font-size: .9rem; }
.loginbox label { display: block; margin-bottom: 4px; font-size: .875rem; }
.loginbox input[type=text], .loginbox input[type=password] { max-width: none; margin-bottom: 16px; }
.loginbox input[type=submit] { width: 100%; padding: 11px 16px; margin-top: 6px; }
.loginbox .poweredby { margin-top: 26px; color: #8F8F86; }
.loginbox .poweredby b { color: var(--nebbia); }
.loginbox .poweredby img { box-shadow: 0 0 0 1px #2A2B31; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .topbar .wrap { gap: 6px 16px; padding-top: 10px; padding-bottom: 6px; }
  .brand { flex: 1; }
  .mainnav { order: 3; flex-basis: 100%; gap: 2px 18px; }
  .mainnav a { padding: 6px 0; }
  .userbox { gap: 10px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .card { padding: 18px 16px; }
  .tablewrap { margin: 0 -16px; padding: 0 16px; }
  table.list .hide-sm { display: none; }
  .todo li { grid-template-columns: 1fr; padding: 14px 16px; }
  .todo li .button { justify-self: start; }
  .waiting-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* The assistant's box on the job page (assistant/templates/assistant/_box.html). */
.assistant .ask { display: flex; flex-direction: column; gap: 10px; }
.assistant .suggested { display: flex; flex-wrap: wrap; gap: 8px; }
.assistant .own { display: flex; gap: 10px; align-items: flex-start; }
.assistant .own textarea { flex: 1; resize: vertical; min-height: 44px; }
.assistant .exchanges { list-style: none; margin: 16px 0 0; padding: 0; }
.assistant .exchanges li { border-top: 1px solid var(--line); padding: 12px 0; }
.assistant .question { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.assistant .question .when { font-weight: 400; color: var(--muted); font-size: .875rem; margin-right: 6px; }
.assistant .answer { white-space: pre-line; max-width: 78ch; }
.assistant .pending, .assistant .noanswer { margin: 0; color: var(--muted); }
.assistant .noanswer { color: var(--bad); }
.assistant .refusal { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--bad-soft); color: var(--bad); }
.assistant button:disabled, .assistant textarea:disabled { opacity: .5; cursor: default; }
