/* =====================================================================
   DOMINO — Deals & Pipeline
   Board + table views, filters, saved views, deal detail drawer.
   Loads after domino.css. Reuses tag/btn/kpi conventions.
   ===================================================================== */

.dl { height: 100%; display: flex; flex-direction: column; background: var(--canvas); min-height: 0; }

/* toolbar */
.dl__toolbar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px var(--gutter); border-bottom: 1px solid var(--neutral-200); background: var(--surface);
  position: relative; z-index: 2;
}
.dl__views { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dl-view {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--slate-500); background: transparent; border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 7px 13px; cursor: pointer; transition: all var(--duration-fast) var(--ease-out); letter-spacing: -0.01em;
}
.dl-view:hover { background: var(--neutral-50); color: var(--ink-800); }
.dl-view.is-active { background: var(--ink-800); color: var(--ivory); }
.dl-view svg { width: 13px; height: 13px; }
.dl-view__star { color: var(--slate-300); }
.dl-view.is-active .dl-view__star { color: var(--gold-400); }

.dl__spacer { flex: 1; }
.dl-scope { background: var(--neutral-100); }
.dl-insights { display: grid; grid-template-columns: 1.15fr 2fr; gap: 16px; padding: 16px var(--gutter); border-bottom: 1px solid var(--neutral-200); background: var(--surface); position: relative; z-index: 1; overflow: hidden; animation: dl-insights-open 320ms var(--ease-out); }
/* smooth expand instead of an abrupt push */
@keyframes dl-insights-open { from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-6px); } to { opacity: 1; max-height: 320px; padding-top: 16px; padding-bottom: 16px; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .dl-insights, .pill--icon.dl-insightsbtn.is-active, .pill--icon.dl-insightsbtn.is-active svg { animation: none; } }
/* ---- universal drawer section gap ---- */
:root { --drawer-sec-gap: 14px; }
/* Every content column inside a drawer uses flex-column + the shared gap token.
   No individual block needs margin-bottom — the gap handles it.
   The > * zeroes any leftover margins without touching internal descendant spacing. */
.dl-detail > div { display: flex; flex-direction: column; gap: var(--drawer-sec-gap); }
.dl-detail > div > * { margin-bottom: 0 !important; margin-top: 0 !important; }
/* bare-div tab wrappers (Comp Set, Players, Documents, Sources & Uses, Risks…) get the same gap system */
.drawer__body > div:not([class]) { display: flex; flex-direction: column; gap: var(--drawer-sec-gap) !important; }
.drawer__body > div:not([class]) > * { margin-bottom: 0 !important; margin-top: 0 !important; }
.dl-ai { background: linear-gradient(135deg, color-mix(in oklab, var(--ac) 8%, var(--surface)), var(--surface) 80%); border: 1px solid var(--ac-line); border-radius: var(--r-card); padding: 16px 18px; margin-bottom: var(--drawer-sec-gap); }
.dl-ai__h { display: flex; gap: 11px; align-items: center; margin-bottom: 11px; }
.dl-ai__ic { width: 34px; height: 34px; border-radius: 9px; background: var(--ac-soft); color: var(--ac-700); display: grid; place-items: center; flex: 0 0 auto; }
.dl-ai__ic svg { width: 17px; height: 17px; }
.dl-ai__eyebrow { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ac-700); font-weight: 700; }
.dl-ai__by { font-size: 11.5px; color: var(--slate-400); margin-top: 2px; }
.dl-ai__text { font-size: 13px; line-height: 1.6; color: var(--ink-800); }
.dl-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline-soft); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.dl-metric { background: var(--surface); padding: 13px 16px; }
.dl-metric__l { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }
.dl-metric__v { font-size: 22px; font-weight: var(--w-stat); color: var(--ink-900); letter-spacing: -0.02em; margin-top: 6px; font-feature-settings: "tnum" 1; }
.dl-metric__s { font-size: 11.5px; color: var(--slate-400); margin-top: 3px; }
.dl-filter__x { display: inline-grid; place-items: center; margin-left: 1px; border-radius: 4px; }
.dl-filter__x:hover { background: rgba(0,0,0,0.07); }
.dl-filter__x svg { width: 12px; height: 12px; opacity: 0.75; }
.dl-clear { color: var(--slate-400); }
@media (max-width: 1080px) { .dl-insights { grid-template-columns: 1fr; } }
.dl-search {
  display: flex; align-items: center; gap: 8px; background: var(--neutral-50);
  border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 8px 12px;
  flex: 0 1 220px; min-width: 130px; color: var(--slate-400);
}
.dl-search input { border: 0; background: transparent; outline: none; flex: 1; font-family: var(--font-sans); font-size: 13px; color: var(--ink-900); min-width: 0; }
.dl-search svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* view toggle (board/table) */
.dl-toggle { display: inline-flex; background: var(--neutral-100); border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 3px; gap: 2px; }
.dl-toggle button { border: 0; background: transparent; padding: 7px 10px; border-radius: calc(var(--r-control) - 3px); color: var(--slate-500); cursor: pointer; display: grid; place-items: center; transition: all var(--duration-fast) var(--ease-out); }
.dl-toggle button svg { width: 16px; height: 16px; }
.dl-toggle button.is-active { background: var(--surface); color: var(--ink-900); box-shadow: var(--shadow-xs); }

/* filter row */
.dl-filter { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--hairline); border-radius: var(--r-control); background: var(--surface); font-weight: 600; font-size: 12.5px; cursor: pointer; transition: all var(--duration-fast) var(--ease-out); color: var(--slate-500); white-space: nowrap; }
.dl-filter:hover { border-color: var(--slate-300); }
.dl-filter b { color: var(--ink-900); font-weight: 600; }
.dl-filter.is-set { border-color: var(--ac); background: var(--ac-soft); color: var(--ac-700); }
.dl-filter.is-set b { color: var(--ac-700); }
.dl-filter svg { width: 13px; height: 13px; opacity: 0.7; }
.dl-addfilter { border-style: dashed; color: var(--slate-400); }
.dl-addfilter:hover { color: var(--ink-800); border-color: var(--ink-700); }
.dl__showing { margin-left: auto; font-size: 12px; color: var(--slate-400); white-space: nowrap; }

/* control bar (sits directly above the deals) */
.dl__controls { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; flex-wrap: nowrap; padding: 11px var(--gutter); border-bottom: 1px solid var(--neutral-200); background: var(--surface); position: relative; z-index: 30; }
.dl__chips { display: flex; align-items: center; gap: 7px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--slate-200) transparent; }
.dl__chips::-webkit-scrollbar { height: 6px; }
.dl__chips::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 3px; }
.dl-chip { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; font-size: 12px; padding: 6px 6px 6px 11px; border: 1px solid var(--ac-line); background: var(--ac-soft); color: var(--ac-700); border-radius: var(--radius-pill); }
.dl-chip b { font-weight: 700; }
.dl-chip__x { cursor: pointer; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.dl-chip__x:hover { background: color-mix(in oklab, var(--ac) 26%, transparent); }
.dl-filtpanel { min-width: 380px; padding: 8px; }
.dl-filtpanel__h { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 9px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); font-weight: 700; border-bottom: 1px solid var(--hairline-soft); margin-bottom: 4px; }
.dl-filtpanel__clear { color: var(--ac-700); cursor: pointer; text-transform: none; letter-spacing: normal; font-size: 12px; font-weight: 600; }
.dl-filtrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 8px; }
.dl-filtrow__l { font-size: 13px; color: var(--ink-800); display: inline-flex; align-items: center; gap: 6px; }
.dl-filtrow__r { display: flex; align-items: center; gap: 6px; }
.dl-filtrow__sel { font-family: var(--font-sans); font-size: 12.5px; padding: 7px 10px; border: 1px solid var(--hairline); border-radius: var(--r-control); background: var(--surface); color: var(--ink-800); cursor: pointer; min-width: 168px; }
.dl-filtrow__sel.is-set { border-color: var(--ac); color: var(--ac-700); background: var(--ac-soft); }
.dl-filtrow__x { width: 26px; height: 26px; flex: 0 0 auto; border: 0; background: transparent; border-radius: 6px; color: var(--slate-300); cursor: pointer; display: grid; place-items: center; }
.dl-filtrow__x:hover { background: var(--danger-bg); color: var(--danger); }
.dl-filtrow--add { border-top: 1px solid var(--hairline-soft); margin-top: 5px; padding-top: 11px; }
.dl-filtrow--add .dl-filtrow__l { color: var(--ac-700); font-weight: 600; }
.dl__cdiv { width: 1px; align-self: center; height: 24px; background: var(--hairline); margin: 0 3px; }
.dl__controls .dl-toggle { height: 38px; }
.dl__controls .dl-search { flex: 0 1 300px; min-width: 180px; height: 38px; }
.dl__controls .dl-filter { height: 38px; }
.dl__showing { flex: 0 0 auto; margin-left: 6px; font-size: 12px; color: var(--slate-400); white-space: nowrap; }
.dl__toolbar .btn, .dl__toolbar .dl-filter { height: 38px; }
@media (max-width: 1240px) { .dl__cdiv { display: none; } }

