/* Sharing a report and the free fix pack it earns: the share window, the panel that greets a fresh scan, the line under "Fix first",
   the free option in the pack panel and the booking window. Tokens come from tokens.css; --pass-ink comes from premium.css. */

/* ---- The share window ---------------------------------------------------------------------------------------------- */
dialog.mdl--share { width: min(680px, 96vw); max-height: min(94vh, 860px); }
.sh { display: grid; gap: 20px; padding: 8px 0 10px; }
.sh-how-h { margin: 0; font: 700 12.5px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.sh-how { counter-reset: shw; display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.sh-how li { position: relative; padding-left: 38px; font-size: 15.5px; line-height: 1.45; color: var(--text-body); }
.sh-how li::before { counter-increment: shw; content: counter(shw); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--encore-midnight); color: var(--encore-buttercream); font: 600 13px/1 var(--font-ui); }
.sh-how b { font-weight: 600; color: var(--text-heading); }
.sh-either { margin: 14px 0 0; padding: 9px 14px; border-radius: var(--radius-card-inner); background: var(--status-pass-bg); color: var(--pass-ink); font: 600 14px/1.35 var(--font-ui); }

.sh-controls { display: grid; gap: 14px; }
.sh-chans { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sh-chan { text-decoration: none; }
.sh-chan--main { flex: 1 1 100%; justify-content: center; gap: 10px; }
.sh-chan--main .icon { flex: none; width: 18px; height: 18px; stroke-width: 1.75; }
.sh-chan[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }
.sh-linkrow { margin: 0; }
.sh-label { display: grid; gap: 6px; font: 600 13.5px/1.2 var(--font-ui); color: var(--text-secondary); }
.sh-field { width: 100%; min-width: 0; height: 40px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--surface-card); box-shadow: var(--ring); font: 400 12.5px/1 var(--font-mono); color: var(--text-body); }
.sh-field:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.sh-status { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--text-body); }
.sh-status:empty { display: none; }
.sh-err { margin: 0; font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--status-fail-line); }
.sh-err:empty { display: none; }
.sh-posted { display: grid; justify-items: start; gap: 8px; padding: 14px 16px; border-radius: var(--radius-card-inner); background: var(--surface-sheet); box-shadow: var(--ring); }
.sh-posted-t { margin: 0; font: 600 15.5px/1.3 var(--font-ui); color: var(--text-heading); }
.sh-posted-p { margin: 0 0 4px; max-width: 56ch; font-size: 14.5px; line-height: 1.45; color: var(--text-body); }
.sh-done { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: var(--radius-card); background: var(--status-pass-bg); }
.sh-done-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--encore-white); color: var(--pass-ink); }
.sh-done-main { display: grid; justify-items: start; gap: 6px; }
.sh-done-t { margin: 0; font: 600 18px/1.25 var(--font-ui); letter-spacing: -0.02em; color: var(--pass-ink); }
.sh-done-p { margin: 0 0 6px; max-width: 54ch; font-size: 14.5px; line-height: 1.45; color: var(--text-body); }
.sh-fine { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
@media (max-width: 560px) { .sh-chan { flex: 1 1 calc(50% - 5px); justify-content: center; } .sh-done { grid-template-columns: 1fr; } }

/* ---- The panel on a report that was just scanned ------------------------------------------------------------------- */
.sh-fresh { display: grid; gap: clamp(20px, 3vw, 36px); margin-top: 28px; padding: clamp(22px, 3.2vw, 40px); border-radius: var(--radius-panel); background: var(--surface-sheet); box-shadow: var(--ring); }
@media (min-width: 980px) { .sh-fresh { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; } }
.sh-fresh-k { margin: 0; font: 700 12.5px/1 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.sh-fresh-h { margin: 12px 0 0; font: 500 clamp(28px, 3.4vw, 42px)/1.04 var(--font-display); letter-spacing: -0.03em; color: var(--text-heading); text-wrap: balance; }
.sh-fresh-p { max-width: 52ch; margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-body); }
.sh-fresh-p b { font-weight: 600; color: var(--text-heading); }
.sh-fresh-act { display: grid; justify-items: start; gap: 14px; min-width: 0; }
.sh-fresh-act .sh-controls, .sh-fresh-act .sh-chans { width: 100%; }

/* ---- Under "Fix first" --------------------------------------------------------------------------------------------- */
.ov-free { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; margin-top: 24px; padding: 18px 20px; border-radius: var(--radius-card-inner); background: var(--surface-sheet); box-shadow: var(--ring); }
.ov-free-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--encore-white); box-shadow: var(--ring); color: var(--text-heading); }
.ov-free-main { min-width: 0; }
.ov-free-h { margin: 0; font: 600 17px/1.3 var(--font-ui); letter-spacing: -0.02em; color: var(--text-heading); }
.ov-free-p { max-width: 62ch; margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-body); }
.ov-free-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
@media (max-width: 559.98px) { .ov-free { grid-template-columns: 1fr; } .ov-free-act .pill { flex: 1 1 100%; justify-content: center; } }

/* ---- In the pack panel, the booking window and the scan page ------------------------------------------------------- */
.pm-free { max-width: 52ch; margin-top: 22px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--encore-buttercream) 16%, transparent); }
.pm-free-t { margin: 0; font: 600 16px/1.3 var(--font-ui); letter-spacing: -0.01em; }
.pm-free-p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: color-mix(in srgb, var(--encore-buttercream) 80%, transparent); }
.pm-free-btn { margin-top: 12px; background: transparent; color: var(--encore-buttercream); --pill-ring: rgba(255, 249, 241, 0.4); }
.pm-free-btn:hover { background: rgba(255, 249, 241, 0.12); color: var(--encore-buttercream); --pill-ring: rgba(255, 249, 241, 0.75); }
.bk-free { margin: 18px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.lv-final-move { margin: 12px 0 0; font-size: 14.5px; color: var(--text-secondary); }
