/* Verity portal — matches the website's palette, tuned for dense, form-heavy screens. */
:root {
  --ink: #0b2a45; --text: #2f455a; --muted: #667b8f; --line: #e3eaf1; --line-strong: #cfd9e3;
  --teal: #007f84; --blue: #1f6fe0; --grad: linear-gradient(120deg, #00858a 0%, #1f6fe0 100%);
  --bg: #f4f7fa; --card: #fff; --head: #eef3f7; --ok: #18a866; --bad: #c8332b; --warn-bg: #fff6d6; --warn-line: #f2dc8c;
  --radius: 14px; --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --display: "Sora", "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.2; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.boot { padding: 40px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Shell */
.topbar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar .brand img { height: 30px; }
.topbar .brand span { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: .9rem; padding-left: 10px; border-left: 1px solid var(--line-strong); }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: .9rem; color: var(--muted); }
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 60px); }
.side { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow: auto; padding: 18px 12px; border-right: 1px solid var(--line); background: #fff; }
.side h4 { margin: 14px 10px 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .9rem; }
.side a:hover { background: var(--head); }
.side a.sub { padding-left: 18px; font-size: .84rem; }
.side a.on { background: #e6f4f4; color: var(--teal); font-weight: 600; }
.side .tick { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.side .tick.done { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.main { padding: 24px 28px 80px; min-width: 0; }
.wrap { max-width: 2200px; margin: 0 auto; }
/* Phones and tablets in portrait: the menu opens from a Menu button as a full-height panel, with its group headings. */
.menu-btn { display: none; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
body.nav-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .layout { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 990; height: auto; align-self: stretch; border-right: 0; padding: 8px 16px 40px; overflow-y: auto; box-shadow: 0 12px 24px rgba(11, 47, 78, .12); }
  body.nav-open .side { display: block; }
  body.nav-open { overflow: hidden; }
  .side a { padding: 11px 12px; font-size: .95rem; }
  .side a.sub { padding: 8px 12px 8px 22px; }
  .main { padding: 16px 16px 80px; }
  .topbar .who { display: none; }
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar .brand span { display: none; }
}

/* Page header */
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 1.5rem; }
.page-head .sub { color: var(--muted); font-size: .9rem; }
.page-head .grow { flex: 1; }
.meter { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.meter .bar { width: 140px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--grad); }
.back { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; margin-bottom: 8px; text-decoration: none; }

/* Section cards */
.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; scroll-margin-top: 76px; overflow: hidden; }
.sec > header { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--head); border-bottom: 1px solid var(--line); }
.sec > header h2 { font-size: 1rem; font-weight: 600; }
.sec > header .grow { flex: 1; }
.sec .body { padding: 18px; }
.sec h3 { font-size: .98rem; margin: 22px 0 6px; }
.sec h3:first-child { margin-top: 0; }
.sec p.help { margin: 0 0 12px; color: var(--muted); font-size: .88rem; }

/* Fields */
.grid { display: grid; gap: 14px 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f label, .f .lbl { font-size: .76rem; font-weight: 600; color: var(--muted); }
.f label b { color: var(--teal); font-weight: 600; }
.f input, .f select, .f textarea { width: 100%; padding: 8px 2px 7px; border: 0; border-bottom: 1.5px solid var(--line-strong); background: transparent; border-radius: 0; outline: none; color: var(--ink); }
.f select { padding-right: 18px; }
.f textarea { resize: vertical; min-height: 60px; }
.f input:focus, .f select:focus, .f textarea:focus { border-bottom-color: var(--blue); }
.f input[readonly] { color: var(--muted); }
.f .hint { font-size: .74rem; color: var(--muted); }
.f .count { align-self: flex-end; font-size: .72rem; color: var(--muted); }
.inline { display: flex; align-items: flex-end; gap: 8px; }
.inline > .f { flex: 1; }
.unit { padding-bottom: 8px; color: var(--muted); font-size: .9rem; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }
.checks h4 { margin: 0 0 6px; font-size: .9rem; color: var(--ink); }
.cb { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; }
.cb input { width: 17px; height: 17px; accent-color: var(--teal); }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--grad); color: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.danger { background: #fff; color: var(--bad); border-color: #f0c5c2; }
.btn.sm { padding: 6px 11px; font-size: .8rem; border-radius: 8px; }
.link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--teal); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.link.save { color: var(--blue); }
.link.add { color: var(--ok); }
.link svg { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--blue); cursor: pointer; }
.icon-btn:hover { background: var(--head); }
.icon-btn.red { color: var(--bad); }
.icon-btn.grey { color: var(--muted); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: -4px 0 16px; overflow-x: auto; scrollbar-width: thin; }
.tabs button { flex: 1; padding: 10px 8px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-weight: 600; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { text-align: left; font-size: .74rem; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f8fbfd; }
td.c, th.c { text-align: center; }
.empty { padding: 18px; text-align: center; color: var(--muted); font-size: .88rem; }
.yes, .no { display: inline-block; width: 18px; height: 18px; }
.yes { color: var(--ok); } .no { color: var(--bad); }
.wide-table { min-width: 1400px; }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--head); color: var(--muted); white-space: nowrap; }
.chips .chip { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.chip.ok { background: #e3f6ec; color: #11744a; }
.chip.wait { background: #fff2cf; color: #8a6100; }
.chip.bad { background: #fde7e5; color: var(--bad); }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font-size: 1rem; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip.inc { background: #e3f6ec; color: #11744a; }
.chip.exc { background: #fde7e5; color: var(--bad); }

/* Notes and banners */
.note-bar { padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: .88rem; margin-bottom: 12px; }
.info { padding: 10px 14px; border-radius: 10px; background: #eef6ff; border: 1px solid #d3e5fb; font-size: .86rem; margin: 10px 0; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 10px 0 14px; background: #fbfdfe; }

/* Photo */
.photo-top { display: grid; grid-template-columns: 1fr 160px; gap: 20px; }
@media (max-width: 640px) { .photo-top { grid-template-columns: 1fr; } }
.photo-top ul { margin: 6px 0 0; padding-left: 18px; font-size: .88rem; }
.example { text-align: center; font-size: .76rem; color: var(--muted); }
.example svg { width: 130px; height: 160px; border-radius: 8px; display: block; margin: 6px auto 0; }
.thumb { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; background: var(--head); display: block; }

/* Map */
.map { height: 360px; border-radius: 12px; border: 1px solid var(--line); margin-top: 10px; z-index: 0; }

/* Badge */
.badge-card { display: flex; gap: 18px; align-items: center; max-width: 460px; margin: 6px auto 0; padding: 16px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; }
.badge-card .ph { width: 110px; text-align: center; font-weight: 600; font-size: .85rem; color: var(--ink); }
.badge-card .ph img, .badge-card .ph .none { width: 110px; height: 130px; object-fit: cover; border-radius: 8px; background: var(--head); display: grid; place-items: center; color: var(--muted); font-size: .75rem; font-weight: 400; margin-bottom: 6px; }
.badge-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: .84rem; }
.badge-card dt { font-weight: 600; color: var(--ink); }
.badge-card dd { margin: 0; overflow-wrap: anywhere; }
.badge-card .logo { height: 22px; margin-bottom: 8px; }

/* Signature */
.disclosure { font-size: .84rem; max-height: 260px; overflow: auto; padding-right: 6px; }
.disclosure h4 { margin: 0 0 8px; text-decoration: underline; font-size: .86rem; color: var(--ink); }
.sign-row { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 24px; align-items: end; margin-top: 16px; }
@media (max-width: 640px) { .sign-row { grid-template-columns: 1fr; } }
.pad { width: 100%; height: 130px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; touch-action: none; display: block; }
.sig-img { max-width: 360px; width: 100%; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; display: block; }

/* Auth screens */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, #dff6f3 0, transparent 60%), radial-gradient(900px 500px at 110% 10%, #e3edff 0, transparent 55%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 12px 40px rgba(31, 92, 160, .10); }
.auth-card img { height: 34px; margin-bottom: 18px; }
.auth-card h1 { font-size: 1.3rem; margin-bottom: 6px; }
.auth-card p { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card .btn { width: 100%; padding: 11px; }
.auth-foot { margin-top: 14px; font-size: .86rem; text-align: center; }
.msg { font-size: .86rem; min-height: 1.2em; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 2000; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .9rem; box-shadow: 0 8px 28px rgba(11,42,69,.25); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--bad); }

/* Staff list */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.toolbar .f { min-width: 220px; flex: 1; }
.i16 { display: inline-flex; width: 16px; height: 16px; }
.span2 { grid-column: span 2; }
@media (max-width: 600px) { .span2 { grid-column: auto; } }
.inline.rev { align-items: flex-start; }
.inline.rev > .icon-btn { margin-top: 22px; }
.subsec { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 20px; background: #fff7e6; border-bottom: 1px solid #f1d9a6; color: #6b4a00; font-size: .85rem; }
.preview-bar strong { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; background: #6b4a00; color: #fff; padding: 2px 8px; border-radius: 99px; }
.preview-bar span { flex: 1; min-width: 200px; }
.preview-bar a { color: #6b4a00; font-weight: 600; }
@media (max-width: 480px) { .topbar .brand img { height: 22px; } .topbar { gap: 6px; padding: 0 10px; } .topbar .btn.sm { padding-left: 10px; padding-right: 10px; } }

/* Left menu: the five sections. Section tabs: the pages within the current section. */
.i18 { display: inline-flex; width: 18px; height: 18px; flex: none; }
.side a.top { gap: 10px; padding: 10px 12px; font-weight: 500; margin-bottom: 2px; }
.side a.top .i18 { color: var(--muted); }
.side a.top.on .i18 { color: var(--teal); }
.subnav-wrap { margin: -4px 0 18px; display: grid; gap: 8px; }
.subnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.subnav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; font-size: .86rem; white-space: nowrap; }
.subnav a:hover { background: var(--head); }
.subnav a.on { background: #e6f4f4; border-color: #bfe3e3; color: var(--teal); font-weight: 600; }
.subnav.secs a { padding: 5px 11px; font-size: .8rem; }
.subnav .tick { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.subnav .tick.done { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }
@media (max-width: 860px) { .subnav-wrap { margin-top: 0; } }

/* Profile dropdown: opens on hover, keyboard focus or tap. */
.dd { position: relative; display: inline-block; align-self: start; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid #bfe3e3; border-radius: 99px; background: #e6f4f4; color: var(--teal); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.dd-caret { font-size: .75rem; transition: transform .15s; }
.dd:hover .dd-caret, .dd.open .dd-caret, .dd:focus-within .dd-caret { transform: rotate(180deg); }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 270px; max-height: 70vh; overflow-y: auto; margin-top: 0; padding: 12px 6px 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(11, 47, 78, .16); background-clip: padding-box; }
.dd-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.dd:hover .dd-menu, .dd.open .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-head { padding: 6px 10px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dd-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .88rem; }
.dd-menu a:hover, .dd-menu a:focus { background: var(--head); outline: none; }
.dd-menu a.on { color: var(--teal); font-weight: 600; }
.dd-menu .tick { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.dd-menu .tick.done { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }
@media (max-width: 600px) { .dd-menu { min-width: min(300px, calc(100vw - 32px)); } }
.dd-menu .tick.blank { border-color: transparent; }

/* Territory range: the miles on a travel-distance chip can be changed in place. */
.range-txt { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.range-in { width: 64px; padding: 1px 4px; border: 1px solid currentColor; border-radius: 6px; background: #fff; color: inherit; font: inherit; text-align: center; }
.preview-bar.admin-test { background: #eaf3ff; border-bottom-color: #bcd6f7; color: #123d6b; }
.preview-bar.admin-test strong { background: #123d6b; }

/* Sign-in: passcode/password, authenticator setup (QR code), and the login test mode note */
.auth-stack { width: 100%; max-width: 460px; display: grid; gap: 14px; justify-items: center; }
.auth-stack > .auth-card { max-width: 400px; }
.auth-stack > .auth-card.wide { max-width: 460px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; font-size: .86rem; cursor: pointer; text-decoration: underline; justify-self: start; }
.setup { display: grid; gap: 14px; }
.setup-steps { margin: 0; padding-left: 1.2em; font-size: .88rem; color: var(--muted); display: grid; gap: 4px; }
.qr { display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; justify-self: center; }
.qr img { display: block; width: 200px; height: 200px; margin: 0; image-rendering: pixelated; }
.auth-card .qr img { height: 200px; margin: 0; }
.manual-key { font-size: .86rem; }
.manual-key summary { cursor: pointer; color: var(--teal); }
.manual-key p { margin: 8px 0 4px; }
.manual-key code { display: block; font-size: .95rem; letter-spacing: .04em; word-break: break-all; background: var(--bg); padding: 8px 10px; border-radius: 8px; }
.setup-pass p { margin: 0 0 10px; color: var(--ink); }
.setup-pass { display: grid; gap: 12px; }
.test-code { font-size: .84rem; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 10px; padding: 8px 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.test-code .mono { font-weight: 700; letter-spacing: .08em; }
.test-note { width: 100%; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 14px; padding: 14px 16px; font-size: .86rem; }
.test-note p { margin: 4px 0 10px; color: #6b5310; }
.test-accounts { display: grid; gap: 6px; margin-bottom: 10px; }
.test-acct { display: grid; gap: 1px; text-align: left; background: #fff; border: 1px solid #f0d58a; border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; font-size: .82rem; }
.test-acct:hover { border-color: #d6a92a; }
.test-acct strong { font-size: .86rem; }
.test-acct span { overflow-wrap: anywhere; color: var(--muted); }
.test-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.test-link a { font-weight: 600; }
.test-note p.test-hint { margin: 0 0 6px; font-weight: 600; }
.auth-switch { margin: 0; text-align: center; font-size: .9rem; font-weight: 600; }
/* "Check all that apply" dropdown (multiPick) */
.mp { position: relative; }
.mp > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 18px 7px 2px; border-bottom: 1.5px solid var(--line-strong); cursor: pointer; min-height: 36px; position: relative; color: var(--ink); }
.mp > summary::-webkit-details-marker { display: none; }
.mp > summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); }
.mp[open] > summary { border-bottom-color: var(--blue); }
.mp > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mp-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mp-panel { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: min(340px, calc(100vw - 32px)); max-height: 340px; overflow: auto; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 30, 45, .14); padding: 8px 12px; }
.mp-head { margin: 2px 0 4px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.mp-panel .cb { font-size: .9rem; padding: 4px 0; }
.mp-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; position: sticky; bottom: -8px; background: #fff; }
.f.filled .mp > summary { background: #f0fbf6; }
/* Client "Send an Assignment": documents with "Fill from documents" at the far right */
.docs-f { margin-bottom: 16px; }
.docs-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.docs-row input[type=file] { flex: 1 1 240px; border-bottom: 0; padding: 6px 0; }
.docs-row .fill-btn { margin-left: auto; white-space: nowrap; }
.fill-status:empty { display: none; }
.client-new .grid + .f { margin-top: 16px; }
.sec-pick select { padding: 7px 30px 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); max-width: 100%; }
.page-head h1 + .sec-pick { margin-left: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ba-form { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
