/* Soren — datatable.css: the redesigned Data Table view + Add Data Table modal.
   Spec: "Soren Data Table.dc.html" / "Soren Add Data Table.dc.html".
   Trust colors follow CLAUDE.md: governed = deep green, draft/needs-definition = citron. */

/* ── Shell ─────────────────────────────────────────────────────────────── */
.dt2 { display: flex; flex-direction: column; height: calc(100vh - 54px); min-height: 0; background: var(--bg); }

/* ── Header block ──────────────────────────────────────────────────────── */
.dt2-head { padding: 18px 26px 14px; border-bottom: 1px solid var(--border); flex: none; }
.dt2-head-top { display: flex; align-items: flex-start; gap: 12px; }
.dt2-back { background: none; border: none; cursor: pointer; font-size: 18px; color: #B6AFA1; padding: 2px 4px; margin-top: 3px; }
.dt2-titlerow { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.dt2-title { font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--dark); letter-spacing: -.01em; margin: 0; }
.dt2-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; border-radius: 20px; padding: 3px 10px; font-weight: 600; }
.dt2-pill-live { color: var(--primary); background: var(--primary-mid); border: 1px solid rgba(26,82,56,.22); }
.dt2-pill-file { color: #5A6A74; background: #F1EEE7; border: 1px solid var(--border); }
.dt2-pill-snapshot { color: #3A6076; background: #DCE6EE; border: 1px solid #B8CAD6; }
.dt2-livedot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.dt2-meta { font-size: 12.5px; color: var(--stone); margin-top: 4px; }
.dt2-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.dt2-chipbtn { font-size: 13px; color: var(--dark); border: 1px solid #C9C3B6; border-radius: 7px; padding: 7px 13px; background: var(--surface); cursor: pointer; font-family: var(--font-body); white-space: nowrap; }
.dt2-chipbtn:hover { background: #F2F5F0; }
.dt2-chipbtn:disabled { opacity: .55; cursor: default; }
.dt2-chipbtn.danger { color: var(--rose); border-color: rgba(184,64,64,.3); }
.dt2-prompts { display: flex; gap: 34px; margin-top: 14px; }
.dt2-prompt { flex: 1; min-width: 0; }
.dt2-kicker { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dt2-prompt-val { font-size: 13.5px; color: #3A443E; margin-top: 4px; cursor: pointer; line-height: 1.45; }
.dt2-prompt-val .empty { font-style: italic; color: var(--muted); }

/* ── Toolbar: views + controls + search ───────────────────────────────── */
.dt2-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 26px; border-bottom: 1px solid var(--divider); background: #F3F1EB; flex: none; flex-wrap: wrap; }
.dt2-views { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dt2-view { font-size: 13px; color: #5A6A74; padding: 6px 13px; border-radius: 7px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.dt2-view:hover { background: rgba(0,0,0,.03); }
.dt2-view.active { color: var(--dark); font-weight: 600; background: var(--surface); border-color: #C9C3B6; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.dt2-view .x { margin-left: 6px; color: var(--stone); font-size: 11px; }
.dt2-view .x:hover { color: var(--rose); }
.dt2-view-add { font-size: 15px; color: var(--stone); padding: 2px 9px; cursor: pointer; border: none; background: none; }
.dt2-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dt2-toolbtn { font-size: 12.5px; color: var(--dark); border: 1px solid #C9C3B6; border-radius: 7px; padding: 6px 12px; background: var(--surface); cursor: pointer; font-family: var(--font-body); white-space: nowrap; }
.dt2-toolbtn:hover { background: #F2F5F0; }
.dt2-toolbtn.on { color: #3A6076; border-color: #B8CAD6; background: #F2F6F8; font-weight: 600; }
.dt2-searchwrap { display: flex; align-items: center; gap: 8px; border: 1px solid #C9C3B6; border-radius: 7px; padding: 0 12px; background: var(--surface); width: 230px; }
.dt2-searchwrap .glass { color: #B6AFA1; font-size: 13px; }
.dt2-search { border: none; background: transparent; outline: none; font-size: 13px; color: var(--dark); font-family: var(--font-body); padding: 7px 0; flex: 1; min-width: 0; }
.dt2-search::placeholder { color: var(--stone); }
.dt2-filterchips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 26px 8px; background: #F3F1EB; border-bottom: 1px solid var(--divider); }
.dt2-fchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #3A6076; background: #F2F6F8; border: 1px solid #B8CAD6; border-radius: 20px; padding: 4px 11px; }
.dt2-fchip b { font-weight: 600; }
.dt2-fchip .x { cursor: pointer; color: var(--stone); }
.dt2-fchip .x:hover { color: var(--rose); }

/* ── Summary strip ─────────────────────────────────────────────────────── */
.dt2-summary { display: flex; align-items: center; gap: 22px; padding: 10px 26px; border-bottom: 1px solid var(--divider); background: var(--surface); flex: none; overflow-x: auto; }
.dt2-sum { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; position: relative; }
.dt2-sum-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dt2-sum-val { font-family: var(--font-display); font-size: 17px; color: var(--dark); font-variant-numeric: tabular-nums; }
.dt2-sum .x { font-size: 10px; color: var(--stone); cursor: pointer; visibility: hidden; }
.dt2-sum:hover .x { visibility: visible; }
.dt2-sum-divider { width: 1px; height: 20px; background: var(--border); flex: none; }
.dt2-addsum { font-size: 12px; color: #3A6076; border: 1px dashed #B8CAD6; border-radius: 20px; padding: 4px 12px; background: var(--surface); cursor: pointer; font-weight: 600; white-space: nowrap; }
.dt2-sum-note { margin-left: auto; font-size: 12px; color: var(--stone); white-space: nowrap; }

/* ── Grid ──────────────────────────────────────────────────────────────── */
.dt2-gridwrap { overflow: auto; flex: 1; min-height: 0; }
table.dt2-grid { border-collapse: separate; border-spacing: 0; font-size: 13px; color: var(--dark); min-width: 100%; }
.dt2-grid th { position: sticky; top: 0; z-index: 3; background: #F1EEE7; text-align: left; padding: 8px 14px; border-bottom: 1.5px solid #DDD7CB; font-weight: 600; font-size: 12.5px; white-space: nowrap; cursor: pointer; vertical-align: top; }
.dt2-grid th.num { text-align: right; }
.dt2-grid th .dt2-th-inner { display: flex; align-items: center; gap: 7px; }
.dt2-grid th.num .dt2-th-inner { justify-content: flex-end; }
.dt2-headmeta { font-size: 10px; color: var(--muted); margin-top: 5px; font-weight: 400; }
.dt2-headmeta.metric { color: var(--accent-ink); }
.dt2-fillbar { height: 3px; width: 38px; border-radius: 2px; background: #E0DACE; margin-top: 6px; overflow: hidden; }
.dt2-fillbar > span { display: block; height: 100%; background: var(--primary); }
.dt2-fillbar > span.draft { background: var(--accent); }
.dt2-typeicon { width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex: none; }
.dt2-typeicon.t-text { background: rgba(110,105,95,.16); color: #6E695F; }
.dt2-typeicon.t-number { background: rgba(26,82,56,.14); color: var(--primary); }
.dt2-typeicon.t-date { background: rgba(154,79,46,.14); color: #9A4F2E; }
.dt2-typeicon.t-category { background: rgba(58,96,118,.16); color: #3A6076; }
.dt2-typeicon.t-boolean { background: rgba(110,105,95,.16); color: #6E695F; }
.dt2-gov { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dt2-gov.defined { background: var(--primary); }
.dt2-gov.draft { background: var(--accent); border: 1.5px solid var(--accent-ink); width: 8px; height: 8px; }
.dt2-grid td { padding: 0 14px; height: 42px; border-bottom: 1px solid var(--divider); background: var(--surface); white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.dt2-grid tr.even td { background: #F5F3ED; }
.dt2-grid tr.dt2-trow:hover td { background: #EFF3EF; }
.dt2-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dt2-grid td .cur { color: var(--stone); }
.dt2-grid td.dim { color: #5A6A74; }
.dt2-grid td .blank { color: #C7BFB0; }
.dt2-frz { position: sticky; z-index: 2; }
.dt2-frz-num { left: 0; width: 46px; min-width: 46px; text-align: center; color: #B6AFA1; font-size: 12px; }
.dt2-frz-anchor { left: 46px; font-weight: 600; box-shadow: 6px 0 7px -6px rgba(0,0,0,.09); cursor: pointer; }
.dt2-grid td.dt2-frz, .dt2-grid tr.even td.dt2-frz { background: #F1EFE8; }
.dt2-grid tr.dt2-trow:hover td.dt2-frz { background: #E9EEE6; }
.dt2-grid th.dt2-frz { z-index: 4; background: #EBE8E0; }
.dt2-catdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.dt2-tag { font-size: 11.5px; color: #3A6076; background: rgba(58,96,118,.08); border: 1px solid rgba(58,96,118,.25); border-radius: 5px; padding: 2px 8px; }
.dt2-grouprow td { background: #EDEAE1 !important; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6E695F; font-weight: 700; height: 30px; position: static; }
.dt2-empty { padding: 40px; text-align: center; color: var(--stone); font-size: 13px; }

/* ── Footer / pagination ───────────────────────────────────────────────── */
.dt2-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 26px; border-top: 1px solid var(--border); background: #F3F1EB; flex: none; font-size: 12.5px; color: var(--stone); flex-wrap: wrap; }
.dt2-footer .cols { color: #3A6076; font-weight: 600; cursor: pointer; }
.dt2-pages { display: flex; align-items: center; gap: 4px; }
.dt2-pagebtn { font-size: 12.5px; color: #5A6A74; padding: 5px 11px; border-radius: 6px; border: 1px solid transparent; background: none; cursor: pointer; font-family: var(--font-body); }
.dt2-pagebtn:hover { background: rgba(0,0,0,.04); }
.dt2-pagebtn.current { color: var(--dark); font-weight: 600; background: var(--surface); border-color: #C9C3B6; }
.dt2-pagebtn.nav { color: var(--primary); font-weight: 600; }
.dt2-pagebtn:disabled { color: #C7BFB0; cursor: default; background: none; }

/* ── Popovers (filter / sort / group / summary / save view) ────────────── */
.dt2-pop { position: fixed; background: var(--surface); border: 1px solid #D9D3C7; border-radius: 10px; box-shadow: 0 14px 40px rgba(20,30,25,.18); padding: 14px; z-index: 80; min-width: 280px; max-width: 360px; max-height: 60vh; overflow: auto; }
.dt2-pop label { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 10px 0 4px; }
.dt2-pop label:first-child { margin-top: 0; }
.dt2-pop select, .dt2-pop input[type="text"] { width: 100%; padding: 7px 10px; border: 1px solid #C9C3B6; border-radius: 7px; font-size: 13px; background: var(--surface); font-family: var(--font-body); color: var(--dark); outline: none; }
.dt2-pop-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.dt2-pop-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--dark); }
.dt2-pop-row:hover { background: #F2F5F0; }
.dt2-btn-primary { background: var(--primary); color: var(--bg); border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.dt2-btn-ghost { background: var(--surface); color: #5A6A74; border: 1px solid #C9C3B6; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; font-family: var(--font-body); }

/* ── Overlays: record detail + curate drawer + field modal ─────────────── */
.dt2-overlay { position: fixed; inset: 0; background: rgba(28,37,33,.34); z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 44px 20px; overflow: auto; }
.dt2-card { width: 560px; max-width: 96vw; background: var(--bg); border: 1px solid #D9D3C7; border-radius: 12px; box-shadow: 0 20px 50px rgba(20,30,25,.22); overflow: hidden; }
.dt2-card-head { padding: 20px 26px 16px; }
.dt2-card-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dt2-card-kicker .lab { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.dt2-card-kicker .lab b { color: #5A6A74; font-weight: 700; }
.dt2-close { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #DDD7CB; background: var(--surface); color: #8A857A; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; flex: none; }
.dt2-card-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--dark); margin: 12px 0 3px; letter-spacing: -.01em; }
.dt2-card-sub { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--stone); }
.dt2-facts { display: flex; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); background: var(--surface); }
.dt2-fact { flex: 1; padding: 13px 18px; border-right: 1px solid var(--divider); min-width: 0; }
.dt2-fact:last-child { border-right: none; }
.dt2-fact-val { font-family: var(--font-display); font-size: 21px; color: var(--dark); margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt2-fields { padding: 6px 26px 12px; }
.dt2-fieldgroup { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: #3A6076; font-weight: 700; padding: 14px 0 6px; }
.dt2-fieldrow { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 13px; }
.dt2-fieldrow .k { color: #7C8A92; flex: none; }
.dt2-fieldrow .v { color: var(--dark); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.dt2-fieldrow .v.blank { color: #C7BFB0; }
.dt2-showmore { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; cursor: pointer; }
.dt2-showmore .more { font-size: 12px; color: var(--stone); }
.dt2-card-foot { display: flex; align-items: center; gap: 14px; padding: 14px 26px; border-top: 1px solid var(--border); background: #F3F1EB; flex-wrap: wrap; }
.dt2-card-foot .link { font-size: 13px; font-weight: 600; cursor: pointer; background: none; border: none; font-family: var(--font-body); padding: 0; }
.dt2-card-foot .link.green { color: var(--primary); }
.dt2-card-foot .link.blue { color: #3A6076; }
.dt2-card-foot .link.plain { color: #5A6A74; font-weight: 400; }
.dt2-recnav { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--stone); }
.dt2-recnav .navbtn { cursor: pointer; color: var(--primary); font-weight: 600; background: none; border: none; font-size: 12px; font-family: var(--font-body); }
.dt2-recnav .navbtn:disabled { color: #C7BFB0; cursor: default; }

/* Curate drawer */
.dt2-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 94vw; background: var(--bg); border-left: 1px solid #D9D3C7; box-shadow: -14px 0 40px rgba(20,30,25,.16); z-index: 95; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; }
.dt2-drawer.open { transform: translateX(0); }
.dt2-drawer-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--border); flex: none; }
.dt2-drawer-title { display: flex; align-items: center; justify-content: space-between; }
.dt2-drawer-title h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--dark); margin: 0; }
.dt2-drawer-title .shown { font-size: 12.5px; color: #3A6076; font-weight: 600; }
.dt2-drawer-body { flex: 1; overflow: auto; min-height: 0; padding: 8px 0; }
.dt2-dedupe { display: flex; align-items: center; gap: 10px; padding: 11px 22px; background: var(--accent-light); border-bottom: 1px solid var(--accent); font-size: 12.5px; color: #5C5848; }
.dt2-dedupe b { color: var(--dark); }
.dt2-dedupe button { font-size: 12px; color: var(--accent-ink); font-weight: 600; cursor: pointer; border: 1px solid var(--accent); border-radius: 6px; padding: 5px 11px; background: var(--surface); font-family: var(--font-body); white-space: nowrap; }
.dt2-fieldline { display: flex; align-items: center; gap: 11px; padding: 8px 22px; }
.dt2-fieldline.sys { opacity: .72; }
.dt2-fieldline .grab { color: #C7BFB0; cursor: grab; }
.dt2-fieldline .name { flex: 1; font-size: 13.5px; color: var(--dark); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt2-fieldline .name .note { font-size: 10px; color: var(--accent-ink); }
.dt2-fieldline .name .note.enr { color: #3A6076; }
.dt2-fieldline .fill { font-size: 11px; color: #C7BFB0; flex: none; }
.dt2-fieldline.dragover { border-top: 2px solid var(--primary); }
.dt2-switch { width: 32px; height: 18px; border-radius: 10px; background: #D6D0C4; position: relative; flex: none; cursor: pointer; border: none; transition: background .15s; }
.dt2-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.dt2-switch.on { background: var(--primary); }
.dt2-switch.on::after { left: 16px; }
.dt2-sectionhead { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px 6px; }
.dt2-sectionhead .lab { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dt2-sectionhead .toggle { font-size: 12px; color: var(--stone); cursor: pointer; }
.dt2-drawer-foot { padding: 13px 22px; border-top: 1px solid var(--border); background: #F3F1EB; display: flex; align-items: center; gap: 8px; flex: none; font-size: 12px; color: var(--stone); }
.dt2-drawer-search { display: flex; align-items: center; gap: 8px; border: 1px solid #C9C3B6; border-radius: 7px; padding: 0 12px; background: var(--surface); margin-top: 12px; }
.dt2-drawer-search input { border: none; background: transparent; outline: none; font-size: 13px; color: var(--dark); font-family: var(--font-body); padding: 7px 0; flex: 1; }

/* Field modal additions (reuses .dt2-card) */
.dt2-defband { background: #EAF0F4; border-top: 1px solid #D6E2EA; border-bottom: 1px solid #D6E2EA; padding: 16px 26px; }
.dt2-defband textarea, .dt2-defband input[type="text"] { width: 100%; background: var(--surface); border: 1px solid #C6D4DF; border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--dark); line-height: 1.5; font-family: var(--font-body); outline: none; resize: vertical; }
.dt2-fieldmodal-body { padding: 16px 26px 12px; }
.dt2-fieldmodal-body label { display: block; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 14px 0 6px; }
.dt2-fieldmodal-body label:first-child { margin-top: 0; }
.dt2-fieldmodal-body input[type="text"], .dt2-fieldmodal-body textarea, .dt2-fieldmodal-body select { width: 100%; padding: 9px 12px; border: 1px solid #C9C3B6; border-radius: 8px; font-size: 13.5px; background: var(--surface); font-family: var(--font-body); color: var(--dark); outline: none; resize: vertical; }
.dt2-vals { display: flex; flex-wrap: wrap; gap: 7px; }
.dt2-val { font-size: 12.5px; color: var(--primary); border: 1px solid rgba(26,82,56,.35); border-radius: 6px; padding: 5px 11px; background: var(--surface); }
.dt2-val.more { color: var(--stone); border: 1px dashed #C9C3B6; }

/* ── Add Data Table modal ──────────────────────────────────────────────── */
.dt2m { width: 660px; max-width: 96vw; background: var(--bg); border: 1px solid #D9D3C7; border-radius: 14px; box-shadow: 0 30px 70px rgba(20,30,25,.32); overflow: hidden; }
.dt2m-head { padding: 22px 28px 0; }
.dt2m-title { font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--dark); margin: 0; letter-spacing: -.01em; }
.dt2m-sub { font-size: 13px; color: var(--stone); margin-top: 3px; }
.dt2m-tabs { display: flex; gap: 22px; margin-top: 18px; border-bottom: 1px solid var(--border); }
.dt2m-tab { padding: 0 2px 12px; font-size: 13.5px; color: var(--stone); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dt2m-tab.active { color: var(--dark); font-weight: 600; border-bottom-color: var(--primary); }
.dt2m-body { padding: 20px 28px 24px; max-height: 62vh; overflow: auto; }
.dt2m-foot { display: flex; align-items: center; gap: 10px; padding: 14px 28px; border-top: 1px solid var(--border); background: #F3F1EB; }
.dt2m-foot .note { font-size: 12.5px; color: #7C8A92; flex: 1; }
.dt2m-search { display: flex; align-items: center; gap: 9px; border: 1px solid #C9C3B6; border-radius: 9px; padding: 0 14px; background: var(--surface); }
.dt2m-search input { border: none; background: transparent; outline: none; font-size: 14px; color: var(--dark); font-family: var(--font-body); padding: 10px 0; flex: 1; }
.dt2m-search .count { font-size: 12px; color: var(--stone); }
.dt2m-catalog { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 16px; }
.dt2m-src { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 14px; position: relative; cursor: pointer; }
.dt2m-src:hover { border-color: var(--primary); background: #F2F5F0; }
.dt2m-src.connected { border: 1.5px solid var(--primary); background: #F2F5F0; box-shadow: 0 2px 8px rgba(26,82,56,.09); }
.dt2m-src.disabled { cursor: default; opacity: .6; }
.dt2m-src.disabled:hover { border-color: var(--border); background: var(--surface); }
.dt2m-src-badge { position: absolute; top: 11px; right: 11px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-mid); border: 1px solid rgba(26,82,56,.28); border-radius: 20px; padding: 2px 8px; font-weight: 700; }
.dt2m-src-badge.off { color: var(--stone); background: #F1EEE7; border-color: var(--border); }
.dt2m-src-logo { width: 34px; height: 34px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.dt2m-src-name { font-size: 14px; color: var(--dark); font-weight: 600; margin-top: 11px; }
.dt2m-src-kind { font-size: 11.5px; color: #7C8A92; margin-top: 2px; }
.dt2m-conncard { border: 1px solid #C9D9CB; border-radius: 12px; background: #F2F5F0; overflow: hidden; margin-top: 10px; }
.dt2m-connrow { display: flex; align-items: center; gap: 13px; padding: 15px 17px; }
.dt2m-connmeta { display: flex; border-top: 1px solid #DCE6DE; background: var(--surface); }
.dt2m-connmeta > div { flex: 1; padding: 10px 17px; border-right: 1px solid var(--divider); }
.dt2m-connmeta > div:last-child { border-right: none; }
.dt2m-connmeta .v { font-size: 14px; color: var(--dark); font-weight: 600; margin-top: 2px; }
.dt2m-connact { display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-top: 1px solid #DCE6DE; flex-wrap: wrap; }
.dt2m-obj { display: flex; align-items: center; gap: 13px; padding: 12px 28px; cursor: pointer; border-left: 3px solid transparent; }
.dt2m-obj:hover { background: #F2F5F0; }
.dt2m-obj.sel { background: #F2F5F0; border-left-color: var(--primary); }
.dt2m-check { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #C9C3B6; background: var(--surface); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.dt2m-obj.sel .dt2m-check { border-color: var(--primary); background: var(--primary); }
.dt2m-obj-name { font-size: 14px; color: var(--dark); font-weight: 600; }
.dt2m-obj-meta { font-size: 11.5px; color: #7C8A92; }
.dt2m-synced-badge { font-size: 11px; color: var(--accent-ink); background: var(--accent-light); border: 1px solid var(--accent); border-radius: 20px; padding: 3px 10px; font-weight: 600; white-space: nowrap; }
.dt2m-progress { padding: 14px 22px; border: 1px solid #D9D3C7; border-radius: 12px; background: var(--bg); margin-top: 14px; }
.dt2m-bar { height: 5px; border-radius: 3px; background: #E6E1D6; overflow: hidden; margin-top: 9px; }
.dt2m-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #1A5238, #2C7A52); transition: width .4s; }
.dt2m-drop { border: 1.5px dashed #C2BCAF; border-radius: 12px; background: var(--surface); padding: 18px 20px; cursor: pointer; }
.dt2m-drop.drag-over { border-color: var(--primary); background: #F2F5F0; }
.dt2m-filecard { display: flex; align-items: center; gap: 15px; }
.dt2m-fileicon { width: 46px; height: 56px; border-radius: 6px; background: #1E7A46; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; box-shadow: 0 2px 6px rgba(30,122,70,.28); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.dt2m-fileicon .glyph { font-size: 15px; margin-top: 2px; }
.dt2m-accepts { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12px; color: var(--stone); flex-wrap: wrap; }
.dt2m-ext { font-size: 11px; color: #5A6A74; background: #F1EEE7; border: 1px solid var(--border); border-radius: 5px; padding: 2px 8px; }
.dt2m-preview { border: 1px solid var(--border); border-radius: 11px; overflow: hidden; margin-top: 9px; background: var(--surface); }
.dt2m-preview table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dt2m-preview th { background: #F1EEE7; border-bottom: 1px solid var(--border); padding: 9px 14px; text-align: left; font-weight: 600; color: var(--dark); cursor: pointer; }
.dt2m-preview th .typechip { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 10.5px; color: #7C8A92; font-weight: 400; }
.dt2m-preview td { padding: 9px 14px; border-bottom: 1px solid var(--divider); border-left: 1px solid var(--divider); color: var(--dark); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.dt2m-preview td:first-child { border-left: none; }
.dt2m-preview tr:nth-child(even) td { background: #F5F3ED; }
.dt2m-namerow { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.dt2m-namerow input { flex: 1; border: 1px solid #C9C3B6; border-radius: 8px; background: var(--surface); padding: 11px 14px; font-size: 14.5px; color: var(--dark); font-family: var(--font-body); outline: none; }
.dt2m-footnote { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: 12.5px; color: #7C8A92; line-height: 1.55; }
.dt2m-footnote .dot { width: 7px; height: 7px; border-radius: 50%; background: #3A6076; margin-top: 5px; flex: none; }
.dt2m-onsync { display: flex; align-items: center; gap: 11px; padding: 14px 28px; border-top: 1px solid var(--divider); background: var(--surface); flex-wrap: wrap; }
.dt2m-mode { font-size: 12.5px; color: var(--dark); background: #F2F5F0; border: 1px solid #C9D9CB; border-radius: 20px; padding: 4px 12px; font-weight: 600; }
.dt2m-snapopt { font-size: 12.5px; color: #5A6A74; border: 1px solid #DDD7CB; border-radius: 20px; padding: 4px 12px; cursor: pointer; background: none; font-family: var(--font-body); }
.dt2m-snapopt.on { color: var(--dark); background: #F2F5F0; border-color: #C9D9CB; font-weight: 600; }
