/* Admin pages (Roles & Security, Backup & Recovery, AUREX vs the market). Loaded after theme-aurex.css; uses only theme variables, so light and dark both work. */

.ap-page { min-width: 0; }
.ap-page > div, .ap-page > section, .ap-page > details, .ap-page > p.cmp-note { margin-bottom: 18px; }
.ap-page > .panel-head { margin-bottom: 4px; }
.ap-page > p.muted { margin: 0 0 20px; font-size: 14px; max-width: 760px; }
.ap-page code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-3); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- number tiles ---------- */
.ap-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; }
.ap-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 16px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; min-width: 0; }
.ap-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ap-tile-label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.ap-num { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.05; letter-spacing: -.01em; color: var(--ink); margin: 10px 0 6px; overflow-wrap: anywhere; }
.ap-num small { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.ap-note { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ap-tile.warn .ap-num { color: var(--amber); }
.ap-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0; background: var(--muted-2); flex: 0 0 auto; }
.ap-dot.ok { background: var(--green); } .ap-dot.warn { background: var(--amber); } .ap-dot.bad { background: var(--red); }
.ap-tile.lvl-bad .ap-num { color: var(--red); } .ap-tile.lvl-warn .ap-num { color: var(--amber); }

/* ---------- cards ---------- */
.ap-card .dc-head { margin-bottom: 14px; flex-wrap: wrap; }
.ap-card .dc-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.ap-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ap-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ap-twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.ap-twocol > div > .ap-card { height: 100%; }
@media (max-width: 980px) { .ap-two, .ap-twocol { grid-template-columns: minmax(0, 1fr); gap: 20px; } .ap-twocol { gap: 0; } .ap-twocol > div { margin-bottom: 18px; } }
.ap-fine { margin: 12px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.ap-loading { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.ap-loading i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: ap-shimmer 1.4s linear infinite; }
.ap-loading i:nth-child(2) { width: 82%; } .ap-loading i:nth-child(3) { width: 64%; }
@keyframes ap-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ap-loading i { animation: none; } }
.ap-err { padding: 12px 14px; border-radius: 12px; background: var(--red-bg); color: var(--red); font-size: 13px; font-weight: 600; }
.ap-err .dc-link { color: inherit; text-decoration: underline; margin-left: 6px; }
.ap-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 30px 16px; border: 1px dashed var(--field-line); border-radius: 14px; color: var(--muted); font-size: 13px; }
.ap-empty b { color: var(--ink); font-size: 14.5px; }

