/* Shared chrome for the two sample portals (/demo/client-portal,
   /demo/partner-portal).

   These are SALES PROPS, not the product: static markup, no support.js
   hydration, no framework, and — deliberately — not one network call. They
   exist so a firm on /outsourcing-malta or /ai-native can see the shape of
   what it is buying without an account, a tenant or a login.

   The white-label story is the point of the client one, so the logo slot is a
   dashed placeholder reading YOUR LOGO and the firm is YOUR FIRM throughout —
   the same device the whitelabel motion scene uses, so the two read as one
   story. Every figure and company name is invented; the sample banner says so
   on every screen and must not be removed. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }

/* ── The sample banner. Sticky, never dismissible. ── */
.dm-banner {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 9px 20px;
  background: var(--shell-dark); color: #fff;
  font-size: 12.5px; line-height: 1.45;
}
.dm-banner b { font-weight: 650; }
.dm-banner .dm-sep { color: rgba(255,255,255,.34); }
.dm-banner-note { color: rgba(255,255,255,.66); }
.dm-banner-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.dm-back { color: rgba(255,255,255,.72); font-weight: 550; }
.dm-back:hover { color: #fff; }
.dm-book {
  display: inline-flex; align-items: center; height: 30px; padding: 0 15px;
  border-radius: var(--r-full);
  background: var(--lime); color: var(--lime-ink);
  font-size: 12px; font-weight: 700;
}
.dm-book:hover { filter: brightness(.95); color: var(--lime-ink); }

/* ── App shell ── */
.dm-app { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 44px); }
.dm-rail {
  background: var(--sidebar-dark); color: #fff;
  padding: 20px 14px; display: flex; flex-direction: column; gap: 6px;
}
.dm-logo {
  display: flex; align-items: center; gap: 11px;
  padding: 4px 6px 18px;
}
/* The empty logo IS the message: your mark goes here, ours never appears. */
.dm-logo-slot {
  width: 38px; height: 38px; flex: none;
  border: 1.5px dashed rgba(255,255,255,.34); border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 7.5px; font-weight: 700; letter-spacing: .06em; text-align: center;
  color: rgba(255,255,255,.5); text-transform: uppercase;
}
.dm-logo-name { font-size: 14px; font-weight: 650; color: #fff; letter-spacing: -.01em; }
.dm-logo-sub { font-size: 11px; color: rgba(255,255,255,.45); }
.dm-railgroup {
  margin: 14px 6px 4px; font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.34);
}
.dm-nav {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px; border: 0; border-radius: var(--r-lg);
  background: transparent; color: rgba(255,255,255,.72);
  font: inherit; font-size: 13px; font-weight: 550; text-align: left; cursor: pointer;
}
.dm-nav:hover { background: rgba(255,255,255,.07); color: #fff; }
.dm-nav[aria-selected="true"] { background: var(--sidebar-active); color: #fff; }
.dm-nav .dm-dot { width: 6px; height: 6px; flex: none; border-radius: 999px; background: currentColor; opacity: .6; }
.dm-nav-count {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.6);
}
.dm-rail-foot {
  margin-top: auto; padding: 14px 6px 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px; line-height: 1.55; color: rgba(255,255,255,.4);
}

/* ── Main column ── */
.dm-main { min-width: 0; padding: 0 0 60px; }
.dm-cover {
  background: linear-gradient(112deg, var(--cover-1) 0%, var(--cover-2) 38%, var(--cover-3) 72%, var(--cover-4) 100%);
  color: #fff; padding: 26px 32px 30px;
}
.dm-cover h1 {
  margin: 0; font-family: var(--font-marketing); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.025em; line-height: 1.1;
}
.dm-cover p { margin: 9px 0 0; max-width: 68ch; font-size: 13.5px; line-height: 1.65; color: var(--on-cover); }
.dm-coverrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dm-who {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: var(--r-full);
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.24);
  font-size: 12px; color: #fff;
}
.dm-avatar {
  width: 26px; height: 26px; flex: none; border-radius: 999px;
  background: rgba(255,255,255,.26); display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700;
}
.dm-body { padding: 22px 32px 0; }

