/* Bootstrap variable overrides, wired to docs/design-system's tokens.css (DD-0431). Loaded after
   bootstrap.min.css, tokens.css and app.css so these values win. tokens.css owns the actual color
   values (:root/[data-theme="light"] and [data-theme="dark"] blocks) and DM Sans/JetBrains Mono;
   this file only maps Bootstrap's own variable names onto those tokens, plus the --bg/--text/etc.
   aliases the rest of this stylesheet (and Razor components) already consume. js/theme.js sets
   both [data-theme] (tokens.css) and [data-bs-theme] (Bootstrap's own compiled dark variants) on
   <html> from the same resolved value, defaulting new visitors to light.

   Bootstrap 5.3 bakes literal colors into each component's own --bs-btn-* / --bs-*-rgb variables at
   build time rather than chaining them to --bs-primary live, so retinting a component (.btn-primary
   below, .btn-outline-secondary/.btn-light further down) means overriding its own per-component
   variables, not just --bs-primary. The --bs-*-rgb triplets exist only because Bootstrap's own
   opacity utilities (focus rings, .bg-primary-subtle, etc.) need a literal r,g,b triplet -- they
   are the exact tokens.json --brand/--success/--danger/--warning hex values decomposed, redeclared
   per theme since they can't be derived from the hex at parse time. */

:root {
  --bs-font-sans-serif: var(--font-sans);
  --bs-font-monospace: var(--font-mono);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 81, 43, 212;
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-hover);
  --bs-success: var(--success);
  --bs-success-rgb: 22, 122, 69;
  --bs-warning: var(--warning);
  --bs-warning-rgb: 154, 91, 0;
  --bs-danger: var(--danger);
  --bs-danger-rgb: 196, 43, 33;
  --bs-border-radius: var(--radius-lg);
  --bs-border-radius-sm: var(--radius-md);
  --bs-border-radius-lg: var(--radius-xl);

  /* Aliases every other rule in this file (and Razor components) already reference -- kept so
     that redesigning app-shell/pages (DD-0433+) can move page-by-page without a mass rename.
     tokens.css's own [data-theme="dark"] block already flips --surface/--ink/etc. at compute time,
     so these need no separate dark override. */
  --bg: var(--surface);
  --bg-muted: var(--surface-sunken);
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --border: var(--line);

  --dd-surface: var(--bg);
  --dd-page: var(--bg-muted);
  --dd-border: var(--border);
}

[data-theme="dark"] {
  --bs-primary-rgb: 167, 139, 250;
  --bs-success-rgb: 74, 222, 128;
  --bs-warning-rgb: 251, 191, 36;
  --bs-danger-rgb: 248, 113, 113;
}

/* Bootstrap's compiled .btn-primary bakes its own colors into these per-component variables
   (see comment above) -- override them here instead of a flat background-color so hover/active/
   disabled states stay correct. */
.btn-primary {
  --bs-btn-color: var(--on-brand);
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: var(--on-brand);
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-color: var(--on-brand);
  --bs-btn-active-bg: var(--brand-hover);
  --bs-btn-active-border-color: var(--brand-hover);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
}

html, body {
  font-family: var(--bs-font-sans-serif);
  font-size: 14px;
  background: var(--dd-page);
  color: var(--text);
}

/* Type scale (NOTES.md (a)): page title 20/600, section title 16/600, table 13px/40px rows. */
.dd-page-header h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.dd-page-header p {
  color: var(--text-muted);
}

h2.h5 {
  font-size: 16px;
  font-weight: 600;
}