/* dropdown menu */
.dl-menu { position: absolute; top: calc(100% + 6px); left: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; z-index: 40; animation: md-in var(--duration-fast) var(--ease-out); }
.dl-menu--right { left: auto; right: 0; }
.dl-menu__opt { padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-800); cursor: pointer; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.dl-menu__opt:hover { background: var(--neutral-50); }
.dl-menu__opt .ck { width: 15px; height: 15px; color: var(--ac-700); flex: 0 0 auto; }
.dl-menu__opt.is-on { font-weight: 600; color: var(--ink-900); }
.dl-menu__sep { height: 1px; background: var(--hairline); margin: 5px 4px; }
.dl-menu__label { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); font-weight: 700; padding: 7px 10px 4px; }
.dl-menu__opt--del .dl-menu__del { opacity: 0; width: 24px; height: 24px; border-radius: 5px; display: grid; place-items: center; color: var(--slate-400); flex: 0 0 auto; }
.dl-menu__opt--del:hover .dl-menu__del { opacity: 1; }
.dl-menu__del:hover { background: var(--danger-bg); color: var(--danger); }
.dl-menu__opt--action { color: var(--ac-700); font-weight: 600; }
.dl-menu__opt--action .ck { color: var(--ac-700); }
.dl-menu__save { display: flex; gap: 7px; padding: 4px; }
.dl-menu__save .dl-addrow__name { flex: 1; min-width: 0; }

/* stage counters */
.dl-stages { flex: 0 0 auto; display: flex; gap: 10px; padding: 14px var(--gutter); border-bottom: 1px solid var(--neutral-200); background: var(--canvas); overflow-x: auto; position: relative; z-index: 1; }
.dl-stage { padding: 13px 15px; cursor: pointer; border: 1px solid var(--hairline); border-radius: var(--r-card); background: var(--surface); display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 110px; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out); white-space: nowrap; }
.dl-stage:hover { background: var(--neutral-50); border-color: var(--border-strong); }
.dl-stage.is-active { border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac), var(--shadow-xs); background: var(--surface); }
.dl-stage__l { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); }
.dl-stage__l .d { width: 7px; height: 7px; border-radius: 50%; }
.dl-stage.is-active .dl-stage__l { color: var(--ink-800); }
.dl-stage__row { display: flex; align-items: baseline; gap: 8px; }
.dl-stage__n { font-size: 22px; font-weight: var(--w-stat); color: var(--ink-900); letter-spacing: -0.02em; font-feature-settings: "tnum" 1; line-height: 1; }
.dl-stage__v { font-size: 11.5px; font-weight: 500; color: var(--slate-400); font-feature-settings: "tnum" 1; }
.dl-stage__bar { height: 3px; border-radius: 2px; background: var(--neutral-100); overflow: hidden; margin-top: 1px; }
.dl-stage__bar i { display: block; height: 100%; border-radius: 2px; transition: width var(--duration-slow) var(--ease-out); }

/* stage colors */
.st-new { background: var(--slate-400); }
.st-boe { background: var(--slate-500); }
.st-uw { background: var(--info); }
.st-loi { background: var(--warning); }
.st-ic { background: #6C5CE0; }
.st-psa { background: #2A8C82; }
.st-uc { background: #C9772E; }
.st-portfolio { background: #1F6F78; }
.st-closing { background: var(--ac); }
.st-closed { background: var(--success); }
.st-dead { background: var(--slate-300); }
.st-archive { background: var(--sand-400); }

/* ===== board ===== */
.dl-scroll { flex: 1; min-height: 0; overflow: hidden; box-shadow: inset 0 1px 3px rgba(6,26,46,0.03); }
.dl-board { display: flex; gap: 14px; padding: 16px var(--gutter); overflow-x: auto; height: 100%; align-items: flex-start; }
.dl-col { flex: 0 0 296px; width: 296px; max-height: 100%; background: var(--neutral-50); border: 1px solid var(--hairline); border-radius: var(--r-card); display: flex; flex-direction: column; }
.dl-col__h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.dl-col__t { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-800); }
.dl-col__t .d { width: 8px; height: 8px; border-radius: 50%; }
.dl-col__n { font-size: 12px; font-weight: 700; color: var(--slate-400); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 1px 9px; }
.dl-col__body { padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--slate-200) transparent; }
.dl-col__body::-webkit-scrollbar { width: 7px; }
.dl-col__body::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 4px; }
.dl-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 13px; cursor: pointer; box-shadow: var(--shadow-xs); transition: all var(--duration-fast) var(--ease-out); }
.dl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--slate-200); }
.dl-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dl-card__name { font-size: 13.5px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; line-height: 1.3; }
.dl-card__loc { font-size: 11.5px; color: var(--slate-400); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.dl-card__loc svg { width: 12px; height: 12px; }
.dl-fund { display: inline-flex; align-items: center; line-height: 1; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-700); background: var(--neutral-100); border: 1px solid var(--hairline); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.dl-lcell .dl-fund { max-width: 100%; }
.dl-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--hairline-soft); }
.dl-card__keys { font-size: 11.5px; color: var(--slate-500); display: flex; align-items: center; gap: 5px; }
.dl-card__keys svg { width: 13px; height: 13px; color: var(--slate-400); }
.dl-card__price { font-size: 14px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.01em; font-feature-settings: "tnum" 1; }

