/* ────────────────────────────────────────────────────────────────
   Semantic colours the components actually need.

   The admin theme already defines --a-danger, --a-warning, --a-success and
   --a-info. Two problems with relying only on those:

     1. Those four are display colours picked for a dark panel. #facc15 on
        white is 1.6:1 — unreadable as text — so every screen that needed a
        warning wrote its own hex instead of using the token, which is how 71
        hardcoded colours ended up in files I wrote.

     2. The customer side has no danger or warning token at all. --accent,
        --fg, --bg and nothing else.

   So: pairs. A surface, a border and a text colour for each state, each one
   readable against the other two, on both sides.
   ──────────────────────────────────────────────────────────────── */

:root,
[data-admin-theme="light"],
body.cp-light {
  --s-danger-fg:      #B42318;
  --s-danger-bg:      #FEF3F2;
  --s-danger-border:  #FDA29B;

  --s-warning-fg:     #7D5715;
  --s-warning-bg:     #FDF6E3;
  --s-warning-border: #E8C98A;

  --s-success-fg:     #067647;
  --s-success-bg:     #ECFDF3;
  --s-success-border: #ABEFC6;

  --s-info-fg:        #175CD3;
  --s-info-bg:        #EFF8FF;
  --s-info-border:    #B2DDFF;

  /* Overdue is not danger. Danger is "this will break something"; overdue is
     "this needed doing last week". Using the same red for both means the one
     that matters stops standing out. */
  /* The foreground to use ON the accent, not beside it.
     Two files had #12161B hardcoded for exactly this — dark text on the gold
     button — because no token said what belongs on top of an accent surface.
     White on #E5A833 is 2.1:1 and unreadable, so the answer is not simply
     "the background colour inverted". */
  --s-on-accent:      #12161B;

  --s-overdue-fg:     #C2410C;
  --s-overdue-bg:     #FFF4ED;
  --s-overdue-border: #F9C8A8;
}

[data-admin-theme="dark"],
body.cp-dark {
  /* Same roles, inverted. A surface that works on white is invisible on
     #0A0C0F, and a foreground that works on #FDF6E3 disappears on #12161B. */
  /* The accent stays light in dark mode, so what sits on it does not change. */
  --s-on-accent:      #12161B;

  --s-danger-fg:      #FDA29B;
  --s-danger-bg:      rgba(180, 35, 24, .14);
  --s-danger-border:  rgba(253, 162, 155, .32);

  --s-warning-fg:     #FBBF24;
  --s-warning-bg:     rgba(201, 142, 31, .14);
  --s-warning-border: rgba(251, 191, 36, .30);

  --s-success-fg:     #6CE9A6;
  --s-success-bg:     rgba(6, 118, 71, .16);
  --s-success-border: rgba(108, 233, 166, .30);

  --s-info-fg:        #84CAFF;
  --s-info-bg:        rgba(23, 92, 211, .16);
  --s-info-border:    rgba(132, 202, 255, .30);

  --s-overdue-fg:     #FDBA8C;
  --s-overdue-bg:     rgba(194, 65, 12, .16);
  --s-overdue-border: rgba(253, 186, 140, .30);
}

/* ── Components that were inline styles in ten of my files ────── */

.s-note {
  padding: .85rem 1.1rem;
  border-radius: 10px;
  line-height: 1.75;
  font-size: .82rem;
  border: 1px solid transparent;
}
.s-note-warning { background: var(--s-warning-bg); border-color: var(--s-warning-border); color: var(--s-warning-fg); }
.s-note-danger  { background: var(--s-danger-bg);  border-color: var(--s-danger-border);  color: var(--s-danger-fg); }
.s-note-success { background: var(--s-success-bg); border-color: var(--s-success-border); color: var(--s-success-fg); }
.s-note-info    { background: var(--s-info-bg);    border-color: var(--s-info-border);    color: var(--s-info-fg); }

/* A count badge. Was inline in four places with three different paddings. */
.s-badge {
  display: inline-block;
  min-width: 16px;
  padding: .05rem .35rem;
  border-radius: 6px;
  font-size: .6rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
  background: var(--s-danger-fg);
  color: #fff;
}

