:root {
  --bg: #f3f5f9; --surface: #fff; --text: #1b2433; --muted: #667085; --border: #e3e7ee;
  --primary: #2556d9; --primary-d: #1a41ad; --primary-soft: #e8eefc;
  --green: #12805c; --green-soft: #e3f6ee; --amber: #b25e09; --amber-soft: #fff3df;
  --red: #c62828; --red-soft: #fdeaea; --nav: #111a2e; --nav-text: #b7c1d6;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 14px rgba(16,24,40,.05);
}
@media (prefers-color-scheme: dark) {
  :root:not(.force-light) {
    --bg: #0e1422; --surface: #172033; --text: #e6ebf5; --muted: #93a0b8; --border: #27324a;
    --primary: #6b93ff; --primary-d: #8aa9ff; --primary-soft: #1f2d52;
    --green: #4fd1a1; --green-soft: #12332a; --amber: #f0b45a; --amber-soft: #3a2c12;
    --red: #ff7b7b; --red-soft: #3b1b1d; --nav: #0a101d;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
a { color: var(--primary); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }
[data-denied] { display: none !important; }      /* not permitted for this role */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; }

/* ---- controls ---- */
button, .btn { font: inherit; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 9px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; min-height: 38px; }
button:hover, .btn:hover { border-color: var(--primary); }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 1px; }
button.primary, .btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
button.primary:hover { background: var(--primary-d); }
button.danger { color: var(--red); } button.danger.solid { background: var(--red); color: #fff; border-color: var(--red); }
button.sm { padding: 4px 10px; min-height: 30px; font-size: .85rem; }
button:disabled { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
input, select, textarea { font: inherit; width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); min-height: 40px; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 6px 18px; } .choices label { display: flex; align-items: center; gap: 7px; font-weight: 400; margin: 0; font-size: .95rem; }
.req { color: var(--red); }
.field { margin-bottom: 14px; } .field .err { color: var(--red); font-size: .83rem; margin-top: 4px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); }
.hint { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h2 { margin-bottom: 12px; }

/* ---- badges ---- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); } .badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); } .badge.gray { background: var(--border); color: var(--muted); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; } tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: var(--primary-soft); }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }

/* ---- app shell ---- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--nav); color: var(--nav-text); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { color: #fff; font-weight: 700; font-size: 1.15rem; padding: 4px 10px 18px; display: flex; gap: 8px; align-items: center; }
.brand i { width: 26px; height: 26px; border-radius: 7px; background: var(--primary); display: inline-block; }
.sidebar nav a { display: block; color: var(--nav-text); text-decoration: none; padding: 10px 12px; border-radius: 9px; margin-bottom: 2px; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: var(--primary); color: #fff; font-weight: 600; }
.sidebar .me { margin-top: auto; padding: 10px; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar .me button { margin-top: 8px; width: 100%; background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.main { padding: 24px; min-width: 0; max-width: 1400px; }
.topbar { display: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px; } .stat .n { font-size: 2rem; font-weight: 700; line-height: 1.1; } .stat .l { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.stat.green .n { color: var(--green); } .stat.amber .n { color: var(--amber); } .stat.red .n { color: var(--red); } .stat.blue .n { color: var(--primary); }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.chart-box { position: relative; height: 260px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bar { height: 8px; background: var(--border); border-radius: 9px; overflow: hidden; min-width: 80px; } .bar > i { display: block; height: 100%; background: var(--green); }
.linkbox { display: flex; gap: 6px; align-items: center; } .linkbox code { font-size: .8rem; background: var(--bg); padding: 3px 7px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; max-width: 260px; white-space: nowrap; }

/* ---- modal / toast ---- */
.overlay { position: fixed; inset: 0; background: rgba(8,12,24,.55); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 12px; overflow-y: auto; z-index: 50; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal.wide { max-width: 760px; } .modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 99; max-width: calc(100vw - 32px); }
.toast { padding: 12px 16px; border-radius: 10px; color: #fff; background: #1f2937; box-shadow: var(--shadow); animation: pop .2s ease; }
.toast.ok { background: #0f7a57; } .toast.warn { background: #a4560a; } .toast.err { background: #b82323; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; background: var(--primary-soft); color: var(--primary); }
.alert.err { background: var(--red-soft); color: var(--red); } .alert.warn { background: var(--amber-soft); color: var(--amber); } .alert.ok { background: var(--green-soft); color: var(--green); }

/* ---- centered pages (login/register) ---- */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.panel { width: 100%; max-width: 440px; } .panel.wide { max-width: 520px; }
.panel h1 { margin-bottom: 4px; }
.qrbox { text-align: center; } .qrbox img { width: 240px; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 8px; }
.regno { font-size: 2.6rem; font-weight: 800; letter-spacing: .08em; color: var(--primary); }

/* ---- check-in ---- */
.ci { max-width: 760px; margin: 0 auto; padding: 14px; }
.tabs { display: flex; gap: 6px; margin: 14px 0; } .tabs button { flex: 1; justify-content: center; } .tabs button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
#reader { width: 100%; max-width: 480px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; }
#reader:empty { display: none; }
.result { border-radius: var(--radius); padding: 18px; margin-top: 14px; border: 2px solid; }
.result h2 { font-size: 1.5rem; letter-spacing: .03em; margin-bottom: 8px; }
.result.valid, .result.success { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.result.already { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.result.invalid, .result.not_found { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.result dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0; color: var(--text); }
.result dt { color: var(--muted); } .result dd { margin: 0; font-weight: 600; word-break: break-word; }
.match { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--surface); flex-wrap: wrap; }

@media (max-width: 960px) {
  .charts, .two { grid-template-columns: 1fr; }
}
/* phones: below 16px iPhones zoom the page when a field is tapped */
@media (max-width: 800px) { input, select, textarea { font-size: 16px; } }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--nav); color: #fff; position: sticky; top: 0; z-index: 30; }
  .topbar button { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
  .main { padding: 14px; } .grid2 { grid-template-columns: 1fr; }
}

/* ================= Print Details (name + registration number only) ================= */
#printArea { display: none; }
@page idcard { size: 85.6mm 54mm; margin: 0; }
@media print {
  body.printing > *:not(#printArea) { display: none !important; }
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body.printing #printArea { display: flex !important; page: idcard; width: 85.6mm; height: 54mm; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5mm 6mm; box-sizing: border-box; overflow: hidden; color: #000; background: #fff; font-family: "Helvetica Neue", Arial, sans-serif; }
  #printArea .pn { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; font-size: 7mm; max-width: 100%; overflow-wrap: anywhere; }
  #printArea .pr { font-weight: 800; font-size: 15mm; letter-spacing: .06em; line-height: 1; margin-top: 4mm; }
  /* the check-in details slip: ordinary paper, not the ID card size */
  body.printing #printArea.slip { display: block !important; page: auto; width: auto; max-width: 120mm; height: auto; padding: 10mm; text-align: left; overflow: visible; }
  #printArea.slip h1 { font-size: 7mm; margin: 0 0 5mm; border-bottom: .5mm solid #000; padding-bottom: 2mm; }
  #printArea.slip table { width: 100%; border-collapse: collapse; font-size: 4.2mm; }
  #printArea.slip th, #printArea.slip td { text-align: left; vertical-align: top; padding: 1.8mm 0; border: 0; border-bottom: .2mm solid #bbb; color: #000; background: none; text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
  #printArea.slip th { width: 42%; font-weight: 600; font-size: 4.2mm; }
  #printArea.slip td { font-weight: 700; }
}
/* ================= Super Admin console ================= */
.nav-badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 20px; }
.sev { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.sev.high { background: var(--red-soft); color: var(--red); } .sev.warning { background: var(--amber-soft); color: var(--amber); }
.alert-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--red); background: var(--red-soft); color: var(--text); }
.alert-banner.ok { border-color: var(--green); background: var(--green-soft); }
.alert-banner b { color: var(--red); } .alert-banner.ok b { color: var(--green); }
.subtabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; } .subtabs button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
tr.unack td:first-child { box-shadow: inset 3px 0 0 var(--red); } tr.unack.warn td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
tr.acked { opacity: .6; }
tr.unread td { font-weight: 600; background: var(--primary-soft); }   /* security alerts not opened yet */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: .85rem; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }

/* ================= Registration form builder (Super Admin) ================= */
.fb { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(0, 2fr) minmax(240px, 1.3fr); gap: 14px; align-items: start; }
.fb-lib { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border: 1px dashed var(--border); border-radius: 9px; margin-bottom: 6px; min-height: 44px; font-size: .9rem; }
.fb-lib[draggable] { cursor: grab; } .fb-lib.used { color: var(--muted); opacity: .65; }
.fb-list { list-style: none; margin: 0; padding: 0; }
.fb-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--surface); }
.fb-item.on { border-color: var(--primary); background: var(--primary-soft); }
.fb-item .grip { cursor: grab; color: var(--muted); font-size: 1.2rem; user-select: none; }
.fb-title { flex: 1 1 140px; display: block; text-align: left; border: 0; background: none; padding: 2px 0; word-break: break-word; } .fb-title span.small { display: block; }
.fb-acts { display: flex; gap: 4px; margin-left: auto; }
.fb-item.dragging, .fb-lib.dragging { opacity: .45; }
.fb-item.drop-before { box-shadow: 0 -4px 0 var(--primary); } .fb-item.drop-after { box-shadow: 0 4px 0 var(--primary); }
@media (max-width: 1150px) { .fb { grid-template-columns: minmax(200px, 1fr) minmax(0, 1.8fr); } .fb > :last-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .fb { grid-template-columns: 1fr; } }