/* ===== table ===== */
.dl-table-wrap { height: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--slate-200) transparent; background: var(--surface); }
.dl-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.dl-table-wrap::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 5px; border: 3px solid var(--canvas); }
.dl-table { width: 100%; border-collapse: collapse; }
.dl-table th { position: sticky; top: 0; z-index: 1; background: var(--neutral-100); box-shadow: 0 1.5px 0 var(--neutral-200); text-align: left; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--hairline); white-space: nowrap; cursor: pointer; user-select: none; }
.dl-table th:hover { color: var(--ink-700); }
.dl-table th.num, .dl-table td.num { text-align: right; font-feature-settings: "tnum" 1; }
.dl-table th .so { width: 12px; height: 12px; vertical-align: -2px; margin-left: 4px; opacity: 0.5; }
.dl-table td { padding: 13px 16px; border-bottom: 1px solid var(--hairline-soft); font-size: 13px; color: var(--ink-800); white-space: nowrap; }
.dl-table tbody tr { cursor: pointer; transition: background var(--duration-fast) var(--ease-out); }
.dl-table tbody tr:hover { background: var(--neutral-100); }
.dl-table td:first-child, .dl-table th:first-child { padding-left: var(--gutter); }
.dl-table td:last-child, .dl-table th:last-child { padding-right: var(--gutter); }
.dl-tname { font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; }
/* expandable table rows (merged list/table) */
.dl-th-exp, .dl-td-exp { width: 34px; padding-left: 10px !important; padding-right: 0 !important; }
.dl-rowcaret { width: 22px; height: 22px; border: 0; background: transparent; border-radius: 6px; color: var(--slate-400); cursor: pointer; display: grid; place-items: center; }
.dl-rowcaret:hover { background: var(--neutral-100); color: var(--ink-800); }
.dl-rowcaret svg { transition: transform var(--duration-fast) var(--ease-out); }
.dl-rowcaret.is-open svg { transform: rotate(90deg); }
/* expanded row + nested property rows — read as a recessed, indented layer */
.dl-table tbody tr.is-exp { background: var(--surface); box-shadow: inset 2px 0 0 var(--ink-800); }
.dl-table tbody tr.is-exp:hover { background: var(--neutral-50); }
.dl-subrow { background: var(--surface); }
.dl-subrow:hover { background: var(--neutral-50) !important; }
.dl-subrow td { padding-top: 0 !important; padding-bottom: 0 !important; }
.dl-subrow td:not(.dl-td-exp) { box-shadow: inset 2px 0 0 var(--ink-800); }
.dl-subrow:last-of-type td:not(.dl-td-exp) { border-bottom: 1px solid var(--hairline); }
.dl-subprop { display: flex; align-items: center; gap: 12px; padding: 9px 0 9px 14px; margin-left: 4px; font-size: 12.5px; color: var(--slate-600); position: relative; }
.dl-subprop::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 1px; background: var(--border-strong); }
.dl-subprop__idx { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; background: var(--ink-800); color: var(--ivory); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.app.theme-dark .dl-subprop__idx { background: var(--chip); color: var(--chip-fg); }
.dl-subprop__n { font-weight: 600; color: var(--ink-900); }
.dl-subprop__m { color: var(--slate-400); }
.dl-subprop__tags { display: flex; gap: 6px; margin-left: auto; }
.dl-subprop__tags span { font-size: 10.5px; font-weight: 600; color: var(--slate-600); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 2px 9px; white-space: nowrap; }
.dl-tsub { font-size: 11.5px; color: var(--slate-400); margin-top: 2px; }
.dl-perkey { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--slate-400); margin-top: 1px; white-space: nowrap; }
.dl-ac { position: absolute; top: calc(100% + 5px); left: 0; min-width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; padding: 5px; }
.dl-ac__item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r-control); cursor: pointer; }
.dl-ac__item:hover { background: var(--neutral-100); }
.dl-ac__item svg { color: var(--slate-400); flex: 0 0 auto; }
.dl-ac__n { font-size: 13px; font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-ac__m { font-family: var(--font-mono); font-size: 11px; color: var(--slate-500); margin-left: auto; white-space: nowrap; flex: 0 0 auto; padding-left: 12px; }
.dl-col-resize { position: absolute; top: 0; right: 0; width: 9px; height: 100%; cursor: col-resize; user-select: none; z-index: 2; }
.dl-col-resize::after { content: ""; position: absolute; right: 3px; top: 50%; transform: translateY(-50%); height: 13px; width: 2px; border-radius: 1px; background: var(--border-strong); opacity: 0; transition: opacity 120ms var(--ease-out), background 120ms; }
.dl-table th:hover .dl-col-resize::after { opacity: 0.55; }
.dl-col-resize:hover::after { opacity: 1; height: 100%; background: var(--ac); }
.dl-table th { position: relative; }
.dl-th-in { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.num .dl-th-in { justify-content: flex-end; }
.dl-th-lbl { cursor: pointer; display: inline-flex; align-items: center; }
.dl-th-fx { border: 0; background: transparent; color: var(--slate-400); cursor: pointer; padding: 1px; border-radius: 4px; display: inline-grid; place-items: center; opacity: 0.42; flex: 0 0 auto; transition: opacity 120ms var(--ease-out), color 120ms; }
.dl-table th:hover .dl-th-fx { opacity: 1; }
.dl-th-fx:hover { color: var(--ink-800); background: var(--neutral-100); }
.dl-th-fx.is-on { opacity: 1; color: var(--ac-700); }
.dl-table th.is-filtered { color: var(--ac-700); }
.dl-hdrmenu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; min-width: 192px; max-width: 240px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 6px; text-align: left; font-weight: 400; text-transform: none; letter-spacing: normal; }
.num .dl-hdrmenu { left: auto; right: 0; }
.dl-hdrmenu__opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 0; background: transparent; border-radius: 6px; font-size: 12.5px; color: var(--ink-800); cursor: pointer; text-align: left; }
.dl-hdrmenu__opt:hover { background: var(--neutral-100); }
.dl-hdrmenu__opt--clear { color: var(--danger); }
.dl-hdrmenu__sep { height: 1px; background: var(--hairline); margin: 5px 4px; }
.dl-hdrmenu__list { max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding: 2px; }
.dl-hdrmenu__chk { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 6px; font-size: 12.5px; color: var(--ink-800); cursor: pointer; font-weight: 500; }
.dl-hdrmenu__chk:hover { background: var(--neutral-100); }
.dl-hdrmenu__chk input { margin: 0; flex: 0 0 auto; }
.dl-hdrmenu__num { display: flex; align-items: center; gap: 6px; padding: 6px; }
.dl-hdrmenu__num input { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 12.5px; font-family: inherit; background: var(--surface); color: var(--ink-900); }
/* fit-content columns, horizontal scroll, frozen Name/Stage/Strategy */
.dl-table-wrap { overflow-x: auto; }
.dl-table--exp thead th, .dl-table--exp tbody td { white-space: nowrap; }
.dl-table--exp th.dl-th-exp, .dl-table--exp td.dl-td-exp { position: sticky; left: 0; z-index: 3; background: var(--surface); width: 34px; min-width: 34px; }
.dl-table--exp thead th:nth-child(2), .dl-table--exp tbody td:nth-child(2) { position: sticky; left: 34px; z-index: 2; background: var(--surface); width: 300px; min-width: 300px; max-width: 300px; white-space: normal; }
.dl-table--exp thead th:nth-child(3), .dl-table--exp tbody td:nth-child(3) { position: sticky; left: 334px; z-index: 2; background: var(--surface); width: 130px; min-width: 130px; }
.dl-table--exp thead th:nth-child(4), .dl-table--exp tbody td:nth-child(4) { position: sticky; left: 464px; z-index: 2; background: var(--surface); width: 130px; min-width: 130px; }
/* Stage / Strategy frozen cells */
.dl-table--exp thead th:nth-child(5), .dl-table--exp tbody td:nth-child(5) { position: sticky; left: 534px; z-index: 2; background: var(--surface); width: 120px; min-width: 120px; }
/* when a header's sort/filter menu is open, lift the whole sticky cell above its frozen siblings so the popover isn't clipped behind them */
.dl-table th:has(.dl-hdrmenu) { z-index: 80 !important; overflow: visible; }
.dl-table--exp thead th:nth-child(2)::after, .dl-table--exp thead th:nth-child(3)::after, .dl-table--exp thead th:nth-child(4)::after, .dl-table--exp thead th:nth-child(5)::after,
.dl-table--exp tbody td:nth-child(5)::before { content: none; }
.dl-table--exp tbody td:nth-child(5) { box-shadow: 6px 0 9px -7px rgba(11, 43, 72, 0.22); }
.dl-table--exp thead th:nth-child(5) { box-shadow: 6px 0 9px -7px rgba(11, 43, 72, 0.22); }
.dl-chip-stage { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--neutral-100); color: var(--slate-600); }
.dl-chip-stage .d { width: 6px; height: 6px; border-radius: 50%; }
/* stage as plain text + dot (no pill) */
.dl-stagecell { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-800); }
/* round icon-only toggle (Domino insights) — matches topbar pill--icon */
.dl-iconbtn { width: 36px; height: 36px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink-800); cursor: pointer; box-shadow: var(--shadow-xs); transition: all var(--duration-fast) var(--ease-out); }
.dl-iconbtn:hover { background: var(--neutral-50); border-color: var(--slate-300); }
.dl-iconbtn.is-active { background: color-mix(in oklab, var(--ink-800) 9%, var(--surface)); border-color: color-mix(in oklab, var(--ink-800) 28%, transparent); color: var(--ink-800); }
.dl-table--exp thead th.dl-th--drag { cursor: grab; }
.dl-table--exp thead th.dl-th--drag:active { cursor: grabbing; }
.dl-table--exp thead th.dl-th--drop { box-shadow: inset 2px 0 0 var(--ac); background: var(--ac-soft); }
.dl-stagecell .d { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
/* priority as a quiet dot + label (no filled pill) */
.pri { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-800); }
.pri .d { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.pri--high .d { background: var(--danger); }
.pri--med .d { background: var(--warning); }
.pri--low .d { background: var(--slate-300); }
.pri--low { color: var(--slate-500); }
/* compact priority as a 3-segment signal bar — High=3, Medium=2, Low=1 */
.pribars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; cursor: pointer; line-height: 0; }
.pribars__b { width: 3px; border-radius: 1px; background: var(--slate-200); transition: background var(--duration-fast) var(--ease-out); }
.pribars__b:nth-child(1) { height: 6px; }
.pribars__b:nth-child(2) { height: 10px; }
.pribars__b:nth-child(3) { height: 14px; }
.pribars--high .pribars__b.on { background: var(--danger); }
.pribars--med .pribars__b.on { background: var(--warning); }
.pribars--low .pribars__b.on { background: var(--slate-400); }
.dl-table tbody tr:hover .pribars__b:not(.on) { background: var(--slate-300); }
.dl-muted { color: var(--slate-300); }
.dl-rowmenu { color: var(--slate-300); }
.dl-rowmenu:hover { color: var(--ink-700); }
.dl-fit { display: inline-flex; align-items: center; gap: 7px; }
.dl-fit__bar { width: 40px; height: 5px; border-radius: 3px; background: var(--neutral-100); overflow: hidden; }
.dl-fit__bar i { display: block; height: 100%; background: var(--ac); }