/* Muted supporting text under a heading or a field. */
.s-hint {
  font-size: .76rem;
  line-height: 1.75;
  color: var(--a-fg-3, var(--fg-muted, #64748b));
  max-width: 70ch;
}

/* A monospace block for lists somebody edits by hand. */
.s-mono {
  width: 100%;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .75rem;
  line-height: 1.9;
}

.s-overdue { color: var(--s-overdue-fg); }
.s-danger  { color: var(--s-danger-fg); }
.s-muted   { color: var(--a-fg-3, var(--fg-muted, #64748b)); }

/* ────────────────────────────────────────────────────────────────
   Page scaffolding
   ────────────────────────────────────────────────────────────────

   Eighteen admin views open with .a-page-head and fifteen with .a-page, and
   neither has ever had a rule. Every one of them carries an inline style doing
   the job by hand — which is why nobody noticed, and why the same flex
   declaration is written out in eighteen places with small differences between
   them.

   Defining them here does not change any page that already sets its own
   inline style, because inline wins. It does fix the ones that assumed the
   class was enough, and it means the next view needs neither.
   ──────────────────────────────────────────────────────────────── */

.a-page { width: 100%; }

.a-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

/* The heading inside it. Four views use this instead of a bare <h1>. */
.a-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--a-fg, var(--fg, inherit));
}

/* .a-hint is what three views typed for .s-hint. Rather than edit them and
   leave the next person to make the same slip, both names mean the same
   thing. */
.a-hint {
  font-size: .76rem;
  line-height: 1.75;
  color: var(--a-fg-3, var(--fg-muted, #64748b));
}

/* Drop 564: the way back, in the hero — its own line above the page's title. */
.a-page-back {
  display: flex;
  width: max-content;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--a-fg-3, var(--fg-muted, #64748b));
  text-decoration: none;
  transition: color .15s;
}
.a-page-back:hover { color: var(--a-accent, #C98E1F); }
.a-page-back-arrow { font-size: .95em; line-height: 1; }
.a-page-backrow { margin: 0 0 1rem; }
.a-page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* A card footer — the mirror of .a-card-header, used by questionnaires and
   never written. */
.a-card-footer {
  padding: .85rem 1.15rem;
  border-top: 1px solid var(--a-border, var(--border, rgba(0,0,0,.08)));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}


/* Drop 565: sign-in security — the change page, the users list and form, the security page. */
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: minmax(0, 1fr); } }
.sec-form { display: grid; gap: 1rem; }
.sec-rules { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .4rem; font-size: .82rem; line-height: 1.6; }
.sec-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.sec-badges { display: flex; gap: .35rem .9rem; flex-wrap: wrap; }
.sec-badge { font-size: .65rem; font-weight: 700; padding: .15rem .5rem; border-radius: 100px; white-space: nowrap;
             background: rgba(144,152,176,.14); color: var(--a-fg-3, #64748b); }
.sec-badge-ok   { background: rgba(22,163,74,.12);  color: #16a34a; }
.sec-badge-warn { background: rgba(201,142,31,.14); color: #a8741a; }
.sec-badge-bad  { background: rgba(220,38,38,.10);  color: #dc2626; }
.sec-kv { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .82rem;
          border-bottom: 1px solid var(--a-border-2, rgba(127,127,127,.15)); }
.sec-kv:last-of-type { border-bottom: none; }
.sec-kv span:first-child { color: var(--a-fg-3, #64748b); }
.sec-people { max-height: 320px; overflow: auto; display: grid; gap: .4rem; padding: .7rem;
              border: 1px solid var(--a-border-2, rgba(127,127,127,.2)); border-radius: 8px; }
.sec-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .82rem; line-height: 1.55; cursor: pointer; }
.sec-check input { margin-top: .22rem; }
/* A scope's field shows when that scope is chosen; where :has() is not supported, all of them show. */
.sec-scope:not(:has(#f-scope option[value="department"]:checked)) .sec-when-department,
.sec-scope:not(:has(#f-scope option[value="role"]:checked)) .sec-when-role,
.sec-scope:not(:has(#f-scope option[value="users"]:checked)) .sec-when-users { display: none; }


/* Drop 566: leave — who is away now, the request and decision cards. */
.lv-away { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.25rem; padding: .8rem 1rem;
           border: 1px solid var(--a-border-2, rgba(127,127,127,.18)); border-radius: 10px; background: rgba(201,142,31,.06); }
.lv-away-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #a8741a; }
.lv-chip { font-size: .78rem; padding: .25rem .65rem; border-radius: 100px; background: var(--a-bg-2, rgba(127,127,127,.08)); }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-bottom: 1.25rem; }
@media (max-width: 1000px) { .lv-grid { grid-template-columns: minmax(0, 1fr); } }
.lv-item { padding: .75rem 0; border-bottom: 1px solid var(--a-border-2, rgba(127,127,127,.15)); display: grid; gap: .35rem; }
.lv-item:last-child { border-bottom: none; }
.lv-item-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.lv-note { font-size: .8rem; line-height: 1.6; padding: .4rem .6rem; border-radius: 6px; background: var(--a-bg-2, rgba(127,127,127,.06)); }
.lv-decide { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.lv-decide .a-input { flex: 1 1 180px; }
.lv-empty { text-align: center; padding: 2rem !important; color: var(--a-fg-3, #64748b); }
.lv-settings { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.lv-settings .a-field { flex: 1 1 320px; margin: 0; }

/* Drop 567: contact priority — colour carries the level; the words come from Settings → Lists. */
.ct-prio { font-size: .72rem; color: var(--a-fg-3, #64748b); }
.ct-prio-high { font-weight: 600; color: #f97316; }
.ct-prio-urgent { font-weight: 700; color: #ef4444; }

/* Drop 568: client classification — tier badge, framework chips, the client-page card, the list filter. */
.cc-tier { display: inline-block; font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 100px; background: rgba(100,116,139,.12); color: var(--a-fg-2, #475569); }
.cc-tier-strategic { background: rgba(201,142,31,.16); color: #a8741a; }
.cc-tier-key { background: rgba(37,99,235,.12); color: #2563eb; }
.cc-chip { display: inline-block; font-size: .72rem; padding: .15rem .5rem; margin: 0 .3rem .3rem 0; border-radius: 6px; border: 1px solid var(--a-border, rgba(127,127,127,.25)); }
[dir="rtl"] .cc-chip { margin: 0 0 .3rem .3rem; }
.cc-unset { color: var(--a-fg-3, #94a3b8); }
.cc-body { display: grid; gap: .6rem; }
.cc-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .75rem; align-items: baseline; }
@media (max-width: 700px) { .cc-row { grid-template-columns: 1fr; gap: .2rem; } }
.cc-k { font-size: .78rem; color: var(--a-fg-3, #64748b); }
.cc-v { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; }
.cc-note { font-size: .8rem; }
.cc-warn { font-size: .8rem; padding: .5rem .7rem; border-radius: 8px; background: rgba(239,68,68,.08); color: #b91c1c; }
.cc-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.cc-filter .a-select { width: auto; min-width: 190px; }
.cc-days { display: flex; gap: .4rem; align-items: center; }
.cc-days .a-input { width: 6rem; }
.cc-matrix .cc-fw { text-align: center; white-space: nowrap; font-size: .75rem; }

/* Drop 569: assignment — who has it and why, the rules matrix, the request page. */
.as-who { font-size: .9rem; margin-bottom: .25rem; }
.as-why { font-size: .78rem; color: var(--a-fg-2, #475569); padding: .4rem .6rem; border-radius: 6px; background: var(--a-bg-2, rgba(127,127,127,.07)); margin-bottom: .75rem; }
.as-form, .as-lead-form { display: grid; gap: .5rem; margin-top: .5rem; }
.as-matrix .as-person { text-align: center; font-size: .75rem; white-space: nowrap; }
.as-matrix .as-cell { text-align: center; }
.as-matrix .as-kw { min-width: 260px; font-size: .78rem; }
.as-fallback td { border-top: 2px solid var(--a-border, rgba(127,127,127,.25)); }
.as-row { display: grid; gap: .5rem; }
.as-pool { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .4rem 0; }
.as-pick { display: inline-flex; gap: .35rem; align-items: center; font-size: .82rem; }
.as-run { display: flex; flex-wrap: wrap; gap: .6rem; }
.as-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .as-grid { grid-template-columns: minmax(0, 1fr); } }
.as-desc { font-size: .88rem; line-height: 1.8; margin: 0 0 1rem; }
.as-dl { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: .45rem .9rem; margin: 0; font-size: .83rem; }
.as-dl dt { color: var(--a-fg-3, #64748b); }
.as-dl dd { margin: 0; }
@media (max-width: 700px) { .as-dl { grid-template-columns: 1fr; } }
.a-table td.as-cell-who, .as-cell-who { font-size: var(--fs-sm); color: var(--a-fg-2); }   /* drop 1013: same size as the company column beside it */
.as-update .a-field { margin-bottom: .75rem; }

/* Drop 571: where you're signed in; the dashboard's leave marker. */
.ps-list { display: grid; gap: .1rem; }
.ps-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--a-border-2, rgba(127,127,127,.15)); }
.ps-row:last-child { border-bottom: none; }
.dash-leave { font-size: .65rem; font-weight: 600; white-space: nowrap; padding: .1rem .45rem; border-radius: 100px; background: rgba(201,142,31,.14); color: #a8741a; }
.dash-leave.is-bad { background: rgba(239,68,68,.12); color: #b91c1c; }

/* Drop 572: the shared list bar — search, filters, dates, page size. */
.lvb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.lvb .lvb-q { flex: 1 1 240px; min-width: 200px; }
.lvb .lvb-f, .lvb .lvb-per { width: auto; min-width: 150px; flex: 0 1 auto; }
.lvb .lvb-d { width: auto; flex: 0 1 150px; }
.lvb-in { padding: .75rem 1rem 0; }
.lvb-in .lvb { margin-bottom: .75rem; }

/* Drop 573: client users — tiles, actions, the settings grid, the client page's portal access. */
.cu-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.cu-tile { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem; border: 1px solid var(--a-border); border-radius: 12px; text-decoration: none; color: inherit; background: var(--a-surface, transparent); }
.cu-tile.is-attn { border-color: var(--a-accent, #6941C6); }
.cu-tile-n { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.cu-tile-l { font-size: .78rem; opacity: .75; }
.cu-acts { white-space: nowrap; }
.cu-act { display: inline; }
.cus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem 1.5rem; }
.cus-wide { grid-column: 1 / -1; }
.cus-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-top: .35rem; }
.pa-form { display: grid; grid-template-columns: minmax(120px, 160px) minmax(220px, 1fr) minmax(200px, 260px) auto; gap: .75rem; align-items: end; margin-bottom: .5rem; }
.pa-save { padding-bottom: .1rem; }
@media (max-width: 760px) { .pa-form { grid-template-columns: 1fr; } }
.sec-badge-info { color: #6941C6; border-color: rgba(105,65,198,.35); background: rgba(105,65,198,.08); }

/* Drop 574: export menu on lists; the exports center. */
.lvb-exp { position: relative; }
.lvb-exp > summary { list-style: none; cursor: pointer; }
.lvb-exp > summary::-webkit-details-marker { display: none; }
.lvb-exp-menu { position: absolute; inset-inline-end: 0; top: calc(100% + .35rem); z-index: 30; min-width: 180px; display: flex; flex-direction: column; padding: .35rem; border: 1px solid var(--a-border); border-radius: 10px; background: var(--a-surface, var(--a-card, #fff)); box-shadow: 0 10px 30px rgba(15,23,42,.12); }   /* drop 1018: was white under light text in the dark theme */
.lvb-exp-menu a { padding: .45rem .7rem; border-radius: 7px; text-decoration: none; color: inherit; font-size: .82rem; white-space: nowrap; }
.lvb-exp-menu a:hover { background: var(--a-hover, rgba(127,127,127,.1)); }
.rx-group { margin-bottom: 1.5rem; }
.rx-group-title { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .65; margin: 0 0 .6rem; }
.rx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.rx-card { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.1rem; border: 1px solid var(--a-border); border-radius: 14px; background: var(--a-surface, transparent); }
.rx-card h3 { margin: 0; font-size: .98rem; }
.rx-form { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: auto; }
.rx-form .rx-q { grid-column: 1 / -1; }
.rx-form .rx-go { grid-column: 1 / -1; justify-self: start; }
.rx-settings { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }

/* ── Drop 575: executive dashboards ─────────────────────────────────────────────
   Colors come from the admin theme (--a-*) and, for the brand band, from the brand
   settings the page passes in (--dsh-*). Nothing here is fixed to one theme. */
.dsh { display: flex; flex-direction: column; gap: 22px; width: 100%; }
.dsh-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 28px; padding: 28px 30px 26px; border-radius: 18px; color: #fff;
  background: radial-gradient(130% 150% at 100% 0%, var(--dsh-deep) 0%, var(--dsh-primary) 58%); box-shadow: 0 22px 44px -28px rgba(0, 20, 50, .7); }
[dir="rtl"] .dsh-hero { background: radial-gradient(130% 150% at 0% 0%, var(--dsh-deep) 0%, var(--dsh-primary) 58%); }
.dsh-hero::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--dsh-accent); }
.dsh-hero::after { content: ""; position: absolute; inset-inline-end: -70px; bottom: -150px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid var(--dsh-accent); opacity: .55; pointer-events: none; }
.dsh-hero-main, .dsh-hero-side { position: relative; z-index: 1; }
.dsh-hero-main { min-width: 0; }
.dsh-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
[dir="rtl"] .dsh-eyebrow { letter-spacing: 0; text-transform: none; }
.dsh-title { margin: 0; font-size: clamp(24px, 2.3vw, 34px); font-weight: 800; line-height: 1.2; color: #fff; }
.dsh-sub { margin: 6px 0 14px; font-size: 14px; color: rgba(255, 255, 255, .74); }
.dsh-period { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; color: rgba(255, 255, 255, .66); }
.dsh-period strong { font-size: 15px; font-weight: 700; color: var(--dsh-accent); }
.dsh-hero-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dsh-periods { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.dsh-pill { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .8); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.dsh-pill:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.dsh-pill.is-on { background: var(--dsh-accent); color: var(--dsh-deep); }
.dsh-menu { position: relative; }
.dsh-menu > summary { list-style: none; }
.dsh-menu > summary::-webkit-details-marker { display: none; }
.dsh-export { display: inline-flex; align-items: center; gap: 8px; padding: 9px 17px; border-radius: 999px; background: #fff; color: var(--dsh-primary); font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.dsh-export svg { width: 16px; height: 16px; }
.dsh-menu[open] .dsh-export { background: var(--dsh-accent); color: var(--dsh-deep); }
.dsh-menu-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 40; display: flex; flex-direction: column; gap: 8px; min-width: 340px; padding: 14px; border-radius: 14px;
  background: var(--a-card); border: 1px solid var(--a-border-2); color: var(--a-fg); box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .5); }
.dsh-menu-row { display: grid; grid-template-columns: 78px repeat(3, minmax(0, 1fr)); align-items: center; gap: 6px; }
.dsh-menu-lang { font-size: 12.5px; font-weight: 700; color: var(--a-fg-2); }
.dsh-menu-btn { padding: 8px 6px; border-radius: 9px; border: 1px solid var(--a-border-2); font-size: 12.5px; font-weight: 600; text-align: center; color: var(--a-fg); text-decoration: none; transition: .15s; }
.dsh-menu-btn:hover { border-color: var(--a-accent); background: var(--a-accent-l); color: var(--a-accent); }
.dsh-menu-note { font-size: 11.5px; color: var(--a-fg-3); }
.dsh-gear { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .86); }
.dsh-gear:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.dsh-gear svg { width: 18px; height: 18px; }
.dsh-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dsh-tab { flex: 0 0 auto; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--a-border-2); background: var(--a-card); font-size: 13px; font-weight: 600; color: var(--a-fg-2); text-decoration: none; white-space: nowrap; transition: .15s; }
.dsh-tab:hover { border-color: var(--a-accent); color: var(--a-fg); }
.dsh-tab.is-on { border-color: var(--a-accent); background: var(--a-accent-l); color: var(--a-accent); }
.dsh-section { display: flex; flex-direction: column; gap: 14px; }
.dsh-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 12px; }
.dsh-sec-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--a-fg); }
.dsh-sec-title::before { content: ""; flex: 0 0 4px; height: 20px; border-radius: 2px; background: var(--a-accent); }
.dsh-sec-sub { display: block; margin-top: 4px; font-size: 12.5px; color: var(--a-fg-3); }
.dsh-open { font-size: 13px; font-weight: 700; color: var(--a-accent); text-decoration: none; white-space: nowrap; }
.dsh-open:hover { text-decoration: underline; }
.dsh-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
@media (min-width: 1200px) { .dsh-kpis { grid-template-columns: repeat(var(--dsh-cols, 4), minmax(0, 1fr)); } }
.dsh-kpi { position: relative; display: flex; flex-direction: column; margin: 0; padding: 16px 18px 14px; overflow: hidden; border-radius: 14px; background: var(--a-card); border: 1px solid var(--a-border); transition: transform .15s, box-shadow .15s; }
.dsh-kpi::before { content: ""; position: absolute; inset-block: 16px; inset-inline-start: 0; width: 3px; border-radius: 2px; background: var(--a-accent); }
.dsh-kpi:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .5); }
.dsh-kpi-label { overflow: hidden; font-size: 12.5px; font-weight: 600; color: var(--a-fg-3); white-space: nowrap; text-overflow: ellipsis; }
.dsh-kpi-value { margin: 6px 0 10px; overflow: hidden; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--a-fg); white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.dsh-kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 28px; margin-top: auto; }
.dsh-kpi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; }
.dsh-delta { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--a-bg-2); color: var(--a-fg-2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dsh-delta.is-good { background: color-mix(in srgb, var(--dsh-good) 13%, transparent); color: var(--dsh-good); }
.dsh-delta.is-bad { background: color-mix(in srgb, var(--dsh-bad) 13%, transparent); color: var(--dsh-bad); }
[data-admin-theme="dark"] .dsh-delta.is-good { color: color-mix(in srgb, var(--dsh-good) 55%, #fff); }
[data-admin-theme="dark"] .dsh-delta.is-bad { color: color-mix(in srgb, var(--dsh-bad) 55%, #fff); }
.dsh-tri { width: 9px; height: 9px; fill: currentColor; }
.dsh-vs { color: var(--a-fg-3); }
.dsh-spark { flex: 0 0 96px; }
.dsh-spark .dsh-svg { width: 96px; }
.dsh-card { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--a-card); border: 1px solid var(--a-border); }
.dsh-card-title { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--a-fg); }
.dsh-count { padding: 1px 8px; border-radius: 999px; background: var(--a-bg-2); font-size: 11.5px; font-weight: 700; color: var(--a-fg-3); }
.dsh-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dsh-chart.is-wide { grid-column: 1 / -1; }
.dsh-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.dsh-svg .r-ink { fill: var(--a-fg); }
.dsh-svg .r-muted { fill: var(--a-fg-3); }
.dsh-svg line.r-line { stroke: var(--a-border-2); }
.dsh-svg .r-track, .dsh-svg .r-cell { fill: var(--a-bg-2); }
.dsh-svg .r-dot { fill: var(--a-card); }
[data-admin-theme="dark"] .dsh-svg .r-area { fill: var(--dsh-p0d); opacity: .16; }
[data-admin-theme="dark"] .dsh-svg .r-sparea { opacity: .22; }
/* Palette colors: in the dark theme each takes its lighter variant, which the page passes in. */
[data-admin-theme="dark"] .dsh-svg .p0 { fill: var(--dsh-p0d); } [data-admin-theme="dark"] .dsh-svg .ps0 { stroke: var(--dsh-p0d); }
[data-admin-theme="dark"] .dsh-svg .p1 { fill: var(--dsh-p1d); } [data-admin-theme="dark"] .dsh-svg .ps1 { stroke: var(--dsh-p1d); }
[data-admin-theme="dark"] .dsh-svg .p2 { fill: var(--dsh-p2d); } [data-admin-theme="dark"] .dsh-svg .ps2 { stroke: var(--dsh-p2d); }
[data-admin-theme="dark"] .dsh-svg .p3 { fill: var(--dsh-p3d); } [data-admin-theme="dark"] .dsh-svg .ps3 { stroke: var(--dsh-p3d); }
[data-admin-theme="dark"] .dsh-svg .p4 { fill: var(--dsh-p4d); } [data-admin-theme="dark"] .dsh-svg .ps4 { stroke: var(--dsh-p4d); }
[data-admin-theme="dark"] .dsh-svg .p5 { fill: var(--dsh-p5d); } [data-admin-theme="dark"] .dsh-svg .ps5 { stroke: var(--dsh-p5d); }
[data-admin-theme="dark"] .dsh-svg .p6 { fill: var(--dsh-p6d); } [data-admin-theme="dark"] .dsh-svg .ps6 { stroke: var(--dsh-p6d); }
[data-admin-theme="dark"] .dsh-svg .p7 { fill: var(--dsh-p7d); } [data-admin-theme="dark"] .dsh-svg .ps7 { stroke: var(--dsh-p7d); }
.dsh-alert-list { margin: 0; padding: 0; list-style: none; }
.dsh-alert-list.is-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); column-gap: 36px; }
.dsh-alert-list.is-cols .dsh-alert:last-child { border-bottom: 1px solid var(--a-border); }
.dsh-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--a-border); font-size: 13.5px; color: var(--a-fg); }
.dsh-alert:last-child { border-bottom: 0; }
.dsh-alert-text { display: flex; align-items: center; gap: 10px; }
.dsh-alert-text::before { content: ""; flex: 0 0 4px; height: 18px; border-radius: 2px; background: var(--a-fg-3); }
.dsh-alert.is-bad .dsh-alert-text::before { background: var(--dsh-bad); }
.dsh-alert.is-warn .dsh-alert-text::before { background: var(--dsh-warn); }
.dsh-alert.is-info .dsh-alert-text::before { background: var(--a-accent); }
.dsh-alert-value { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dsh-alert.is-bad .dsh-alert-value { color: var(--dsh-bad); }
.dsh-alert.is-warn .dsh-alert-value { color: var(--dsh-warn); }
[data-admin-theme="dark"] .dsh-alert.is-bad .dsh-alert-value { color: color-mix(in srgb, var(--dsh-bad) 55%, #fff); }
[data-admin-theme="dark"] .dsh-alert.is-warn .dsh-alert-value { color: color-mix(in srgb, var(--dsh-warn) 55%, #fff); }
.dsh-table th.is-num, .dsh-table td.is-num { text-align: end; font-variant-numeric: tabular-nums; }
.dsh-table td:first-child { font-weight: 600; }
.dsh-foot { display: block; font-size: 12px; color: var(--a-fg-3); text-align: center; }
.dsh-set { display: flex; flex-direction: column; gap: 16px; }
.dsh-set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 18px; }
.dsh-set-wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dsh-color { width: 100%; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--a-border-2); background: var(--a-card); cursor: pointer; }
.dsh-set-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 980px) { .dsh-charts { grid-template-columns: minmax(0, 1fr); } .dsh-hero { padding: 22px 20px; } }
@media (prefers-reduced-motion: reduce) { .dsh-kpi, .dsh-kpi:hover { transition: none; transform: none; } }
@media print { .dsh-tabs, .dsh-hero-side { display: none !important; } .dsh-kpi, .dsh-card { break-inside: avoid; } }

/* ── Drop 576: the catalog — products and services editors, lists and the media picker ── */
.u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; inset-inline-start: 0; }
.cat-page { width: 100%; }
.cat-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.cat-listhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.cat-listhead .s-hint { display: block; max-width: 720px; }
.cat-listhead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--a-fg-3); }
.cat-crumbs a { color: var(--a-accent); text-decoration: none; }
.cat-slug { font-size: 12.5px; color: var(--a-fg-3); direction: ltr; unicode-bidi: isolate; }
.cat-errors { border: 1px solid var(--a-danger); background: color-mix(in srgb, var(--a-danger) 8%, transparent); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--a-fg); }
.cat-errors-item { font-size: 13px; color: var(--a-danger); }
.cat-err { display: block; color: var(--a-danger); font-size: 12.5px; margin-top: 4px; }
.cat-form { display: grid; grid-template-columns: 180px minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.cat-nav { position: sticky; top: calc(var(--a-header-h, 64px) + 16px); display: flex; flex-direction: column; gap: 2px; }
.cat-nav a { padding: 8px 12px; border-radius: 10px; color: var(--a-fg-2); text-decoration: none; font-size: 13px; border-inline-start: 2px solid transparent; }
.cat-nav a:hover { background: var(--a-bg-2); color: var(--a-fg); }
.cat-nav a.is-on { color: var(--a-accent); border-inline-start-color: var(--a-accent); background: var(--a-accent-l); font-weight: 600; }
.cat-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cat-sec, .cat-card { background: var(--a-card); border: 1px solid var(--a-border); border-radius: 16px; padding: 20px 22px; }
.cat-sec { scroll-margin-top: calc(var(--a-header-h, 64px) + 16px); }
.cat-sec > .s-hint { display: block; margin: -8px 0 12px; }
.cat-sec-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; color: var(--a-fg); }
.cat-card-title { font-size: 14px; font-weight: 700; margin: 0; color: var(--a-fg); }
.cat-page > .cat-card { margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.cat-sub { margin: 22px 0 10px; display: flex; flex-direction: column; gap: 2px; }
.cat-sub-title { font-size: 14px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--a-fg); }
.cat-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.cat-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.cat-side { position: sticky; top: calc(var(--a-header-h, 64px) + 16px); display: flex; flex-direction: column; gap: 14px; }
.cat-side .cat-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.cat-prefix { display: flex; align-items: stretch; border: 1px solid var(--a-border-2); border-radius: 10px; overflow: hidden; }
.cat-prefix > span { padding: 0 10px; display: flex; align-items: center; background: var(--a-bg-2); color: var(--a-fg-3); font-size: 12.5px; white-space: nowrap; }
.cat-prefix .a-input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.cat-count { display: block; text-align: end; font-size: 11.5px; color: var(--a-fg-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.cat-count.is-over { color: var(--a-warning); font-weight: 700; }
.cat-tablist { display: inline-flex; gap: 4px; padding: 4px; background: var(--a-bg-2); border-radius: 12px; margin-bottom: 14px; }
.cat-tab { border: 0; background: transparent; color: var(--a-fg-2); padding: 7px 18px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; min-height: 36px; }
.cat-tab.is-on { background: var(--a-card); color: var(--a-fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
[data-tabs-ready] .cat-pane:not(.is-on) { display: none; }
.cat-pane + .cat-pane { margin-top: 18px; }
[data-tabs-ready] .cat-pane + .cat-pane { margin-top: 0; }
.cat-editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.cat-editor { margin-bottom: 16px; }
.cat-imgfield { display: flex; flex-direction: column; gap: 6px; }
.cat-imgbox { border: 1px dashed var(--a-border-2); border-radius: 14px; overflow: hidden; background: var(--a-bg-2); }
.cat-imgbox-view { display: block; aspect-ratio: 16 / 9; position: relative; }
.cat-imgbox-view img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-imgbox-empty { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: var(--a-fg-3); font-size: 13px; }
.cat-imgbox.is-empty .cat-imgbox-empty { display: flex; }
.cat-imgbox.is-empty [data-media-clear] { display: none; }
.cat-imgbox-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-top: 1px solid var(--a-border); background: var(--a-card); }
.cat-sec > .cat-imgfield { max-width: 560px; margin-top: 16px; }
.cat-rep { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cat-rep > .cat-rep-list { align-self: stretch; }
.cat-rep.is-full > .btn-a { border-color: var(--a-warning); animation: cat-shake .4s; }
@keyframes cat-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cat-rep-list { display: flex; flex-direction: column; gap: 10px; }
.cat-rep-list:empty { display: none; }
.cat-rep-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-bg); }
.cat-spec { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; }
.cat-faq { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
.cat-faq .cat-rowtools { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
.cat-tier { grid-template-columns: 2fr 2fr 1.2fr 1.4fr 1.4fr auto; align-items: start; }
.cat-tier textarea:nth-of-type(1) { grid-column: 1 / 4; }
.cat-tier textarea:nth-of-type(2) { grid-column: 4 / 6; }
.cat-tier .cat-rowtools { grid-column: 6; grid-row: 1; }
.cat-rowtools { display: flex; gap: 2px; align-items: center; }
.cat-drag { cursor: grab; color: var(--a-fg-3); padding: 0 6px; font-size: 16px; user-select: none; }
.cat-icon-btn { border: 1px solid transparent; background: transparent; color: var(--a-fg-3); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font: inherit; line-height: 1; }
.cat-icon-btn:hover, .cat-icon-btn:focus-visible { background: var(--a-bg-2); color: var(--a-fg); }
.cat-danger { color: var(--a-danger); }
.cat-icon-btn.cat-danger:hover { color: var(--a-danger); }
.cat-gal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cat-gal-item { position: relative; border: 1px solid var(--a-border); border-radius: 12px; overflow: hidden; background: var(--a-bg); display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.cat-gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--a-bg-2); }
.cat-gal-item .a-input { margin: 0 8px; width: calc(100% - 16px); font-size: 12.5px; }
.cat-gal-item .cat-rowtools { position: absolute; top: 6px; inset-inline-end: 6px; background: color-mix(in srgb, var(--a-card) 90%, transparent); border-radius: 10px; padding: 2px; }
.cat-doc { display: grid; grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) auto; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-bg); }
.cat-doc-ext { display: inline-flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; background: var(--a-accent-l); color: var(--a-accent); font-weight: 800; font-size: 11px; letter-spacing: .04em; }
.cat-doc-file { font-size: 12.5px; color: var(--a-fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--a-border-2); border-radius: 999px; cursor: pointer; font-size: 12.5px; color: var(--a-fg-2); background: var(--a-bg); }
.cat-chip input { accent-color: var(--a-accent); margin: 0; }
.cat-chip:has(input:checked) { border-color: var(--a-accent); background: var(--a-accent-l); color: var(--a-fg); font-weight: 600; }
.cat-side .cat-chips { margin: 0; }
.cat-picks { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow: auto; border: 1px solid var(--a-border); border-radius: 12px; padding: 6px; margin-top: 6px; }
.cat-picks .cat-chip { border: 0; border-radius: 8px; background: transparent; }
.cat-picks .cat-chip[hidden] { display: none; }
.cat-filter { margin-top: 6px; }
.cat-serps { margin: 16px 0 4px; }
.cat-serp { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-bg); min-width: 0; }
.cat-serp-url { font-size: 12px; color: var(--a-fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.cat-serp-title { font-size: 17px; line-height: 1.35; color: var(--a-info); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-serp-desc { font-size: 13px; line-height: 1.55; color: var(--a-fg-2); }
.cat-state { display: inline-flex; align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--a-bg-2); color: var(--a-fg-2); }
.cat-badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--a-bg-2); color: var(--a-fg-2); }
.cat-state.is-published, .cat-badge.is-published { background: color-mix(in srgb, var(--a-success) 16%, transparent); color: var(--a-success); }
.cat-state.is-scheduled, .cat-badge.is-scheduled { background: color-mix(in srgb, var(--a-info) 16%, transparent); color: var(--a-info); }
.cat-state.is-draft, .cat-badge.is-draft { background: color-mix(in srgb, var(--a-warning) 16%, transparent); color: var(--a-warning); }
.cat-state.is-archived, .cat-badge.is-archived { background: var(--a-bg-3); color: var(--a-fg-3); }
.cat-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--a-fg); cursor: pointer; min-height: 32px; }
.cat-switch input { accent-color: var(--a-accent); width: 16px; height: 16px; margin: 0; }
.cat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.cat-actions .btn-a { justify-content: center; }
.cat-actions-2 { display: flex; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--a-border); padding-top: 10px; }
.cat-link { font-size: 12.5px; color: var(--a-accent); text-decoration: none; display: inline-block; margin-top: 4px; }
.cat-link:hover { text-decoration: underline; }
.cat-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; max-height: 200px; overflow: auto; padding: 2px; }
.cat-ico { position: relative; display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 9px; border: 1px solid var(--a-border); cursor: pointer; color: var(--a-fg-2); }
.cat-ico input { position: absolute; opacity: 0; pointer-events: none; }
.cat-ico:hover { color: var(--a-fg); border-color: var(--a-border-2); }
.cat-ico:has(input:checked) { border-color: var(--a-accent); background: var(--a-accent-l); color: var(--a-accent); }
.cat-ico:has(input:focus-visible) { outline: 2px solid var(--a-accent); outline-offset: 1px; }
.cat-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--a-fg-2); }
.cat-check::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--a-border-2); flex: none; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; }
.cat-check.is-ok { color: var(--a-fg); }
.cat-check.is-ok::before { content: '✓'; background: var(--a-success); border-color: var(--a-success); }
.cat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.cat-tile { background: var(--a-card); border: 1px solid var(--a-border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.cat-tile-n { font-size: 24px; font-weight: 800; color: var(--a-fg); font-variant-numeric: tabular-nums; }
.cat-tile-l { font-size: 12px; color: var(--a-fg-3); }
.cat-tile.is-live .cat-tile-n { color: var(--a-success); }
.cat-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.cat-chip-link { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--a-border-2); font-size: 12.5px; color: var(--a-fg-2); text-decoration: none; }
.cat-chip-link span { color: var(--a-fg-3); margin-inline-start: 4px; font-variant-numeric: tabular-nums; }
.cat-chip-link.is-on { border-color: var(--a-accent); background: var(--a-accent-l); color: var(--a-fg); font-weight: 600; }
.cat-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-card); margin-bottom: 10px; }
.cat-bulkbar .a-select { width: auto; min-width: 220px; }
.cat-bulk-n { font-size: 12.5px; color: var(--a-fg-3); font-variant-numeric: tabular-nums; }
.cat-listform.has-selection .cat-bulkbar { border-color: var(--a-accent); }
.cat-table td { vertical-align: middle; }
.cat-col-check { width: 36px; }
.cat-col-check input { accent-color: var(--a-accent); width: 16px; height: 16px; }
.cat-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.cat-thumb { width: 64px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; background: var(--a-bg-2); border: 1px solid var(--a-border); display: flex; align-items: center; justify-content: center; color: var(--a-accent); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-item-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cat-item-name { font-weight: 700; color: var(--a-fg); }
.cat-item:hover .cat-item-name { color: var(--a-accent); }
.cat-item-alt { font-size: 12px; color: var(--a-fg-3); text-align: start; }
.cat-item-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.cat-item-slug { font-size: 11.5px; color: var(--a-fg-3); }
.cat-tag { font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--a-bg-2); color: var(--a-fg-2); }
.cat-tag.is-featured { background: var(--a-accent-l); color: var(--a-accent); }
.cat-sub-line { display: block; font-size: 11.5px; color: var(--a-fg-3); margin-top: 2px; }
.cat-num { font-variant-numeric: tabular-nums; color: var(--a-fg-2); white-space: nowrap; }
.cat-rowact { white-space: nowrap; text-align: end; }
.cat-rowact .btn-a { margin-inline-start: 2px; }
.cat-empty { text-align: center; padding: 36px 12px !important; color: var(--a-fg-3); }
.cat-edit { display: inline-block; text-align: start; }
.cat-edit > summary { list-style: none; cursor: pointer; display: inline-flex; }
.cat-edit > summary::-webkit-details-marker { display: none; }
.cat-edit[open] { display: block; margin-bottom: 8px; }
.cat-edit-form { margin-top: 10px; padding: 14px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-bg); white-space: normal; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cat-edit-form > .cat-grid-2 { align-self: stretch; }
.cat-inline { display: inline; }
.mp-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.mp-modal[hidden] { display: none; }
body.mp-open { overflow: hidden; }
.mp-panel { position: relative; background: var(--a-bg); border: 1px solid var(--a-border-2); border-radius: 16px; width: 94%; max-width: 1000px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.mp-head { padding: 14px 20px; border-bottom: 1px solid var(--a-border-2); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mp-title { font-weight: 700; color: var(--a-fg); font-size: 15px; }
.mp-x { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--a-fg-3); min-width: 44px; min-height: 44px; }
.mp-bar { padding: 12px 20px; border-bottom: 1px solid var(--a-border-2); display: flex; gap: 10px; align-items: center; }
.mp-bar .a-input { flex: 1; }
.mp-upload-label { cursor: pointer; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.mp-upload-label svg { width: 16px; height: 16px; }
.mp-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mp-grid { overflow-y: auto; flex: 1; padding: 16px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; min-height: 220px; align-content: start; }
.mp-empty { grid-column: 1 / -1; text-align: center; color: var(--a-fg-3); padding: 40px 12px; font-size: 13px; line-height: 1.7; }
.mp-thumb { position: relative; background: var(--a-bg-2); border: 2px solid var(--a-border-2); border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0 0 8px; text-align: start; width: 100%; display: flex; flex-direction: column; gap: 2px; color: var(--a-fg); font: inherit; }
.mp-thumb:hover, .mp-thumb:focus-visible { border-color: var(--a-accent); outline: none; }
.mp-thumb[aria-selected="true"] { border-color: var(--a-accent); box-shadow: 0 0 0 3px var(--a-accent-l); }
.mp-thumb img { width: 100%; height: 108px; object-fit: cover; display: block; background: var(--a-bg-3); }
.mp-ext { height: 108px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; letter-spacing: .06em; color: var(--a-accent); background: var(--a-accent-l); }
.mp-name { font-size: 11.5px; padding: 6px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-meta { font-size: 10.5px; color: var(--a-fg-3); padding: 0 8px; font-variant-numeric: tabular-nums; }
.mp-used { position: absolute; top: 6px; inset-inline-start: 6px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .64); color: #fff; }
.mp-check { position: absolute; top: 6px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .35); display: none; box-sizing: border-box; color: #fff; font-size: 12px; font-weight: 800; align-items: center; justify-content: center; }
.mp-grid[aria-multiselectable="true"] .mp-check { display: flex; }
.mp-thumb[aria-selected="true"] .mp-check { background: var(--a-accent); border-color: var(--a-accent); }
.mp-thumb[aria-selected="true"] .mp-check::after { content: '✓'; }
.mp-more { display: flex; justify-content: center; padding: 0 20px 10px; }
.mp-more:has(> [hidden]) { display: none; }
.mp-foot { padding: 12px 20px; border-top: 1px solid var(--a-border-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mp-status { font-size: 12.5px; color: var(--a-fg-3); }
.mp-drop { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--a-accent) 16%, var(--a-bg)); border: 3px dashed var(--a-accent); border-radius: 16px; font-weight: 700; color: var(--a-fg); }
.mp-drop[hidden] { display: none; }
@media (max-width: 1280px) { .cat-form { grid-template-columns: minmax(0, 1fr) 300px; } .cat-nav { display: none; } }
@media (max-width: 960px) {
  .cat-form { grid-template-columns: 1fr; } .cat-side { position: static; }
  .cat-grid-2, .cat-grid-3, .cat-spec, .cat-faq, .cat-tier, .cat-doc { grid-template-columns: 1fr; }
  .cat-faq .cat-rowtools, .cat-tier .cat-rowtools, .cat-tier textarea:nth-of-type(1), .cat-tier textarea:nth-of-type(2) { grid-column: auto; grid-row: auto; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* theme.css colors every link in the dark admin theme ([data-admin-theme="dark"] a), which outranks the
   button classes — a primary link-button was gold on gold. A link styled as a button keeps its own colors. */
[data-admin-theme="dark"] a.btn-a-primary { color: var(--a-bg); }
[data-admin-theme="dark"] a.btn-a-outline, [data-admin-theme="dark"] a.btn-a-ghost { color: var(--a-fg-2); }
[data-admin-theme="dark"] a.btn-a-outline:hover { color: var(--a-accent); }
[data-admin-theme="dark"] a.btn-a-ghost:hover { color: var(--a-fg); }
[data-admin-theme="dark"] a.btn-a-danger { color: var(--a-danger); }
/* The upgraded select's wrapper carries the select's classes for layout only (select-upgrade.css). Themed
   rules such as [data-admin-theme="dark"] .a-select outrank the wrapper's own reset, so it drew a second
   box and a clipped caret around every upgraded dropdown. The wrapper stays flat in every theme. */
.xs-wrap.a-select, [data-admin-theme] .xs-wrap.a-select, [data-theme] .xs-wrap.a-select {
  padding: 0; border: 0; border-radius: 0; background: none; background-image: none; box-shadow: none; min-height: 0; height: auto;
}
/* Paired English and Arabic boxes keep one height — Arabic type sets taller lines. */
.cat-tier textarea { height: 112px; }
.cat-faq textarea { height: 96px; }
.cat-rep-row textarea { resize: vertical; }
.cat-sec > .s-hint { max-width: none; }
.cat-doc-list { gap: 8px; }
.cat-tier-flag { align-self: center; white-space: nowrap; }
.cat-ext { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--a-warning) 90%, #000); color: #fff; }

/* ── Drop 577: engagements — the lifecycle from the first enquiry to closure ── */
.eg-page { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.eg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.eg-head .s-hint { display: block; max-width: 760px; }
.eg-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.eg-tile { background: var(--a-card); border: 1px solid var(--a-border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.eg-tile-n { font-size: 22px; font-weight: 800; color: var(--a-fg); font-variant-numeric: tabular-nums; }
.eg-tile-l { font-size: 12px; color: var(--a-fg-3); }
.eg-tile.is-good .eg-tile-n { color: var(--a-success); }
.eg-tile.is-bad .eg-tile-n { color: var(--a-danger); }
.eg-tile.is-warn .eg-tile-n { color: var(--a-warning); }
.eg-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.eg-scopes, .eg-views { display: flex; flex-wrap: wrap; gap: 6px; }
.eg-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--a-border-2); font-size: 12.5px; color: var(--a-fg-2); text-decoration: none; }
.eg-chip.is-on { border-color: var(--a-accent); background: var(--a-accent-l); color: var(--a-fg); font-weight: 600; }
.eg-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.eg-col { background: var(--a-bg-2); border: 1px solid var(--a-border); border-top: 3px solid var(--eg-c, var(--a-accent)); border-radius: 12px; display: flex; flex-direction: column; min-height: 160px; }
.eg-col.is-over { outline: 2px dashed var(--a-accent); outline-offset: -4px; }
.eg-col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--a-fg); }
.eg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--eg-c, var(--a-accent)); flex: none; }
.eg-col-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg-col-n { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--a-card); color: var(--a-fg-2); }
.eg-col-sum { font-size: 11.5px; color: var(--a-fg-3); font-variant-numeric: tabular-nums; }
.eg-col-body { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 10px; flex: 1; }
.eg-bcard { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--a-card); border: 1px solid var(--a-border); text-decoration: none; color: inherit; cursor: grab; }
.eg-bcard:hover { border-color: var(--a-accent); }
.eg-bcard.is-overdue { border-inline-start: 3px solid var(--a-danger); }
.eg-bcard.is-hold { opacity: .72; }
.eg-bcard.is-dragging, .eg-bcard.is-busy { opacity: .45; }
.eg-bcard-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.eg-bcard-ref { font-size: 11px; font-weight: 700; color: var(--a-fg-3); letter-spacing: .03em; }
.eg-bcard-title { font-size: 13px; font-weight: 700; color: var(--a-fg); line-height: 1.35; }
.eg-bcard-party { font-size: 12px; color: var(--a-fg-2); }
.eg-bcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 11.5px; color: var(--a-fg-3); font-variant-numeric: tabular-nums; }
.eg-bcard-value { margin-inline-start: auto; color: var(--a-fg-2); font-weight: 600; }
.eg-ready { padding: 1px 7px; border-radius: 999px; background: var(--a-bg-2); }
.eg-ready.is-done { background: color-mix(in srgb, var(--a-success) 16%, transparent); color: var(--a-success); }
.eg-owner { width: 22px; height: 22px; border-radius: 50%; background: var(--a-accent-l); color: var(--a-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.eg-toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); max-width: min(560px, 90vw); padding: 12px 16px; border-radius: 12px; background: var(--a-fg); color: var(--a-bg); font-size: 13px; z-index: 1000; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
[dir="rtl"] .eg-toast { transform: translateX(50%); }
.eg-toast[hidden] { display: none; }
.eg-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--a-bg-2); color: var(--a-fg-2); white-space: nowrap; }
.eg-badge.is-won, .eg-badge.is-completed, .eg-badge.is-approved { background: color-mix(in srgb, var(--a-success) 16%, transparent); color: var(--a-success); }
.eg-badge.is-lost, .eg-badge.is-cancelled, .eg-badge.is-rejected, .eg-badge.is-overdue { background: color-mix(in srgb, var(--a-danger) 14%, transparent); color: var(--a-danger); }
.eg-badge.is-on_hold, .eg-badge.is-pending { background: color-mix(in srgb, var(--a-warning) 16%, transparent); color: var(--a-warning); }
.eg-badge.is-open { background: color-mix(in srgb, var(--a-info) 14%, transparent); color: var(--a-info); }
.eg-table td { vertical-align: middle; }
.eg-row-title { font-weight: 700; color: var(--a-fg); text-decoration: none; }
.eg-row-title:hover { color: var(--a-accent); }
.eg-sub { display: block; font-size: 11.5px; color: var(--a-fg-3); margin-top: 2px; }
.eg-sub.is-bad { color: var(--a-danger); font-weight: 600; }
.eg-sub.is-warn { color: var(--a-warning); font-weight: 600; }
.eg-num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--a-fg-2); }
.eg-stage-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--a-fg); }
.eg-stage-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--eg-c); }
.eg-empty { text-align: center; padding: 32px 12px !important; color: var(--a-fg-3); }
.eg-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.eg-hero-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eg-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eg-ref { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--a-fg-3); }
.eg-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--a-fg-2); }
.eg-hero-meta a { color: var(--a-accent); text-decoration: none; font-weight: 600; }
.eg-hero-progress { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.eg-progress { flex: 1; height: 8px; border-radius: 999px; background: var(--a-bg-2); overflow: hidden; }
.eg-progress > span { display: block; height: 100%; background: var(--a-accent); border-radius: 999px; }
.eg-progress-n { font-size: 13px; font-weight: 700; color: var(--a-fg); font-variant-numeric: tabular-nums; }
.eg-stepper { display: flex; gap: 10px; overflow-x: auto; padding: 12px; background: var(--a-card); border: 1px solid var(--a-border); border-radius: 14px; }
.eg-phase { display: flex; flex-direction: column; gap: 8px; padding-inline-end: 10px; border-inline-end: 1px solid var(--a-border); flex: none; }
.eg-phase:last-child { border-inline-end: 0; }
.eg-phase-name { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--a-fg-3); }
.eg-phase-steps { display: flex; gap: 6px; }
.eg-step { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; text-align: center; }
.eg-step-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--a-border-2); background: var(--a-card); box-sizing: border-box; }
.eg-step-name { font-size: 11px; color: var(--a-fg-3); line-height: 1.3; }
.eg-step.is-done .eg-step-dot { background: var(--eg-c); border-color: var(--eg-c); }
.eg-step.is-current .eg-step-dot { border-color: var(--eg-c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--eg-c) 25%, transparent); }
.eg-step.is-current .eg-step-name { color: var(--a-fg); font-weight: 700; }
.eg-step.is-optional .eg-step-dot { border-style: dashed; }
.eg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.eg-main, .eg-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.eg-card { background: var(--a-card); border: 1px solid var(--a-border); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(var(--a-header-h, 64px) + 16px); }
.eg-current { border-top: 4px solid var(--eg-c); }
.eg-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.eg-card-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--a-fg); display: flex; align-items: center; gap: 8px; }
.eg-kicker { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--a-fg-3); }
.eg-sla { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; color: var(--a-fg-2); }
.eg-sla .is-bad { color: var(--a-danger); font-weight: 700; }
.eg-desc { margin: 0; font-size: 13px; color: var(--a-fg-2); line-height: 1.6; }
.eg-reqs { display: flex; flex-direction: column; gap: 6px; }
.eg-req { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-bg); }
.eg-req-icon { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--a-border-2); box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; }
.eg-req.is-met .eg-req-icon { background: var(--a-success); border-color: var(--a-success); }
.eg-req.is-met .eg-req-icon::after { content: '✓'; }
.eg-req.is-waived .eg-req-icon { background: var(--a-fg-3); border-color: var(--a-fg-3); }
.eg-req.is-waived .eg-req-icon::after { content: '–'; }
.eg-req-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eg-req-label { font-size: 13.5px; font-weight: 600; color: var(--a-fg); }
.eg-req.is-met .eg-req-label { color: var(--a-fg-2); }
.eg-req-how { font-size: 11.5px; color: var(--a-fg-3); }
.eg-req-act { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: flex-end; }
.eg-req-act form { display: inline; }
.eg-tag { font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--a-bg-2); color: var(--a-fg-2); }
.eg-tag.is-client { background: var(--a-accent-l); color: var(--a-accent); }
.eg-pop { position: relative; }
.eg-pop > summary { list-style: none; cursor: pointer; }
.eg-pop > summary::-webkit-details-marker { display: none; }
.eg-pop-form { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; width: 300px; padding: 12px; border: 1px solid var(--a-border-2); border-radius: 12px; background: var(--a-card); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); display: flex; flex-direction: column; gap: 8px; }
.eg-move { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--a-border); }
.eg-move-next { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eg-move-next .a-input { flex: 1; min-width: 200px; }
.eg-more > summary { cursor: pointer; font-size: 13px; color: var(--a-accent); font-weight: 600; }
.eg-more-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; align-items: flex-start; }
.eg-more-form .a-input, .eg-more-form .a-select { align-self: stretch; }
.eg-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eg-subcard { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-bg); align-items: flex-start; }
.eg-subcard .a-input, .eg-subcard .a-select { align-self: stretch; }
.eg-subcard.is-good { border-top: 3px solid var(--a-success); }
.eg-subcard.is-bad { border-top: 3px solid var(--a-danger); }
.eg-sub-title { font-size: 14px; font-weight: 700; margin: 0; color: var(--a-fg); }
.eg-state { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--a-bg-2); color: var(--a-fg); }
.eg-state.is-good { background: color-mix(in srgb, var(--a-success) 12%, transparent); color: var(--a-success); }
.eg-state.is-bad { background: color-mix(in srgb, var(--a-danger) 10%, transparent); color: var(--a-danger); }
.eg-state.is-warn { background: color-mix(in srgb, var(--a-warning) 12%, transparent); color: var(--a-warning); }
.eg-inline-forms { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.eg-toggle { border: 1px solid var(--a-border-2); background: var(--a-bg); color: var(--a-fg-2); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 12px; cursor: pointer; min-height: 28px; }
.eg-toggle.is-on { border-color: var(--a-success); color: var(--a-success); background: color-mix(in srgb, var(--a-success) 10%, transparent); font-weight: 700; }
.eg-upload, .eg-ask { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; padding-top: 12px; border-top: 1px solid var(--a-border); }
.eg-upload > .cat-switch, .eg-upload > .btn-a, .eg-ask > .btn-a { justify-self: start; }
.eg-span-2 { grid-column: span 2; }
.eg-qa { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-bg); }
.eg-qa.is-answered { border-inline-start: 3px solid var(--a-success); }
.eg-q, .eg-a { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--a-fg); }
.eg-a { padding: 8px 10px; border-radius: 8px; background: var(--a-bg-2); }
.eg-answer { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.eg-answer .a-input { align-self: stretch; }
.eg-note { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 8px; }
.eg-events { display: flex; flex-direction: column; }
.eg-event { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--a-border); }
.eg-event:last-child { border-bottom: 0; }
.eg-event-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--a-border-2); }
.eg-event.is-stage .eg-event-dot { background: var(--a-accent); }
.eg-event.is-decision .eg-event-dot { background: var(--a-success); }
.eg-event.is-approval .eg-event-dot { background: var(--a-warning); }
.eg-event.is-document .eg-event-dot, .eg-event.is-question .eg-event-dot { background: var(--a-info); }
.eg-event-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eg-event-text { font-size: 13px; color: var(--a-fg); line-height: 1.5; }
.eg-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--a-border); font-size: 13px; }
.eg-link-name { font-weight: 700; color: var(--a-fg); min-width: 110px; }
.eg-link > .a-select { flex: 1; min-width: 160px; }
.eg-link a { color: var(--a-accent); text-decoration: none; }
.eg-approval { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-bg); }
.eg-approval.is-pending { border-inline-start: 3px solid var(--a-warning); }
.eg-approval-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.eg-approval-note { margin: 0; font-size: 13px; color: var(--a-fg-2); line-height: 1.55; }
.eg-decide { display: flex; flex-wrap: wrap; gap: 6px; }
.eg-decide .a-input { flex: 1; min-width: 180px; }
.eg-approvals { display: flex; flex-direction: column; gap: 10px; }
.eg-danger { border-color: color-mix(in srgb, var(--a-danger) 35%, var(--a-border)); align-items: flex-start; }
.eg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.eg-side .eg-fields { grid-template-columns: 1fr; }
.eg-side .eg-span-2 { grid-column: auto; }
.eg-form { gap: 16px; }
.eg-form-actions { display: flex; gap: 8px; }
.eg-stage-edit { gap: 0; padding: 0; overflow: hidden; }
.eg-stage-edit.is-off { opacity: .7; }
.eg-stage-sum { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 18px; border-inline-start: 4px solid var(--eg-c); }
.eg-stage-sum::-webkit-details-marker { display: none; }
.eg-stage-sum .eg-sub { margin: 0; flex-basis: 100%; }
.eg-stage-name { font-weight: 700; color: var(--a-fg); }
.eg-stage-form { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--a-border); align-items: flex-start; }
.eg-stage-form > .eg-fields, .eg-stage-form > .a-table-wrap { align-self: stretch; }
.eg-switches { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.eg-req-table td { vertical-align: middle; }
.eg-req-table input[type="checkbox"] { accent-color: var(--a-accent); width: 16px; height: 16px; }
.eg-num-input { width: 84px; }
.eg-new-row td { background: var(--a-bg-2); }
.eg-stage-del { padding: 0 18px 16px; }
@media (max-width: 1280px) { .eg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .eg-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 960px) {
  .eg-layout, .eg-grid-2, .eg-fields, .eg-upload, .eg-ask, .eg-note { grid-template-columns: 1fr; }
  .eg-span-2 { grid-column: auto; } .eg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Drop 577: Notifications and SMS ─────────────────────────────────── */
.msg-page { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.msg-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--a-border); color: var(--a-fg-2); background: var(--a-bg-2); }
.msg-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--a-fg-3); }
.msg-state.is-on { color: var(--s-success-fg); background: var(--s-success-bg); border-color: var(--s-success-border); }
.msg-state.is-on::before { background: var(--a-success); }
.msg-state.is-warn { color: var(--s-warning-fg); background: var(--s-warning-bg); border-color: var(--s-warning-border); }
.msg-state.is-warn::before { background: var(--a-warning); }
.msg-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--a-border); }
.msg-tab { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--a-fg-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.msg-tab:hover { color: var(--a-fg); }
.msg-tab.is-on { color: var(--a-accent); border-bottom-color: var(--a-accent); }
.msg-card { background: var(--a-card); border: 1px solid var(--a-border); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(var(--a-header-h, 64px) + 16px); }
.msg-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.msg-h2 { font-size: 16px; font-weight: 700; margin: 4px 0 0; color: var(--a-fg); }
.msg-h3 { font-size: 15px; font-weight: 700; margin: 0; color: var(--a-fg); }
.msg-note { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--s-warning-bg); border: 1px solid var(--s-warning-border); color: var(--s-warning-fg); font-size: 14px; }
.msg-empty { color: var(--a-fg-3); margin: 0; padding: 8px 0; }
.msg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.msg-stack { display: flex; flex-direction: column; gap: 16px; }
.msg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.msg-span-2 { grid-column: 1 / -1; }
.msg-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.msg-actions > .btn-a:only-child { margin-inline-start: auto; }
.msg-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.msg-tile { background: var(--a-card); border: 1px solid var(--a-border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.msg-tile-n { font-size: 26px; font-weight: 800; color: var(--a-fg); font-variant-numeric: tabular-nums; }
.msg-tile-l { font-size: 13px; color: var(--a-fg-2); }
.msg-tile.is-bad .msg-tile-n { color: var(--a-danger); }
.msg-matrix th.msg-c, .msg-matrix td.msg-c, .msg-table .msg-c { text-align: center; width: 1%; white-space: nowrap; }
.msg-check { width: 18px; height: 18px; accent-color: var(--a-accent); cursor: pointer; }
.msg-na { color: var(--a-fg-3); }
.msg-ev, .msg-strong { display: block; font-weight: 600; color: var(--a-fg); }
.msg-sub { display: block; font-size: 12.5px; color: var(--a-fg-3); margin-top: 2px; }
.msg-sub.is-bad { color: var(--s-danger-fg); }
.msg-table tr.is-off td { opacity: .6; }
.msg-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.eg-days { white-space: nowrap; font-variant-numeric: tabular-nums; }
.msg-rowact { text-align: end; white-space: nowrap; }
.msg-inline { display: inline-block; margin-inline-start: 6px; }
.msg-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.msg-dot.is-ok { background: var(--a-success); }
.msg-dot.is-bad { background: var(--a-danger); }
.msg-master { font-weight: 700; }
.msg-phone { min-width: 150px; }
.msg-driver { border: 1px solid var(--a-border-2); border-radius: 12px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.msg-driver[hidden] { display: none; }
.msg-legend { font-weight: 700; padding: 0 6px; color: var(--a-fg); }
.msg-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.msg-danger { align-items: flex-start; }
.msg-tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.msg-chip { font: inherit; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--a-border-2); background: var(--a-bg-2); color: var(--a-fg-2); cursor: pointer; }
.msg-chip:hover, .msg-chip:focus-visible { border-color: var(--a-accent); color: var(--a-accent); }
.msg-bodies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.msg-count { display: block; font-size: 12px; color: var(--a-fg-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.msg-count.is-long { color: var(--s-warning-fg); font-weight: 600; }
.msg-body { max-width: 520px; }
.msg-text { display: block; color: var(--a-fg); margin: 2px 0; overflow-wrap: anywhere; }
.msg-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--a-bg-2); color: var(--a-fg-2); border: 1px solid var(--a-border); }
.msg-badge.is-sent { background: var(--s-success-bg); color: var(--s-success-fg); border-color: var(--s-success-border); }
.msg-badge.is-failed { background: var(--a-bg-2); color: var(--s-danger-fg); border-color: var(--a-danger); }
.msg-badge.is-queued, .msg-badge.is-sending { background: var(--s-warning-bg); color: var(--s-warning-fg); border-color: var(--s-warning-border); }
.msg-filters { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.msg-filters .a-field { min-width: 200px; flex: 1 1 200px; }
@media (max-width: 1100px) { .msg-grid, .msg-tpls { grid-template-columns: minmax(0, 1fr); } .msg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .msg-fields, .msg-bodies { grid-template-columns: minmax(0, 1fr); } }

/* ── Drop 579: receivables ───────────────────────────────────────────── */
.rcv-num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rcv-num.is-bad { color: var(--a-danger); }
.rcv-strong { font-weight: 700; color: var(--a-fg); }
.rcv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rcv-opening td { background: var(--a-bg-2); font-style: italic; }
.rcv-age { display: flex; flex-wrap: wrap; gap: 10px; }
.rcv-age-cell { flex: 1 1 150px; border: 1px solid var(--a-border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rcv-age-cell.is-bad { border-color: var(--a-danger); }
.rcv-age-l { font-size: 12.5px; color: var(--a-fg-3); }
.rcv-age-v { font-weight: 700; color: var(--a-fg); font-variant-numeric: tabular-nums; }
.rcv-boxes td { padding-block: 10px; }
.rcv-total td { border-top: 2px solid var(--a-border); font-weight: 700; }
@media print { .msg-tabs, .msg-filters, .rcv-actions, .an-item, .a-header, .a-sidebar { display: none !important; } .msg-card { border: none; padding: 0; } }

/* ── Drop 582: the module dashboard strip, under each module's hero ──── */
.mp { width: 100%; background: var(--a-card); border: 1px solid var(--a-border); border-radius: 16px; overflow: hidden; margin: 0 0 16px; }
.mp-sum { width: 100%; font: inherit; text-align: start; background: none; border: 0; cursor: pointer; color: var(--a-fg);
          display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; }
.mp-sum:hover { background: var(--a-bg-2); }
.mp-sum:focus-visible { outline: 2px solid var(--a-accent); outline-offset: -2px; }
.mp-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--a-fg-2); }
.mp-chip b { font-size: 16px; font-weight: 800; color: var(--a-fg); font-variant-numeric: tabular-nums; }
.mp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a-accent); flex: none; }
.mp-toggle { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--a-accent); display: inline-flex; align-items: center; gap: 6px; }
.mp-toggle svg { transition: transform .3s ease; }
.mp-toggle .mp-close { display: none; }
.mp[data-open] .mp-toggle .mp-close { display: inline; }
.mp[data-open] .mp-toggle .mp-open { display: none; }
.mp[data-open] .mp-toggle svg { transform: rotate(180deg); }
.mp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.22,.8,.28,1); }
.mp-body > .mp-grid { overflow: hidden; min-height: 0; align-content: start; }   /* drop 1012: the media picker's .mp-grid (min-height 220px) leaked in — the closed panel never closed and left an empty band */
.mp[data-open] .mp-body { grid-template-rows: 1fr; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 0 16px; }
.mp[data-open] .mp-grid { padding: 4px 16px 16px; border-top: 1px solid var(--a-border-2); }
.mp-box { border: 1px solid var(--a-border-2); border-radius: 12px; padding: 12px 14px; background: var(--a-bg-2);
          display: flex; flex-direction: column; gap: 2px; transition: transform .18s ease, border-color .18s ease; }