/* ================= Email template editor (Super Admin) ================= */
.em { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.em-frame { display: block; width: 100%; max-width: 100%; height: 720px; margin: 0 auto; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
@media (max-width: 1100px) { .em { grid-template-columns: 1fr; } }

/* ================= Vendor stall registration & management ================= */
.panel.vendor { max-width: 640px; }
.totals { display: grid; grid-template-columns: 1fr max-content; gap: 6px 14px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
.totals dt { color: var(--muted); } .totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .grand { color: var(--text); font-size: 1.15rem; font-weight: 700; border-top: 1px solid var(--border); padding-top: 8px; }
.price-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr max-content; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 620px) { .price-row { grid-template-columns: 1fr 1fr; } }

/* ================= Check-In: event day selector ================= */
.daypick { border: 2px solid var(--primary); }
.daypick [role=radio] { min-height: 44px; }

/* ================= Certificate Management ================= */
.cert-svg { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
@media (min-width: 1101px) { .cert-side { position: sticky; top: 12px; } }

/* ================= Check-In page: inline camera scanner + candidate card + history ================= */
.scan-box { position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); transition: border-color .2s; }
.scan-box:empty { display: flex; align-items: center; justify-content: center; }
.scan-box:empty::after { content: "Camera off"; color: #8b95a8; font-size: .9rem; }
.scan-box video { width: 100%; height: 100%; object-fit: contain; display: block; }   /* the whole camera frame, never stretched */
.scan-box.mirrored video { transform: scaleX(-1); }   /* display only: QR decoding reads the unflipped frame */
.scan-box.hit { border-color: var(--green); }
.scan-guide { position: absolute; inset: 16%; pointer-events: none; }
.scan-guide i { position: absolute; width: 18%; height: 18%; border: 0 solid #5ad1ff; filter: drop-shadow(0 0 4px #000); }
.scan-guide i:nth-child(1) { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-top-left-radius: 8px; }
.scan-guide i:nth-child(2) { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-top-right-radius: 8px; }
.scan-guide i:nth-child(3) { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-bottom-left-radius: 8px; }
.scan-guide i:nth-child(4) { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-bottom-right-radius: 8px; }
.scan-box.hit .scan-guide i { border-color: var(--green); }
.ci-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.ci-name { font-size: 1.7rem; font-weight: 800; line-height: 1.2; word-break: break-word; color: var(--text); }
.ci-reg { font-size: 2.8rem; line-height: 1.1; }
tr.fresh td { animation: fresh 3s ease-out; }
@keyframes fresh { from { background: var(--green-soft); } to { background: transparent; } }
/* Keep a table's action column visible when the table is wider than the screen */
.sticky-r { position: sticky; right: 0; background: var(--surface); box-shadow: -8px 0 8px -8px rgba(0,0,0,.45); }
/* Staff check-in page uses the same two-column layout as the Admin Check-In page */
.ci.ci-wide { max-width: 1100px; }
/* a long menu scrolls, so the last items and Sign out are always reachable */
.sidebar { overflow-y: auto; } .sidebar > * { flex-shrink: 0; }

/* Role & Permission Management matrix */
table.pm th:not(:first-child), table.pm td:not(:first-child) { text-align: center; }
table.pm input[type=checkbox] { width: 20px; height: 20px; min-height: 0; cursor: pointer; }
table.pm td:first-child { min-width: 200px; }

/* certificate editor: the certificate gets the full width, settings of the selected item beside it */
.em.custom { grid-template-columns: 1fr; } .em.custom .cert-side { order: -1; position: static; }
.em.custom .ce-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .em.custom .ce-wrap { grid-template-columns: 1fr; } }
.cert-svg.ce-live { touch-action: none; user-select: none; outline: none; }
.cert-svg.ce-live:focus { box-shadow: 0 0 0 2px var(--primary); }
.ce-box { fill: transparent; stroke: #2f64e8; stroke-width: .6; stroke-dasharray: 3 3; stroke-opacity: .35; cursor: move; pointer-events: all; }
.ce-box:hover { stroke-opacity: .9; } .ce-box.on { stroke-opacity: 1; stroke-width: 1.4; stroke-dasharray: none; }
.ce-handle { fill: #2f64e8; stroke: #fff; cursor: nwse-resize; }

/* ================= Company branding ================= */
.brand-logo { max-height: 34px; max-width: 130px; object-fit: contain; background: #fff; border-radius: 7px; padding: 3px; }
.ci-logo { display: block; max-height: 56px; max-width: 220px; margin-bottom: 10px; }
.br-logo { max-width: 220px; max-height: 90px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px; vertical-align: middle; }
.br { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: start; }
.br-preview { position: sticky; top: 70px; } .br-frame { display: block; width: 100%; max-width: 100%; height: 560px; margin: 0 auto; border: 1px solid var(--border); border-radius: 10px; }
.br-fill { border-top: 1px solid var(--border); padding: 12px 0; } .br-fill:first-child { border-top: 0; }
.br-swatch { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); display: inline-block; }
.br-stops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; }
.br-stop { display: inline-flex; align-items: center; } .br-stop input { width: 52px; padding: 3px; height: 38px; } .br-stop button { min-height: 30px; padding: 0 8px; }
.br-preset i { width: 18px; height: 18px; border-radius: 6px; display: inline-block; }
.br-colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 14px; }
.br-colour { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .br-colour label { display: flex; gap: 7px; align-items: center; margin: 0; font-weight: 400; }
.br-colour input[type=color] { width: 52px; padding: 3px; height: 36px; flex: 0 0 auto; }
@media (max-width: 1100px) { .br { grid-template-columns: 1fr; } .br-preview { position: static; order: -1; } }
.brand { flex-wrap: wrap; overflow-wrap: anywhere; }        /* a wide logo puts the name underneath */

/* Company Domains */
.dm { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.dm-add { margin-top: 4px; }

/* Company look on sign-in and registration pages */
.center-page.branded { flex-direction: column; gap: 16px; }
.entry-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 1.25rem; text-align: center; }
.entry-brand .brand-logo { max-height: 76px; max-width: 260px; }