/* ── Cards, tables, chips ── */
.dm-card {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); overflow: hidden;
}
.dm-card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 15px 18px; border-bottom: 1px solid var(--hairline-soft);
}
.dm-card-title { font-size: 14px; font-weight: 650; color: var(--ink); }
.dm-card-note { font-size: 12.5px; color: var(--mute); }
.dm-grid { display: grid; gap: 14px; }
.dm-g3 { grid-template-columns: repeat(3, 1fr); }
.dm-g2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .dm-g3, .dm-g2 { grid-template-columns: 1fr; } }

.dm-kpi { padding: 17px 18px; }
.dm-kpi-label { font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.dm-kpi-value {
  margin-top: 9px; font-family: var(--font-marketing); font-size: 27px;
  font-weight: 500; letter-spacing: -.03em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dm-kpi-note { margin-top: 5px; font-size: 12.5px; color: var(--stone); }

table.dm-t { width: 100%; border-collapse: collapse; }
.dm-t th {
  text-align: left; padding: 10px 18px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute); background: var(--surface-quiet);
  border-bottom: 1px solid var(--hairline-soft); white-space: nowrap;
}
.dm-t td { padding: 13px 18px; border-bottom: 1px solid var(--hairline-soft); vertical-align: top; font-size: 13px; }
.dm-t tr:last-child td { border-bottom: 0; }
.dm-t tr:hover td { background: var(--surface-quiet); }
.dm-strong { font-weight: 600; color: var(--ink); }
.dm-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dm-quiet { color: var(--mute); font-size: 12.5px; }
.dm-scroll { overflow-x: auto; }

.dm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 650; white-space: nowrap;
}
.dm-chip::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.dm-chip.auto    { color: var(--status-auto);        background: var(--status-auto-bg); }
.dm-chip.review  { color: var(--status-review-fg);   background: var(--status-review-bg); }
.dm-chip.posted  { color: var(--status-posted-deep); background: var(--status-posted-bg); }
.dm-chip.danger  { color: var(--status-danger);      background: var(--status-danger-bg); }
.dm-chip.neutral { color: var(--status-neutral);     background: var(--status-neutral-bg); }
.dm-chip.brand   { color: var(--brand);              background: var(--brand-soft); }

.dm-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 33px; padding: 0 15px;
  border: 1px solid var(--hairline-strong); border-radius: var(--r-full);
  background: var(--card); color: var(--ink);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.dm-btn:hover { background: var(--surface-hover); }
.dm-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.dm-btn.primary:hover { background: var(--brand-hover); }
.dm-btn.ok { background: var(--status-posted-deep); border-color: var(--status-posted-deep); color: #fff; }
.dm-btn.ok:hover { filter: brightness(1.08); }
.dm-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.dm-trail {
  margin: 0; padding: 0; list-style: none;
  border-left: 2px solid var(--hairline); margin-left: 7px;
}
.dm-trail li { position: relative; padding: 0 0 18px 20px; }
.dm-trail li::before {
  content: ""; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--hairline-strong);
}
.dm-trail li.done::before { background: var(--status-posted-deep); border-color: var(--status-posted-deep); }
.dm-trail li.now::before { background: var(--status-review); border-color: var(--status-review); }
.dm-trail-t { font-size: 13px; font-weight: 600; color: var(--ink); }
.dm-trail-s { margin-top: 3px; font-size: 12.5px; color: var(--stone); }

/* A visitor should always know which parts a human signs. */
.dm-gate {
  display: flex; gap: 12px; padding: 14px 16px;
  border-radius: var(--radius-row);
  background: var(--brand-soft); border: 1px solid var(--brand-soft-border);
  font-size: 12.5px; line-height: 1.6; color: var(--ink);
}
.dm-gate b { font-weight: 700; }

.dm-view[hidden] { display: none; }
.dm-sec { margin-bottom: 22px; }
.dm-sec-h {
  margin: 0 0 12px; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.dm-foot {
  margin-top: 26px; padding: 16px 18px;
  border-radius: var(--radius-row); background: var(--surface-subtle);
  font-size: 12px; line-height: 1.6; color: var(--stone);
}

@media (max-width: 860px) {
  .dm-app { grid-template-columns: 1fr; }
  .dm-rail { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 8px; }
  .dm-logo { padding: 0 10px 0 0; }
  .dm-railgroup, .dm-rail-foot { display: none; }
  .dm-nav { width: auto; padding: 7px 13px; }
  .dm-cover, .dm-body { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
