/* Louisa — administration area (adm_): e-signatures, messages, files, staff, settings, audit. */

/* ---------------------------------------------------------------- shared bits */
.adm-stack > * + *, .adm-stack > .card + .card { margin-top: 16px; }
.adm-count { display: inline-flex; min-width: 20px; height: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: rgba(16, 24, 40, .07); color: #475467; font-size: 11px; align-items: center; justify-content: center; font-weight: 600; }
.seg a.on .adm-count { background: var(--primary-50); color: var(--primary-700); }
.adm-seg { flex-wrap: wrap; }
.adm-sub-sep { color: var(--subtle); margin: 0 2px; }
.adm-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; font-size: 13px; }
.adm-dl-tight { grid-template-columns: 104px minmax(0, 1fr); gap: 8px 12px; }
.adm-center { text-align: center; }
.adm-center-row { justify-content: center; flex-wrap: wrap; }
.adm-warn { color: var(--amber); font-weight: 500; }
.adm-hash { font-size: 11.5px; word-break: break-all; }
.adm-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #f4f6fa; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; word-break: break-all; }
.adm-sticky { position: sticky; top: 18px; }
.toolbar .search.grow-s { flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .search.grow-s input { width: 100%; min-width: 0; }
.adm-chooser { width: 380px; padding: 12px 14px 14px; }
.adm-chooser .pop-h { padding: 0 0 10px; font-size: 14px; }
.adm-chooser select { height: 38px; }
details > summary.card-h { list-style: none; cursor: pointer; }
details > summary.card-h::-webkit-details-marker { display: none; }
.adm-doc-details[open] .adm-sum-btn { display: none; }
.adm-doc-details:not([open]) > summary.card-h { padding-bottom: 14px; }

/* Avatars with signing status */
.adm-av { position: relative; display: inline-flex; border-radius: 50%; }
.adm-av .avatar { box-shadow: 0 0 0 2px #fff; }
.adm-av.wait .avatar { background: #f2f4f7; color: #98a2b3; box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px #d0d5dd; }
.adm-av.sm .avatar { width: 28px; height: 28px; font-size: 10.5px; }
.adm-av-mark { position: absolute; right: -2px; bottom: -2px; width: 15px; height: 15px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 0 2px #fff; }
.adm-av-mark.ok { background: var(--green); }
.adm-av-mark.no { background: var(--red); }
.adm-av-mark .ic { stroke-width: 3.5; }
.adm-av-stack { display: inline-flex; }
.adm-av-stack .adm-av + .adm-av { margin-left: -4px; }
.adm-signers-cell { display: flex; align-items: center; gap: 12px; }
.adm-prog-t { font-size: 13px; color: #344054; white-space: nowrap; }
.adm-prog-t b { color: var(--ink); }
.adm-mini-bar { width: 92px; height: 5px; border-radius: 5px; background: #e9edf3; margin-top: 5px; overflow: hidden; }
.adm-mini-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #2aa45f, #1f8a4c); border-radius: 5px; }
.adm-doc-cell { align-items: center; gap: 12px; }
.adm-doc-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--primary-50); color: var(--primary); }
.adm-doc-ic.green { background: var(--green-50); color: var(--green); }
.adm-doc-ic.gray { background: #eef1f5; color: #667085; }

/* ---------------------------------------------------------------- esign_new */
.adm-code-area { min-height: 560px; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #fbfcfe; white-space: pre-wrap; }
.adm-doc { max-height: 640px; }
.adm-signer-list { display: flex; flex-direction: column; gap: 4px; }
.adm-sl { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.adm-sl:last-child { border-bottom: 0; }
.adm-sl b { display: block; color: var(--ink); font-size: 13.5px; }
.adm-sl small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.adm-sl .grow { min-width: 0; }
.adm-order { width: 20px; height: 20px; border-radius: 50%; background: #eef1f5; color: #475467; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.check b { color: var(--ink); }

/* ---------------------------------------------------------------- esign_view */
.adm-progress { padding: 18px 20px; }
.adm-progress-main { display: flex; gap: 16px; align-items: center; }
.adm-progress-main h2 { font-size: 17px; margin-bottom: 3px; }
.adm-progress-ring {
  --p: 0; width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(closest-side, #fff 76%, transparent 77% 100%), conic-gradient(var(--primary) calc(var(--p) * 1%), #e6ebf2 0);
}
.adm-progress-ring.done { background: radial-gradient(closest-side, #fff 76%, transparent 77% 100%), conic-gradient(var(--green) 100%, #e6ebf2 0); }
.adm-progress-ring span { font-weight: 700; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.adm-steps-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.adm-steps-i { display: flex; align-items: center; gap: 8px; }
.adm-steps-i span { line-height: 1.2; }
.adm-steps-i b { display: block; font-size: 13px; color: var(--ink); }
.adm-steps-i small { color: var(--muted); }
.adm-steps-i.signed small { color: var(--green-600); font-weight: 600; }
.adm-steps-i.declined small { color: var(--red); font-weight: 600; }
.adm-steps-sep { flex: 1; min-width: 18px; max-width: 80px; height: 2px; border-radius: 2px; background: #e3e8ef; }
.adm-steps-sep.on { background: var(--green); }

.adm-signer { padding: 16px 18px; border-top: 1px solid var(--line-2); }
.adm-signer:first-child { border-top: 0; }
.adm-signer-head { display: flex; align-items: center; gap: 12px; }
.adm-signer-id { min-width: 0; }
.adm-signer-id b { color: var(--ink); font-size: 14px; }
.adm-signer-id small { display: block; color: var(--muted); margin-top: 2px; }
.adm-signer-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0 64px; font-size: 12.5px; color: var(--muted); }
.adm-signer-meta span { display: inline-flex; align-items: center; gap: 5px; }
.adm-signer-meta b { color: #344054; font-weight: 500; }
.adm-signer-sig { display: flex; align-items: center; gap: 16px; margin: 12px 0 0 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.adm-signer-sig img { height: 54px; width: 170px; object-fit: contain; object-position: left center; border-bottom: 1px solid #c5cfdc; }
.adm-signer-sig small { display: block; color: var(--muted); font-size: 11.5px; }
.adm-signer-sig b { display: block; color: var(--ink); font-family: Georgia, serif; font-size: 15px; font-style: italic; }
.adm-ua { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-signer .note { margin-left: 64px; }
.adm-signer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0 64px; flex-wrap: wrap; }
.adm-linkbox { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; max-width: 470px; height: 34px; padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; color: var(--muted); }
.adm-linkbox input { border: 0 !important; box-shadow: none !important; background: transparent; height: 30px; padding: 0; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #475467; min-width: 0; }
.adm-cert td { font-size: 12.5px; }
.adm-filed { background: linear-gradient(135deg, #fff 0%, #f1faf4 100%); border-color: #cfe9da; }
.adm-filed b { color: var(--ink); }
.adm-danger > summary.card-h h2 { color: var(--red-600); }
.adm-danger > summary.card-h h2 .ic { color: var(--red); }
.adm-danger:not([open]) > summary.card-h { padding-bottom: 14px; }
.adm-danger[open] > summary .ic:last-child { transform: rotate(180deg); }

/* File-type tile */
.adm-ftile { position: relative; width: 36px; height: 40px; border-radius: 8px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; flex: none; }
.adm-ftile i { font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.adm-ft-red { background: var(--red-50); color: var(--red); }
.adm-ft-blue { background: var(--primary-50); color: var(--primary); }
.adm-ft-green { background: var(--green-50); color: var(--green); }
.adm-ft-purple { background: var(--purple-50); color: var(--purple); }
.adm-ft-gray { background: #eef1f5; color: #475467; }

/* ---------------------------------------------------------------- public signing page */
body.adm-sign-body { background: var(--bg); position: relative; }
body.adm-sign-body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 330px; z-index: 0;
  background: radial-gradient(700px 300px at 85% -10%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%),
              radial-gradient(900px 300px at 10% 120%, rgba(42, 163, 122, .45), rgba(42, 163, 122, 0) 70%),
              linear-gradient(155deg, #1d5aa6 0%, #17467f 60%, #123764 100%);
}
.adm-sign { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 0 20px 40px; }
.adm-sign-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 18px; color: #fff; }
.adm-brand { display: flex; flex-direction: column; line-height: 1.15; }
.adm-brand b { color: #fff; font-size: 18px; letter-spacing: -.02em; }
.adm-brand small { color: rgba(255, 255, 255, .75); font-size: 12.5px; }
.adm-secure { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 12.5px; font-weight: 600; }
.adm-sign-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: #fff; padding: 10px 0 26px; }
.adm-sign-hero h1 { color: #fff; font-size: 27px; letter-spacing: -.025em; line-height: 1.2; margin: 6px 0 6px; }
.adm-sign-hero p { color: rgba(255, 255, 255, .8); margin: 0; }
.adm-sign-hero p b { color: #fff; }
.adm-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fe0c4; }
.adm-wizard { list-style: none; margin: 0; padding: 5px; display: flex; gap: 4px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; flex: none; }
.adm-wizard li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; color: rgba(255, 255, 255, .7); font-weight: 600; font-size: 13px; transition: background .2s, color .2s; }
.adm-wizard i { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; background: rgba(255, 255, 255, .15); color: #fff; }
.adm-wizard i .ic { display: none; stroke-width: 3; }
.adm-wizard i em { font-style: normal; }
.adm-wizard li.cur { background: #fff; color: var(--primary-700); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.adm-wizard li.cur i { background: var(--primary); }
.adm-wizard li.done { color: #fff; }
.adm-wizard li.done i { background: #2aa37a; }
.adm-wizard li.done i .ic { display: block; }
.adm-wizard li.done i em { display: none; }
.adm-sign .flashes { margin-bottom: 14px; }
.adm-sign-form { display: flex; flex-direction: column; gap: 16px; }
.adm-step { overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.adm-step-on { border-color: #b9d0ee; box-shadow: var(--sh-2), 0 0 0 4px rgba(31, 95, 174, .08); }
.adm-step-h { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px 12px; }
.adm-step-h h2 { font-size: 17px; letter-spacing: -.015em; }
.adm-step-h p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.adm-step-n { width: 30px; height: 30px; border-radius: 9px; background: var(--primary-50); color: var(--primary); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: inset 0 0 0 1px var(--primary-100); }
.adm-sign-pad { padding: 4px 22px 22px; }
.adm-sign-doc { max-height: 520px; font-size: 15.5px; padding: 34px 44px; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(16, 24, 40, .04); }
.adm-sign-doc table, .doc table { border-collapse: collapse; width: 100%; margin: 8px 0 14px; font-size: 14px; }
.doc td, .doc th { border: 1px solid #d9dee7; padding: 6px 10px; text-align: left; vertical-align: top; }
.doc th { background: #f5f7fa; font-family: var(--font); font-size: 12.5px; }
.adm-doc-end { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -6px 22px 18px; padding: 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #f5f7fa; }
.adm-doc-end.ok { color: var(--green-600); background: var(--green-50); }
.adm-doc-end.ok .ic { transform: rotate(0); }
.adm-disclosure { max-height: 270px; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; font-size: 13.5px; color: #344054; line-height: 1.6; }
.adm-disclosure h3 { font-size: 14px; margin-bottom: 8px; }
.adm-disclosure p:last-child { margin-bottom: 0; }
.adm-check-card { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border: 1px solid #cfd7e3; border-radius: 12px; background: #fff; cursor: pointer; font-size: 14px; color: var(--text); line-height: 1.5; transition: border-color .15s, background .15s, box-shadow .15s; }
.adm-check-card input { width: 19px; height: 19px; margin-top: 1px; flex: none; accent-color: var(--green); }
.adm-check-card:has(input:checked) { border-color: #9fd4b4; background: #f3fbf6; box-shadow: 0 0 0 3px rgba(31, 138, 76, .1); }
.adm-pad { position: relative; border-radius: 14px; background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%); }
.adm-pad .sigpad { height: 190px; border-radius: 14px; background: transparent; position: relative; z-index: 2; }
.adm-pad-line { position: absolute; left: 34px; right: 24px; bottom: 46px; height: 1px; background: #b8c4d6; z-index: 1; }
.adm-pad-x { position: absolute; left: 14px; bottom: 40px; color: #98a2b3; z-index: 1; }
.adm-pad-hint { position: absolute; inset: 0 0 60px 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #98a2b3; font-size: 14px; pointer-events: none; z-index: 1; transition: opacity .2s; }
.adm-pad.drawn .adm-pad-hint { opacity: 0; }
.adm-decline { margin-top: 16px; }
.adm-decline > summary { list-style: none; cursor: pointer; padding: 14px 22px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.adm-decline > summary::-webkit-details-marker { display: none; }
.adm-decline > summary:hover { color: var(--red-600); }
.adm-decline[open] > summary { color: var(--red-600); }
.adm-sign-state { padding: 38px 32px 34px; text-align: center; margin-top: 8px; }
.adm-sign-state h1 { font-size: 24px; letter-spacing: -.02em; margin: 14px 0 8px; }
.adm-sign-state > p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; font-size: 14.5px; line-height: 1.6; }
.adm-sign-state > p b { color: var(--ink); }
.adm-state-ic { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.adm-state-ic.green { background: var(--green-50); color: var(--green); box-shadow: 0 0 0 8px rgba(31, 138, 76, .07); }
.adm-state-ic.red { background: var(--red-50); color: var(--red); box-shadow: 0 0 0 8px rgba(214, 60, 60, .06); }
.adm-state-ic.amber { background: var(--amber-50); color: var(--amber); box-shadow: 0 0 0 8px rgba(178, 107, 0, .06); }
.adm-state-ic.blue { background: var(--primary-50); color: var(--primary); box-shadow: 0 0 0 8px rgba(31, 95, 174, .06); }
.adm-state-ic.gray { background: #eef1f5; color: #667085; box-shadow: 0 0 0 8px rgba(16, 24, 40, .03); }
.adm-who { display: inline-flex; flex-direction: column; gap: 10px; text-align: left; margin: 0 auto 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; min-width: 280px; }
.adm-who-i { display: flex; align-items: center; gap: 10px; }
.adm-who-i b { display: block; font-size: 13.5px; color: var(--ink); }
.adm-who-i small { color: var(--muted); }
.adm-sign-foot { margin-top: 26px; text-align: center; color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.adm-sign-foot b { color: #344054; }
.adm-sign-foot .ic { vertical-align: -2px; }
@media (max-width: 760px) {
  .adm-sign { padding: 0 12px 28px; }
  .adm-sign-hero { flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 20px; }
  .adm-sign-hero h1 { font-size: 22px; }
  .adm-wizard { justify-content: space-between; }
  .adm-wizard li { flex: 1; justify-content: center; padding-right: 8px; }
  .adm-step-h { padding: 16px 16px 10px; }
  .adm-sign-pad { padding: 4px 14px 16px; }
  .adm-sign-doc { padding: 20px 18px; font-size: 15px; max-height: 440px; }
  .adm-doc-end { margin: -4px 14px 14px; }
  .no-m { display: none; }
  .adm-sign-state { padding: 30px 18px; }
  .adm-who { min-width: 0; width: 100%; }
  .adm-secure { display: none; }
}
@media print {
  body.adm-sign-body::before, .adm-sign-top, .adm-sign-hero, #s2, #s3, .adm-decline, .adm-sign-foot, .adm-step-h, .adm-doc-end, .flashes { display: none !important; }
  .adm-sign-doc { max-height: none; overflow: visible; border: 0; padding: 0; }
  .adm-step { border: 0; box-shadow: none; }
}
@media (max-width: 900px) {
  .adm-sticky { position: static; }
  .adm-signer-meta, .adm-signer-sig, .adm-signer-actions, .adm-signer .note { margin-left: 0; }
  .adm-chooser { width: min(380px, calc(100vw - 32px)); }
}

/* ---------------------------------------------------------------- messages */
.adm-msg-cell { max-width: 360px; }
.adm-excerpt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.adm-aud { display: inline-flex; align-items: flex-start; gap: 6px; color: #344054; font-weight: 500; max-width: 220px; line-height: 1.35; }
.adm-aud .ic { margin-top: 2px; }
.adm-aud .ic { color: var(--muted); }
.adm-chans { display: inline-flex; gap: 5px; flex-wrap: wrap; min-width: 150px; }
.adm-chan { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: #f2f5f9; border: 1px solid #e3e8ef; color: #475467; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.adm-chan .ic { color: var(--primary); }
.adm-n { font-variant-numeric: tabular-nums; }
.adm-deliv { display: flex; gap: 10px; margin-top: 3px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-deliv span { display: inline-flex; align-items: center; gap: 4px; }
.adm-msg-body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; color: var(--text); background: #fbfcfe; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; }
.adm-deliv-rows { display: flex; flex-direction: column; gap: 16px; }
.adm-dr span { display: inline-flex; align-items: center; gap: 6px; color: #344054; font-weight: 600; font-size: 13px; }
.adm-dr b { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.adm-dr .bar { margin-top: 7px; }
.adm-dr small { display: block; color: var(--muted); margin-top: 6px; }
.adm-cell-st { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }

.adm-aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.adm-aud-card { align-items: center; padding: 12px 13px; }
.adm-aud-card small { display: block; line-height: 1.3; margin-top: 1px; }
.adm-rc-ic { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #f2f5f9; color: #475467; flex: none; transition: background .12s, color .12s; }
.radio-card:has(input:checked) .adm-rc-ic { background: var(--primary); color: #fff; }
.adm-rc-ic .ic, .radio-card .adm-rc-ic .ic { color: inherit; margin-top: 0; }
.adm-tpl-select { width: auto; height: 34px; font-size: 13px; max-width: 240px; }
.adm-pick { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.adm-pick-bar { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line-2); background: #fafbfd; flex-wrap: wrap; }
.adm-pick-search { position: relative; flex: 1; min-width: 200px; }
.adm-pick-search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.adm-pick-search input { padding-left: 32px; height: 36px; }
.adm-pick-list { max-height: 300px; overflow-y: auto; }
.adm-pick-i { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.adm-pick-i:last-child { border-bottom: 0; }
.adm-pick-i:hover { background: #fafcff; }
.adm-pick-i:has(input:checked) { background: var(--primary-50); }
.adm-pick-i input { width: 16px; height: 16px; accent-color: var(--primary); flex: none; }
.adm-pick-i .avatar { width: 30px; height: 30px; font-size: 11px; }
.adm-pick-i b { display: block; font-weight: 600; color: var(--ink); font-size: 13.5px; }
.adm-pick-i small { display: block; color: var(--muted); }
.adm-pick-tags { display: inline-flex; gap: 6px; color: var(--subtle); }
.adm-chan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.adm-chan-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid #cfd7e3; border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .12s, box-shadow .12s, background .12s; }
.adm-chan-card input { position: absolute; opacity: 0; pointer-events: none; }
.adm-chan-card b { display: block; color: var(--ink); font-size: 13.5px; }
.adm-chan-card small { display: block; color: var(--muted); line-height: 1.35; margin-top: 2px; padding-right: 14px; }
.adm-chan-card .adm-tick { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #cfd7e3; display: inline-flex; align-items: center; justify-content: center; color: transparent; background: #fff; }
.adm-chan-card .adm-tick .ic { stroke-width: 3; }
.adm-chan-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 95, 174, .12); background: #fbfdff; }
.adm-chan-card.on .adm-rc-ic { background: var(--primary); color: #fff; }
.adm-chan-card.on .adm-tick { background: var(--primary); border-color: var(--primary); color: #fff; }
.adm-chan-card.off { cursor: not-allowed; background: #f8fafc; }
.adm-chan-card.off b, .adm-chan-card.off .adm-rc-ic { opacity: .6; }
.adm-chan-card.off small { color: var(--amber); font-weight: 500; }
.adm-sum .card-b { padding-top: 14px; }
.adm-sum-n { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.adm-sum-n span { font-size: 40px; font-weight: 800; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.05; }
.adm-sum-n small { color: var(--muted); font-size: 14px; font-weight: 500; }
.adm-sum-names { color: var(--muted); font-size: 12.5px; margin: 6px 0 14px; min-height: 18px; }
.adm-sum-rows { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 8px 0; margin-bottom: 12px; }
.adm-sum-rows > div { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; }
.adm-sum-rows span { display: inline-flex; gap: 7px; align-items: center; color: #475467; }
.adm-sum-rows b { color: var(--ink); font-variant-numeric: tabular-nums; }
#rc-note:empty { display: none; }
@media (max-width: 1100px) { .adm-aud-grid, .adm-chan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .adm-aud-grid, .adm-chan-grid { grid-template-columns: minmax(0, 1fr); } .adm-tpl-select { max-width: 170px; } }

/* ---------------------------------------------------------------- files */
.adm-upload > summary.card-h { padding-bottom: 14px; }
.adm-upload[open] > summary.card-h { padding-bottom: 6px; }
.adm-upload[open] .adm-sum-btn { display: none; }
.adm-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px 16px; border: 1.5px dashed #b8c4d6; border-radius: 14px; background: #fbfcfe; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.adm-drop:hover, .adm-drop.over { border-color: var(--primary); background: var(--primary-50); }
.adm-drop.has { border-style: solid; border-color: #9fd4b4; background: #f3fbf6; }
.adm-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-drop-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--primary); box-shadow: var(--sh-2); margin-bottom: 6px; }
.adm-drop b { color: var(--ink); font-size: 14px; }
.adm-drop b u { color: var(--primary); text-decoration: none; }
.adm-drop small { color: var(--muted); }
.adm-drop-list { color: var(--green-600); font-weight: 600; font-size: 12.5px; margin-top: 4px; max-width: 100%; overflow-wrap: anywhere; }
.adm-vis-opts { display: flex; gap: 16px; align-items: center; height: 40px; flex-wrap: wrap; }
.adm-lock-help { display: inline-flex; align-items: center; gap: 6px; }
.adm-fchips { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-fchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #d5dce7; background: #fff; color: #344054; font-weight: 600; font-size: 13px; box-shadow: var(--sh-1); }
.adm-fchip span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.adm-fchip:hover { border-color: var(--primary); color: var(--primary); }
.adm-fchip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.adm-fchip.on span { color: rgba(255, 255, 255, .8); }
.adm-tsel { max-width: 200px; }
.adm-ftitle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; color: var(--ink); }
.adm-ftitle:hover { color: var(--primary); }
.adm-ftable .t-sub .badge { height: 18px; font-size: 10.5px; padding: 0 6px; vertical-align: 1px; }
.adm-elinks { display: flex; flex-wrap: wrap; gap: 5px; max-width: 330px; }
.adm-elink { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; background: #f4f6fa; border: 1px solid var(--line-2); color: #344054; font-size: 12px; font-weight: 500; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.adm-elink .ic { color: var(--muted); }
.adm-elink:hover { border-color: #c9d4e3; color: var(--primary); }
.adm-vis { display: flex; gap: 5px; flex-wrap: wrap; }
.adm-vchip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.adm-vchip.t { background: var(--teal-50); color: #17707d; }
.adm-vchip.o { background: var(--purple-50); color: #5a3fb0; }
.adm-vchip.s { background: #f2f4f7; color: #667085; }
.adm-factions { display: inline-flex; gap: 6px; align-items: center; }
.adm-ib { width: 32px; height: 32px; border-radius: 8px; }
.adm-ib-del:hover { color: var(--red); border-color: #f4d0d0; background: var(--red-50); }
.adm-ib-off { color: var(--subtle); cursor: help; box-shadow: none; background: #f8fafc; }
@media (max-width: 600px) {
  .adm-files-tb select, .adm-files-tb .search.grow-s { flex: 1 1 100%; max-width: none; width: 100%; }
  .adm-fchip { height: 30px; padding: 0 10px; font-size: 12.5px; }
}

/* ---------------------------------------------------------------- staff & permissions */
.adm-invite-done { border-color: #cfe9da; background: linear-gradient(135deg, #fff 0%, #f1faf4 100%); }
.adm-invite-done b { color: var(--ink); font-size: 14.5px; }
.adm-linkbox-lg { max-width: 640px; height: 40px; background: #fff; }
.adm-linkbox-lg input { height: 36px; font-size: 12.5px; }
.adm-you { display: inline-flex; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--primary-50); color: var(--primary-700); font-size: 10.5px; font-weight: 700; vertical-align: 1px; margin-left: 4px; }
.adm-role { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #344054; white-space: nowrap; }
.adm-role .ic { color: var(--muted); }
.adm-role-manager .ic { color: var(--primary); }
.adm-role-maintenance .ic { color: var(--amber); }
.adm-role-accountant .ic { color: var(--green); }
tr.adm-off td { opacity: .62; }
tr.adm-off td:last-child { opacity: 1; }
.adm-menu .pop-m { width: 270px; }
.adm-menu-m form { margin: 0; }
.adm-menu-role { padding: 4px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px !important; }
.adm-menu-role .lbl { display: block; margin-bottom: 5px; }
.adm-menu-role select { height: 34px; font-size: 13px; }
.adm-pop-btn { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; font-family: var(--font); }
.adm-pop-btn small { display: block; }
.adm-danger-i b { color: var(--red-600) !important; }
.adm-danger-i .ic { color: var(--red) !important; }
.adm-perm th.adm-pc, .adm-perm td.adm-pc { text-align: center; width: 120px; }
.adm-pc-n { font-weight: 500; color: var(--subtle); font-size: 11px; margin-top: 1px; }
.adm-perm-g td { background: #f7f9fc; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-top: 9px; padding-bottom: 9px; }
.adm-perm tbody tr.adm-perm-g:hover td { background: #f7f9fc; }
.adm-perm-l { color: var(--ink); font-weight: 500; }
.adm-perm-k { font-size: 11px; color: var(--subtle); }
.adm-lockcheck { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; align-items: center; justify-content: center; background: #eef1f5; color: #667085; }
.adm-lockcheck .ic { stroke-width: 3; }
.adm-switch { position: relative; display: inline-flex; width: 36px; height: 21px; cursor: pointer; vertical-align: middle; }
.adm-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.adm-switch span { position: absolute; inset: 0; border-radius: 999px; background: #d5dce6; transition: background .15s; }
.adm-switch span::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .25); transition: transform .15s; }
.adm-switch input:checked + span { background: var(--green); }
.adm-switch input:checked + span::after { transform: translateX(15px); }
.adm-switch input:focus-visible + span { outline: 3px solid rgba(31, 95, 174, .25); outline-offset: 1px; }
.adm-role-cards { display: flex; flex-direction: column; gap: 8px; }
.adm-role-card { padding: 11px 12px; align-items: center; }
.adm-role-card small { display: block; line-height: 1.35; }
.adm-portal-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: inherit; }
.adm-portal-row:last-of-type { border-bottom: 0; }
.adm-portal-row:hover { color: inherit; }
.adm-portal-row:hover b { color: var(--primary); }
.adm-portal-row b { display: block; color: var(--ink); font-size: 13.5px; }
.adm-portal-row small { display: block; color: var(--muted); }
.adm-portal-row .bar { margin-top: 7px; height: 5px; }
.adm-portal-n { text-align: right; font-weight: 700; color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.adm-portal-n small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.adm-push { margin-left: auto; }
.adm-perm td { padding-top: 8px; padding-bottom: 8px; }

/* ---------------------------------------------------------------- settings */
.adm-tabs a { display: inline-flex; align-items: center; gap: 7px; }
.adm-tabs a .ic { color: var(--subtle); }
.adm-tabs a.on .ic { color: var(--primary); }
.adm-b { color: var(--ink); font-size: 14px; display: block; }
.adm-secret { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green-600); font-weight: 500; }
.adm-secret b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .02em; }
.adm-secret.none { color: var(--subtle); }
.adm-clear { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.adm-clear input { width: 14px; height: 14px; }
.adm-mode { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid; }
.adm-mode b { color: var(--ink); font-size: 15px; }
.adm-mode p { margin-top: 5px; font-size: 13.5px; color: #344054; max-width: 900px; }
.adm-mode-ic { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.adm-mode-demo { background: linear-gradient(135deg, #fffaf0, #fff4dc); border-color: #f2e0b5; }
.adm-mode-demo .adm-mode-ic { background: #fff; color: var(--amber); box-shadow: inset 0 0 0 1px #f2e0b5; }
.adm-mode-test { background: linear-gradient(135deg, #f6faff, #e9f1fb); border-color: #d3e2f6; }
.adm-mode-test .adm-mode-ic { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 1px #d3e2f6; }
.adm-mode-live { background: linear-gradient(135deg, #f4fbf6, #e4f5ea); border-color: #c9e8d4; }
.adm-mode-live .adm-mode-ic { background: #fff; color: var(--green); box-shadow: inset 0 0 0 1px #c9e8d4; }
.adm-events { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-events li { display: flex; align-items: center; gap: 8px; }
.adm-events li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.adm-events code { font-size: 12px; color: #344054; background: #f4f6fa; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; }
.adm-subsec { margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.adm-subsec h3 { font-size: 14px; }
.adm-subsec .ic { color: var(--muted); }
.adm-subsec .help { margin: 6px 0 0; }
.adm-preview-card .card-b { padding-top: 14px; }
.adm-brand-prev { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 4px; }
.adm-brand-prev b { display: block; color: #173b6c; font-size: 17px; letter-spacing: -.02em; }
.adm-brand-prev small { color: #3b5c86; font-weight: 500; }
.adm-set-sec { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.adm-set-sec:first-child, .adm-set-sec.adm-first { border-top: 0; padding-top: 8px; }
.adm-set-l b { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; }
.adm-set-l b .ic { color: var(--muted); }
.adm-set-l small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.adm-pt { padding-top: 14px; }
.adm-toggle-row { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.adm-toggle-row b { display: block; color: var(--ink); font-size: 13.5px; }
.adm-toggle-row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.adm-switch-lg { width: 42px; height: 24px; flex: none; }
.adm-switch-lg span::after { width: 19px; height: 19px; }
.adm-switch-lg input:checked + span::after { transform: translateX(18px); }
.adm-days { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-day input { position: absolute; opacity: 0; pointer-events: none; }
.adm-day span { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 36px; border-radius: 9px; border: 1px solid #cfd7e3; background: #fff; font-weight: 600; font-size: 13px; color: #475467; cursor: pointer; transition: all .12s; }
.adm-day input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(20, 63, 117, .3); }
.adm-day input:focus-visible + span { outline: 3px solid rgba(31, 95, 174, .25); }
.adm-tpl-area { min-height: 380px; }
.adm-fields > summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.adm-fields > summary::-webkit-details-marker { display: none; }
.adm-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.adm-fields-grid > div { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.adm-fields-grid code { cursor: pointer; color: var(--primary-700); font-weight: 600; align-self: flex-start; }
.adm-fields-grid code:hover { text-decoration: underline; }
.adm-cmd { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 9px; background: #0f1d33; color: #d6e4f5; }
.adm-cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 12px; color: #d6e4f5; }
.adm-cmd .btn { flex: none; }
.adm-danger-card { border-color: #f4d0d0; }
.adm-danger-card .card-h h2, .adm-danger-card .card-h h2 .ic { color: var(--red-600); }
.adm-keep { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #344054; }
.adm-keep li { display: flex; gap: 8px; align-items: flex-start; }
.adm-keep li .ic { color: var(--green); margin-top: 2px; }
.adm-keep li.no .ic { color: var(--red); }
@media (max-width: 1000px) { .adm-set-sec { grid-template-columns: minmax(0, 1fr); gap: 12px; } .adm-fields-grid { grid-template-columns: minmax(0, 1fr); } }
.field .row-b > label { font-size: 13px; font-weight: 600; color: #344054; }
.adm-set-r .input-group .post, .adm-set-r .input-group .pre { white-space: nowrap; }
.adm-linkbox-lg { max-width: 100%; }

/* ---------------------------------------------------------------- audit */
.adm-verify { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid; }
.adm-verify b { font-size: 15px; }
.adm-verify p { margin: 4px 0 0; font-size: 13.5px; }
.adm-verify-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; }
.adm-verify.ok { background: linear-gradient(135deg, #f4fbf6, #e4f5ea); border-color: #c9e8d4; color: #1a5e37; }
.adm-verify.ok b { color: #165e35; }
.adm-verify.ok .adm-verify-ic { color: var(--green); box-shadow: inset 0 0 0 1px #c9e8d4; }
.adm-verify.bad { background: linear-gradient(135deg, #fff6f6, #fdecec); border-color: #f4d0d0; color: #8c2424; }
.adm-verify.bad b { color: #9b2626; }
.adm-verify.bad .adm-verify-ic { color: var(--red); box-shadow: inset 0 0 0 1px #f4d0d0; }
.adm-afilter { padding: 14px 18px 10px; }
.adm-afilter-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) repeat(2, minmax(0, .9fr)); gap: 12px; }
.adm-afilter .field label { font-size: 12px; color: var(--muted); }
.adm-afilter select, .adm-afilter input { height: 36px; font-size: 13px; }
.adm-ainput { position: relative; }
.adm-ainput .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.adm-ainput input { padding-left: 32px; }
.adm-afilter-f { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 13px; }
.adm-atable td { vertical-align: top; }
.adm-ts { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.adm-who-cell { align-items: flex-start; gap: 9px; }
.adm-who-cell .avatar { width: 28px; height: 28px; font-size: 10.5px; }
.adm-sys { background: #eef1f5; color: #667085; }
.adm-wname { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-act { display: flex; gap: 9px; align-items: flex-start; }
.adm-act-v { font-weight: 600; color: var(--ink); }
.adm-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; box-shadow: 0 0 0 3px rgba(16, 24, 40, .04); }
.adm-dot-blue { background: var(--primary); } .adm-dot-green { background: var(--green); } .adm-dot-amber { background: #e3a008; }
.adm-dot-red { background: var(--red); } .adm-dot-teal { background: var(--teal); } .adm-dot-purple { background: var(--purple); } .adm-dot-gray { background: #98a2b3; }
.adm-dcell { max-width: 380px; font-size: 12.5px; color: #475467; }
.adm-kv-one { color: #475467; overflow-wrap: anywhere; }
.adm-det > summary { cursor: pointer; color: #475467; list-style: none; overflow-wrap: anywhere; }
.adm-det > summary::-webkit-details-marker { display: none; }
.adm-det > summary::before { content: "▸"; display: inline-block; width: 12px; color: var(--subtle); transition: transform .12s; }
.adm-det[open] > summary::before { transform: rotate(90deg); }
.adm-det[open] > summary { color: var(--primary); }
.adm-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 2px; padding: 9px 11px; background: #f8fafc; border: 1px solid var(--line-2); border-radius: 8px; }
.adm-kv dt { color: var(--muted); }
.adm-kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; }
@media (max-width: 1200px) { .adm-afilter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .adm-afilter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .adm-afilter-grid .field:first-child { grid-column: 1 / -1; } }
.adm-signer-sig > div { min-width: 0; }
@media (max-width: 600px) { .adm-signer-sig { flex-wrap: wrap; } .adm-signer-sig > div { max-width: 100%; } .adm-ua { max-width: 100%; } .adm-signer-sig img { width: 100%; } }