.mp-box:hover { transform: translateY(-2px); border-color: var(--a-accent); }
.mp-label { font-size: 12.5px; color: var(--a-fg-3); }
.mp-val { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--a-fg); font-variant-numeric: tabular-nums; }
/* drop 1012: the KPI meter had the same class as the media picker's toolbar (.mp-bar), which padded it into a thick empty pill */
.mp-meter { display: block; height: 6px; border-radius: 99px; background: var(--a-border); overflow: hidden; margin-top: 6px; }
.mp-meter i { display: block; height: 100%; width: var(--w, 0%); background: var(--a-accent); border-radius: 99px; transition: width .9s cubic-bezier(.22,.8,.28,1); }
@media (prefers-reduced-motion: reduce) { .mp-body, .mp-meter i, .mp-toggle svg, .mp-box { transition: none; } }

/* ── Drop 583: selecting rows, and the bar of actions ────────────────── */
.bulk-cell { width: 42px; text-align: center; }
.bulk-ck { width: 18px; height: 18px; accent-color: var(--a-accent); cursor: pointer; }
tr.bulk-on > td { background: var(--a-accent-l); }
.bulk-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: flex; justify-content: center;
            padding: 0 12px calc(16px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.bulk-bar > div { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--a-fg); color: var(--a-card);
                  border-radius: 999px; padding: 10px 16px; box-shadow: 0 12px 24px -8px rgba(16,24,40,.35);
                  transform: translateY(160%); transition: transform .35s cubic-bezier(.22,.8,.28,1); }