.dd-wordmark {
  font-weight: 700;
  color: var(--bs-body-color);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Links at rest are never underlined anywhere in the app (task DD-0445 #4) -- Bootstrap's reboot
   underlines every <a> by default, which used to catch the sidebar, breadcrumb, footer and table
   links along with real body-copy links. Underline appears only on hover; components that are
   nav/chrome (sidebar, brand, top-bar icons, tabs, buttons rendered as <a>) already override the
   hover case back to none further down this file. */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* App shell (docs/design-system/components/AppShell + SettingsNav, DD-0433): one dd-side sidebar
   for everything, switching into settings mode inside /settings/* (Sidebar.razor) instead of the
   page itself stacking a second nav next to its content. dd-top is chrome only (breadcrumb +
   search/bell/avatar); the primary nav links live in dd-side. Rules below this comment up to
   dd-page-head are copied from docs/design-system/components/bundle.css as-is; the responsive
   breakpoints (icon-only under 1024px, drawer under 720px) are this app's own addition -- the
   AppShell README specifies the behaviour, not the CSS, and js/sidebar.js drives the drawer via
   body.dd-drawer-open. */
.dd-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* A grid item's default min-width is auto (its content's intrinsic width), not 0 -- without this,
   a wide .dd-table-scroll inside .dd-main can never actually scroll: the grid track itself grows
   to fit the table instead of the table's own overflow-x doing the clipping (DD-0437 #390px fix). */
/* Flex column so the footer (dd-app-footer) sits at the very bottom of the viewport on a short
   page and right after the content on a long one (task DD-0445 #2) -- dd-main takes flex:1, the
   footer's own margin-top:auto does the pinning. dd-shell's min-height:100vh is what gives this
   column something taller than its content to push against on a short page. */
.dd-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dd-side {
  background: var(--surface-raised);
  border-right: 1px solid var(--line);
  padding: var(--space-5) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  overflow-y: auto;
}

.dd-side .brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--space-2) var(--space-4);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.dd-side .brand:hover {
  text-decoration: none;
}

.dd-side .brand b {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--brand);
  flex: none;
}

.dd-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  font-weight: 500;
}

.dd-side a svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* No background fill on hover (task DD-0445 #5) -- a solid fill here read as a second "active"
   item next to the real one, which uses brand-soft. Hover only changes the text color. */
.dd-side a:hover {
  color: var(--ink);
  text-decoration: none;
}

.dd-side a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.dd-side a.back {
  color: var(--ink-muted);
  font-weight: 400;
}

.dd-side hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-3) var(--space-2);
}

.dd-side .grow {
  flex: 1;
}

.dd-side .grp {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: var(--space-4) var(--space-3) var(--space-1);
}

.dd-top {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  background: var(--dd-surface);
  border-bottom: 1px solid var(--dd-border);
  gap: var(--space-3);
}

.dd-top .left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.dd-top .menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  background: none;
  border: 0;
  flex: none;
  padding: 0;
}

.dd-top .menu-toggle:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

.dd-top .crumb {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dd-top .crumb b {
  color: var(--ink);
  font-weight: 500;
}

.dd-top .right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}

.dd-top .search {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 32px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink-faint);
  font: inherit;
  font-size: 13px;
  min-width: 200px;
  cursor: pointer;
  appearance: none;
}

.dd-top .search kbd {
  margin-left: auto;
  font: 500 11px/16px var(--font-sans);
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 4px;
}

.dd-top .icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--ink-muted);
}

.dd-top .icon:hover {
  background: var(--surface-sunken);
  color: var(--ink);
  text-decoration: none;
}

.dd-top .icon .n {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 10px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;
}

.dd-top .me {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 2px 6px 2px 2px;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: none;
  border: 0;
  font: inherit;
}

.dd-top .me:hover {
  background: var(--surface-sunken);
  text-decoration: none;
}

