@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700;800&family=Mulish:wght@400;500;600;700;800&display=swap");

* { box-sizing: border-box; }

:root {
  --ink: #16273F;
  --body: #33404F;
  --muted: #8791A0;
  --muted2: #5B6675;
  --muted3: #98A2B0;
  --card-border: #EAEDF3;
  --red: #E8402A;
}

html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Mulish", system-ui, sans-serif;
  color: var(--body);
  background: linear-gradient(180deg, #F6F4FB 0%, #F1F6F6 100%);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
a { text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
body.auth-pending .app-shell { display: none; }
.app-shell .rm-header-inner, .app-shell .rm-footer-inner { max-width: 90%; }

@keyframes dbFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------- Buttons ------------------------------- */
.db-btn { display: inline-flex; align-items: center; gap: 8px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 14px; border-radius: 12px; padding: 11px 18px; border: 1px solid transparent; text-decoration: none; white-space: nowrap; transition: all .15s ease; }
.db-btn-outline { background: #fff; color: var(--ink); border-color: #E4E8EF; box-shadow: 0 1px 2px rgba(18,38,63,0.05); }
.db-btn-outline:hover { border-color: #3C7CE0; color: #3C7CE0; }
/* Red header buttons share the Domains app's "+ Add domain" pill (fe-landscape .dl-add-btn):
   999px radius, 12px 22px, 15px Lexend 600, red glow, #D6371F on hover. */
.db-btn-red { background: #E8402A; color: #fff; border: none; border-radius: 999px; padding: 12px 22px; font-size: 15px; gap: 9px; box-shadow: 0 6px 16px rgba(232,64,42,0.28); }
.db-btn-red:hover { background: #D6371F; }
.db-btn-red:focus-visible { outline: 2px solid #16273F; outline-offset: 3px; }
.db-btn-blue { background: #2F6FE0; color: #fff; }
.db-btn-blue:hover { background: #1E56C0; }
.db-btn-dark { background: #16273F; color: #fff; }
.db-btn-dark:hover { background: #0f1b2d; }
.db-btn-ghost { background: #fff; color: var(--ink); border-color: #E4E8EF; box-shadow: 0 1px 2px rgba(18,38,63,0.05); }
.db-btn-ghost:hover { border-color: #16273F; }

/* ------------------------------- Hero ------------------------------- */
.db-hero-inner { max-width: 90%; margin: 0 auto; padding: 30px 32px 4px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.db-greeting { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 38px; line-height: 1.05; letter-spacing: -0.5px; color: var(--ink); margin: 0 0 6px; }
.db-subtitle { font-size: 15.5px; color: var(--muted2); }
.db-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.db-edit-toolbar { max-width: 90%; margin: 14px auto 0; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.db-toolbar-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted2); font-weight: 600; }

/* ------------------------------- Widget grid ------------------------------- */
.db-main { flex: 1; max-width: 90%; width: 100%; margin: 0 auto; padding: 22px 32px 56px; }
.db-gridwrap { position: relative; }
/* A real cell grid: 4 columns × 52px rows (ROW_UNIT in app.js). Widgets carry explicit
   grid-column/grid-row placement, so a widget can sit directly under another. */
.db-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 52px; gap: 24px; align-items: stretch; position: relative; z-index: 1; }
/* Spare drop space below the last widget while editing (two rows). */
.db-grid.editing { padding-bottom: 152px; }
/* Where the dragged widget will land: follows the pointer, snapped to cells. */
.db-drop-ghost { position: absolute; z-index: 2; pointer-events: none; border: 2px dashed #3C7CE0; border-radius: 22px; background: rgba(60,124,224,0.10); }
.db-drop-ghost[hidden] { display: none; }
/* Boxed guide layer (4 columns × fixed rows), revealed while dragging/resizing —
   matches the grid columns + the 52px row unit used for height snapping. */
.db-grid-guides { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 52px; gap: 24px; align-content: start; overflow: hidden; opacity: 0; transition: opacity .15s ease; pointer-events: none; z-index: 0; }
.db-grid-guides span { border-radius: 14px; background: rgba(60,124,224,0.05); border: 1px dashed rgba(60,124,224,0.28); }
.db-gridwrap.show-grid .db-grid-guides { opacity: 1; }
/* Every widget is a fixed cell box (placement is inline, from app.js); content taller than
   the box scrolls inside it. */
.db-w { min-width: 0; min-height: 0; overflow: hidden; animation: dbFadeUp 0.3s ease both; display: flex; flex-direction: column; }
.db-w-body { flex: 1; min-width: 0; min-height: 0; overflow: auto; }
/* Inner cards fill the box but may grow with content, so the scrollable area is the whole
   card rather than content spilling past a fixed-height card border. */
.db-w-body > .db-lib, .db-w-body > .db-v2-card, .db-w-body > .db-scorecard, .db-w-body > .db-keystats, .db-w-body > .db-v3-band { height: auto; min-height: 100%; }
.db-grid.editing .db-w { position: relative; outline: 1.5px dashed #C9D2DE; outline-offset: 4px; border-radius: 22px; cursor: grab; }
.db-grid.editing .db-w:hover { outline-color: #3C7CE0; }
.db-w.dragging { opacity: 0.45; }
.db-w.drop-target { outline: 2px solid #3C7CE0 !important; outline-offset: 4px; }
.db-w.resizing { outline: 2px solid #3C7CE0 !important; }
/* Bottom-right corner resize grip (diagonal lines). */
.db-w-resize { position: absolute; right: 5px; bottom: 5px; width: 18px; height: 18px; z-index: 3; cursor: nwse-resize; touch-action: none; border-radius: 5px;
  background-image: repeating-linear-gradient(135deg, #9AA5B4 0 1.5px, transparent 1.5px 4px); opacity: .75; }
.db-w-resize:hover { opacity: 1; }
.db-resize-badge { position: absolute; z-index: 6; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 12px; color: #fff; background: #16273F; border-radius: 8px; padding: 5px 10px; pointer-events: none; box-shadow: 0 4px 12px rgba(18,38,63,0.28); }
/* Edit-mode remove control: a round × hanging off the widget's top-right corner. It takes no
   layout space, so the body is the same size in edit and view mode. The widget's overflow is
   opened up only while editing so the badge can sit half outside the box; the body still
   clips/scrolls its own content. */
.db-grid.editing .db-w { overflow: visible; }
.db-w-remove { position: absolute; top: -11px; right: -11px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid #D8DEE7; box-shadow: 0 2px 8px rgba(18,38,63,0.14); cursor: pointer; }
.db-w-remove:hover { border-color: var(--red); background: #FCECEA; }
.db-w-remove:hover svg path { stroke: var(--red); }
.db-w.settings-open { z-index: 5; }
.db-w-settings { position: absolute; top: -11px; right: 24px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid #D8DEE7; box-shadow: 0 2px 8px rgba(18,38,63,0.14); cursor: pointer; }
.db-w-settings:hover, .db-w-settings[aria-expanded="true"] { border-color: #3C7CE0; background: #EAF1FC; }
.db-w-settings-menu { position: absolute; top: 26px; right: 24px; z-index: 6; width: min(300px, calc(100vw - 56px)); padding: 16px; background: #fff; border: 1px solid #D8DEE7; border-radius: 12px; box-shadow: 0 12px 32px rgba(18,38,63,0.18); cursor: default; }
.db-w-settings-menu label { display: block; margin-bottom: 8px; color: #16273F; font-size: 13px; font-weight: 700; }
.db-w-settings-menu select { width: 100%; padding: 9px 10px; border: 1px solid #C9D2DE; border-radius: 8px; background: #fff; color: #16273F; font: inherit; font-size: 13px; }

/* ------------------------------- Score widget ------------------------------- */
.db-scorecard { background: #16273F; border-radius: 22px; padding: 30px; height: 100%; display: flex; align-items: center; gap: 24px; box-shadow: 0 4px 20px rgba(18,38,63,0.10); }
.db-ring { position: relative; width: 124px; height: 124px; flex: 0 0 auto; border-radius: 50%; }
.db-ring-hole { position: absolute; inset: 13px; background: #16273F; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.db-ring-value { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 28px; color: #fff; line-height: 1; }
.db-ring-level { font-size: 10px; color: #8CA0B8; font-weight: 700; letter-spacing: 0.5px; margin-top: 3px; }
.db-score-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 26px; color: #fff; line-height: 1.1; }
.db-score-sub { font-size: 13.5px; color: #A9B7C9; margin-top: 8px; line-height: 1.5; }
.db-score-badge { display: inline-flex; align-items: center; margin-top: 14px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 12.5px; color: #7BE0AE; background: rgba(63,208,138,0.14); border: 1px solid rgba(63,208,138,0.3); border-radius: 8px; padding: 5px 12px; }

/* ------------------------------- Key stats widget ------------------------------- */
.db-keystats { background: #fff; border: 1px solid var(--card-border); border-radius: 16px; box-shadow: 0 4px 20px rgba(18,38,63,0.05); padding: 30px 34px; height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.db-keystat-top { display: flex; align-items: center; gap: 10px; }
.db-keystat-value { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 30px; color: var(--ink); line-height: 1; }
.db-keystat-delta { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 11.5px; color: #1FA97A; background: #E7F7F1; border-radius: 999px; padding: 3px 9px; }
.db-keystat-desc { font-size: 13.5px; color: var(--muted2); margin-top: 8px; line-height: 1.5; }

/* ------------------------------- Section head (domains/products) ------------------------------- */
.db-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.db-section-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); margin: 0; }
.db-section-sub { font-size: 14px; color: var(--muted2); margin-top: 3px; }
.db-section-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------- Domains ------------------------------- */
.db-domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.db-domain { background: #fff; border: 1px solid var(--card-border); border-radius: 16px; box-shadow: 0 4px 16px rgba(18,38,63,0.05); padding: 16px; }
.db-domain-shot { height: 210px; border-radius: 12px; display: flex; align-items: flex-end; padding: 14px; color: rgba(255,255,255,0.92); font-family: "Lexend", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.db-domain-head { display: flex; align-items: center; gap: 12px; margin: 16px 4px 0; }
.db-domain-fav { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: #F2F4F8; display: flex; align-items: center; justify-content: center; }
.db-domain-name { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.db-domain-host { font-size: 12.5px; color: var(--muted); }
.db-domain-score { margin-left: auto; flex: 0 0 auto; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 13px; color: #C79020; background: #FCF3DC; border-radius: 8px; padding: 6px 12px; }
.db-domain-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.db-domain-stat { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.db-domain-stat-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.db-domain-stat-value { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 17px; color: var(--ink); }
.db-domain-stat-label { font-size: 12px; color: var(--muted); }
.db-domain-foot { display: flex; align-items: center; gap: 12px; }
.db-domain-del { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid #E4E8EF; display: flex; align-items: center; justify-content: center; }
.db-domain-del:hover { border-color: var(--red); }
.db-domain-view { flex: 1; justify-content: center; padding: 13px; }

/* ------------------------------- Products ------------------------------- */
.db-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.db-product { display: block; background: #fff; border: 1px solid var(--card-border); border-left: 4px solid #ccc; border-radius: 16px; box-shadow: 0 4px 16px rgba(18,38,63,0.05); padding: 20px; transition: all .16s ease; }
.db-product:hover { box-shadow: 0 10px 26px rgba(18,38,63,0.10); transform: translateY(-1px); }
.db-product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.db-product-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.db-product-trend { display: inline-flex; align-items: center; gap: 6px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 12.5px; color: #1FA97A; }
.db-product-go { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; border: 1px solid #EAEDF3; margin-left: 4px; }
.db-product-name { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.db-product-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; margin-bottom: 18px; line-height: 1.5; min-height: 36px; }
.db-product-metric-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.db-product-metric { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 27px; color: var(--ink); line-height: 1; }
.db-product-unit { font-size: 13.5px; color: var(--muted2); font-weight: 600; }
.db-product-sub { font-size: 12.5px; color: var(--muted); margin-left: auto; }

/* ------------------------------- Attention / Activity ------------------------------- */
/* These two widgets live inside a white card body (unlike the section widgets). */
.db-w:has(.db-card-head) .db-w-body { background: #fff; border: 1px solid var(--card-border); border-radius: 16px; box-shadow: 0 4px 16px rgba(18,38,63,0.05); padding: 24px; }
.db-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.db-card-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); margin: 0; }
.db-card-when { font-size: 13px; color: var(--muted3); font-weight: 600; }
.db-badge-red { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 12px; color: var(--red); background: #FCECEA; border-radius: 999px; padding: 5px 12px; }

.db-attn { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #F1F4F8; }
.db-attn:last-child { border-bottom: none; }
.db-attn:hover .db-attn-text { color: var(--red); }
.db-attn-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.db-attn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.db-attn-text { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.db-attn-product { font-size: 12.5px; color: var(--muted3); margin-top: 2px; }
.db-attn-count { flex: 0 0 auto; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 13px; color: #C0392B; background: #FCECEC; border-radius: 999px; padding: 4px 13px; }

.db-act { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.db-act-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; }
.db-act-main { flex: 1; min-width: 0; }
.db-act-text { font-size: 14px; color: var(--body); line-height: 1.5; }
.db-act-text strong { color: var(--ink); font-weight: 700; }
.db-act-time { font-size: 12.5px; color: var(--muted3); }
.db-act-empty { padding: 18px 2px; font-size: 13.5px; color: var(--muted3); }

/* ------------------------------- Widget library cards ------------------------------- */
.db-lib { background: #fff; border: 1px solid #EAEDF3; border-radius: 16px; box-shadow: 0 4px 18px rgba(18,38,63,0.05); padding: 26px 28px; height: 100%; }
.db-lib-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 18px; color: #16273F; letter-spacing: -0.2px; }
.db-lib-sub { font-size: 13.5px; color: #8791A0; margin-top: 3px; }

/* ------------------------------- Fake widget ------------------------------- */
.db-fake { background: #fff; border: 1px dashed #D3DBE6; border-radius: 16px; padding: 28px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 150px; }
.db-fake-icon { width: 46px; height: 46px; border-radius: 12px; background: #F2F4F8; display: flex; align-items: center; justify-content: center; }
.db-fake-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 4px; }
.db-fake-desc { font-size: 13px; color: var(--muted); max-width: 320px; line-height: 1.5; }
.db-fake-tag { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #8791A0; background: #F2F4F8; border-radius: 999px; padding: 4px 10px; margin-top: 6px; }

/* ------------------------------- Add-widget panel ------------------------------- */
.db-add-overlay { position: fixed; inset: 0; background: rgba(16,26,40,0.45); z-index: 80; opacity: 0; transition: opacity .26s ease; }
.db-add-overlay.show { opacity: 1; }
.db-add-panel { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 94vw; background: #F6F7FA; z-index: 85; overflow-y: auto; box-shadow: -18px 0 50px rgba(16,26,40,0.22); transform: translateX(104%); transition: transform .28s cubic-bezier(.22,.61,.36,1); }
.db-add-panel.show { transform: translateX(0); }
.db-add-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 16px; position: sticky; top: 0; background: rgba(246,247,250,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid #ECEEF3; }
.db-add-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 19px; color: var(--ink); }
.db-add-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.db-add-close { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid #E4E8EF; display: flex; align-items: center; justify-content: center; }
.db-add-list { padding: 16px 22px 34px; display: flex; flex-direction: column; gap: 12px; }
.db-add-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid #E9ECF2; border-radius: 16px; padding: 14px 16px; transition: all .15s ease; }
.db-add-item:hover { border-color: #3C7CE0; box-shadow: 0 6px 16px rgba(18,38,63,0.08); }
.db-add-item-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; background: #EAF1FC; display: flex; align-items: center; justify-content: center; }
.db-add-item-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.db-add-item-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.db-add-item-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.db-add-item-plus { flex: 0 0 auto; }

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 1180px) {
  .db-products { grid-template-columns: repeat(2, 1fr); }
  .db-domains { grid-template-columns: 1fr; }
  /* Single column: drop the cell placement and let widgets stack in reading order at their
     natural height (the grid model only applies at full width). */
  .db-grid { grid-auto-rows: auto; }
  .db-w { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .db-keystats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .db-hero-inner, .db-main, .db-edit-toolbar { padding-left: 20px; padding-right: 20px; }
  .db-products { grid-template-columns: 1fr; }
  .db-keystats { grid-template-columns: 1fr; }
  .db-greeting { font-size: 30px; }
}

/* Add-widget popout: category groups (General, then per product). */
.db-add-group { display: flex; flex-direction: column; gap: 10px; }
.db-add-group + .db-add-group { margin-top: 18px; }
.db-add-group-title {
  font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: 0.6px;
  text-transform: uppercase; color: #8791A0; padding: 2px 2px 2px; margin-bottom: 2px;
}

/* Honest empty state, used wherever a widget has no live data to show rather than
   falling back to invented figures. */
.db-empty {
  grid-column: 1 / -1;
  padding: 28px 20px;
  border: 1px dashed #D8DEE7;
  border-radius: 12px;
  background: #FBFCFD;
  color: var(--muted2);
  font-size: 14px;
  text-align: center;
}

/* ------------------------------- Board (dashboard) tab band ------------------------------- */
/* Suite pattern: a white full-bleed strip. The band spans the viewport (it sits directly in
   .db-hero, outside the 90% .db-hero-inner), and only its row is width-constrained. */
.db-board-band { background: #fff; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); margin-top: 18px; }
.db-board-band:empty { display: none; }
.db-board-row { max-width: 90%; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.db-board-tabs { display: flex; gap: 30px; flex-wrap: wrap; }
.db-board-tab { display: inline-flex; align-items: center; gap: 8px; padding: 15px 2px; background: none; border: none; border-bottom: 3px solid transparent; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 15px; color: var(--muted2); }
.db-board-tab:hover { color: var(--ink); }
.db-board-tab.is-active { font-weight: 700; color: var(--ink); border-bottom-color: var(--red); }
/* Drag-to-reorder: the tab being moved fades; a blue insertion line marks where it will land
   (in the 30px gap on the left or right of the hovered tab). */
.db-board-tab { position: relative; cursor: grab; }
.db-board-tab.dragging { opacity: 0.45; }
.db-board-tab.drop-before::before, .db-board-tab.drop-after::after { content: ""; position: absolute; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: #3C7CE0; }
.db-board-tab.drop-before::before { left: -16px; }
.db-board-tab.drop-after::after { right: -16px; }
.db-board-tab-count { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 11px; color: var(--muted2); background: #F1F4FA; border: 1px solid #E4E9F1; border-radius: 999px; padding: 2px 8px; }
.db-board-tab.is-active .db-board-tab-count { color: #C0392B; background: #FCECEC; border-color: #F5D5D5; }
.db-board-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; }
.db-board-btn { display: inline-flex; align-items: center; gap: 6px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 13px; color: #3B4757; background: #fff; border: 1px solid #E4E9F1; border-radius: 999px; padding: 8px 15px; }
/* Same hover as the hero's Edit button (.db-btn-ghost): dark outline, text unchanged. */
.db-board-btn:hover { border-color: #16273F; }
.db-board-btn-dashed { border: 1.5px dashed #C9D3E0; color: var(--ink); }
.db-board-btn-pressed { background: var(--ink); border-color: var(--ink); color: #fff; }
.db-board-btn-text { background: none; border: none; padding: 8px 4px; color: var(--muted2); }
.db-board-btn-text:hover { color: #C0392B; }
.db-board-input { font-family: "Lexend", sans-serif; font-size: 13.5px; color: var(--ink); border: 1px solid #B9CEF0; border-radius: 10px; padding: 9px 13px; min-width: 220px; outline: none; }
.db-board-input:focus { box-shadow: 0 0 0 3px rgba(60,124,224,0.14); }
.db-board-hint { font-size: 12.5px; color: var(--muted2); }
.db-board-hint.is-warn { font-weight: 700; color: #95530D; }
.db-board-confirm-text { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 13.5px; color: #95530D; }
.db-board-btn-danger { background: #C9331D; border-color: #C9331D; color: #fff; }
.db-board-empty { background: #fff; border: 1.5px dashed #DCE3EC; border-radius: 16px; padding: 44px 24px; text-align: center; }
.db-board-empty-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); }
.db-board-empty-sub { font-size: 14px; color: var(--muted2); margin-top: 6px; }

/* ------------------------------- Dashboard v2 card shell (landscape / digital / buildings) ------------------------------- */
/* Title row with a right-hand action (text link or total pill), then the body — the design's
   card/cardHead/cardTitle trio. Distinct from .db-lib (title + subtitle, no action row). */
.db-v2-card { display: flex; flex-direction: column; min-width: 0; height: 100%; background: #fff; border: 1px solid #EAEDF3; border-radius: 16px; box-shadow: 0 4px 16px rgba(18,38,63,0.05); padding: 20px 22px; }
.db-v2-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.db-v2-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.db-v2-link { font-family: "Lexend", sans-serif; font-weight: 600; font-size: 12.5px; color: #2F6FE0; }
.db-v2-link:hover { color: #1E56C0; text-decoration: underline; }
.db-v2-card .db-empty { margin-top: 0; }

/* Your landscape: five volume tiles, each a link into the product that owns that asset type. */
/* flex:1 + stretched rows: the tiles grow to fill whatever height the card has, rather than
   leaving empty card below a content-height row. */
.db-vol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 11px; flex: 1; align-content: stretch; }
.db-vol-cell { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; background: #F7F9FC; border: 1px solid #EFF2F7; border-radius: 13px; padding: 14px 15px; text-decoration: none; }
.db-vol-cell:hover { border-color: #C9D3E0; }
.db-vol-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: #fff; border: 1px solid #E4E9F1; margin-bottom: 11px; }
.db-vol-value { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 26px; line-height: 1; color: var(--ink); }
.db-vol-label { font-size: 12.5px; font-weight: 600; color: #5F6A79; margin-top: 5px; }

/* ------------------------------- Digital issues / Buildings cell grids ------------------------------- */
.db-def-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 11px; align-items: stretch; flex: 1; align-content: stretch; }
/* Digital issues: always two rows of four, in catalogue order (row 1 content types, row 2 disciplines). */
.db-def-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .db-def-grid--4 { grid-template-columns: repeat(2, 1fr); } }
.db-def-cell { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid #E4E9F1; border-radius: 13px; padding: 14px 15px; gap: 6px; }
.db-def-top { display: flex; align-items: center; gap: 8px; }
.db-def-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.db-def-tag { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--muted2); }
.db-def-value { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 24px; color: var(--ink); margin-top: 2px; }
.db-def-label { font-size: 12.5px; font-weight: 600; color: #33404F; }
.db-def-share { font-size: 11.5px; color: var(--muted2); line-height: 1.4; }
.db-def-cta { margin-top: auto; padding-top: 10px; width: 100%; }
.db-def-cta-btn { display: inline-flex; align-items: center; gap: 6px; width: 100%; justify-content: center; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 11.5px; border-radius: 8px; padding: 8px 10px; background: #fff; border: 1.5px solid #E4E9F1; color: var(--ink); }
.db-def-cta-btn.is-locked { background: #F1F4FA; border-color: #DCE3EC; color: #3B4757; }
.db-def-total { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; font-size: 12px; color: var(--muted2); background: #F1F4FA; border: 1px solid #E4E9F1; border-radius: 999px; padding: 5px 11px; }

/* ------------------------------- Organisation roadmap widget ------------------------------- */
.db-rm-group { margin-top: 16px; }
.db-rm-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.db-rm-group-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.db-rm-group-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; }
.db-rm-group-rule { flex: 1; height: 1px; background: #EDF0F5; }
.db-rm-row { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #E4E9F1; border-radius: 12px; padding: 11px 13px; margin-bottom: 8px; }
.db-rm-row.is-late { background: #FEF5F5; border-color: #F3C6C6; }
.db-rm-row-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.db-rm-pill { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 10px; border-radius: 999px; padding: 3px 9px; }
.db-rm-pill-grey { background: #F1F4FA; color: #5B6675; }
.db-rm-pill-due { background: #F1F4FA; color: #5B6675; }
.db-rm-pill-due.is-late { background: #FCECEC; color: #C0392B; }
.db-rm-pill-cadence { background: #F2EFFC; color: #5B3FD1; }
.db-rm-title { font-family: "Lexend", sans-serif; font-weight: 600; font-size: 13px; color: var(--ink); }
.db-rm-owner { font-size: 11.5px; color: #5B6675; }
.db-rm-owner.is-unowned { font-weight: 700; color: #95530D; }

/* ------------------------------- Your tasks widget ------------------------------- */
.db-task-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid #E4E9F1; background: #fff; margin-bottom: 8px; }
.db-task-row.is-late { background: #FEF5F5; border-color: #F3C6C6; }
.db-task-row.is-done { background: #F2FAF6; }
.db-task-check { flex: 0 0 auto; width: 21px; height: 21px; border-radius: 6px; border: 1.5px solid #CBD4E0; background: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.db-task-check.is-done { background: #14795A; border-color: #14795A; }
.db-task-main { flex: 1; min-width: 0; }
.db-task-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.db-task-src { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 10px; border-radius: 999px; padding: 3px 9px; }
.db-task-due { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 10.5px; border-radius: 999px; padding: 3px 9px; background: #F1F4FA; color: #5B6675; }
.db-task-due.is-late { background: #FCECEC; color: #C0392B; }
.db-task-due.is-done { background: #E7F7F1; color: #14795A; }
.db-task-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 13.5px; color: var(--ink); margin-top: 4px; }
.db-task-title.is-done { text-decoration: line-through; color: #8791A0; }
.db-task-context { font-size: 11.5px; color: #8791A0; margin-top: 2px; }

/* ------------------------------- Team workload widget ------------------------------- */
.db-team-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.db-team-avatar { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 12px; color: #fff; }
.db-team-name { flex: 0 0 130px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-team-track { flex: 1; height: 7px; border-radius: 999px; background: #EDF0F5; overflow: hidden; }
.db-team-fill { height: 100%; border-radius: 999px; }
.db-team-count { flex: 0 0 auto; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 13px; color: var(--ink); width: 34px; text-align: right; }

/* ============================== Dashboard v3 (design_handoff_dashboard_v3) ============================== */
/* Shared: movement pills, card head clusters, visually-hidden text. */
.db-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.db-v3-pill { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; border: 1px solid; border-radius: 999px; padding: 3px 9px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 11px; white-space: nowrap; }
.db-v3-pill--cell { margin-top: 10px; }
.db-v3-head-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.db-v3-when { font-size: 12.5px; color: #5F6A79; }

/* Your landscape: five volume tiles + movement pill each. */
.db-v3-vol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; flex: 1; align-content: stretch; }
.db-v3-vol { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; background: #fff; border: 1px solid #EAEDF3; border-radius: 14px; padding: 16px 17px; text-decoration: none; }
.db-v3-vol:hover { border-color: #C9D3E0; }
.db-v3-vol-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: #F1F4FA; border: 1px solid #E4E9F1; }
.db-v3-vol-value { display: block; font-family: "Lexend", sans-serif; font-weight: 800; font-size: 26px; color: var(--ink); line-height: 1; margin-top: 12px; }
.db-v3-vol-label { display: block; font-size: 13px; color: #5F6A79; margin-top: 5px; }

/* Digital issues: four content-type cells with a named fix each, then the level row. */
.db-v3-cell-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; }
.db-v3-cell { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #EAEDF3; border-radius: 14px; padding: 16px 17px; }
.db-v3-cell-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.db-v3-cell-kicker { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: #5F6A79; }
.db-v3-cell-kicker svg { flex: 0 0 auto; }
.db-v3-cell-value { display: block; font-family: "Lexend", sans-serif; font-weight: 800; font-size: 30px; line-height: 1; color: var(--ink); }
.db-v3-cell-value.is-muted, .db-v3-level-value.is-muted, .db-v3-mini-value.is-muted { color: #5F6A79; }
.db-v3-cell-sub { display: block; font-size: 12.5px; color: #5F6A79; margin-top: 5px; line-height: 1.45; }
.db-v3-fix { margin-top: auto; padding-top: 0; }
.db-v3-fix { background: #F5F8FE; border: 1px solid #D6E4FB; border-radius: 12px; padding: 13px 14px; margin-top: 13px; }
.db-v3-fix.is-handled { background: #E7F7F1; border-color: #CDEDE1; }
.db-v3-fix-kicker { display: block; font-family: "Lexend", sans-serif; font-weight: 800; font-size: 9.5px; letter-spacing: 0.11em; text-transform: uppercase; color: #1E56C0; }
.db-v3-fix.is-handled .db-v3-fix-kicker { color: #0F6B4F; }
.db-v3-fix-title { display: block; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 13.5px; color: var(--ink); margin-top: 6px; line-height: 1.4; }
.db-v3-fix-detail { display: block; font-size: 12px; color: #5F6A79; margin-top: 4px; line-height: 1.45; }
.db-v3-find { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 13px; color: #C9331D; }
.db-v3-find:hover { text-decoration: underline; }
.db-v3-find.is-locked { color: #3B4757; }
.db-v3-level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 13px; margin-top: 13px; }
.db-v3-level { background: #F7F9FC; border: 1px solid #EFF2F7; border-radius: 14px; padding: 15px 17px; min-width: 0; }
.db-v3-level-label { display: block; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: #5F6A79; margin-bottom: 9px; }
.db-v3-level-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.db-v3-level-value { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 24px; color: var(--ink); line-height: 1; }

/* Obligation bar: the regulation, the standard and the deadline in one dark band. */
.db-v3-band { display: flex; align-items: center; justify-content: space-between; gap: 18px 26px; flex-wrap: wrap; background: #16273F; border-radius: 18px; padding: 18px 24px; box-shadow: 0 4px 16px rgba(18,38,63,0.10); }
.db-v3-band-cells { display: flex; align-items: stretch; flex-wrap: wrap; min-width: 0; }
.db-v3-band-cell { padding: 0 26px; border-left: 1px solid rgba(255,255,255,0.18); min-width: 0; }
.db-v3-band-cell:first-child { padding-left: 0; border-left: none; }
.db-v3-band-kicker { display: block; font-family: "Lexend", sans-serif; font-weight: 800; font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: #8FB6F5; margin-bottom: 7px; }
.db-v3-band-value { display: block; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 19px; color: #fff; line-height: 1.15; }
.db-v3-band-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.db-v3-count { text-align: right; }
.db-v3-count-num { display: block; font-family: "Lexend", sans-serif; font-weight: 800; font-size: 38px; line-height: 1; color: #5EE0DC; margin-bottom: 7px; }
.db-v3-count-num span { font-size: 24px; }
.db-v3-count .db-v3-band-kicker { margin-bottom: 0; }
.db-v3-band-note { max-width: 250px; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.18); border-radius: 13px; padding: 13px 15px; font-size: 13px; line-height: 1.5; color: #D8E4F4; }
.db-v3-band-foot { display: block; max-width: 340px; margin-top: 6px; font-size: 11.5px; line-height: 1.4; color: #C8D6EA; }
.db-v3-band--empty .db-v3-band-note { max-width: 520px; background: none; border: none; padding: 0; margin-top: 8px; }
.db-v3-band-link { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 11px 16px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 13.5px; color: #16273F; }

/* Organisation overview. */
.db-v3-rows { display: flex; flex-direction: column; }
.db-v3-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #F1F4F8; }
.db-v3-row--tall { align-items: flex-start; flex-wrap: wrap; padding: 15px 0; margin-top: 6px; }
.db-v3-row-label { flex: 1; min-width: 0; font-size: 13.5px; color: #5F6A79; }
.db-v3-row-value { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); text-align: right; }
.db-v3-row-stack { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; }
.db-v3-row-stack .db-v3-cell-sub { margin-top: 3px; }
.db-v3-dark { background: #16273F; border-radius: 14px; padding: 16px 17px; margin-top: 16px; }
.db-v3-dark .db-v3-band-kicker { font-size: 10px; margin-bottom: 8px; }
.db-v3-dark-value { display: block; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 16px; color: #fff; line-height: 1.3; }
.db-v3-dark-sub { display: block; font-size: 13px; color: #C8D6EA; margin-top: 7px; }
.db-v3-dark-sub strong { color: #5EE0DC; }
.db-v3-dark-sub a { color: #8FB6F5; font-weight: 700; }
.db-v3-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 11px; margin-top: 13px; }
.db-v3-mini { background: #F7F9FC; border: 1px solid #EFF2F7; border-radius: 13px; padding: 14px 15px; min-width: 0; }
.db-v3-mini .db-v3-cell-kicker { font-size: 10.5px; margin-bottom: 7px; }
.db-v3-mini-value { display: block; font-family: "Lexend", sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); line-height: 1; }
.db-v3-section { padding-top: 16px; }
.db-v3-section-title { display: block; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #5F6A79; margin-bottom: 10px; }
.db-v3-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.db-v3-chip { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid #E4E9F1; border-radius: 10px; padding: 7px 12px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 12.5px; color: var(--body); white-space: nowrap; }
.db-v3-chip--green { border: 1px solid #CDEDE1; border-radius: 9px; padding: 6px 11px; color: #0F6B4F; }
.db-v3-chip-n { color: #5F6A79; font-weight: 700; }
.db-v3-dashed { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1.5px dashed #E4C7C0; border-radius: 10px; padding: 7px 12px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 12.5px; color: #C9331D; white-space: nowrap; }
.db-v3-dashed:hover { border-color: #C9331D; }
.db-v3-dashed--sm { border-radius: 9px; padding: 6px 11px; font-size: 12px; }
.db-v3-avatars { display: flex; align-items: center; }
.db-v3-avatar { position: relative; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-family: "Lexend", sans-serif; font-weight: 800; font-size: 10.5px; color: #fff; }
.db-v3-avatars .db-v3-avatar + .db-v3-avatar { margin-left: -8px; }
.db-v3-avatar.is-more { background: #EEF1F6; color: #3B4757; }
.db-v3-avatar--sm { width: 24px; height: 24px; border: none; font-size: 9.5px; background: #2F6FE0; }
.db-v3-position { border-radius: 13px; padding: 14px 16px; margin-top: 18px; font-size: 13px; line-height: 1.55; font-weight: 600; }
.db-v3-position.is-good { background: #E7F7F1; border: 1px solid #CDEDE1; color: #0F6B4F; }
.db-v3-position.is-warn { background: #FCF3E8; border: 1px solid #F1E2C8; color: #7A4409; }
.db-v3-position.is-neutral { background: #F1F4FA; border: 1px solid #E4E9F1; color: #3B4757; }

/* Your accessibility programme. */
.db-v3-tagpill { background: #F1F4FA; border: 1px solid #E4E9F1; border-radius: 999px; padding: 6px 13px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 12px; color: #5B6675; white-space: nowrap; }
.db-v3-intro { font-size: 14px; color: #5F6A79; margin: 0 0 18px; line-height: 1.55; }
.db-v3-balance { background: #16273F; border-radius: 16px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.db-v3-balance-copy { flex: 1; min-width: 260px; }
.db-v3-balance-title { display: block; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 15px; color: #5EE0DC; margin-bottom: 7px; }
.db-v3-balance-text { display: block; font-size: 13.5px; color: #C8D6EA; line-height: 1.6; }
.db-v3-balance-cells { display: flex; gap: 11px; flex-wrap: wrap; }
.db-v3-balance-cell { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 13px; padding: 14px 18px; min-width: 150px; }
.db-v3-balance-cell .db-v3-band-kicker { font-size: 9.5px; letter-spacing: 0.12em; margin-bottom: 8px; }
.db-v3-balance-num { display: block; font-family: "Lexend", sans-serif; font-weight: 800; font-size: 24px; color: #fff; line-height: 1; }
.db-v3-balance-num.is-teal { color: #5EE0DC; }
.db-v3-balance-note { display: block; font-size: 12px; color: #C8D6EA; margin-top: 6px; }
.db-v3-timeline { background: #F7F9FC; border: 1px solid #EFF2F7; border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; }
.db-v3-timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.db-v3-forever { display: inline-flex; align-items: center; gap: 7px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: #14795A; }
/* Two breakpoints on the page, each sized for its own content: the timeline needs room for five
   labelled stops, which is a different threshold from the top split. */
.db-v3-timeline-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1080px) { .db-v3-timeline-grid { grid-template-columns: minmax(0, 1fr); } }
.db-v3-timeline-left { min-width: 0; padding-bottom: 4px; }
.db-v3-timeline-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.db-v3-timeline-right > svg { flex: 0 0 auto; }
/* The track is one element with the marks positioned along it, so a stop cannot drift away from
   the line it sits on. Geometry constants live in renderTimeline(). */
.db-v3-track { position: relative; height: 150px; }
.db-v3-rail { position: absolute; left: 0; right: 0; border-radius: 2px; background: #E1E7F0; }
.db-v3-rail-fill { position: absolute; left: 0; border-radius: 2px; background: #1FA97A; }
.db-v3-dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid; box-sizing: content-box; }
.db-v3-dot[data-anchor="mid"] { transform: translateX(-50%); }
.db-v3-dot[data-anchor="end"] { transform: translateX(-100%); }
.db-v3-stop { position: absolute; display: flex; flex-direction: column; gap: 2px; width: 120px; max-width: 120px; align-items: center; text-align: center; }
.db-v3-stop.is-above { top: 0; justify-content: flex-end; }
.db-v3-stop.is-below { justify-content: flex-start; }
.db-v3-stop[data-anchor="mid"] { transform: translateX(-50%); }
.db-v3-stop[data-anchor="start"] { align-items: flex-start; text-align: left; }
.db-v3-stop[data-anchor="end"] { transform: translateX(-100%); align-items: flex-end; text-align: right; }
.db-v3-stop-label { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 12px; line-height: 1.35; }
.db-v3-stop-when { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; color: #5F6A79; }
.db-v3-cycle { flex: 1; min-width: 0; background: #E7F7F1; border: 1px solid #CDEDE1; border-radius: 14px; padding: 16px 18px; }
.db-v3-cycle-title { display: flex; align-items: center; gap: 8px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 14px; color: #14795A; margin-bottom: 11px; }
.db-v3-cycle .db-v3-chips { gap: 7px; margin-bottom: 11px; }
.db-v3-cycle-text { display: block; font-size: 12.5px; color: #0F6B4F; line-height: 1.5; }
.db-v3-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; align-items: start; }
.db-v3-lane { display: flex; flex-direction: column; background: #F7F9FC; border: 1px solid #EFF2F7; border-radius: 16px; overflow: hidden; min-width: 0; }
.db-v3-lane-head { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; }
.db-v3-lane-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.db-v3-lane-title { display: flex; align-items: center; gap: 8px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 16px; color: #fff; }
/* Full-opacity white: a translucent white over these mid-tones dropped to 4.01:1. */
.db-v3-lane-sub { font-size: 12.5px; color: #fff; }
/* White chip with the lane's own ink: a translucent wash lightened the colour under the numeral. */
.db-v3-lane-count { flex: 0 0 auto; min-width: 26px; text-align: center; background: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 3px 9px; font-family: "Lexend", sans-serif; font-weight: 800; font-size: 12.5px; }
.db-v3-lane-body { display: flex; flex-direction: column; gap: 11px; padding: 15px 16px; }
.db-v3-lane-empty { font-size: 13px; color: #5F6A79; padding: 6px 2px; }
.db-v3-item { background: #fff; border: 1px solid #EAEDF3; border-radius: 12px; padding: 14px 15px; }
.db-v3-item.is-late { border-color: #F5D5D5; }
.db-v3-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.db-v3-tag { border: 1px solid; border-radius: 6px; padding: 3px 8px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.db-v3-item-title { display: block; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.45; margin-bottom: 10px; }
.db-v3-item-note { display: block; font-size: 12.5px; color: #5F6A79; line-height: 1.5; margin-bottom: 10px; }
.db-v3-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.db-v3-owner { display: flex; align-items: center; gap: 8px; min-width: 0; }
.db-v3-owner-name { font-size: 13px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-v3-status { flex: 0 0 auto; margin-left: auto; border: 1px solid; border-radius: 999px; padding: 4px 10px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 11.5px; white-space: nowrap; }

@media (max-width: 640px) {
  .db-board-row { padding-left: 20px; padding-right: 20px; }
}