/* ---- pipeline opportunity review (OppDrawer) ---- */
.drawer--opp { width: 1140px; }
.op-src, .op-seen { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--slate-500); background: var(--neutral-100); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 3px 9px; }
.op-seen { color: var(--ac-700); background: var(--ac-soft); border-color: var(--ac-line); }
.op-aibar { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--neutral-200); position: relative; z-index: 1; }
.op-aibar__ic { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; background: var(--ac-soft); color: var(--ac-700); display: grid; place-items: center; }
.op-aibar__ic svg { width: 16px; height: 16px; }
.op-aibar__t { font-size: 13px; color: var(--slate-600); line-height: 1.5; }
.op-aibar__t b { color: var(--ink-900); font-weight: 600; }
.op-rec { border: 1px solid var(--ac-line); background: linear-gradient(135deg, color-mix(in oklab, var(--ac) 9%, var(--surface)), var(--surface) 78%); border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 16px; }
.op-rec__head { display: flex; align-items: flex-start; gap: 12px; }
.op-rec__ic { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 9px; background: var(--ac-soft); color: var(--ac-700); display: grid; place-items: center; }
.op-rec__ic svg { width: 18px; height: 18px; }
.op-rec__verdict { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.op-verdict { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; padding: 3px 12px; border-radius: var(--radius-pill); }
.op-verdict--success { background: var(--success-bg); color: var(--success); }
.op-verdict--warn { background: var(--warning-bg); color: var(--warning); }
.op-verdict--neutral { background: var(--neutral-100); color: var(--slate-600); }
.op-rec__conf { font-size: 12px; color: var(--slate-500); }
.op-rec__d { font-size: 13.5px; color: var(--ink-800); margin: 12px 0 4px; line-height: 1.5; }
.op-reasons { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.op-reasons li { display: grid; grid-template-columns: 16px 1fr; gap: 9px; font-size: 13px; color: var(--ink-800); line-height: 1.5; }
.op-reasons li svg { color: var(--ac-700); margin-top: 3px; }
.op-note { font-size: 13px; color: var(--slate-600); line-height: 1.55; margin-bottom: 12px; }
.op-note b { color: var(--ink-900); font-weight: 600; }
.op-comp { display: grid; grid-template-columns: 26px 1.4fr 1.4fr auto; gap: 11px; align-items: center; padding: 9px 0; border-top: 1px solid var(--hairline-soft); font-size: 12.5px; }
.op-comp__ic { width: 26px; height: 26px; border-radius: 7px; background: var(--neutral-100); border: 1px solid var(--hairline); color: var(--slate-500); display: grid; place-items: center; }
.op-comp__n { font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-comp__m { color: var(--slate-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-hist { display: flex; gap: 12px; align-items: flex-start; }
.op-hist__ic { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; background: var(--ac-soft); color: var(--ac-700); display: grid; place-items: center; }
.op-hist__ic svg { width: 16px; height: 16px; }
.op-hist__t { font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.op-hist__d { font-size: 12.5px; color: var(--slate-500); margin-top: 3px; line-height: 1.5; }
.op-flags { display: flex; flex-direction: column; gap: 8px; }
.op-flag { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-800); }
.op-flag__ic { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 6px; display: grid; place-items: center; }
.op-flag.is-ok .op-flag__ic { background: var(--success-bg); color: var(--success); }
.op-flag.is-watch .op-flag__ic { background: var(--warning-bg); color: var(--warning); }

/* ===== deal drawer ===== */
.drawer-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(6, 26, 46, 0.5); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; animation: ov-in var(--duration-base) var(--ease-out); }
.drawer { width: 1400px; max-width: 98vw; height: 100%; background: var(--canvas); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; overflow: hidden; position: relative; animation: drawer-in var(--duration-base) var(--ease-out); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0.5; } to { transform: none; opacity: 1; } }
.drawer__head { flex: 0 0 auto; padding: 20px 28px 18px; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.drawer__crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--slate-400); margin-bottom: 12px; }
.drawer__crumb svg { width: 13px; height: 13px; }
.drawer__crumb .here { color: var(--ink-800); font-weight: 600; }
.drawer__close { margin-left: auto; width: 32px; height: 32px; border-radius: var(--r-control); border: 1px solid var(--hairline); background: var(--surface); color: var(--slate-400); display: grid; place-items: center; cursor: pointer; }
.drawer__close:hover { color: var(--ink-800); background: var(--neutral-50); }
.drawer__close svg { width: 16px; height: 16px; }
.drawer__id { display: flex; align-items: center; gap: 16px; }
.drawer__photo { width: 92px; height: 72px; flex: 0 0 auto; border-radius: var(--r-control); background: linear-gradient(150deg, var(--ink-700), var(--ink-900)); display: grid; place-items: center; color: rgba(255,255,255,0.4); }
.drawer__photo svg { width: 26px; height: 26px; }
.drawer__hid { flex: 1; min-width: 0; }
.drawer__tags { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.drawer__t { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink-900); line-height: 1.15; }
.drawer__sub { font-size: 12.5px; color: var(--slate-500); margin-top: 6px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.drawer__sub .sep { color: var(--slate-300); }
.drawer__addr { font-size: 13.5px; font-weight: 600; color: var(--ink-700); letter-spacing: -0.005em; }
.drawer__keys { color: var(--slate-500); font-weight: 500; }
.drawer__actions { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; align-self: center; }

.drawer__foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 28px; border-top: 1px solid var(--hairline); background: var(--surface); }
/* stage dropdown + version control row (replaces the wide stepper) */
.pl-ctrlrow { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.pl-ctrlrow--inline { margin-top: 0; flex: 0 0 auto; }
.pl-stagedd { position: relative; }
.pl-stagedd__btn { display: inline-flex; align-items: center; gap: 10px; background: var(--neutral-50); border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 6px 11px 6px 7px; cursor: pointer; transition: all var(--duration-fast) var(--ease-out); }
.pl-stagedd__btn:hover { border-color: var(--slate-300); background: var(--surface); }
.pl-stagedd__btn.is-open { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); background: var(--surface); }
.pl-stagedd__dot { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 7px; background: var(--ac); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pl-stagedd__meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.pl-stagedd__lbl { font-size: 13px; font-weight: 700; color: var(--ink-900); }
.pl-stagedd__step { font-size: 10.5px; color: var(--slate-400); }
.pl-stagedd__scrim { position: fixed; inset: 0; z-index: 55; }
.pl-stagedd__menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 56; width: 240px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 6px; animation: dv-pop var(--duration-base) var(--ease-out); }
.pl-stagedd__head { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); padding: 7px 10px 8px; }
.pl-stagedd__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 7px; cursor: pointer; text-align: left; font-family: var(--font-sans); transition: background var(--duration-fast) var(--ease-out); }
.pl-stagedd__opt:hover { background: var(--neutral-50); }
.pl-stagedd__optdot { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1.5px solid var(--slate-300); color: var(--slate-400); background: var(--surface); }
.pl-stagedd__opt.is-done .pl-stagedd__optdot { background: var(--success); border-color: var(--success); color: #fff; }
.pl-stagedd__opt.is-current .pl-stagedd__optdot { background: var(--ac); border-color: var(--ac); color: #fff; }
.pl-stagedd__optlbl { font-size: 13px; font-weight: 500; color: var(--ink-800); flex: 1; }
.pl-stagedd__opt.is-current .pl-stagedd__optlbl { font-weight: 700; color: var(--ink-900); }
.pl-stagedd__opt.is-todo .pl-stagedd__optlbl { color: var(--slate-400); }
.pl-stagedd__cur { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ac-700); }
.drawer__foot-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-pill); }
.drawer__foot-status.danger { color: var(--danger); background: var(--danger-bg); }
.drawer__foot-status.success { color: var(--success); background: var(--success-bg); }

.dl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface); }
.dl-kpi { padding: 14px 18px; border-left: 1px solid var(--hairline-soft); }
.dl-kpi:first-child { border-left: 0; }
.dl-kpi__l { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }
.dl-kpi__v { font-size: 18px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.02em; margin-top: 7px; font-feature-settings: "tnum" 1; }
.dl-kpi__v.muted { color: var(--slate-300); font-weight: 400; }

.drawer__tabs { flex: 0 0 auto; display: flex; padding: 0 28px; border-bottom: 1px solid var(--hairline); background: var(--surface); gap: 16px; overflow-x: auto; }
.drawer__tab { padding: 13px 2px; font-size: 13.5px; font-weight: 500; color: var(--slate-500); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: color var(--duration-fast) var(--ease-out); }
.drawer__tab:hover { color: var(--ink-800); }
.drawer__tab.is-active { color: var(--ink-900); font-weight: 600; border-bottom-color: var(--ink-800); }
.drawer__tab-sep { width: 1px; background: var(--neutral-200); margin: 8px 2px; align-self: stretch; flex: 0 0 auto; }

.drawer__body { flex: 1; overflow-y: auto; padding: 22px 28px 40px; scrollbar-width: thin; scrollbar-color: var(--slate-200) transparent; }
.drawer__body::-webkit-scrollbar { width: 9px; }
.drawer__body::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 5px; border: 2px solid var(--canvas); }
.dl-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.dl-sec { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 18px 20px; box-shadow: var(--shadow-xs); margin-bottom: var(--drawer-sec-gap); }
.dl-sec__h { font-size: 14px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px 22px; }
.kv-grid--2 { grid-template-columns: 1fr 1fr; }
.kv__l { font-size: 11px; color: var(--slate-400); font-weight: 500; }
.kv__v { font-size: 13.5px; color: var(--ink-900); font-weight: 500; margin-top: 4px; letter-spacing: -0.01em; }
.kv__v.muted { color: var(--slate-300); }
.dl-side .dl-sec { margin-bottom: var(--drawer-sec-gap); }
/* right panel follows the scroll so a tall left column doesn't leave blank space beside it */
.dl-side { position: sticky; top: 0; align-self: start; }
@media (max-width: 1080px) { .dl-side { position: static; } }
.dl-side__empty { font-size: 12.5px; color: var(--slate-400); }
.dl-link-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hairline-soft); }
.dl-link-row:first-of-type { border-top: 0; }
.dl-link-row__av { width: 30px; height: 30px; border-radius: 8px; background: var(--ink-800); color: var(--ivory); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: 0 0 auto; }
.dl-link-row__n { font-size: 12.5px; font-weight: 600; color: var(--ink-900); }
.dl-link-row__r { font-size: 11px; color: var(--slate-400); }

/* generic empty tab */
.dl-tab-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 60px 20px; color: var(--slate-400); }
.dl-tab-empty__ic { width: 52px; height: 52px; border-radius: 13px; background: var(--neutral-100); border: 1px solid var(--hairline); color: var(--slate-400); display: grid; place-items: center; }