.dd-top .me .av {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.dd-top .me small {
  color: var(--ink-muted);
  font-size: 13px;
}

.dd-top .i, .dd-side .i {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dd-top .icon svg, .dd-top .menu-toggle svg, .dd-top .search svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.dd-main {
  flex: 1;
  padding: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.dd-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.dd-page-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dd-page-head p {
  margin: var(--space-1) 0 0;
  color: var(--ink-muted);
}

/* Icon-only rail under 1024px, off-canvas drawer under 720px (AppShell README). */
@media (max-width: 1024px) {
  .dd-shell {
    grid-template-columns: 64px 1fr;
  }

  .dd-side .brand span,
  .dd-side a span,
  .dd-side .grp {
    display: none;
  }

  .dd-side a,
  .dd-side .brand {
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 720px) {
  .dd-top {
    padding: 0 var(--space-4);
  }

  .dd-top .menu-toggle {
    display: inline-flex;
  }

  .dd-top .search {
    display: none;
  }

  .dd-shell {
    grid-template-columns: 1fr;
  }

  .dd-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 150ms ease-out;
    box-shadow: var(--shadow-lg);
  }

  .dd-side .brand span,
  .dd-side a span,
  .dd-side .grp {
    display: inline;
  }

  .dd-side a,
  .dd-side .brand {
    justify-content: flex-start;
    padding: 0 var(--space-3);
  }

  .dd-side .brand {
    padding: 0 var(--space-2) var(--space-4);
  }

  body.dd-drawer-open .dd-side {
    transform: none;
  }

  body.dd-drawer-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1030;
  }

  .dd-main {
    padding: var(--space-5);
  }
}

.dd-page-container {
  max-width: 1200px;
  margin-inline: auto;
  padding: 24px;
}

.dd-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dd-page-header p {
  margin: 0.25rem 0 0;
}

.dd-breadcrumb {
  margin-bottom: 0.25rem;
}

.dd-breadcrumb .breadcrumb {
  font-size: 0.875rem;
}

.dd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
}

/* Settings sub-nav */
.dd-settings-nav {
  border-right: 1px solid var(--dd-border);
  min-width: 12rem;
}

.dd-settings-nav .nav-link {
  color: var(--bs-body-color);
  border-radius: var(--bs-border-radius-sm);
  padding: 0.5rem 0.75rem;
}

.dd-settings-nav .nav-link.active {
  background: var(--bs-tertiary-bg);
  font-weight: 600;
}

/* Auth screens: AuthSplit layout (docs/design-system/components/AuthSplit, DD-0435). Two equal
   columns inset space-5 from the viewport; the left panel is brand-filled with on-brand text in
   light theme and brand-soft/ink in dark theme (both pass 4.5:1 -- values from tokens.css), the
   right column is a plain flex column (form centered, footer pinned bottom) so the footer always
   sits at the column's bottom edge regardless of form height. */
.dd-auth {
  min-height: 100vh;
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  box-sizing: border-box;
}

.dd-auth-panel {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--brand);
  color: var(--on-brand);
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-8);
}

[data-theme="dark"] .dd-auth-panel {
  background: var(--brand-soft);
  color: var(--ink);
}

.dd-auth-wordmark {
  font-size: 1.25rem;
  color: inherit;
}

.dd-auth-panel-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  max-width: 30rem;
  position: relative;
  z-index: 1;
}

.dd-auth-headline {
  color: inherit;
  margin: 0;
}

.dd-auth-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: inherit;
}

.dd-auth-values li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
}

.dd-auth-values li svg.i {
  margin-top: 2px;
  flex: none;
}

/* The mock dashboard card (Northwind Labs demo data, never a real account) bleeds off the panel's
   bottom-right corner, clipped by .dd-auth-panel's own overflow:hidden. */
.dd-auth-shot {
  position: absolute;
  right: -56px;
  bottom: -56px;
  width: 420px;
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: var(--space-3);
  color: var(--ink);
}

.dd-auth-shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.dd-auth-shot .dd-table { font-size: 12px; }
.dd-auth-shot .dd-table th, .dd-auth-shot .dd-table td { padding: 6px var(--space-2); }

.dd-auth-right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dd-auth-form {
  width: 100%;
  max-width: 360px;
  margin: auto 0;
}

.dd-auth-form h1 {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dd-auth-form .form-label {
  font-size: 13px;
  font-weight: 500;
}

.dd-auth-form .form-control,
.dd-auth-form .btn {
  height: 40px;
  font-size: 14px;
}

.dd-auth-form .btn {
  border-radius: var(--bs-border-radius-sm);
}

.dd-auth-legal {
  margin-top: 1.5rem;
}

.dd-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
  margin: 1rem 0;
}

.dd-auth-divider::before,
.dd-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dd-border);
}

/* Footer pinned to the bottom of every auth page's right panel (NOTES.md (b) item 4): same two
   links on signup/signin/forgot/create-account/verified, distinct from ShowLegalFooter's own
   per-page agreement sentence next to the form. */
.dd-auth-footer {
  width: 100%;
  max-width: 360px;
  margin-top: 2rem;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--text-muted);
}

.dd-auth-footer a {
  color: var(--text-muted);
}

/* Slim signed-in footer (MainLayout, NOTES.md (g)): Terms / Privacy / Status, centered, quiet.
   Pinned to the bottom of the viewport (task DD-0445 #2) via dd-content's flex column + this
   margin-top:auto -- never mid-page. Same max-width/centering as dd-main so it lines up with the
   content column above it instead of spanning the full width right of the sidebar. */