.bulk-bar.show > div { transform: none; }
.bulk-bar.over > div { background: var(--a-danger); }
.bulk-n { font-variant-numeric: tabular-nums; font-weight: 800; }
.bulk-btn { font: inherit; font-size: 13px; font-weight: 600; border-radius: 999px; border: 1px solid transparent; padding: 7px 13px;
            cursor: pointer; background: rgba(255,255,255,.16); color: inherit; transition: background .15s ease; }
.bulk-btn:hover { background: rgba(255,255,255,.3); }
.bulk-btn.bulk-primary { background: var(--a-accent); color: #fff; }
.bulk-btn.bulk-ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.bulk-acts { display: inline-flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .bulk-bar > div { transition: none; } }

/* ── Drop 584: the confirmation before a bulk action ─────────────────── */
.bulkc-lead { font-size: 15px; color: var(--a-fg); margin: 0; }
.bulkc-danger { border-color: var(--a-danger); }
.bulkc-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.bulk-btn.bulk-danger { background: var(--a-danger); color: #fff; }

/* ── Drop 589: partner registration — only what the site's own components do not already cover ── */
.pr-step { max-width: 860px; margin: 0 auto; }
.pr-note { background: var(--surface-2, #F5F6F8); border: 1px solid var(--border, #E1E5EA); border-radius: 12px; padding: 14px 16px; font-size: 0.9rem; }
.pr-errors { background: #FEF3F2; border: 1px solid #FDA29B; color: #B42318; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.pr-errors ul { margin: 6px 0 0; padding-inline-start: 20px; }
.pr-docs .field-group { margin-bottom: 10px; }
.pr-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.pr-types label { display: flex; align-items: flex-start; gap: 8px; font-size: 0.92rem; }

/* Drop 607: the new-user form shows only what the chosen first sign-in needs, the one-time
   password panel, and spacing for the invitation card's forms. */
.uf-onboard:has(#f-onboarding):not(:has(#f-onboarding option[value="manual"]:checked)) .uf-when-manual,
.uf-onboard:has(#f-onboarding):not(:has(#f-onboarding option[value="invite"]:checked)) .uf-when-invite,
.uf-onboard:has(#f-onboarding):not(:has(#f-onboarding option[value="generated"]:checked)) .uf-when-generated { display: none; }
.uf-once { margin-bottom: 1.25rem; border-inline-start: 3px solid var(--a-accent, #C98E1F); }
.uf-secret { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.uf-secret code { flex: 1 1 260px; padding: .7rem .9rem; border-radius: 8px; border: 1px solid var(--a-border, rgba(0,0,0,.12));
                  background: var(--a-bg, #F7F8FA); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
                  font-size: .95rem; letter-spacing: .04em; word-break: break-all; user-select: all; }
.uf-gap { margin-top: .9rem; }
.s-hint.is-warn { color: #a8741a; }
.a-card-header .sec-badge { margin-inline-start: auto; }

/* Drop 608: account delegation and notification settings. */
.acct-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.acct-form .a-field { margin: 0; flex: 1 1 200px; }
.acct-form .acct-grow { flex: 2 1 260px; }
.acct-deleg:has(#dl-mode option[value="handover"]:checked) .acct-when-period { display: none; }
.acct-divider { border-top: 1px solid var(--a-border); }
.acct-inline { display: inline; }
.acct-roles { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .35rem; }

/* Drop 609: AI screening — the score ring, dimension bars, lists and chips; the ranked candidates. */
.cv-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .cv-page { grid-template-columns: minmax(0, 1fr); } }
.cv-card { margin-top: 1.25rem; }
.cv-card .a-card-header { display: flex; align-items: center; gap: .75rem; }
.cv-run { margin-inline-start: auto; }
.cv-head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.1rem; }
.cv-ring { --cv-c: var(--a-accent, #C98E1F); flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
           background: conic-gradient(var(--cv-c) calc(var(--cv-score) * 1%), var(--a-bg-2, rgba(0,0,0,.06)) 0); }
.cv-ring span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--a-card, #fff); font-weight: 800; font-size: 1.25rem; color: var(--a-fg); }
.cv-ring.cv-rec-shortlist { --cv-c: #16a34a; } .cv-ring.cv-rec-reject { --cv-c: #dc2626; }
.cv-rec { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .6rem; border-radius: 100px; background: rgba(201,142,31,.14); color: #a8741a; }
.cv-rec.cv-rec-shortlist { background: rgba(22,163,74,.12); color: #16a34a; }
.cv-rec.cv-rec-reject { background: rgba(220,38,38,.10); color: #dc2626; }
.cv-summary { margin: .45rem 0 0; font-size: .86rem; line-height: 1.7; color: var(--a-fg); }
.cv-dims { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.cv-dim { display: grid; grid-template-columns: 120px minmax(0, 1fr) 34px; gap: .6rem; align-items: center; font-size: .78rem; color: var(--a-fg-3); }
.cv-dim b { color: var(--a-fg); text-align: end; }
.cv-bar { height: 7px; border-radius: 100px; background: var(--a-bg-2, rgba(0,0,0,.06)); overflow: hidden; }
.cv-bar i { display: block; height: 100%; border-radius: inherit; background: var(--a-accent, #C98E1F); }
.cv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cv-card h4 { margin: .9rem 0 .4rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--a-fg-3); }
.cv-list { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .3rem; font-size: .84rem; line-height: 1.6; color: var(--a-fg); }
.cv-list.is-good li::marker { color: #16a34a; } .cv-list.is-gap li::marker { color: #a8741a; } .cv-list.is-flag li::marker { color: #dc2626; }
.cv-flag-h { color: #dc2626 !important; }
.cv-profile { display: grid; gap: .5rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--a-border); font-size: .82rem; }
.cv-profile > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: .6rem; }
.cv-profile > div > span:first-child { color: var(--a-fg-3); }
.cv-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.cv-chips i { font-style: normal; font-size: .72rem; padding: .12rem .5rem; border-radius: 100px; border: 1px solid var(--a-border); }
.cv-other { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cv-other h4 { margin: 0; flex-basis: 100%; }
.cv-other a { font-size: .8rem; padding: .25rem .65rem; border-radius: 8px; border: 1px solid var(--a-border); text-decoration: none; color: var(--a-fg); }
.cv-foot { margin-top: 1rem; }
.cv-score { display: inline-grid; place-items: center; min-width: 2.1rem; height: 1.6rem; padding: 0 .4rem; border-radius: 8px; font-weight: 800; font-size: .8rem;
            background: rgba(201,142,31,.14); color: #a8741a; }
.cv-score.cv-rec-shortlist { background: rgba(22,163,74,.12); color: #16a34a; }
.cv-score.cv-rec-reject { background: rgba(220,38,38,.10); color: #dc2626; }
.cv-cell-sum { max-width: 460px; font-size: .8rem; line-height: 1.55; }
.cv-empty { text-align: center; padding: 2.5rem; }

/* Drop 610: cron run output — the whole message, wrapped, never clipped inside a fixed-height box. */
.cron-out-cell { min-width: 340px; }
.cron-out { background: var(--a-bg); border: 1px solid var(--a-border); border-radius: var(--radius, 8px); padding: .6rem .8rem;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; line-height: 1.6; color: var(--a-fg-2);
            white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.cron-out.is-err { color: var(--a-danger, #dc2626); }
.cron-more > summary { list-style: none; cursor: pointer; }
.cron-more > summary::-webkit-details-marker { display: none; }
.cron-more[open] > summary { display: none; }
.cron-more-hint { font-family: inherit; font-weight: 700; color: var(--a-accent, #C98E1F); white-space: nowrap; }

/* Drop 612: interviews — the rounds on an application, scorecards, star ratings. */
.iv-card { margin-top: 1.25rem; }
.iv-card .a-card-header, .iv-card + .a-card .a-card-header { display: flex; align-items: center; gap: .75rem; }
.iv-right { margin-inline-start: auto; }
.iv-rounds { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.iv-round-link { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .7rem .85rem;
                 border: 1px solid var(--a-border); border-radius: 10px; text-decoration: none; color: var(--a-fg); }
.iv-round-link:hover { border-color: var(--a-accent, #C98E1F); }
.iv-round.is-cancelled .iv-round-link { opacity: .6; }
.iv-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--a-bg-2, rgba(0,0,0,.05)); }
.iv-main { display: grid; gap: .1rem; min-width: 0; }
.iv-tags { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.iv-new, .iv-outcome details { margin-top: .75rem; }
.iv-new > summary, .iv-outcome summary { list-style: none; cursor: pointer; display: inline-flex; }
.iv-new > summary::-webkit-details-marker, .iv-outcome summary::-webkit-details-marker { display: none; }
.iv-outcome { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-start; border-top: 1px solid var(--a-border); margin-top: 1rem; padding-top: .5rem; }
.iv-outcome details { flex: 1 1 280px; }
.iv-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.iv-people { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: .35rem; }
.iv-note { margin: .4rem 0 .6rem; padding: .6rem .8rem; border-radius: 8px; background: rgba(201,142,31,.1); font-size: .84rem; }
.iv-tally { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.iv-t { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 100px; background: var(--a-bg-2, rgba(0,0,0,.05)); }
.iv-t.is-strong_yes, .iv-t.is-yes { background: rgba(22,163,74,.12); color: #16a34a; }
.iv-t.is-no, .iv-t.is-strong_no { background: rgba(220,38,38,.10); color: #dc2626; }
.iv-sc { padding: .85rem 0; border-top: 1px solid var(--a-border); }
.iv-sc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.iv-sc-t { margin: .35rem 0 0; font-size: .84rem; line-height: 1.6; }
.iv-rate { display: grid; gap: .45rem; }
.iv-rate-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; font-size: .84rem; }
.iv-stars { display: inline-flex; gap: .25rem; }
.iv-stars input { position: absolute; opacity: 0; pointer-events: none; }
.iv-stars i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--a-border); cursor: pointer; font-weight: 700; font-size: .8rem; }
.iv-stars input:checked + i { background: var(--a-accent, #C98E1F); border-color: var(--a-accent, #C98E1F); color: #fff; }
.iv-stars input:focus-visible + i { outline: 2px solid var(--a-accent, #C98E1F); outline-offset: 2px; }
form:not(:has(.iv-decision option[value="reject"]:checked)) .iv-when-reject { display: none; }

/* Drop 614: escalations — severity chips, KPI tiles, tabs, filters, targets, comments, dashboard bars. */
.esc-sev { display: inline-block; font-size: .7rem; font-weight: 800; padding: .15rem .5rem; border-radius: 6px; letter-spacing: .02em; background: var(--a-bg-2, rgba(0,0,0,.06)); }
.esc-sev.is-p1 { background: #dc2626; color: #fff; } .esc-sev.is-p2 { background: rgba(234,88,12,.15); color: #c2410c; }
.esc-sev.is-p3 { background: rgba(201,142,31,.16); color: #a8741a; } .esc-sev.is-p4 { background: rgba(100,116,139,.14); color: #475569; }
.esc-right { margin-inline-start: auto; }
.esc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.esc-kpi { display: grid; gap: .2rem; padding: .85rem 1rem; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-card, #fff); text-decoration: none; color: var(--a-fg); }
.esc-kpi span { font-size: .72rem; color: var(--a-fg-3); } .esc-kpi b { font-size: 1.45rem; font-weight: 800; } .esc-kpi small { font-size: .7rem; color: var(--a-fg-3); }
.esc-kpi.is-p1 b, .esc-kpi.is-bad b { color: #dc2626; }
.esc-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .75rem; }
.esc-tabs a { padding: .35rem .75rem; border-radius: 100px; border: 1px solid var(--a-border); font-size: .8rem; text-decoration: none; color: var(--a-fg); }
.esc-tabs a.is-on { background: var(--a-accent, #C98E1F); border-color: var(--a-accent, #C98E1F); color: #fff; }
.esc-tabs a b { margin-inline-start: .25rem; }
.esc-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.esc-filter .a-input { flex: 2 1 260px; } .esc-filter .a-select { flex: 1 1 160px; width: auto; }
.esc-raise > summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
.esc-raise > summary::-webkit-details-marker { display: none; }
.esc-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.esc-raise-form:not(:has(#f-subject option[value="account"]:checked)) .esc-pick-account,
.esc-raise-form:not(:has(#f-subject option[value="invoice"]:checked)) .esc-pick-invoice,
.esc-raise-form:not(:has(#f-subject option[value="contract"]:checked)) .esc-pick-contract,
.esc-raise-form:not(:has(#f-subject option[value="contact"]:checked)) .esc-pick-contact { display: none; }
.esc-row-breach td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.esc-subj { font-weight: 600; } .esc-hot { color: #dc2626; }
.esc-empty { padding: 2rem; text-align: center; }
.esc-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .esc-case { grid-template-columns: minmax(0, 1fr); } }
.esc-case .a-card-header { display: flex; align-items: center; gap: .75rem; }
.esc-targets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.esc-target { display: grid; gap: .15rem; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--a-border); }
.esc-target span { font-size: .7rem; color: var(--a-fg-3); } .esc-target b { font-size: .95rem; } .esc-target small { font-size: .7rem; color: var(--a-fg-3); }
.esc-target.is-bad { border-color: rgba(220,38,38,.5); background: rgba(220,38,38,.05); } .esc-target.is-bad b { color: #dc2626; }
.esc-target.is-ok { border-color: rgba(22,163,74,.4); } .esc-target.is-ok b { color: #16a34a; }
.esc-why { margin: .8rem 0 0; font-size: .86rem; }
.esc-actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--a-border); }
.esc-actions details > summary, .esc-case details > summary { list-style: none; cursor: pointer; display: inline-flex; }
.esc-actions details > summary::-webkit-details-marker, .esc-case details > summary::-webkit-details-marker { display: none; }
.esc-closure { margin-top: .8rem; }
.esc-cm { padding: .7rem 0; border-bottom: 1px solid var(--a-border); }
.esc-cm.is-client { border-inline-start: 3px solid var(--a-accent, #C98E1F); padding-inline-start: .7rem; }
.esc-cm-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .82rem; }
.esc-cm-body { margin-top: .35rem; font-size: .86rem; line-height: 1.65; }
.esc-file { display: inline-block; margin-top: .4rem; font-size: .8rem; padding: .25rem .6rem; border: 1px solid var(--a-border); border-radius: 8px; text-decoration: none; color: var(--a-fg); }
.esc-cm-foot { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.esc-cm-foot .a-input { flex: 1 1 220px; width: auto; }
.esc-close { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; margin: .5rem 0; }
.esc-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1rem; }
.esc-bars { display: grid; gap: .45rem; }
.esc-bar { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 36px; gap: .6rem; align-items: center; font-size: .8rem; }
.esc-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esc-bar i { height: 8px; border-radius: 100px; background: var(--a-bg-2, rgba(0,0,0,.06)); overflow: hidden; }
.esc-bar b { display: block; height: 100%; background: var(--a-accent, #C98E1F); border-radius: inherit; }
.esc-bar em { font-style: normal; font-weight: 700; text-align: end; }
.esc-weeks { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.esc-weeks > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.esc-weeks i { width: 100%; background: var(--a-accent, #C98E1F); border-radius: 4px 4px 0 0; }
.esc-weeks span { font-size: .6rem; color: var(--a-fg-3); }
.rf-compact .rf { gap: .25rem; } .rf-compact .a-select, .rf-compact .a-input { font-size: .72rem; }

/* Drop 615: tasks and milestones — the link to their schedule, lateness, the partner's name. */
.pt-open { display: inline-block; margin-top: .35rem; font-size: .7rem; font-weight: 600; color: var(--a-accent, #C98E1F); text-decoration: none; }
.pt-late { color: #B42318; font-weight: 700; }
.pt-partner { color: #6941C6; font-weight: 600; }
.ms-schedule { font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; border: 1px solid var(--a-border); text-decoration: none; color: var(--a-fg-2, var(--a-fg)); white-space: nowrap; }
.ms-schedule:hover { border-color: var(--a-accent, #C98E1F); color: var(--a-accent, #C98E1F); }
.pt-settings { list-style: none; cursor: pointer; } .pt-settings::-webkit-details-marker { display: none; }

/* Drop 616: plan import — one card per sheet column, the preview's rows by type. */
.imp-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.imp-col { display: grid; gap: .3rem; padding: .6rem; border: 1px solid var(--a-border); border-radius: 10px; }
.imp-h { font-weight: 700; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1em; }
.imp-table tr.imp-phase td { background: rgba(201,142,31,.07); font-weight: 700; }
.imp-table tr.imp-milestone td { background: rgba(105,65,198,.05); font-weight: 600; }
.imp-table tr.imp-skip td { opacity: .55; }
.uf-work { margin-bottom: .45rem; } .uf-work > summary { cursor: pointer; } .uf-work ul { margin: .35rem 0 .2rem; padding-inline-start: 1.1rem; font-size: .82rem; line-height: 1.8; }

/* Drop 617: My work — one row per item, whatever module it comes from. */
.mw-list { padding: 0; }
.mw-row { display: flex; gap: .8rem; align-items: center; padding: .65rem 1.1rem; border-top: 1px solid var(--a-border-2, var(--a-border)); }
.mw-row:first-child { border-top: 0; }
.mw-main { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.mw-main a, .mw-row > span > a { font-weight: 600; color: var(--a-fg); text-decoration: none; }
.mw-side { display: grid; justify-items: end; gap: .1rem; font-size: .76rem; white-space: nowrap; }
.mw-row > span:first-child:not(.esc-sev) { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.pi-pending { border-color: rgba(201,142,31,.5); } .pi-req { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,360px); gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--a-border); } .pi-req:first-child { border-top: 0; } @media (max-width: 900px) { .pi-req { grid-template-columns: minmax(0,1fr); } }

/* Drop 618: access reviews and sessions. */
.uf-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; }
.ar-bar { height: 6px; border-radius: 100px; background: var(--a-bg-2, rgba(0,0,0,.06)); overflow: hidden; min-width: 90px; }
.ar-bar i { display: block; height: 100%; background: var(--a-accent, #C98E1F); }
.ar-bar-lg { height: 8px; }
.ar-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: .9rem; }
.ar-item.is-done { opacity: .82; }
.ar-head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; margin-bottom: .35rem; }
.ar-flags { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.ar-decided { margin-top: .6rem; }
.ar-form { display: grid; gap: .55rem; margin-top: .7rem; }
.ar-choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.ar-choice { position: relative; }
.ar-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ar-choice span { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--a-border); border-radius: 100px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.ar-choice input:checked + span { background: var(--a-accent, #C98E1F); border-color: var(--a-accent, #C98E1F); color: #fff; }
.ar-choice.is-danger input:checked + span { background: #dc2626; border-color: #dc2626; }
.ar-choice input:focus-visible + span { outline: 2px solid var(--a-accent, #C98E1F); outline-offset: 2px; }
.ar-form:not(:has(input[value="change"]:checked)) .ar-if-change,
.ar-form:not(:has(input[value="remove"]:checked)) .ar-if-remove { display: none; }
.ar-link { cursor: pointer; }
form:has(#ar-s) .ar-dept { display: none; }
form:has(#ar-s option[value="department"]:checked) .ar-dept { display: grid; }
.ar-decided { font-size: .84rem; } .ar-item { scroll-margin-top: calc(var(--an-h, 60px) + 50px); }

/* Drop 619: Security Center — score ring, areas, one row per control. */
.sp-top { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 1rem; }
@media (max-width: 900px) { .sp-top { grid-template-columns: minmax(0, 1fr); } }
.sp-score .a-card-body { display: grid; justify-items: center; gap: .7rem; text-align: center; }
.sp-ring { --c: #16a34a; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--a-card, #fff) 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--a-bg-2, rgba(0,0,0,.08)) 0); }
.sp-score.is-mid .sp-ring { --c: #d97706; } .sp-score.is-bad .sp-ring { --c: #dc2626; }
.sp-ring b { font-size: 2.4rem; font-weight: 800; line-height: 1; } .sp-ring span { font-size: .8rem; color: var(--a-fg-3); }
.sp-counts { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.sp-hist { height: 140px; } .sp-hist i { background: var(--a-accent, #C98E1F); }
.sp-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 1rem; }
@media (max-width: 700px) { .sp-areas { grid-template-columns: minmax(0, 1fr); } }
.sp-list { padding: 0; }
.sp-row { display: flex; gap: .7rem; align-items: center; padding: .65rem 1.1rem; border-top: 1px solid var(--a-border-2, var(--a-border)); }
.sp-row:first-child { border-top: 0; }
.sp-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--a-fg-3); }
.sp-row.is-pass .sp-dot { background: #16a34a; } .sp-row.is-warn .sp-dot { background: #d97706; } .sp-row.is-fail .sp-dot { background: #dc2626; }
.sp-main { flex: 1; min-width: 0; display: grid; gap: .15rem; font-size: .84rem; }
.sp-main .u-meta { overflow-wrap: anywhere; }
.sp-side { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; text-align: end; }

/* Drop 622: the dashboard — hero, KPI tiles with sparklines, process flows, revenue chart, timeline, lists. */
.cc-hero { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; margin: 0 0 1.25rem;
  padding: 1.4rem 1.6rem; border-radius: 16px; border: 1px solid var(--a-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--a-accent, #C98E1F) 14%, var(--a-card, #fff)) 0%, var(--a-card, #fff) 60%); }
.cc-date { margin: 0 0 .2rem; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--a-fg-3); }
.cc-title { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.cc-sub { margin: .3rem 0 0; font-size: .88rem; color: var(--a-fg-2, var(--a-fg-3)); }
.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cc-sec { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .7rem .25rem .3rem; border-radius: 100px; border: 1px solid var(--a-border);
  text-decoration: none; color: var(--a-fg); font-size: .8rem; font-weight: 600; background: var(--a-card, #fff); }
.cc-sec-ring { --c: #16a34a; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--a-card, #fff) 72%, transparent 73% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--a-bg-2, rgba(0,0,0,.08)) 0); }
.cc-sec-ring b { font-size: .72rem; } .cc-sec.is-mid .cc-sec-ring { --c: #d97706; } .cc-sec.is-bad .cc-sec-ring { --c: #dc2626; }
.kp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.25rem; }
@media (max-width: 1200px) { .kp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kp-grid { grid-template-columns: minmax(0, 1fr); } }
.kp { position: relative; display: grid; gap: .3rem; padding: 1rem 1.1rem .9rem; border-radius: 14px; border: 1px solid var(--a-border); background: var(--a-card, #fff);
  text-decoration: none; color: var(--a-fg); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; min-height: 128px; }
.kp:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,23,42,.08); border-color: color-mix(in srgb, var(--a-accent, #C98E1F) 45%, var(--a-border)); }
.kp.is-alert { border-color: rgba(220,38,38,.45); } .kp.is-alert::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: #dc2626; }
.kp-l { font-size: .74rem; font-weight: 600; color: var(--a-fg-3); }
.kp-v { font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; } .kp-v small { font-size: .74rem; font-weight: 600; color: var(--a-fg-3); }
.kp-d { font-size: .74rem; color: var(--a-fg-3); } .kp-d.is-up { color: #15803d; } .kp-d.is-down { color: #b91c1c; }
.kp-spark { width: 100%; height: 30px; margin-top: auto; } .kp-line { fill: none; stroke: var(--a-accent, #C98E1F); stroke-width: 2; vector-effect: non-scaling-stroke; }
.kp-area { fill: color-mix(in srgb, var(--a-accent, #C98E1F) 14%, transparent); }
.kp-spark.is-blue .kp-line { stroke: #2563eb; } .kp-spark.is-blue .kp-area { fill: rgba(37,99,235,.12); }
.kp-spark.is-green .kp-line { stroke: #16a34a; } .kp-spark.is-green .kp-area { fill: rgba(22,163,74,.12); }
.kp-bar { display: block; height: 6px; border-radius: 100px; background: var(--a-bg-2, rgba(0,0,0,.07)); overflow: hidden; margin-top: .2rem; }
.kp-bar i { display: block; height: 100%; border-radius: inherit; background: #dc2626; } .kp-bar.is-good i, .cc-list .kp-bar i { background: var(--a-accent, #C98E1F); }
.cc-flows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 1100px) { .cc-flows { grid-template-columns: minmax(0, 1fr); } }
.fc { width: 100%; height: auto; display: block; font-family: inherit; }
.fc-node rect { fill: color-mix(in srgb, var(--a-accent, #C98E1F) 10%, var(--a-card, #fff)); stroke: color-mix(in srgb, var(--a-accent, #C98E1F) 55%, transparent); stroke-width: 1.5; }
.fc-node.is-good rect { fill: rgba(22,163,74,.1); stroke: rgba(22,163,74,.55); } .fc-node.is-bad rect { fill: rgba(220,38,38,.08); stroke: rgba(220,38,38,.5); }
.fc-node.is-muted rect { fill: var(--a-bg-2, rgba(0,0,0,.04)); stroke: var(--a-border); }
.fc-val { font-size: 20px; font-weight: 800; text-anchor: middle; fill: var(--a-fg); } .fc-val.is-sm { font-size: 16px; }
.fc-lab { font-size: 12px; font-weight: 600; text-anchor: middle; fill: var(--a-fg-3); }
.fc-edge { stroke: var(--a-fg-3); stroke-width: 1.6; fill: none; } .fc-edge.is-dash { stroke-dasharray: 5 4; }
.fc-arrowhead { fill: var(--a-fg-3); } .fc-pct { font-size: 12px; font-weight: 700; text-anchor: middle; fill: var(--a-accent, #C98E1F); }
.cc-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .8rem; font-size: .8rem; color: var(--a-fg-3); } .cc-facts b { color: var(--a-fg); font-size: .95rem; }
.cc-facts .is-bad b { color: #dc2626; }
.cc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.cc-span-4 { grid-column: span 4; } .cc-span-6 { grid-column: span 6; } .cc-span-8 { grid-column: span 8; }
@media (max-width: 1100px) { .cc-span-4, .cc-span-6, .cc-span-8 { grid-column: span 12; } }
.cc-row-1 { margin-bottom: 1.25rem; }
.cc-legend { margin-inline-start: auto; display: inline-flex; gap: .4rem; align-items: center; font-size: .74rem; color: var(--a-fg-3); }
.cc-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-inline-start: .5rem; }
.cc-legend .is-bar { background: var(--a-accent, #C98E1F); } .cc-legend .is-line { height: 2px; background: #2563eb; }
.rv { width: 100%; height: auto; display: block; } .rv-gl { stroke: var(--a-border); stroke-width: 1; } .rv-ax { font-size: 11px; fill: var(--a-fg-3); }
.rv-bar { fill: var(--a-accent, #C98E1F); opacity: .85; } .rv-bar:hover { opacity: 1; } .rv-line { fill: none; stroke: #2563eb; stroke-width: 2; } .rv-dot { fill: #2563eb; }
.cc-tl, .cc-list { padding: .3rem 0; }
.cc-tl-row, .cc-li { display: flex; align-items: center; gap: .7rem; padding: .6rem 1.1rem; text-decoration: none; color: var(--a-fg); border-top: 1px solid var(--a-border-2, var(--a-border)); }
.cc-tl-row:first-child, .cc-li:first-child { border-top: 0; }
a.cc-tl-row:hover, a.cc-li:hover { background: var(--a-bg-2, rgba(0,0,0,.03)); }
.cc-tl-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: .9rem;
  background: color-mix(in srgb, var(--a-accent, #C98E1F) 14%, transparent); color: var(--a-accent, #C98E1F); }
.cc-tl-ico.is-invoice { background: rgba(37,99,235,.12); color: #2563eb; } .cc-tl-ico.is-interview { background: rgba(105,65,198,.12); color: #6941c6; }
.cc-tl-ico.is-meeting { background: rgba(22,163,74,.12); color: #15803d; } .cc-tl-ico.is-contract { background: rgba(220,38,38,.1); color: #b91c1c; }
.cc-tl-main, .cc-li-main { flex: 1; min-width: 0; display: grid; gap: .1rem; font-size: .84rem; }
.cc-tl-main b, .cc-li-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cc-tl-when { font-size: .74rem; font-weight: 600; color: var(--a-fg-3); white-space: nowrap; } .cc-tl-row.is-late .cc-tl-when { color: #dc2626; }
.cc-pill { font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 100px; white-space: nowrap; background: var(--a-bg-2, rgba(0,0,0,.06)); color: var(--a-fg-3); }
.cc-pill.is-bad { background: rgba(220,38,38,.12); color: #b91c1c; } .cc-pill.is-warn { background: rgba(217,119,6,.14); color: #b45309; }
.cc-av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem;
  background: color-mix(in srgb, var(--a-accent, #C98E1F) 18%, transparent); color: var(--a-accent, #C98E1F); }
.cc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--a-accent, #C98E1F); } .cc-dot.is-warn { background: #d97706; } .cc-dot.is-bad { background: #dc2626; }
.cc-when { white-space: nowrap; }
.cc-stack { display: flex; height: 12px; border-radius: 100px; overflow: hidden; background: var(--a-bg-2, rgba(0,0,0,.06)); }
.cc-stack i.is-good { background: #16a34a; } .cc-stack i.is-warn { background: #d97706; } .cc-stack i.is-bad { background: #dc2626; }
/* Drop 622: process flows as a grid — nodes, connectors with the share that moved on, a branch below. */
.fx { display: grid; align-items: center; row-gap: 0; overflow-x: auto; padding: .2rem 0 .4rem; }
.fx-node { display: grid; justify-items: center; gap: .15rem; padding: .7rem .4rem; border-radius: 12px; text-align: center; min-width: 0;
  background: color-mix(in srgb, var(--a-accent, #C98E1F) 10%, var(--a-card, #fff)); border: 1.5px solid color-mix(in srgb, var(--a-accent, #C98E1F) 55%, transparent); }
.fx-node b { font-size: 1.35rem; font-weight: 800; line-height: 1.1; color: var(--a-fg); }
.fx-node span { font-size: .72rem; font-weight: 600; color: var(--a-fg-3); line-height: 1.3; overflow-wrap: anywhere; }
.fx-node.is-good { background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.55); } .fx-node.is-bad { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.5); }
.fx-node.is-muted { background: var(--a-bg-2, rgba(0,0,0,.04)); border-color: var(--a-border); }
.fx-node.is-sm { padding: .5rem .4rem; margin-inline: 8%; } .fx-node.is-sm b { font-size: 1.1rem; }
.fx-conn { display: grid; justify-items: center; gap: .1rem; }
.fx-conn em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--a-accent, #C98E1F); min-height: 1em; } .cdb .fx-conn em { color: var(--accent-text, var(--a-accent, #C98E1F)); }
.fx-conn i { position: relative; display: block; width: 100%; height: 2px; background: var(--a-fg-3); }
.fx-conn i::after { content: ""; position: absolute; inset-inline-end: -1px; top: -4px; border: 5px solid transparent; border-inline-start: 7px solid var(--a-fg-3); border-inline-end: 0; }
.fx-down { justify-self: center; width: 0; height: 26px; border-inline-start: 2px dashed var(--a-fg-3); position: relative; }
.fx-down::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: -6px; border: 5px solid transparent; border-top: 7px solid var(--a-fg-3); border-bottom: 0; }
.aat-list { grid-template-columns: minmax(0, 1fr); }   /* drop 622: a long detail line pushed the page sideways on a phone */
.aat-detail { display: block; }

/* Drop 623: plan import — the sample downloads. */
.imp-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; margin-top: .8rem; }
.imp-dl-item { display: grid; gap: .1rem; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--a-border); text-decoration: none; color: var(--a-fg);
  background: var(--a-card, #fff); transition: border-color .15s ease, transform .15s ease; position: relative; }
.imp-dl-item:hover { border-color: var(--a-accent, #C98E1F); transform: translateY(-1px); }
.imp-dl-item b { font-size: .95rem; } .imp-dl-item span { font-size: .8rem; color: var(--a-fg-3); }
.imp-dl-item i { position: absolute; top: .75rem; inset-inline-end: .9rem; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--a-accent, #C98E1F); }
.imp-cols-toggle { cursor: pointer; }

/* Drop 624: SMS messages grouped by subject, a jump list, and the reminder timing card. */
.msg-jump { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1rem; }
.msg-jump a { padding: .35rem .75rem; border-radius: 100px; border: 1px solid var(--a-border); font-size: .78rem; text-decoration: none; color: var(--a-fg); background: var(--a-card, #fff); }
.msg-jump a:hover { border-color: var(--a-accent, #C98E1F); }
.msg-jump b { margin-inline-start: .3rem; color: var(--a-accent, #C98E1F); }
.msg-cat { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--a-fg-3); margin: 18px 0 10px; scroll-margin-top: calc(var(--an-h, 60px) + 50px); }
.msg-remind { margin-bottom: 1rem; }

/* Drop 625: partner verification — risk, signals, the checklist, settings. */
.kyb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.kyb-risk { display: grid; justify-items: center; padding: .5rem 1rem; border-radius: 12px; border: 1.5px solid var(--a-border); min-width: 110px; }
.kyb-risk span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--a-fg-3); }
.kyb-risk b { font-size: 1.15rem; } .kyb-risk small { font-size: .7rem; color: var(--a-fg-3); }
.kyb-risk.is-low { border-color: rgba(22,163,74,.5); background: rgba(22,163,74,.08); } .kyb-risk.is-medium { border-color: rgba(217,119,6,.5); background: rgba(217,119,6,.08); }
.kyb-risk.is-high { border-color: rgba(220,38,38,.5); background: rgba(220,38,38,.08); }
.kyb-risk-chip { font-size: .72rem; font-weight: 700; padding: .12rem .55rem; border-radius: 100px; }
.kyb-risk-chip.is-low { background: rgba(22,163,74,.12); color: #15803d; } .kyb-risk-chip.is-medium { background: rgba(217,119,6,.14); color: #b45309; } .kyb-risk-chip.is-high { background: rgba(220,38,38,.12); color: #b91c1c; }
.kyb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: .5rem; }
@media (max-width: 1100px) { .kyb-grid { grid-template-columns: minmax(0, 1fr); } }
.kyb-signals, .kyb-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.kyb-signals li { display: flex; gap: .55rem; align-items: baseline; font-size: .84rem; }
.kyb-signals li small { margin-inline-start: auto; font-weight: 700; color: #b91c1c; }
.kyb-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--a-fg-3); transform: translateY(1px); }
.kyb-signals .is-on .kyb-dot { background: #16a34a; } .kyb-signals .is-warn .kyb-dot { background: #d97706; } .kyb-signals .is-off .kyb-dot { background: #dc2626; }
.kyb-links { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } .kyb-links a { font-size: .82rem; }
.kyb-checks { display: grid; gap: .4rem; }
.kyb-check { border: 1px solid var(--a-border); border-radius: 10px; background: var(--a-card, #fff); }
.kyb-check > summary { display: flex; gap: .6rem; align-items: center; padding: .6rem .8rem; cursor: pointer; list-style: none; }
.kyb-check > summary::-webkit-details-marker { display: none; }
.kyb-check-t { flex: 1; min-width: 0; display: grid; gap: .1rem; font-size: .84rem; } .kyb-check-t small { color: var(--a-fg-3); overflow-wrap: anywhere; }
.kyb-applies { font-size: .7rem; color: var(--a-fg-3); white-space: nowrap; }
.kyb-check-form, .kyb-check .kyb-form { padding: 0 .8rem .8rem; display: grid; gap: .5rem; }
.kyb-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .kyb-row > * { flex: 1 1 180px; } .kyb-row > button { flex: 0 0 auto; }
.kyb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; }
@media (max-width: 800px) { .kyb-form { grid-template-columns: minmax(0, 1fr); } }
.kyb-pct { max-width: 90px; }
tr.is-muted td { opacity: .55; }
/* Drop 625: public registration — owners rows and inline checkboxes. */
.pr-owner { padding: 10px 12px; border: 1px solid var(--border, rgba(0,0,0,.1)); border-radius: 12px; margin-bottom: 10px; align-items: end; }
.pr-inline { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; }
#pr-add-owner { margin: 2px 0 14px; }

/* Drop 626: SMS suite — test buttons on templates, the send page, the per-day bars. */
.msg-test { display: inline-flex; gap: .3rem; margin-inline-start: auto; }
.sms-days { height: 140px; } .sms-days i { background: var(--a-accent, #C98E1F); }
.msg-jump a[aria-current="page"] { border-color: var(--a-accent, #C98E1F); color: var(--a-accent, #C98E1F); font-weight: 700; }

/* Drop 627: a media field — thumbnail, path, choose, remove — in the page builder and page form. */
.pb-media { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pb-media .a-input { flex: 1 1 220px; min-width: 0; }
.pb-media-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--a-border); background: var(--a-bg-2); flex: none; }
.pb-media-thumb.is-icon { width: 48px; height: 48px; object-fit: contain; padding: 4px; }
.pb-media.is-empty .pb-media-clear { display: none; }
.pb-insert-row { display: flex; gap: .5rem; justify-content: space-between; margin: -.4rem 0 .5rem; }
.pb-card-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-inline-end: .5rem; border: 1px solid var(--a-border); }

/* Drop 628: proposals — phase cards in the editor, totals, the decision banner, versions. */
.prp-phases { display: grid; gap: .8rem; margin-bottom: .8rem; }
.prp-phase { border: 1px solid var(--a-border); border-radius: 12px; padding: .8rem 1rem; background: var(--a-card, #fff); }
.prp-phase-head { display: flex; gap: .6rem; align-items: center; margin-bottom: .6rem; } .prp-phase-head .a-input { flex: 1; font-weight: 600; }
.prp-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--a-accent, #C98E1F) 16%, transparent); color: var(--a-accent, #C98E1F); }
.prp-totals { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: flex-end; padding: .8rem 0; font-size: .9rem; color: var(--a-fg-3); } .prp-totals b { color: var(--a-fg); font-size: 1.05rem; }
.prp-decision { display: grid; gap: .25rem; border-inline-start: 4px solid var(--a-border); } .prp-decision.is-on { border-inline-start-color: #16a34a; } .prp-decision.is-off { border-inline-start-color: #dc2626; }
.prp-versions { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; } .prp-versions a { text-decoration: none; }
.prp-text { white-space: normal; line-height: 1.7; font-size: .9rem; }
/* Drop 628: proposals in the client portal. */
.prp-client-phases { display: grid; gap: 12px; }
.prp-client-phase { border: 1px solid var(--border, rgba(0,0,0,.1)); border-radius: 12px; padding: 12px 14px; }
.prp-client-phase p { margin: 6px 0 0; line-height: 1.6; }
.prp-client-phase-top { display: flex; gap: 10px; align-items: center; } .prp-client-price { margin-inline-start: auto; font-weight: 700; white-space: nowrap; }
.prp-client-note { border-inline-start: 4px solid var(--border, #ccc); } .prp-client-note.is-on { border-inline-start-color: #16a34a; } .prp-client-note.is-off { border-inline-start-color: #dc2626; }
.prp-answer { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; } @media (max-width: 800px) { .prp-answer { grid-template-columns: minmax(0, 1fr); } }
.prp-answer .field-group { margin-bottom: 10px; } .prp-answer .btn { margin-top: 10px; }
.prp-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.egp .prp-totals { color: var(--fg-muted, #64748b); } .egp .prp-totals b { color: var(--fg, currentColor); }

/* Drop 630: proposal imports and the milestones and tasks under each phase. */
.prp-imports { margin-bottom: 1rem; } .prp-dl { margin-top: .6rem; }
.prp-items { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: .82rem; }
.prp-items li { padding: .3rem .6rem; border-radius: 8px; background: var(--a-bg-2, rgba(0,0,0,.03)); }
.prp-items li span { font-size: .7rem; font-weight: 700; color: var(--a-fg-3); margin-inline-end: .35rem; text-transform: uppercase; letter-spacing: .04em; }
.prp-items li.is-milestone span { color: var(--a-accent, #C98E1F); }

/* Drop 630: the client dashboard — the admin command centre's parts, in the client theme's colours. */
.cdb { --a-border: var(--border); --a-border-2: var(--border-2, var(--border)); --a-fg: var(--fg); --a-fg-2: var(--fg-2, var(--fg)); --a-fg-3: var(--fg-muted);
  --a-card: var(--bg-card, var(--bg)); --a-bg: var(--bg); --a-bg-2: var(--bg-2); --a-accent: var(--accent, #C98E1F); }
.cdb .a-card { background: var(--bg-card, var(--bg)); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.cdb .a-card-header { display: flex; align-items: center; gap: .6rem; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); }
.cdb .a-card-title { font-weight: 700; font-size: .92rem; color: var(--fg); } .cdb .a-card-body { padding: 1rem 1.1rem; }
.cdb .a-card-body.cc-list, .cdb .a-card-body.cc-tl { padding: .3rem 0; }
.cdb .u-meta { font-size: .76rem; color: var(--fg-muted); } .cdb .s-hint { font-size: .8rem; color: var(--fg-muted); margin: .4rem 0 0; }
.cdb .kp { color: var(--fg); } .cdb .cc-hero .btn { white-space: nowrap; }
.cdb .cc-dot.is-read { background: var(--border); }
.cdb-mgr { display: flex; gap: .7rem; align-items: center; } .cdb-mgr > div { display: grid; }
.cdb-mgr-links { display: grid; gap: .25rem; margin: .7rem 0 0; font-size: .84rem; }
.cdb-h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); margin: 1.2rem 0 .5rem; }
.cdb-fw { display: grid; grid-template-columns: 90px 1fr 42px; gap: .5rem; align-items: center; font-size: .8rem; margin-bottom: .35rem; } .cdb-fw b { text-align: end; }
.cdb-proj .kp-bar { max-width: 420px; }

/* Drop 631: partners on the public partners page, and the logo field. */
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.ps-card { display: grid; gap: .5rem; align-content: start; justify-items: center; text-align: center; padding: 1.4rem 1.1rem; border: 1px solid var(--border, rgba(0,0,0,.08)); border-radius: 16px; background: var(--bg-card, #fff); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.ps-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, .08); border-color: var(--accent, #C98E1F); }
.ps-logo { width: 100%; height: 84px; display: grid; place-items: center; }
.ps-logo img { max-width: 170px; max-height: 76px; object-fit: contain; filter: grayscale(.15); }
.ps-card:hover .ps-logo img { filter: none; }
.ps-initials { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: var(--accent, #C98E1F); background: color-mix(in srgb, var(--accent, #C98E1F) 12%, transparent); }
.ps-name { font-weight: 700; font-size: .98rem; line-height: 1.35; } .ps-blurb { font-size: .84rem; line-height: 1.55; opacity: .8; } .ps-meta { font-size: .74rem; opacity: .6; }
.ps-own { display: flex; gap: 1rem; align-items: center; margin: .8rem 0; } .ps-own .ps-logo { width: 150px; height: 72px; border: 1px dashed var(--border, rgba(0,0,0,.15)); border-radius: 12px; flex: none; }
.ps-own .ps-logo img { max-width: 136px; max-height: 60px; }
.pr-h3 { font-size: 1rem; margin: 1.6rem 0 .6rem; }

/* Drop 633: plan approval — the admin card, and the client's section. */
.pa-h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--a-fg-3, var(--fg-muted)); margin: 1rem 0 .4rem; }
.pa-changes { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .3rem; font-size: .84rem; }
.pa-changes li { padding: .4rem .7rem; border-radius: 8px; border-inline-start: 3px solid #94a3b8; background: rgba(148, 163, 184, .08); }
.pa-changes li.is-added { border-inline-start-color: #16a34a; } .pa-changes li.is-removed { border-inline-start-color: #dc2626; }
.pa-changes li.is-moved { border-inline-start-color: #d97706; } .pa-changes li.is-renamed { border-inline-start-color: #2563eb; }
.pa-send { display: grid; gap: .5rem; max-width: 640px; } .pa-send .btn-a { justify-self: start; }
.pa-note { font-style: italic; margin: .4rem 0 .8rem; } .pa-hist { margin-top: 1rem; }
.pa-client { background: var(--bg-card); border: 1px solid var(--border-2, var(--border)); border-radius: 14px; padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; border-inline-start: 4px solid #16a34a; }
.pa-client.pa-pending { border-inline-start-color: #d97706; } .pa-client.pa-returned { border-inline-start-color: #dc2626; }
.pa-client-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.pa-client-head h2 { font-size: 1.05rem; margin: 0; color: var(--fg); }
.pa-badge { font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: var(--bg-2); color: var(--fg-muted); }
.pa-why { font-size: .88rem; } .pa-muted { color: var(--fg-muted); font-size: .86rem; margin: 0; }
.pa-actions { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin-top: .8rem; }
.pa-return { display: grid; gap: .5rem; } .pa-return .btn { justify-self: start; }
@media (max-width: 700px) { .pa-actions { grid-template-columns: minmax(0, 1fr); } }

/* Drop 634: payment gate on the project page. */
.pg-list { display: grid; gap: .6rem; }
.pg-row { border: 1px solid var(--a-border); border-inline-start: 4px solid #16a34a; border-radius: 10px; padding: .7rem .9rem; display: grid; gap: .4rem; }
.pg-row.is-blocked { border-inline-start-color: #d97706; } .pg-row.is-override { border-inline-start-color: #2563eb; }
.pg-main { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pg-state { font-size: .72rem; font-weight: 700; color: var(--a-fg-3); }
.pg-row.is-blocked .pg-state { color: #d97706; } .pg-row.is-override .pg-state { color: #2563eb; }
.pg-wait { margin: 0; padding-inline-start: 1.1rem; font-size: .84rem; line-height: 1.7; }
.pg-open { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .pg-open .a-select { min-width: 220px; } .pg-open .a-input { flex: 1 1 200px; }

/* Drop 635: change requests. */
.cr-impact { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: .8rem; }
.cr-withdraw { margin-top: 1rem; }
.cr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.cr-cta { display: flex; gap: .8rem; align-items: center; margin: 0 0 1rem; }

/* Drop 636: invoice disputes. */
.dsp-how { display: grid; gap: .45rem; margin-bottom: .8rem; }
.is-late { color: #dc2626; }
.dsp-banner { border-inline-start: 4px solid #d97706; }

/* Drop 637: document classification badges. */
.doc-class { display: inline-block; margin-inline-start: .35rem; font-size: .62rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: var(--a-bg-3); color: var(--a-fg-3); }
.doc-class.is-restricted { background: rgba(220, 38, 38, .12); color: #dc2626; } .doc-class.is-confidential { background: rgba(217, 119, 6, .12); color: #b45309; }
.doc-class.is-public { background: rgba(22, 163, 74, .12); color: #15803d; }
.doc-sec { margin-top: 1.5rem; } .doc-sec .cat-switch { margin: .5rem 0; display: flex; } .doc-sec-warn { color: #b45309; }

/* Drop 638: the self-billed invoice document. */
.sbd { background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1.6rem 1.8rem; max-width: 900px; font-size: .88rem; }
.sbd-head { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; border-bottom: 2px solid #1f2a44; padding-bottom: 1rem; margin-bottom: 1rem; }
.sbd-title { font-size: 1.25rem; margin: 0 0 .3rem; color: #1f2a44; } .sbd-note { color: #6b7280; font-size: .78rem; margin: .2rem 0; }
.sbd-meta { display: grid; grid-template-columns: auto auto; gap: .2rem .8rem; margin: 0; } .sbd-meta dt { color: #6b7280; } .sbd-meta dd { margin: 0; font-weight: 600; }
.sbd-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1rem; } .sbd-parties div { display: grid; gap: .15rem; }
.sbd-parties h3 { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin: 0 0 .2rem; }
.sbd-lines { width: 100%; border-collapse: collapse; margin-bottom: 1rem; } .sbd-lines th { background: #1f2a44; color: #fff; text-align: start; padding: .5rem .6rem; font-size: .75rem; }
.sbd-lines td { padding: .5rem .6rem; border-bottom: 1px solid #e5e7eb; } .sbd-lines .n { text-align: end; white-space: nowrap; }
.sbd-foot { display: flex; gap: 1.2rem; justify-content: space-between; align-items: flex-start; } .sbd-qr svg { width: 120px; height: 120px; }
.sbd-tot { display: grid; grid-template-columns: auto auto; gap: .3rem 1.2rem; margin: 0 0 0 auto; } .sbd-tot dd { margin: 0; text-align: end; } .sbd-tot .b { font-weight: 800; font-size: 1rem; color: #1f2a44; }
.sbd-hash { font-size: .7rem; color: #9ca3af; margin-top: 1rem; }
@media (max-width: 700px) { .sbd-parties { grid-template-columns: 1fr; } .sbd { padding: 1rem; } }
@media print { .inv-noprint, .an-bar, header.site-header, nav { display: none !important; } .sbd { border: 0; } }
.sb-actions { flex-wrap: wrap; margin-bottom: 1rem; }
.eg-files { border: 1px dashed var(--a-border); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }

/* Drop 639: payment gateways page and the secure payment page. */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1rem; }
.pg-card { border-inline-start: 4px solid var(--a-border); } .pg-card.is-on { border-inline-start-color: #16a34a; }
.pay-hosted .wpwl-form { max-width: 520px; } .pay-brands { margin-bottom: 1rem; }
/* Drop 642: provider links on the payment gateways page. */
.pg-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .8rem; } .pg-link-edit { grid-column: 1 / -1; margin: .2rem 0; }

/* Drop 643: pay several invoices at once; receipts. */
.bp-col { width: 2.5rem; padding: .85rem .5rem .85rem 1.2rem; }
.bp-bar { position: sticky; bottom: 1rem; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; background: var(--bg-card); border: 1px solid var(--border-2, var(--border)); border-radius: 14px; padding: .8rem 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 5; }
.bp-sum { font-weight: 600; } .bp-bar .field-input { width: auto; min-width: 200px; } .bp-terms { display: flex; gap: .4rem; align-items: center; font-size: .82rem; } .bp-msg { font-size: .8rem; color: var(--fg-muted); }
.rc-doc { background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1.6rem 1.8rem; }
.rc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #1f2a44; padding-bottom: 1rem; margin-bottom: 1rem; }
.rc-title { font-size: 1.3rem; color: #1f2a44; margin: 0; } .rc-amount { font-size: 1.6rem; font-weight: 800; color: #16a34a; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem 1.4rem; } .rc-grid dt { color: #6b7280; font-size: .75rem; } .rc-grid dd { margin: 0 0 .4rem; font-weight: 600; }
@media print { .rc-noprint { display: none !important; } .rc-doc { border: 0; } }

/* Drop 644: ZATCA onboarding. */
.zt-steps { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: zt; }
.zt-steps li { counter-increment: zt; padding: .45rem .9rem; border-radius: 999px; background: var(--a-bg-3); color: var(--a-fg-3); font-size: .78rem; font-weight: 700; }
.zt-steps li::before { content: counter(zt) " · "; } .zt-steps li.is-done { background: rgba(22,163,74,.12); color: #15803d; } .zt-steps li.is-now { background: rgba(217,119,6,.12); color: #b45309; }
.zt-pre { font-size: .72rem; white-space: pre-wrap; background: var(--a-bg-3); padding: .6rem; border-radius: 8px; }
.zt-cert { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 .8rem; } .zt-cert dt { color: var(--a-fg-3); } .zt-cert dd { margin: 0; font-weight: 600; }

/* Drop 647: ZATCA e-invoices. */
.zt-err { color: #dc2626; } .cn-zatca { max-width: 640px; margin-top: 1.2rem; }
.cu-addr { border: 1px dashed var(--a-border); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; }
/* Drop 648: e-invoicing health. */
.zt-health { display: grid; gap: .45rem; margin: 0 0 1rem; }
.zt-health-item { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem .9rem; border-radius: 10px; border-inline-start: 4px solid #d97706; background: rgba(217,119,6,.08); font-size: .86rem; }
.zt-health-item.is-high { border-inline-start-color: #dc2626; background: rgba(220,38,38,.07); } .zt-health-item a { font-weight: 700; white-space: nowrap; }

/* Drop 650: requests from the website. */
.in-card { margin-bottom: 1.2rem; border-inline-start: 4px solid #d97706; } .in-card.is-approved { border-inline-start-color: #16a34a; } .in-card.is-rejected { border-inline-start-color: #6b7280; }
.in-reject { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .in-reject .a-select { min-width: 240px; }
.rq-multi { min-height: 8rem; } .rq-mails { margin-top: .8rem; }
.rq-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; } .rq-lang { display: grid; gap: .4rem; }
.tk-intake { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; border-radius: 12px; border: 1px solid var(--border); border-inline-start: 4px solid #d97706; background: var(--bg-card); }
.tk-intake.is-approved { border-inline-start-color: #16a34a; } .tk-intake.is-rejected { border-inline-start-color: #6b7280; }
.tk-intake div { display: grid; gap: .15rem; } .tk-intake-l { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); }
/* Drop 650: visually hidden, still read by screen readers. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; inset-inline-start: 0; }

/* Drop 651: the expert application form. */
.ex-otp { display: grid; gap: .8rem; max-width: 460px; margin-bottom: 1.2rem; } .ex-otp .btn { justify-self: start; }
.ex-set { border: 0; padding: 0; margin: 0 0 1.2rem; }
.ex-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .45rem .8rem; margin-top: .4rem; }
.ex-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; margin: .35rem 0; cursor: pointer; }
.ex-check input { margin-top: .2rem; flex: none; }
.ex-ai-list { margin: 0 0 .6rem; padding-inline-start: 1.1rem; line-height: 1.6; font-size: .86rem; }
.ex-fit { display: grid; grid-template-columns: minmax(0, 1fr) 120px 1.5rem; gap: .35rem .8rem; align-items: center; font-size: .82rem; } .ex-fit meter { width: 100%; }

/* Drop 652: the expert's profile in the portal. */
.xp-note { font-weight: 500; font-size: .75rem; color: var(--fg-muted); } .xp-live { color: #16a34a; }
.xp-photo { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; } .xp-photo img, .xp-initial { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.xp-initial { display: grid; place-items: center; font-weight: 800; font-size: 2rem; background: var(--bg-2); color: var(--fg-muted); }
.xp-form .ex-set { margin-bottom: 1rem; } .xp-consent { margin: 1rem 0; }
.xp-thumb { border-radius: 50%; object-fit: cover; } .xp-new { background: rgba(22,163,74,.06); }

/* Drop 654: the requests dashboard. */
.rq-kpi .kp.is-bad { border-color: rgba(220,38,38,.35); } .rq-kpi .kp-s { display: block; font-size: .72rem; color: var(--a-fg-3); margin-top: .2rem; } .rq-kpi .kp-s b { color: #dc2626; }
tr.rq-late td { background: rgba(220,38,38,.04); } .rq-assign { display: flex; gap: .35rem; align-items: center; } .rq-assign .a-select { min-width: 140px; }
/* Drop 655: the partner's public profile in the portal. */
.pp-logo { border-radius: 16px !important; object-fit: contain !important; background: #fff; border: 1px solid var(--border); } .pp-multi { min-height: 11rem; }
.pp-thumb { border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--a-border); }
/* Drop 656: ZATCA environments. */
.zt-envs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.zt-envs li { border: 1px solid var(--a-border); border-radius: 12px; padding: .7rem .9rem; display: grid; gap: .2rem; } .zt-envs li span { font-size: .75rem; color: var(--a-fg-3); }
.zt-envs li.is-now { border-color: #d97706; background: rgba(217,119,6,.07); } .zt-envs li.is-done { border-color: rgba(22,163,74,.5); background: rgba(22,163,74,.06); }
.zt-ready { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .3rem; font-size: .86rem; }
.zt-ready .is-ok { color: #15803d; } .zt-ready .is-no { color: #dc2626; } .zt-ready .is-warn { color: #b45309; } .zt-envnow { margin: .3rem 0 0; font-weight: 600; } .zt-back { margin-top: .6rem; }

/* Drop 657: timesheets. */
.xt-week { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1rem; } .xt-week .field-input { width: auto; } .xt-why { color: #dc2626; font-size: .85rem; }
.xt-wrap { overflow-x: auto; } .xt-grid, .xt-list { width: 100%; border-collapse: collapse; }
.xt-grid th, .xt-grid td { padding: .5rem .4rem; border-bottom: 1px solid var(--border); text-align: center; font-size: .85rem; }
.xt-grid th small { display: block; font-weight: 500; color: var(--fg-muted); font-size: .7rem; }
.xt-grid tbody th { text-align: start; min-width: 220px; } .xt-cell { min-width: 4.2rem; padding: .3rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--fg); }
.xt-ro { color: var(--fg-muted); } .xt-sum { font-weight: 800; } .xt-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .8rem; }
.xt-list td { padding: .5rem .4rem; border-bottom: 1px solid var(--border); font-size: .85rem; }

/* Drop 658: staffing — the match ring and the reasons. */
.st-score { width: 64px; } .st-ring { --p: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#16a34a calc(var(--p) * 1%), var(--a-bg-3) 0); }
.st-ring b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--a-bg-card, #fff); font-size: .8rem; }
.st-why { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; } .st-why span { font-size: .7rem; padding: .1rem .5rem; border-radius: 999px; background: var(--a-bg-3); }
.st-why .is-ok { background: rgba(22,163,74,.12); color: #15803d; } .st-why .is-part { background: rgba(217,119,6,.12); color: #b45309; } .st-why .is-no { background: rgba(220,38,38,.1); color: #b91c1c; }
.xo-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.xo-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem 1rem; margin: .8rem 0; } .xo-dl dt { font-size: .72rem; color: var(--fg-muted); } .xo-dl dd { margin: 0; font-weight: 600; }
.xo-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; } .xo-decline { display: flex; gap: .5rem; align-items: center; } .xo-decline .field-input { width: auto; min-width: 230px; }
.eg-staff { margin: .4rem 0 0; }
/* Drop 659: expert cost on a project. */
.pj-xcost { display: inline-flex; gap: .3rem; align-items: center; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; background: var(--a-bg-3); color: var(--a-fg-2); }

/* Drop 660: expert agreements and documents. */
.xa-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; } .xa-side { display: flex; gap: .6rem; align-items: center; }
.xa-text { max-height: 420px; overflow-y: auto; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); line-height: 1.9; font-size: .92rem; margin: .8rem 0; }
.xa-sign { display: grid; gap: .7rem; max-width: 560px; } .xa-sign .btn { justify-self: start; } .xd-up { margin-top: 1rem; }

/* Drop 661: a disabled button looks disabled; who a review is waiting on. */
.btn-a[disabled], .btn-a[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: grayscale(.3); }
.ar-pend { margin: .8rem 0 .6rem; padding-inline-start: 1.1rem; line-height: 1.8; font-size: .88rem; } .ar-remind { margin-top: .2rem; }
/* Drop 662: expert rate and photo. */
.xr-conv { grid-column: 1 / -1; margin-top: .4rem; } .xd-adm { display: flex; gap: .9rem; align-items: center; }

/* Drop 664: a project's agreements, party by party. */
.pj-agr { margin-top: 1.2rem; } .pj-agr-cells { display: flex; flex-wrap: wrap; gap: .45rem; }
.pj-agr-cell { display: grid; gap: .1rem; padding: .45rem .75rem; border-radius: 10px; border: 1px solid var(--a-border); text-decoration: none; color: var(--a-fg); min-width: 150px; font-size: .78rem; }
.pj-agr-cell span { color: var(--a-fg-3); font-size: .7rem; } .pj-agr-cell.is-on { border-color: rgba(22,163,74,.45); background: rgba(22,163,74,.06); }
.pj-agr-cell.is-warn { border-color: rgba(217,119,6,.45); background: rgba(217,119,6,.07); } .pj-agr-cell.is-off { border-color: rgba(220,38,38,.4); background: rgba(220,38,38,.05); }
.st-acts { align-items: center; flex-wrap: wrap; gap: .6rem; }

/* Drop 666: reviews. */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.rv-scale { border: 0; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .35rem; } .rv-scale legend { margin-bottom: .4rem; }
.rv-scale label { cursor: pointer; } .rv-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-scale span { display: inline-grid; place-items: center; min-width: 2.4rem; padding: .35rem .7rem; border: 1px solid var(--a-border); border-radius: 10px; font-weight: 700; font-size: .85rem; }
.rv-scale input:checked + span { background: var(--a-accent, #C98E1F); border-color: var(--a-accent, #C98E1F); color: #fff; } .rv-scale input:focus-visible + span { outline: 2px solid var(--a-accent, #C98E1F); outline-offset: 2px; }

/* Drop 667: capacity calendar. */
.cp-legend { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .78rem; color: var(--a-fg-3); margin-bottom: .8rem; }
.cp-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid var(--a-border); }
.cp-wrap { overflow-x: auto; } .cp-table { border-collapse: separate; border-spacing: 3px; min-width: 100%; font-size: .78rem; }
.cp-table th, .cp-table td { padding: .35rem .4rem; text-align: center; white-space: nowrap; } .cp-table thead th { color: var(--a-fg-3); font-weight: 600; font-size: .72rem; }
.cp-name { position: sticky; inset-inline-start: 0; background: var(--a-bg-card, #fff); text-align: start !important; min-width: 190px; z-index: 1; }
.cp-name a { font-weight: 700; color: var(--a-fg); text-decoration: none; } .cp-name span { display: block; font-size: .68rem; color: var(--a-fg-3); font-weight: 500; }
.cp-util { min-width: 70px; } .cp-clash { display: block; color: #dc2626; font-size: .66rem; font-weight: 700; }
.cp-cell { border-radius: 8px; background: var(--a-bg-3); min-width: 46px; } .cp-cell i { font-style: normal; opacity: .7; } .cp-cell b { font-weight: 800; }
.cp-dot.is-low, .cp-cell.is-low { background: rgba(22,163,74,.12); } .cp-dot.is-mid, .cp-cell.is-mid { background: rgba(22,163,74,.28); }
.cp-dot.is-high, .cp-cell.is-high { background: rgba(217,119,6,.3); } .cp-dot.is-over, .cp-cell.is-over { background: rgba(220,38,38,.42); color: var(--a-fg); }
.cp-table th.is-now { color: var(--a-accent, #C98E1F); } .cp-cell.is-now { box-shadow: inset 0 0 0 2px var(--a-accent, #C98E1F); }
.cp-tot { font-weight: 700; } .cp-tot span { display: block; font-weight: 500; color: var(--a-fg-3); font-size: .66rem; }

/* Drop 669: offline pages. */
.of-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.of-zone { border: 1px solid var(--a-border); border-radius: 14px; padding: 1rem 1.1rem; } .of-zone.is-off { border-color: rgba(220,38,38,.45); background: rgba(220,38,38,.04); }
.of-body { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 1.2rem; align-items: start; } @media (max-width: 900px) { .of-body { grid-template-columns: 1fr; } }
.of-img { display: grid; gap: .45rem; } .of-img img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; border: 1px solid var(--a-border); background: var(--a-bg-2); }
.of-noimg { display: grid; place-items: center; min-height: 140px; border: 1px dashed var(--a-border); border-radius: 12px; color: var(--a-fg-3); font-size: .8rem; text-align: center; padding: 1rem; }
.of-mode .rq-lang .a-label { margin-top: .5rem; }
/* Drop 670: offline page design. */
.od-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.4rem; align-items: start; } @media (max-width: 1100px) { .od-grid { grid-template-columns: 1fr; } }
.od-preview { position: sticky; top: 90px; } .od-frame { width: 100%; height: 620px; border: 1px solid var(--a-border); border-radius: 14px; background: #fff; }
.od-tabs { display: flex; gap: .4rem; margin-bottom: .5rem; } .od-tabs a { font-size: .78rem; font-weight: 700; padding: .3rem .8rem; border: 1px solid var(--a-border); border-radius: 999px; text-decoration: none; color: var(--a-fg); }
.od-color { height: 42px; padding: .25rem; cursor: pointer; } .od-show { margin-bottom: .8rem; }
/* Drop 670: tick boxes inside admin pages follow the admin theme (they were white in the dark theme). */
.msg-page .ex-check { background: var(--a-bg-2, transparent); border-color: var(--a-border); color: var(--a-fg); }
.msg-page .ex-check:has(input:checked) { border-color: var(--a-accent, #C98E1F); background: color-mix(in srgb, var(--a-accent, #C98E1F) 10%, transparent); }
/* Drop 671: per-language images. */
.of-body-2 { grid-template-columns: 1fr; } .of-mode .rq-lang .of-img { margin-bottom: .6rem; } .od-thumb { width: 100%; max-height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--a-border); margin-bottom: .35rem; }
/* Drop 672: two image tiles per kind, and the live preview. */
.of-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; } @media (max-width: 800px) { .of-imgs { grid-template-columns: 1fr; } }
.of-tile { display: grid; gap: .45rem; padding: .8rem; border: 1px solid var(--a-border); border-radius: 14px; background: var(--a-bg-2); }
.of-tile-h { font-weight: 800; font-size: .82rem; }
.of-drop { display: grid; place-items: center; min-height: 170px; border: 1px dashed var(--a-border); border-radius: 12px; cursor: pointer; overflow: hidden; background: var(--a-bg-card, transparent); }
.of-drop:hover { border-color: var(--a-accent, #C98E1F); } .of-prev { width: 100%; max-height: 220px; object-fit: contain; } .of-empty { color: var(--a-fg-3); font-size: .8rem; text-align: center; padding: 1rem; }
.od-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; } .od-tools .a-select { width: auto; min-width: 170px; }
.od-tabs button { font: inherit; font-size: .78rem; font-weight: 700; padding: .3rem .8rem; border: 1px solid var(--a-border); border-radius: 999px; background: transparent; color: var(--a-fg); cursor: pointer; }
.od-tabs button.is-on { background: var(--a-accent, #C98E1F); border-color: var(--a-accent, #C98E1F); color: #111; }
.od-stage { display: grid; place-items: center; background: var(--a-bg-2); border-radius: 16px; padding: .5rem; } .od-frame { transition: width .25s ease; }
.od-preview.is-mobile .od-frame { width: 390px; height: 720px; }
/* Drop 673: expert workspace on the project page. */
.ew-set { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; } .ew-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; } @media (max-width: 1000px) { .ew-cols { grid-template-columns: 1fr; } }
.ew-pend { padding: .6rem .8rem; border: 1px solid rgba(217,119,6,.45); background: rgba(217,119,6,.07); border-radius: 10px; margin-bottom: .8rem; font-size: .84rem; } .ew-pend a { margin-inline-end: .8rem; }
.ew-thread { border: 1px solid var(--a-border); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .6rem; } .ew-thread summary { cursor: pointer; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ew-msgs { display: grid; gap: .45rem; margin: .7rem 0; max-height: 300px; overflow-y: auto; } .ew-msg { padding: .5rem .7rem; border-radius: 10px; background: var(--a-bg-2); max-width: 85%; }
.ew-msg.is-us { margin-inline-start: auto; background: color-mix(in srgb, var(--a-accent, #C98E1F) 12%, transparent); } .ew-msg p { margin: .2rem 0 0; font-size: .85rem; } .ew-reply { display: grid; gap: .4rem; }
/* Drop 674: third-party access review. */
.tp-bulk { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; } .tp-flag { margin: 0 .25rem .25rem 0; display: inline-block; }
.tp-dec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; min-width: 320px; } .tp-dec .a-input, .tp-dec button { grid-column: span 1; }
.tp-re { display: flex; gap: .35rem; margin-top: .4rem; } .tp-table td { vertical-align: top; }
/* Drop 676: project gate. */
.pj-gate { margin-top: 1.2rem; } .pj-gate.is-blocked { border-color: rgba(220,38,38,.45); } .pj-gate.is-ready { border-color: rgba(22,163,74,.4); }
.pj-gate-list { margin: .4rem 0 0; padding-inline-start: 1.2rem; display: grid; gap: .3rem; font-size: .86rem; } .pj-gate-list a { color: var(--a-fg); }
/* Drop 677: external view. */
.ev-disc { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--a-border); display: grid; gap: .4rem; }
/* Drop 680: screen-reader-only text is pinned to the start edge — left where it was, it pushed wide tables' pages sideways on phones. */
/* Drop 681: quality reviews. */
.qa-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; } .qa-tab { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--a-border); color: var(--a-fg-2); text-decoration: none; font-size: .82rem; }
.qa-tab.is-on { background: var(--a-accent); border-color: var(--a-accent); color: #fff; }
.qa-checks { display: grid; gap: .45rem; margin-bottom: 1rem; }
.qa-chip { display: inline-block; margin-inline-start: .35rem; padding: .15rem .55rem; border-radius: 999px; font-size: .65rem; font-weight: 700; text-decoration: none; border: 1px solid var(--a-border); color: var(--a-fg-2); }
.qa-chip.is-approved { color: #16a34a; border-color: rgba(22,163,74,.4); } .qa-chip.is-requested { color: #d97706; border-color: rgba(217,119,6,.4); } .qa-chip.is-changes { color: #dc2626; border-color: rgba(220,38,38,.4); }
/* Drop 682: process guide editor. */
.pg-step { border: 1px solid var(--a-border); border-radius: 14px; padding: .8rem 1rem; margin: 0 0 .8rem; } .pg-step legend { font-weight: 700; font-size: .82rem; padding: 0 .35rem; }
.pg-step-acts { display: flex; gap: .35rem; justify-content: flex-end; }
/* Drop 683: client agreement import, signed copies, exports. */
.ca-imp { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .35rem; } .ca-imp-btn { cursor: pointer; }
.ca-exp { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; } .ca-copies { margin: .5rem 0 1rem; } .ca-up { margin-top: .35rem; } .ca-up label { cursor: pointer; }
/* Drop 684: re-approvals. */
.ap-bar { width: 140px; height: 6px; border-radius: 999px; background: var(--a-bg-3); overflow: hidden; } .ap-bar i { display: block; height: 100%; background: var(--a-accent); } .ap-pub { margin-top: .6rem; }
/* Drop 690: utilization heat map. */
.ut-heat td.ut-c { text-align: center; font-weight: 700; font-size: .78rem; } .ut-c.u0 { opacity: .4; } .ut-c.u1 { background: rgba(220,38,38,.18); } .ut-c.u2 { background: rgba(217,119,6,.18); }
.ut-c.u3 { background: rgba(202,138,4,.2); } .ut-c.u4 { background: rgba(22,163,74,.22); } .ut-c.u5 { background: rgba(124,58,237,.25); } .ut-days { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .5rem 0; }
.md-fallback { font-size: 2rem; }
.kyb-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; } .hc-cat { border-top: 1px solid var(--a-border); padding: .6rem 0; } .hc-cat summary { cursor: pointer; } .hc-body { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; line-height: 1.6; }   /* drop 698 */

/* Drop 728: the capacity dropdowns on Experts settings wrap instead of pushing past the page edge */
.xr-conv, .msg-filters .a-field.xr-conv { min-width: 0; max-width: 100%; flex: 1 1 100%; width: 100%; }
.xr-conv .kyb-form { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.msg-filters .xr-conv .a-field { flex: none; width: auto; }
.xr-conv .a-field, .xr-conv .xs-wrap, .xr-conv .a-select { min-width: 0; max-width: 100%; }

/* Drop 730: status colours that stay readable (WCAG AA) on the dark admin theme */
[data-admin-theme="dark"] .cc-pill.is-bad { color: #FCA5A5; } [data-admin-theme="dark"] .cc-pill.is-warn { color: #FCD34D; }
[data-admin-theme="dark"] .kp-d.is-down { color: #F87171; } [data-admin-theme="dark"] .gl-chip.is-fail { color: #FCA5A5; }
[data-admin-theme="dark"] .is-late .cc-tl-when { color: #F87171; }
.cdb .cc-pill.is-warn { color: #92400E; }
[data-admin-theme="dark"] .kp-d.is-up, [data-admin-theme="dark"] .dash-delta.is-up { color: #4ADE80; }
[data-admin-theme="dark"] .pt-late { color: #F87171; }
.pv-form-note a { text-decoration: underline; text-underline-offset: 2px; }
/* Drop 733: invoice status filters — colour per status that meets AA in both admin themes */
.inv-f.btn-a-outline.inv-f-paid { color: #166534; } .inv-f.btn-a-outline.inv-f-overdue { color: #B91C1C; } .inv-f.btn-a-outline.inv-f-sent, .inv-f.btn-a-outline.inv-f-partially_paid { color: #8A5C0A; }
[data-admin-theme="dark"] .inv-f.btn-a-outline.inv-f-paid { color: #4ADE80; } [data-admin-theme="dark"] .inv-f.btn-a-outline.inv-f-overdue { color: #F87171; } [data-admin-theme="dark"] .inv-f.btn-a-outline.inv-f-sent, [data-admin-theme="dark"] .inv-f.btn-a-outline.inv-f-partially_paid { color: #EDC155; }
/* Drop 762: the product sections call-out in the catalog editor */
.cat-sec.cat-sec-callout { border-color: var(--a-accent); box-shadow: inset 3px 0 0 var(--a-accent); }
[dir="rtl"] .cat-sec.cat-sec-callout { box-shadow: inset -3px 0 0 var(--a-accent); }

/* Drop 814: the client Classification card — its rows must not take the dashboard's 12-column .cc-row grid */
.cc-body > .cc-row { grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: .3rem 1rem; margin-bottom: .85rem; align-items: baseline; }
.cc-body > .cc-row:last-child { margin-bottom: 0; }
.cc-body .cc-k { font-size: .78rem; line-height: 1.45; color: var(--a-fg-3, #64748b); }
.cc-body .cc-v { font-size: .84rem; line-height: 1.5; color: var(--a-fg); font-weight: 500; }
@media (max-width: 700px) { .cc-body > .cc-row { grid-template-columns: minmax(0, 1fr); gap: .15rem; } }
/* drop 953: an invitation past its answer date, or declined */
.msg-badge.is-late{color:var(--a-danger,#C0392B);border-color:currentColor;background:color-mix(in srgb,var(--a-danger,#C0392B) 10%,transparent)}
/* drop 961: status badges used by the website-permission lists */
.sec-badge.is-ok{color:var(--a-success,#15803d);border-color:currentColor}
.sec-badge.is-warn{color:var(--a-warning,#9a6300);border-color:currentColor}

/* drop 998: an access-review item handed to another reviewer, locked until they decide */
.ar-locked{display:grid;gap:.2rem;margin-top:.6rem;padding:.6rem .75rem;border:1px solid var(--a-border,rgba(0,0,0,.1));border-inline-start:3px solid var(--a-accent,#c98e1f);border-radius:10px;font-size:.82rem}
/* drop 1012: grouped "Needs you" items */
.aat-group { display: block; }
.aat-group > summary { list-style: none; cursor: pointer; }
.aat-group > summary::-webkit-details-marker { display: none; }
.aat-n { display: inline-block; min-width: 1.6em; padding: 0 .45em; margin-inline-start: .35em; border-radius: 99px; font-size: .78em; text-align: center; background: var(--a-border); color: var(--a-fg-2); font-weight: 700; }
.aat-sub { list-style: none; margin: 0; padding: .35rem 0 .6rem; padding-inline-start: 2.6rem; display: grid; gap: .3rem; font-size: .86rem; }
.aat-sub a { color: var(--a-fg-2); text-decoration: none; }
.aat-sub a:hover, .aat-sub a:focus-visible { color: var(--a-accent); text-decoration: underline; }
.aat-group > summary .aat-label { color: var(--a-accent); }
.aat-group > summary:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
/* drop 1012: an Arabic column in a bilingual table lines up with its Arabic values (headers were left-aligned under right-aligned text) */
.a-table th[dir="rtl"], .a-table td[dir="rtl"] { text-align: right; }
.a-table th[dir="ltr"], .a-table td[dir="ltr"] { text-align: left; }
/* drop 1013: figures line up */
.a-table .is-num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* drop 1014: status chip rows above lists wrap on a phone instead of running off the edge */
.table-actions > div { flex-wrap: wrap; }
/* drop 1014: "open" arrows point the reading direction — forward is left in Arabic */
[dir="rtl"] .u-fwd { display: inline-block; transform: scaleX(-1); }
/* drop 1017: tap targets — on touch screens every control is at least 24×24 px (WCAG 2.2 target size), small buttons
   at least 36 px tall, and tick boxes 22 px; mouse users keep the compact layout */
@media (pointer: coarse) {
  main .btn-a, main .btn-a-sm, main summary.btn-a, main .up-pick, main .dp-link, main .toggle-vis-btn, main .toggle-rec-btn, main .ci-link { min-height: 36px; }
  main a.btn-a, main summary.btn-a { display: inline-flex; align-items: center; }
  main input[type="checkbox"], main input[type="radio"] { width: 24px !important; height: 24px !important; }
  /* text links: a few pixels of invisible padding above and below make them easy to hit without moving anything */
  main a[href]:not([class*="btn"]):not(.aat-item) { padding-block: 5px; }
  main button:not([class*="btn"]) { min-height: 28px; }
  main .u-meta, main .a-page-back, main a.srt, main summary, main .s-hint > a, main a.msg-sub, main a.msg-strong, main .dsh-open {
    display: inline-flex; align-items: center; min-height: 24px; }
  main summary { min-height: 32px; }
  main a:empty, main .dsh-menu-btn { min-width: 24px; min-height: 24px; }
}

/* drop 1018: status colours readable in the dark theme — the light-theme reds, greens and ambers were 3.3–4.1:1 on dark
   cards; these lighter tones are 4.5:1 or more */
[data-admin-theme="dark"] .sec-badge-ok, [data-admin-theme="dark"] .sec-badge.is-ok, [data-admin-theme="dark"] .is-ok, [data-admin-theme="dark"] .is-done, [data-admin-theme="dark"] .ol-kind, [data-admin-theme="dark"] .ac-done { color: #4ade80; }
[data-admin-theme="dark"] .sec-badge-warn, [data-admin-theme="dark"] .sec-badge.is-warn, [data-admin-theme="dark"] .doc-class, [data-admin-theme="dark"] .td-miss { color: #fbbf24; }
[data-admin-theme="dark"] .sec-badge-bad, [data-admin-theme="dark"] .sec-badge.is-bad, [data-admin-theme="dark"] .is-no, [data-admin-theme="dark"] .is-bad, [data-admin-theme="dark"] .esc-right, [data-admin-theme="dark"] .trm-st { color: #f87171; }
[data-admin-theme="dark"] .sec-badge-info { color: #a78bfa; }
[data-admin-theme="light"] .sec-badge-ok, [data-admin-theme="light"] .sec-badge.is-ok { color: #15803d; }
[data-admin-theme="light"] .sec-badge-warn, [data-admin-theme="light"] .sec-badge.is-warn { color: #8a5a0b; }
[data-admin-theme="light"] .sec-badge-bad, [data-admin-theme="light"] .sec-badge.is-bad, [data-admin-theme="light"] .is-bad { color: #b91c1c; }
/* drop 1018: lead status colours as classes, readable in both themes (the inline navy "Proposal" was 1.8:1 on dark) */
.lst-pill { font-size: var(--fs-2xs); padding: .15rem .5rem; border-radius: var(--r-pill); font-weight: 700; background: color-mix(in srgb, currentColor 12%, transparent); }
.lst { border-color: color-mix(in srgb, currentColor 30%, transparent) !important; }
.lst-new { color: #a3aac0; } .lst-contacted { color: #38bdf8; } .lst-qualified, .lst-negotiation { color: #edc155; } .lst-proposal { color: #93a4f8; } .lst-won { color: #4ade80; } .lst-lost { color: #f87171; }
[data-admin-theme="light"] .lst-new { color: #4b5563; } [data-admin-theme="light"] .lst-contacted { color: #0369a1; } [data-admin-theme="light"] .lst-qualified, [data-admin-theme="light"] .lst-negotiation { color: #8a5a0b; }
[data-admin-theme="light"] .lst-proposal { color: #3730a3; } [data-admin-theme="light"] .lst-won { color: #15803d; } [data-admin-theme="light"] .lst-lost { color: #b91c1c; }
[data-admin-theme="light"] .badge, [data-admin-theme="light"] .is-bad { filter: brightness(.82); }
/* drop 1020: tick-chips for multi-value fields */
.ol-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0; }
.ol-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border: 1px solid var(--a-border); border-radius: 999px; font-size: .8rem; cursor: pointer; }
.ol-chip:has(input:checked) { border-color: var(--a-accent); background: color-mix(in srgb, var(--a-accent) 12%, transparent); }
/* drop 1021: "filled from the project/client" note */
.af-note { margin-top: .4rem; padding: .35rem .6rem; border-radius: 8px; font-size: .78rem; border-inline-start: 3px solid var(--a-accent); background: color-mix(in srgb, var(--a-accent) 8%, transparent); }
/* drop 1022: the same keyboard focus ring on every staff control */
html body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--a-accent, var(--accent, #C98E1F)) !important; outline-offset: 2px; }   /* fallback: client pages load this sheet too and have no --a-accent */
/* the ring appears at once — elements animating "all" properties used to fade the ring in */
html body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { transition-property: color, background-color, border-color, opacity, transform; }
/* drop 1023: project classification and partner-delivery chain */
.pc-card { margin-bottom: 1.25rem; }
.pc-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pc-h { font-size: 1rem; font-weight: 700; margin: 0; }
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1rem; margin-top: .75rem; }
.pc-wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .pc-grid { grid-template-columns: 1fr; } }
.pc-controls { margin-top: .9rem; padding: .7rem .9rem; border-radius: 10px; border-inline-start: 3px solid var(--a-accent); background: color-mix(in srgb, var(--a-accent) 7%, transparent); font-size: .86rem; }
.pc-controls ul { margin: .35rem 0 0; padding-inline-start: 1.1rem; display: grid; gap: .2rem; }
.pc-steps { list-style: none; margin: .9rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.pc-step { display: flex; gap: .55rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--a-border); font-size: .84rem; }
.pc-step small { display: block; color: var(--a-fg-3); font-size: .74rem; margin-top: .15rem; }
.pc-dot { width: .7rem; height: .7rem; border-radius: 50%; margin-top: .3rem; flex: none; background: var(--a-border); }
.pc-done .pc-dot { background: #22c55e; } .pc-now { border-color: var(--a-accent); } .pc-now .pc-dot { background: var(--a-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-accent) 25%, transparent); }
.pc-next { opacity: .7; }
/* drop 1024: party dashboards (client, partner, expert, candidate, portfolio) */
.pd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .8rem; }
.pd-title { font-size: 1.45rem; font-weight: 800; margin: 0; }
.pd-sub { color: var(--a-fg-3, var(--fg-muted)); font-size: .85rem; }
.pd-exports { display: flex; flex-wrap: wrap; gap: .4rem; }
.pd-brief { padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid var(--a-border, var(--border)); border-inline-start: 4px solid var(--dsh-accent); background: var(--a-card, var(--bg-card)); }
.pd-brief-h { font-size: .95rem; font-weight: 700; margin: 0 0 .4rem; }
.pd-brief ul { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .3rem; font-size: .9rem; }
.pd-src { display: block; margin-top: .5rem; font-size: .75rem; color: var(--a-fg-3, var(--fg-muted)); }
.pd-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pd-page { display: grid; gap: 1.2rem; width: 100%; }
.pd-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.pd-tab { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--a-border, var(--border)); text-decoration: none; color: inherit; font-weight: 600; font-size: .85rem; }
.pd-tab.is-on { border-color: var(--dsh-accent, var(--accent)); background: color-mix(in srgb, var(--dsh-accent, var(--accent)) 12%, transparent); }
.pc-sug { margin: .5rem 0 0; font-size: .82rem; padding: .4rem .6rem; border-radius: 8px; background: color-mix(in srgb, var(--a-accent) 8%, transparent); }
.pd-exports a { display: inline-flex; align-items: center; min-height: 34px; padding: .3rem .8rem; border-radius: 8px; border: 1px solid var(--a-border, var(--border)); text-decoration: none; color: inherit; font-weight: 600; font-size: .82rem; }
.pd-exports a.pd-x { border-color: var(--dsh-accent, var(--accent)); color: var(--dsh-accent, var(--accent)); }
.pd-exports a:hover { background: color-mix(in srgb, var(--dsh-accent, var(--accent)) 10%, transparent); }
/* drop 1025: AI and portal advisors */
.ai-box { padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--a-border); border-inline-start: 4px solid var(--a-accent); margin: .9rem 0; display: grid; gap: .6rem; }
.ai-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.ai-box-head h3 { margin: 0; font-size: .98rem; font-weight: 700; }
.ai-row { display: grid; gap: .25rem; }
.ai-flags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ai-flag { font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--a-border); }
.ai-flag.is-bad { color: #f87171; border-color: color-mix(in srgb, #f87171 45%, transparent); } .ai-flag.is-warn { color: #fbbf24; border-color: color-mix(in srgb, #fbbf24 45%, transparent); }
.ai-flag.is-good { color: #4ade80; border-color: color-mix(in srgb, #4ade80 45%, transparent); } .ai-flag.is-info { color: var(--a-fg-2); }
[data-admin-theme="light"] .ai-flag.is-bad { color: #b91c1c; } [data-admin-theme="light"] .ai-flag.is-warn { color: #8a5a0b; } [data-admin-theme="light"] .ai-flag.is-good { color: #15803d; }
.ai-out ul { margin: .35rem 0 0; padding-inline-start: 1.1rem; display: grid; gap: .25rem; }
/* drop 1026: TPRM */
.tp-meter { display: flex; align-items: center; gap: .5rem; margin: .8rem 0; padding: .6rem .8rem; border-radius: 10px; border: 1px dashed var(--a-border); font-size: .9rem; }
.tp-dl { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: .4rem 1rem; margin: .5rem 0 0; font-size: .88rem; } .tp-dl dt { color: var(--a-fg-3); } .tp-dl dd { margin: 0; }
@media (max-width: 700px) { .tp-dl { grid-template-columns: 1fr; } }
.tp-set { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .4rem 0 .8rem; } .tp-set li { padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--a-border); font-size: .8rem; }
.tp-doms { display: grid; gap: .35rem; margin: .4rem 0 1rem; } .tp-dom { display: grid; grid-template-columns: minmax(160px, 1.2fr) 3fr 3.2rem; align-items: center; gap: .6rem; font-size: .84rem; }
.tp-bar { height: 8px; border-radius: 99px; background: var(--a-border); overflow: hidden; } .tp-bar i { display: block; height: 100%; border-radius: 99px; background: var(--a-accent); }
.tp-bar i.is-ok { background: #22c55e; } .tp-bar i.is-warn { background: #f59e0b; } .tp-bar i.is-bad { background: #ef4444; }
.tp-log { margin: .4rem 0 0; padding-inline-start: 1.1rem; display: grid; gap: .3rem; font-size: .84rem; }
/* drop 1028: audit planning */
.au-ready { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .4rem; font-size: .88rem; }
.au-ready li { padding: .45rem .7rem; border-radius: 10px; border: 1px solid var(--a-border); } .au-ready li.is-ok { border-color: color-mix(in srgb, #22c55e 45%, transparent); }
.au-areas { margin-bottom: .8rem; }
/* drop 1029: a request's name opens it */
.sr-open { color: inherit; text-decoration: none; } .sr-open:hover .ix-528678c1, .sr-open:focus-visible .ix-528678c1 { color: var(--a-accent); text-decoration: underline; }
/* drop 1031: working papers */
.wp-fs { border: 0; padding: 0; margin: 0; min-width: 0; } .wp-fs[disabled] { opacity: .85; }
/* drop 1035: oversight register */
.ov-pv summary { cursor: pointer; font-size: .78rem; color: var(--a-fg-3); } .ov-pv p { margin: .3rem 0 0; font-size: .82rem; }
tr.is-hl td { background: color-mix(in srgb, var(--a-accent) 10%, transparent); }
/* drop 1037: page help link and classification chip */
.pg-help { display: inline-flex; align-items: center; gap: .3rem; margin-inline-start: .6rem; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; text-decoration: none;
  color: var(--a-accent, var(--accent, #C98E1F)); background: color-mix(in srgb, var(--a-accent, var(--accent, #C98E1F)) 12%, transparent); }
.pg-help:hover, .pg-help:focus-visible { background: color-mix(in srgb, var(--a-accent, var(--accent, #C98E1F)) 22%, transparent); }
.cia-chip { display: inline-flex; align-items: center; gap: .35rem; margin-inline-start: .6rem; padding: .15rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; text-decoration: none; border: 1px solid currentColor; }
.cia-chip .cia-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cia-chip.is-ok { color: #15803d; } .cia-chip.is-warn { color: #b45309; } .cia-chip.is-bad { color: #b91c1c; } .cia-chip.is-none { color: var(--a-fg-3, #6b7280); border-style: dashed; }
.cp-pagebar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; margin: 0 0 .6rem; } .cp-pagebar > * { margin-inline-start: 0; }
.cia-auto { margin-bottom: .8rem; }
@media print { .pg-help { display: none !important; } }
/* drop 1038: file classification in lists */
.fc-chip { margin-inline-start: 0; } .fc-form { display: inline-flex; align-items: center; gap: .35rem; margin: 0; } .fc-sel { padding: .1rem .4rem; font-size: .75rem; min-height: 0; height: auto; width: auto; }
/* drop 1042: delete a proposal version */
.prp-ver { display: inline-flex; align-items: center; gap: .15rem; } .prp-del { display: inline; margin: 0; } .prp-del-btn { padding: .2rem .35rem; color: var(--a-danger, #b91c1c); }
/* drop 1051: tables scroll in their own frame; portal sort buttons; the client reports page fits a phone */
.tp-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .tp-wrap:focus-visible { outline: 2px solid var(--a-accent, var(--accent, #b8862b)); outline-offset: 2px; }
.tp-sort { all: unset; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; font: inherit; color: inherit; }
.tp-sort:focus-visible { outline: 2px solid var(--accent, #b8862b); outline-offset: 2px; border-radius: 4px; }
.tp-arrow::before { content: "↕"; font-size: .75em; opacity: .35; } th[aria-sort="ascending"] .tp-arrow::before { content: "↑"; opacity: 1; } th[aria-sort="descending"] .tp-arrow::before { content: "↓"; opacity: 1; }
.u-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .dsh.pd, .dsh.pd > * { min-width: 0; max-width: 100%; } .pd-head > * { min-width: 0; max-width: 100%; } .pd-title { overflow-wrap: anywhere; } }
/* drop 1055: "Interested in" — the picked service on enquiries and leads */
.si-card { margin: .6rem 0 .9rem; padding: .75rem .9rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--a-accent) 40%, var(--a-border)); background: color-mix(in srgb, var(--a-accent) 6%, transparent); }
.si-card p { margin: 0; } .si-h { font-size: .74rem; font-weight: 700; color: var(--a-fg-3); } .si-n { margin-top: .15rem !important; font-size: .98rem; }
.si-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem !important; }
.si-reg { font-size: .68rem; font-weight: 800; padding: .1rem .45rem; border-radius: 5px; background: #15213A; color: #fff; } .si-fw { font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 5px; color: var(--a-accent); background: color-mix(in srgb, var(--a-accent) 12%, transparent); }
.si-a, .si-from { margin-top: .45rem !important; font-size: .82rem; color: var(--a-fg-3); } .si-a a, .si-from a { color: var(--a-accent); font-weight: 700; text-decoration: none; }

/* Drop 1102: in the light theme the dashboard header is a light card like every other module's header — dashboards, the
   Report Center and the portal's dashboards alike. The dark theme keeps the navy header. */
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-hero { color: var(--a-fg); background: var(--a-card); border: 1px solid var(--a-border); box-shadow: 0 14px 30px -26px rgba(0, 20, 50, .35); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-hero::after { opacity: .3; }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-eyebrow { color: var(--a-fg-3); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-title { color: var(--a-fg); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-sub { color: var(--a-fg-2); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-period { color: var(--a-fg-3); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-period strong { color: var(--a-accent); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-periods { background: var(--a-bg-2); border-color: var(--a-border); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-pill { color: var(--a-fg-2); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-pill:hover { background: var(--a-card); color: var(--a-fg); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-pill.is-on { background: var(--dsh-accent); color: var(--dsh-deep); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-export { background: var(--dsh-primary); color: #fff; box-shadow: none; }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-gear { border-color: var(--a-border); color: var(--a-fg-2); }
:is([data-admin-theme="light"], html[data-theme="light"]) .dsh-gear:hover { background: var(--a-bg-2); color: var(--a-fg); }

/* drop 1126: maker-checker — a request waiting for approval on the item's own page */
.pa-wait { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; }
.pa-wait-t { min-width: 0; flex: 1 1 26rem; line-height: 1.6; }
.pa-wait-s { display: block; font-size: .82rem; opacity: .85; }
.pa-wait-a { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pa-wait-a form { display: inline; margin: 0; }
/* drop 1126: store order — refund with a credit note */
.sa-refund { display: grid; gap: .6rem; padding-top: .9rem; margin-top: .6rem; border-top: 1px solid var(--a-border); }
.sa-refund-h { margin: 0; font-weight: 700; }
.sa-refund .a-field { margin: 0; }
.sa-refund .btn-a { justify-self: start; }
/* drop 1126: store reconciliation */
.sa-kpis { --dsh-cols: 6; }
.sa-recon-range { align-self: end; padding-bottom: .55rem; }
.sa-recon .a-card-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; }
.sa-recon-bad { border-inline-start: 3px solid var(--a-danger, #dc2626); }
.sa-recon-warn { border-inline-start: 3px solid var(--a-warning, #d97706); }
.sa-recon-ok { margin: 0; }
@media (max-width: 1100px) { .sa-kpis { --dsh-cols: 3; } }
@media (max-width: 640px) { .sa-kpis { --dsh-cols: 2; } }
/* drop 1126: automation rule history */
.aur-hist { display: grid; gap: 16px; }
.aur-hist .a-card-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; }