/* proactive: information to collect */
.dl-collect { border: 1px solid var(--ac-line); background: linear-gradient(135deg, color-mix(in oklab, var(--ac) 8%, var(--surface)), var(--surface) 80%); border-radius: var(--r-card); padding: 16px 18px; margin-bottom: 16px; }
.dl-collect__h { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 12px; }
.dl-collect__ic { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; background: var(--ac-soft); color: var(--ac-700); display: grid; place-items: center; }
.dl-collect__ic svg { width: 16px; height: 16px; }
.dl-collect__t-h { font-size: 14px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; }
.dl-collect__sub { font-size: 12.5px; color: var(--slate-500); line-height: 1.5; margin-top: 3px; }
.dl-collect__sub b { color: var(--ink-800); font-weight: 600; }
.dl-collect__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.dl-collect__item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid color-mix(in oklab, var(--ac) 14%, transparent); }
.dl-collect__chk { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; border: 1.6px solid var(--slate-300); display: grid; place-items: center; }
.dl-collect__item.is-has .dl-collect__chk { background: var(--success); border-color: var(--success); color: #fff; }
.dl-collect__item.is-missing .dl-collect__chk { border-color: var(--warning); border-style: dashed; }
.dl-collect__k { flex: 1; font-size: 13px; color: var(--ink-800); }
.dl-collect__item.is-has .dl-collect__k { color: var(--slate-400); }

/* who-did-what activity */
.dl-act { display: flex; flex-direction: column; }
.dl-act-row { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline-soft); }
.dl-act-row:first-child { border-top: 0; }
.dl-act-av { width: 32px; height: 32px; border-radius: 9px; background: var(--ink-800); color: var(--ivory); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; }
.dl-act-av.is-ai { background: var(--ac-soft); color: var(--ac-700); }
.dl-act-av.is-ai svg { width: 16px; height: 16px; }
.dl-act-line { font-size: 13px; color: var(--ink-800); line-height: 1.5; }
.dl-act-line b { font-weight: 600; color: var(--ink-900); }
.dl-act-time { font-size: 11.5px; color: var(--slate-400); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.dl-act-src { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-500); background: var(--neutral-100); border-radius: var(--radius-pill); padding: 2px 7px; }
.dl-act-src.is-ai { color: var(--ac-700); background: var(--ac-soft); }
.dl-act-grp { margin-bottom: 18px; }
.dl-act-grp:last-child { margin-bottom: 0; }
.dl-act-grp__h { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-400); padding-bottom: 7px; margin-bottom: 2px; border-bottom: 1px solid var(--hairline); }
.dl-act-grp__n { font-size: 10px; font-weight: 700; color: var(--slate-400); background: var(--neutral-100); border-radius: var(--radius-pill); padding: 1px 7px; letter-spacing: 0; }
.dl-act-ms { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ac-700); background: var(--ac-soft); border-radius: var(--radius-pill); padding: 2px 8px; margin-left: 7px; }
.dl-act-ms svg { width: 11px; height: 11px; }
/* session roll-up — consecutive same-person edits folded into one expandable row */
.dl-act-sess { border: 1px solid var(--hairline); border-radius: var(--r-control); background: var(--neutral-50); margin: 8px 0; overflow: hidden; }
.dl-act-sess__h { width: 100%; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 11px 13px; background: transparent; border: 0; cursor: pointer; text-align: left; }
.dl-act-sess__h:hover { background: var(--surface); }
.dl-act-sess__main { min-width: 0; }
.dl-act-sess__t { font-size: 13px; color: var(--ink-800); }
.dl-act-sess__t b { font-weight: 600; color: var(--ink-900); }
.dl-act-sess__sub { font-size: 11.5px; color: var(--slate-500); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-act-sess__cv { color: var(--slate-400); transition: transform var(--duration-fast) var(--ease-out); }
.dl-act-sess.is-open .dl-act-sess__cv { transform: rotate(180deg); }
.dl-act-sess__rows { padding: 2px 13px 8px; border-top: 1px solid var(--hairline); background: var(--surface); }
.dl-act-sess__rows .dl-act-row:first-child { border-top: 0; }

.drawer__nudge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warning); background: var(--warning-bg); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.dl-collect__list .btn--sm { padding: 5px 10px; }
.dl-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dl-media__tile { aspect-ratio: 4 / 3; border-radius: var(--r-control); background: linear-gradient(150deg, var(--ink-700), var(--ink-900)); color: rgba(255,253,248,0.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.03em; border: 1px solid var(--hairline); }
.dl-media__tile svg { width: 24px; height: 24px; opacity: 0.6; }

@media (max-width: 1080px) { .dl-detail { grid-template-columns: 1fr; } .dl-kpis { grid-template-columns: repeat(3, 1fr); } }

/* map in deal detail */
.dl-map { position: relative; height: 200px; border-radius: var(--r-control); overflow: hidden; border: 1px solid var(--hairline); background: var(--neutral-100); margin-bottom: 16px; }
.dl-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.9); }
.dl-map__overlay { position: absolute; left: 12px; bottom: 12px; background: rgba(255,253,248,0.95); border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 8px 12px; box-shadow: var(--shadow-md); }
.dl-map__addr { font-size: 12.5px; font-weight: 600; color: var(--ink-900); }
.dl-map__coords { font-family: var(--font-mono); font-size: 10.5px; color: var(--slate-400); margin-top: 2px; letter-spacing: 0.02em; }
.dl-map__link { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 6px 11px; font-size: 12px; font-weight: 600; color: var(--ink-800); box-shadow: var(--shadow-sm); }
.dl-map__link:hover { border-color: var(--slate-300); }
.dl-map__link svg { width: 13px; height: 13px; }

/* documents */
.dl-docs { display: flex; flex-direction: column; }
.dl-doc { display: flex; flex-direction: column; border-top: 1px solid var(--hairline-soft); }
.dl-doc__main { display: grid; grid-template-columns: 38px 1fr auto auto; gap: 13px; align-items: center; padding: 11px 0; }
.dl-doc__ic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; font-size: 9px; font-weight: 800; letter-spacing: 0.03em; }
.dl-doc__ic--pdf { background: var(--danger-bg); color: var(--danger); }
.dl-doc__ic--xls { background: var(--success-bg); color: #2F5A42; }
.dl-doc__ic--doc { background: var(--info-bg); color: var(--info); }
.dl-doc__n { font-size: 13px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; }
.dl-doc__m { font-size: 11.5px; color: var(--slate-400); margin-top: 2px; }
.dl-doc-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); margin: 18px 0 2px; }
.dl-doc-cat:first-child { margin-top: 8px; }

/* =====================================================================
   ADDITIONS: list view, stepper, editable fields, parties, doc versions,
   doc suggestions, property cards, AI glance
   ===================================================================== */

/* ---- list view (default) ---- */
.dl-list { height: 100%; overflow-y: auto; padding: 4px var(--gutter) 24px; scrollbar-width: thin; scrollbar-color: var(--slate-200) transparent; }
.dl-list::-webkit-scrollbar { width: 10px; }
.dl-list::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 5px; border: 3px solid var(--canvas); }
.dl-list__head, .dl-lrow {
  display: grid;
  grid-template-columns: minmax(240px, 2.2fr) 124px 1.1fr 1.2fr 70px 104px 104px 100px;
  gap: 14px; align-items: center;
}
.dl-list__head { padding: 11px 14px; position: sticky; top: 0; background: var(--canvas); z-index: 2; border-bottom: 1px solid var(--hairline); }
.dl-list__head .dl-lcell { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }
.dl-lcell--num { text-align: right; font-feature-settings: "tnum" 1; }
.dl-lgroup { border-bottom: 1px solid var(--hairline-soft); }
.dl-lgroup.is-open { background: var(--neutral-50); border-radius: var(--r-card); border-bottom-color: transparent; margin: 2px 0; }
.dl-lrow { padding: 13px 14px; cursor: pointer; transition: background var(--duration-fast) var(--ease-out); border-radius: var(--r-card); }
.dl-lrow:hover { background: var(--neutral-50); }
.dl-lgroup.is-open .dl-lrow:hover { background: transparent; }
.dl-lcell { font-size: 13px; color: var(--ink-800); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-lcell--name { display: flex; align-items: center; gap: 10px; }
.dl-lcaret { flex: 0 0 auto; width: 22px; height: 22px; border: 0; background: transparent; border-radius: 6px; color: var(--slate-400); cursor: pointer; display: grid; place-items: center; transition: all var(--duration-fast) var(--ease-out); }
.dl-lcaret:hover { background: var(--neutral-100); color: var(--ink-800); }
.dl-lcaret svg { width: 15px; height: 15px; transition: transform var(--duration-fast) var(--ease-out); }
.dl-lcaret.is-open svg { transform: rotate(90deg); }
.dl-lname-wrap { min-width: 0; }
.dl-lname-wrap .dl-tname { display: block; }
.dl-lcount { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--ac-700); background: var(--ac-soft); border: 1px solid var(--ac-line); border-radius: var(--radius-pill); padding: 2px 7px; }
.dl-lcount svg { width: 11px; height: 11px; }
.dl-lprops { padding: 0 14px 12px 46px; display: flex; flex-direction: column; gap: 0; }
.dl-lprop { display: grid; grid-template-columns: 26px 2.2fr 1.4fr 70px 1.3fr 1.2fr; gap: 12px; align-items: center; padding: 9px 12px; background: var(--surface); border: 1px solid var(--hairline); border-top: 0; cursor: pointer; transition: background var(--duration-fast) var(--ease-out); font-size: 12.5px; color: var(--slate-600); }
.dl-lprop:first-of-type { border-top: 1px solid var(--hairline); border-radius: var(--r-control) var(--r-control) 0 0; }
.dl-lprop:last-child { border-radius: 0 0 var(--r-control) var(--r-control); }
.dl-lprop:not(.dl-lprop--head):hover { background: var(--neutral-50); }
.dl-lprop--head { background: var(--neutral-50); cursor: default; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }
.dl-lprop--head:hover { background: var(--neutral-50); }
.dl-lprop .num { text-align: right; font-feature-settings: "tnum" 1; }
.dl-lprop__idx { width: 22px; height: 22px; border-radius: 50%; background: var(--ink-800); color: var(--ivory); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dl-lprop--head .dl-lprop__idx { background: transparent; }
.dl-lprop__n { font-size: 13px; font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-lprop__cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- stage stepper ---- */
.dl-stepper { display: flex; align-items: center; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.dl-step { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--radius-pill); cursor: pointer; transition: all var(--duration-fast) var(--ease-out); }
.dl-step:disabled { cursor: default; }
.dl-step__dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--neutral-100); color: var(--slate-500); flex: 0 0 auto; }
.dl-step__l { font-size: 12px; font-weight: 600; color: var(--slate-500); letter-spacing: -0.01em; }
.dl-step.is-done .dl-step__dot { background: var(--success); color: #fff; }
.dl-step.is-done .dl-step__l { color: var(--ink-700); }
.dl-step.is-current { border-color: var(--ac); background: var(--ac-soft); }
.dl-step.is-current .dl-step__dot { background: var(--ac); color: var(--ac-fg); }
.dl-step.is-current .dl-step__l { color: var(--ac-700); }
.dl-step:not(:disabled):hover { border-color: var(--slate-300); }
.dl-step__bar { width: 14px; height: 2px; background: var(--hairline); flex: 0 0 auto; }
.dl-step__bar.is-done { background: var(--success); }
.dl-stepper__cta { margin-left: auto; }

/* ---- editable fields ---- */
.kv { min-width: 0; }
.kv--edit .kv__l { display: inline-flex; align-items: center; gap: 6px; }
.kv__pen { width: 11px; height: 11px; color: var(--slate-300); opacity: 0; transition: opacity var(--duration-fast) var(--ease-out); }
.kv--edit:hover .kv__pen { opacity: 1; }
.kv__display { margin-top: 4px; border-radius: 5px; cursor: text; transition: background var(--duration-fast) var(--ease-out); display: block; min-width: 40px; }
.kv__display:hover { background: var(--ac-soft); box-shadow: 0 0 0 4px var(--ac-soft); }
.kv__input { margin-top: 3px; width: 100%; font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--ink-900); padding: 4px 8px; border: 1px solid var(--ac); border-radius: 6px; background: var(--surface); outline: none; box-shadow: 0 0 0 3px var(--ac-soft); }
select.kv__input { cursor: pointer; }
.dl-sec__hint { font-size: 11px; font-weight: 400; color: var(--slate-400); letter-spacing: 0; margin-left: 2px; }