.dd-app-footer {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1200px;
  width: 100%;
  margin: auto auto 0;
  padding: var(--space-6) var(--space-8) var(--space-8);
  box-sizing: border-box;
  font-size: 12px;
  color: var(--text-muted);
}

.dd-app-footer a {
  color: var(--text-muted);
}

/* Stepper (CreateAccount.razor, NOTES.md 03-up-create-account: "✓ Verify email — 2 Create account").
   Step circles are radius-full brand/brand-soft badges (task DD-0439 #3) instead of plain coloured
   text, matching the Input/Button components' own radius and brand palette. */
.dd-auth-stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.dd-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dd-step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}

.dd-step.done .dd-step-circle {
  background: var(--brand);
  color: var(--on-brand);
}

.dd-step.done {
  color: var(--ink);
}

.dd-step.current .dd-step-circle {
  background: var(--brand-soft);
  color: var(--brand);
}

.dd-step.current {
  color: var(--ink);
  font-weight: 600;
}

.dd-auth-step-sep {
  flex: 0 0 2rem;
  height: 1px;
  background: var(--line);
}

/* Error banner (Shared/ErrorBanner.razor, NOTES.md 03-up-create-account). */
.dd-error-banner {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--bs-border-radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.dd-error-banner-icon {
  flex: 0 0 auto;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: #fff;
  font-weight: 700;
}

.dd-error-banner-title {
  font-weight: 600;
  padding: 0.6rem 0.9rem 0;
}

.dd-error-banner-text {
  padding: 0 0.9rem 0.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .dd-auth {
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .dd-auth-panel {
    flex: none;
    flex-direction: row;
    align-items: center;
    padding: var(--space-4);
  }

  .dd-auth-panel-center,
  .dd-auth-shot {
    display: none;
  }

  .dd-auth-right {
    flex: 1;
  }
}

/* Tables (APP-DESIGN.md §4, DD-0429 NOTES.md (a): 13px text, 40px rows): table-sm, hover, no zebra. */
.table {
  --bs-table-hover-bg: var(--bs-tertiary-bg);
  --bs-table-striped-bg: transparent;
  font-size: 13px;
}

.table > :not(caption) > * > * {
  padding: 11px 0.75rem;
}

.table > tbody > tr > td:first-child > a {
  font-weight: 600;
}

/* App.razor's <FocusOnNavigate Selector="h1" /> programmatically focuses the page heading after
   every navigation so screen readers announce it -- Chromium's default :focus ring then draws a
   heavy black rectangle around every page's H1 on load (DD-0422 #1). The announcement doesn't
   depend on a visible ring, so drop it here rather than for headings generally. */
h1:focus {
  outline: none;
}

/* Visible focus states (APP-DESIGN.md §7): Bootstrap's own focus ring covers form controls: this
   adds one for links, nav items and table-row links that don't otherwise get one. */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Status chip (APP-DESIGN.md §4), introduced by the Dashboard (task DD-0089) and reused wherever
   a job or deployment status shows up. */
.dd-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
}

.dd-status-chip-succeeded {
  background: var(--success-soft);
  color: var(--success);
}

.dd-status-chip-failed {
  background: var(--danger-soft);
  color: var(--danger);
}

.dd-status-chip-running {
  background: var(--info-soft);
  color: var(--info);
}

.dd-status-chip-cancelled {
  background: transparent;
  border: 1px solid var(--dd-border);
  color: var(--bs-secondary-color);
}

/* Provisioning checklist (task DD-0134): the Server page's Overview right after Create. */
.dd-provisioning-checklist {
  border: 1px solid var(--dd-border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.dd-checklist-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
  color: var(--bs-secondary-color);
}

.dd-checklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.dd-checklist-step-done {
  color: var(--bs-body-color);
}

.dd-checklist-step-done .dd-checklist-icon {
  color: var(--success);
  font-weight: 700;
}

.dd-checklist-step-running {
  color: var(--bs-body-color);
  font-weight: 600;
}

.dd-checklist-step-failed .dd-checklist-icon {
  color: var(--danger);
  font-weight: 700;
}

/* Shared LogViewer (task DD-0130): a dark terminal fixed on its own palette, not the Bootstrap
   --bs-* tokens above -- item 23 of APP-PARITY-RESEARCH-2026-09-13.md calls this out explicitly
   ("independent dark log terminal"), so it looks the same whether the rest of the page is in light
   or dark mode, same as Forge/Render's log explorers. tokens.css's own --terminal/--terminal-ink/
   --terminal-muted exist for exactly this (DD-0431); warn/error/mark stay bespoke hex because
   tokens.css's --warning/--danger flip per theme and would go unreadable against a bg that never
   does. */
.dd-log-viewer {
  --dd-log-bg: var(--terminal);
  --dd-log-fg: var(--terminal-ink);
  --dd-log-muted: var(--terminal-muted);
  --dd-log-border: color-mix(in srgb, var(--terminal-ink) 15%, var(--terminal));
  --dd-log-debug: var(--terminal-muted);
  --dd-log-info: var(--terminal-ink);
  --dd-log-warn: #e0af68;
  --dd-log-error: #f7768e;
  border-radius: 0.5rem;
  border: 1px solid var(--dd-log-border);
  background: var(--dd-log-bg);
  color: var(--dd-log-fg);
  overflow: hidden;
}

.dd-log-viewer-fullscreen {
  position: fixed;
  inset: 1rem;
  z-index: 1060;
  box-shadow: var(--shadow-lg);
}

.dd-log-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--dd-log-border);
}

