/* Theme: every color the site uses. Change the palette here only. Based on 1.0's colors. */
:root {
  --ink: #1d2433; --muted: #5d6677; --line: #dfe3ea; --bg: #f5f6f8; --card: #fff;
  --brand: #5589c5; --brand-ink: #fff;            /* 1.0 header bar, selected folder, folder icons */
  --brand-dark: #2f5f93;                           /* 1.0 round menu button in the header */
  --accent: #3f72ad; --accent-ink: #fff;          /* links and buttons: 1.0's blue, a shade darker to stay readable */
  --go: #75b666; --go-ink: #fff; --go-dark: #377e22; /* 1.0 Place Order button, count badges, timers */
  --side-ink: #555; --side-line: #e7e7e7;          /* 1.0 folder pane text and dividers */
  --ok: #1d7a46; --warn: #8a5a00; --err: #b3261e;
  --vacation: #d9534f;               /* 1.0's red header while vacation mode is on (owner only) */
  --disabled: #e8ecf3;                /* grey = can't be used (Heath, Oct 22) */
  --info-bg: #eaf2fb; --info-line: #cfe0f4;   /* pale blue notes (Heath, Oct 23) */
  --err-bg: #fbe9e8; --warn-bg: #eaf2fb; --warn-line: #cfe0f4;        /* set-aside items: pale blue too (Heath, Oct 24) */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
}
[hidden] { display: none !important; }  /* hidden always wins over a display: rule */
tr.row-link { cursor: pointer; }
tr.row-link:hover > td { background: #eef3fa; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 8px 20px; min-height: 56px;
  background: var(--brand); color: var(--brand-ink); }
