/* Import: the pieces of this redesigned screen only (docs/mockups/redesign/); shared ones are
   css/widgets.css. Colours come from the tokens in style.css only. #app is wide on this route (the full review
   tables), so the screen keeps its own narrow column, as on the phone; a table inside the fold scrolls sideways. */
.imp2{display:flex;flex-direction:column;gap:14px;max-width:560px;margin-inline:auto;padding-block-end:24px;padding-inline:4px}
.imp2 .card{display:flex;flex-direction:column;gap:12px;margin:0;min-width:0}
.imp2 .btn.block{margin:0}
.imp2 .note{margin:0}
.imp2-drop{border-style:dashed;border-color:var(--a);box-shadow:none}
.imp2-drop .note{text-align:start;align-self:stretch}
.imp2-drop .btn.block{align-self:stretch}
.imp2-hint{color:var(--mut);font-size:.82rem}
@media (max-width:639px){.imp2-drop .imp2-hint{display:none}} /* a phone has no file to drop on the card */
.imp2-file{margin:0;font-weight:700;overflow-wrap:anywhere;text-align:start}
.imp2-h{margin:0;flex:1;font-size:1.15rem}
.imp2-sub{margin:0;color:var(--mut);font-size:.86rem;display:flex;align-items:center;gap:6px}
.imp2 .facts .fact b{font-variant-numeric:tabular-nums}
.imp2-fold .inside .f{margin:0}
.imp2-fold .inside h4,.imp2-extra h4{margin:6px 0 0}
.imp2-fold .inside .grid2{gap:10px}
.imp2-problems,.imp2-notes{max-height:300px;overflow:auto}
.imp2-fs{max-height:240px;overflow:auto}
.imp2-actions .btn{min-height:48px}
.imp2-conf h3{margin:0;display:flex;align-items:center;gap:8px}
.imp2-conf .actions{margin:0}
.imp2-past .inside{gap:8px}
.imp2-past .btn.sm{min-height:48px;min-width:48px}
.imp2 .list .item{cursor:default}
/* the column names of a file are long: the value takes the rest of the line and wraps, never over its label */
.imp2 .kv{grid-template-columns:max-content minmax(0,1fr)}
/* Re-import (views/import/quick.js): a label around a hidden file input; beside a glucose row on Today and Glucose */
.reimp{cursor:pointer}
.reimp:focus-within{outline:2px solid var(--a);outline-offset:2px}
.reimp-row{display:flex;gap:8px;align-items:stretch}
.reimp-row>.navrow{flex:1;min-width:0}
.btn.reimp-side{flex:none;margin:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:80px;padding:8px 10px;font-size:.8rem;border-radius:var(--r)}
/* The one import's Recognised card: a row per file, its name wraps, the kinds to choose as chips. */
.imp3-files .imp3-name{overflow-wrap:anywhere}
.imp3-ask{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.imp3-files .btn.block{margin-top:10px}
.imp3-files .imp3-fail{color:var(--red);font-weight:600}
.imp3-ask>small{flex-basis:100%}
/* Me > Sensors and connections: a service or capability is a row, its name and note, its state at the end (no icon) */
.src-st{grid-template-columns:minmax(0,1fr) auto;row-gap:2px;align-items:center;cursor:default}
/* the state sits at the end of the name's line and the note takes the row's full width under both: beside the pill
   a note wrapped to one or two words a line at 390 px */
.src-st>.tt{display:contents}
.src-st>.tt>b{grid-row:1;grid-column:1}
.src-st>.tt>small{grid-row:2;grid-column:1/-1;color:var(--mut);font-size:.8rem}
.src-st>:not(.tt){grid-row:1;grid-column:2}
.src-row{grid-template-columns:auto minmax(0,1fr);cursor:default}
.src-st>.pill,.src-st>.btn{justify-self:end}
.src-off{grid-template-columns:minmax(0,1fr);cursor:default}
.src-list .item{min-height:48px;padding-block:6px}
.src-list .item small{line-height:1.35}
/* no word alone on a last line (Chromium; elsewhere the plain wrap) */
.src-list .item :is(b,small),.src-note{text-wrap:pretty}