.dd-log-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 14rem;
  min-width: 10rem;
}

.dd-log-search .form-control {
  background: var(--dd-log-bg);
  border-color: var(--dd-log-border);
  color: var(--dd-log-fg);
}

.dd-log-match-count {
  font-size: 0.75rem;
  color: var(--dd-log-muted);
  white-space: nowrap;
}

.dd-log-level-filter {
  width: auto;
  background: var(--dd-log-bg);
  border-color: var(--dd-log-border);
  color: var(--dd-log-fg);
}

.dd-log-toolbar-actions {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.dd-log-body {
  max-height: 28rem;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  font-family: var(--bs-font-monospace);
  font-size: 0.85rem;
}

.dd-log-viewer-fullscreen .dd-log-body {
  max-height: none;
  height: calc(100% - 3rem);
}

/* One deployment step's own log slice (task DD-0136) -- same monospace look as the LogViewer's
   flat log, just for the short excerpt one step's row expands to. */
.dd-log-pre {
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  font-family: var(--bs-font-monospace);
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bs-tertiary-bg);
  border-radius: 0.25rem;
}

.dd-log-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--dd-log-info);
}

.dd-log-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.dd-log-line-debug {
  color: var(--dd-log-debug);
}

.dd-log-line-warn {
  color: var(--dd-log-warn);
}

.dd-log-line-error {
  color: var(--dd-log-error);
}

.dd-log-line-current-match {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
}

.dd-log-line mark {
  background: var(--dd-log-warn);
  color: var(--dd-log-bg);
  border-radius: 0.15rem;
  padding: 0 0.1rem;
}

.dd-log-time {
  flex: 0 0 auto;
  color: var(--dd-log-muted);
}

.dd-log-level-tag {
  flex: 0 0 auto;
  color: var(--dd-log-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
}

.dd-log-status {
  padding: 0.35rem 0.75rem;
  border-top: 1px solid var(--dd-log-border);
}

/* "Live" badge (task DD-0129): sits next to a succeeded deployment's StatusChip wherever that
   deployment happens to be the site's current_deployment_id -- a fact about the site, not the
   deployment row itself, so it is never part of StatusChip's own status-code mapping. */
.dd-live-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--success-soft);
  color: var(--success);
}

.dd-status-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
  animation: dd-status-dot-pulse 1.2s ease-in-out infinite;
}

@keyframes dd-status-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Modal skeleton (Shared/DdModal.razor, DD-0429 NOTES.md 04-06). */
.dd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1055;
}

.dd-modal {
  width: 100%;
  max-width: 32rem;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.dd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--dd-border);
}

.dd-modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 16px;
  font-weight: 600;
}

.dd-modal-logo {
  font-size: 0.75rem;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 999px;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dd-modal-body {
  padding: 1.25rem;
}

.dd-modal-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem 1.25rem;
}

.dd-modal-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}

.dd-modal-progress-status {
  font-weight: 600;
}

/* Command palette (task DD-0128, Cmd+K / Ctrl+K global search). */
.dd-search-trigger {
  color: var(--bs-secondary-color);
  font-size: 1.1rem;
  line-height: 1;
}

.dd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  z-index: 1050;
}