/* ---------- form ---------- */
.ap-form { display: flex; flex-direction: column; gap: 18px; }
.ap-field > label:not(.ap-switch) { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ap-inline { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.ap-field input[type="number"] { width: 108px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.ap-field input[type="number"]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.22); outline: none; }
.ap-field input:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.ap-help { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 5px; font-weight: 400; }
.ap-switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; position: relative; font-size: 13.5px; color: var(--ink); }
.ap-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-sw { flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px; background: var(--field-line); position: relative; transition: background .15s ease; margin-top: 1px; }
.ap-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s ease; }
.ap-switch input:checked + .ap-sw { background: var(--green); }
.ap-switch input:checked + .ap-sw::after { transform: translateX(18px); }
.ap-switch input:focus-visible + .ap-sw { outline: 2px solid var(--gold); outline-offset: 2px; }
.ap-switch input:disabled + .ap-sw { opacity: .5; }
.ap-switch b { display: block; font-weight: 700; }
.ap-mini-note { margin-top: 10px; }
.ap-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ap-msg { font-size: 12.5px; color: var(--muted); min-height: 1em; }
.ap-msg.ok { color: var(--green); } .ap-msg.bad { color: var(--red); }
.ap-reload { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.ap-reload > div { flex: 1 1 260px; min-width: 0; } .ap-reload b { font-size: 13.5px; color: var(--ink); }
.ap-facts, .ap-status { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ap-facts li { display: flex; gap: 12px; align-items: flex-start; }
.ap-facts li > div, .ap-status li > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-facts b, .ap-status b { font-size: 13.5px; color: var(--ink); font-weight: 700; }
.ap-facts span:not(.itile), .ap-status span:not(.ap-dot) { font-size: 12.5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.ap-facts .itile { flex: 0 0 auto; }
.ap-status li { display: flex; gap: 10px; align-items: flex-start; } .ap-status .ap-dot { margin-top: 5px; }

/* ---------- tables ---------- */
.ap-tablewrap { overflow-x: auto; margin: 0 -2px; }
.ap-table { min-width: 0; }
.ap-table td { vertical-align: top; overflow-wrap: anywhere; }
.ap-table td b { color: var(--ink); }
.ap-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.ap-indent { margin-left: 32px; }
.ap-act { text-align: right; white-space: nowrap; }
.ap-act .btn { margin-left: 6px; text-decoration: none; display: inline-flex; align-items: center; }
.ap-table th.num, .ap-table td.num { text-align: right; }
.ap-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--inkc-bg); color: var(--inkc); white-space: nowrap; }
.ap-pill.good { background: var(--green-bg); color: var(--green); } .ap-pill.warn { background: var(--amber-bg); color: var(--amber); }
@media (max-width: 760px) {
  .ap-table.stack, .ap-table.stack tbody { display: block; }
  .ap-table.stack thead { display: none; }
  .ap-table.stack tr { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; margin-bottom: 10px; background: var(--surface-2); }
  .ap-table.stack td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line-2); text-align: right; }
  .ap-table.stack td:last-child { border-bottom: 0; }
  .ap-table.stack td::before { content: attr(data-label); flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); text-align: left; padding-top: 2px; }
  .ap-table.stack td[data-label=""]::before { display: none; }
  .ap-table.stack td > div { text-align: right; }
  .ap-table.stack td.ap-pc { display: block; text-align: left; padding: 8px 0 10px; }
  .ap-table.stack td.ap-pc::before { display: none; }
  .ap-table.stack td .ap-sub { margin-left: 0; }
  .ap-table.stack td.ap-act { justify-content: flex-end; flex-wrap: wrap; }
  .ap-table.stack td.ap-act .btn { margin: 0 0 0 8px; }
  .ap-table.stack .ap-indent { margin-left: 0; }
}

