/* Marketplace Terms: the approved marketplace playbook, scoped to this pane. */
#appShell.ui-workspace #paneTerms { display:flex; flex-direction:column; gap:22px; min-width:0; container-type:inline-size; --table-stripe-odd:transparent; --table-stripe-even:transparent; --table-row-hover:var(--ui-surface-muted); --table-row-selected:var(--ui-blue-soft); --table-header-bg:var(--ui-surface-muted); }
#appShell.ui-workspace #paneTerms:is(.u-hidden,[hidden]) { display:none; }
#appShell #paneTerms [hidden] { display:none !important; }
#appShell #paneTerms :is(h2,h3,p) { margin:0; }
#appShell #paneTerms h2 { color:var(--ui-ink); font-size:14px; font-weight:650; }
#appShell #paneTerms h3 { font-size:13px; }
#appShell #paneTerms small { font-size:10px; color:var(--ui-ink-secondary); line-height:1.65; }
#appShell #paneTerms .workspace-page-head { align-items:flex-end; }
#appShell #paneTerms .workspace-page-copy { margin-top:10px; font-size:13px; line-height:1.6; }
#appShell #paneTerms .term-page-actions { display:flex; gap:9px; flex-wrap:wrap; margin-left:auto; }
#appShell #paneTerms .term-primary { background:var(--ui-blue); border-color:var(--ui-blue); color:#fff; box-shadow:none; }
#appShell #paneTerms .term-danger { color:var(--ui-red); }
#appShell #paneTerms button:disabled { opacity:.5; cursor:default; }
#appShell #paneTerms :is(button,input,select,summary):focus-visible { outline:3px solid var(--ui-blue); outline-offset:3px; }
#appShell #paneTerms .term-link { padding:4px 0; border:0; background:none; box-shadow:none; color:var(--ui-blue); font-size:11px; white-space:normal; cursor:pointer; text-align:left; }
#appShell #paneTerms .term-link:hover { text-decoration:underline; }
#appShell #paneTerms .term-link.term-danger { color:var(--ui-red); }
#appShell #paneTerms .term-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--ui-line); border-radius:11px; background:var(--ui-surface); overflow:hidden; }
#appShell #paneTerms .term-metric { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:23px; border-right:1px solid var(--ui-line); min-width:0; }
#appShell #paneTerms .term-metric:last-child { border:0; }
#appShell #paneTerms .term-metric > span { font-size:11px; color:var(--ui-ink-secondary); }
#appShell #paneTerms .term-metric strong { font-size:clamp(21px,2.1cqi,29px); color:var(--ui-ink); font-weight:650; letter-spacing:-.8px; line-height:1.4; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#appShell #paneTerms .term-metric small { overflow-wrap:anywhere; }
#appShell #paneTerms .term-notice { display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid color-mix(in srgb,var(--ui-amber) 28%,var(--ui-line)); border-radius:9px; background:var(--ui-amber-soft); color:var(--ui-amber); padding:15px 18px; font-size:12px; line-height:1.65; }
#appShell #paneTerms .term-notice button { color:inherit; flex-shrink:0; }
#appShell #paneTerms .term-viewbar { display:flex; align-items:center; justify-content:space-between; gap:15px; flex-wrap:wrap; border-bottom:1px solid var(--ui-line); padding-bottom:14px; }
#appShell #paneTerms .term-tabs { display:flex; gap:6px; flex-wrap:wrap; }
#appShell #paneTerms .term-tabs button { padding:9px 12px; border:1px solid transparent; border-radius:7px; background:none; box-shadow:none; color:var(--ui-ink-secondary); font-size:12px; }
#appShell #paneTerms .term-tabs button[aria-pressed="true"] { background:var(--ui-blue-soft); color:var(--ui-blue); border-color:color-mix(in srgb,var(--ui-blue) 30%,var(--ui-line)); }
#appShell #paneTerms .term-count { display:inline-block; margin-left:6px; padding:2px 5px; border:1px solid var(--ui-line); border-radius:5px; font-size:10px; color:var(--ui-ink-secondary); background:var(--ui-surface-muted); }
#appShell #paneTerms #termsSearch { width:250px; max-width:100%; min-height:37px; padding:9px 11px; border:1px solid var(--ui-line); border-radius:7px; background:var(--ui-surface); color:var(--ui-ink); box-shadow:none; font-size:11px; }
#appShell #paneTerms .term-layout { display:grid; grid-template-columns:minmax(0,1fr) 286px; gap:23px; align-items:start; }
#appShell #paneTerms :is(.term-main,.term-side) { display:grid; gap:18px; min-width:0; }
#appShell #paneTerms .term-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
#appShell #paneTerms .term-filters { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
#appShell #paneTerms :is(.term-filters label,.term-sort) { display:flex; align-items:center; gap:7px; font-size:10px; color:var(--ui-ink-secondary); }
#appShell #paneTerms :is(.term-filters select,.term-sort select,.term-filters input) { width:auto; max-width:180px; padding:7px; border:1px solid var(--ui-line); border-radius:6px; background:var(--ui-surface); color:var(--ui-ink); box-shadow:none; font-size:10px; }
#appShell #paneTerms .term-filters input { width:110px; }
#appShell #paneTerms .term-table-wrap { width:100%; max-width:100%; overflow:auto; }
#appShell #paneTerms .term-table { width:100%; min-width:600px; border-collapse:collapse; text-align:left; background:transparent; color:var(--ui-ink); }
#appShell #paneTerms .term-register { min-width:810px; }
#appShell #paneTerms .term-table th { padding:11px 15px; border-block:1px solid var(--ui-line); background:var(--ui-surface-muted); color:var(--ui-ink-secondary); font-size:8px; font-weight:650; text-transform:uppercase; letter-spacing:.8px; white-space:nowrap; }
#appShell #paneTerms .term-table td { padding:16px 15px; border:0; border-bottom:1px solid var(--ui-line); font-size:11px; vertical-align:middle; background:transparent; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#appShell #paneTerms .term-table :is(th,td):first-child { padding-left:22px; }
#appShell #paneTerms .term-table tbody tr { background:transparent; }
#appShell #paneTerms .term-table tbody tr:hover { background:var(--ui-surface-muted); }
#appShell #paneTerms .term-table tbody tr:last-child td { border-bottom:0; }
#appShell #paneTerms .term-table td small { display:block; margin-top:5px; font-size:9px; max-width:250px; }
#appShell #paneTerms .term-name { display:block; max-width:260px; min-height:24px; padding:0; border:0; background:none; box-shadow:none; font-size:11px; line-height:1.6; font-weight:600; color:var(--ui-ink); text-align:left; white-space:normal; overflow-wrap:anywhere; }
#appShell #paneTerms .term-name:hover { color:var(--ui-blue); text-decoration:underline; }
#appShell #paneTerms .term-right { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
#appShell #paneTerms .term-view { padding:7px; border:0; background:none; color:var(--ui-ink-secondary); box-shadow:none; }
#appShell #paneTerms .term-badge { display:inline-flex; padding:6px 8px; border-radius:5px; font-size:9px; font-weight:600; white-space:nowrap; color:var(--ui-amber); background:var(--ui-amber-soft); }
#appShell #paneTerms .term-badge.received { color:var(--ui-green); background:var(--ui-green-soft); }
#appShell #paneTerms .term-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:21px; }
#appShell #paneTerms .term-pager { display:flex; align-items:center; gap:8px; font-size:10px; color:var(--ui-ink-secondary); }
#appShell #paneTerms .term-pager > span { margin-right:auto; }
#appShell #paneTerms .term-pager button { padding:6px 9px; font-size:10px; }
#appShell #paneTerms .term-side-panel { padding:21px; }
#appShell #paneTerms .term-panel { border:1px solid var(--ui-line); border-radius:11px; background:var(--ui-surface); min-width:0; overflow:hidden; }
#appShell.ui-workspace #paneTerms #termsPanel { margin:0; padding:0; border:1px solid var(--ui-line); border-radius:11px; box-shadow:none; background:var(--ui-surface); }
#appShell.ui-workspace #paneTerms #termsPanel:hover { transform:none; box-shadow:none; }
#appShell #paneTerms .term-panel-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:14px 21px; border-top:1px solid var(--ui-line); font-size:10px; color:var(--ui-ink-secondary); }
#appShell.ui-workspace #paneTerms .term-table tbody tr > td { background:transparent; }
#appShell.ui-workspace #paneTerms .term-table tbody tr:hover > td { background:var(--ui-surface-muted); }
#appShell.ui-workspace #paneTerms .term-table tbody tr:has(input:checked) > td { background:var(--ui-blue-soft); }
#appShell.ui-workspace #paneTerms button.btn-outline { color:var(--ui-ink); background:var(--ui-surface); border:1px solid var(--ui-line); box-shadow:none; }
#appShell.ui-workspace #paneTerms button.term-primary { background:var(--ui-blue); border-color:var(--ui-blue); color:#fff; }
#appShell.ui-workspace #paneTerms button.term-danger { color:var(--ui-red); }
#appShell #paneTerms .term-side-panel > small { display:block; margin-top:7px; }
#appShell #paneTerms .term-side-link { margin-top:18px; }
#appShell #paneTerms .term-summary-amounts { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:20px 0 15px; }
#appShell #paneTerms .term-summary-amounts strong { display:block; font-size:21px; letter-spacing:-.6px; margin-top:5px; overflow-wrap:anywhere; }
#appShell #paneTerms .term-summary-amounts small { font-size:9px; }
#appShell #paneTerms .term-progress { display:block; width:100%; height:6px; margin:14px 0 10px; border:0; border-radius:5px; overflow:hidden; background:var(--ui-line); accent-color:var(--ui-green); }
#appShell #paneTerms .term-progress::-webkit-progress-bar { background:var(--ui-line); border-radius:5px; }
#appShell #paneTerms .term-progress::-webkit-progress-value { background:var(--ui-green); border-radius:5px; }
#appShell #paneTerms .term-progress::-moz-progress-bar { background:var(--ui-green); border-radius:5px; }
#appShell #paneTerms .term-fact { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid var(--ui-line); font-size:11px; color:var(--ui-ink-secondary); }
#appShell #paneTerms .term-fact:last-child { border:0; padding-bottom:0; }
#appShell #paneTerms .term-fact b { color:var(--ui-ink); font-weight:600; }
#appShell #paneTerms .term-tip { padding:0 3px; font-size:10px; color:var(--ui-ink-secondary); line-height:1.8; }
#appShell #paneTerms .term-tip strong { color:var(--ui-ink); font-weight:600; }
#appShell #paneTerms .term-insight-copy { padding:0 21px 18px; font-size:11px; line-height:1.7; color:var(--ui-ink-secondary); }
#appShell #paneTerms .term-empty { padding:28px 21px; font-size:12px; color:var(--ui-ink-secondary); text-align:center; white-space:normal; }
#appShell #paneTerms .term-empty p { margin:10px 0; line-height:1.7; }
#appShell #paneTerms .term-side-panel .term-empty { padding:20px 0 0; text-align:left; }
#appShell #paneTerms .term-status-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding-top:17px; border-top:1px solid var(--ui-line); }
#appShell #paneTerms .term-dialog { box-sizing:border-box; padding:0; color:var(--ui-ink); background:var(--ui-surface-solid); border:1px solid var(--ui-line); overflow:auto; box-shadow:0 20px 70px rgb(15 23 42 / 20%); }
#appShell #paneTerms .term-dialog::backdrop { background:rgb(15 23 42 / 40%); }
#appShell #paneTerms .term-drawer { position:fixed; inset:0 0 0 auto; margin:0; width:min(485px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0; border-width:0 0 0 1px; }
#appShell #paneTerms .term-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:17px; padding:26px; border-bottom:1px solid var(--ui-line); }
#appShell #paneTerms .term-dialog-head > div { min-width:0; }
#appShell #paneTerms .term-dialog-head h2 { font-size:21px; line-height:1.5; overflow-wrap:anywhere; }
#appShell #paneTerms .term-dialog-head :is(small,p) { display:block; margin-top:8px; font-size:11px; color:var(--ui-ink-secondary); line-height:1.65; overflow-wrap:anywhere; }
#appShell #paneTerms .term-drawer-body { padding:26px; }
#appShell #paneTerms .term-payment-hero { padding:21px; background:var(--ui-surface-muted); border:1px solid var(--ui-line); border-radius:10px; }
#appShell #paneTerms .term-payment-hero > strong { display:block; font-size:28px; letter-spacing:-1px; font-weight:650; margin:10px 0; overflow-wrap:anywhere; }
#appShell #paneTerms .term-hero-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
#appShell #paneTerms .term-facts { display:grid; grid-template-columns:1fr 1fr; gap:22px 17px; margin:25px 0; }
#appShell #paneTerms .term-facts dt { font-size:9px; text-transform:uppercase; letter-spacing:.5px; color:var(--ui-ink-secondary); margin-bottom:7px; }
#appShell #paneTerms .term-facts dd { margin:0; font-size:11px; line-height:1.7; overflow-wrap:anywhere; }
#appShell #paneTerms .term-notes { padding:15px; border:1px solid var(--ui-line); border-radius:8px; background:var(--ui-surface-muted); font-size:11px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
#appShell #paneTerms .term-context { list-style:none; padding:0; margin:22px 0; }
#appShell #paneTerms .term-context li { padding:0 0 20px 20px; position:relative; border-left:1px solid var(--ui-line); font-size:11px; line-height:1.7; }
#appShell #paneTerms .term-context li::before { content:""; position:absolute; left:-4px; top:4px; width:7px; height:7px; border-radius:50%; background:var(--ui-blue); box-shadow:0 0 0 4px var(--ui-surface-solid); }
#appShell #paneTerms .term-context li:last-child { border:0; padding-bottom:0; }
#appShell #paneTerms .term-context small { display:block; margin-top:5px; }
#appShell #paneTerms .term-drawer-actions { display:grid; gap:10px; margin:24px 0 16px; }
#appShell #paneTerms .term-editor { width:min(650px,calc(100vw - 32px)); max-height:calc(100dvh - 36px); border-radius:14px; }
#appShell #paneTerms .term-form { display:grid; gap:17px; padding:24px; }
#appShell #paneTerms .term-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
#appShell #paneTerms .term-form-grid label { display:grid; gap:7px; min-width:0; font-size:11px; color:var(--ui-ink-secondary); }
#appShell #paneTerms .term-form-grid :is(input,select) { min-width:0; width:100%; padding:10px 11px; border:1px solid var(--ui-line); border-radius:7px; background:var(--ui-surface-solid); color:var(--ui-ink); box-shadow:none; font-size:12px; }
#appShell #paneTerms .term-full { grid-column:1/-1; }
#appShell #paneTerms .term-form-actions { display:flex; justify-content:flex-end; align-items:center; gap:10px; flex-wrap:wrap; }
#appShell #paneTerms .term-message { font-size:12px; color:var(--ui-ink-secondary); line-height:1.65; overflow-wrap:anywhere; }
#appShell #paneTerms .term-message[data-state="error"] { color:var(--ui-red); }
#appShell #paneTerms .term-message[data-state="success"] { color:var(--ui-green); }
#appShell #paneTerms .term-message:empty { display:none; }
#appShell #paneTerms .term-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@container(max-width:1100px) {
  #appShell #paneTerms .term-layout { grid-template-columns:minmax(0,1fr); }
  #appShell #paneTerms .term-side { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #appShell #paneTerms .term-side > :is(section:nth-child(3),.term-tip) { grid-column:1/-1; }
}
@container(max-width:650px) {
  #appShell #paneTerms .term-page-actions { margin-left:0; }
  #appShell #paneTerms .term-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #appShell #paneTerms .term-metric { padding:17px; }
  #appShell #paneTerms .term-metric:nth-child(2) { border-right:0; }
  #appShell #paneTerms .term-metric:nth-child(-n+2) { border-bottom:1px solid var(--ui-line); }
  #appShell #paneTerms .term-notice { flex-wrap:wrap; }
  #appShell #paneTerms .term-side { grid-template-columns:minmax(0,1fr); }
  #appShell #paneTerms #termsSearch { width:100%; }
}
@media(max-width:440px) {
  #appShell #paneTerms .term-form-grid { grid-template-columns:minmax(0,1fr); }
  #appShell #paneTerms :is(.term-form,.term-dialog-head,.term-drawer-body) { padding:20px; }
}
@media(pointer:coarse) {
  #appShell #paneTerms :is(button,.term-tabs button) { min-height:44px; }
}

