/* Caliper's upload page. Layout and sizes from the approved wireframe (docs/design/flow-v2.html); accent: David's
   blue #b1ddfc with black text, the same in light and dark. Follows the computer's light/dark setting unless the
   switch in the top bar (theme.js) picks one. */
:root {
  --bg: #f6f6f4; --panel: #fff; --tx: #1c1c1b; --mu: #6b6a66; --faint: #a19f9a;
  --bd: #e5e4e0; --bd2: #cfcec9; --fill: #ecebe7; --fill2: #dcdbd6; --sel: #f1f1ee;
  --pri: #b1ddfc; --pri-h: #9cd3fb; --onpri: #000; --tint: #eef7fe; --line: #78bff3; --bar: #6fb7ee;
  --focus: #3a8fd8; --warn: #9a5800; --warn-dot: #e59a2b; --err: #b42318;
  --shadow: 0 1px 2px rgba(28, 28, 20, .04), 0 2px 10px rgba(28, 28, 20, .04);
  --shade: rgba(20, 20, 18, .32);
  color-scheme: light;
}
/* dark: when chosen with the switch (data-theme="dark"), or on Auto when the computer is set to dark */
:root[data-theme="dark"] {
  --bg: #131313; --panel: #1c1c1c; --tx: #ededec; --mu: #9d9c97; --faint: #6d6c68;
  --bd: #2c2c2b; --bd2: #44433f; --fill: #272726; --fill2: #383836; --sel: #232323;
  --pri: #b1ddfc; --pri-h: #c6e7fd; --onpri: #000; --tint: #1b2730; --line: #b1ddfc; --bar: #b1ddfc;
  --focus: #b1ddfc; --warn: #f2b45c; --warn-dot: #f2b45c; --err: #ff8a7a;
  --shadow: none; --shade: rgba(0, 0, 0, .55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131313; --panel: #1c1c1c; --tx: #ededec; --mu: #9d9c97; --faint: #6d6c68;
    --bd: #2c2c2b; --bd2: #44433f; --fill: #272726; --fill2: #383836; --sel: #232323;
    --pri: #b1ddfc; --pri-h: #c6e7fd; --onpri: #000; --tint: #1b2730; --line: #b1ddfc; --bar: #b1ddfc;
    --focus: #b1ddfc; --warn: #f2b45c; --warn-dot: #f2b45c; --err: #ff8a7a;
    --shadow: none; --shade: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

/* Headline font: Min Sans by Tien-Min Liao (Typeji, sold by Future Fonts), the font WAL Dashboard uses (David,
   2026-10-13), for the screens' main titles (Medium) and the "Caliper" wordmark (Bold). WAL bought out the font
   (David, 2026-10-13); these are WAL's own web font files (v0.300, upright only). */
@font-face {
  font-family: "Caliper Display";
  src: url("/static/minsans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Caliper Display";
  src: url("/static/minsans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--tx); min-height: 100vh;
       font: 15px/1.5 system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", sans-serif;
       -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
img { display: block; }
.mu { color: var(--mu); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* header */
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px;
          border-bottom: 1px solid var(--bd); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.3px; width: 160px;
        color: inherit; text-decoration: none; border-radius: 8px; }
.logo:hover .mark { background: var(--pri-h); }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--pri); display: flex; align-items: center; justify-content: center; }
.mark svg { width: 20px; height: 20px; fill: #000; }
.spacer { width: 160px; display: flex; justify-content: flex-end; }
/* light/dark switch: one round button that steps Auto -> Light -> Dark; the icon shows the current choice */
.themeb { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bd2); background: none; color: var(--mu); padding: 0;
          display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color .15s, border-color .15s; }
.themeb:hover { color: var(--tx); border-color: var(--mu); }
.themeb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.themeb .fill { fill: currentColor; stroke: none; }
.crumbs { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; color: var(--faint); font-size: 14px; }
.crumbs li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.crumbs .n { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--bd2); display: flex; align-items: center;
             justify-content: center; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.crumbs .on { color: var(--tx); font-weight: 500; }
.crumbs .on .n { background: var(--pri); border-color: var(--pri); color: var(--onpri); }
.crumbs .done { color: var(--mu); }
.crumbs .done .n { border-color: var(--mu); color: var(--mu); }
.crumbs .n svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

main { max-width: 1080px; margin: 0 auto; padding: 56px 40px 120px; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -.4px; margin: 0 0 8px; line-height: 1.25; }
/* only the main titles and the wordmark get the display font (Min Sans) */
main h1, .dhead h1, .logo { font-family: "Caliper Display", system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", sans-serif; }
main h1, .dhead h1 { font-size: 34px; font-weight: 500; letter-spacing: -.5px; line-height: 1.15; }
.sub { color: var(--mu); margin: 0 0 36px; }
.sub.tight { margin-bottom: 24px; }
.note { color: var(--faint); font-size: 13px; text-align: center; margin-top: 18px; }
.hint { color: var(--mu); font-size: 14px; margin-top: 14px; }
.err { color: var(--err); font-size: 14px; margin: 14px 0 0; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
       border-radius: 10px; border: 1px solid var(--bd2); background: var(--panel); color: var(--tx); font-weight: 500;
       cursor: pointer; transition: background-color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--sel); }
.btn.pri { background: var(--pri); color: var(--onpri); border-color: var(--pri); }
.btn.pri:hover { background: var(--pri-h); border-color: var(--pri-h); }
.btn:disabled { opacity: .45; cursor: default; }
.btn:disabled:hover { background: var(--panel); }
.btn.pri:disabled:hover { background: var(--pri); border-color: var(--pri); }
/* second-most important action (Endre filnavn): the main button's size, the page's own background, a blue edge */
.btn.sec { border: 1.5px solid var(--line); }
.btn.sec:hover { background: var(--tint); }
.btn.big { height: 52px; padding: 0 28px; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--mu); text-decoration: underline; text-underline-offset: 3px;
        cursor: pointer; }
.link:hover { color: var(--tx); }
.link.quiet { display: inline-block; margin-top: 16px; font-size: 14px; }

/* 1: drop */
.drop { height: 380px; border: 2px dashed var(--bd2); border-radius: 20px; display: flex; flex-direction: column; align-items: center;
        justify-content: center; gap: 14px; background: var(--panel); transition: border-color .15s, background-color .15s; }
.drop.over { border-color: var(--line); background: var(--tint); }
.drop .big { font-size: 22px; font-weight: 500; }
.drop .btn { margin-top: 6px; }
.icon { width: 52px; height: 52px; border-radius: 50%; background: var(--pri); display: flex; align-items: center; justify-content: center; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 2: publishers */
.strip { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 0 0 36px; padding: 18px 20px; background: var(--panel);
         border: 1px solid var(--bd); border-radius: 14px; box-shadow: var(--shadow); }
.strip figure { margin: 0; text-align: center; }
.strip figcaption { font-size: 12px; color: var(--mu); margin-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strip .more-tile { align-self: center; color: var(--mu); font-size: 14px; padding: 0 8px; }
.ban { background: var(--fill); border-radius: 4px; overflow: hidden; }
.ban img, img.ban { width: 100%; height: 100%; object-fit: contain; }
.shot { border-radius: 4px; box-shadow: 0 0 0 1px var(--bd); background: var(--fill); }
.skipped { margin: -22px 0 26px; }
.pubs { background: var(--panel); border: 1px solid var(--bd); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.pub { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 22px; border: 0; border-top: 1px solid var(--bd);
       background: none; text-align: left; cursor: pointer; transition: background-color .12s; }
.pub:first-child { border-top: 0; }
button.pub:hover { background: var(--sel); }
.pub.on, button.pub.on:hover { background: var(--tint); }
.box { width: 20px; height: 20px; border: 1.5px solid var(--bd2); border-radius: 5px; flex: none; display: flex; align-items: center;
       justify-content: center; background: var(--panel); }
.box svg { width: 14px; height: 14px; fill: none; stroke: var(--onpri); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pub.on .box { background: var(--pri); border-color: var(--pri); }
.pub.on .box svg { opacity: 1; }
.pub .name { font-weight: 500; width: 150px; flex: none; }
.pub .sites { color: var(--mu); flex: 1; font-size: 14px; }
.pub .fit { font-size: 14px; color: var(--mu); white-space: nowrap; }
.pub .fit b { color: var(--tx); font-weight: 500; }
.foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.btns { display: flex; gap: 12px; }

/* own limit */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.choice { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--bd); border-radius: 14px;
          padding: 18px 20px; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.choice:hover { border-color: var(--bd2); }
.choice.on { border: 2px solid var(--line); padding: 17px 19px; background: var(--tint); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--bd2); flex: none; margin-top: 2px; background: var(--panel); }
.choice.on .radio { border: 6px solid var(--pri); background: #000; }
.choice b { font-weight: 500; display: block; }
.choice b + span { color: var(--mu); font-size: 14px; }
.kbin { display: inline-flex; align-items: center; gap: 8px; color: var(--mu); }
.in { height: 40px; border: 1px solid var(--bd2); border-radius: 9px; background: var(--panel); color: var(--tx); padding: 0 12px;
      font: inherit; width: 100%; }
.in:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.in.bad { border-color: var(--err); }
.kbin .in { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.lims .pub { gap: 18px; padding: 8px 22px; cursor: default; min-height: 58px; }
.lims .kbin .in { height: 34px; }
.lims .fillall { flex: 1; color: var(--mu); }
.lims .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lims .fname div { font-size: 13px; color: var(--mu); }
.thumbw { width: 72px; height: 40px; display: flex; align-items: center; justify-content: center; flex: none; }

/* 3: questions */
.qcard { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; background: var(--panel);
         border: 1px solid var(--bd); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.qimg { margin: 0; }
.qframe { height: 300px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 10px; padding: 16px; }
.qframe img { max-width: 100%; max-height: 100%; box-shadow: 0 0 0 1px var(--bd); border-radius: 3px; }
.qimg figcaption { font-size: 13px; color: var(--mu); margin-top: 8px; overflow-wrap: anywhere; }
.qcard h2 { font-size: 22px; font-weight: 600; margin: 0 0 10px; letter-spacing: -.2px; }
.opt { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 60px; padding: 0 20px; margin-top: 12px;
       border: 1px solid var(--bd2); border-radius: 12px; background: var(--panel); color: var(--tx); cursor: pointer;
       transition: border-color .12s, background-color .12s; }
.opt:first-of-type { margin-top: 20px; }
.opt:hover { border-color: var(--line); background: var(--tint); }
.opt b { font-weight: 500; }
.opt span { color: var(--mu); font-variant-numeric: tabular-nums; }
.opt:disabled { opacity: .5; cursor: default; }
.bg { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--mu); font-size: 14px; }
.bg .bar { width: 220px; }

/* bars */
.bar { height: 6px; background: var(--fill); border-radius: 3px; overflow: hidden; flex: none; }
.bar i { display: block; height: 100%; width: 0; background: var(--bar); border-radius: 3px; transition: width .3s; }
.bar.tight i { background: var(--warn-dot); }
.bar.run i { width: 35%; animation: run 1.2s ease-in-out infinite; }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

/* 4: done */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.top .btns { flex: none; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--bd); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.card .thumb { height: 130px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 8px;
               margin-bottom: 12px; padding: 10px; }
.card .thumb img { max-width: 100%; max-height: 110px; box-shadow: 0 0 0 1px var(--bd); border-radius: 2px; transition: opacity .2s; }
.card.wait .thumb img { opacity: .4; }
.card .fn { font-size: 13px; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
            overflow: hidden; min-height: 2.9em; line-height: 1.45; }
.card .bar { width: 100%; margin-top: 10px; }
.card .kb { font-size: 13px; color: var(--mu); margin-top: 6px; display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.card .flag { font-size: 13px; margin-top: 6px; color: var(--mu); }
.card .flag.tight { color: var(--warn); display: flex; gap: 7px; align-items: baseline; }
.card .flag.tight::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn-dot); flex: none; transform: translateY(-1px); }
.left { margin-top: 36px; background: var(--panel); border: 1px solid var(--bd); border-radius: 14px; box-shadow: var(--shadow); }
.left summary { padding: 16px 22px; cursor: pointer; font-weight: 500; list-style: none; display: flex; align-items: center; gap: 10px; }
.left summary::-webkit-details-marker { display: none; }
.left summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--mu); border-bottom: 2px solid var(--mu);
                        transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.left[open] summary::before { transform: rotate(45deg) translate(-2px, -1px); }
.lrow { display: flex; align-items: center; gap: 18px; padding: 14px 22px; border-top: 1px solid var(--bd); }
.lrow .lthumb { width: 64px; height: 44px; display: flex; align-items: center; justify-content: center; flex: none; }
.lrow .lthumb img { max-width: 100%; max-height: 100%; box-shadow: 0 0 0 1px var(--bd); border-radius: 2px; }
.lrow .lthumb .ban { width: 44px; height: 32px; }
.lrow .lname { width: 230px; flex: none; min-width: 0; overflow-wrap: anywhere; }
.lrow .lname div { font-size: 13px; color: var(--mu); }
.lrow .why { flex: 1; color: var(--mu); font-size: 14px; }
.lrow .fix { display: flex; align-items: center; gap: 8px; flex: none; }
.lrow .fix .in { width: 84px; height: 36px; text-align: right; }
.more { display: flex; gap: 28px; margin-top: 28px; }

/* rename panel */
.shade { position: fixed; inset: 0; background: var(--shade); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--panel); border-left: 1px solid var(--bd);
          display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease;
          box-shadow: -12px 0 40px rgba(0, 0, 0, .12); }
body.renaming { overflow: hidden; }
body.renaming .shade { opacity: 1; pointer-events: auto; }
body.renaming .drawer { transform: none; }
.dhead { padding: 24px 30px 0; }
.dhead h1 { font-size: 28px; }
.dsub { margin-bottom: 18px; }
.dbody { padding: 18px 30px; overflow: auto; flex: 1; }
.dfoot { padding: 18px 30px; border-top: 1px solid var(--bd); display: flex; justify-content: flex-end; gap: 12px; }
.tabs { display: inline-flex; border: 1px solid var(--bd2); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 4px; }
.tabs button { padding: 7px 16px; border-radius: 7px; color: var(--mu); font-size: 14px; border: 0; background: none; cursor: pointer; }
.tabs button:hover { color: var(--tx); }
.tabs .on, .tabs .on:hover { background: var(--pri); color: var(--onpri); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 3px; padding: 12px 10px; border: 1px solid var(--bd); border-radius: 12px;
         margin-bottom: 8px; position: relative; }
.fchip { position: relative; display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--sel);
         border: 1px solid var(--bd); font-size: 14px; cursor: grab; user-select: none; -webkit-user-select: none; }
.fchip.lock { color: var(--mu); cursor: default; }
.fchip.lock svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; margin-right: 2px; }
.fchip.dragging { opacity: .35; }
.fchip.before { box-shadow: -3px 0 0 var(--line); }
.fchip.after { box-shadow: 3px 0 0 var(--line); }
/* remove button: a small badge on the chip's corner, shown on hover or keyboard focus (keeps chips the wireframe's size) */
.fchip .x { position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 50%; padding: 0; cursor: pointer;
            border: 1px solid var(--bd2); background: var(--panel); color: var(--mu); display: flex; align-items: center;
            justify-content: center; opacity: 0; transition: opacity .12s; }
.fchip:hover .x, .fchip:focus-within .x { opacity: 1; }
.fchip .x:hover { color: var(--tx); border-color: var(--mu); }
.fchip .x svg { width: 8px; height: 8px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fsep { color: var(--faint); }
.addf { padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--bd2); color: var(--mu); font-size: 14px; margin-left: 2px;
        background: none; cursor: pointer; }
.addf:hover { color: var(--tx); border-color: var(--mu); }
.menu { position: absolute; z-index: 2; background: var(--panel); border: 1px solid var(--bd2); border-radius: 10px; padding: 4px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, .16); min-width: 160px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 7px; font-size: 14px; cursor: pointer; }
.menu button:hover { background: var(--sel); }
.help { font-size: 13px; color: var(--mu); }
.fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 18px 0 22px; }
/* a label that must wrap moves its badge to a line of its own, and the boxes stay level across the row */
.fields > div { display: flex; flex-direction: column; justify-content: flex-end; }
.fields label { font-size: 13px; color: var(--mu); display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin-bottom: 5px; }
.found { font-size: 11.5px; line-height: 1.6; background: var(--pri); color: var(--onpri); border-radius: 5px; padding: 0 5px; white-space: nowrap; }
.opt2 { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--bd);
        border-radius: 12px; margin-bottom: 10px; }