/* ---- reason capture (why/when/what audit) ---- */
.kv--why .kv__whybox { margin-top: 5px; display: flex; flex-direction: column; gap: 7px; padding: 9px 10px; background: var(--ac-soft); border: 1px solid var(--ac-line); border-radius: 8px; }
.kv__whyto { font-size: 12.5px; color: var(--slate-600); }
.kv__whyto b { color: var(--ink-900); font-weight: 700; }
.kv__whyinput { margin-top: 0; }
.kv__whyact { display: flex; gap: 7px; }
.dl-act-why { font-size: 12px; color: var(--slate-500); line-height: 1.45; margin-top: 4px; }
.dl-act-why svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 2px; color: var(--slate-400); }
.dl-act-why--ai { color: var(--slate-500); }
.drawer__tabn--alert { background: var(--warning-bg); color: var(--warning); }
.drawer__tab.is-active .drawer__tabn--alert { background: var(--warning-bg); color: var(--warning); }

/* ---- diligence taxonomy checklist ---- */
.dx-banner { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--ac-line); background: var(--ac-soft); border-radius: var(--r-card); margin-bottom: 18px; }
.dx-banner__ic { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; background: var(--surface); border: 1px solid var(--ac-line); color: var(--ac-700); display: grid; place-items: center; }
.dx-banner__body { flex: 1; min-width: 0; }
.dx-banner__h { font-size: 14px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.01em; }
.dx-banner__sub { font-size: 12.5px; color: var(--slate-600); line-height: 1.5; margin: 3px 0 10px; }
.dx-banner__sub b { color: var(--ink-900); font-weight: 700; }
.dx-banner__adapt { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 11.5px; color: var(--ac-700); }
.dx-banner__adapt svg { flex: 0 0 auto; }
.dx-banner__adapt b { color: var(--ac-700); font-weight: 700; }

/* ===== shared Documents + Parties mechanism (dealparts.jsx) ===== */
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.dp-head__actions { display: flex; gap: 8px; }
.dp-sub { font-size: 12px; color: var(--slate-400); margin-bottom: 14px; line-height: 1.5; }
.dp-subhead-lg { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); margin: 4px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); }

.dp-missing { border: 1px solid var(--ac-line); background: var(--ac-soft); border-radius: var(--r-control); padding: 12px 13px; margin-bottom: 14px; }
.dp-missing__h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-800); margin-bottom: 9px; }
.dp-missing__h b { color: var(--ink-900); font-weight: 700; text-transform: capitalize; }
.dp-missing__ic { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px; background: var(--surface); border: 1px solid var(--ac-line); color: var(--ac-700); display: grid; place-items: center; }
.dp-missing__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.dp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px dashed var(--ac-line); background: var(--surface); border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; color: var(--ink-800); cursor: pointer; transition: all var(--duration-fast) var(--ease-out); }
.dp-chip:hover { border-style: solid; border-color: var(--ac); background: var(--ac-soft); }
.dp-chip svg { color: var(--ac-700); flex: 0 0 auto; }
.dp-chip__cat { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-400); }

.dp-doccat { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400); margin: 16px 0 6px; }
.dp-doclist { border-radius: var(--r-control); transition: box-shadow var(--duration-fast) var(--ease-out); }
.dp-doclist.is-drag { box-shadow: inset 0 0 0 2px var(--ac); background: var(--ac-soft); }

.dp-doc { border-top: 1px solid var(--hairline-soft); }
.dp-doc:first-of-type { border-top: 0; }
.dp-doc__main { display: flex; align-items: center; gap: 11px; padding: 10px 6px; }
.dp-doc__ic { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 7px; display: grid; place-items: center; font-size: 8.5px; font-weight: 800; letter-spacing: 0.03em; color: #fff; background: var(--slate-400); }
.dp-doc__ic--pdf { background: #B3503E; }
.dp-doc__ic--xls { background: #2F7A55; }
.dp-doc__ic--doc { background: #2A5C8A; }
.dp-doc__n { font-size: 13px; font-weight: 600; color: var(--ink-900); display: flex; align-items: center; gap: 7px; }
.dp-doc__ver { font-size: 10px; font-weight: 700; color: var(--ac-700); background: var(--ac-soft); border-radius: var(--radius-pill); padding: 1px 6px; }
.dp-doc__m { font-size: 11px; color: var(--slate-400); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.dp-doc__m svg { color: var(--ac-600); }
.dp-doc__tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-500); background: var(--neutral-100); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 2px 8px; flex: 0 0 auto; }
.dp-doc__hist { border: 0; background: transparent; color: var(--slate-400); cursor: pointer; padding: 5px; border-radius: 6px; display: grid; place-items: center; flex: 0 0 auto; }
.dp-doc__hist:hover { color: var(--ink-900); background: var(--neutral-100); }
.dp-doc__rm { border: 0; background: transparent; color: var(--slate-300); cursor: pointer; padding: 5px; border-radius: 6px; display: grid; place-items: center; flex: 0 0 auto; opacity: 0; transition: opacity var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.dp-doc__main:hover .dp-doc__rm { opacity: 1; }
.dp-doc__rm:hover { color: #B3503E; background: var(--neutral-100); }
.dp-doc__versions { padding: 4px 6px 12px 47px; display: flex; flex-direction: column; gap: 6px; }
.dp-doc__vrow { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--slate-500); }
.dp-doc__vtag { font-weight: 700; color: var(--slate-400); }
.dp-doc__vtag.is-latest { color: var(--ac-700); }
.dp-doc__vwho { color: var(--ink-800); }
.dp-doc__vwhen { margin-left: auto; }

/* add form (docs + parties share) */
.dp-addform { border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 14px; margin-bottom: 14px; background: var(--canvas); }
.dp-addform__h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-900); margin-bottom: 12px; }
.dp-dropzone { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-control); background: var(--surface); cursor: pointer; font-size: 12.5px; color: var(--slate-500); line-height: 1.4; transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out); }
.dp-dropzone svg { color: var(--ac-700); flex: 0 0 auto; }
.dp-dropzone b { color: var(--ac-700); }
.dp-dropzone:hover, .dp-dropzone.is-drag { border-color: var(--ac); background: var(--ac-soft); }
.dp-addform__or { text-align: center; font-size: 11px; color: var(--slate-400); text-transform: uppercase; letter-spacing: 0.06em; margin: 12px 0; }
.dp-addform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 13px; }
.dp-addform__grid label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 600; color: var(--slate-400); }
.dp-addform__grid label:has(select[value=""]) { grid-column: auto; }
.dp-addform .kv__input { margin-top: 0; }
.dp-addform__act { display: flex; gap: 8px; margin-top: 14px; }
.dp-kindseg { margin-bottom: 12px; display: inline-flex; }