.dd-palette {
  width: 100%;
  max-width: 36rem;
  max-height: 60vh;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dd-palette-input {
  border: none;
  border-bottom: 1px solid var(--dd-border);
  border-radius: 0;
  padding: 0.9rem 1rem;
}

.dd-palette-input:focus {
  box-shadow: none;
}

.dd-palette-results {
  overflow-y: auto;
  padding: 0.5rem;
}

.dd-palette-empty {
  padding: 1rem;
  font-size: 0.9rem;
}

.dd-palette-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.6rem 0.25rem;
}

.dd-palette-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: var(--bs-border-radius-sm);
  color: var(--bs-body-color);
}

.dd-palette-item.active,
.dd-palette-item:hover {
  background: var(--bs-tertiary-bg);
}

.dd-palette-item-subtitle {
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Health dot (APP-DESIGN.md §4): ok/warn/down/unknown. */
.dd-health-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--bs-secondary-color);
}

.dd-health-dot-ok { background: var(--success); }
.dd-health-dot-warn { background: var(--warning); }
.dd-health-dot-down { background: var(--danger); }
.dd-health-dot-unknown { background: var(--bs-secondary-color); }

/* Secondary/cancel buttons (task DD-0142): Bootstrap's compiled .btn-outline-secondary/.btn-light
   bake in a fixed gray at build time, so the --bs-primary/--bs-danger overrides at the top of this
   file never reach them -- next to the app's own palette they read as disabled even when they
   aren't (Rename/Cancel on Settings -> Providers). Override each button's own --bs-btn-* variables
   (Bootstrap 5.3's per-component API) instead, so both read at full opacity against --bs-body-color
   in light and dark. */
.btn-outline-secondary {
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-border-color: var(--bs-secondary-color);
  --bs-btn-hover-color: var(--bs-body-color);
  --bs-btn-hover-bg: var(--bs-tertiary-bg);
  --bs-btn-hover-border-color: var(--bs-secondary-color);
  --bs-btn-active-color: var(--bs-body-color);
  --bs-btn-active-bg: var(--bs-tertiary-bg);
  --bs-btn-active-border-color: var(--bs-secondary-color);
}

.btn-light {
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-bg: var(--bs-tertiary-bg);
  --bs-btn-border-color: var(--dd-border);
  --bs-btn-hover-color: var(--bs-body-color);
  --bs-btn-hover-bg: var(--bs-secondary-bg);
  --bs-btn-hover-border-color: var(--dd-border);
}

/* Designed empty state (task DD-0137): icon + one sentence + one primary button. */
.dd-empty-state-icon {
  color: var(--bs-secondary-color);
  margin-bottom: 0.75rem;
}

/* Shared components (docs/design-system/components/{Button,Input,StatusBadge,StatCard,DataTable,
   AlertRow,Tabs,DeployLog}, DD-0434): copied from bundle.css as-is, same as the AppShell rules
   above -- these back the new Dd* Razor components in Shared/, not the legacy .btn/.dd-status-chip/
   .dd-health-dot ones above, which stay in place until the pages that use them are redesigned
   (tasks 5-9). */
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* bundle.css names these .row/.stack, but this app also loads Bootstrap, whose own .row (grid)
   forces width:100% on every direct child via a higher-specificity ".row > *" rule that a bare
   ".row" class here can never out-rank -- dd-prefixed names avoid the collision entirely. */
.dd-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.dd-stack { display: flex; flex-direction: column; gap: var(--space-4); }

.dd-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
a.dd-btn:hover { text-decoration: none; }
.dd-btn.sm { height: 30px; padding: 0 var(--space-3); font-size: 13px; }
.dd-btn.block { width: 100%; }
.dd-btn.primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.dd-btn.primary:hover { background: var(--brand-hover); }
.dd-btn.secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.dd-btn.secondary:hover { background: var(--surface-sunken); }
.dd-btn.ghost { background: transparent; color: var(--ink-muted); }
.dd-btn.ghost:hover { background: var(--surface-sunken); color: var(--ink); }
.dd-btn.danger { background: var(--surface-raised); color: var(--danger); border-color: var(--danger); }
.dd-btn.danger:hover { background: var(--danger-soft); }
.dd-btn:disabled { opacity: .5; cursor: not-allowed; }