.opt2 .t { font-size: 14px; }
.opt2 .d { color: var(--mu); display: block; font-size: 13px; }
.sw { width: 40px; height: 24px; border-radius: 12px; background: var(--fill2); position: relative; flex: none; border: 0; cursor: pointer;
      transition: background-color .15s; padding: 0; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
             box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .15s; }
.sw[aria-checked="true"] { background: var(--pri); }
.sw[aria-checked="true"]::after { left: 19px; background: #000; box-shadow: none; }
.pv { margin-top: 18px; }
.pv .lab { font-size: 13px; color: var(--mu); margin-bottom: 8px; overflow-wrap: anywhere; }
.pvrow { padding: 9px 0; border-top: 1px solid var(--bd); font-size: 13px; }
.pvrow .old { color: var(--faint); text-decoration: line-through; overflow-wrap: anywhere; }
.pvrow .new { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; margin: 2px -6px 0; padding: 2px 6px;
              border-radius: 5px; border: 0; background: none; text-align: left; width: calc(100% + 12px); cursor: text; overflow-wrap: anywhere; }
.pvrow .new:hover { background: var(--sel); }
.pvrow .new.edited::after { content: "  endret"; color: var(--mu); font-family: system-ui, -apple-system, sans-serif; font-size: 12px; }
.pvrow input.in { height: 30px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; margin-top: 2px; }

/* sign-in page (login.html): the logo and one centred card, option A of the mockup (David, 2026-10-12) */
main.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
             padding: 40px 16px; }
.login .logo { width: auto; cursor: default; }
.lcard { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--bd); border-radius: 16px; padding: 30px;
         box-shadow: var(--shadow); }
.lcard h1 { margin-bottom: 4px; }
.lcard .mu { margin: 0 0 20px; }
.lcard .btn { width: 100%; margin-top: 16px; }
.lcard .err { margin-top: 8px; }
.pwf { position: relative; }
.pwf .in { height: 44px; padding-right: 48px; font-size: 16px; }
.eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none;
       color: var(--faint); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.eye:hover { color: var(--tx); }
.eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eye .off { display: none; }
.eye.on .off { display: inline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .topbar { padding: 0 16px; }
  .crumbs { display: none; }
  .spacer, .logo { width: auto; }
  main { padding: 32px 16px 80px; }
  .qcard, .choices, .fields { grid-template-columns: 1fr; }
  .qcard { padding: 20px; gap: 20px; }
  .pub .sites { display: none; }
  .top { flex-direction: column; }
  .lrow { flex-wrap: wrap; }
  .lrow .lname { width: auto; flex: 1; }
  .dhead, .dbody, .dfoot { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