/* parties */
.dp-party { display: flex; align-items: center; gap: 11px; padding: 9px 6px; border-top: 1px solid var(--hairline-soft); }
.dp-party:first-of-type { border-top: 0; }
.dp-party__av { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--neutral-100); color: var(--slate-500); }
.dp-party__av.is-co { border-radius: 8px; background: var(--ac-soft); color: var(--ac-700); }
.dp-party__n { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.dp-party__rolewrap { position: relative; }
.dp-party__r { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--slate-500); cursor: pointer; margin-top: 1px; }
.dp-party__r:hover { color: var(--ac-700); }
.dp-party__x { border: 0; background: transparent; color: var(--slate-300); cursor: pointer; padding: 5px; border-radius: 6px; display: grid; place-items: center; flex: 0 0 auto; opacity: 0; transition: opacity var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.dp-party:hover .dp-party__x { opacity: 1; }
.dp-party__x:hover { color: #B3503E; background: var(--neutral-100); }
.dx-banner__bar { height: 6px; border-radius: 4px; background: color-mix(in oklab, var(--ac) 18%, var(--surface)); overflow: hidden; }
.dx-banner__bar i { display: block; height: 100%; border-radius: 4px; background: var(--ac); transition: width var(--duration-base) var(--ease-out); }
.dx-banner__score { flex: 0 0 auto; text-align: right; }
.dx-banner__score b { display: block; font-size: 24px; font-weight: 700; color: var(--ink-900); font-feature-settings: "tnum" 1; line-height: 1; }
.dx-banner__score span { font-size: 11px; color: var(--slate-500); }

.dx-secs { display: flex; flex-direction: column; gap: 10px; }
.dx-sec { border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.dx-sec__h { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 15px; border: 0; background: transparent; cursor: pointer; font-family: var(--font-sans); text-align: left; }
.dx-sec__h:hover { background: var(--neutral-50); }
.dx-sec__cv { color: var(--slate-400); transition: transform var(--duration-fast) var(--ease-out); flex: 0 0 auto; }
.dx-sec.is-open .dx-sec__cv { transform: rotate(90deg); }
.dx-sec__t { font-size: 13.5px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.01em; }
.dx-sec__gap { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--warning); background: var(--warning-bg); border-radius: var(--radius-pill); padding: 2px 8px; }
.dx-sec__done { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--success); background: var(--success-bg); border-radius: var(--radius-pill); padding: 2px 8px; }
.dx-sec__n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--slate-500); font-feature-settings: "tnum" 1; }
.dx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; padding: 6px 15px 16px; }
@media (max-width: 920px) { .dx-grid { grid-template-columns: 1fr; } }

.dx-row { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-top: 1px solid var(--hairline-soft); }
.dx-row:first-child, .dx-row:nth-child(2) { border-top: 0; }
.dx-row .kv { flex: 1; min-width: 0; }
.dx-row__dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; margin-top: 7px; background: var(--slate-300); }
.dx-row.is-has .dx-row__dot { background: var(--success); }
.dx-row.is-gap .dx-row__dot { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-bg); }
.dx-row--future { align-items: center; }
.dx-row--future .dx-row__dot { background: var(--neutral-200); }
.dx-row__l { font-size: 12.5px; color: var(--slate-500); flex: 1; min-width: 0; }
.dx-row__future { font-size: 10.5px; font-weight: 600; color: var(--slate-400); background: var(--neutral-100); border-radius: var(--radius-pill); padding: 2px 8px; white-space: nowrap; }
.dx-row.is-gap .kv__display .kv__v.muted { color: var(--warning); font-weight: 600; }

/* ---- drawer chips ---- */
.drawer__ver { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--slate-400); background: var(--neutral-100); border: 1px solid var(--hairline); border-radius: 6px; padding: 3px 7px; letter-spacing: 0.06em; text-transform: uppercase; }
.dl-portfolio { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; color: var(--ac-700); background: var(--ac-soft); border: 1px solid var(--ac-line); border-radius: 6px; padding: 3px 9px; }
.drawer__tabn { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 6px; border-radius: var(--radius-pill); background: var(--neutral-100); color: var(--slate-500); font-size: 10px; font-weight: 700; vertical-align: 1px; }
.drawer__tab.is-active .drawer__tabn { background: var(--ac-soft); color: var(--ac-700); }

/* ---- party rows (team & companies) ---- */
.dl-link-row { position: relative; }
.dl-link-row--mini { padding: 7px 0; }
.dl-link-row__rolewrap { position: relative; display: inline-block; }
.dl-link-row__r { cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.dl-link-row__rolewrap:hover .dl-link-row__r { color: var(--ink-700); }
.dl-link-row__r svg { opacity: 0.5; }
.dl-link-row__x { margin-left: auto; flex: 0 0 auto; width: 26px; height: 26px; border: 0; background: transparent; border-radius: 6px; color: var(--slate-300); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: all var(--duration-fast) var(--ease-out); }
.dl-link-row:hover .dl-link-row__x { opacity: 1; }
.dl-link-row__x:hover { background: var(--danger-bg); color: var(--danger); }
.dl-addrow { display: flex; gap: 8px; align-items: center; padding: 10px 0 14px; border-bottom: 1px solid var(--hairline-soft); margin-bottom: 6px; }
.dl-addrow__name { flex: 1; min-width: 0; font-family: var(--font-sans); font-size: 13px; padding: 8px 11px; border: 1px solid var(--ac); border-radius: var(--r-control); outline: none; box-shadow: 0 0 0 3px var(--ac-soft); color: var(--ink-900); }
.dl-addrow__role { font-family: var(--font-sans); font-size: 12.5px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: var(--r-control); background: var(--surface); color: var(--ink-800); cursor: pointer; }
.dl-sec__addbtn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 0; border: 0; background: transparent; color: var(--ac-700); font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dl-sec__addbtn:hover { color: var(--ink-900); }
.dl-side-prop { padding: 9px 0; border-top: 1px solid var(--hairline-soft); cursor: pointer; }
.dl-side-prop:first-of-type { border-top: 0; }
.dl-side-prop__n { font-size: 12.5px; font-weight: 600; color: var(--ink-900); }
.dl-side-prop__n:hover { color: var(--ac-700); }
.dl-side-prop__m { font-size: 11px; color: var(--slate-400); margin-top: 2px; }

/* ---- document version history ---- */
.dl-doc__ver { font-size: 9.5px; font-weight: 700; color: var(--ac-700); background: var(--ac-soft); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.dl-doc__hist { width: 30px; height: 30px; border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--r-control); color: var(--slate-400); cursor: pointer; display: grid; place-items: center; }
.dl-doc__hist:hover { color: var(--ink-800); border-color: var(--slate-300); }
.dl-doc__actions { display: inline-flex; align-items: center; gap: 8px; }
.dl-doc__rm { width: 30px; height: 30px; border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--r-control); color: var(--slate-300); cursor: pointer; display: grid; place-items: center; }
.dl-doc__rm:hover { color: #B3503E; border-color: var(--slate-300); }
.dl-docs.is-drag { box-shadow: inset 0 0 0 2px var(--ac); background: var(--ac-soft); border-radius: var(--r-control); }
.dl-doc.is-open { background: var(--neutral-50); border-radius: var(--r-control); margin: 2px -10px; padding: 0 10px; }
.dl-doc__versions { padding: 2px 0 12px 51px; display: flex; flex-direction: column; gap: 2px; }
.dl-doc__vrow { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 12px; align-items: center; padding: 6px 0; }
.dl-doc__vtag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--slate-400); }
.dl-doc__vtag.is-latest { color: var(--success); }
.dl-doc__vwho { font-size: 12px; color: var(--ink-800); }
.dl-doc__vwhen { font-size: 11.5px; color: var(--slate-400); }

/* ---- document suggestions ---- */
.dl-docsuggest { border: 1px solid var(--warning); background: var(--warning-bg); border-radius: var(--r-card); padding: 16px 18px; margin-bottom: 16px; }
.dl-docsuggest .dl-collect__ic { background: rgba(255,255,255,0.7); color: var(--warning); }
.dl-suggest-list { display: flex; flex-direction: column; gap: 8px; }
.dl-suggest { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-control); padding: 9px 12px; }

/* ---- property cards (Properties tab) ---- */
.dl-prop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dl-prop-head__sub { font-size: 12.5px; color: var(--slate-500); margin-top: 4px; max-width: 560px; line-height: 1.5; }
.dl-prop-grid { display: flex; flex-direction: column; gap: 14px; }
.dl-prop-card { display: grid; grid-template-columns: 200px 1fr; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-xs); }
.dl-prop-card__map { position: relative; background: var(--neutral-100); min-height: 200px; }
.dl-prop-card__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.9); }
.dl-prop-card__noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--slate-300); }
.dl-prop-card__idx { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-900); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.dl-prop-card__body { padding: 16px 18px; }
.dl-prop-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dl-prop-card__n { font-size: 15px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.015em; }
.dl-prop-card__addr { font-size: 12px; color: var(--slate-400); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.dl-prop-card__addr svg { width: 12px; height: 12px; }
.dl-prop-kv { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px 18px; margin-top: 16px; }
.dl-propform { background: var(--surface); }
.dl-propform__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px 14px; }
.dl-propform__grid label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--slate-400); font-weight: 500; }
.dl-propform__grid .kv__input { box-shadow: none; border-color: var(--hairline); }
.dl-propform__grid .kv__input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }

/* ---- AI glance + change-log diffs ---- */
.dl-ai--glance { margin-bottom: 16px; }
.dl-act-from { color: var(--slate-400); text-decoration: line-through; }
.dl-act-to { color: var(--ink-900); font-weight: 600; }

@media (max-width: 1180px) {
  .dl-prop-kv { grid-template-columns: 1fr 1fr; }
  .dl-prop-card { grid-template-columns: 1fr; }
  .dl-prop-card__map { min-height: 150px; }
  .dl-propform__grid { grid-template-columns: 1fr 1fr; }
}

/* ---- portfolio rollup + property table ---- */
.dl-portfolio-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline-soft); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; margin-bottom: 16px; }
.dl-pstat { background: var(--surface); padding: 13px 16px; }
.dl-pstat__l { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }
.dl-pstat__v { font-size: 22px; font-weight: var(--w-stat); color: var(--ink-900); letter-spacing: -0.02em; margin-top: 6px; font-feature-settings: "tnum" 1; }

