/* ============================================================
   SIC Dashboard-aligned design system (UI Render Spec 02.08.2026)
   ONE theme layer: design tokens + the shared app shell + restyles of the
   platform's existing component vocabulary (card/table/tiles/buttons/chips/
   filters/inputs), so every page migrates through this single file.
   Scoped to body.dd - loaded after styles.css and wins the cascade.
   ============================================================ */

:root {
  --sic-bg: #F4F6F9;
  --sic-surface: #FFFFFF;
  --sic-ink: #111827;
  --sic-ink-2: #344054;
  --sic-muted: #667085;
  --sic-faint: #98A2B3;
  --sic-border: #E4E7EC;
  --sic-border-strong: #D0D5DD;
  --sic-primary: #2E6BDE;
  --sic-primary-hover: #1F5CC7;
  --sic-primary-soft: #EAF1FF;
  --sic-navy: #10243A;
  --sic-success: #197A55;
  --sic-success-soft: #E8F6EF;
  --sic-warning: #A36C00;
  --sic-warning-soft: #FFF5DE;
  --sic-danger: #B42318;
  --sic-danger-soft: #FEEDEC;
  --sic-verify: #6941C6;
}

/* ---------------- base ---------------- */
body.dd { background: var(--sic-bg); color: var(--sic-ink);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body.dd a { color: var(--sic-primary); }
body.dd .app { background: var(--sic-bg); }
body.dd .main { background: var(--sic-bg); }
body.dd .content { max-width: 1112px; padding: 0 24px 40px; }
body.dd h1, body.dd h2, body.dd h3 { color: var(--sic-ink); }
body.dd ::selection { background: var(--sic-primary-soft); }
body.dd :focus-visible { outline: 2px solid var(--sic-primary); outline-offset: 2px; border-radius: 6px; }

/* ---------------- sidebar (SidebarNav) ---------------- */
body.dd .side { background: var(--sic-surface); border-right: 1px solid var(--sic-border);
  width: 240px; padding: 22px 14px; color: var(--sic-ink); }
body.dd .dd-logo { display: flex; gap: 9px; align-items: center; padding: 2px 10px 22px;
  font-weight: 800; font-size: 24px; letter-spacing: -.5px; color: var(--sic-ink); }
body.dd .dd-logo small { font-weight: 600; font-size: 12px; line-height: 1.15; letter-spacing: 0; }
body.dd .dd-logo img { height: 30px; width: auto; display: block; }
body.dd .dd-nav { display: flex; gap: 11px; align-items: center; padding: 10px 12px;
  border-radius: 10px; color: var(--sic-ink-2); font-weight: 550; margin: 1px 0; font-size: 14.5px; }
body.dd .dd-nav:hover { background: #F1F4F8; }
body.dd .dd-nav.on { background: var(--sic-primary-soft); color: var(--sic-primary);
  font-weight: 650; box-shadow: inset 3px 0 0 var(--sic-primary); }
body.dd .dd-nav svg { flex: 0 0 auto; }
body.dd .dd-side-bottom { margin-top: auto; border-top: 1px solid var(--sic-border); padding-top: 10px; }
/* 05.08.2026 (owner): the upgrade group + support/sign-out cluster sits at
   the BOTTOM of the rail. The rail must be a flex column on EVERY size for
   the auto margin to work (it was flex only in the mobile drawer). When the
   upgrade group exists it takes the auto margin; the bottom block then
   follows directly (operators keep theirs). */
body.dd .dd-sider { display: flex; flex-direction: column; }
body.dd .dd-upgrp ~ .dd-side-bottom { margin-top: 12px; }
/* 05.08.2026 (owner): topbar language/currency pills on the dd CI - the
   legacy gold hover/icon colors and 15px icons leaked through. */
body.dd .lang-switch, body.dd .cur-switch { background: var(--sic-surface); border: 1px solid var(--sic-border);
  border-radius: 12px; padding: 8px 12px; gap: 8px; }
body.dd .lang-switch:hover, body.dd .cur-switch:hover { border-color: var(--sic-primary); }
body.dd .cur-ico { color: var(--sic-primary); }
body.dd .cur-ico svg { width: 18px; height: 18px; }
body.dd .lang-switch select, body.dd .cur-switch select { font-size: 14px; font-weight: 650; color: var(--sic-ink); }
body.dd .dd-navgrp { margin-top: 14px; }
body.dd .dd-navgrp > b { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sic-faint); padding: 8px 12px 4px; }
body.dd .dd-navgrp .dd-nav { padding: 7px 12px; font-size: 13.5px; }

/* ---------------- topbar (GlobalTopbar) ---------------- */
body.dd .top { background: var(--sic-bg); border-bottom: 0; box-shadow: none;
  padding: 20px 24px 8px; position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px; }
body.dd .dd-search { flex: 1; max-width: 700px; display: flex; align-items: center; gap: 10px;
  background: var(--sic-surface); border: 1px solid var(--sic-border); border-radius: 12px;
  padding: 11px 14px; color: var(--sic-muted); cursor: text; font: inherit; text-align: left; }
body.dd .dd-search:hover { border-color: var(--sic-border-strong); }
body.dd .dd-kbd { border: 1px solid var(--sic-border); border-radius: 6px; padding: 1px 7px;
  font-size: 12px; color: var(--sic-muted); background: #FAFBFC; margin-left: auto; }
body.dd .dd-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
body.dd .dd-iconb { position: relative; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; color: #475569; background: transparent; border: 0; cursor: pointer; }
body.dd .dd-iconb:hover { background: #EEF1F5; }
body.dd .dd-dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--sic-primary); }
/* Credits pill + "+" as ONE joined control (04.08.2026): the plus reads as
   "buy credits" because it is part of the pill, not a stray button. */
body.dd .dd-credgrp { display: inline-flex; align-items: stretch; }
body.dd .dd-cred { display: flex; gap: 9px; align-items: center; background: var(--sic-surface);
  border: 1px solid var(--sic-border); border-radius: 12px; padding: 10px 16px;
  font-weight: 650; color: var(--sic-ink); font-size: 14.5px; white-space: nowrap; }
body.dd .dd-credgrp .dd-cred { border-radius: 12px 0 0 12px; border-right: 0; }
body.dd .dd-credgrp .dd-cred:only-child { border-radius: 12px; border-right: 1px solid var(--sic-border); }
body.dd .dd-cred-plus { display: grid; place-items: center; width: 38px;
  border: 1px solid var(--sic-primary); border-radius: 0 12px 12px 0;
  background: var(--sic-primary); color: #fff; font-size: 19px; font-weight: 700;
  line-height: 1; cursor: pointer; text-decoration: none; }
body.dd .dd-cred-plus:hover { background: #2458BC; color: #fff; }
/* Dashboard credits row: purchase CTA sits before the history link. */
body.dd .dd-credacts { display: flex; align-items: center; gap: 12px; margin-left: auto; }
body.dd .dd-credacts a { margin-left: 0; }
body.dd .dd-ava { display: flex; align-items: center; gap: 6px; color: var(--sic-muted); }
body.dd .dd-ava i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #DBE4F0; color: #33517A; font-style: normal; font-weight: 700; font-size: 14px; }
body.dd .dd-mini { display: flex; align-items: center; gap: 4px; }
body.dd .dd-mini select { border: 1px solid var(--sic-border); background: var(--sic-surface);
  border-radius: 8px; padding: 6px 6px; font: 600 12px Inter, sans-serif; color: var(--sic-ink-2); }
body.dd .bell-badge { background: var(--sic-danger); }

/* page header inside content */
body.dd .dd-ph { margin: 18px 0 4px; }
body.dd .dd-ph h1 { font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
body.dd .dd-ph p { color: var(--sic-muted); font-size: 15px; margin-top: 4px; }

/* ---------------- cards / metric tiles ---------------- */
body.dd .card { background: var(--sic-surface); border: 1px solid var(--sic-border);
  border-radius: 14px; box-shadow: none; padding: 20px 22px; }
body.dd .card > h2, body.dd .card .card-h h2 { font-size: 18px; font-weight: 750; color: var(--sic-ink); }
body.dd .card .card-sub, body.dd .card > p.sub { color: var(--sic-muted); }
body.dd .tiles .tile, body.dd .tile { background: var(--sic-surface); border: 1px solid var(--sic-border);
  border-radius: 14px; box-shadow: none; }
body.dd .tile b, body.dd .tile .t-v { color: var(--sic-ink); }
body.dd .tile.gold { background: var(--sic-navy); color: #fff; border-color: var(--sic-navy); }
body.dd .tile.gold b, body.dd .tile.gold span { color: #fff; }

/* ---------------- buttons ---------------- */
body.dd .btn, body.dd button.btn, body.dd .btn-sm, body.dd .gi-btn, body.dd .btn-primary,
body.dd button[type="submit"]:not(.ghost):not(.linklike):not(.dd-iconb) {
  background: var(--sic-primary); color: #fff; border: 1px solid var(--sic-primary);
  border-radius: 10px; font-weight: 650; }
body.dd .btn:hover, body.dd .btn-sm:hover, body.dd .gi-btn:hover,
body.dd button[type="submit"]:not(.ghost):not(.linklike):not(.dd-iconb):hover { background: var(--sic-primary-hover); }
body.dd .btn-sm.ghost, body.dd .ghost, body.dd .gi-btn2, body.dd .dd-open {
  background: var(--sic-surface); color: var(--sic-ink-2); border: 1px solid var(--sic-border-strong);
  border-radius: 10px; font-weight: 600; }
body.dd .btn-sm.ghost:hover, body.dd .ghost:hover, body.dd .gi-btn2:hover { background: #F1F4F8; color: var(--sic-ink); }
body.dd .btn[disabled], body.dd .btn-sm[disabled], body.dd button[disabled] { opacity: .5; cursor: not-allowed; }
body.dd .dd-cta { display: inline-block; border: 1.5px solid var(--sic-primary); color: var(--sic-primary);
  border-radius: 10px; padding: 9px 16px; font-weight: 650; font-size: 14px; background: var(--sic-surface); }
body.dd a:hover .dd-cta, body.dd .dd-cta:hover { background: var(--sic-primary); color: #fff; }

/* ---------------- inputs (TextInput / SelectInput / FilterBar) ---------------- */
body.dd input[type="text"], body.dd input[type="search"], body.dd input[type="email"],
body.dd input[type="password"], body.dd input[type="number"], body.dd input[type="date"],
body.dd input[type="url"], body.dd select, body.dd textarea {
  background: var(--sic-surface); border: 1px solid var(--sic-border-strong);
  border-radius: 10px; color: var(--sic-ink); min-height: 40px; padding: 8px 12px; font: inherit; }
body.dd input:focus, body.dd select:focus, body.dd textarea:focus {
  border-color: var(--sic-primary); box-shadow: 0 0 0 3px var(--sic-primary-soft); outline: none; }
body.dd input::placeholder, body.dd textarea::placeholder { color: var(--sic-faint); }
body.dd .filters, body.dd .v2-scopeform { background: var(--sic-surface); border: 1px solid var(--sic-border);
  border-radius: 14px; box-shadow: none; }
body.dd .filters label, body.dd .fld label { color: var(--sic-muted); font-size: 10px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------------- tables (DataTable) ---------------- */
body.dd table { background: var(--sic-surface); }
body.dd table th { background: #FAFBFC; color: var(--sic-muted); font-size: 10.5px;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--sic-border); }
body.dd table td { border-bottom: 1px solid var(--sic-border); color: var(--sic-ink-2); }
body.dd table tr:hover td { background: #FAFBFF; }

/* ---------------- status vocabulary (StatusChip / InlineAlert) ----------------
   Semantic rule table of the spec: green = official/confirmed/passed,
   amber = open/unverified, red = blocked/quarantine/invalid, violet = verify
   tier, blue = action/info, grey = neutral. Text label always present. */
body.dd .src-tag { border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; border: 0; }
body.dd .src-off, body.dd .st-ok, body.dd .c-done, body.dd .v-good, body.dd .ok
  { background: var(--sic-success-soft); color: var(--sic-success); }
body.dd .src-pending, body.dd .st-app, body.dd .c-building, body.dd .v-fair, body.dd .warn
  { background: var(--sic-warning-soft); color: var(--sic-warning); }
body.dd .v-over, body.dd .c-off, body.dd .st-bad, body.dd .err, body.dd .qa-warn
  { background: var(--sic-danger-soft); color: var(--sic-danger); }
body.dd .v-verify { background: #F4EBFF; color: var(--sic-verify); }
body.dd .v2-note { background: var(--sic-primary-soft); border: 1px solid #D5E3FB;
  border-radius: 12px; color: #31456E; }
body.dd .v2-note[style*="--red"], body.dd .v2-note.dd-danger { background: var(--sic-danger-soft);
  border-color: #F4C7C3; color: var(--sic-danger); }
body.dd .agent-flash.ag-ok { background: var(--sic-success-soft); color: var(--sic-success);
  border: 1px solid #BFE5D2; border-radius: 12px; }
body.dd .agent-flash.ag-err { background: var(--sic-danger-soft); color: var(--sic-danger);
  border: 1px solid #F4C7C3; border-radius: 12px; }

/* pills used by the dashboard + lists */
body.dd .dd-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; }
body.dd .dd-pill i { width: 7px; height: 7px; border-radius: 50%; }
body.dd .dd-pill.ok { background: var(--sic-success-soft); color: var(--sic-success); }
body.dd .dd-pill.ok i { background: #22A04F; }
body.dd .dd-pill.mid { background: var(--sic-warning-soft); color: var(--sic-warning); }
body.dd .dd-pill.mid i { background: #E3A30F; }

/* ---------------- workspace tabs / hero ---------------- */
body.dd .ws-tabs a, body.dd .v2-tabs a { border-radius: 10px 10px 0 0; color: var(--sic-muted); font-weight: 600; }
body.dd .ws-tabs a.on, body.dd .v2-tabs a.on { color: var(--sic-primary); border-bottom: 2px solid var(--sic-primary); }

/* ---------------- dashboard page (render 01) ---------------- */
body.dd .dd-h1 { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 8px 0 6px; }
body.dd .dd-sub { color: var(--sic-muted); font-size: 16px; margin-bottom: 24px; max-width: 72ch; }
/* Use-case cards (owner render, 04.08.2026): eyebrow, three equal cards with
   number + icon, checklist, transparent-cost chip, one CTA each - and the
   cost-guarantee band underneath. */
body.dd .dd-eyebrow { display: inline-block; margin-top: 26px; padding: 5px 12px; border-radius: 999px;
  background: #E9F0FC; color: var(--sic-primary); font-size: 11px; font-weight: 800;
  letter-spacing: .9px; text-transform: uppercase; }
body.dd .dd-ucs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-bottom: 18px; }
body.dd .dd-uc { background: var(--sic-surface); border: 1px solid var(--sic-border); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; box-shadow: 0 8px 22px rgba(16,36,58,.05); }
body.dd .dd-uc.on { border: 2px solid var(--sic-primary); padding: 21px; }
body.dd .dd-uc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
body.dd .dd-uc-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: #E9F0FC; color: var(--sic-primary); }
body.dd .dd-uc h3 { font-size: 18px; font-weight: 750; margin: 0 0 6px; }
body.dd .dd-uc > p { color: var(--sic-muted); font-size: 14px; margin: 0 0 16px; }
body.dd .dd-uc-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: var(--sic-faint, #8A97A8); margin-bottom: 8px; }
body.dd .dd-uc-list { list-style: none; margin: 0 0 16px; padding: 0; }
body.dd .dd-uc-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  color: var(--sic-ink); padding: 5px 0; }
body.dd .dd-uc-list li i { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  background: #EAF3EE; color: #2E7D4F; font-style: normal; font-size: 10px; display: grid; place-items: center; }
body.dd .dd-uc-foot { margin-top: auto; border-top: 1px solid var(--sic-border); padding-top: 14px; }
body.dd .dd-uc-cost { display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-bottom: 12px; }
body.dd .dd-uc-cost.c-blue { background: #E9F0FC; color: var(--sic-primary); }
body.dd .dd-uc-cost.c-violet { background: #EFEAFB; color: #6C4FD1; }
body.dd .dd-uc-cost.c-gold { background: #FBF3DF; color: #A16A12; }
body.dd a.dd-uc-cta { display: block; text-align: center; border-radius: 10px; padding: 12px 14px;
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  border: 1.5px solid var(--sic-primary); color: var(--sic-primary); background: var(--sic-surface); }
body.dd a.dd-uc-cta:hover { background: #E9F0FC; color: var(--sic-primary); }
body.dd a.dd-uc-cta.pri { background: var(--sic-primary); color: #fff; }
body.dd a.dd-uc-cta.pri:hover { background: #2458BC; color: #fff; }
body.dd .dd-costnote { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #EFF4FD;
  border: 1px solid #D8E4F8; border-radius: 14px; padding: 16px 20px; margin-bottom: 26px; }
body.dd .dd-cn-ic { color: var(--sic-primary); flex: 0 0 auto; display: grid; place-items: center; }
/* The text keeps a real minimum column - on narrow screens the button wraps
   to its own line instead of squeezing the sentence into a sliver. */
body.dd .dd-cn-t { flex: 1 1 260px; min-width: 0; }
body.dd .dd-cn-t b { display: block; font-size: 14.5px; }
body.dd .dd-cn-t span { color: var(--sic-muted); font-size: 13px; }
body.dd .dd-cn-btn { flex: 0 0 auto; border: 1px solid var(--sic-border-strong); border-radius: 10px;
  background: var(--sic-surface); color: var(--sic-ink); font-weight: 650; font-size: 13.5px;
  padding: 10px 16px; text-decoration: none; }
body.dd .dd-cn-btn:hover { border-color: var(--sic-primary); color: var(--sic-primary); }
body.dd .dd-intents { display: grid; grid-template-columns: 420px 1fr; gap: 0; margin-bottom: 24px; position: relative; }
body.dd .dd-int1 { background: var(--sic-surface); border: 2px solid var(--sic-primary); border-radius: 14px;
  padding: 22px; position: relative; z-index: 1; display: flex; gap: 16px; }
body.dd .dd-arrow { position: absolute; left: 411px; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; background: var(--sic-surface);
  border: 1px solid var(--sic-border); display: grid; place-items: center; color: var(--sic-faint); font-size: 14px; }
body.dd .dd-int23 { background: var(--sic-surface); border: 1px solid var(--sic-border); border-radius: 14px;
  margin-left: 14px; display: grid; grid-template-columns: 1fr 1fr; }
body.dd .dd-int { padding: 26px 24px; display: flex; gap: 16px; }
body.dd .dd-int + .dd-int { border-left: 1px solid var(--sic-border); }
body.dd .dd-num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--sic-border-strong); color: var(--sic-ink-2); display: grid;
  place-items: center; font-size: 13px; font-weight: 650; }
body.dd .dd-int1 .dd-num { border-color: var(--sic-primary); color: var(--sic-primary); }
body.dd .dd-ill { color: #3B5BD7; margin: 6px 0 10px; }
body.dd .dd-int h3, body.dd .dd-int1 h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
body.dd .dd-int p, body.dd .dd-int1 p { color: var(--sic-muted); font-size: 14px; }
body.dd .dd-go { display: flex; margin-top: 14px; border: 1px solid var(--sic-border); border-radius: 10px;
  overflow: hidden; background: var(--sic-surface); }
body.dd .dd-go input { border: 0; border-radius: 0; min-height: 0; min-width: 0; flex: 1; padding: 10px 12px; font-size: 14px; }
body.dd .dd-go input:focus { box-shadow: none; }
body.dd .dd-go button { border: 0; border-radius: 0; background: var(--sic-primary); color: #fff;
  font: 600 14px Inter, sans-serif; padding: 0 16px; cursor: pointer; }
body.dd .dd-cols { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
body.dd .dd-card { background: var(--sic-surface); border: 1px solid var(--sic-border); border-radius: 14px; padding: 20px 22px; }
body.dd .dd-card h2 { font-size: 16.5px; font-weight: 750; margin-bottom: 14px; }
body.dd .dd-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--sic-border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
body.dd .dd-row-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: #EAF3EE; color: #2E7D4F; }
body.dd .dd-row:nth-child(3) .dd-row-ic { background: var(--sic-warning-soft); color: #A16A12; }
body.dd .dd-row:nth-child(4) .dd-row-ic { background: #E9EFFB; color: #3557B7; }
body.dd .dd-row-t { min-width: 170px; }
body.dd .dd-row-t b { display: block; font-size: 15px; }
body.dd .dd-row-t span { color: var(--sic-muted); font-size: 13.5px; }
body.dd .dd-row-u { margin-left: auto; min-width: 150px; }
body.dd .dd-row-u span { display: block; color: var(--sic-muted); font-size: 12.5px; }
body.dd .dd-row-u b { font-weight: 600; font-size: 13.5px; }
body.dd .dd-open { padding: 8px 16px; font-size: 14px; }
body.dd .dd-act { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--sic-border); }
body.dd .dd-act:last-of-type { border-bottom: 0; }
body.dd .dd-act-ic { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
body.dd .a-upload { background: #E9EFFB; color: #3557B7; }
body.dd .a-clock { background: var(--sic-warning-soft); color: #A16A12; }
body.dd .a-check { background: var(--sic-success-soft); color: #1D7A3E; }
body.dd .dd-act p { font-size: 14px; font-weight: 550; }
body.dd .dd-act span { color: var(--sic-muted); font-size: 12.5px; }
/* Live activity rows are LINKS into the publication detail (04.08.2026). */
body.dd a.dd-act { text-decoration: none; color: var(--sic-ink); }
body.dd a.dd-act:hover p { color: var(--sic-primary); }
body.dd .dd-act-all { display: inline-block; margin-top: 10px; color: var(--sic-primary);
  font-weight: 650; font-size: 13.5px; text-decoration: none; }
body.dd .dd-act-all:hover { text-decoration: underline; }
body.dd .dd-credrow { display: flex; align-items: center; border-top: 1px solid var(--sic-border);
  margin-top: 8px; padding-top: 14px; }
body.dd .dd-credrow b { display: block; font-size: 14.5px; }
body.dd .dd-credrow span { color: var(--sic-muted); font-size: 12.5px; }
body.dd .dd-credrow a { margin-left: auto; color: var(--sic-primary); font-weight: 600; font-size: 14px; }
body.dd .dd-note { display: flex; gap: 12px; align-items: center; background: var(--sic-primary-soft);
  border: 1px solid #DBE7FD; border-radius: 12px; padding: 14px 18px; margin-top: 22px;
  color: #31456E; font-size: 14.5px; }
body.dd .dd-note .dd-info { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--sic-primary); color: #fff; }
body.dd .dd-empty { color: var(--sic-muted); font-size: 14px; }

/* ---------------- responsive (spec: ≥1280 / 768–1279 / <768) ---------------- */
@media (max-width: 1279px) {
  body.dd .dd-intents { grid-template-columns: 1fr; }
  body.dd .dd-int23 { margin: 14px 0 0; }
  body.dd .dd-arrow { display: none; }
  body.dd .dd-cols { grid-template-columns: 1fr; }
  body.dd .dd-ucs { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body.dd .top { flex-wrap: wrap; gap: 10px; padding: 12px 16px 8px; }
  body.dd .dd-search { order: 2; flex: 1 1 100%; max-width: none; }
  body.dd .dd-tools { order: 1; margin-left: auto; gap: 8px; }
  body.dd .content { padding: 0 16px 32px; }
  body.dd .dd-h1 { font-size: 30px; }
}
@media (max-width: 640px) {
  body.dd .dd-h1 { font-size: 26px; letter-spacing: -.5px; }
  body.dd .dd-kbd { display: none; }
  body.dd .dd-cred { padding: 9px 12px; font-size: 13.5px; }
  body.dd .dd-int1, body.dd .dd-int { padding: 18px 16px; }
  body.dd .dd-go { flex-direction: column; }
  body.dd .dd-go button { padding: 12px; width: 100%; }
  body.dd .dd-cn-btn { flex: 1 1 100%; text-align: center; }
  body.dd .dd-row { flex-wrap: wrap; row-gap: 8px; }
  body.dd .dd-row-t { flex: 1 1 60%; min-width: 0; }
  body.dd .dd-row-u { margin-left: 54px; flex: 1 1 100%; display: flex; gap: 6px; align-items: baseline; }
  body.dd .dd-pill { margin-left: 54px; }
  body.dd .dd-open { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  body.dd *, body.dd *::before, body.dd *::after { animation: none !important; transition: none !important; }
}

/* ---------------- auth shell (renders 30/31) ---------------- */
body.dd-auth { background: var(--sic-bg); margin: 0;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--sic-ink); }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-hero { background: linear-gradient(160deg, #1E4FB8 0%, #2E6BDE 55%, #3B7BEA 100%);
  color: #fff; padding: 56px 52px; display: flex; flex-direction: column; }
.auth-hero .brand { font-weight: 800; font-size: 24px; letter-spacing: -.4px; }
.auth-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -.8px; line-height: 1.2; margin: auto 0 18px; }
.auth-hero ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 12px; }
.auth-hero li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; opacity: .95; }
.auth-hero li::before { content: "✓"; font-weight: 800; }
.auth-hero .foot { font-size: 12px; opacity: .7; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-card .sub { color: var(--sic-muted); font-size: 14px; margin-bottom: 22px; }
.auth-card label { display: block; font-size: 12.5px; font-weight: 650; color: var(--sic-ink-2); margin: 14px 0 6px; }
.auth-card input, .auth-card select { width: 100%; box-sizing: border-box; background: var(--sic-surface);
  border: 1px solid var(--sic-border-strong); border-radius: 10px; min-height: 44px; padding: 10px 12px; font: inherit; }
.auth-card input:focus { border-color: var(--sic-primary); box-shadow: 0 0 0 3px var(--sic-primary-soft); outline: none; }
.auth-card .auth-btn { width: 100%; margin-top: 20px; background: var(--sic-primary); color: #fff;
  border: 0; border-radius: 10px; min-height: 48px; font: 700 15px Inter, sans-serif; cursor: pointer; }
.auth-card .auth-btn:hover { background: var(--sic-primary-hover); }
.auth-card .auth-alt { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--sic-muted); }
.auth-card .login-err { background: var(--sic-danger-soft); color: var(--sic-danger);
  border: 1px solid #F4C7C3; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 8px; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 24px; }
  .auth-hero h1 { font-size: 24px; margin-top: 18px; }
}

/* ---- polish pass 2 ---- */
.auth-hero h1, .auth-hero li, .auth-hero .brand { color: #fff; }
body.dd .dd-kbd { white-space: nowrap; }
body.dd .v2-jobchip[hidden], body.dd #v2-jobchip[hidden] { display: none !important; }
/* legacy gold/navy CTAs join the primary system */
body.dd .sf-scan, body.dd .btn-gold, body.dd .cta-gold, body.dd summary.sf-scan {
  background: var(--sic-primary) !important; color: #fff !important; border-color: var(--sic-primary) !important; }
body.dd .sf-scan:hover { background: var(--sic-primary-hover) !important; }
/* chat bubble: navy per spec, never covering content on print */
body.dd .chat-fab { background: var(--sic-navy); }
@media print { body.dd .chat-fab, body.dd .side, body.dd .top { display: none !important; } }

/* ============================================================
   Mobile optimisation pass (spec §Responsive: >=1280 / 768-1279 / <768)
   Builds on the existing drawer (styles.css @900: .side off-canvas,
   [data-nav-toggle] + .scrim). Everything below refines the dd shell and
   the shared components for touch.
   ============================================================ */

/* -- tablet 768-1279: two-column rasters, drawer nav, sticky actions -- */
@media (max-width: 1279px) {
  body.dd .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dd .content { max-width: none; }
}

/* -- the dd drawer: keep the white sidebar usable as an off-canvas panel -- */
@media (max-width: 900px) {
  body.dd .dd-int23 { grid-template-columns: 1fr; }
  body.dd .dd-int + .dd-int { border-left: 0; border-top: 1px solid var(--sic-border); }
  body.dd .side { display: flex; flex-direction: column; overflow-y: auto;
    padding: 18px 12px; box-shadow: 0 22px 60px rgba(16, 36, 58, .35); }
  body.dd .navtoggle { display: inline-flex; min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center; border: 1px solid var(--sic-border-strong);
    border-radius: 10px; background: var(--sic-surface); color: var(--sic-ink); }
  body.dd .top { padding: 12px 16px 8px; }
}

/* -- phone <768: reduced topbar (search, bell, profile; credits reachable), 
      single-column cards, touch targets, full-width dialogs -- */
@media (max-width: 767px) {
  body.dd .dd-mini, body.dd .v2-jobchip, body.dd .top .dd-iconb[href="/help"] { display: none; }
  body.dd .dd-tools { gap: 8px; }
  body.dd .dd-cred { padding: 9px 12px; font-size: 13px; gap: 6px; }
  body.dd .dd-cred svg { width: 15px; height: 15px; }
  body.dd .dd-search { order: 0; flex: 1 1 auto; min-width: 0; padding: 10px 12px; }
  body.dd .dd-kbd { display: none; }
  body.dd .dd-ava i { width: 40px; height: 40px; }
  body.dd .content { padding: 0 14px 88px; }
  body.dd .dd-ph h1 { font-size: 24px; }
  body.dd .dd-ph p { font-size: 14px; }
  /* single column everywhere */
  body.dd .two, body.dd .two-col, body.dd .dd-cols, body.dd .g-grid, body.dd .mgrid,
  body.dd .pc-grid, body.dd .bal-grid, body.dd .ws-fgrid, body.dd .v2-cols
    { grid-template-columns: 1fr !important; }
  body.dd .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* touch targets: 44px minimum for standalone actions */
  body.dd .btn, body.dd .btn-sm, body.dd .dd-open, body.dd .gi-btn2, body.dd .dd-cta,
  body.dd button[type="submit"] { min-height: 44px; display: inline-flex;
    align-items: center; justify-content: center; padding-left: 16px; padding-right: 16px; }
  body.dd table .btn-sm { min-height: 36px; }   /* compact-table exception per spec */
  /* every remaining standalone control reaches 44px too (pw-eye lives inside
     a 44px input and is exempt; icon buttons grow to a full target) */
  body.dd button:not(.pw-eye):not(.dd-iconb) { min-height: 44px; }
  body.dd .dd-iconb { width: 44px; height: 44px; }
  body.dd .ws-tabs a, body.dd .v2-tabs a { min-height: 44px; display: inline-flex; align-items: center; }
  body.dd input, body.dd select, body.dd textarea { min-height: 44px; font-size: 16px; }
  /* filter bars stack, controls full width */
  body.dd .filters { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  body.dd .filters > div, body.dd .filters select, body.dd .filters input { width: 100%; }
  body.dd input[type="checkbox"], body.dd input[type="radio"] {
    width: auto !important; min-height: 0 !important; flex: 0 0 auto; }
  body.dd .filters label.scan-qf-permit, body.dd label.scan-qf-permit {
    display: flex; align-items: center; gap: 8px; white-space: normal; }
  body.dd .filters button { width: 100%; }
  /* tables: horizontal scroll inside their card/own container - overflow is
     FIXED at the source, never masked with a page-level clip */
  body.dd .card-b, body.dd .tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.dd table.tbl:not(.stackm) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* workspace: hero shrinks, tabs scroll horizontally, status stays visible */
  body.dd .cover, body.dd .pv-hero { min-height: 150px; }
  body.dd .ws-tabs, body.dd .v2-tabs { overflow-x: auto; white-space: nowrap;
    scrollbar-width: none; display: flex; gap: 4px; }
  body.dd .ws-tabs::-webkit-scrollbar, body.dd .v2-tabs::-webkit-scrollbar { display: none; }
  /* dialogs & overlays near-fullwidth with 16px margins */
  body.dd .modal, body.dd .pricing-modal .pm-card, body.dd .ck-panel, body.dd .v2c-card
    { width: calc(100vw - 32px) !important; max-width: calc(100vw - 32px) !important;
      left: 16px !important; right: 16px !important; margin: 0 auto; }
  body.dd .chat-panel { width: calc(100vw - 24px) !important; right: 12px !important;
    max-height: 78vh; }
  body.dd .chat-fab { right: 14px; bottom: 14px; }
  body.dd .kpi-spark { display: none; }
  /* map keeps a usable height without dominating the page */
  body.dd .leafmap { height: 300px; }
}
@media (max-width: 400px) {
  body.dd .tiles { grid-template-columns: 1fr; }
  body.dd .dd-cred span { display: none; }
}

/* ---- mobile-review fixes (confirmed findings) ---- */
body.dd .ws-box { background: var(--sic-surface); border: 1px solid var(--sic-border); color: var(--sic-ink); }
body.dd .ws-box .ws-h { color: var(--sic-muted); }
body.dd .ws-box a.btn-sm, body.dd .ws-box .btn-sm { background: var(--sic-primary); color: #fff; }
body.dd .ws-box a.btn-sm.ghost { background: var(--sic-surface); color: var(--sic-ink-2); }
/* "Next step" CTA (a.v2-go.ws-cta): the legacy navy --blue background met the
   dd link colour (body.dd a beats .v2-go on specificity) - blue text on slate
   was unreadable. Under dd every v2-go is a proper primary button. */
body.dd .v2-go, body.dd a.v2-go, body.dd a.ws-cta { background: var(--sic-primary); color: #fff; }
body.dd .v2-go:hover, body.dd a.ws-cta:hover { background: #2458BC; color: #fff; }
/* hero banner: darkening scrim keeps white title/subtitle readable on pale imagery */
body.dd .hero-banner::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,36,58,.08) 25%, rgba(16,36,58,.62) 100%); }
body.dd .hero-banner > div, body.dd .hero-banner > a { position: relative; z-index: 2; }
/* long labels/links wrap instead of squeezing neighbour columns */
body.dd .tbl td { overflow-wrap: anywhere; }
/* tablets are touch devices too: standalone controls reach the spec's 40px
   floor between 768 and 1279 (phones already enforce 44px) */
@media (min-width: 768px) and (max-width: 1279px) {
  body.dd .btn, body.dd .btn-sm, body.dd .ghost, body.dd .dd-open, body.dd .dd-cta,
  body.dd button:not(.pw-eye):not(.dd-iconb) { min-height: 40px; }
  body.dd table .btn-sm { min-height: 34px; }
}
@media (max-width: 767px) {
  /* monitor intro: source-status rows wrap instead of clipping */
  body.dd .nt-src-grid { grid-template-columns: 1fr !important; }
  body.dd .nt-src { flex-wrap: wrap; white-space: normal; }
  body.dd .nt-intro { grid-template-columns: 1fr !important; }
  body.dd .nt-intro p, body.dd .nt-intro span, body.dd .nt-how span { white-space: normal !important; }
}

/* ===== Credits & Billing flow (renders 37-42, 03.08.2026) ================= */
body.dd .cb-tabs { display: flex; align-items: center; gap: 4px; background: var(--sic-surface);
  border: 1px solid var(--sic-border); border-radius: 14px; padding: 8px; margin-bottom: 16px; }
body.dd .cb-tab { padding: 9px 20px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: var(--sic-ink-2); }
body.dd .cb-tab.on { background: #E8EFFC; color: var(--sic-primary); }
body.dd .cb-tabs-note { margin-left: auto; padding-right: 10px; white-space: nowrap; }
body.dd .cb-cols { display: grid; grid-template-columns: 260px 1fr; gap: 14px; margin-bottom: 18px; }
body.dd .cb-saldo { background: #EAF1FC; border: 1px solid #D3E1F8; border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 4px; }
body.dd .cb-saldo b { font-size: 24px; }
body.dd .cb-saldo-err { background: #FEF3F2; border-color: #F5C6C0; }
body.dd .cb-saldo-err b { color: var(--sic-danger); }
body.dd .cb-k { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sic-muted); }
body.dd .cb-intro b { font-size: 16px; }
body.dd .cb-green { color: var(--sic-success); font-weight: 600; font-size: 13.5px; margin: 6px 0 0; }
body.dd .cb-secth { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 4px 2px 10px; flex-wrap: wrap; }
body.dd .cb-secth h2 { margin: 0; font-size: 19px; }
body.dd .cb-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px; margin-bottom: 18px; }
body.dd .cb-pack { position: relative; display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  background: var(--sic-surface); border: 1.5px solid var(--sic-border); border-radius: 14px; padding: 18px; }
body.dd .cb-pack input { position: absolute; opacity: 0; pointer-events: none; }
body.dd .cb-pack.sel { border-color: var(--sic-primary); background: #F3F7FE;
  box-shadow: 0 0 0 3px rgba(46,107,222,.12); }
body.dd .cb-badge { position: absolute; top: 14px; right: 14px; color: var(--sic-primary);
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
body.dd .cb-tier { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sic-muted); }
body.dd .cb-n { font-size: 30px; line-height: 1.1; }
body.dd .cb-cr { color: var(--sic-muted); font-size: 13px; }
body.dd .cb-price { font-size: 21px; font-weight: 750; margin-top: 8px; padding-top: 10px;
  border-top: 1px solid var(--sic-border); }
body.dd .cb-price s { color: var(--sic-muted); font-weight: 500; font-size: 15px; margin-right: 4px; }
body.dd .cb-feat { color: var(--sic-ink-2); font-size: 13px; margin-top: 4px; }
body.dd .cb-choose { margin-top: 12px; text-align: center; border: 1.5px solid var(--sic-primary);
  color: var(--sic-primary); border-radius: 10px; padding: 9px; font-weight: 650; font-size: 14px; }
body.dd .cb-pack.sel .cb-choose { background: var(--sic-primary); color: #fff; }
/* Render additions (04.08.2026): use-case description, "Reicht für" box and
   the capacity headline. The choose button sits at the bottom of every card. */
body.dd .cb-h1 { font-size: 32px; font-weight: 800; letter-spacing: -.8px; margin: 8px 0 8px; }
body.dd .cb-pack .cb-choose { margin-top: auto; }
body.dd .cb-desc { color: var(--sic-muted); font-size: 13px; margin-top: 8px; min-height: 34px; }
body.dd .cb-rf { display: block; margin: 10px 0 8px; padding: 10px 12px; border: 1px solid var(--sic-border);
  border-radius: 10px; background: var(--sic-bg, #F6F8FB); }
body.dd .cb-pack.sel .cb-rf { background: #E9F0FC; border-color: #C9DBF7; }
body.dd .cb-rf i { display: block; font-style: normal; font-size: 10px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase; color: var(--sic-faint, #8A97A8); margin-bottom: 3px; }
body.dd .cb-rf b { font-size: 13px; }
/* ---- «Funktionen» (owner mockups, 04.08.2026) ---------------------------- */
/* Sidebar: numbered sub-entries under the Functions item while one is active. */
body.dd .dd-fn-chev { margin-left: auto; color: var(--sic-faint, #8A97A8); font-size: 12px; }
body.dd .dd-fnsub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px; padding-left: 14px; position: relative; }
body.dd .dd-fnsub::before { content: ""; position: absolute; left: 22px; top: 4px; bottom: 4px; width: 2px;
  background: var(--sic-border); border-radius: 2px; }
body.dd .dd-fn { display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 22px; border-radius: 9px;
  color: var(--sic-ink-2); font-weight: 600; font-size: 13px; text-decoration: none; position: relative; }
body.dd .dd-fn i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #C6D2E4;
  color: var(--sic-muted); font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  background: var(--sic-surface); position: relative; z-index: 1; margin-left: -8px; flex: 0 0 auto; }
body.dd .dd-fn:hover { background: #EEF3FB; color: var(--sic-primary); }
body.dd .dd-fn.on { background: #E9F0FC; color: var(--sic-primary); }
body.dd .dd-fn.on i { border-color: var(--sic-primary); color: #fff; background: var(--sic-primary); }
/* Overview page cards */
body.dd .fno-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; max-width: 1100px; }
body.dd .fno-card { background: var(--sic-surface); border: 1px solid var(--sic-border); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; box-shadow: 0 8px 22px rgba(16,36,58,.05); }
body.dd .fno-card.on { border: 2px solid var(--sic-primary); padding: 21px; }
body.dd .fno-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
body.dd .fno-ic { width: 44px; height: 44px; border-radius: 12px; background: #E9F0FC; color: var(--sic-primary);
  display: grid; place-items: center; }
body.dd .fno-card h3 { font-size: 17.5px; margin: 0 0 6px; }
body.dd .fno-card p { color: var(--sic-muted); font-size: 13.5px; margin: 0 0 14px; }
body.dd .fno-cta { margin-top: auto; text-align: center; border: 1.5px solid var(--sic-primary); color: var(--sic-primary);
  border-radius: 10px; padding: 11px; font-weight: 700; text-decoration: none; }
body.dd .fno-cta.pri { background: var(--sic-primary); color: #fff; }
body.dd .fno-cta:hover { background: #E9F0FC; color: var(--sic-primary); }
body.dd .fno-cta.pri:hover { background: #2458BC; color: #fff; }
/* Funktion 1: search surface with mode toggle + map */
body.dd .fd-crumb { color: var(--sic-muted); font-size: 12.5px; margin: 2px 0 4px; }
body.dd .fd-crumb b { color: var(--sic-primary); }
body.dd .fd-h1 { font-size: 28px; font-weight: 800; letter-spacing: -.6px; margin: 0 0 4px; }
body.dd .fd-grid { display: grid; grid-template-columns: 440px 1fr; gap: 20px; align-items: start; }
body.dd .fd-box { background: var(--sic-surface); border: 1px solid var(--sic-border); border-radius: 16px;
  box-shadow: 0 8px 22px rgba(16,36,58,.05); overflow: hidden; }
body.dd .fd-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-bottom: 1px solid var(--sic-border); }
body.dd .fd-mode { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px;
  border-radius: 10px; font: 700 14px Inter, sans-serif; color: var(--sic-ink-2); cursor: pointer;
  border: 1.5px solid transparent; background: none; }
body.dd .fd-mode.on { background: #E9F0FC; color: var(--sic-primary); border-color: var(--sic-primary); }
body.dd .fd-body { display: block; padding: 18px; }
/* display:block above would defeat the hidden attribute - the inactive mode
   panel must actually disappear. */
body.dd .fd-body[hidden] { display: none; }
body.dd #fd-map-c { background: #EAF0E4; }
body.dd .fd-urlinp { width: 100%; border: 1.6px solid var(--sic-primary); border-radius: 11px; padding: 13px;
  font: inherit; color: var(--sic-ink); resize: none; background: #F8FAFE; margin-bottom: 12px; }
body.dd .fd-hint { display: flex; gap: 9px; align-items: flex-start; background: #EFF4FD; border: 1px solid #D8E4F8;
  border-radius: 11px; padding: 11px 13px; font-size: 12.5px; color: var(--sic-ink-2); margin-top: 12px; }
body.dd .fd-recent { margin-top: 16px; }
body.dd .fd-recent h3 { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sic-muted); margin: 0 0 8px; }
body.dd .fd-rrow { display: flex; align-items: center; gap: 10px; background: var(--sic-surface);
  border: 1px solid var(--sic-border); border-radius: 12px; padding: 11px 14px; margin-bottom: 8px; }
body.dd .fd-ric { width: 32px; height: 32px; border-radius: 9px; background: #E9F0FC; display: grid; place-items: center; flex: 0 0 auto; }
body.dd .fd-rt { flex: 1; min-width: 0; }
body.dd .fd-rt b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dd .fd-rt span { color: var(--sic-muted); font-size: 12px; }
body.dd .fd-rgo { border: 1px solid var(--sic-border); border-radius: 9px; padding: 7px 12px; font-weight: 650;
  font-size: 12.5px; color: var(--sic-primary); text-decoration: none; white-space: nowrap; }
body.dd .fd-rgo.alt { color: var(--sic-ink-2); }
body.dd .fd-rgo:hover { border-color: var(--sic-primary); }
body.dd .fd-map { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--sic-border); }
body.dd #fd-map-c { height: 620px; }
body.dd .fd-maplbl { position: absolute; top: 12px; left: 52px; z-index: 800; background: #fff;
  border: 1px solid var(--sic-border); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 12.5px;
  box-shadow: 0 6px 16px rgba(16,36,58,.08); }
body.dd .fd-mapnote { position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 800;
  background: rgba(255,255,255,.94); border: 1px solid var(--sic-border); border-radius: 10px;
  padding: 9px 12px; font-size: 12px; color: var(--sic-ink-2); }
@media (max-width: 1100px) {
  body.dd .fd-grid { grid-template-columns: 1fr; }
  body.dd #fd-map-c { height: 340px; }
  body.dd .fno-grid { grid-template-columns: 1fr; }
}
/* The full flow inside the pricing modal: same vocabulary, tighter cards. */
body.dd .up-panel .cb-packs { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
body.dd .up-panel .cb-2col { grid-template-columns: 1fr 300px; }
@media (max-width: 900px) { body.dd .up-panel .cb-2col { grid-template-columns: 1fr; } }
body.dd .cb-2col { display: grid; grid-template-columns: 1fr 340px; gap: 14px; margin-bottom: 18px; }
body.dd .cb-2col-wide { grid-template-columns: 1fr 320px; align-items: start; }
body.dd .cb-rail { display: flex; flex-direction: column; gap: 14px; }
body.dd .cb-howrow { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0;
  color: var(--sic-ink-2); font-size: 13.5px; }
body.dd .cb-how { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: #E8EFFC; color: var(--sic-primary); font-weight: 700; font-size: 12px; }
body.dd .cb-agree { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0; font-size: 13.5px;
  cursor: pointer; }
body.dd .cb-agree input { margin-top: 2px; }
body.dd .cb-cta { display: inline-block; text-align: center; background: var(--sic-primary); color: #fff;
  border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
body.dd .cb-cta:hover { background: #2458BC; color: #fff; }
body.dd .cb-cta:disabled { opacity: .5; cursor: not-allowed; }
body.dd .cb-sum .cb-sumrow { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0;
  font-size: 14px; }
body.dd .cb-sum .cb-total { border-top: 1px solid var(--sic-border); padding-top: 12px; font-size: 15px; }
body.dd .cb-sum .cb-total b { font-size: 22px; }
body.dd .cb-blue { color: var(--sic-primary); font-weight: 700; }
body.dd .cb-newsal { background: #EAF1FC; border: 1px solid #D3E1F8; border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 3px; margin: 12px 0; }
body.dd .cb-newsal b { font-size: 20px; color: var(--sic-primary); }
body.dd .cb-shield { color: var(--sic-success); font-weight: 600; font-size: 13px; }
body.dd .linklike { background: none; border: 0; padding: 0; color: var(--sic-primary); cursor: pointer;
  font-size: 13px; text-decoration: underline; }
/* confirm modal */
body.dd .cb-confirm { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center;
  justify-content: center; }
body.dd .cb-confirm[hidden] { display: none; }
body.dd .cb-confirm .modal-bg { position: absolute; inset: 0; background: rgba(16,24,40,.55); }
body.dd .cb-cbox { position: relative; background: var(--sic-surface); border-radius: 18px;
  padding: 28px 30px; width: min(560px, calc(100vw - 32px)); max-height: 90vh; overflow: auto;
  box-shadow: 0 24px 60px rgba(16,24,40,.28); }
body.dd .cb-cshield { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #E8EFFC; font-size: 21px; margin-bottom: 10px; }
body.dd .cb-cbox h3 { margin: 0 0 6px; font-size: 20px; }
body.dd .cb-camount { background: #EAF1FC; border: 1px solid #D3E1F8; border-radius: 14px;
  padding: 18px; margin: 14px 0; display: flex; flex-direction: column; gap: 2px; }
body.dd .cb-camount .cb-k { color: var(--sic-primary); }
body.dd .cb-camount b { font-size: 28px; }
body.dd .cb-crow { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0;
  border-bottom: 1px solid var(--sic-border); font-size: 13.5px; }
body.dd .cb-crow span { color: var(--sic-muted); }
body.dd .cb-cbtns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
/* success / failed banners */
body.dd .cb-banner { display: flex; gap: 16px; align-items: flex-start; border-radius: 16px;
  padding: 22px 24px; margin-bottom: 16px; }
body.dd .cb-banner h2 { margin: 0 0 4px; font-size: 21px; }
body.dd .cb-banner p { margin: 0 0 4px; }
body.dd .cb-bico { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; color: #fff; font-size: 21px; font-weight: 700; }
body.dd .cb-ok { background: #F0FAF4; border: 1px solid #C9E8D5; }
body.dd .cb-ok h2 { color: var(--sic-success); }
body.dd .cb-ok .cb-bico { background: var(--sic-success); }
body.dd .cb-err { background: #FEF3F2; border: 1px solid #F5C6C0; }
body.dd .cb-err h2 { color: var(--sic-danger); }
body.dd .cb-err .cb-bico { background: var(--sic-danger); }
body.dd .cb-bbtns { margin-left: auto; display: flex; flex-direction: column; gap: 9px; }
/* purchases tab */
body.dd .cb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-bottom: 16px; }
body.dd .cb-kpi { background: var(--sic-surface); border: 1px solid var(--sic-border);
  border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; }
body.dd .cb-kpi b { font-size: 19px; }
body.dd .cb-kpi-blue { background: #EAF1FC; border-color: #D3E1F8; }
body.dd .cb-kpi-dark { background: var(--sic-navy); border-color: var(--sic-navy); }
body.dd .cb-kpi-dark .cb-k { color: #B6C3D4; }
body.dd .cb-kpi-dark b { color: #fff; }
body.dd .cb-paid { display: inline-block; background: #F0FAF4; color: var(--sic-success);
  border-radius: 999px; padding: 3px 11px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; }
body.dd .cb-empty { text-align: center; padding: 26px 16px; border: 1px dashed var(--sic-border);
  border-radius: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
body.dd .cb-card { display: flex; gap: 9px; align-items: center; margin: 10px 0; font-weight: 600; }
body.dd .cb-pmbtns { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
body.dd .cb-apstate { display: inline-block; margin-left: 8px; border-radius: 999px; padding: 2px 10px;
  font-size: 11.5px; font-weight: 800; background: #F2F4F7; color: var(--sic-muted); }
body.dd .cb-apstate.on { background: #F0FAF4; color: var(--sic-success); }
body.dd .cb-apform { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
body.dd .cb-apform label { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 13.5px; }
body.dd .cb-apform select { max-width: 190px; }
@media (max-width: 1100px) {
  body.dd .cb-2col, body.dd .cb-2col-wide { grid-template-columns: 1fr; }
  body.dd .cb-cols { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body.dd .cb-tabs { flex-wrap: wrap; }
  body.dd .cb-tabs-note { display: none; }
  body.dd .cb-banner { flex-wrap: wrap; }
  body.dd .cb-bbtns { margin-left: 0; flex-direction: row; flex-wrap: wrap; }
}
/* Legacy purchase buttons inherit the dd primary - no gold remnants. */
body.dd .v2-buy { background: var(--sic-primary); border-color: var(--sic-primary); color: #fff;
  border-radius: 10px; font-weight: 650; }
body.dd .v2-buy:hover { background: var(--sic-primary-hover); color: #fff; }
/* Sidebar quick-upgrade group (Top-up / Boost / Unlimited -> pricing modal).
   The first cut put a "Get" pill after a flexible label: in a 240px rail the
   label wrapped and pushed the pill straight out of the card. The row is now
   a 3-column GRID - icon chip | label | chevron - so the affordance is fixed
   width, the label owns the remaining space, and nothing can overflow. */
body.dd .dd-upgrp { margin-top: auto; border: 1px solid #DCE6F6; border-radius: 14px;
  padding: 6px; background: linear-gradient(180deg, #F4F8FE 0%, #FBFCFE 100%); overflow: hidden; }
body.dd .dd-upgrp > b { display: flex; align-items: center; gap: 6px; font-size: 10px;
  font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--sic-primary);
  padding: 8px 10px 7px; }
body.dd .dd-upgrp > b::before { content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sic-primary); flex: 0 0 auto; }
body.dd .dd-up { display: grid; grid-template-columns: 28px minmax(0, 1fr) 12px; align-items: center;
  gap: 10px; width: 100%; margin: 0; background: none; border: 0; border-radius: 10px;
  padding: 8px 10px; cursor: pointer; color: var(--sic-ink-2);
  font: 600 13px/1.3 Inter, sans-serif; text-align: left; transition: background .15s ease; }
body.dd .dd-up + .dd-up { margin-top: 1px; }
body.dd .dd-up:hover { background: #E9F0FC; color: var(--sic-primary); }
body.dd .dd-up-i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--sic-surface); border: 1px solid #DCE6F6; color: var(--sic-primary); }
body.dd .dd-up:hover .dd-up-i { background: var(--sic-primary); border-color: var(--sic-primary); color: #fff; }
body.dd .dd-up-i svg { display: block; }
body.dd .dd-up-l { min-width: 0; overflow-wrap: anywhere; }
body.dd .dd-up-x { color: var(--sic-faint); font-size: 15px; line-height: 1; text-align: right;
  transition: transform .15s ease, color .15s ease; }
body.dd .dd-up:hover .dd-up-x { color: var(--sic-primary); transform: translateX(2px); }
/* ===== Partner program (aff-*) aligned to the dd theme (03.08.2026) =======
   The page kept its old navy/gold identity inside the new shell - and
   body.dd h2 (ink) beat .aff-hero-t h2's light color, leaving the hero
   headline dark-on-dark. One vocabulary restyle: dd navy hero with Inter
   type and the primary-blue accent, white perk cards, primary CTA. */
body.dd .aff-hero { background: var(--sic-navy); border-radius: 16px; border: 1px solid var(--sic-navy); }
body.dd .aff-hero:after { display: none; }
body.dd .aff-hero-t h2 { font-family: Inter, -apple-system, "Segoe UI", sans-serif; font-weight: 800;
  letter-spacing: -.5px; color: #fff; font-size: 27px; }
body.dd .aff-hero-t h2 .g { color: #8FB8FF; }
body.dd .aff-hero-s { color: #B6C3D4; }
body.dd .aff-hero-rule { background: var(--sic-primary); }
body.dd .aff-hero-p { color: #D7E0EB; }
body.dd .aff-hero-p b { color: #8FB8FF; font-weight: 650; }
body.dd .aff-hero-i { border: 1px solid rgba(143,184,255,.45); color: #8FB8FF; background: rgba(46,107,222,.14); }
body.dd .aff-hero-wm { font-family: Inter, sans-serif; font-weight: 800; color: rgba(255,255,255,.10); }
body.dd .aff-perk { background: var(--sic-surface); border: 1px solid var(--sic-border); border-radius: 14px; }
body.dd .aff-perk b { color: var(--sic-primary); }
body.dd .aff-perk-i { border: 0; background: var(--sic-primary-soft); color: var(--sic-primary); }
body.dd .aff-perk > div span { color: var(--sic-muted); font-size: 12.5px; }
body.dd .aff-apply { background: var(--sic-surface); border: 1px solid var(--sic-border); border-radius: 14px; }
body.dd .aff-apply h3 { font-family: Inter, -apple-system, "Segoe UI", sans-serif; font-weight: 750;
  font-size: 19px; letter-spacing: -.2px; }
body.dd .aff-apply h3:after { background: var(--sic-primary); }
body.dd .aff-cta { background: var(--sic-primary); border-radius: 10px; font-weight: 700; }
body.dd .aff-cta:hover { background: var(--sic-primary-hover); }
body.dd .aff-cta-i { color: #fff; }
body.dd .aff-link { border: 1px solid var(--sic-border-strong); background: #F8FAFD; color: var(--sic-ink-2); border-radius: 9px; }
body.dd .aff-note { color: var(--sic-muted); }

/* ===== Pricing modal (up-* / bs-*) aligned to dd (03.08.2026) ==============
   The modal kept the old serif/gold identity: Playfair headlines, gold
   badges/thermometers, navy CTAs, cream feature cards. One vocabulary
   restyle onto the dd tokens - mechanics untouched. */
body.dd .up-intro h2, body.dd .up-n, body.dd .up-mini-n, body.dd .bs-now-k, body.dd .bs-now-v,
body.dd .up-unl .up-n, body.dd .up-price-lg, body.dd .up-why-h, body.dd .up-bal b {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif; font-weight: 800; letter-spacing: -.4px; }
body.dd .up-beta { background: var(--sic-primary-soft); border: 1px solid #D3E1F8; color: var(--sic-ink-2);
  border-radius: 12px; padding: 11px 15px; margin: 0 0 14px; font-size: 13px; line-height: 1.45; }
body.dd .up-beta b { color: var(--sic-primary); }
body.dd .up-tab.on { color: var(--sic-primary); }
body.dd .up-tile { border: 1px solid var(--sic-border); border-radius: 12px; background: var(--sic-surface); }
body.dd .up-tile-i { background: var(--sic-primary-soft); color: var(--sic-primary); border: 0; }
body.dd .up-card, body.dd .up-mini, body.dd .up-unl, body.dd .bs-now, body.dd .up-autopay {
  background: var(--sic-surface); border: 1px solid var(--sic-border); border-radius: 14px; }
body.dd .up-mini.feat, body.dd .up-unl.feat { background: #F3F7FE; border-color: #B9CFF4; }
body.dd .up-mini.dark, body.dd .up-unl.dark { background: var(--sic-navy); border-color: var(--sic-navy); }
body.dd .up-badge { background: #E8EFFC; color: var(--sic-primary); border: 0; letter-spacing: .04em; }
body.dd .up-mini-l.gold { color: var(--sic-primary); }
body.dd .up-mini.dark .up-mini-l.gold, body.dd .up-unl.dark .up-sub,
body.dd .up-unl.dark .up-once { color: #8FB8FF; }
body.dd .up-thru { background: var(--sic-primary-soft); color: var(--sic-ink-2); border: 0; }
body.dd .up-mini.dark .up-thru, body.dd .up-unl.dark .up-thru {
  background: rgba(143,184,255,.14); color: #D7E0EB; }
body.dd .up-off { background: var(--sic-success-soft); color: var(--sic-success); border: 1px solid #C9E8D5; }
body.dd .up-was { color: var(--sic-muted); }
body.dd .up-purchase { background: var(--sic-primary); color: #fff; border: 0; border-radius: 10px;
  font-weight: 700; }
body.dd .up-purchase:hover { background: var(--sic-primary-hover); }
body.dd .bs-now-i, body.dd .bs-b-i { background: var(--sic-primary-soft); color: var(--sic-primary); border: 0; }
body.dd .bs-b b { color: var(--sic-ink); }
body.dd .up-feat li::marker, body.dd .up-feat li:before { color: var(--sic-success); }
body.dd .up-downgrade { background: var(--sic-surface); color: var(--sic-ink-2);
  border: 1px solid var(--sic-border-strong); border-radius: 10px; }
body.dd .up-active { background: var(--sic-success-soft); border: 1px solid #C9E8D5;
  color: var(--sic-success); border-radius: 12px; }
body.dd .up-ap-state.on { background: var(--sic-success-soft); color: var(--sic-success); }
body.dd .up-ap-card { border: 1px solid var(--sic-border); border-radius: 10px; }
body.dd .bs-foot { color: var(--sic-muted); }
body.dd .up-once { color: var(--sic-muted); }
/* featured/dark price cards: no gold buttons or gold chips under dd */
body.dd .up-mini.feat .up-purchase, body.dd .up-unl.feat .up-purchase,
body.dd .up-mini.dark .up-purchase, body.dd .up-unl.dark .up-purchase {
  background: var(--sic-primary); color: #fff; }
body.dd .up-mini.feat .up-purchase:hover, body.dd .up-unl.feat .up-purchase:hover,
body.dd .up-mini.dark .up-purchase:hover, body.dd .up-unl.dark .up-purchase:hover {
  background: var(--sic-primary-hover); color: #fff; }
body.dd .up-mini.dark .up-off, body.dd .up-unl.dark .up-off {
  color: #8FB8FF; border-color: rgba(143,184,255,.5); background: transparent; }
body.dd .up-mini-p .up-off, body.dd .up-price-lg .up-off {
  background: transparent; border-color: #C9E8D5; color: var(--sic-success); }
body.dd .up-mini.dark .up-mini-p .up-off, body.dd .up-unl.dark .up-price-lg .up-off {
  color: #8FB8FF; border-color: rgba(143,184,255,.5); }
body.dd .up-mini.dark .up-mini-n, body.dd .up-unl.dark .up-n { color: #fff; }
body.dd .up-unl.dark .up-price, body.dd .up-unl.dark .up-price-lg { color: #fff; }
/* Running-jobs chip + sidebar Active-Jobs widget on dd tokens. */
body.dd .v2-jobchip { background: #E8EFFC; color: var(--sic-primary); border: 1px solid #D3E1F8;
  padding: 8px 14px; font-size: 12px; }
body.dd .v2-jc-dot { background: var(--sic-primary); }
body.dd .dd-jobs { margin-top: 14px; border: 1px solid #D3E1F8; background: #F3F7FE;
  border-radius: 12px; padding: 12px; }
body.dd .dd-jobs .v2-jobs-h { color: var(--sic-primary); font-weight: 750; font-size: 11px;
  letter-spacing: .07em; text-transform: uppercase; }
body.dd .dd-jobs .v2-jrow a { color: var(--sic-ink-2); font-size: 12.5px; text-decoration: none; }
body.dd .dd-jobs .v2-jrow a:hover { color: var(--sic-primary); }
body.dd .dd-jobs .v2-jbar { background: #D3E1F8; }
body.dd .dd-jobs .v2-jbar i { background: var(--sic-primary); }
body.dd .dd-jobs .v2-jstop { border-color: #C9D6EE; color: var(--sic-ink-3, #6B7A90); }
body.dd .dd-jobs .v2-jstop:hover { background: #E9F0FC; color: var(--sic-primary); }
/* Monitoring: auto-sync schedule row */
body.dd .nt-autosync { display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sic-border); font-size: 13px; }
body.dd .nt-autosync select { max-width: 150px; }
body.dd .nt-autosync .muted { flex-basis: 100%; }

/* ===== Personal document vault (03.08.2026) ============================== */
body.dd .vt-card { padding: 22px 24px; }
body.dd .vt-head { margin-bottom: 14px; }
body.dd .vt-head h2 { margin: 0 0 3px; font-size: 18px; font-weight: 750; }
body.dd .vt-secth { margin: 4px 2px 12px; font-size: 18px; font-weight: 750; }
body.dd .vt-folder { border: 1px solid var(--sic-border); border-radius: 12px; margin-bottom: 10px;
  background: var(--sic-surface); overflow: hidden; }
body.dd .vt-folder > summary, body.dd .vt-sub > summary { display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; cursor: pointer; font-size: 14.5px; list-style: none; }
body.dd .vt-folder > summary::-webkit-details-marker, body.dd .vt-sub > summary::-webkit-details-marker { display: none; }
body.dd .vt-folder > summary:hover, body.dd .vt-sub > summary:hover { background: #F6F8FC; }
body.dd .vt-di { font-size: 16px; }
body.dd .vt-count { margin-left: auto; background: var(--sic-primary-soft); color: var(--sic-primary);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 750;
  font-variant-numeric: tabular-nums; }
body.dd .vt-subs { padding: 0 10px 8px; }
body.dd .vt-sub { border-top: 1px solid var(--sic-border); }
body.dd .vt-sub > summary { padding: 10px 8px; font-size: 13.5px; color: var(--sic-ink-2); }
body.dd .vt-files { padding: 2px 8px 10px; display: flex; flex-direction: column; gap: 6px; }
body.dd .vt-folder > .vt-files { padding: 2px 14px 14px; }
body.dd .vt-file { display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border: 1px solid var(--sic-border); border-radius: 10px; background: #FCFDFE; }
body.dd .vt-file-b { background: var(--sic-warning-soft); border-color: #EBD9A8; }
body.dd .vt-fi { flex: 0 0 auto; font-size: 15px; }
body.dd .vt-fn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
body.dd .vt-fn b { font-size: 14px; overflow-wrap: anywhere; }
body.dd .vt-note { color: var(--sic-warning); font-size: 12.5px; }
body.dd .vt-fa { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
body.dd .vt-lock { color: var(--sic-muted); font-size: 12.5px; }
body.dd .vt-hint { padding: 0 16px 14px; margin: 0; }
body.dd .vt-empty { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
/* signed-agreement document view */
body.dd .vt-doc { background: var(--sic-surface); border: 1px solid var(--sic-border);
  border-radius: 14px; padding: 28px 32px; max-width: 860px; }
body.dd .vt-doc h1 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 12px; }
body.dd .vt-doc-body { font-size: 14px; line-height: 1.65; color: var(--sic-ink-2); }
body.dd .vt-doc-body h4 { margin: 18px 0 4px; font-size: 14.5px; color: var(--sic-ink); }
body.dd .vt-signblock { margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--sic-border); }
body.dd .vt-signblock h3 { margin: 0 0 10px; font-size: 16px; }
body.dd .vt-sig { max-width: 260px; max-height: 90px; border: 1px solid var(--sic-border);
  border-radius: 8px; background: #fff; padding: 6px; }
body.dd .vt-dl { display: grid; grid-template-columns: 190px 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: 13.5px; }
body.dd .vt-dl dt { color: var(--sic-muted); }
body.dd .vt-dl dd { margin: 0; font-weight: 600; }
@media (max-width: 767px) {
  body.dd .vt-file { flex-wrap: wrap; }
  body.dd .vt-fa { width: 100%; }
  body.dd .vt-dl { grid-template-columns: 1fr; gap: 2px; }
  body.dd .vt-dl dd { margin-bottom: 8px; }
  body.dd .vt-doc { padding: 20px 18px; }
}
/* In the vault document view the agreement text is READ, not previewed -
   drop the signing-gate scroll box so the full text prints and scrolls
   with the page. */
body.dd .vt-doc-body .nda-doc { max-height: none; overflow: visible; border: 0;
  padding: 0; margin: 0; background: transparent; }
body.dd .vt-doc-body .nda-parties { background: var(--sic-primary-soft); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px; }
/* ===== Avatar profile menu (03.08.2026) ====================================
   Credits & Billing + Settings live here now (moved out of the sidebar
   rail); language + currency ride along and are shown on phones only,
   where the topbar pair (.dd-mini) is hidden. */
body.dd .dd-avawrap { position: relative; }
body.dd button.dd-ava { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
body.dd .dd-ava.on i { box-shadow: 0 0 0 2px var(--sic-primary); }
body.dd .dd-avamenu { position: absolute; right: 0; top: calc(100% + 10px); width: 248px;
  background: var(--sic-surface); border: 1px solid var(--sic-border); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(16,24,40,.16); padding: 6px; z-index: 90; }
body.dd .dd-avamenu[hidden] { display: none; }
body.dd .dd-am-head { padding: 10px 12px 11px; border-bottom: 1px solid var(--sic-border);
  margin-bottom: 5px; display: flex; flex-direction: column; gap: 2px; }
body.dd .dd-am-head b { font-size: 14px; }
body.dd .dd-am-head span { color: var(--sic-muted); font-size: 12.5px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
/* Menu rows share the upgrade-group hover language: soft blue wash, primary text. */
body.dd .dd-am-it { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; color: var(--sic-ink-2); font: 600 13.5px Inter, sans-serif;
  transition: background .15s ease, color .15s ease; }
body.dd .dd-am-it:hover { background: #E9F0FC; color: var(--sic-primary); }
body.dd .dd-am-it svg { flex: 0 0 auto; color: var(--sic-primary); }
/* Language + currency inside the menu: phones only - the desktop topbar
   already carries the pair right next to the avatar. */
body.dd .dd-intl { display: none; }
@media (max-width: 767px) {
  body.dd .dd-avamenu .dd-intl { display: flex; flex-direction: column; gap: 8px;
    margin: 4px 0 5px; padding: 10px 12px; border-top: 1px solid var(--sic-border);
    border-bottom: 1px solid var(--sic-border); }
  body.dd .dd-intl label { display: flex; align-items: center; justify-content: space-between;
    gap: 10px; font-size: 13.5px; color: var(--sic-ink-2); margin: 0; }
  body.dd .dd-intl form { margin: 0; }
  body.dd .dd-intl select { min-width: 118px; min-height: 40px; border: 1px solid var(--sic-border-strong);
    border-radius: 9px; background: var(--sic-surface); color: var(--sic-ink);
    font: 600 13.5px Inter, sans-serif; padding: 6px 8px; }
}
/* Help guide entries: the same hover language as the sidebar upgrade rows -
   soft blue wash on the row, primary title (03.08.2026). */
body.dd .hp-item > summary { border-radius: 10px; padding: 10px 12px; cursor: pointer;
  transition: background .15s ease, color .15s ease; }
body.dd .hp-item > summary:hover { background: #E9F0FC; }
body.dd .hp-item > summary:hover, body.dd .hp-item > summary:hover b { color: var(--sic-primary); }
body.dd .hp-item { transition: border-color .15s ease; }
body.dd .hp-item:hover { border-color: #B9CFF4; }
/* region gate (08.08.2026): AT/DE say "coming soon" until launch */
body.dd .v2-cc-soon { opacity: .55; cursor: not-allowed; }
body.dd .v2-cc-soon input { pointer-events: none; }
.cc-soon { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--sic-primary); background: #EAF1FC;
  border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 1px; }
.pc-cc button[disabled] { opacity: .55; cursor: not-allowed; }
/* Katasterplan: letzte Baugesuche - klickbare Zeilen (08.08.2026) */
body.dd .pc-nt { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 2px; border-bottom: 1px dashed var(--sic-border); text-decoration: none; color: var(--sic-ink); }
body.dd .pc-nt:last-of-type { border-bottom: 0; }
body.dd .pc-nt:hover b { color: var(--sic-primary); }
body.dd .pc-nt-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.dd .pc-nt-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dd .pc-nt-go { flex: 0 0 auto; color: var(--sic-primary); font-weight: 800; font-size: 18px; }
body.dd .pc-nt-state { font-style: normal; color: var(--sic-primary); }
/* Letzte Suchen (14.08.2026): Text volle Breite, Aktionen als eigene Zeile */
body.dd .fd-rrow { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; row-gap: 9px; }
body.dd .fd-racts { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
body.dd .fd-rt b { white-space: normal; }