#appShell #paneTerms .term-metric { border:0; border-right:1px solid var(--ui-line); border-radius:0; background:none; box-shadow:none; text-align:left; cursor:pointer; }
#appShell #paneTerms .term-metric[aria-pressed="true"] { background:var(--ui-blue-soft); box-shadow:inset 0 -3px var(--ui-blue); }
#appShell #paneTerms .term-metric:focus-visible { outline-offset:-4px; }
#appShell #paneTerms .term-metric span { display:flex; justify-content:space-between; width:100%; gap:12px; }
#appShell #paneTerms .term-metric em { font-style:normal; color:var(--ui-blue); }
#appShell #paneTerms .term-filters { padding:0 21px 19px; }
#appShell #paneTerms .term-bulk { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:13px 21px; border-block:1px solid var(--ui-line); background:var(--ui-blue-soft); font-size:11px; }
#appShell #paneTerms .term-bulk > span { margin-right:auto; }
#appShell #paneTerms .term-bulk button { font-size:10px; padding:7px 9px; }
#appShell #paneTerms input[type="checkbox"] { width:15px; height:15px; accent-color:var(--ui-blue); cursor:pointer; }
#appShell #paneTerms .term-badge { background:color-mix(in srgb,#9273c6 13%,transparent); color:#8762bb; }
#appShell[data-ui-theme="dark"] #paneTerms .term-badge { color:#c3a4ed; }
#appShell #paneTerms .term-badge.event-canceled { background:var(--ui-amber-soft); color:var(--ui-amber); }
#appShell #paneTerms .term-badge.penalties { background:color-mix(in srgb,var(--ui-red) 10%,transparent); color:var(--ui-red); }
#appShell #paneTerms .term-status { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; font-size:10px; color:var(--ui-ink-secondary); }
#appShell #paneTerms .term-status::before { content:""; width:5px; height:5px; background:currentColor; border-radius:50%; }
#appShell #paneTerms .term-status.review { color:var(--ui-amber); }
#appShell #paneTerms .term-status.exact { color:var(--ui-green); }
#appShell #paneTerms :is(.term-status.no-invoice,.term-negative) { color:var(--ui-red); }
#appShell #paneTerms .term-coverage-head { display:flex; gap:20px; align-items:center; margin:23px 0 14px; }
#appShell #paneTerms .term-coverage-head > strong { display:grid; place-items:center; border:6px solid var(--ui-blue-soft); border-radius:50%; width:78px; height:78px; font-size:19px; color:var(--ui-blue); flex:none; }
#appShell #paneTerms .term-coverage-head b { display:block; font-size:12px; line-height:1.7; }
#appShell #paneTerms .term-progress { accent-color:var(--ui-blue); }
#appShell #paneTerms .term-progress::-webkit-progress-value { background:var(--ui-blue); }
#appShell #paneTerms .term-progress::-moz-progress-bar { background:var(--ui-blue); }
#appShell #paneTerms .term-channel { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:17px 0; border-bottom:1px solid var(--ui-line); font-size:11px; }
#appShell #paneTerms .term-channel b { display:inline-grid; place-items:center; width:25px; height:25px; margin-right:8px; background:var(--ui-surface-muted); border:1px solid var(--ui-line); border-radius:6px; }
#appShell #paneTerms .term-channel small { font-size:9px; }
#appShell #paneTerms .term-insight-total td { font-weight:650; background:var(--ui-surface-muted); }
#appShell #paneTerms .term-source-list { display:grid; gap:8px; max-height:360px; overflow:auto; }
#appShell #paneTerms .term-source-row { display:flex; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--ui-line); border-radius:7px; color:var(--ui-ink); font-size:11px; }
#appShell #paneTerms .term-source-row small { display:block; margin-top:5px; }
#appShell #paneTerms .term-source-row input { flex:none; }