.dl-ptable { border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.dl-ptable__head, .dl-ptrow { display: grid; grid-template-columns: 34px minmax(200px, 2fr) 1.1fr 1fr 1.1fr 64px 60px 30px; gap: 14px; align-items: center; padding: 0 16px; }
.dl-ptable__head { height: 38px; background: var(--neutral-50); border-bottom: 1px solid var(--hairline); }
.dl-ptable__head span { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }
.dl-ptable__head .num { text-align: right; }
.dl-ptrow { min-height: 60px; padding-top: 11px; padding-bottom: 11px; border-top: 1px solid var(--hairline-soft); cursor: pointer; transition: background var(--duration-fast) var(--ease-out); font-size: 13px; color: var(--ink-800); }
.dl-ptrow:first-of-type { border-top: 0; }
.dl-ptrow:hover { background: var(--neutral-50); }
.dl-ptrow__idx { width: 24px; height: 24px; border-radius: 50%; background: var(--ink-800); color: var(--ivory); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dl-ptrow__name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.dl-ptrow__ic { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; background: var(--neutral-100); border: 1px solid var(--hairline); color: var(--slate-500); display: grid; place-items: center; }
.dl-ptrow__n { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-ptrow__a { display: block; font-size: 11.5px; color: var(--slate-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.dl-ptrow__seg, .dl-ptrow__mkt, .dl-ptrow__built { color: var(--slate-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-ptrow__keys { font-weight: 600; color: var(--ink-900); font-feature-settings: "tnum" 1; }
.dl-ptrow__go { color: var(--slate-300); display: grid; place-items: center; }
.dl-ptrow:hover .dl-ptrow__go { color: var(--ink-700); }

.dl-flag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--ink-800); background: var(--neutral-100); border: 1px solid var(--hairline); border-radius: 5px; padding: 3px 9px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dl-seg { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; color: var(--ac-700); background: var(--ac-soft); border: 1px solid var(--ac-line); border-radius: var(--radius-pill); padding: 4px 11px; }
.dl-seg--mgr { color: var(--slate-600); background: var(--neutral-100); border-color: var(--hairline); }

/* ---- property detail overlay ---- */
.propdrawer-overlay { z-index: 1300; }
.propdrawer { width: 620px; max-width: 94vw; height: 100%; background: var(--canvas); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; overflow: hidden; animation: drawer-in var(--duration-base) var(--ease-out); }
.propdrawer__head { flex: 0 0 auto; padding: 20px 28px 18px; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.propdrawer__idline { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.propdrawer__title { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink-900); line-height: 1.15; }
.propdrawer__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.propdrawer__addr { font-size: 12.5px; color: var(--slate-500); margin-top: 10px; display: flex; align-items: center; gap: 7px; }
.propdrawer__addr svg { color: var(--slate-400); }
.propdrawer__map { flex: 0 0 auto; position: relative; height: 200px; background: var(--neutral-100); border-bottom: 1px solid var(--hairline); }
.propdrawer__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.9); }
.propdrawer__kpis { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--hairline); background: var(--surface); }
.propdrawer__kpis .dl-kpi { border-left: 1px solid var(--hairline-soft); }
.propdrawer__kpis .dl-kpi:first-child { border-left: 0; }
.propdrawer__body { flex: 1; overflow-y: auto; padding: 20px 28px 40px; scrollbar-width: thin; scrollbar-color: var(--slate-200) transparent; }
.propdrawer__body::-webkit-scrollbar { width: 9px; }
.propdrawer__body::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 5px; border: 2px solid var(--canvas); }

@media (max-width: 900px) {
  .dl-ptable__head, .dl-ptrow { grid-template-columns: 30px 2fr 1fr 60px 26px; }
  .dl-ptrow__seg, .dl-ptable__head span:nth-child(4), .dl-ptrow__mkt, .dl-ptable__head span:nth-child(5), .dl-ptrow__built, .dl-ptable__head span:nth-child(7) { display: none; }
}

/* ---- task creation form ---- */
.task-form { background: var(--neutral-50); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 20px; margin-bottom: 20px; }
.task-form__label { font-size: 13.5px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.01em; margin-bottom: 8px; }
.task-form__input { width: 100%; padding: 12px 14px; border: 1px solid var(--neutral-200); border-radius: 10px; font-size: 14px; color: var(--ink-900); background: var(--surface); outline: 0; font-family: var(--font-sans); resize: vertical; }
.task-form__input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.task-form__input::placeholder { color: var(--slate-400); }
.task-form__row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin: 14px 0; }
.task-form__field { display: flex; flex-direction: column; gap: 6px; }
.task-form__field-label { font-size: 12px; font-weight: 700; color: var(--ink-900); }
.task-form__select { padding: 11px 12px; border: 1px solid var(--neutral-200); border-radius: 10px; font-size: 13.5px; color: var(--ink-900); background: var(--surface); outline: 0; font-family: var(--font-sans); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23828F9C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.task-form__select:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.task-form__assignee { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--neutral-200); border-radius: 10px; background: var(--surface); cursor: pointer; }
.task-form__av { width: 28px; height: 28px; border-radius: 50%; background: var(--ac); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: 0 0 auto; overflow: hidden; }
.task-form__note-label { font-size: 12px; font-weight: 700; color: var(--ink-900); margin-bottom: 6px; }
.task-form__note-label span { color: var(--slate-400); font-weight: 400; margin-left: 4px; }
.task-form__footer { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--slate-600); }
.task-form__footer b { color: var(--ink-900); }

/* ---- Working Parties · contact directory picker ---- */
.cpick { margin: 4px 0 12px; }
.cpick__search { margin-bottom: 8px; }
.cpick__clear { margin-left: auto; width: 24px; height: 24px; border: 0; background: transparent; color: var(--slate-400); display: grid; place-items: center; cursor: pointer; border-radius: 6px; }
.cpick__clear:hover { background: var(--neutral-100); color: var(--ink-800); }
.cpick__list { display: flex; flex-direction: column; gap: 2px; max-height: 232px; overflow-y: auto; }
.cpick__hint { font-size: 12px; color: var(--slate-400); padding: 8px 4px; }
.cpick-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: background var(--duration-fast) var(--ease-out); }
.cpick-row:hover, .cpick-row.is-on { background: var(--neutral-50); }
.cpick-row.is-on { box-shadow: inset 0 0 0 1px var(--ac-line); }
.cpick-row__av { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: var(--neutral-200); color: var(--ink-700); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.cpick-row__av.is-co { border-radius: 7px; background: var(--ink-700); color: var(--ivory); }
.cpick-row__av .av-face { width: 100%; height: 100%; object-fit: cover; }
.cpick-row__main { min-width: 0; flex: 1; }
.cpick-row__n { font-size: 13px; font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpick-row__m { font-size: 11px; color: var(--slate-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpick-row__meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.cpick-crm { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-400); display: inline-flex; align-items: center; gap: 3px; }
.cpick-crm.is-in { color: var(--success); }
.cpick-deals { font-size: 10px; color: var(--slate-400); font-feature-settings: "tnum" 1; }
.cpick-create { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--ac-700); font-size: 12.5px; font-weight: 600; border: 1px dashed var(--ac-line); margin-top: 4px; }
.cpick-create:hover { background: var(--ac-soft); }
.cpick-create__ic { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 6px; background: var(--ac-soft); color: var(--ac-700); display: grid; place-items: center; }
.cpick-create b { font-weight: 700; }
.cpick-picked { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 8px; background: var(--success-bg); color: var(--success); font-size: 12.5px; }
.cpick-picked b { font-weight: 700; }
.cpick-dupe { margin-top: 8px; padding: 9px 11px; border-radius: 8px; background: var(--warning-bg); border: 1px solid color-mix(in oklab, var(--warning) 28%, transparent); }
.cpick-dupe__h { font-size: 11.5px; font-weight: 700; color: var(--warning); display: flex; align-items: center; gap: 5px; margin-bottom: 7px; }
.cpick-dupe__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cpick-dupe__chip { font-size: 11.5px; font-weight: 600; color: var(--ink-800); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 4px 11px; cursor: pointer; }
.cpick-dupe__chip:hover { border-color: var(--warning); color: var(--warning); }

/* ---- Tasks · two-column (creator | to-do list) ---- */
.task-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.task-col { min-width: 0; }
@media (max-width: 920px) { .task-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---- Documents · view toggle, tabular view, property tag ---- */
.dl-docview { display: inline-flex; border: 1px solid var(--neutral-200); border-radius: 8px; overflow: hidden; }
.dl-docview button { border: 0; background: var(--surface); color: var(--slate-500); padding: 5px 9px; cursor: pointer; display: grid; place-items: center; }
.dl-docview button + button { border-left: 1px solid var(--neutral-200); }
.dl-docview button.is-active { background: var(--ac-soft); color: var(--ac-700); }
.dl-doctable { width: 100%; }
.dl-doctable th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-400); }
.dl-doctable td { font-size: 12.5px; color: var(--ink-800); vertical-align: middle; }
.dl-doctable__mut { color: var(--slate-500); }
.dl-doctable__n { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-900); }
.dl-doctable__n .dl-doc__ic { width: 26px; height: 18px; font-size: 8px; flex: 0 0 auto; }
.dl-doc-prop { font-size: 10.5px; font-weight: 600; color: var(--slate-600); background: var(--neutral-100); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 2px 9px; white-space: nowrap; }
.dp-addform__note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--slate-500); margin: 8px 0 2px; }
.dp-addform__note b { color: var(--slate-700); font-weight: 700; }