/* ---------- roles matrix ---------- */
.ap-matrix-wrap { border: 1px solid var(--line); border-radius: 14px; margin: 0; background: var(--surface); }
.ap-matrix { width: 100%; min-width: 880px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ap-matrix th, .ap-matrix td { padding: 9px 8px; border-top: 1px solid var(--line-2); text-align: center; vertical-align: middle; }
.ap-matrix thead th { border-top: 0; background: var(--surface-2); }
.ap-matrix .ap-rolehead b { display: block; font-size: 13px; color: var(--ink); }
.ap-matrix .ap-rolehead span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.ap-matrix th.ap-rowhead { text-align: left; width: 270px; min-width: 220px; padding-left: 14px; font-weight: 600; color: var(--text); position: sticky; left: 0; background: var(--surface); z-index: 1; }
.ap-matrix thead th.ap-rowhead { background: var(--surface-2); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); z-index: 2; }
.ap-matrix tr.ap-grp th, .ap-matrix tr.ap-grp td { text-align: left; padding: 12px 14px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); background: var(--surface-2); }
.ap-matrix tr.ap-grp th.ap-rowhead { background: var(--surface-2); }
.ap-cell { display: inline-block; padding: 3px 9px; border-radius: 9px; font-size: 12px; font-weight: 700; line-height: 1.3; max-width: 130px; }
.ap-cell.y { background: var(--green-bg); color: var(--green); }
.ap-cell.own { background: var(--gold-soft); color: var(--gold-deep); }
.ap-cell.no { background: transparent; color: var(--muted-2); font-weight: 600; }
.ap-notes { margin: 14px 0 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ap-notes b { color: var(--ink); }

/* ---------- audit log + change history rows ---------- */
.ap-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ap-audit-row, .ap-hist-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line-2); }
#ap-audit-list > :first-child, #ap-hist-card .dc-head + .ap-hist-row { border-top: 1px solid var(--line-2); }
.ap-when { display: flex; flex-direction: column; gap: 1px; padding-top: 1px; }
.ap-when b { font-size: 12.5px; color: var(--ink); } .ap-when span { font-size: 11.5px; color: var(--muted); }
.ap-what { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.ap-what > div { min-width: 0; }
.ap-what .itile { flex: 0 0 auto; }
.ap-sum { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.ap-det { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; }
.ap-det s { color: var(--muted); } .ap-det b { color: var(--ink); font-weight: 700; }
.ap-who { justify-self: end; max-width: 180px; } .ap-who .badge-soft { white-space: normal; text-align: right; }
.ap-leadlink { text-align: left; white-space: normal; font-size: 13.5px; font-weight: 700; }
.itile.ap-tone-ok { background: var(--green-bg); border-color: transparent; color: var(--green); }
.itile.ap-tone-bad { background: var(--red-bg); border-color: transparent; color: var(--red); }
.itile.ap-tone-warn { background: var(--amber-bg); border-color: transparent; color: var(--amber); }
.ap-more { padding-top: 14px; text-align: center; }
@media (max-width: 640px) {
  .ap-audit-row, .ap-hist-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ap-when { flex-direction: row; gap: 8px; align-items: baseline; }
  .ap-who { justify-self: start; max-width: none; } .ap-who .badge-soft { text-align: left; }
}

/* ---------- backup page ---------- */
.ap-why { margin-bottom: 14px; }
.ap-dl-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.ap-dl-row:first-of-type { border-top: 0; padding-top: 0; }
.ap-dl-row > div { flex: 1 1 240px; min-width: 0; } .ap-dl-row b { color: var(--ink); font-size: 13.5px; }
.ap-dl-row .btn { text-decoration: none; display: inline-flex; align-items: center; }
.dc-more { padding: 10px 2px 0; }

/* ---------- pop-ups ---------- */
.ap-modal { display: flex; flex-direction: column; gap: 14px; color: var(--text); font-size: 13.5px; line-height: 1.5; }
.ap-modal p { margin: 0 0 8px; }
.ap-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ap-modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.ap-modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.ap-modal-err { padding: 10px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-size: 13px; font-weight: 600; }
.ap-modal-err[hidden] { display: none; }
.ap-lose { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ap-steps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ap-step-t { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.ap-step-t > div { display: flex; flex-direction: column; } .ap-step-t b { color: var(--ink); } .ap-step-t span { font-size: 12.5px; color: var(--muted); }
.ap-step-n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ap-cmd { display: flex; gap: 10px; align-items: flex-start; background: var(--obsidian); border: 1px solid var(--obsidian-line); border-radius: 12px; padding: 10px 10px 10px 14px; }
.ap-cmd code { flex: 1 1 auto; min-width: 0; background: transparent; color: #F3EBDD; padding: 0; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; line-height: 1.55; user-select: all; }
.ap-cmd .btn { flex: 0 0 auto; }

/* ---------- AUREX vs the market ---------- */
.cmp-hero { border-radius: 22px; background: var(--obsidian-2); color: #ECE7DC; padding: 28px; display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--obsidian-line); }
.cmp-hero .eb { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--gold); }
.cmp-hero h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; margin: 6px 0 8px; color: #FBF4E4; text-wrap: balance; }
.cmp-hero h2 em { color: var(--gold-pale); font-style: italic; }
.cmp-hero p { color: #BDB7AB; font-size: 14px; max-width: 680px; line-height: 1.55; margin: 0; }
.cmp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .cmp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmp-hero { padding: 20px; } }
.cmp-stats > div { border-radius: 14px; background: var(--obsidian-3); border: 1px solid var(--obsidian-line); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cmp-stats b { font-family: var(--serif); font-weight: 400; font-size: 30px; color: #F7F1E6; line-height: 1; }
.cmp-stats span { font-size: 12px; color: #A9A6A0; }
.cmp-h { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 12px; }
.cmp-h h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--ink); margin: 0; text-wrap: balance; line-height: 1.15; }
.cmp-h p { font-size: 13.5px; color: var(--muted); margin: 0; max-width: 720px; }
.cmp-gaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.cmp-gap { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; min-width: 0; }
.ap-gap-top { display: flex; align-items: center; gap: 8px; }
.cmp-gap .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--gold-deep); }
.cmp-gap .t { font-size: 15px; font-weight: 800; color: var(--ink); }
.cmp-gap .f { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cmp-gap .a, .ap-where, .cmp-pain .fx { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--text); line-height: 1.5; }
.cmp-gap .a { padding-top: 10px; border-top: 1px solid var(--line-2); }
.ap-st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.ap-st.yes { background: var(--green-bg); color: var(--green); }
.ap-st.part { background: var(--gold-soft); color: var(--gold-deep); }
.ap-st.no { background: var(--inkc-bg); color: var(--inkc); }
.ap-st.info { background: var(--blue-bg); color: var(--blue); }
.cmp-headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-top: 6px; }
.cmp-headrow .cmp-h { margin-bottom: 12px; }
.cmp-legend { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.cmp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.cmp-table { width: 100%; min-width: 1000px; border-collapse: separate; border-spacing: 0; }
.cmp-table th, .cmp-table td { padding: 9px 8px; border-top: 1px solid var(--line-2); text-align: center; vertical-align: middle; }
.cmp-table thead th { border-top: 0; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .02em; background: var(--surface); }
.cmp-table thead th.aurex { color: var(--gold-deep); }
.cmp-table th.row { text-align: left; padding-left: 16px; width: 250px; min-width: 200px; font-weight: 400; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp-table th.row .rh { display: flex; flex-direction: column; gap: 1px; }
.cmp-table th.row b { font-size: 13px; color: var(--ink); }
.cmp-table th.row .rh > span { font-size: 11.5px; color: var(--muted-2); }
.cmp-table tr.grp th { text-align: left; padding: 14px 16px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--muted-2); background: var(--surface-2); position: static; }
.cmp-table td.aurex, .cmp-table th.aurex { background: var(--gold-wash); }
.cmp-mark { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; vertical-align: middle; flex: 0 0 auto; }
.cmp-mark.gold { background: var(--gold-2); color: #141518; }
.cmp-mark.yes { background: var(--ink); color: var(--surface); }
.cmp-mark.part { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 2px solid var(--ink); width: 18px; height: 18px; }
.cmp-mark.none { border: 2px dashed var(--muted-2); width: 18px; height: 18px; opacity: .6; }
.cmp-cell { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.cmp-cap { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.cmp-cap.Y { color: var(--gold-deep); } .cmp-cap.P { color: var(--ink); }
.cmp-score { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--ink); }
.cmp-score .bar { width: 44px; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.cmp-score .bar i { display: block; height: 100%; background: var(--ink); }
.cmp-score.aurex { color: var(--gold-deep); } .cmp-score.aurex .bar i { background: var(--gold-2); }
.cmp-note { font-size: 12px; color: var(--muted); line-height: 1.55; max-width: 900px; margin-top: 12px; }
.cmp-how { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 12.5px; color: var(--text); }
.cmp-how summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.cmp-how ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.cmp-borrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.cmp-borrow > div { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.cmp-borrow .from { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted-2); }
.cmp-borrow .idea { font-size: 13px; color: var(--text); line-height: 1.5; flex: 1; }
.ap-tagline { font-size: 11.5px; font-weight: 700; color: var(--gold-ink); }
.cmp-pains { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 10px; }
.cmp-pain { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.cmp-pain .pt { display: flex; flex-direction: column; gap: 2px; }
.cmp-pain .p { font-size: 14px; font-weight: 800; color: var(--ink); }
.cmp-pain .w { font-size: 11.5px; color: var(--muted-2); }
.cmp-pain .fx { padding-top: 10px; border-top: 1px solid var(--line-2); }
.cmp-srclabel { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--muted-2); }
.cmp-sources { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 6px 0 0; }
.cmp-sources a { color: var(--text); text-decoration: underline; text-decoration-color: var(--field-line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.cmp-sources a:hover { text-decoration-color: var(--gold); }

/* ---------- small screens ---------- */
@media (max-width: 880px) {
  .ap-page > p.muted { margin-bottom: 16px; }
  .ap-num { font-size: 38px; }
  .cmp-h h2 { font-size: 24px; }
}
@media (max-width: 560px) {
  .ap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ap-tile { padding: 13px 14px; } .ap-tile-label { font-size: 12.5px; } .ap-num { font-size: 34px; margin: 8px 0 4px; } .ap-note { font-size: 11.5px; }
}
@media (max-width: 480px) {
  .ap-card.dash-card { padding: 16px 14px; }
  .ap-reload .btn, .ap-actions .btn { width: 100%; justify-content: center; }
  .ap-modal-foot .btn { flex: 1 1 auto; }
}

/* roles matrix on a phone: one role at a time */
.ap-rolepick { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 760px) {
  .ap-rolepick { display: flex; }
  .ap-matrix-wrap { overflow-x: visible; }
  .ap-matrix { min-width: 0; }
  .ap-matrix th.ap-rowhead { position: static; width: auto; min-width: 0; }
  .ap-matrix td { width: 46%; text-align: right; padding-right: 12px; }
  .ap-matrix .ap-cell { max-width: 100%; }
  .ap-matrix[data-pick="1"] tr > :nth-child(n+2):not(:nth-child(2)),
  .ap-matrix[data-pick="2"] tr > :nth-child(n+2):not(:nth-child(3)),
  .ap-matrix[data-pick="3"] tr > :nth-child(n+2):not(:nth-child(4)),
  .ap-matrix[data-pick="4"] tr > :nth-child(n+2):not(:nth-child(5)),
  .ap-matrix[data-pick="5"] tr > :nth-child(n+2):not(:nth-child(6)),
  .ap-matrix[data-pick="6"] tr > :nth-child(n+2):not(:nth-child(7)) { display: none; }
}
@media (max-width: 560px) { .cmp-table th.row { width: 170px; min-width: 160px; padding-left: 12px; } }

/* ======================================================================
   THE DAY REPORT (day-report-ui.js) — Update 42.
   Every colour here is a theme token, so the page follows the light and
   dark themes like the rest of the CRM; nothing is a fixed hex.
   ====================================================================== */
.dr-head { align-items: flex-end; }
.dr-actions { align-self: flex-end; }
.dr-page .page-eyebrow { color: var(--gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin: 0 0 8px; }

/* ---- the filter bar ---- */
.dr-filters { padding: 16px 18px; margin-bottom: 16px; }
.dr-filter-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.dr-grow { flex: 1 1 24px; }
.dr-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dr-field > label { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.dr-daypick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dr-filters .btn.is-on { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }

/* ---- the two headline numbers ---- */
.dr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.dr-tile-top { display: flex; align-items: center; gap: 9px; }
.dr-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--muted); }
.dr-dot.gold { background: var(--gold); } .dr-dot.teal { background: var(--metric-teal); }
.dr-tile-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dr-tile .ap-num { margin: 8px 0 6px; }
.dr-tile.is-zero .ap-num { color: var(--muted); }
.dr-tile-note { font-size: 13px; color: var(--muted); }

/* ---- the splits, as bars ---- */
.dr-count { color: var(--gold-ink); font-weight: 800; }
.dr-splits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 2px 0 20px; }
.dr-bars-h { margin: 0 0 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dr-bar { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.dr-bar-name { width: 120px; flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-bar-track { flex: 1 1 auto; min-width: 0; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.dr-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--muted); }
.dr-bar-fill.gold { background: var(--gold); } .dr-bar-fill.teal { background: var(--metric-teal); }
.dr-bar-n { width: 28px; flex: 0 0 auto; text-align: right; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.dr-bar-pct { width: 38px; flex: 0 0 auto; text-align: right; font-size: 11.5px; color: var(--muted); }

/* ---- the list ---- */
.dr-tablewrap { overflow-x: auto; margin: 0 -2px; }
.dr-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.dr-table col.c-client { width: 21%; } .dr-table col.c-contact { width: 14%; } .dr-table col.c-project { width: 19%; }
.dr-table col.c-sm { width: 17%; } .dr-table col.c-asm { width: 17%; } .dr-table col.c-date { width: 12%; }
.dr-table th { text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 10px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dr-table td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.dr-table td b { font-weight: 600; color: var(--ink); }
.dr-table tbody tr:last-child td { border-bottom: 0; }
.dr-table tbody tr { cursor: pointer; }
.dr-table tbody tr:hover { background: var(--hover); }
.dr-table tbody tr:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.dr-table th.r, .dr-table td.r { text-align: right; }
.dr-table .nowrap { white-space: nowrap; }
.dr-none { color: var(--muted); }
.dr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 10px 2px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

@media (max-width: 820px) {
  .dr-tiles, .dr-splits { grid-template-columns: minmax(0, 1fr); }
  .dr-splits { gap: 18px; }
  .dr-bar-name { width: 96px; }
  .dr-head { align-items: flex-start; }
}

/* ---- on paper ----
   A printed copy is the whole of both lists on a white page: no menu, no buttons, no filter boxes (the day and
   any filter in force are already written at the top of the page), and no colour blocks eating the ink. */
@media print {
  .topbar, .sidebar, .dr-actions, .dr-filters, .dr-foot .btn, .ap-head-actions { display: none !important; }
  .main, .shell, body { display: block !important; overflow: visible !important; height: auto !important; background: #fff !important; }
  .dr-page { padding: 0 !important; }
  .dr-page .dash-card, .dr-page .ap-tile { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .dr-tablewrap { overflow: visible !important; }
  .dr-table { min-width: 0 !important; font-size: 10.5pt; }
  .dr-table thead { display: table-header-group; }       /* the column headings repeat on every printed page */
  .dr-table tbody tr { break-inside: avoid; }
  .dr-bar-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ======================================================================
   THE NO-CALL REPORT (call-discipline-ui.js) — Update 43. Theme tokens
   only, so it follows the light and dark themes like the rest of the CRM.
   ====================================================================== */
.cd-head { align-items: flex-end; }
.cd-page .page-eyebrow { color: var(--gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin: 0 0 8px; }

.cd-period { padding: 13px 18px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cd-period-l { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* ---- the funnel: three numbers, each a part of the one before it ---- */
.cd-funnel-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.cd-step { flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.cd-step.is-money { border-color: var(--warn-border); background: var(--warn-bg); }
.cd-step.is-money .cd-step-l, .cd-step.is-money .cd-step-n, .cd-step.is-money .cd-step-p { color: var(--warn-text); }
.cd-step-l { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cd-step-n { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.05; margin: 8px 0 6px; color: var(--ink); }
.cd-step-p { margin: 0; font-size: 12.5px; color: var(--muted); }
.cd-step-sub { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.cd-step-sub b { color: var(--ink); }
.cd-arrow { flex: 0 0 auto; align-self: center; font-size: 11.5px; font-weight: 700; color: var(--muted-2); }
.cd-q { color: var(--muted-2); font-size: 12px; }

.cd-note { border: 1px solid var(--warn-border); background: var(--gold-wash); border-radius: var(--radius-md); padding: 13px 16px; margin: 0 0 16px; font-size: 13px; color: var(--warn-text); }
.cd-note b { color: var(--warn-text); }

/* ---- the tables: the definition lives IN the heading ---- */
.cd-tablewrap { overflow-x: auto; margin: 0 -2px; }
.cd-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.cd-table col.c-who { width: 22%; } .cd-table col.c-off { width: 11%; } .cd-table col.c-nc { width: 17%; }
.cd-table col.c-why { width: 12%; } .cd-table col.c-paid { width: 14%; } .cd-table col.c-q { width: 12%; } .cd-table col.c-calls { width: 12%; }
.cd-table-2 { table-layout: auto; min-width: 820px; }
.cd-table th { text-align: left; padding: 0 10px 10px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.cd-table th.r { text-align: right; }
.cd-table th b { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cd-table th i { display: block; font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--muted-2); margin-top: 3px; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.cd-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; color: var(--text); }
.cd-table td b { font-weight: 600; color: var(--ink); }
.cd-table tbody tr:last-child td { border-bottom: 0; }
.cd-table tbody tr:hover { background: var(--hover); }
.cd-table td.r { text-align: right; }
.cd-table .nowrap { white-space: nowrap; }
.cd-verdict { margin-top: 5px; }
.cd-nc { font-weight: 700; color: var(--ink); }
.cd-mini { display: block; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 5px; max-width: 160px; }
.cd-mini-f { display: block; height: 100%; border-radius: 999px; background: var(--chart-3); }
.cd-mini-f.bad { background: var(--red); } .cd-mini-f.warn { background: var(--amber); }
.cd-paid { font-weight: 800; color: var(--muted); }
.cd-paid.bad { color: var(--red); } .cd-paid.warn { color: var(--amber); }
.cd-fast { color: var(--red); font-weight: 700; }
.cd-key { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 15px 10px 2px; font-size: 12px; color: var(--muted); }
.cd-key > span { display: inline-flex; align-items: center; gap: 7px; }
.cd-grow { flex: 1 1 10px; }

@media (max-width: 820px) {
  .cd-head { align-items: flex-start; }
  .cd-arrow { display: none; }
}

/* ---- on paper ---- */
@media print {
  .topbar, .sidebar, .cd-head .ap-head-actions, .cd-period, .cd-key .btn, .ap-head-actions { display: none !important; }
  .main, .shell, body { display: block !important; overflow: visible !important; height: auto !important; background: #fff !important; }
  .cd-page { padding: 0 !important; }
  .cd-page .dash-card, .cd-step { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .cd-tablewrap { overflow: visible !important; }
  .cd-table { min-width: 0 !important; font-size: 10pt; }
  .cd-table thead { display: table-header-group; }
  .cd-table tbody tr { break-inside: avoid; }
  .cd-mini-f, .ap-pill, .cd-step.is-money { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ======================================================================
   ONE PERSON'S ATTENDANCE HISTORY (access-window-ui.js) — Update 44.
   Theme tokens only, so it follows the light and dark themes.
   ====================================================================== */
.awp-head { align-items: flex-end; }
.awp-head h1 { margin: 8px 0 0; }
.awp-open { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--field-line); }
.awp-open:hover { color: var(--gold-ink); text-decoration-color: currentColor; }

.awp-period { padding: 13px 18px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.awp-period > label { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.awp-monthname { font-family: var(--serif); font-size: 19px; color: var(--ink); margin-left: 4px; }

.awp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.awp-tile-l { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.awp-tile .ap-num { margin: 8px 0 4px; }
.awp-tile .ap-num.warn { color: var(--amber); }
.awp-of { font-size: 20px; color: var(--muted); }
.awp-place-big { font-size: 24px; line-height: 1.15; display: inline-block; }
.awp-tile-n { font-size: 12.5px; color: var(--muted); }

.awp-place { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.awp-place-n { width: 240px; flex: 0 0 auto; font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.awp-place-bar { flex: 1 1 auto; min-width: 0; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.awp-place-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.awp-place-d { width: 64px; flex: 0 0 auto; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink); }
.awp-place > a { width: 82px; flex: 0 0 auto; text-align: right; font-size: 12.5px; font-weight: 600; }

.awp-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.awp-table col.c-day { width: 13%; } .awp-table col.c-how { width: 17%; } .awp-table col.c-end { width: 26%; } .awp-table col.c-clock { width: 18%; }
.awp-table th { text-align: left; padding: 0 10px 10px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.awp-table th b { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.awp-table th i { display: block; font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--muted-2); margin-top: 3px; letter-spacing: 0; text-transform: none; }
.awp-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--text); }
.awp-table td b { color: var(--ink); font-weight: 700; }
.awp-table tbody tr:last-child td { border-bottom: 0; }
.awp-table tbody tr:hover { background: var(--hover); }

.awp-side { display: flex; gap: 10px; align-items: flex-start; }
.awp-shot { width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); background: var(--surface-3); display: block; }
.awp-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.awp-shot.is-none { background: repeating-linear-gradient(135deg, var(--surface-3) 0 6px, var(--surface-2) 6px 12px); }
.awp-when { min-width: 0; }
.awp-when b { display: block; font-size: 14px; line-height: 1.2; }
.awp-where { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; overflow-wrap: anywhere; }
.awp-missed { color: var(--amber); font-weight: 600; font-size: 12.5px; }
.awp-mini { display: block; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 6px; max-width: 150px; }
.awp-mini > span { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.awp-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 10px 2px; font-size: 12px; color: var(--muted); }
.awp-grow { flex: 1 1 10px; }

@media (max-width: 900px) {
  .awp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awp-place-n { width: 150px; }
  .awp-head { align-items: flex-start; }
}
@media (max-width: 560px) { .awp-tiles { grid-template-columns: minmax(0, 1fr); } }

@media print {
  .topbar, .sidebar, .awp-head .ap-head-actions, .awp-period, .awp-foot .btn, #awp-back { display: none !important; }
  .main, .shell, body { display: block !important; overflow: visible !important; height: auto !important; background: #fff !important; }
  .awp-page { padding: 0 !important; }
  .awp-page .dash-card, .awp-page .ap-tile { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .ap-tablewrap { overflow: visible !important; }
  .awp-table { min-width: 0 !important; font-size: 10pt; }
  .awp-table thead { display: table-header-group; }
  .awp-table tbody tr { break-inside: avoid; }
  .awp-shot img, .awp-mini > span, .ap-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================================ LEADS GIVEN OUT (Update 48) ============================================================
   distribution-report-ui.js. Reuses the day report's dr- furniture (filters, bars, table, foot) so the two
   reports on the same dashboard look like one thing. Only what is genuinely new lives here: a six-up tile row,
   two more dot colours, the "given to" cell, and the red pill, which ap-pill did not have. */
.gv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.dr-dot.green { background: var(--green); }
.dr-dot.amber { background: var(--amber); }
.dr-dot.red { background: var(--red); }
.ap-pill.bad { background: var(--red-bg); color: var(--red); }

.gv-who b { display: block; font-weight: 700; }
.gv-role { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.gv-nobody { color: var(--red); font-weight: 700; }
/* A lead that had already been with somebody else before reaching the person it is listed under. */
.gv-moved { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; background: var(--surface-3); color: var(--muted); vertical-align: middle; }

.gv-table .gv-c-src { width: 9%; } .gv-table .gv-c-who { width: 14%; }
.gv-table .gv-c-at { width: 9%; } .gv-table .gv-c-status { width: 12%; } .gv-table .gv-c-fb { width: 11%; }

@media (max-width: 1100px) { .gv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gv-tiles { grid-template-columns: 1fr; } }

@media print {
  .gv-page .dr-actions, .gv-page .dr-filters, .gv-page .dr-foot button { display: none !important; }
  .gv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .gv-page .dr-tablewrap { overflow: visible; }
  .gv-page .gv-moved, .gv-page .ap-pill, .gv-page .dr-dot, .gv-page .dr-bar-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .gv-page tr { page-break-inside: avoid; }
}

/* ---------------------------------------------------------------- the Lead ID project list (lid-ui.js) */
.lp-wrap { margin-top: var(--space-6); }
.lp-note { max-width: 70ch; }
.lp-note code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.lp-table td { vertical-align: middle; }
.lp-table tr.lp-off td { opacity: .55; }
.lp-in { width: 100%; min-width: 0; padding: 5px 7px; font: inherit; font-size: .85rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); }
.lp-in:disabled { opacity: .6; cursor: not-allowed; }
.lp-code { text-transform: uppercase; max-width: 8ch; }
.lp-chk { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; white-space: nowrap; }
.lp-actions { white-space: nowrap; }
.lp-actions .btn { margin-right: 5px; }
.lp-small { font-size: .82rem; color: var(--muted); }
.lp-bad { color: var(--status-invalid); }
.lp-ok { color: var(--ok, var(--muted)); }
.lp-add { margin-top: var(--space-5); }
.lp-add h4 { margin: 0 0 6px; }
/* Wraps on a phone instead of pushing the Add button off the side of the screen. */
.lp-addrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lp-addrow input, .lp-addrow select { padding: 6px 8px; font: inherit; font-size: .85rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); }
.lp-addrow #lp-name { flex: 1 1 15rem; min-width: 0; }
.lp-addrow #lp-tlabel { flex: 1 1 12rem; min-width: 0; }
