/* Digi work order request. Visual world: IT Installs' own Digi work order (the DocsAutomator PDF):
   white sheet, logo top left, title right, light-blue header bands, black hairline row rules,
   bold labels, Arial metrics (Arimo), the red "App Login" cells. Navy from the IT Installs logo. */
:root {
  --page: #e9edf3;
  --sheet: #ffffff;
  --ink: #15191f;
  --ink-2: #3c4552;
  --muted: #5b6573;
  --rule: #1d232b;          /* PDF row rule */
  --rule-soft: #d5dbe3;
  --band: #c9daf8;          /* PDF header band */
  --band-2: #e7eefc;
  --navy: #123577;
  --navy-2: #0c2656;
  --navy-soft: #eef3fb;
  --red: #ff0000;           /* PDF App Login cells */
  --ok: #15703f;
  --ok-soft: #e3f3ea;
  --warn: #8a5300;
  --warn-soft: #fff1d6;
  --err: #b42318;
  --err-soft: #fdecea;
  --field: #7d8794;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(17, 26, 36, .06), 0 10px 32px rgba(17, 26, 36, .09);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 96px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 15px/1.5 Arimo, Arial, Helvetica, sans-serif; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--band); }
a { color: var(--navy); text-underline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* TEST MODE: sticky on every screen; the same warning sits next to Send and on the confirmation */
.testbar {
  position: sticky; top: 0; z-index: 45;
  background: #ffe9a8; color: #3d2a00; border-bottom: 2px solid #d9a521;
  font-size: 14px; text-align: center; padding: 9px 16px; line-height: 1.4; text-wrap: balance;
  box-shadow: 0 2px 8px rgba(17, 26, 36, .08);
}
.testbar b { letter-spacing: .04em; font-weight: 700; }
.testnote { margin-top: 22px; background: #fff4d1; border: 1px solid #d9a521; color: #3d2a00; border-radius: var(--radius); padding: 11px 14px; font-size: 14px; }
.testnote b { letter-spacing: .04em; }
html:has(.testbar:not([hidden])) { scroll-padding-top: 72px; }
.foot-test .short { display: none; }
.foot-test { display: inline-block; background: #fff4d1; border: 1px solid #d9a521; color: #3d2a00; border-radius: var(--radius); padding: 4px 9px; font-size: 13px; line-height: 1.35; }

/* "How it works": hidden until the video file is confirmed online (body.video-ok) */
.how { display: none !important; }
body.video-ok .how { display: inline-flex !important; }
.howlink { font-size: 13.5px; margin-top: 6px; }
.howlink svg { width: 15px; height: 15px; }
.cover-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.howdlg { width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 6px; background: var(--sheet); color: var(--ink); box-shadow: 0 24px 64px rgba(10, 16, 28, .35); overflow: auto; }
.howdlg::backdrop { background: rgba(12, 22, 40, .62); }
.howdlg[open] { animation: dlg .24s cubic-bezier(.16, 1, .3, 1); }
@keyframes dlg { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.howdlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--band); padding: 10px 10px 10px 20px; }
.howdlg-head h2 { margin: 0; font-size: 16px; }
.howdlg-x { appearance: none; border: 0; background: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); cursor: pointer; color: var(--ink); }
.howdlg-x:hover { background: rgba(18, 53, 119, .1); }
.howdlg-x:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.howdlg-x svg { width: 20px; height: 20px; }
.howdlg video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b1220; }
.howdlg-foot { margin: 0; padding: 12px 20px 16px; color: var(--ink-2); font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .howdlg[open] { animation: none; } }

.wrap { max-width: 920px; margin: 0 auto; padding: 24px 16px 140px; }
.sheet { background: var(--sheet); border-radius: 6px; box-shadow: var(--shadow); padding: 30px 40px 36px; }
.state { text-align: center; padding: 56px 28px; color: var(--ink-2); }
.state .logo { height: 54px; margin-bottom: 18px; }
.state h1 { font-size: 21px; margin: 0 0 8px; color: var(--ink); }
.state p { margin: 0 auto; max-width: 46ch; }

/* ---- Document head (logo left, title right, like the PDF) ---- */
.dochead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 18px; }
.dochead .logo { height: 62px; display: block; }
.dochead .title { text-align: right; }
.dochead h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.005em; }
.dochead .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* ---- Step band (the PDF's light-blue header row) ---- */
.band { display: flex; background: var(--band); margin: 0 -40px 26px; padding: 0 28px; overflow-x: auto; scrollbar-width: none; }
.band::-webkit-scrollbar { display: none; }
.band button {
  appearance: none; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: #26344d;
  padding: 11px 12px 9px; border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.band button[disabled] { cursor: default; color: #3f4d68; font-weight: 500; }
.band button.cur { color: var(--ink); border-bottom-color: var(--navy); }
.band button.done { color: var(--navy); }
.band button .n { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 11.5px; background: rgba(18, 53, 119, .12); }
.band button.cur .n { background: var(--navy); color: #fff; }
.band button.done .n { background: var(--navy); color: #fff; }
.band button .n svg { width: 12px; height: 12px; }
.band button:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.bandmini { display: none; }

/* ---- Sections and label/value rows, like the PDF tables ---- */
h2.sec { font-size: 18px; margin: 0 0 4px; font-weight: 700; letter-spacing: -.005em; }
.lead { color: var(--ink-2); margin: 0 0 18px; max-width: 70ch; }
h3.sub { font-size: 14px; font-weight: 700; margin: 26px 0 8px; }
.rows { border-top: 1px solid var(--rule); }
.r { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.r > .k { font-weight: 700; font-size: 14px; padding-top: 9px; }
.r > .k small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.r.compact > .k { padding-top: 2px; }
.req { color: var(--err); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.err { color: var(--err); font-size: 13.5px; margin-top: 6px; font-weight: 500; }

/* ---- Controls ---- */
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: var(--radius);
  padding: 8px 10px; min-height: 40px; caret-color: var(--navy);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #687280; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy); }
.invalid { border-color: var(--err) !important; background: #fffafa; }
select { padding-right: 30px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2315191f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 11px center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 2fr 72px 110px; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14.5px;
  border-radius: var(--radius); padding: 9px 16px; min-height: 42px; cursor: pointer; border: 1px solid var(--navy); background: #fff; color: var(--navy);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--navy-soft); }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.ghost { border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: #f0f2f5; }
.btn.small { min-height: 34px; padding: 5px 11px; font-size: 13.5px; }
.btn.big { min-height: 50px; padding: 12px 26px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg, .link svg { width: 16px; height: 16px; flex: none; }
.btn:focus-visible, .link:focus-visible, .choice:focus-visible, .seg button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.link { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--navy); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 5px; }
.link.danger { color: var(--err); }
.link:hover { color: var(--navy-2); }

.seg { display: inline-flex; border: 1px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.seg button { appearance: none; font: inherit; font-size: 14px; font-weight: 600; border: 0; background: #fff; color: var(--navy); padding: 8px 16px; min-height: 40px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--navy); }
.seg button.sel { background: var(--navy); color: #fff; }

.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.check .t b { display: block; font-weight: 600; }
.check .t span { color: var(--muted); font-size: 13.5px; }
.inline-checks { display: flex; flex-wrap: wrap; gap: 4px 22px; }

/* ---- Request type cards ---- */
.choices { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.choice {
  appearance: none; text-align: left; font: inherit; color: inherit; background: #fff; border: 0; border-bottom: 1px solid var(--rule);
  padding: 16px 18px 16px 0; cursor: pointer; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
}
.choice:nth-child(odd) { border-right: 1px solid var(--rule); }
.choice:nth-child(even) { padding-left: 18px; }
.choice .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--field); margin-top: 2px; display: grid; place-items: center; }
.choice.sel .dot { border-color: var(--navy); }
.choice.sel .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.choice b { display: block; font-size: 15.5px; }
.choice b + span { color: var(--muted); font-size: 13.5px; }
@media (hover: hover) { .choice:hover { background: var(--navy-soft); } }
.choice.sel { background: var(--band-2); }

/* ---- Picker (search with results) ---- */
.picker { position: relative; }
.picker .icon { position: absolute; left: 11px; top: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.picker input { padding-left: 34px; }
.results {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: 0 8px 28px rgba(17, 26, 36, .16); max-height: 360px; overflow-y: auto;
}
.results .grp { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--band-2); padding: 6px 12px; }
.results .o { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--rule-soft); }
.results .o:last-child { border-bottom: 0; }
.results .o b { display: block; font-weight: 600; }
.results .o small { color: var(--muted); font-size: 13px; }
.results .o.act, .results .o:hover { background: var(--navy-soft); }
.results .o.add { color: var(--navy); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.results .o.add svg { width: 16px; height: 16px; }
.results .empty { padding: 12px; color: var(--muted); font-size: 13.5px; }
.chosen { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border: 1px solid var(--navy); border-radius: var(--radius); padding: 9px 12px; background: var(--navy-soft); }
.chosen b { font-weight: 700; }
.chosen small { display: block; color: var(--muted); font-size: 13px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 3px; letter-spacing: .02em; vertical-align: 1px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.info { background: var(--band-2); color: var(--navy); }
.inline-new { border: 1px solid var(--rule-soft); background: #fafbfd; border-radius: var(--radius); padding: 14px; margin-top: 10px; }
.inline-new h4 { margin: 0 0 10px; font-size: 14px; }
.inline-new .f { margin-bottom: 10px; }
.inline-new label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }

.note { border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin-top: 10px; }
.note.info { background: var(--band-2); color: #1d3460; }
.note.warn { background: var(--warn-soft); color: #5c3800; }
.note.err { background: var(--err-soft); color: #7a1912; }
.note.ok { background: var(--ok-soft); color: #0f4d2c; }

/* ---- Tables (PDF style: band header, black row rules) ---- */
.tbl-wrap { overflow-x: auto; border-top: 1px solid var(--rule); margin-top: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--band); text-align: left; font-weight: 700; padding: 8px 10px; white-space: nowrap; font-size: 13px; }
td { border-bottom: 1px solid var(--rule); padding: 8px 10px; vertical-align: top; }
td input, td select { min-height: 34px; padding: 5px 8px; }
td.num, th.num { text-align: right; }
td .muted, .muted { color: var(--muted); font-size: 13px; }
tr.off td { color: var(--muted); }

/* ---- Device grid: the PDF's "Device or Service" table, two columns ---- */
.devgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; border-top: 1px solid var(--rule); }
.devgrid .head { background: var(--band); font-weight: 700; font-size: 13px; padding: 8px 10px; display: grid; grid-template-columns: 26px 1fr 132px; }
.dev { display: grid; grid-template-columns: 26px 1fr 132px; align-items: center; border-bottom: 1px solid var(--rule); padding: 7px 10px; min-height: 52px; }
.dev .no { color: var(--muted); font-size: 13px; }
.dev .nm { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.dev .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.dev.has { background: var(--navy-soft); }
.stepper { display: grid; grid-template-columns: 36px 1fr 36px; border: 1px solid var(--field); border-radius: var(--radius); overflow: hidden; height: 38px; background: #fff; }
.stepper button { appearance: none; border: 0; background: #f4f6f9; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.stepper button:hover { background: var(--band-2); }
.stepper button svg { width: 15px; height: 15px; }
.stepper input { border: 0; border-left: 1px solid var(--rule-soft); border-right: 1px solid var(--rule-soft); border-radius: 0; text-align: center; min-height: 0; height: 100%; padding: 0 4px; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper:focus-within { outline: 2px solid var(--navy); outline-offset: -1px; }
.stepper input:focus { outline: 0; }
.persite th, .persite td { padding: 6px 4px; }
.persite td input[type=number] { width: 42px; text-align: right; padding: 4px 6px; }
.hwgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.persite th { font-size: 12px; white-space: normal; min-width: 64px; line-height: 1.2; vertical-align: bottom; }
.persite td:first-child, .persite th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 130px; padding-left: 0; }
.persite th:first-child { background: var(--band); }
.totals { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.totals b { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { appearance: none; font: inherit; font-size: 13px; border: 1px solid var(--rule-soft); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 5px 11px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { border-color: var(--navy); color: var(--navy); }

.files { margin-top: 8px; display: grid; gap: 6px; }
.file { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; border-bottom: 1px solid var(--rule-soft); padding: 4px 0; }
.drop { border: 1.5px dashed var(--field); border-radius: var(--radius); padding: 16px; text-align: center; color: var(--ink-2); background: #fafbfd; }
.drop.over { border-color: var(--navy); background: var(--navy-soft); }
.drop .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.drop .dropicon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; color: var(--navy); }
.drop + .tbl-wrap { margin-top: 12px; }
table.lbl .fname { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; overflow-wrap: anywhere; }
table.lbl .fname svg, .rvdc svg { width: 14px; height: 14px; flex: none; color: var(--muted); vertical-align: -2px; }
table.lbl td { vertical-align: middle; }

/* White Glove: RX (pharmacy) DCs, per-DC login, label count */
.badge.rx { background: var(--red); color: #000; margin-left: 6px; }
.clipn { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-left: 6px; vertical-align: 1px; }
.clipn svg { width: 13px; height: 13px; }
.wgt .login { margin-top: 4px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.wgt .login code, .rvdc code { font-family: inherit; font-weight: 700; font-size: 12.5px; background: var(--band-2); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.wgt .login .link { font-size: 12.5px; }
.wgt .login input { min-height: 30px; padding: 4px 7px; font-size: 13px; width: 100%; max-width: 230px; font-weight: 700; }
.logins { max-width: 560px; }
.logins label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.logins input { font-weight: 700; }
.rvdc { padding: 3px 0; }
.rvdc + .rvdc { border-top: 1px solid var(--rule-soft); padding-top: 6px; margin-top: 3px; }

/* The PDF's red "App Login" cells */
.applogin { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); margin-top: 4px; }
.applogin .h { background: var(--red); color: #000; font-weight: 700; font-size: 13px; padding: 7px 10px; }
.applogin .h + .h { border-left: 1px solid var(--rule); }
.applogin .v { padding: 8px 10px; border-top: 1px solid var(--rule); }
.applogin .v + .v { border-left: 1px solid var(--rule); color: var(--muted); font-size: 13.5px; display: flex; align-items: center; }
.applogin .v input { font-weight: 700; }

/* Review */
.rv { margin-top: 22px; }
.rv h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; font-size: 15px; }
.rv dl { margin: 0; border-top: 1px solid var(--rule); }
.rv .row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.rv dt { font-weight: 700; font-size: 14px; }
.rv dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

/* Cover + done */
.cover { text-align: left; }
.cover .dochead { border-bottom: 0; }
.cover-band { background: var(--band); margin: 0 -40px; padding: 10px 40px; font-weight: 700; font-size: 14px; }
.cover-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; padding-top: 26px; align-items: start; }
.cover-body h2 { font-size: 24px; margin: 0 0 10px; letter-spacing: -.01em; line-height: 1.2; }
.cover-body p { margin: 0 0 20px; color: var(--ink-2); max-width: 52ch; }
.cover-list { border-top: 1px solid var(--rule); margin: 0; padding: 0; list-style: none; font-size: 14px; }
.cover-list li { border-bottom: 1px solid var(--rule); padding: 9px 0; display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.cover-list li b { font-weight: 700; }
.done-head { display: flex; gap: 14px; align-items: flex-start; }
.done-head .tick { width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.done-head .tick.test { background: #b07800; }
.done-head .tick svg { width: 22px; height: 22px; }
.done-head h2 { margin: 2px 0 4px; font-size: 21px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Footer bar */
.footer { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
.footer-in { max-width: 920px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.foot-info { flex: 1; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.footer .btn { min-width: 112px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: 14px; z-index: 60; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { height: 40px; border-radius: var(--radius); background: linear-gradient(90deg, #eef1f5 0%, #f7f8fa 50%, #eef1f5 100%); background-size: 200% 100%; animation: sh 1.2s ease-in-out infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.step-enter { animation: enter .22s cubic-bezier(.16, 1, .3, 1); }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step-enter, .spin, .skel { animation: none; } }

/* ---- Phone ---- */
@media (max-width: 720px) {
  .wrap { padding: 0 0 130px; }
  .sheet { border-radius: 0; box-shadow: none; padding: 18px 16px 26px; min-height: 100vh; }
  .dochead { align-items: center; padding-bottom: 12px; }
  .dochead .logo { height: 40px; }
  .dochead h1 { font-size: 18px; }
  .dochead .sub { font-size: 12.5px; }
  .band { display: none; }
  .bandmini { display: flex; justify-content: space-between; align-items: center; background: var(--band); margin: 0 -16px 18px; padding: 9px 16px; font-size: 13.5px; font-weight: 700; }
  .bandmini .bar { display: flex; gap: 3px; }
  .bandmini .bar i { width: 14px; height: 4px; border-radius: 2px; background: rgba(18, 53, 119, .25); }
  .bandmini .bar i.on { background: var(--navy); }
  .r, .rv .row { grid-template-columns: 1fr; gap: 6px; }
  .r > .k { padding-top: 0; }
  .choices { grid-template-columns: 1fr; }
  .choice:nth-child(odd) { border-right: 0; }
  .choice:nth-child(even) { padding-left: 0; }
  .devgrid { grid-template-columns: 1fr; }
  .devgrid > div:nth-child(2) > .head { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .cover-band { margin: 0 -16px; padding: 10px 16px; }
  .cover-body { grid-template-columns: 1fr; gap: 22px; }
  .cover-list li { grid-template-columns: 110px 1fr; }
  .applogin { grid-template-columns: 1fr; }
  .applogin .h + .h, .applogin .v + .v { border-left: 0; }
  .applogin .h:nth-child(2) { order: 3; border-top: 1px solid var(--rule); }
  .applogin .v:nth-child(3) { order: 2; }
  .applogin .v:nth-child(4) { order: 4; }
  .footer .btn { min-width: 0; padding: 9px 14px; }
  /* Tables become stacked rows on a phone: one block per site, label left, value right */
  table.stack thead { display: none; }
  table.stack, table.stack tbody { display: block; }
  table.stack tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  table.stack td { display: block; border: 0; padding: 3px 0; grid-column: 1 / -1; min-width: 0 !important; max-width: none !important; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
  table.stack td.num { text-align: left; }
  table.stack td.no-label { grid-column: auto; }
  table.stack td:first-child { font-weight: 700; }
  table.stack.wgt tr { grid-template-columns: 30px 1fr 1fr; }
  table.stack.wgt td { grid-column: 2 / -1; }
  table.stack.wgt td:first-child { grid-column: 1; grid-row: 1 / span 2; }
  table.stack.wgt tr.hwrow td.hwsp { display: none; }
  table.stack.wgt tr.hwrow td { grid-column: 1 / -1; }
  .hwgrid { grid-template-columns: 1fr 1fr; }
  table.persite.stack tr { grid-template-columns: repeat(3, 1fr); column-gap: 10px; }
  table.persite.stack td { grid-column: auto; display: flex; flex-direction: column; justify-content: flex-end; }
  table.persite.stack td:first-child { grid-column: 1 / -1; position: static; }
  table.persite.stack td input[type=number] { width: 100%; text-align: left; }
  .grid3 { grid-template-columns: 1fr 56px 88px; }
  table.stack.wgt td:nth-child(4) { grid-column: 2; }
  table.stack.wgt td:nth-child(5) { grid-column: 3; }
  .tbl-wrap:has(table.stack) { overflow: visible; }
  .foot-info { font-size: 12.5px; }
  .testbar { font-size: 13px; padding: 8px 16px; text-align: left; text-wrap: pretty; }
  .cover-acts .btn { flex: 1 1 100%; }
  html:has(.testbar:not([hidden])) { scroll-padding-top: 120px; }
  .foot-test { font-size: 12px; padding: 4px 7px; }
  .foot-test .long { display: none; }
  .foot-test .short { display: inline; }
  .howdlg { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; margin: auto 0; }
  .howlink { margin-top: 2px; font-size: 12.5px; }
}
/* White Glove list: keep the DC column wide enough for "Login Tools/installer_wmwg2 Change" on one line */
@media (min-width: 721px) {
  table.wgt td:nth-child(2) { min-width: 228px; }
  table.wgt .login { font-size: 12px; }
  table.wgt th { white-space: normal; vertical-align: bottom; }
  table.wgt th.num { min-width: 84px; }
  table.wgt .login { flex-wrap: nowrap; white-space: nowrap; }
}
@media (max-width: 720px) {
  table.stack.lbl tr { grid-template-columns: 1fr auto; row-gap: 4px; }
  table.stack.lbl td:first-child { grid-column: 1; }
  table.stack.lbl td.no-label { grid-column: 2; grid-row: 1; align-self: start; }
  table.stack.lbl td:first-child::before, table.stack.lbl td[data-label="DC"]::before { display: none; }
}