.dd-field { display: flex; flex-direction: column; gap: 6px; }
.dd-field label { font-weight: 500; }
.dd-input { height: 38px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: inherit; width: 100%; transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
.dd-input::placeholder { color: var(--ink-faint); }
.dd-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus); }
.dd-field .help { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dd-field.error .dd-input { border-color: var(--danger); }
.dd-field.error .help { color: var(--danger); }

.dd-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-sm); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.dd-badge::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; }
.dd-badge.success { color: var(--success); background: var(--success-soft); }
.dd-badge.danger { color: var(--danger); background: var(--danger-soft); }
.dd-badge.warning { color: var(--warning); background: var(--warning-soft); }
.dd-badge.info { color: var(--info); background: var(--info-soft); }
.dd-badge.neutral { color: var(--ink-muted); background: var(--surface-sunken); }
.dd-badge.live::before { animation: dd-pulse 1.2s ease-in-out infinite; }
@keyframes dd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .dd-badge.live::before { animation: none; } }

.dd-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.dd-chip.mono { font-family: var(--font-mono); color: var(--ink); }

.dd-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.dd-card > .head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.dd-card > .head h3 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.dd-card > .body { padding: var(--space-5); }

/* Settings pages (docs/design-system/components/SettingsNav, DD-0438): the provider grid inside
   the "Connect provider" modal -- selectable tiles, one active border-brand highlight, never a
   Bootstrap .row of .btn-outline-secondary. */
.dd-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--space-2); }
.dd-tile { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out; }
.dd-tile:hover { background: var(--surface-sunken); }
.dd-tile.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.dd-stat { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); }
.dd-stat .lbl { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.dd-stat .num { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dd-stat .num.attn { color: var(--danger); }
.dd-stat .sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 900px) { .dd-stats { grid-template-columns: repeat(2, 1fr); } }

/* Stat cards are links, whole card clickable (task DD-0445 #3): plain text color, border
   highlights on hover instead of the usual --brand link color/underline. Focus ring comes free
   from the global a:focus-visible rule above since this is a real <a>. */
a.dd-stat {
  color: inherit;
}
a.dd-stat:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.dd-table-scroll { width: 100%; overflow-x: auto; border-radius: var(--radius-lg); }
.dd-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.dd-table th { text-align: left; padding: 10px var(--space-4); background: var(--surface-sunken); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dd-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.dd-table tr:last-child td { border-bottom: 0; }
/* DataTable README: "hide the rightmost columns first below 800px; never wrap a row." Created and
   Duration are the lowest-priority facts on every table that has them (Servers list, Recent
   activity) -- .dd-table-scroll above still lets the rest scroll horizontally on anything narrower. */
@media (max-width: 640px) {
  .dd-table .col-created, .dd-table .col-duration { display: none; }
}
/* Sites list (DD-0446): same "hide the rightmost columns first" rule, applied to .NET then
   Repo / branch so Domain, Status, Server, Last deploy and the action buttons never wrap.
   NOT gated by a viewport media query like col-created/col-duration above -- .dd-main caps at
   max-width:1200px (~1136px inside .dd-table-scroll) on every viewport from 1440px up, so the
   table's actual box never gets wider no matter how big the screen is. With real domains/repo
   names (verified against dev.dotdeployer.com/sites) the 7-column row needs ~1490px, which
   overflows that fixed box at 1440px AND 1920px alike -- a max-width:1100px query never fires at
   either width, which is exactly why Mazhar saw Last deploy and the row buttons clipped off the
   right edge. Hide both unconditionally instead of picking a viewport number that doesn't track
   the actual available space. */
.dd-table .col-dotnet, .dd-table .col-repo { display: none; }
.dd-table tbody tr { cursor: pointer; transition: background-color 150ms ease-out; }
.dd-table tbody tr:hover { background: var(--surface-sunken); }
.dd-table td.name { font-weight: 500; }
.dd-table td.name a { color: var(--ink); }
.dd-table td.name a:hover { color: var(--brand); }
.dd-table .when { font-size: 13px; line-height: 18px; color: var(--ink-muted); white-space: nowrap; }
.dd-table .health { display: inline-flex; align-items: center; gap: 6px; }
.dd-table .health i { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--success); font-style: normal; }
.dd-table .health.warn i { background: var(--warning); }
.dd-table .health.down i { background: var(--danger); }
.dd-table .copy { opacity: 0; color: var(--ink-faint); margin-left: 6px; vertical-align: middle; cursor: pointer; border: 0; background: none; padding: 0; }
.dd-table tr:hover .copy { opacity: 1; }
.dd-table .type { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); }
/* Sites list domain cell (DD-0446): the domain browses the live site, the 14px external-link icon
   after it is the only visual cue it leaves the app -- no underline at rest, same as .name a. */