#appShell #paneTerms .term-table { min-width:750px; }
#appShell #paneTerms .term-market-cell { display:flex; align-items:center; gap:12px; }
#appShell #paneTerms .term-market-mark { display:grid; place-items:center; width:33px; height:33px; flex:none; border:1px solid var(--ui-line); border-radius:9px; font-size:10px; font-weight:700; background:var(--ui-blue-soft); color:var(--ui-blue); }
#appShell #paneTerms .term-market-mark.violet { background:color-mix(in srgb,#9273c6 13%,transparent); color:#8762bb; }
#appShell[data-ui-theme="dark"] #paneTerms .term-market-mark.violet { color:#c3a4ed; }
#appShell #paneTerms .term-market-mark.green { color:var(--ui-green); background:var(--ui-green-soft); }
#appShell #paneTerms .term-market-mark.amber { color:var(--ui-amber); background:var(--ui-amber-soft); }
#appShell #paneTerms .term-pos-chip { display:inline-flex; border:1px solid var(--ui-line); border-radius:5px; padding:5px 7px; font-size:9px; color:var(--ui-ink-secondary); background:var(--ui-surface-muted); white-space:nowrap; }
#appShell #paneTerms .term-fee { font-weight:600; font-size:13px; }
#appShell #paneTerms .term-metric-label { font-size:11px; color:var(--ui-ink-secondary); }
#appShell #paneTerms .term-coverage-ring { display:grid; place-items:center; width:78px; height:78px; border:6px solid var(--ui-blue-soft); border-radius:50%; flex:none; font-size:19px; color:var(--ui-blue); box-sizing:border-box; }
#appShell #paneTerms .term-coverage-copy strong { display:block; font-size:12px; line-height:1.7; }
#appShell #paneTerms .term-coverage-copy small { display:block; margin-top:7px; }
#appShell #paneTerms .term-side-panel > .term-link { margin-top:18px; }
#appShell #paneTerms .term-drawer-actions button { min-height:38px; padding:10px 13px; border:1px solid var(--ui-line); border-radius:8px; background:var(--ui-surface-solid); color:var(--ui-ink); }
#appShell #paneTerms .term-drawer-actions button.term-primary { color:#fff; background:var(--ui-blue); border-color:var(--ui-blue); }
#appShell #paneTerms .term-drawer-actions button.term-danger { color:var(--ui-red); }
#appShell #paneTerms .term-notes { margin-top:12px; }
#appShell #paneTerms .term-fee.unknown { color:var(--ui-amber); font-size:10px; font-weight:400; }
#appShell #paneTerms .term-status-mark { display:inline-flex; align-items:center; gap:5px; font-size:9px; color:var(--ui-green); }
#appShell #paneTerms .term-status-mark::before { content:""; width:5px; height:5px; background:currentColor; border-radius:50%; }
#appShell #paneTerms .term-status-mark.attention { color:var(--ui-amber); }
#appShell #paneTerms .term-mini-stat { display:flex; align-items:baseline; gap:7px; margin:20px 0 9px; }
#appShell #paneTerms .term-mini-stat strong { font-size:28px; font-weight:650; letter-spacing:-1px; }
#appShell #paneTerms .term-compare-item { padding:14px 0; border-bottom:1px solid var(--ui-line); }
#appShell #paneTerms .term-compare-item > div { display:flex; justify-content:space-between; gap:10px; font-size:11px; }
#appShell #paneTerms .term-contact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; padding:0 21px 21px; }
#appShell #paneTerms .term-contact-card { border:1px solid var(--ui-line); padding:19px; border-radius:9px; min-width:0; }
#appShell #paneTerms .term-contact-card .term-market-cell { margin-bottom:18px; }
#appShell #paneTerms .term-contact-card > strong { font-size:12px; }
#appShell #paneTerms .term-contact-card > small { display:block; margin-top:7px; overflow-wrap:anywhere; }
#appShell #paneTerms .term-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
#appShell #paneTerms .term-contact-card .term-row { margin-top:18px; }
#appShell #paneTerms .term-info { font-size:10px; line-height:1.8; color:var(--ui-ink-secondary); }
#appShell #paneTerms .term-info::before { content:"•"; margin-right:9px; color:var(--ui-blue); }
#appShell #paneTerms .term-rep-card { display:flex; gap:12px; align-items:center; padding:18px 0; border-block:1px solid var(--ui-line); margin:22px 0; }
#appShell #paneTerms .term-rep-card b { font-size:12px; }
#appShell #paneTerms .term-rep-card small { display:block; margin-top:5px; overflow-wrap:anywhere; }
#appShell #paneTerms .term-calculator { margin-top:24px; padding:19px; border:1px solid var(--ui-line); border-radius:10px; }
#appShell #paneTerms .term-calculator label { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:11px; margin:17px 0 12px; }
#appShell #paneTerms .term-calculator input { width:120px; min-width:0; padding:8px; border:1px solid var(--ui-line); border-radius:6px; background:var(--ui-surface-solid); color:var(--ui-ink); }
#appShell #paneTerms .term-calc-fact { display:flex; justify-content:space-between; gap:12px; font-size:11px; padding:10px 0; }
#appShell #paneTerms .term-calc-fact.total { border-top:1px solid var(--ui-line); color:var(--ui-green); font-weight:600; }
#appShell #paneTerms .term-form-grid textarea { width:100%; box-sizing:border-box; padding:11px; background:var(--ui-surface-solid); color:var(--ui-ink); border:1px solid var(--ui-line); border-radius:7px; font:inherit; font-size:12px; resize:vertical; }
#appShell #paneTerms #termsImporter { padding:24px; }
#appShell #paneTerms #termsImporter .term-dialog-head { padding:0 0 20px; }
#appShell #paneTerms .term-upload { display:grid; gap:12px; place-items:center; text-align:center; width:100%; margin:19px 0; padding:29px; border:1px dashed var(--ui-line); border-radius:10px; background:var(--ui-surface-muted); color:var(--ui-ink-secondary); white-space:normal; }
#appShell #paneTerms .term-upload.drag-hover { border-color:var(--ui-blue); background:var(--ui-blue-soft); }
#appShell #paneTerms .term-import-preview { overflow:auto; max-height:280px; border:1px solid var(--ui-line); border-radius:8px; margin:17px 0; }
#appShell #paneTerms .term-import-preview .term-table { min-width:450px; }
#appShell #paneTerms .term-import-preview td { font-size:10px; padding:11px; }
#appShell #paneTerms .term-import-mapping { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:20px 0; }
#appShell #paneTerms .term-import-mapping label { display:grid; gap:7px; font-size:11px; }
#appShell #paneTerms .term-import-mapping select { min-width:0; width:100%; background:var(--ui-surface-solid); color:var(--ui-ink); border:1px solid var(--ui-line); padding:8px; border-radius:6px; }
#appShell #paneTerms .term-feedback { border:1px solid var(--ui-line); border-radius:9px; background:var(--ui-surface); padding:14px 18px; font-size:12px; line-height:1.6; }
#appShell #paneTerms .term-feedback button { margin-left:14px; }
#appShell #paneTerms .term-side-link { margin-top:18px; }
#appShell #paneTerms .term-form-actions { margin-top:18px; }
@container(max-width:650px) { #appShell #paneTerms .term-contact-grid { grid-template-columns:minmax(0,1fr); } #appShell #paneTerms .term-search { width:100%; } }
@media(max-width:440px) { #appShell #paneTerms .term-import-mapping { grid-template-columns:minmax(0,1fr); } }