.brand { font-weight: 700; text-decoration: none; color: var(--brand-ink); font-size: 18px; white-space: nowrap; }
.brand span { opacity: .85; }
.topbar nav { display: flex; gap: 18px; flex: 1; }
.topbar nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.topbar nav a:hover { color: var(--ink); }
.who { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.who form { margin: 0; }
.page { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }
.narrow { max-width: 420px; margin: 8vh auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 24px 0 10px; }
p.muted, .muted { color: var(--muted); }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
ul.checks { list-style: none; padding: 0; margin: 0; columns: 2; }
ul.checks li label { font-weight: 400; display: flex; gap: 8px; margin: 4px 0; }
button, .btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: 10px 16px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
/* Grey means "can't be used" (Heath, Oct 22): working secondary buttons are green; Cancel is plain white */
button.secondary, .btn.secondary { background: var(--go); color: var(--go-ink); }
button.plain, .btn.plain { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
button.danger, .btn.danger { background: var(--err); color: #fff; }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 500; }
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.errorlist { color: var(--err); list-style: none; padding: 0; margin: 6px 0; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; background: #e8f1fb; }
.flash-success { background: #e6f4ec; color: var(--ok); }
.flash-warning { background: var(--info-bg); color: var(--ink); border: 1px solid var(--info-line); }  /* notes are pale blue, not brown (Heath, Oct 24) */
.flash-error { background: #fbe9e8; color: var(--err); }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0f2f6; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.tag { display: inline-block; background: #e8ecf3; border-radius: 999px; padding: 1px 10px; font-size: 13px; margin: 0 4px 4px 0; }
.tag.off { background: #fbe9e8; color: var(--err); }
.head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.head h1 { margin: 0; }
.tabs a { margin-right: 14px; }
.roletabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--line); margin: 0 0 14px; }
.roletabs a { padding: 9px 14px; margin-bottom: -2px; border-bottom: 3px solid transparent; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.roletabs a:hover { color: var(--ink); }
.roletabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.roletabs a span { font-weight: 500; font-size: 13px; background: #e8ecf3; border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.tabs a.on { font-weight: 700; color: var(--ink); text-decoration: none; }
.qr { background: #fff; padding: 12px; border: 1px solid var(--line); border-radius: 8px; display: inline-block; }
.qr svg { width: 200px; height: 200px; display: block; }
.codes { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; columns: 2; padding-left: 18px; }
.pager { margin-top: 14px; display: flex; gap: 12px; }
.danger-zone { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.danger-zone form { display: inline; }
@media (max-width: 700px) {
  ul.checks, .codes { columns: 1; }
}

/* Roles grid (1.0 style) */
.wide { max-width: 1400px; }
.page.full { max-width: none; }  /* 1.0's full-width screens (Proofread) */
.grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.grid { border: 0; border-radius: 0; }
table.grid th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.grid td.c, table.grid th:not(:first-child) { text-align: center; }
table.grid tbody tr:hover { background: #f7f9fc; }
table.grid input[type=checkbox] { width: 18px; height: 18px; }
.actions.sticky { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; margin: 0; }
/* Staff permissions: green outline marks role defaults */
.perm-card { margin-top: 16px; }
ul.perms li.is-default label, .key-default { color: #1d7a46; font-weight: 700; }
.card + .card { margin-top: 16px; }

/* Top-right menu (1.0 layout) */
.topbar .spacer { flex: 1; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--brand-dark); color: var(--brand-ink); }
details.menu > summary svg { width: 12px; height: 18px; fill: currentColor; }
.menu-who { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--ink); font-size: 15px; text-decoration: none; border-radius: 6px 6px 0 0; }
.menu-list a.menu-who { display: flex; padding: 8px 12px 10px; border-radius: 6px 6px 0 0; }
.menu-who img, .menu-who .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.menu-who .avatar { display: grid; place-items: center; background: var(--accent); }
.menu-who .avatar svg { width: 15px; height: 15px; fill: #fff; }
.profile-actions { display: flex; gap: 8px; align-items: center; }
.profile-actions form { margin: 0; }
.server-time { font-size: 18px; white-space: nowrap; color: var(--brand-ink); margin-left: 8px; }
.topsearch { position: relative; width: 260px; }
.topsearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; fill: var(--muted); }
.topsearch input { width: 100%; border-radius: 999px; padding: 8px 14px 8px 36px; border: 0; font-size: 15px; }
@media (max-width: 900px) { .server-time { display: none; } .topsearch { width: 160px; } }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary, details.menu > summary:hover { filter: brightness(1.15); }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px; max-height: calc(100vh - 80px);
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20,30,50,.12); padding: 6px; }
.menu-list a, .menu-list button.link { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.menu-list a:hover, .menu-list button.link:hover { background: #f0f3f8; }
.menu-list a.sub { padding-left: 26px; color: var(--muted); }
details.menu-sub > summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: 15px; color: var(--ink); }
details.menu-sub > summary::-webkit-details-marker { display: none; }
details.menu-sub > summary::after { content: " ▸"; color: var(--muted); }
details.menu-sub[open] > summary::after { content: " ▾"; }
details.menu-sub > summary:hover { background: #f0f3f8; }
.menu-items { overflow-y: auto; min-height: 0; }  /* the list scrolls; My Profile and Logout stay at the bottom */
.menu-list form { margin: 0; }

/* Left folder pane (1.0 order and look). Desktop: shown, ☰ hides it. Phone: hidden, ☰ slides it out. */
.sidetoggle { background: none; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; width: 42px; height: 42px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand-ink); }
.sidetoggle svg { width: 18px; height: 18px; fill: currentColor; }
.shell { display: flex; align-items: flex-start; }
.shell > main { flex: 1; min-width: 0; }
.side { width: 250px; flex: none; background: var(--card); border-right: 1px solid var(--side-line);
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.side .place { display: block; margin: 16px; padding: 12px; text-align: center; background: var(--go); color: var(--go-ink);
  border-radius: 4px; text-decoration: none; text-transform: uppercase; font-weight: 500; letter-spacing: .02em; }
.side nav { border-top: 1px solid var(--side-line); }
.side nav a { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--side-line);
  color: var(--side-ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.side nav a svg { width: 20px; height: 20px; flex: none; fill: var(--brand); }
.side nav a:hover { background: #f4f7fb; }
.side nav a.on { background: var(--brand); color: var(--brand-ink); }
.side nav a.on svg { fill: var(--brand-ink); }
body.side-toggled .side { display: none; }
@media (max-width: 900px) {
  .side { display: none; position: fixed; left: 0; top: 56px; z-index: 25; box-shadow: 4px 0 18px rgba(20,30,50,.18); }
  body.side-toggled .side { display: block; }
  .page { padding: 20px 16px; }
  table { display: block; overflow-x: auto; }
  th, td { white-space: nowrap; }
}

/* EVE */
select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: var(--card); }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.row3 label { margin-top: 10px; }
.row3 label input, .row3 label select { margin-top: 6px; font-weight: 400; }
.title-row { display: flex; align-items: center; gap: 10px; }
.title-row .title-input { flex: 1; font-size: 22px; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 2px 6px; }
.title-row .title-input:hover, .title-row .title-input:focus { border-color: var(--line); background: var(--card); }
.title-row .tag { font-size: 13px; font-weight: 500; }
.rule-cols { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.rule-cols > div { min-width: 220px; }
#eve-form label { font-weight: 500; color: var(--muted); }
#eve-form label input[type=text], #eve-form label input[type=url], #eve-form label select { margin-top: 6px; color: var(--ink); }
.lbl { color: var(--muted); margin-right: 10px; }
label.radio { display: inline-flex; align-items: center; gap: 6px; margin: 4px 14px 4px 0; font-weight: 400; color: var(--ink) !important; }
label.radio.block { display: flex; }
label.radio input { width: 18px; height: 18px; }
.eve-tabs { display: flex; gap: 2px; background: #eceef1; border: 1px solid var(--line); border-radius: 8px 8px 0 0; padding: 6px 6px 0; overflow-x: auto; }
.eve-tabs button { background: none; color: var(--ink); font-weight: 500; border-radius: 6px 6px 0 0; padding: 12px 22px; white-space: nowrap; }
.eve-tabs button[aria-selected=true] { background: var(--card); border: 1px solid var(--line); border-bottom-color: var(--card); margin-bottom: -1px; }
.eve-panel { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; padding: 20px; margin-bottom: 80px; }
.info-grid { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 12px 20px; align-items: end; margin-bottom: 18px; }
.info-grid.four { grid-template-columns: repeat(4, 1fr); }
.info-grid .span2 { grid-column: span 2; }
.info-main { display: grid; grid-template-columns: 200px 200px 1fr; gap: 20px; }
.info-main fieldset { border: 0; padding: 0; margin: 0; }
.info-main legend { color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.info-fields { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px 16px; align-content: start; }
.months { width: 110px !important; margin-top: 4px; }
.tx-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.tx-toolbar select { width: auto; min-width: 260px; flex: 1; max-width: 420px; }
.tx-toolbar .narrow-select { min-width: 150px; flex: 0; }
.tx-toolbar .factor { width: 90px; }
button.small { padding: 8px 12px; font-size: 14px; }
.tx-methods { margin-bottom: 12px; }
.tx-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.tx-head, .tx-row { display: grid; grid-template-columns: 18px 26px minmax(160px, 1fr) repeat(4, auto) 34px 64px 44px 64px 22px; gap: 6px; align-items: center; }
.tx-head { background: #eceef1; padding: 8px 6px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.tx-head .c-sub { grid-column: 1 / 4; padding-left: 40px; }
.tx-head .c-out { grid-column: 9 / 11; text-align: center; }
.tx-row { background: #f3f4f6; margin-top: 6px; padding: 8px 6px 4px; border-radius: 6px; }
.tx-row input { padding: 7px 8px; font-size: 14px; }
.tx-row .c-in { width: 64px; }
.c-credit, .c-mark, .c-max, .c-grade { display: none; }
.show-credit .c-credit, .show-mark .c-mark, .show-mark .c-max, .show-grade .c-grade { display: block; }
.tx-row.heading .f-title { grid-column: 3 / 8; }
.tx-row.heading .del { grid-column: 8; }
.tx-row .handle { cursor: grab; color: var(--muted); }
.tx-row .num { color: var(--muted); font-size: 13px; text-align: right; }
.tx-row .del { background: #d9534f; padding: 6px 0; width: 32px; font-size: 18px; line-height: 1; }
.tx-row output { background: #e6e8eb; border-radius: 6px; padding: 7px 4px; text-align: center; font-size: 14px; min-height: 34px; }
.tx-row input.o-credit, .tx-row input.o-grade { width: 100%; text-align: center; }
.tx-row .o-credit { grid-column: 9; } .tx-row .o-grade { grid-column: 10; } .tx-row .o-qp { grid-column: 11; }
.row-actions { grid-column: 3 / -1; display: flex; gap: 6px; margin: 2px 0; }
.row-actions button { background: var(--accent); font-size: 11px; padding: 3px 8px; font-weight: 600; }
.tx-row.nomatch { background: #fdecea; box-shadow: inset 4px 0 0 var(--err); }
.tx-row.nomatch .o-grade { background: #f8c9c4; }
.tx-row.dragging { opacity: .5; }
.tx-sum { display: flex; justify-content: flex-end; gap: 18px; align-items: center; margin-top: 10px; }
.tx-sum output { display: inline-block; background: #e6e8eb; border-radius: 6px; padding: 8px 14px; min-width: 70px; text-align: center; margin-left: 6px; color: var(--ink); font-weight: 700; }
.nomatch-note { color: var(--err); font-weight: 600; margin-right: auto; }
.tx-table h3 { font-size: 14px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.tx-table table { font-size: 14px; }
.tx-table th, .tx-table td { text-align: center; padding: 7px 6px; }
.tx-table th label { color: var(--muted); font-weight: 500; }
.us-length { border: 0; border-top: 1px solid var(--line); margin: 20px 0 0; padding: 14px 0 0; }
.us-length legend { color: var(--muted); padding: 0; margin-bottom: 4px; }
.notes { margin: 6px 0 16px; font-size: 14px; }
.notes p { margin: 4px 0; }
table.equiv { font-size: 14px; }
table.equiv tbody th { background: none; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 14px; white-space: nowrap; }
table.equiv tbody { border-top: 2px solid var(--line); }
.eve-footer { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; align-items: center; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px; margin: 0 -24px; }
.eve-footer { flex-wrap: wrap; }
.eve-footer > button, .eve-footer > .btn, .eve-footer summary { white-space: nowrap; }
.eve-footer .ev-note { flex: 1 1 260px; display: flex; gap: 8px; align-items: center; }
.eve-footer textarea { flex: 1; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
button.go, .btn.go { background: var(--go); color: var(--go-ink); }
button:disabled, button:disabled.secondary, button:disabled.go { background: var(--disabled); color: var(--muted); cursor: not-allowed; }
@media (max-width: 1100px) { .tx-body { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .row3, .info-grid, .info-grid.four, .info-main, .info-fields { grid-template-columns: 1fr; }
  .info-grid .span2 { grid-column: auto; }
  .tx-rows { overflow-x: auto; }
  .tx-head, .tx-row { min-width: 640px; }
  .eve-footer { position: static; flex-wrap: wrap; margin: 0 -16px; }
  .eve-panel { margin-bottom: 16px; }
  .eve-footer .ev-note { flex-basis: 100%; }
}

/* EVE: compact layout so a tab fits on one screen */
#eve-form { font-size: 14px; }
#eve-form input[type=text], #eve-form input[type=url], #eve-form select, #eve-form textarea { padding: 6px 8px; font-size: 14px; border-radius: 6px; }
#eve-form label { margin: 0; font-size: 13px; }
#eve-form label input[type=text], #eve-form label input[type=url], #eve-form label select { margin-top: 3px; }
.crumb { margin: -10px 0 4px; font-size: 14px; }
#eve-form .title-row { margin: 0 0 8px; }
#eve-form .title-row .title-input { font-size: 19px; }
#eve-form .eve-tabs button { padding: 8px 18px; font-size: 14px; }
#eve-form .eve-panel { padding: 14px 16px; }
#eve-form label.radio { margin: 1px 10px 1px 0; font-size: 14px; gap: 5px; }
#eve-form label.radio input { width: 15px; height: 15px; }
.info-top { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.info-top .field { display: flex; flex-direction: column; }
.info-top .grow { flex: 1; } .info-top .grow2 { flex: 2; }
.info-top .lbl { font-size: 13px; font-weight: 500; margin: 0 0 3px; }
.inline-radios { display: flex; align-items: center; height: 32px; }
.info-main { display: grid; grid-template-columns: auto auto; gap: 28px; justify-content: start; margin-bottom: 10px; }
.info-main legend { font-size: 13px; margin-bottom: 2px; }
.radio-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 0 6px; }
.radio-cols.three { grid-template-columns: repeat(4, auto); }
.months { width: 90px !important; margin-top: 4px; }
#eve-form .info-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 14px; }
#eve-form .info-fields .span2 { grid-column: span 2; }
/* Information tab: same layout, but don't stretch across wide screens (Heath, Oct 21) */
#eve-form [data-panel=information] > * { max-width: 1120px; }
#eve-form .info-top .grow { flex: 0 1 230px; } #eve-form .info-top .grow2 { flex: 0 1 380px; }
@media (max-width: 900px) { #eve-form .info-top .grow, #eve-form .info-top .grow2 { flex: 1 1 100%; } }
#eve-form .radio-cols label.radio { white-space: nowrap; }
@media (max-width: 1400px) { #eve-form .radio-cols.three { grid-template-columns: repeat(3, auto); } }
#eve-form .eve-footer { padding: 6px 16px; }
#eve-form .eve-footer textarea { min-height: 32px; }
#eve-form .eve-footer .btn, #eve-form .eve-footer button { padding: 7px 14px; font-size: 14px; }
@media (max-width: 900px) {
  .info-top { flex-wrap: wrap; }
  .info-top .grow, .info-top .grow2 { flex-basis: 100%; }
  .info-main { grid-template-columns: 1fr; gap: 10px; }
  .radio-cols, .radio-cols.three { grid-template-columns: repeat(2, auto); }
  #eve-form .info-fields { grid-template-columns: 1fr 1fr; }
}
#eve-form .tx-toolbar { margin-bottom: 8px; gap: 6px; }
#eve-form .tx-toolbar button.small { padding: 6px 10px; font-size: 13px; }
#eve-form .tx-methods { margin-bottom: 8px; }
#eve-form .tx-head { padding: 5px 6px; font-size: 13px; white-space: nowrap; }
#eve-form .tx-row { margin-top: 3px; padding: 3px 6px; position: relative; }
#eve-form .tx-row input { padding: 4px 6px; font-size: 13px; }
#eve-form .tx-row .c-in { width: 100%; min-width: 0; }
#eve-form .tx-row output { padding: 4px 3px; min-height: 26px; font-size: 13px; }
#eve-form .tx-row .del { width: 26px; padding: 3px 0; font-size: 15px; }
#eve-form .tx-head, #eve-form .tx-row { grid-template-columns: 14px 22px minmax(180px, 1fr) var(--w-credit, 0px) var(--w-mark, 0px) var(--w-max, 0px) var(--w-grade, 0px) 28px 56px 40px 56px 22px; gap: 4px; }
/* fixed widths (not sized by content) so the header and every row line up */
#eve-form.show-credit { --w-credit: 56px; } #eve-form.show-mark { --w-mark: 56px; --w-max: 56px; } #eve-form.show-grade { --w-grade: 56px; }
#eve-form .row-actions { display: none; position: absolute; left: 46px; top: 100%; z-index: 3; margin: -2px 0 0; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 10px rgba(20,30,50,.12); }
#eve-form .tx-row.open .row-actions { display: flex; left: auto; right: 0; }  /* opened by the row's ⋯ button, not by mouse-over */
#eve-form .tx-row .more { grid-column: 12; background: none; color: var(--muted); padding: 0; font-size: 18px; line-height: 1; width: 22px; }
#eve-form .tx-row .more:hover, #eve-form .tx-row.open .more { color: var(--ink); }
#eve-form .tx-sum { margin-top: 6px; }
#eve-form .tx-sum output { padding: 5px 12px; }
#eve-form .tx-body { grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; }  /* fixed: rows don't move when the table changes */
@media (max-width: 1100px) { #eve-form .tx-body { grid-template-columns: minmax(0, 1fr); white-space: normal; } }  /* rows above the table */
#eve-form .tx-table { max-width: 400px; min-width: 0; overflow-x: auto; }
#eve-form .tx-table h3 { white-space: normal; }
#eve-form .tx-table h3 { font-size: 12px; margin-bottom: 4px; }
#eve-form .tx-table table { font-size: 13px; }
#eve-form .tx-table th, #eve-form .tx-table td { padding: 3px 5px; white-space: nowrap; }
#eve-form .tx-table th { font-size: 11px; }
#eve-form .us-length { margin-top: 10px; padding-top: 8px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; align-items: start; }
.profile-grid label { display: grid; gap: 4px; }
.profile-photo { display: flex; align-items: center; gap: 10px; }
.profile-photo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.profile-save { grid-column: -2; display: flex; justify-content: flex-end; }
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } .profile-save { grid-column: auto; } }
/* EVE: source pages beside the course rows (Transcripts tab, 'Show pages') */
.eve-panel.with-pages { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 38%); column-gap: 16px; align-items: start; }
#eve-form .eve-panel.with-pages .tx-body { grid-template-columns: minmax(0, 1fr); white-space: normal; }  /* pages shown: grading table below the rows */
.eve-panel.with-pages > * { grid-column: 1; }
.eve-panel.with-pages > .page-viewer { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: 70px; }
.page-viewer { border: 1px solid var(--line); border-radius: 8px; background: var(--card); display: flex; flex-direction: column; max-height: calc(100vh - 160px); }
.pv-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pv-bar #pv_label { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-frame { overflow: auto; flex: 1; min-height: 0; }
.pv-frame img { display: block; width: 100%; cursor: zoom-in; }
.pv-frame img.zoom { width: 200%; max-width: none; cursor: zoom-out; }
@media (max-width: 900px) {
  .eve-panel.with-pages { display: block; }
  .eve-panel.with-pages > .page-viewer { position: static; max-height: 70vh; margin-bottom: 12px; }
}
.docs-menu { position: relative; }
.docs-menu > summary { list-style: none; cursor: pointer; }
.docs-menu > summary::-webkit-details-marker { display: none; }
.docs-menu ul { position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 30; min-width: 280px; max-width: min(520px, 90vw);
  max-height: 50vh; overflow-y: auto; list-style: none; margin: 0; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20,30,50,.12); }
.docs-menu li { padding: 6px 8px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.docs-menu li span { flex: 1 1 100%; overflow-wrap: anywhere; font-weight: 500; }
.send-pr { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 12px 16px; margin: 10px 0 0;
  display: grid; gap: 8px; max-width: 640px; margin-left: auto; }
.send-pr h3 { margin: 0; }
.send-pr p { margin: 0; overflow-wrap: anywhere; }
.send-pr label { display: grid; gap: 4px; }
.send-pr-actions { display: flex; gap: 8px; justify-content: flex-end; }
#eve-form .key-subjects { display: grid; gap: 4px; margin-top: 14px; color: var(--muted); max-width: 720px; }
#eve-form .notes { margin: 2px 0 8px; font-size: 13px; }
#eve-form .notes p { margin: 2px 0; }
#eve-form .equiv-wrap { max-height: calc(100vh - 400px); min-height: 240px; overflow: auto; }
#eve-form table.equiv { font-size: 13px; border: 0; border-radius: 0; }
#eve-form table.equiv th, #eve-form table.equiv td { padding: 4px 8px; }
#eve-form table.equiv thead th { position: sticky; top: 0; z-index: 1; font-size: 13px; }
#eve-form .info-grid.four { margin-bottom: 8px; gap: 8px 14px; }
#eve-form .tx-head .c-out { grid-column: 9 / 11; }
#eve-form .tx-head .c-qp { grid-column: 11; text-align: center; }
.school-pick { position: relative; display: flex; flex-direction: column; }
.school-pick > label { margin: 0; }
.school-pick input[type=text] { margin-top: 3px; }
.school-pick small { font-size: 12px; margin-top: 2px; min-height: 14px; }
.pick-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; list-style: none; margin: -14px 0 0; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20,30,50,.15); max-height: 300px; overflow-y: auto; }
.pick-list li { padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.pick-list li span { color: var(--muted); }
.pick-list li:hover, .pick-list li.on { background: #eef3fa; }

/* EVE Information tab, laid out as 1.0 (Heath, Oct 21) */
#eve-form .info .field { display: flex; flex-direction: column; }
#eve-form .info .lbl, #eve-form .info legend, #eve-form .info-grid12 > label, #eve-form .info-grid12 .school-pick > label, #eve-form .info .purpose { font-size: 13px; font-weight: 500; }
#eve-form .info-row { display: flex; gap: 24px; align-items: flex-end; margin-bottom: 14px; flex-wrap: wrap; }
#eve-form .info-row .purpose { width: 440px; max-width: 100%; }
#eve-form .info-row.names { gap: 16px; }
#eve-form .info-row.names input[type=text] { width: 300px; max-width: 100%; }
#eve-form .info-body { display: grid; grid-template-columns: 150px 150px minmax(0, 880px); gap: 18px; align-items: start; }
#eve-form .radio-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
#eve-form .radio-list legend { margin-bottom: 4px; padding: 0; white-space: nowrap; }
#eve-form .radio-list .radio { margin: 2px 0; white-space: nowrap; }
#eve-form .radio-list .months { margin-top: 6px; width: 90px !important; }
#eve-form .info-grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 14px; }
#eve-form .info-grid12 .c2 { grid-column: span 2; } #eve-form .info-grid12 .c3 { grid-column: span 3; }
#eve-form .info-grid12 .c4 { grid-column: span 4; } #eve-form .info-grid12 .c5 { grid-column: span 5; }
#eve-form .info-grid12 .c6 { grid-column: span 6; } #eve-form .info-grid12 .row-start.c3 { grid-column: 1 / span 3; }
#eve-form .info-grid12 input { margin-top: 3px; }
#eve-form .info-grid12 .school-pick small:empty { display: none; }
@media (max-width: 1100px) {
  #eve-form .info-body { grid-template-columns: 150px 150px; }
  #eve-form .info-grid12 { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  #eve-form .info-grid12 { grid-template-columns: 1fr 1fr; }
  #eve-form .info-grid12 > * { grid-column: span 2 !important; }
  #eve-form .info-grid12 .c2, #eve-form .info-grid12 .c3 { grid-column: span 1 !important; }
  #eve-form .info-row.names input[type=text] { width: auto; flex: 1 1 140px; }
  #eve-form .info-row .purpose { width: 100%; }
}

/* One font everywhere: form controls don't inherit it by default (Heath, Oct 21) */
input, select, textarea, button, output { font-family: inherit; }
/* EVE: consistent sizes - labels 13px, values and choices 14px, table headers in normal case */
#eve-form { font-size: 14px; }
#eve-form input[type=text], #eve-form input[type=search], #eve-form input[type=url], #eve-form select,
#eve-form textarea, #eve-form output, #eve-form label.radio { font-size: 14px; }
#eve-form th, #eve-form .tx-head, #eve-form .tx-table h3 { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
#eve-form .notes, #eve-form table.equiv td, #eve-form table.equiv tbody th { font-size: 14px; }

/* EVE grading-table box: type to find, pick from the list */
#eve-form .table-pick { position: relative; flex: 1; min-width: 260px; max-width: 520px; }
#eve-form .table-pick input { width: 100%; }
#eve-form .table-pick .pick-list { margin-top: 2px; max-height: 360px; }
#eve-form .table-pick li.current { font-weight: 600; }
#eve-form .reset-wrap { position: relative; }
#eve-form .reset-confirm { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 30; display: flex; gap: 6px; align-items: center; white-space: nowrap; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(20,30,50,.18); font-size: 13px; }
/* Fixed column positions for the transcript header and rows, so hiding a column (e.g. Credit under Max Marks)
   never shifts the others (Heath, Oct 21) */
#eve-form .tx-head .c-credit, #eve-form .tx-row .c-credit { grid-column: 4; }
#eve-form .tx-head .c-mark, #eve-form .tx-row .c-mark { grid-column: 5; }
#eve-form .tx-head .c-max, #eve-form .tx-row .c-max { grid-column: 6; }
#eve-form .tx-head .c-grade, #eve-form .tx-row .c-grade { grid-column: 7; }
#eve-form .tx-head .c-del, #eve-form .tx-row:not(.heading) .del { grid-column: 8; }
#eve-form .tx-row .handle { grid-column: 1; } #eve-form .tx-row .num { grid-column: 2; } #eve-form .tx-row:not(.heading) .f-title { grid-column: 3; }
#eve-form .tx-head > span, #eve-form .tx-row > * { grid-row: 1; }
#eve-form .tx-row .row-actions { grid-row: auto; }
/* numbers right-aligned with a little room from the edge, so decimals line up (Heath, Oct 21) */
#eve-form .tx-row .f-credit, #eve-form .tx-row .f-mark, #eve-form .tx-row .f-max_mark, #eve-form .tx-row .o-qp,
#eve-form .tx-row output.o-credit, #eve-form .tx-row input.f-us_credit { text-align: right; padding-right: 8px; }
/* Equivalencies: same sizes as the other tabs - headers 13px, level names and rows 14px in the normal text colour */
#eve-form table.equiv tbody th { color: var(--ink); font-weight: 600; text-transform: none; }
#eve-form table.equiv thead th { text-transform: none; letter-spacing: 0; }
#eve-form .reset-confirm[hidden], #eve-form [hidden] { display: none !important; }

/* ---- Order Entry ---- */
.oe-top { padding: 16px; margin-bottom: 16px; }
.oe-row1 { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr auto .8fr .8fr 210px; gap: 10px; align-items: center; }
.oe-row1 input[type=date] { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.oe-inline { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--muted); white-space: nowrap; }
.oe-inline select { width: auto; min-width: 220px; color: var(--ink); }
.oe-total { background: var(--card); color: var(--go-dark); border: 1px solid var(--go); font-weight: 700; padding: 9px 14px; border-radius: 8px; white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.oe-row2 { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; margin-top: 12px; }
.yn { display: flex; align-items: center; gap: 4px; }
.yn > span { font-weight: 600; margin-right: 6px; }
.oe-name { position: relative; }
.oe-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 300px; overflow-y: auto; }
.oe-suggest button { display: block; width: 100%; text-align: left; background: none; color: var(--ink); font-weight: 500; border-radius: 0; padding: 9px 12px; }
.oe-suggest button:hover { background: #f0f3f8; }
.oe-suggest small { color: var(--muted); margin-left: 6px; }
.oe-part { padding: 14px 16px; margin-bottom: 14px; background: #f7f7f7; }
.oe-part-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.oe-types { display: flex; gap: 10px; }
.oe-types button { background: var(--card); color: var(--accent); border: 2px solid var(--accent); padding: 8px 14px; }
.oe-types button.on { background: var(--accent); color: var(--accent-ink); }
.oe-part-title { font-size: 19px; color: var(--muted); }
.oe-remove { justify-self: end; padding: 2px 14px; font-size: 18px; line-height: 1.2; }
.oe-fields { margin-top: 6px; }
.oe-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .7fr .7fr .7fr 1.4fr 1.2fr; gap: 0 14px; align-items: start; }
.oe-grid label, .oe-notes label { font-weight: 400; color: var(--ink); margin: 10px 0 0; }
.oe-grid label input, .oe-grid label select, .oe-notes textarea { margin-top: 5px; color: var(--ink); font-weight: 400; }
.oe-files { margin-top: 10px; align-self: start; min-width: 0; }
.oe-files-lbl { display: block; }
.oe-drop { position: relative; display: flex; align-items: center; gap: 10px; margin: 5px 0 0 !important; padding: 8px 12px; min-height: 42px;
  border: 1.5px dashed var(--accent); border-radius: 8px; background: var(--card); color: var(--accent) !important; cursor: pointer; }
.oe-drop:hover, .oe-drop.over { background: #eef3fa; border-style: solid; }
.oe-drop input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.oe-drop svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.oe-drop-text { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oe-drop-text small { font-weight: 400; color: var(--muted); }
/* chosen files: compact tags across the full width, so many files don't push the part down */
.oe-filelist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.oe-filelist:empty { display: none; }
.oe-filelist li { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; padding: 2px 2px 2px 9px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.oe-filelist li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oe-filelist li small { color: var(--muted); white-space: nowrap; }
.oe-filelist li button { background: none; color: var(--muted); padding: 0 7px; font-size: 17px; line-height: 1; }
.oe-filelist li button:hover { color: var(--err); }
.oe-lower { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 16px; align-items: flex-start; }
.oe-col { display: flex; flex-direction: column; min-width: 140px; }
.oe-col .lbl { margin-bottom: 6px; color: var(--ink); }
.oe-col label.radio { margin: 4px 0; }
.oe-notes { flex: 1; min-width: 300px; max-width: 650px; }
.oe-notes label:first-child { margin-top: 0; }
.oe-notes small { display: block; font-size: 13px; color: var(--muted); }
.oe-notes textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; background: var(--card); }
.oe-part.is-tl .ev { display: none !important; }
button.go { background: var(--go); color: var(--go-ink); }
#oe-add { font-size: 20px; padding: 7px 16px; line-height: 1.2; }
.oe-breakdown { margin-top: 4px; padding: 12px 16px; }
.oe-bd-head { display: flex; align-items: center; gap: 14px; max-width: 520px; justify-content: space-between; }
.oe-breakdown table { border: 0; margin-top: 8px; max-width: 520px; }
.oe-breakdown td { padding: 5px 8px; }
.oe-breakdown td.amt { text-align: right; white-space: nowrap; }
.oe-breakdown tr.sum td { font-weight: 700; border-bottom: 0; }
.oe-actions { justify-content: flex-end; }
#errors ul { margin: 6px 0 0; padding-left: 20px; }
@media (max-width: 1300px) { .oe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .oe-row1 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .oe-row1 { grid-template-columns: 1fr; }
  .oe-grid { grid-template-columns: 1fr 1fr; }
  .oe-files, .oe-title, .oe-country { grid-column: 1 / -1; }
  .oe-part-head { grid-template-columns: 1fr auto; }
  .oe-types { grid-column: 1 / -1; }
  .oe-lower { gap: 14px 24px; }
  .oe-notes { min-width: 100%; }
  .oe-inline select { min-width: 0; flex: 1; }
}

/* ---- Order page ---- */
.od-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 20px; }
.od-grid div span { display: block; color: var(--muted); font-size: 13px; }
.od-part { margin-top: 16px; }
.od-part h2 { margin-top: 0; }
.od-files { margin-top: 12px; }
.od-files table.grid th:not(:first-child) { text-align: left; }
.od-files td { white-space: nowrap; }
.od-price .amt { text-align: right; white-space: nowrap; }
#order-form [hidden] { display: none !important; }
@media (max-width: 640px) { .oe-source { width: 100%; white-space: normal; } }
.oe-types button { white-space: nowrap; }
@media (max-width: 640px) { .oe-types { width: 100%; } .oe-types button { flex: 1; padding: 8px 4px; font-size: 14px; } }

/* Type-to-find boxes (combo.js) */
.combo { position: relative; margin-top: 5px; }
.combo input[type=text] { width: 100%; margin: 0 !important; }
.combo .pick-list { margin: 2px 0 0; min-width: 100%; width: max-content; max-width: 360px; }
.oe-inline .combo { margin: 0; min-width: 220px; }
.oe-copy { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.oe-copy svg { width: 15px; height: 17px; fill: currentColor; }
.oe-copy.done { background: var(--go-dark); }

/* fields the server rejected (Order Entry) */
#eve-form input.field-error { border-color: var(--err); box-shadow: 0 0 0 2px rgba(200,40,40,.25); }
#order-form .invalid { outline: 2px solid var(--err); outline-offset: 2px; border-radius: 8px; }
#order-form input.invalid, #order-form select.invalid { border-color: var(--err); outline-offset: 0; }

/* ---- Search results ---- */
.srp-filters { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 14px; }
.srp-filters label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; color: var(--muted); }
.srp-filters select, .srp-filters input[type=date] { width: auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: var(--card); }
.srp { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.srp-head, .srp-row { display: grid; grid-template-columns: 110px minmax(260px, 2fr) minmax(220px, 1.4fr) 120px 120px 56px; gap: 12px; padding: 10px 14px; align-items: start; }
.srp-head { background: #f0f2f6; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border-radius: 10px 10px 0 0; }
.srp-row { border-top: 1px solid var(--line); }
.srp-row.deleted { background: #fdf5f4; }
.srp-row small { display: block; color: var(--muted); font-size: 13px; }
.srp-parts > div { margin-bottom: 4px; }
.srp-parts .tag { font-size: 12px; margin: 0 2px; }
.tag.st { background: #e6eef8; color: var(--accent); text-decoration: none; }
.tag.ok { background: #e6f4ec; color: var(--ok); }
.srp-total { font-weight: 600; }
.srp-total .tag { display: block; width: max-content; margin-top: 4px; font-weight: 500; }
.srp-client .why { color: var(--accent); }
mark { background: #fff1a8; color: inherit; padding: 0 1px; border-radius: 2px; }
details.pop { position: relative; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
.pop-list { position: absolute; z-index: 15; top: calc(100% + 4px); left: 0; min-width: 220px; max-width: 360px; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20,30,50,.15); padding: 4px; }
details.pop.right .pop-list { left: auto; right: 0; }
.pop-list a, .pop-list button.link { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 6px; text-decoration: none;
  color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-list a:hover, .pop-list button.link:hover { background: #f0f3f8; }
.pop-list form { margin: 0; }
.pop-list small { color: var(--muted); }
.danger-text { color: var(--err) !important; }
@media (max-width: 900px) {
  .srp-head { display: none; }
  .srp-row { grid-template-columns: 1fr auto; }
  .srp-date { grid-column: 1; } .srp-more { grid-column: 2; grid-row: 1; }
  .srp-parts, .srp-client, .srp-total, .srp-files { grid-column: 1 / -1; }
}

/* a value 2.0 filled in as a suggestion: orange ring until the evaluator changes it or saves */
.oe-col.suggested { outline: 2px solid rgba(232,137,12,.6); outline-offset: 4px; border-radius: 6px; }
.oe-peek { display: block; margin-top: 6px; }
label.radio.suggested { outline: 2px solid rgba(232,137,12,.6); outline-offset: 2px; border-radius: 6px; }
.inline-radios.suggested { outline: 2px solid rgba(232,137,12,.6); outline-offset: 3px; border-radius: 6px; }
input.suggested, select.suggested { border-color: #e8890c !important; box-shadow: 0 0 0 2px rgba(232,137,12,.35); }

/* ---- EVE Imager (as 1.0: Source Documents left, To Be Parsed / Not to be Parsed right) ---- */
.imager-top { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 8px; }
.imager-top .lbl { font-size: 16px; color: var(--muted); }
.imager-status { margin-right: auto; color: var(--accent); font-weight: 500; }
.imager-addbox { display: grid; gap: 6px; margin-bottom: 10px; }
.imager-addbox #imager_add_go { justify-self: start; }
.profile-pick { display: grid; gap: 6px; flex: 1; min-width: 220px; }
.imager-areas { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 8px 22px; }
.imager-area h3 { font-size: 16px; font-weight: 500; color: var(--muted); margin: 6px 0 8px; }
.imager-source { grid-row: 1 / span 2; }
.imager-drop { min-height: 300px; border: 3px solid var(--brand); border-radius: 14px; background: #f4f6f9; padding: 14px;
  display: flex; flex-wrap: wrap; gap: 14px; align-content: flex-start; transition: background .15s; }
.imager-source .imager-drop { min-height: 640px; }
.imager-drop.over { background: #a39bf7; }
.imager-page { position: relative; margin: 0; width: 150px; cursor: grab; }
.imager-page img { display: block; width: 150px; height: 190px; object-fit: contain; background: #fff; border: 4px solid #f6c667; }
.imager-parse .imager-page img { border-color: #5cb85c; }
.imager-skip .imager-page img { border-color: #b8bec8; }
.imager-page.dragging { opacity: .45; }
.imager-page figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 2px; }
.imager-rotate { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 17px;
  background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.25); opacity: 0; transition: opacity .15s; }
.imager-page:hover .imager-rotate, .imager-rotate:focus { opacity: 1; }
@media (max-width: 900px) { .imager-areas { grid-template-columns: 1fr; } .imager-source { grid-row: auto; } .imager-source .imager-drop { min-height: 300px; } .imager-rotate { opacity: 1; } }
.timer { display: inline-block; min-width: 46px; text-align: center; padding: 2px 8px; border-radius: 6px; background: #e6f4ec; color: var(--ok); font-weight: 600; }
.timer.t-amber { background: #fdf3e1; color: var(--warn); }
.timer.t-red { background: #fbe9e8; color: var(--err); }
.research-done { display: flex; align-items: center; gap: 4px; margin: 0; white-space: nowrap; }
.research-done label.radio { margin: 0 6px 0 0; }
.imager-gt { margin: 0 18px 0 0 !important; font-size: 16px; }

/* Duplicate files on the order page: set aside, not parsed (Heath, Oct 22) */
.od-dup td { color: var(--muted); }
.tag.dup { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px;
  background: var(--warn-bg); color: var(--ink); border: 1px solid var(--warn-line); }

/* Question box beside the button that asked it (menu.js askNear/tellNear) */
.near-box { position: absolute; z-index: 1000; max-width: min(360px, calc(100vw - 16px)); padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20,30,50,.2); }
.near-box p { margin: 0 0 10px; font-size: 14px; }
.near-btns { display: flex; gap: 8px; justify-content: flex-end; }
.near-btns button { min-height: 36px; padding: 6px 14px; }

/* Document Templates (reports) */
.tpl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.tpl-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); }
.tpl-tabs a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tpl-grid td { vertical-align: top; min-width: 220px; }
.tpl-grid th[scope=row] { text-align: left; font-weight: 600; white-space: nowrap; }
.tpl-missing { background: var(--err-bg); }
.tpl-na { color: var(--muted); font-size: .9em; }
.tpl-missing .tpl-when { color: var(--err); font-weight: 600; }
.tpl-when { font-size: 13px; color: var(--muted); }
.tpl-links { display: flex; gap: 10px; margin: 4px 0; }
.tpl-warn { font-size: 12px; color: var(--warn); }
.tpl-replace summary { list-style: none; display: inline-block; margin-top: 4px; }
.tpl-replace summary::-webkit-details-marker { display: none; }
.tpl-replace form { display: grid; gap: 8px; margin-top: 8px; }
.tpl-replace label { display: grid; gap: 4px; font-size: 13px; }
.tpl-replace label.oe-drop { display: flex; font-size: inherit; }
.tpl-replace label.oe-drop + .oe-filelist { margin-top: 0; }
@media (max-width: 700px) {  /* phone: each template row becomes a card */
  .tpl-grid, .tpl-grid tbody, .tpl-grid tr, .tpl-grid th, .tpl-grid td { display: block; width: auto; min-width: 0; }
  .tpl-grid thead { display: none; }
  .tpl-grid tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tpl-grid th[scope=row] { white-space: normal; padding: 6px 12px; }
  .tpl-grid td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
}

/* Proofread folder list as 1.0 (Heath, Oct 22): plain table, normal-case headings, fits the page (long text wraps) */
table.pr-list { border: 0; border-radius: 0; background: transparent; table-layout: auto; }
.pr-list th { background: transparent; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); white-space: nowrap; padding: 10px 8px; border-bottom: 2px solid var(--line); }
.pr-scroll { overflow-x: auto; }
.pr-list td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; background: transparent; padding: 10px 8px; }
.pr-list td:nth-child(-n+7) { overflow-wrap: normal; white-space: nowrap; }
.pr-list td:last-child { white-space: nowrap; }
.pr-list .pr-sub { white-space: normal; }
.pr-list td:nth-child(4) { white-space: normal; min-width: 90px; }
.pr-list td:nth-child(9) { min-width: 150px; }
.pr-list td:nth-child(10) { min-width: 140px; }
.pr-rush { display: inline-block; min-width: 28px; padding: 2px 8px; text-align: center; border-radius: 3px; background: var(--err); color: #fff; font-weight: 700; }
.pr-timer { display: inline-block; white-space: nowrap; padding: 2px 10px; border-radius: 3px; border: 2px solid var(--ok); background: var(--card); color: var(--ink); }  /* 1.0: green outline, red when late */
.pr-timer.t-amber { border-color: #c98a00; } .pr-timer.t-red { border-color: var(--err); background: var(--err); color: #fff; font-weight: 600; }
.pr-sub { display: block; margin-top: 4px; font-size: 12px; }
.pr-checking { color: var(--warn); font-weight: 600; }
.pr-country { color: var(--ok); }
.s2c-timer { display: inline-block; min-width: 46px; text-align: center; padding: 3px 8px; border-radius: 3px; background: var(--ok); color: #fff; font-weight: 600; }  /* 1.0: solid green hours */
.s2c-list td:nth-child(n) { min-width: 0; white-space: nowrap; }
.s2c-list td:nth-child(5) { white-space: normal; }
.pr-ops form { margin: 0; }
.status-box { position: relative; }
.status-box > summary { list-style: none; cursor: pointer; } .status-box > summary::-webkit-details-marker { display: none; }
.status-pop { position: fixed; z-index: 40; display: grid; gap: 8px; min-width: 240px;
  padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(20,30,50,.15); white-space: normal; cursor: default; }
.status-pop .go { justify-self: end; }
.pr-ops { display: flex; gap: 6px; align-items: center; }
.pr-ops .btn { white-space: nowrap; padding: 6px 10px; }
.pr-ops .pr-icon svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.pr-list .pr-url { font-size: 14px; }
.pr-list td > a > svg { width: 18px; height: 18px; fill: var(--accent); }
.timer.t-green { background: #e6f4ec; color: var(--ok); }
.seg { display: flex; gap: 0; } .seg .btn { border-radius: 0; } .seg .btn:first-child { border-radius: 8px 0 0 8px; } .seg .btn:last-child { border-radius: 0 8px 8px 0; }
.ops { display: flex; flex-wrap: wrap; gap: 6px; } .ops form { margin: 0; }
@media (max-width: 700px) {
  table.pr-list, .pr-list tbody, .pr-list tr, .pr-list td { display: block; width: auto; }
  .pr-list td:empty { display: none; }
  .pr-list thead { display: none; }
  .pr-list tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .pr-list td, .pr-list td:nth-child(n) { padding: 4px 12px; border: 0; white-space: normal; min-width: 0; }
  .pr-list td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
}

/* Proofread detail as 1.0: the report on the left, order details on the right, actions at the bottom right */
.pr-head { align-items: center; }
.pr-back { font-size: 20px; line-height: 1; padding: 6px 14px; }
.pr-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.pr-report { align-self: start; }
.pr-pdf { width: 100%; height: calc(100vh - 230px); min-height: 480px; border: 8px solid #ddd; background: var(--card); }
.pr-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pr-dl { font-size: 14px; font-weight: 600; color: var(--muted); }
.pr-side .pr-label { font-size: 14px; font-weight: 600; color: var(--muted); margin: 26px 0 6px; }
.pr-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pr-chip { display: inline-block; padding: 2px 8px; border-radius: 3px; background: #666; color: #fff; font-size: 13px; text-decoration: none; }
.pr-side h3 { font-size: 17px; color: var(--muted); margin: 22px 0 6px; }
.pr-side { display: flex; flex-direction: column; align-self: stretch; }
.pr-side .pr-actions { justify-content: flex-end; margin-top: auto; padding-top: 14px; }
.pr-side .pr-actions { gap: 6px; }
.pr-side .pr-actions button { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.pr-side h3.pr-ref { margin-top: 60px; }
.pr-side p { margin: 0; }
.pr-url { overflow-wrap: anywhere; }
.pr-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.pr-actions form { margin: 0; }
.pr-box { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-top: 10px; background: var(--card); }
.pr-box label { display: grid; gap: 4px; }
@media (max-width: 900px) {
  .pr-detail, .pr-detail.with-pages { grid-template-columns: 1fr; }
  .pr-pdf { height: 70vh; min-height: 0; }
}

.mail-body { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 12px; }

/* Vacation mode: red header with a note, for the person who turned it on (as 1.0) */
.topbar.vacation { background: var(--vacation); }
.vacation-note { color: var(--brand-ink); font-weight: 700; text-decoration: none; margin-left: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vac-short { display: none; }
@media (max-width: 900px) { .vac-long { display: none; } .vac-short { display: inline; text-decoration: underline; }
  .vacation-note { white-space: normal; overflow: visible; font-size: 13px; line-height: 1.15; margin-left: 4px; flex: 0 1 auto; } }
.tpl-pdf { display: block; width: 100%; height: min(80vh, 1000px); border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; background: var(--card); }

/* Client pages (ACCEPT / CHANGES links) */
body.client { background: var(--bg); }
.client-top { background: var(--accent); color: #fff; padding: 14px 20px; font-size: 18px; }
.client-main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.client-foot { text-align: center; padding: 20px 16px; font-size: 13px; }
.client-form { display: grid; gap: 12px; }
.client-form h2 { margin: 8px 0 0; font-size: 18px; }
.client-form label { display: grid; gap: 4px; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.client-grid .wide { grid-column: 1 / -1; }
.client-form .error { color: var(--err); font-size: 14px; }
.copy-row { display: flex; gap: 6px; margin-bottom: 6px; } .copy-row input { flex: 1; }
.client-changes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.client-draft { width: 100%; height: calc(100vh - 160px); min-height: 480px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.policy { background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.client-form textarea { min-height: 240px; }
.client-attach { display: grid; gap: 6px; }
.client-quote { white-space: normal; background: var(--info-bg); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
@media (max-width: 800px) {
  .client-changes, .client-grid { grid-template-columns: 1fr; }
  .client-draft { height: 60vh; min-height: 0; }
}

/* Invalid Link (client), as 1.0: crest in a white box on a blue page; one font throughout (Heath, Oct 23) */
body.client-invalid { background: var(--brand); min-height: 100vh; margin: 0; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 28px; }
.invalid-card { background: var(--card); border-radius: 4px; max-width: 640px; width: 100%; padding: 40px 32px 32px; text-align: center; font-family: inherit; }
.invalid-card, .invalid-card * { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
/* client pages: text a shade darker than the staff pages' grey, easier to read (Heath, Oct 23) */
.invalid-card { --muted: #374151; color: var(--ink); }
.invalid-crest { width: auto; height: auto; max-width: min(280px, 100%); max-height: 140px; display: block; margin: 0 auto 16px; }  /* crest, square or wide logo */
.invalid-brand { font-size: 24px; font-weight: 700; letter-spacing: .08em; }
.invalid-card h1 { font-size: 22px; font-weight: 400; color: var(--muted); margin: 0 0 24px; }
.invalid-msg { text-wrap: balance; font-size: 17px; font-weight: 400; color: var(--muted); text-align: left; margin: 0 0 24px; }
.invalid-help { font-size: 14px; color: var(--muted); margin: 0; }
.invalid-msg p { margin: 0 0 10px; }
.invalid-card .client-quote { text-align: left; margin: 0 0 16px; color: var(--muted); font-size: 17px; }
.notice-small { font-size: 14px; color: var(--muted); margin: 0 0 24px; overflow-wrap: anywhere; }

/* Email editor (templates page, Email List box) */
.email-form { display: grid; gap: 12px; }
.email-form label { display: grid; gap: 4px; }
.editor { border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: #f7f9fc; border-radius: 8px 8px 0 0; }
.editor-bar button { background: var(--card); color: var(--ink); border: 1px solid var(--line); padding: 4px 10px; font-size: 14px; }
.editor-area { min-height: 260px; padding: 10px 12px; font-family: Aptos, Calibri, "Segoe UI", Arial, sans-serif; font-size: 11pt; color: #000; line-height: 1.35; outline: none; overflow-wrap: anywhere; }
.editor-area p { margin: 0 0 10px; }
.field-lbl { font-weight: 600; margin-bottom: -6px; }

/* Edit folder (1.0 'Client Edit Requests') */
.edit-list th, .edit-list td { font-size: 14px; }
.edit-list td:nth-child(9), .edit-list td:nth-child(10) { min-width: 150px; }
.edit-list td:last-child { min-width: 84px; }
.edit-list .dl-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 3px; }
.edit-list .pr-chips { margin-bottom: 8px; }
.edit-ops { display: grid; grid-template-columns: auto; gap: 4px; justify-items: start; }
.edit-ops .btn, .edit-ops button, .edit-ops summary { padding: 5px 9px; font-size: 13px; white-space: nowrap; }
.edit-ops svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.email-row > td { background: var(--card) !important; }
.email-box { max-width: 820px; }
.email-list { columns: 2; margin: 4px 0; padding-left: 18px; }
.email-list li { break-inside: avoid; }
button.linkish { background: none; border: 0; padding: 2px 0; color: var(--accent); font-weight: 400; text-align: left; cursor: pointer; }
button.linkish:hover { text-decoration: underline; }
.email-s2c { display: flex !important; align-items: center; gap: 8px; justify-content: flex-end; }
@media (max-width: 700px) { .email-list { columns: 1; } }
.editor-sig { padding: 6px 12px 10px; border-top: 1px dashed var(--line); color: #888; font-family: Aptos, Calibri, "Segoe UI", Arial, sans-serif; font-size: 11pt; line-height: 1.35; }
.editor-sig p { margin: 0; } .editor-sig .muted { font-size: 12px; }

/* ACCEPT page (Heath, Oct 23): the brand's notice layout, compact fields, Accept at the bottom right */
.invalid-card.form-card { max-width: 560px; }
.accept-form { text-align: left; display: grid; gap: 10px; margin: 0; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.acc-grid .wide { grid-column: 1 / -1; }
.acc-grid label, .acc-lbl { display: grid; gap: 3px; margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.acc-grid label small, .acc-lbl small { font-weight: 400; display: inline; }
.acc-grid label { align-content: end; }
.accept-form input { margin: 0; }
.acc-grid small, .acc-lbl small { font-size: 12px; }
.accept-form input[type=text], .accept-form input[type=email], .accept-form select { padding: 7px 10px; font-size: 15px; min-height: 36px; }
.acc-note { font-size: 13px; color: var(--muted); margin: 0; }
/* thank-you pages: the ACCEPT page's text style (Heath, Oct 24); each address in its own box, plain text */
.addr-box { border: 1px solid #b8c0cc; border-radius: 6px; padding: 8px 12px; margin: 0 0 8px; line-height: 1.45; }
.addr-head { font-weight: 600; margin-bottom: 2px; }
.client-body { font-size: 13px; color: var(--muted); text-align: left; margin: 0 0 20px; }
.client-body p { margin: 0 0 8px; }
.invalid-card .client-body + .client-quote, .client-body ~ .client-quote { font-size: 13px; }
.acc-copies { display: grid; gap: 4px; }
.acc-others { margin: 4px 0 8px; padding-left: 20px; }
.acc-note p { margin: 0 0 4px; }
.acc-email-only { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; margin: 4px 0 10px; }
/* several addresses: each starts with a blue stripe (Heath, Oct 23) */
.acc-numbered { margin-top: 8px; }
.acc-head { background: var(--brand); color: var(--brand-ink); font-size: 15px; font-weight: 600; padding: 6px 12px;
  border-radius: 6px; margin: 0 0 10px; }
.accept-form .copy-row { display: flex; gap: 6px; margin: 0 0 6px; } .accept-form .copy-row input { flex: 1; }
.accept-form .copy-row button { white-space: nowrap; padding: 6px 12px; }
.acc-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.accept-form .error { color: var(--err); font-size: 13px; }
@media (max-width: 520px) { .acc-grid { grid-template-columns: 1fr; } }
.addr-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 2px 0 0 !important; }
.acc-check { background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; font-size: 14px; }
.acc-check p { margin: 0; }
.acc-choice { display: flex !important; gap: 8px; align-items: flex-start; margin: 0 !important; font-weight: 400 !important; color: var(--ink) !important; }
.acc-choice input { margin-top: 3px; }

/* Sign in, as 1.0 (Heath, Oct 23): Reset Password smaller than Sign In */
.login-card { max-width: 540px; padding: 48px 56px 40px; }
.login-crest { width: 190px; height: auto; display: block; margin: 0 auto 48px; }
.login-form { display: grid; gap: 18px; text-align: left; }
.login-field { display: flex; border: 1px solid #ccd3dc; border-radius: 4px; overflow: hidden; }
.login-icon { display: flex; align-items: center; justify-content: center; width: 50px; flex: none; background: #f5f5f5;
  border-right: 1px solid #ccd3dc; color: #555; }
.login-field input { flex: 1; min-width: 0; border: 0; border-radius: 0; margin: 0; padding: 14px 12px; font-size: 17px; background: #e8f0fe; }
.login-field input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.login-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px; }
.login-card .btn.login-reset { font-size: 14px; padding: 8px 14px; border-radius: 4px; }
.login-card .login-go { background: var(--go-dark); color: var(--go-ink); font-size: 18px; padding: 12px 20px; border-radius: 4px; }
.login-card .error { color: #b42318; font-size: 14px; margin-top: -10px; }
.login-card .flash { margin: 0 0 16px; text-align: left; }
@media (max-width: 480px) { .login-card { padding: 32px 20px 28px; } .login-crest { width: 150px; margin-bottom: 32px; } }

/* Mailing folder (Heath, Oct 24; 1.0 customer_mailing) */
.mail-list .pr-chip { white-space: nowrap; }
.mail-list .pr-ops { flex-wrap: wrap; max-width: 170px; }
.mail-list summary.pr-chip { cursor: pointer; list-style: none; }
.mail-sec { font-size: 20px; font-weight: 400; margin: 22px 0 6px; color: var(--muted); }
.mail-pop { min-width: 280px; max-width: 360px; }
.mail-addr { border-top: 1px solid var(--line); padding-top: 6px; display: grid; gap: 4px; line-height: 1.4; }
.mail-addr-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.mail-addr > button { justify-self: end; }
button.ia-btn { background: #fff; color: var(--err); border: 1px solid var(--err); font-weight: 700; }
.scan-issue { color: var(--err); display: inline-block; min-width: 180px; max-width: 260px; }  /* why the order waits in Scan */
.pr-chip.final-chip { background: var(--ok); color: #fff; }  /* 1.0: green final.pdf */
.scan-pick { min-width: 260px; }

/* File picker tags (Heath, Oct 24): blue dot while the file is copied in, green tick when ready, red if unreadable */
.oe-filelist:not(.pk-show) .pk-dot { display: none; }
.oe-filelist .pk-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: inline-block; }
.oe-filelist .pk-loading .pk-dot { animation: pk-pulse 0.9s ease-in-out infinite alternate; }
.oe-filelist .pk-ready .pk-dot { background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.oe-filelist .pk-error .pk-dot { background: var(--err); }
.oe-filelist .pk-error span { color: var(--err); }
@keyframes pk-pulse { from { opacity: .35; } to { opacity: 1; } }
.signed-out-banner { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: min(640px, calc(100vw - 32px)); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
/* ACCEPT street box is type=search (keeps Chrome's saved addresses off it): looks like the other boxes */
.accept-form input[type=search] { -webkit-appearance: none; appearance: none; }
.accept-form input[type=search]::-webkit-search-cancel-button, .accept-form input[type=search]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.acc-note.error { color: var(--err); }  /* own email under Email copies (Heath, Oct 24) */
.accept-form .copy-row { flex-wrap: wrap; } .accept-form .copy-row .own-copy { flex-basis: 100%; order: 10; margin: 0; }
.invalid-card .close-note { text-align: center; font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.scan-email-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; margin-bottom: 8px; }
.scan-email-grid .scan-src { border: 0; padding: 0; margin: 0; white-space: nowrap; }
@media (max-width: 700px) { .scan-email-grid { grid-template-columns: 1fr; } }
#scan_email_box { max-width: 860px; position: sticky; left: 0; grid-template-columns: minmax(0, 1fr); white-space: normal; }  /* stays in view in the sideways-scrolling table */
.scan-email-grid .scan-src label { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; font-weight: 400; }
.scan-email-grid .scan-src input { width: auto; margin: 0; }
.scan-email-grid .scan-src legend { margin-bottom: 6px; }
/* Signatures page */
.sig-card h2 { margin-top: 0; }
.sig-who { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: end; margin-bottom: 12px; }
.sig-who label { display: grid; gap: 4px; }
.sig-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.sig-img { position: relative; margin: 0; width: 150px; height: 80px; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: grid; place-items: center; }
.sig-img img { max-width: 140px; max-height: 70px; }
.sig-img form { position: absolute; top: 2px; right: 2px; }
.sig-img button { padding: 0 6px; line-height: 1.4; }
.sig-add { display: grid; gap: 8px; max-width: 520px; }
.sig-add > button { justify-self: start; }
.sig-add .oe-drop { box-sizing: border-box; max-width: 100%; }
/* Authenticate page (verify.<brand>; Heath, Oct 24) */
.invalid-card.auth-card { max-width: 640px; }
.invalid-card.auth-wide { max-width: 900px; }
.auth-title { font-size: 24px !important; color: var(--brand) !important; margin: 0 0 6px !important; }
.auth-note { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.auth-error { color: var(--err); margin: 0 0 14px; }
.auth-form { display: grid; gap: 14px; justify-items: center; margin-bottom: 22px; }
.auth-id { display: flex; width: 100%; max-width: 420px; }
.auth-prefix { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; background: #f3f4f6; font-size: 16px; font-weight: 600; color: var(--ink); }
.auth-id input { flex: 1; min-width: 0; box-sizing: border-box; font-size: 16px; text-align: left; text-transform: uppercase; border-radius: 0 6px 6px 0; }
.auth-doc { display: grid; gap: 12px; }
.auth-doc img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0,0,0,.12); background: #fff; }
.auth-new { text-align: center; margin: 16px 0 20px; }