.dd-table .domain-link .ext { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; }
.dd-table .repo-name { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.dd-table .last-deploy { white-space: nowrap; }
.dd-table .col-actions { text-align: right; }
.dd-table .col-actions .dd-btn { margin-left: var(--space-2); }

/* Section header (docs/design-system/components/AppShell, DD-0433 -- the Dashboard's own two-column
   "Recent activity" / "Needs attention" rows, task DD-0436): missed when the rest of the AppShell
   bundle was copied in, since the AppShell preview card doesn't exercise it on its own. */
.dd-section { margin-bottom: var(--space-6); }
.dd-section > .sh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-3); }
.dd-section > .sh h2 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.dd-section > .sh a { font-size: 13px; }

.dd-dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .dd-dash-grid { grid-template-columns: 1fr; } }

.dd-alert { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--line); }
.dd-alert:last-child { border-bottom: 0; }
.dd-alert i { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--danger); flex: none; }
.dd-alert.warn i { background: var(--warning); }
.dd-alert .t { flex: 1; font-weight: 500; }
.dd-alert .t small { display: block; font-weight: 400; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dd-alert .x { color: var(--ink-faint); background: none; border: 0; padding: 4px; border-radius: var(--radius-sm); cursor: pointer; opacity: 0; }
.dd-alert:hover .x { opacity: 1; }
.dd-alert .x:hover { color: var(--ink); background: var(--surface-sunken); }

.dd-tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--line); }
.dd-tabs a { padding: 10px 0; color: var(--ink-muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dd-tabs a:hover { color: var(--ink); text-decoration: none; }
.dd-tabs a.active { color: var(--ink); border-color: var(--brand); }

.dd-log { display: grid; grid-template-columns: 220px 1fr; background: var(--terminal); border-radius: var(--radius-lg); overflow: hidden; color: var(--terminal-ink); font-family: var(--font-mono); font-size: 12.5px; line-height: 19px; }
.dd-log .steps { padding: var(--space-4); border-right: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); font-size: 13px; line-height: 18px; }
.dd-log .steps div { display: flex; align-items: center; gap: var(--space-2); color: var(--terminal-muted); }
.dd-log .steps div i { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--terminal-muted); flex: none; font-style: normal; }
.dd-log .steps div.done { color: var(--terminal-ink); } .dd-log .steps div.done i { background: #4ade80; }
.dd-log .steps div.run { color: var(--terminal-ink); } .dd-log .steps div.run i { background: #60a5fa; animation: dd-pulse 1.2s ease-in-out infinite; }
.dd-log .steps div.fail i { background: #f87171; }
.dd-log .steps span { margin-left: auto; font-variant-numeric: tabular-nums; }
.dd-log pre { margin: 0; padding: var(--space-4); overflow: auto; font: inherit; white-space: pre-wrap; word-break: break-word; }
.dd-log pre .ts { color: var(--terminal-muted); }
.dd-log pre .ok { color: #4ade80; } .dd-log pre .err { color: #f87171; }
@media (prefers-reduced-motion: reduce) { .dd-log .steps div.run i { animation: none; } }

/* Card-ified table under 576px (task DD-0137, parity item 12): every <td> needs its own
   data-label="<column header>" attribute for this to render -- the Activity page table is the
   reference implementation; adopt the same attribute on a table's cells to opt it in. Above the
   breakpoint this is a no-op and the table renders normally. */
@media (max-width: 575.98px) {
  .dd-table-cards thead {
    display: none;
  }

  .dd-table-cards table,
  .dd-table-cards tbody,
  .dd-table-cards tr,
  .dd-table-cards td {
    display: block;
    width: 100%;
  }

  .dd-table-cards tr {
    border: 1px solid var(--dd-border);
    border-radius: var(--bs-border-radius);
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .dd-table-cards td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border: none !important;
    padding: 0.35rem 0 !important;
    text-align: right;
  }

  .dd-table-cards td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-align: left;
  }

  .dd-table-cards td:empty::before {
    content: none;
  }
}
