:root {
  --ink: #14241f;
  --muted: #6b7873;
  --green: #163f35;
  --green-2: #1f5a4a;
  --mint: #dff0e8;
  --cream: #f5f2e9;
  --paper: #fffefa;
  --line: #dfe5df;
  --gold: #b88a3b;
  --danger: #a54032;
  --shadow: 0 24px 60px rgba(27, 58, 48, .12);
}

.crm-opportunity-requirements{margin-top:12px;border:1px solid rgba(18,91,71,.14);border-radius:14px;background:rgba(239,248,244,.72);overflow:hidden}
.crm-opportunity-requirements summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}
.crm-opportunity-requirements summary::-webkit-details-marker{display:none}
.crm-opportunity-requirements summary span{display:grid;gap:2px}.crm-opportunity-requirements summary small{color:var(--muted);font-weight:400}.crm-opportunity-requirements summary b{font-size:12px;color:var(--green)}
.customer-opportunity-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 14px 14px}
.customer-opportunity-form label{display:grid;gap:5px;font-size:12px;color:var(--muted)}.customer-opportunity-form .span-two{grid-column:1/-1}
.crm-cross-sell-list{display:grid;gap:8px;margin-top:12px}.crm-cross-sell-list article{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:12px 14px;border:1px dashed rgba(169,116,28,.35);border-radius:14px;background:rgba(255,247,228,.66)}
.crm-cross-sell-list article>span{align-self:start;padding:3px 7px;border-radius:999px;background:#fff0c6;color:#80590f;font-size:11px;font-weight:700}.crm-cross-sell-list article div{display:grid;gap:3px}.crm-cross-sell-list small{color:var(--muted);line-height:1.5}
@media (max-width:760px){.customer-opportunity-form{grid-template-columns:1fr}.customer-opportunity-form .span-two{grid-column:auto}}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--cream); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.ambient { position: fixed; z-index: 0; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.ambient-one { width: 540px; height: 540px; right: -180px; top: -220px; background: rgba(103, 161, 138, .17); }
.ambient-two { width: 420px; height: 420px; left: -220px; bottom: -180px; background: rgba(196, 160, 91, .12); }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; gap: 5vw; align-items: center; padding: 7vw 9vw; position: relative; z-index: 1; }
.auth-brand { max-width: 680px; display: grid; gap: 28px; }
.brand-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--green); color: white; font: 700 30px Georgia, serif; box-shadow: 0 16px 30px rgba(22, 63, 53, .22); }
.brand-mark.small { width: 44px; height: 44px; border-radius: 13px; font-size: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); letter-spacing: .16em; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.eyebrow.dark { color: var(--green-2); }
.auth-brand h1 { margin: 0; font: 600 clamp(42px, 5.1vw, 74px)/1.08 Georgia, "Microsoft YaHei", serif; letter-spacing: -.035em; }
.auth-copy { max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.brand-points { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-points span { padding: 10px 14px; border: 1px solid rgba(22,63,53,.14); border-radius: 999px; background: rgba(255,255,255,.55); color: var(--green); font-size: 13px; }
.auth-card { width: min(440px, 100%); justify-self: end; padding: 38px; border: 1px solid rgba(255,255,255,.85); border-radius: 28px; background: rgba(255,254,250,.86); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0; font: 600 32px Georgia, "Microsoft YaHei", serif; }
.muted { color: var(--muted); line-height: 1.7; }
form { display: grid; gap: 16px; margin-top: 24px; }
label { display: grid; gap: 7px; color: #52615c; font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; background: white; color: var(--ink); outline: none; transition: .18s ease; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: #5f8f7d; box-shadow: 0 0 0 4px rgba(95,143,125,.13); }
.primary-button { border: 0; border-radius: 13px; padding: 13px 18px; background: var(--green); color: white; font-weight: 700; box-shadow: 0 10px 22px rgba(22,63,53,.18); }
.primary-button:hover { background: var(--green-2); transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .58; transform: none; }
.secondary-button { border: 1px solid var(--line); border-radius: 12px; padding: 11px 15px; background: white; color: var(--green); font-weight: 700; }
.secondary-button:hover { border-color: #91aa9f; background: #f7faf7; }
.secondary-button.strong { border-color: rgba(22,63,53,.26); background: var(--mint); }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--danger); font-size: 13px; }
.form-message.success { color: var(--green-2); }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-links a { color: var(--green-2); font-size: 12px; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

.app-layout { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; position: relative; z-index: 1; }
.sidebar { z-index: 2; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; background: var(--green); color: white; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand span { margin-top: 2px; color: rgba(255,255,255,.62); font-size: 12px; }
nav { display: grid; gap: 7px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px; padding: 12px 14px; background: transparent; color: rgba(255,255,255,.7); text-align: left; }
.nav-item i { width: 22px; font-style: normal; text-align: center; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.11); color: white; }
.sidebar-foot { margin-top: auto; padding: 18px 8px 2px; border-top: 1px solid rgba(255,255,255,.12); }
.user-badge { display: grid; gap: 3px; font-size: 13px; }
.user-badge span { color: rgba(255,255,255,.58); font-size:13px; }
.text-button { border: 0; padding: 10px 0 0; background: transparent; color: rgba(255,255,255,.64); font-size: 12px; }
.workspace { min-width: 0; padding: 38px clamp(24px, 4vw, 64px) 70px; position: relative; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.topbar h2 { margin: 0; font: 600 clamp(28px, 3vw, 42px) Georgia, "Microsoft YaHei", serif; }
.service-state { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.62); color: var(--muted); font-size: 12px; }
.service-state span { width: 8px; height: 8px; border-radius: 50%; background: #3f966d; box-shadow: 0 0 0 4px rgba(63,150,109,.14); }
.page { display: none; }
.page.active { display: block; animation: appear .25s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric-card { min-height: 132px; padding: 20px; border: 1px solid rgba(22,63,53,.09); border-radius: 20px; background: rgba(255,254,250,.86); box-shadow: 0 8px 30px rgba(30,60,50,.055); }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin: 18px 0 3px; font: 600 34px Georgia, serif; }
.metric-card small { color: #81908a; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); gap: 18px; }
.implementation-grid { margin-bottom: 18px; }
.portfolio-panel { background: linear-gradient(145deg, rgba(255,254,250,.96), rgba(235,246,239,.88)); }
.portfolio-progress { padding: 3px 0 18px; }
.progress-copy { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-bottom: 12px; }
.progress-copy strong { font-size: 17px; }
.progress-copy span, .progress-legend { color: var(--muted); font-size: 12px; }
.progress-track, .planned-track { height: 11px; overflow: hidden; border-radius: 999px; background: #e2e9e4; }
.progress-track span, .planned-track span { display: block; height: 100%; border-radius: inherit; }
.progress-track span { background: linear-gradient(90deg, var(--green), var(--green-2)); }
.planned-track { height: 4px; margin-top: 6px; }
.planned-track span { background: #c8a666; }
.progress-legend { display: flex; gap: 20px; margin-top: 10px; }
.progress-legend span { display: inline-flex; align-items: center; gap: 7px; }
.progress-legend i { width: 8px; height: 8px; border-radius: 50%; }
.verified-dot { background: var(--green-2); }
.queued-dot { background: #c8a666; }
.connection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.connection-card { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.7); }
.connection-card > div { display: flex; justify-content: space-between; gap: 10px; }
.connection-card strong { font-size: 13px; }
.connection-card span { color: #926f2c; font-size:13px; font-weight: 700; }
.connection-card.ready span { color: var(--green-2); }
.connection-card small { display: block; margin-top: 10px; color: var(--muted); font-size:13px; line-height: 1.5; }
.next-actions { counter-reset: next-step; display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.next-actions li { counter-increment: next-step; display: grid; grid-template-columns: 30px 1fr; gap: 11px; }
.next-actions li > span::before { content: counter(next-step, decimal-leading-zero); display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--mint); color: var(--green); font-size:13px; font-weight: 800; }
.next-actions strong, .next-actions small { display: block; }
.next-actions strong { font-size: 13px; line-height: 1.4; }
.next-actions small { margin-top: 4px; color: var(--muted); font-size:13px; line-height: 1.5; }
.panel, .table-card { padding: 24px; border: 1px solid rgba(22,63,53,.09); border-radius: 22px; background: rgba(255,254,250,.9); box-shadow: 0 8px 30px rgba(30,60,50,.055); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.panel h3, .table-card h3 { margin: 0; font-size: 20px; }
.status-pill { padding: 7px 11px; border-radius: 999px; font-size:13px; font-weight: 700; }
.status-pill.warm { color: #845e1e; background: #f4e9cf; }
.status-pill.ready { color: #226847; background: #dff0e8; }
.status-pill.danger { color: #9b382e; background: #fae7e3; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.module-card { min-height: 116px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf8; }
.module-card strong, .module-card span { display: block; }
.module-card span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.module-card small { display: inline-block; margin-top: 18px; color: var(--green-2); }
.module-card.draft_ready { border-color: rgba(39,113,84,.22); background: linear-gradient(145deg, #fbfcf8, #eef7f1); }
.check-list { list-style: none; display: grid; gap: 15px; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: center; color: #4f5d58; font-size: 13px; line-height: 1.45; }
.check-list span { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--green); font-size:13px; font-weight: 800; }
.import-hero { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; margin-bottom: 18px; background: linear-gradient(145deg, rgba(255,254,250,.96), rgba(235,246,239,.86)); }
.import-hero .muted { max-width: 760px; margin-bottom: 0; }
.import-layout { margin-bottom: 18px; }
.file-drop { min-height: 160px; display: grid; place-content: center; justify-items: center; gap: 8px; border: 1px dashed #8eaa9e; border-radius: 18px; background: #f7faf7; text-align: center; cursor: pointer; }
.file-drop:hover { border-color: var(--green-2); background: #f0f7f2; }
.file-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.file-drop strong { color: var(--green); font-size: 15px; }
.file-drop span { color: var(--muted); font-size:13px; }
.import-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.compact-checks { gap: 12px; }
.import-preview { margin-bottom: 18px; }
.import-counts { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); gap: 10px; }
.import-counts > div { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcf8; }
.import-counts span, .import-counts strong { display: block; }
.import-counts span { color: var(--muted); font-size:13px; }
.import-counts strong { margin-top: 7px; font: 600 24px Georgia, serif; }
.import-confirm { grid-template-columns: minmax(220px, 420px) auto; align-items: end; justify-content: end; margin-top: 18px; }
.customer-hero { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; margin-bottom: 18px; background: linear-gradient(145deg, rgba(255,254,250,.96), rgba(235,246,239,.86)); }
.customer-hero .muted { max-width: 760px; margin-bottom: 0; }
.crm-operations-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.crm-overview-card, .crm-rule-card { min-width:0; padding:14px 15px; border:1px solid var(--line); border-radius:15px; background:#fbfcf8; }
.crm-overview-card span, .crm-overview-card strong, .crm-overview-card small { display:block; }
.crm-overview-card span { color:var(--muted); font-size:12px; }
.crm-overview-card strong { margin-top:5px; color:var(--green); font:700 26px Georgia,serif; }
.crm-overview-card small { margin-top:4px; color:var(--muted); font-size:11px; }
.crm-overview-card.danger strong { color:#a24b3d; }
.crm-rule-card { grid-column:1/-1; }
.crm-rule-card summary { color:var(--green); font-weight:700; cursor:pointer; }
.crm-rule-card form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:12px; align-items:end; }
.crm-rule-card label { margin:0; font-size:12px; }
.crm-rule-card input { margin-top:5px; padding:8px; }
.crm-rule-card .crm-rule-toggle { display:flex; align-items:center; gap:7px; }
.crm-rule-card .crm-rule-toggle input { width:auto; margin:0; }
.crm-rule-card form > div { display:flex; gap:7px; }
.crm-pipeline-panel { margin-bottom:18px; padding:0; overflow:hidden; }
.crm-pipeline-panel > summary { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:15px 17px; cursor:pointer; list-style:none; }
.crm-pipeline-panel > summary span strong,.crm-pipeline-panel > summary span small { display:block; }
.crm-pipeline-panel > summary span small { margin-top:3px; color:var(--muted); font-size:11px; }
.crm-pipeline-panel > summary em { color:var(--green); font-size:12px; font-style:normal; font-weight:700; }
.crm-opportunity-automation-status { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 15px 12px; padding:10px 12px; border-radius:11px; background:#eaf4ee; color:var(--green); font-size:11px; }
.crm-opportunity-automation-status>div { display:grid; gap:2px; }
.crm-opportunity-automation-status span { color:var(--green-2); }
.crm-opportunity-automation-status button { flex:0 0 auto; }
.crm-opportunity-automation-status.warning { background:#fff1e7; color:#9b4b2d; }
.crm-pipeline-board { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(220px,1fr); gap:9px; padding:0 15px 15px; overflow-x:auto; }
.crm-pipeline-column { min-width:0; padding:10px; border:1px solid var(--line); border-radius:13px; background:#f7f9f5; }
.crm-pipeline-column header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.crm-pipeline-column header span { min-width:22px; padding:3px 6px; border-radius:999px; background:#e5eee8; color:var(--green); text-align:center; font-size:10px; }
.crm-pipeline-column > div { display:grid; gap:7px; }
.crm-pipeline-card { overflow:hidden; border:1px solid rgba(22,63,53,.13); border-radius:11px; background:white; }
.crm-pipeline-card.confirmed { border-color:#a9cfbc; }
.crm-pipeline-open { display:block; width:100%; padding:10px; border:0; border-radius:0; background:white; color:var(--ink); text-align:left; }
.crm-pipeline-open strong,.crm-pipeline-open span,.crm-pipeline-open small,.crm-pipeline-open em,.crm-pipeline-open i { display:block; }
.crm-pipeline-open b { display:inline-block; margin-bottom:6px; padding:3px 7px; border-radius:999px; background:#e5f3ea; color:var(--green); font-size:9px; font-weight:700; }
.crm-pipeline-open span,.crm-pipeline-open small,.crm-pipeline-open i { margin-top:3px; color:var(--muted); font-size:10px; font-style:normal; }
.crm-pipeline-open em { margin-top:7px; color:var(--green-2); font-size:11px; font-style:normal; }
.crm-pipeline-review { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:7px; border-top:1px solid var(--line); background:#f8faf7; }
.crm-pipeline-review button { padding:6px 8px; border:1px solid #b7d1c3; border-radius:8px; background:#fff; color:var(--green); font-size:10px; font-weight:750; }
.crm-pipeline-review button:last-child { border-color:#e1c9be; color:#865e50; }
.crm-pipeline-confirmed { display:block; padding:7px 10px; border-top:1px solid #c7dfd1; background:#f0f8f3; color:var(--green-2); font-size:10px; font-weight:750; }
.crm-pipeline-message { margin:0 15px 12px; }
.crm-pipeline-column p { margin:14px 0; color:var(--muted); font-size:11px; text-align:center; }
.customer-layout { display: grid; grid-template-columns: minmax(290px, .68fr) minmax(0, 1.7fr); gap: 18px; align-items: start; }
.customer-directory { position: sticky; top: 22px; max-height: calc(100vh - 44px); overflow: auto; }
.customer-search-form { grid-template-columns: 1fr; gap: 10px; margin-top: 0; }
.customer-search-form label { display: grid; gap: 5px; color: var(--muted); font-size:12px; font-weight: 700; }
.customer-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.customer-filter-wide { grid-column: 1 / -1; }
.customer-advanced-filters { border: 1px solid var(--line); border-radius: 13px; background: #fbfcf8; }
.customer-advanced-filters summary { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; color: var(--ink); font-size:13px; font-weight: 700; cursor: pointer; }
.customer-advanced-filters summary span { color: var(--green-2); font-size:12px; font-weight: 600; }
.customer-advanced-filters[open] summary { border-bottom: 1px solid var(--line); }
.customer-advanced-filters .customer-filter-grid { padding: 11px; }
.customer-filter-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.customer-filter-summary { color: var(--green-2); font-size:12px; line-height: 1.5; }
.lead-boundary-confirm{display:flex!important;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6}
.lead-boundary-confirm input[type=checkbox]{width:16px;min-width:16px;height:16px;margin-top:3px;accent-color:var(--green)}
.customer-qualification{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.customer-qualification summary{font-weight:750;cursor:pointer}
.prospect-convert-card .customer-qualification form{display:block;margin-top:12px}
.customer-qualification fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;padding:0;min-width:0}
.customer-qualification fieldset .span-two{grid-column:1/-1}
.prospect-convert-card .lead-boundary-confirm{grid-column:1/-1}
@media(max-width:650px){.customer-qualification fieldset{grid-template-columns:minmax(0,1fr)}}
.customer-list { display: grid; gap: 8px; margin-top: 18px; }
.customer-list-item { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcf8; color: var(--ink); text-align: left; }
.customer-list-item:hover, .customer-list-item.active { border-color: #7da08f; background: #eef7f1; }
.customer-initial { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: white; font: 700 15px Georgia, serif; }
.customer-list-copy { min-width: 0; }
.customer-list-copy strong, .customer-list-copy small, .customer-list-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-list-copy strong { font-size: 12px; }
.customer-list-copy small { margin-top: 3px; color: var(--muted); font-size:13px; }
.customer-list-copy em { margin-top: 6px; color: var(--green-2); font-size:12px; font-style: normal; }
.customer-list-badges { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.customer-list-badges i { padding:3px 6px; border-radius:999px; background:#edf1ed; color:var(--muted); font-size:10px; font-style:normal; }
.customer-list-badges .pool-private, .customer-list-badges .health-healthy { background:#e2f3e8; color:#256340; }
.customer-list-badges .pool-public, .customer-list-badges .pool-unassigned, .customer-list-badges .health-due { background:#fff1d6; color:#8a5b13; }
.customer-list-badges .health-overdue { background:#fae5e0; color:#9b3f31; }
.customer-list-badges .pool-do_not_contact { background:#ecebea; color:#5c5a57; }
.customer-detail { min-height: 520px; }
.empty-customer { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 7px; color: var(--muted); text-align: center; }
.empty-customer strong { color: var(--ink); }
.empty-customer span { font-size:13px; }
.customer-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.customer-detail-head h3 { font-size: 26px; }
.customer-detail-head > div > span { display: block; margin-top: 6px; color: var(--muted); font-size:13px; }
.customer-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.customer-detail-actions a { text-decoration: none; }
.crm-customer-control { margin-top:18px; padding:16px; border:1px solid rgba(22,63,53,.18); border-radius:17px; background:linear-gradient(145deg,#f8fbf7,#edf6f0); }
.crm-contact-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.crm-contact-head h3, .crm-contact-head p { margin-bottom:0; }
.crm-pool-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.crm-pool-actions form { display:flex; flex-wrap:wrap; gap:7px; margin:0; }
.crm-pool-actions select, .crm-pool-actions input, .crm-pool-actions button { width:auto; padding:8px 9px; font-size:12px; }
.crm-pool-actions input { max-width:170px; }
.crm-contact-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:13px; }
.crm-contact-facts div { padding:10px; border-radius:12px; background:rgba(255,255,255,.76); }
.crm-contact-facts span, .crm-contact-facts strong { display:block; }
.crm-contact-facts span { color:var(--muted); font-size:11px; }
.crm-contact-facts strong { margin-top:4px; font-size:12px; overflow-wrap:anywhere; }
.crm-score-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-top:9px; }
.crm-score { padding:9px 10px; border-radius:11px; background:#fff; }
.crm-score span, .crm-score strong, .crm-score i { display:block; }
.crm-score span { color:var(--muted); font-size:10px; }
.crm-score strong { margin-top:2px; color:var(--green); font-size:18px; }
.crm-score i { color:#6e877a; font-size:9px; font-style:normal; }
.crm-score.risk strong { color:#a24b3d; }
.crm-opportunity-section .panel-head { align-items:flex-start; }
.crm-opportunity-section .panel-head .muted { max-width:650px; margin:4px 0 0; font-size:12px; }
.crm-opportunity-list { display:grid; gap:10px; }
.crm-opportunity { padding:15px; border:1px solid rgba(184,138,59,.28); border-radius:15px; background:#fffdf7; }
.crm-opportunity.confirmed { border-color:rgba(37,99,64,.3); background:#f4faf6; }
.crm-opportunity.dismissed { opacity:.66; }
.crm-opportunity-head { display:flex; justify-content:space-between; gap:14px; }
.crm-opportunity-head span, .crm-opportunity-head strong { display:block; }
.crm-opportunity-head span { color:var(--muted); font-size:11px; }
.crm-opportunity-head strong { margin-top:4px; }
.crm-opportunity-head em { color:#8a5b13; font-size:12px; font-style:normal; font-weight:700; }
.crm-opportunity > p { margin:11px 0; color:#45564d; font-size:13px; line-height:1.6; }
.crm-opportunity dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:0; }
.crm-opportunity dl div { padding:8px 9px; border-radius:10px; background:rgba(255,255,255,.82); }
.crm-opportunity dt { color:var(--muted); font-size:10px; }
.crm-opportunity dd { margin:3px 0 0; font-size:12px; overflow-wrap:anywhere; }
.crm-opportunity-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:11px; }
.crm-gate-warning, .crm-review-state { display:block; margin-top:9px; color:#9a5e17; font-size:11px; }
.crm-empty-opportunity { padding:22px; border:1px dashed var(--line); border-radius:14px; text-align:center; }
.crm-empty-opportunity strong, .crm-empty-opportunity span { display:block; }
.crm-empty-opportunity span { margin-top:6px; color:var(--muted); font-size:12px; }
.crm-activity-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr); gap:14px; align-items:start; }
.crm-activity-list { display:grid; gap:8px; max-height:350px; overflow:auto; }
.crm-activity { display:grid; grid-template-columns:28px minmax(0,1fr); gap:9px; padding:9px; border-bottom:1px solid var(--line); }
.crm-activity > span { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; background:#edf1ed; color:var(--green); font-size:11px; font-weight:700; }
.crm-activity > span.inbound { background:#e2f3e8; }.crm-activity > span.outbound { background:#fff1d6; color:#8a5b13; }
.crm-activity strong, .crm-activity small { display:block; }
.crm-activity small { margin-top:3px; color:var(--muted); font-size:10px; }
.crm-activity p { margin:4px 0 0; color:#526159; font-size:11px; line-height:1.5; }
.crm-valid-check { display:flex !important; align-items:center; gap:7px; font-size:11px !important; }
.crm-valid-check input { width:auto; margin:0; }
.crm-person-list,.crm-cadence-list { display:grid; gap:8px; }
.crm-person-card,.crm-cadence-list article { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding:11px; border:1px solid var(--line); border-radius:12px; background:#fbfcf8; }
.crm-person-card strong,.crm-person-card small,.crm-person-card p,.crm-cadence-list strong,.crm-cadence-list span,.crm-cadence-list small { display:block; }
.crm-person-card span { margin-left:7px; padding:2px 6px; border-radius:999px; background:#e2f3e8; color:#256340; font-size:9px; }
.crm-person-card small,.crm-cadence-list small { margin-top:3px; color:var(--muted); font-size:10px; }
.crm-person-card p { margin:4px 0 0; color:#526159; font-size:11px; }
.crm-person-card details { min-width:280px; }
.crm-person-card summary,.crm-add-contact summary { color:var(--green-2); cursor:pointer; font-size:11px; font-weight:700; }
.crm-add-contact { margin-top:10px; padding:11px; border:1px dashed var(--line); border-radius:12px; }
.crm-contact-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:9px; align-items:end; }
.crm-contact-form-grid label { margin:0; font-size:10px; }
.crm-contact-form-grid input,.crm-contact-form-grid select { margin-top:3px; padding:7px 8px; font-size:11px; }
.crm-contact-form-grid .crm-contact-primary { display:flex; align-items:center; gap:6px; }
.crm-contact-form-grid .crm-contact-primary input { width:auto; margin:0; }
.crm-cadence-list article span { color:#8a5b13; font-size:10px; }
.crm-unified-timeline { display:grid; gap:0; max-height:520px; overflow:auto; }
.crm-unified-timeline article { display:grid; grid-template-columns:58px minmax(0,1fr); gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.crm-unified-timeline article > span { align-self:start; padding:4px 6px; border-radius:999px; background:#edf2ed; color:var(--green); font-size:9px; text-align:center; }
.crm-unified-timeline strong,.crm-unified-timeline small { display:block; }
.crm-unified-timeline small { margin-top:2px; color:var(--muted); font-size:10px; }
.crm-unified-timeline p { margin:4px 0 0; color:#526159; font-size:11px; line-height:1.5; }
@media(max-width:980px){.crm-operations-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-rule-card form{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-activity-layout{grid-template-columns:1fr}}
@media(max-width:620px){.crm-operations-overview,.crm-rule-card form,.crm-contact-facts,.crm-score-grid,.crm-opportunity dl,.crm-contact-form-grid{grid-template-columns:1fr 1fr}.crm-contact-head{display:grid}.crm-pool-actions,.crm-pool-actions form{justify-content:stretch}.crm-pool-actions form>*{width:100%}.crm-opportunity-section .panel-head,.crm-opportunity-head{display:grid}.crm-opportunity-actions{display:grid}.crm-activity-layout{grid-template-columns:1fr}.crm-person-card{display:grid}.crm-person-card details{min-width:0}.crm-pipeline-panel>summary,.crm-opportunity-automation-status{display:grid}.crm-opportunity-automation-status span{text-align:left}}
.customer-assign-form { grid-template-columns: minmax(180px, 320px) auto; justify-content: end; align-items: center; gap: 8px; margin-top: 12px; }
.customer-assign-form select, .customer-assign-form .secondary-button { padding: 8px 10px; font-size:13px; }
.customer-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.customer-facts > div { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf8; }
.customer-facts span, .customer-facts strong { display: block; overflow-wrap: anywhere; }
.customer-facts span { color: var(--muted); font-size:12px; }
.customer-facts strong { margin-top: 5px; font-size:13px; }
.customer-sales-status-form { margin-top: 16px; padding: 15px; border: 1px solid rgba(22,63,53,.13); border-radius: 15px; background: linear-gradient(145deg, #f7faf6, #edf5f0); }
.customer-sales-status-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.customer-sales-status-head p, .customer-sales-status-head h3 { margin-bottom: 0; }
.customer-sales-status-head span { max-width: 260px; color: var(--muted); font-size:12px; text-align: right; }
.customer-sales-status-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: 12px; }
.customer-sales-status-fields label { margin: 0; font-size:12px; }
.customer-sales-status-fields .span-two { grid-column: span 2; }
.customer-sales-status-fields input, .customer-sales-status-fields select, .customer-sales-status-fields textarea { margin-top: 5px; padding: 9px 10px; font-size:13px; }
.customer-sales-status-fields .secondary-button { min-height: 42px; }
.customer-deal-plan-form { margin-top: 16px; padding: 17px; border: 1px solid rgba(184,138,59,.28); border-radius: 17px; background: linear-gradient(145deg,#fffdf6,#f3f7f1); }
.deal-overview-fields, .deal-next-fields, .deal-b2b-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: end; margin-top: 13px; }
.deal-overview-fields label, .deal-next-fields label, .deal-b2b-fields label, .deal-date-pair label { margin: 0; font-size:12px; }
.deal-overview-fields input, .deal-overview-fields select, .deal-next-fields input, .deal-next-fields textarea, .deal-b2b-fields input, .deal-b2b-fields textarea, .deal-date-pair input { margin-top: 5px; padding: 9px 10px; font-size:13px; }
.deal-timeline { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 10px; margin-top: 14px; }
.deal-date-pair { min-width:0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.74); }
.deal-date-pair label, .deal-date-pair input { min-width:0; width:100%; }
.deal-subhead { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid rgba(22,63,53,.1); }
.deal-subhead span, .deal-form-tip { color: var(--muted); font-size:12px; }
.deal-next-fields .span-two, .deal-b2b-fields .span-two { grid-column: span 2; }
.deal-form-tip { margin: 10px 0 0; line-height: 1.6; }
.task-next-details { position: relative; }
.task-next-details summary { padding: 7px 9px; border-radius: 8px; background: var(--green); color: white; font-size:12px; list-style: none; cursor: pointer; }
.task-next-details summary::-webkit-details-marker { display:none; }
.task-complete-next-form { position: absolute; z-index: 8; right: 0; top: 32px; width: 310px; margin: 0; padding: 12px; gap: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.task-complete-next-form input { padding: 8px 9px; font-size:13px; }
.task-complete-next-form > div { display: flex; gap: 7px; }
.task-complete-next-form button { flex: 1; padding: 8px; font-size:12px; }
.customer-section { margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.chat-timeline { max-height: 460px; display: grid; gap: 10px; overflow: auto; padding: 4px; }
.chat-message { max-width: 82%; padding: 12px 14px; border-radius: 15px; background: #f3f5f1; }
.chat-message.outgoing { justify-self: end; background: var(--mint); }
.chat-message > div { display: flex; justify-content: space-between; gap: 16px; }
.chat-message > div strong { font-size:13px; }
.chat-message > div span, .chat-message small { color: var(--muted); font-size:12px; }
.chat-message p { margin: 7px 0 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.chat-message small { display: block; margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(22,63,53,.1); }
.chat-message .chat-message-language{display:block;margin-top:9px;padding-top:8px;border-top:1px solid rgba(22,63,53,.1)}
.chat-message .chat-message-language span{display:inline-block;color:#597269;font-size:11px;font-weight:800}
.chat-message .chat-message-language p{margin-top:4px;white-space:normal}
.chat-message .chat-message-language.chinese{background:rgba(255,255,255,.53);border:1px solid #d8e7df;border-radius:9px;padding:8px 9px}
.chat-message .chat-message-language.chinese span{color:#1c6b51}
.chat-message .chat-message-language em{color:var(--muted);font-style:normal}
.customer-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.memory-list, .customer-task-list { display: grid; gap: 9px; }
.memory-card, .customer-task-card { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf8; }
.memory-card.approved { border-color: rgba(39,113,84,.2); background: #f1f8f3; }
.memory-card.rejected { opacity: .66; }
.memory-card > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.memory-card strong, .memory-card span { font-size:13px; }
.memory-card span { color: var(--gold); }
.memory-card.approved span { color: var(--green-2); }
.memory-card p { margin: 8px 0; font-size:13px; line-height: 1.55; }
.memory-card > small { color: var(--muted); font-size:12px; }
.memory-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.memory-actions .secondary-button { padding: 7px 10px; font-size:12px; }
.customer-task-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.customer-task-card > span { padding: 5px 7px; border-radius: 7px; background: var(--mint); color: var(--green); font-size:12px; }
.customer-task-card strong, .customer-task-card small { display: block; }
.customer-task-card strong { font-size:13px; }
.customer-task-card small { margin-top: 3px; color: var(--muted); font-size:12px; }
.customer-task-card em { color: var(--gold); font-size:12px; font-style: normal; }
.task-complete-button { border: 0; border-radius: 8px; padding: 7px 9px; background: var(--mint); color: var(--green); font-size:12px; font-weight: 700; }
.inline-work-form { gap: 9px; margin-top: 14px; }
.inline-work-form input, .inline-work-form select, .inline-work-form textarea { padding: 9px 10px; font-size:13px; }
.hero-panel { display: flex; justify-content: space-between; gap: 40px; align-items: center; margin-bottom: 18px; }
.hero-panel > div:first-child { max-width: 660px; }
.product-command-panel { display: grid; gap: 13px; margin-bottom: 14px; padding: 18px 20px; }
.product-command-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.product-command-top h3 { margin: 2px 0 4px; }
.product-command-status { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.product-command-status .catalog-status { min-width: 170px; padding: 10px 13px; border-radius: 12px; }
.product-command-status .catalog-status strong { font-size: 18px; }
.product-command-status .catalog-status span { margin-top: 2px; font-size:12px; }
.catalog-status { min-width: 210px; padding: 18px; border-radius: 16px; background: var(--green); color: white; }
.catalog-status strong, .catalog-status span { display: block; }
.catalog-status strong { font-size: 24px; }
.catalog-status span { margin-top: 6px; color: rgba(255,255,255,.66); font-size: 12px; }
.structure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.structure-grid div { padding: 16px; border-radius: 14px; background: #f4f7f2; }
.structure-grid strong, .structure-grid span { display: block; }
.structure-grid span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.product-overview-panel { margin-bottom: 18px; }
.product-readiness-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.product-readiness-grid > div { min-width: 0; padding: 9px 11px; border: 1px solid rgba(22,63,53,.08); border-radius: 11px; background: #f4f7f2; }
.product-readiness-grid > div.attention { background: #fff8e8; border-color: rgba(155,124,69,.2); }
.product-readiness-grid strong, .product-readiness-grid span { display: block; }
.product-readiness-grid strong { color: var(--green); font: 700 17px Georgia, "Microsoft YaHei", serif; }
.product-readiness-grid span { margin-top: 3px; color: var(--muted); font-size:12px; line-height: 1.35; }
.product-browser-head { align-items: center; }
.product-browser-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.product-view-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 13px; background: #edf2ed; }
.product-view-tabs button { border: 0; border-radius: 10px; padding: 9px 14px; background: transparent; color: var(--muted); font-size:13px; font-weight: 750; cursor: pointer; }
.product-view-tabs button.active { background: white; color: var(--green); box-shadow: 0 5px 14px rgba(22,63,53,.1); }
.product-view { margin-top: 16px; }
.product-view-intro { display: flex; justify-content: space-between; padding: 13px 15px; border-radius: 13px; background: #f4f7f2; }
.product-view-intro strong, .product-view-intro span { display: block; }
.product-view-intro span { margin-top: 3px; color: var(--muted); font-size:13px; }
.product-model-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 13px; }
.product-model-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf8; }
.product-model-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.product-model-card header strong { font: 700 20px Georgia, "Microsoft YaHei", serif; }
.product-model-card header span { color: var(--muted); font-size:12px; }
.product-model-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.product-model-metrics div { padding: 9px; border-radius: 10px; background: #f1f5f0; }
.product-model-metrics strong, .product-model-metrics span { display: block; }
.product-model-metrics strong { color: var(--green); font-size: 12px; }
.product-model-metrics span { margin-top: 3px; color: var(--muted); font-size:12px; }
.product-model-card small { color: var(--muted); line-height: 1.45; }
.product-filter-toolbar { display: grid; gap: 9px; padding: 12px; border-radius: 15px; background: #f4f7f2; }
.product-filter-primary { display: grid; grid-template-columns: minmax(260px,1.5fr) minmax(150px,.7fr) minmax(130px,.6fr) auto auto; gap: 9px; align-items: end; }
.product-filter-advanced { display: grid; grid-template-columns: repeat(7,minmax(120px,1fr)); gap: 9px; padding-top: 9px; border-top: 1px solid rgba(22,63,53,.1); }
.product-filter-toolbar label { margin: 0; font-size:12px; }
.product-filter-toolbar input, .product-filter-toolbar select { min-height: 39px; padding: 8px 10px; font-size:13px; }
.product-filter-toolbar button { min-height: 39px; }
.product-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.product-active-filters > button { min-height: 24px; border: 0; border-radius: 999px; padding: 5px 9px; background: var(--mint); color: var(--green); font-size:12px; font-weight: 750; cursor: pointer; }
.product-active-filters > button span { margin-left: 3px; opacity: .68; }
.product-active-filters > span { color: var(--muted); font-size:12px; }
.product-filter-result { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 8px; padding: 0 3px; }
.product-filter-result strong { color: var(--green); font-size:13px; }
.product-filter-result span { color: var(--muted); font-size:12px; }
.product-batch-approval-bar { display: grid; grid-template-columns: minmax(240px,1fr) auto auto; gap: 10px; align-items: center; margin: 8px 0 10px; padding: 10px 12px; border: 1px solid #b9d7c9; border-radius: 12px; background: #f0f8f4; }
.product-batch-approval-bar label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--green); font-size:13px; font-weight: 750; }
.product-batch-approval-bar input { width: auto; min-height: 0; margin: 0; }
.product-batch-approval-bar strong { color: var(--green-2); font-size:13px; }
.product-config-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(310px,.7fr); gap: 14px; align-items: start; }
.product-config-list { display: grid; gap: 7px; max-height: 650px; overflow: auto; padding-right: 3px; }
.product-config-row-wrap { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; align-items: stretch; }
.product-config-row-wrap.approvable { grid-template-columns: 42px minmax(0,1fr); gap: 6px; }
.product-approval-placeholder { display: none; }
.product-approval-check { display: grid; place-items: center; align-content: center; gap: 3px; margin: 0; border: 1px solid #c9ddd3; border-radius: 11px; background: #f2f8f5; color: var(--green); cursor: pointer; }
.product-approval-check:has(input:checked) { border-color: var(--green-2); background: var(--mint); }
.product-approval-check input { width: auto; margin: 0; }
.product-approval-check span { font-size:11px; font-weight: 750; }
.product-config-row { width: 100%; display: grid; grid-template-columns: minmax(200px,1.35fr) minmax(135px,.75fr) minmax(155px,.85fr) 88px; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf8; color: var(--ink); text-align: left; cursor: pointer; }
.product-config-row:hover, .product-config-row.active { border-color: rgba(31,90,74,.42); background: #f3f8f3; }
.product-config-row strong, .product-config-row span, .product-config-row small { display: block; min-width: 0; }
.product-config-row strong { font-size:13px; }
.product-config-row small { margin-top: 3px; color: var(--muted); font-size:12px; overflow: hidden; text-overflow: ellipsis; }
.product-tier-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.product-tier-tags span { padding: 4px 6px; border-radius: 7px; background: #edf2ed; color: var(--muted); font-size:11px; font-weight: 750; }
.product-tier-tags span.included { background: var(--mint); color: var(--green); }
.product-row-status { display: flex; flex-wrap: wrap; gap: 4px; }
.product-row-status span { padding: 4px 6px; border-radius: 7px; background: #eef2ef; color: var(--muted); font-size:11px; }
.product-row-status span.issue { background: #fff1d8; color: #8a6518; }
.product-row-action { color: var(--green); font-size:12px; font-weight: 750; text-align: right; }
.product-config-detail { position: sticky; top: 16px; min-height: 280px; padding: 16px; border: 1px solid rgba(22,63,53,.13); border-radius: 16px; background: linear-gradient(145deg,#fbfcf8,#f1f6f1); }
.product-detail-empty { min-height: 245px; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--muted); text-align: center; }
.product-detail-empty strong { color: var(--green); }
.product-detail-head { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; align-items: center; }
.product-detail-image { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: #e8efea; color: #8aa095; }
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-head h4 { margin: 3px 0; font-size: 15px; }
.product-detail-head small { color: var(--muted); }
.product-detail-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.product-detail-badges span { padding: 5px 7px; border-radius: 8px; background: #edf2ed; color: var(--green); font-size:12px; }
.product-detail-price-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 13px; }
.product-detail-price-grid div { padding: 8px; border-radius: 9px; background: white; }
.product-detail-price-grid strong, .product-detail-price-grid span { display: block; }
.product-detail-price-grid strong { font-size:13px; }
.product-detail-price-grid span { margin-top: 3px; color: var(--muted); font-size:11px; }
.product-detail-copy { margin: 12px 0 0; color: var(--muted); font-size:12px; line-height: 1.55; }
.product-detail-actions { display: grid; gap: 7px; margin-top: 13px; }
.media-library-panel { margin-top: 18px; }
.media-library-head { align-items: center; }
.media-library-head .compact-copy { min-height: 0; margin: 7px 0 0; }
.media-summary { min-width: 200px; padding: 15px 17px; border-radius: 15px; background: var(--green); color: white; }
.media-summary strong, .media-summary span { display: block; }
.media-summary strong { font: 600 23px Georgia, "Microsoft YaHei", serif; }
.media-summary span { margin-top: 4px; color: rgba(255,255,255,.65); font-size:13px; }
.media-toolbar { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(170px, .45fr) minmax(300px, 1.2fr); gap: 13px; align-items: end; padding: 17px; border-radius: 16px; background: #f4f7f2; }
.media-rule { min-height: 44px; display: flex; gap: 9px; align-items: center; }
.media-rule > span { padding: 5px 8px; border-radius: 8px; background: var(--mint); color: var(--green); font-size:12px; font-weight: 800; }
.media-rule p { margin: 0; color: var(--muted); font-size:13px; line-height: 1.45; }
.media-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fbfcf8; }
.media-card.available, .media-card.approved { border-color: rgba(31,90,74,.28); }
.media-card-image { position: relative; height: 190px; overflow: hidden; background: #eef2ed; }
.media-card-image > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.media-card-image > .status-pill { position: absolute; top: 10px; right: 10px; box-shadow: 0 5px 12px rgba(22,63,53,.12); }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; color: #8b9993; }
.media-placeholder span { font-size: 34px; color: #9eb2a9; }
.media-placeholder small { font-size:13px; }
.media-card-body { padding: 15px; }
.media-card-body > small { color: var(--gold); font-size:12px; font-weight: 750; }
.media-card-body h4 { min-height: 36px; margin: 5px 0 7px; font-size: 14px; line-height: 1.35; }
.media-card-body > p { min-height: 42px; margin: 0 0 7px; color: var(--muted); font-size:13px; line-height: 1.45; }
.media-card-body > em { display: block; margin: 0 0 8px; color: #8a7040; font-size:12px; font-style: normal; line-height: 1.4; }
.media-card-body label { margin-top: 10px; font-size:13px; }
.media-card-body input { padding: 9px 10px; font-size:13px; }
.media-file-label input { padding: 7px; background: white; }
.media-file-label input::file-selector-button { margin-right: 8px; border: 0; border-radius: 8px; padding: 6px 8px; background: var(--mint); color: var(--green); font-weight: 700; }
.media-card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 11px; }
.media-card-actions button { padding: 10px; font-size:13px; }
.empty-media-state { grid-column: 1 / -1; display: grid; gap: 5px; place-items: center; padding: 45px; border: 1px dashed #b8c6bf; border-radius: 17px; color: var(--muted); }
.empty-media-state strong { color: var(--green); }
.empty-media-state span { font-size:13px; }
.team-grid { grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); }
.compact-form { margin-top: 0; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size:13px; letter-spacing: .06em; }
.member-cell { display: flex; align-items: center; gap: 9px; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--green); font-weight: 800; }
.active-dot { color: #37825f; }
.settings-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.settings-hero > div:first-child { max-width: 700px; }
.security-seal { min-width: 230px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: var(--green); color: white; }
.security-seal > span { grid-row: 1 / span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.13); font-weight: 800; }
.security-seal strong, .security-seal small { display: block; }
.security-seal small { color: rgba(255,255,255,.62); }
.settings-form { margin-top: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.integration-card { align-content: start; }
.integration-head { min-height: 50px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.integration-head h3 { margin: 0; }
.compact-copy { min-height: 70px; margin: 12px 0 18px; font-size: 13px; }
.integration-card label { position: relative; margin-top: 13px; }
.field-status { position: absolute; right: 0; top: 0; color: #9b7c45; font-size:13px; font-weight: 600; }
.field-status.ready { color: #37825f; }
.deferred-card { background: rgba(255,254,250,.65); }
.settings-confirm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 40px; align-items: center; margin-top: 18px; }
.settings-confirm h3 { margin: 0; }
.model-picker { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.model-picker > label { margin-top: 10px; }
.model-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.model-guide-card { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7); color: var(--ink); text-align: left; cursor: pointer; }
.model-guide-card:hover { border-color: var(--green); background: white; }
.model-guide-card strong { font-size: 12px; }
.model-guide-card span, .model-guide-card small { color: var(--muted); font-size:12px; line-height: 1.35; }
.confirm-actions { display: grid; gap: 12px; }
.confirm-actions .form-message { margin: 0; }
.sales-backup-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); gap: 36px; align-items: center; margin-top: 18px; background: linear-gradient(145deg, rgba(255,254,250,.98), rgba(232,242,235,.92)); }
.sales-backup-copy h3 { margin: 0; }
.sales-backup-copy .muted { max-width: 760px; margin-bottom: 0; }
.sales-backup-latest { display: grid; gap: 3px; margin-top: 13px; padding: 11px 13px; border-radius: 11px; background: rgba(255,255,255,.72); }
.sales-backup-latest strong { color: var(--green); font-size:13px; overflow-wrap: anywhere; }
.sales-backup-latest span { color: var(--muted); font-size:12px; }
.sales-backup-latest i,.sales-backup-latest em { font-size:11px; font-style:normal; }
.sales-backup-latest i.ready { color:var(--green-2); font-weight:750; }
.sales-backup-latest i.warning,.sales-backup-latest em { color:#9a6425; }
.sales-backup-copy .field-hint { margin: 9px 0 0; }
.sales-backup-actions { display: grid; gap: 9px; }
.sales-backup-actions .form-message { margin: 0; }
.document-hero { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin-bottom: 18px; }
.document-hero > div:first-child { max-width: 760px; }
.document-summary { flex: 0 0 auto; min-width: 230px; padding: 18px; border-radius: 16px; background: var(--green); color: white; }
.document-summary strong, .document-summary span { display: block; }
.document-summary strong { font: 600 25px Georgia, "Microsoft YaHei", serif; }
.document-summary span { margin-top: 6px; color: rgba(255,255,255,.66); font-size: 12px; }
.document-template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.document-card { min-height: 245px; display: flex; flex-direction: column; padding: 20px; border: 1px solid rgba(22,63,53,.1); border-radius: 20px; background: rgba(255,254,250,.9); box-shadow: 0 8px 30px rgba(30,60,50,.05); }
.document-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.document-card-head small { color: var(--gold); font-weight: 750; letter-spacing: .08em; }
.document-card h3 { margin: 7px 0 2px; font-size: 18px; }
.document-card-head p { margin: 0; color: var(--muted); font-size:13px; }
.document-card .status-pill { white-space: nowrap; }
.field-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.field-chips span { padding: 6px 8px; border-radius: 8px; background: #f0f5f0; color: #596862; font-size:13px; }
.document-card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size:13px; }
.document-card-foot strong { color: var(--green-2); text-align: right; }
.document-card > p { margin: 10px 0 0; color: #8a7040; font-size:13px; }
.document-bottom-grid { margin-bottom: 10px; }
.document-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.knowledge-list { display: grid; gap: 10px; }
.knowledge-list > div { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 12px; background: #f4f7f2; }
.knowledge-list > div > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--mint); color: var(--green); font-weight: 800; }
.knowledge-list p, .knowledge-list strong, .knowledge-list small { display: block; margin: 0; }
.knowledge-list strong { font-size: 12px; }
.knowledge-list small { margin-top: 3px; color: var(--muted); font-size:13px; }
.workbench-panel { margin-bottom: 18px; overflow: hidden; }
.quick-document-panel { margin-bottom: 18px; border-color: rgba(31,98,80,.28); background: linear-gradient(135deg, #fffdf8 0%, #f1f7f2 100%); }
.document-business-flow { display:grid; grid-template-columns:repeat(7,minmax(0,auto)); align-items:center; gap:10px; margin:0 0 18px; padding:13px 15px; border:1px solid rgba(31,98,80,.2); border-radius:16px; background:#f7faf7; }
.document-business-flow > div { min-width:0; }
.document-business-flow span,.document-business-flow strong,.document-business-flow small { display:block; }
.document-business-flow span { color:var(--gold); font-size:12px; font-weight:800; }
.document-business-flow strong { margin-top:2px; color:var(--green); font-size:13px; }
.document-business-flow small { margin-top:3px; color:var(--muted); font-size:12px; line-height:1.35; }
.document-business-flow i { color:#a88b4d; font-style:normal; font-weight:800; }
.quick-document-head { align-items: center; margin-bottom: 16px; }
.quick-document-type-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 15px; }
.quick-document-type { min-height: 52px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); text-align: left; }
.quick-document-type strong, .quick-document-type small { display: block; }
.quick-document-type strong { font-size:13px; }
.quick-document-type small { margin-top: 3px; color: var(--muted); font-size:12px; }
.quick-document-type.active { border-color: var(--green-2); background: var(--green); color: white; box-shadow: 0 8px 18px rgba(18,63,53,.14); }
.quick-document-type.active small { color: #dceae3; }
.quick-document-fields { display: grid; grid-template-columns: .7fr 1.4fr .7fr 1fr; gap: 10px; align-items: start; }
.quick-document-fields.unbound { grid-template-columns: repeat(3, minmax(0,1fr)); }
.quick-document-fields label { min-width: 0; }
.quick-document-fields input, .quick-document-fields select { padding: 10px 11px; }
.quick-document-fields #quickDocumentCustomerField { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr); gap: 7px; }
.customer-picker-controls { display: grid; min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; align-items: start; }
.quick-document-fields .customer-picker-controls input, .quick-document-fields .customer-picker-controls select { width: 100%; min-width: 0; min-height: 44px; margin: 0; }
.customer-picker-controls + .customer-filter-count { min-width: 0; overflow-wrap: anywhere; }
.document-source-context { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.document-source-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 13px; border: 1px solid rgba(31,98,80,.22); border-radius: 13px; background: rgba(255,255,255,.78); }
.document-source-card.warning { border-color: rgba(181,126,36,.3); background: #fffaf0; }
.document-source-card.neutral { grid-column: 1 / -1; border-color: var(--line); background: #fbfcf8; }
.document-source-card small,.document-source-card strong,.document-source-card span { display: block; }
.document-source-card small { color: var(--green-2); font-size:12px; font-weight: 800; }
.document-source-card strong { margin: 3px 0; font-size: 12px; }
.document-source-card span:not(.status-pill) { color: var(--muted); font-size:13px; line-height: 1.55; }
.document-source-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size:13px; }
.source-owned-field input,.source-owned-field textarea,.source-owned-field select { pointer-events: none; color: #52645e; background: #f1f4ef; border-style: dashed; }
.source-owned-field > small { color: var(--green-2); font-size:12px; }
.document-copy-field input,.document-copy-field textarea,.document-copy-field select { background:#fffdf7; border-color:rgba(177,132,56,.42); }
.document-copy-field > small { color:#8b682c; font-size:12px; }
.editable-document-notice { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr); gap:20px; align-items:center; padding:20px 22px; border:1px solid rgba(177,132,56,.35); border-radius:16px; background:linear-gradient(135deg,#fffaf0,#f4f8f3); }
.editable-document-notice h3 { margin:3px 0 6px; }
.editable-document-notice p:last-child { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.editable-document-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.editable-document-steps span { padding:9px 10px; border-radius:10px; background:white; border:1px solid var(--line); color:var(--green); font-size:13px; font-weight:800; }
.workbench-fields .span-three { grid-column:1 / -1; }
.document-source-actions { display:flex; align-items:center; gap:10px; padding-top:2px; }
.document-source-actions small { color:var(--muted); font-size:12px; }
.manual-document-review { border:1px solid rgba(177,132,56,.32); border-radius:16px; padding:20px; margin:20px 0 0; background:#fffaf1; }
.manual-review-fields { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); gap:16px; align-items:start; }
.manual-review-check { display:flex; flex-direction:row; align-items:flex-start; gap:11px; padding:14px; border:1px solid rgba(31,98,80,.25); border-radius:12px; background:white; }
.manual-review-check input { width:18px; height:18px; flex:0 0 auto; margin-top:2px; }
.manual-review-check span,.manual-review-check strong,.manual-review-check small { display:block; }
.manual-review-check small { margin-top:5px; color:var(--muted); line-height:1.5; }
.manual-review-check.review-dirty { border-color:#c79034; background:#fff6e5; }
.quick-document-presentation { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.quick-document-presentation > strong { margin-left: auto; color: var(--green-2); font-size:13px; }
.quick-configuration-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 16px; }
.quick-configuration-head strong, .quick-configuration-head small { display: block; }
.quick-configuration-head small { margin-top: 3px; color: var(--muted); font-size:12px; }
.quick-configuration-head > div:last-child { display: flex; gap: 7px; }
.quick-configuration-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; max-height: 390px; margin-top: 10px; padding: 2px 4px 2px 0; overflow-y: auto; }
.quick-configuration-group-heading,.configuration-group-heading { grid-column:1 / -1; display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:9px 4px 3px; }
.quick-configuration-group-heading strong,.configuration-group-heading strong { color:var(--green); font-size:13px; }
.quick-configuration-group-heading span,.configuration-group-heading span { color:var(--muted); font-size:12px; }
.quick-configuration-group-heading.base strong,.configuration-group-heading.base strong { color:#8a6724; }
.quick-configuration-card { min-width: 0; display: grid; grid-template-columns: 54px minmax(0,1fr) 22px; gap: 7px; align-items: center; min-height: 70px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.quick-configuration-card:hover { border-color: #8db4a5; }
.quick-configuration-card.selected { border-color: var(--green-2); background: #eaf5ef; box-shadow: inset 0 0 0 1px rgba(31,98,80,.08); }
.quick-configuration-card.locked { border-color:#b99a55; background:#fbf4e3; cursor:default; opacity:1; }
.quick-configuration-card img, .quick-configuration-placeholder { width: 54px; height: 52px; border-radius: 9px; object-fit: cover; background: #e8efea; }
.quick-configuration-placeholder { display: grid; place-items: center; color: #809189; font-size:12px; }
.quick-configuration-copy { min-width: 0; }
.quick-configuration-copy strong, .quick-configuration-copy span, .quick-configuration-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-configuration-copy strong { font-size:13px; }
.quick-configuration-copy span { margin-top: 2px; color: var(--muted); font-size:12px; }
.quick-configuration-copy small { margin-top: 4px; color: var(--gold); font-size:12px; }
.quick-configuration-check { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #b9c6bf; border-radius: 6px; color: transparent; font-size:13px; font-weight: 800; }
.quick-configuration-card.selected .quick-configuration-check { border-color: var(--green-2); background: var(--green-2); color: white; }
.quick-configuration-card.locked .quick-configuration-check { border-color:#b28b3b; background:#b28b3b; color:#fff; }
.quick-document-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.quick-document-actions .primary-button { min-width: 210px; }
.workbench-head { align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.workbench-head .compact-copy { min-height: 0; margin: 7px 0 0; }
.document-workbench-form { margin-top: 0; gap: 0; }
.workbench-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.workbench-section-title { display: flex; gap: 12px; align-items: center; margin-bottom: 17px; }
.workbench-section-title > span { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--green); color: white; font-size:13px; font-weight: 800; }
.workbench-section-title strong, .workbench-section-title small { display: block; }
.workbench-section-title small { margin-top: 3px; color: var(--muted); font-size:13px; }
.workbench-fields { display: grid; gap: 14px; }
.workbench-fields.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workbench-fields.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workbench-fields.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workbench-fields .span-two { grid-column: span 2; }

.freight-integration-card { border-top:3px solid #2f7d69; }
.freight-quote-workbench { margin-top:18px; padding:16px; border:1px solid #cddfd8; border-radius:16px; background:linear-gradient(145deg,#f8fcfa,#f1f7f4); }
.freight-quote-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.freight-quote-head strong,.freight-quote-head span,.selected-freight-quote strong,.selected-freight-quote small { display:block; }
.freight-quote-head span { margin-top:4px; color:var(--muted); font-size:12px; }
.selected-freight-quote { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:12px; padding:13px 14px; border:1px dashed #b9cec5; border-radius:13px; background:#fff; }
.selected-freight-quote.reference { border-style:solid; border-color:#ddc37e; background:#fffaf0; }
.selected-freight-quote.confirmed { border-style:solid; border-color:#92c5b5; background:#f2fbf7; }
.selected-freight-quote strong { margin-top:6px; color:#153f35; font-size:18px; }
.selected-freight-quote small { margin-top:4px; color:var(--muted); }
.freight-search-panel { margin-top:14px; padding-top:14px; border-top:1px solid #d5e4de; }
.freight-query-actions { display:flex; align-items:center; gap:12px; margin-top:12px; }
.freight-query-actions span { color:var(--muted); font-size:12px; }
.freight-query-actions .choice-check { flex:0 0 auto; margin:0; }
.freight-search-results { display:grid; gap:10px; margin-top:12px; }
.freight-result-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; padding:14px; border:1px solid #d8e4df; border-radius:13px; background:#fff; box-shadow:0 6px 18px rgba(24,69,57,.05); }
.freight-result-main span,.freight-result-main strong,.freight-result-main small { display:block; }
.freight-result-main span { color:#2f7d69; font-size:12px; font-weight:800; }
.freight-result-main strong { margin:5px 0; color:#153f35; font-size:20px; }
.freight-result-main small { margin-top:3px; color:var(--muted); }
.freight-result-main ul { margin:8px 0 0; padding-left:18px; color:#9a6114; font-size:12px; }
.freight-cost-summary { display:grid; grid-template-columns:repeat(4,minmax(125px,1fr)); gap:8px; margin-top:12px; }
.freight-cost-summary>div { padding:9px 10px; border:1px solid #d9e6e0; border-radius:10px; background:#f8fbf9; }
.freight-cost-summary>div.total { border-color:#87b5a5; background:#edf7f2; }
.freight-cost-summary small,.freight-cost-summary strong { display:block; }
.freight-cost-summary strong { margin:3px 0 0; font-size:14px; }
.freight-estimate-missing { margin:8px 0 0; padding:7px 9px; border-radius:8px; background:#fff3dc; color:#8b5a10; font-size:12px; }
.freight-cost-details { margin-top:8px; color:#52645e; font-size:12px; }
.freight-cost-details summary { cursor:pointer; color:#266d59; font-weight:700; }
.freight-cost-details ul { display:grid; gap:5px; margin:7px 0 0; padding:0; color:#52645e; list-style:none; }
.freight-cost-details li { display:flex; justify-content:space-between; gap:14px; }
.freight-cost-details li strong { margin:0; color:#244e42; font-size:12px; }
.freight-cost-details p { margin:7px 0 0; color:#75827d; }
.freight-page-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px; background:linear-gradient(135deg,#f0f8f4,#fffdf7 65%,#f5ead0); }
.freight-page-hero h3 { margin:4px 0 6px; font-size:27px; }
.freight-page-hero .muted { max-width:780px; margin:0; line-height:1.7; }
.freight-page-hero-note { min-width:210px; padding:14px 16px; border:1px solid #bfd8cd; border-radius:15px; background:rgba(255,255,255,.8); }
.freight-page-hero-note span,.freight-page-hero-note strong,.freight-page-hero-note small { display:block; }
.freight-page-hero-note span { color:var(--green-2); font-size:11px; font-weight:800; }
.freight-page-hero-note strong { margin-top:5px; color:var(--green); }
.freight-page-hero-note small { margin-top:4px; color:var(--muted); }
.freight-page-layout { display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:16px; margin-top:16px; }
.freight-page-search-card,.freight-page-guide,.freight-page-results-panel,.freight-page-history-panel { padding:20px; }
.freight-port-assistant { display:grid; gap:10px; padding:14px; border:1px solid #cfe0da; border-radius:16px; background:#f5faf7; }
.freight-port-assistant > div:first-child { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.freight-port-assistant > div:first-child small { max-width:620px; color:#66756f; }
.freight-port-assistant-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.freight-port-suggestions { display:flex; gap:8px; flex-wrap:wrap; }
.freight-port-option { display:grid; grid-template-columns:auto 1fr; gap:2px 8px; align-items:center; min-width:180px; padding:9px 11px; border:1px solid #c9ddd5; border-radius:12px; background:#fff; color:#173f35; text-align:left; cursor:pointer; }
.freight-port-option:hover { border-color:#2e755f; box-shadow:0 6px 16px rgba(23,63,53,.08); }
.freight-port-option strong { grid-row:1 / span 2; font-size:12px; color:#256751; }
.freight-port-option span { font-weight:700; }
.freight-port-option small { color:#6d7b76; }
.freight-estimate-assistant { padding:13px 14px; border:1px solid #dfd1a9; border-radius:16px; background:#fffaf0; }
.freight-estimate-assistant summary { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none; }
.freight-estimate-assistant summary::-webkit-details-marker { display:none; }
.freight-estimate-assistant summary span,.freight-estimate-assistant summary strong,.freight-estimate-assistant summary small { display:block; }
.freight-estimate-assistant summary small { margin-top:3px; color:#766f60; }
.freight-estimate-assistant summary em { color:#936d1b; font-size:12px; font-style:normal; font-weight:800; }
.freight-estimate-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:13px; }
.freight-estimate-assistant>p { margin:10px 0 0; color:#766f60; font-size:12px; line-height:1.55; }
.freight-page-fields { margin-top:16px; }
.freight-page-guide { align-self:start; background:linear-gradient(160deg,#173f35,#245e4f); color:#fff; }
.freight-page-guide .eyebrow { color:#b9d9cc; }
.freight-page-guide h3 { margin:5px 0 16px; }
.freight-page-guide ol { display:grid; gap:11px; margin:0; padding:0; list-style:none; }
.freight-page-guide li { display:grid; grid-template-columns:30px minmax(0,1fr); gap:10px; align-items:start; }
.freight-page-guide li>span { display:grid; width:30px; height:30px; place-items:center; border-radius:10px; background:rgba(255,255,255,.14); color:#fff0c8; font-weight:800; }
.freight-page-guide li strong,.freight-page-guide li small { display:block; }
.freight-page-guide li small { margin-top:3px; color:#c8dbd3; line-height:1.45; }
.freight-page-results-panel,.freight-page-history-panel { margin-top:16px; }
.freight-history-list { display:grid; gap:10px; margin-top:14px; }
.freight-history-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:15px; padding:15px; border:1px solid #d8e4df; border-left:4px solid #d5b15d; border-radius:14px; background:#fff; }
.freight-history-card.confirmed { border-left-color:#4d9b7f; background:#f7fcf9; }
.freight-history-card.expired { border-left-color:#a8aaa7; background:#f7f7f5; opacity:.78; }
.freight-history-card>div:first-child>span,.freight-history-card strong,.freight-history-card small { display:block; }
.freight-history-card strong { margin:6px 0 4px; color:#153f35; font-size:20px; }
.freight-history-card small { margin-top:3px; color:var(--muted); }
@media (max-width:720px) {
  .freight-quote-head,.selected-freight-quote,.freight-query-actions,.freight-page-hero { align-items:stretch; flex-direction:column; }
  .freight-page-layout { grid-template-columns:1fr; }
  .freight-page-hero-note { min-width:0; }
  .freight-port-assistant > div:first-child,.freight-port-assistant-controls { display:grid; grid-template-columns:1fr; }
  .freight-estimate-grid,.freight-cost-summary { grid-template-columns:1fr; }
  .freight-port-option { width:100%; }
  .freight-result-card { grid-template-columns:1fr; }
  .freight-result-card button,.freight-history-card .inline-actions button { width:100%; }
  .freight-history-card { grid-template-columns:1fr; }
  .freight-history-card .inline-actions { align-items:stretch; flex-direction:column; }
}
.configuration-toolbar { display: grid; grid-template-columns: minmax(190px, .7fr) auto minmax(210px, 1fr) minmax(170px, .6fr); gap: 12px; align-items: end; margin-bottom: 14px; }
.configuration-selector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 500px; margin: 12px 0 16px; padding: 3px 5px 3px 0; overflow-y: auto; }
.configuration-choice-card { min-width: 0; display: grid; grid-template-columns: 62px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 6px 8px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf8; }
.configuration-choice-card.selected { border-color: #8db4a5; background: #eef6f1; }
.configuration-choice-card.locked { border-color:#c1a366; background:#fbf5e7; }
.configuration-choice-image { width: 62px; height: 58px; grid-row: 1 / span 2; display: grid; place-content: center; justify-items: center; overflow: hidden; border-radius: 10px; background: #e9f0eb; color: #81948b; }
.configuration-choice-image img { width: 100%; height: 100%; object-fit: cover; }
.configuration-choice-image span { font-size: 20px; }
.configuration-choice-image small { margin-top: 3px; font-size:12px; }
.configuration-choice-copy > * { display: block; min-width: 0; }
.configuration-choice-copy small { color: var(--gold); font-size:12px; font-weight: 750; }
.configuration-choice-copy strong { margin-top: 2px; font-size:13px; line-height: 1.25; }
.configuration-choice-copy span { margin-top: 2px; overflow: hidden; color: var(--muted); font-size:12px; text-overflow: ellipsis; white-space: nowrap; }
.configuration-choice-copy em { margin-top: 4px; color: var(--green-2); font-size:12px; font-style: normal; font-weight: 700; }
.configuration-choice-card > button { padding: 5px 8px; font-size:12px; }
.configuration-choice-card > button:disabled { cursor:default; opacity:.82; }
.configuration-lock-label { color:#8a6724; font-size:12px; font-weight:750; white-space:nowrap; }
.draft-item-english { display: block; margin-top: 2px; color: var(--muted); font-size:13px; }
.presentation-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; padding: 13px; border-radius: 14px; background: #f2f7f3; }
.presentation-controls > label:first-child { min-width: 170px; }
.choice-check { min-height: 45px; display: flex; flex-direction: row; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); cursor: pointer; }
.choice-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--green-2); }
.choice-check span { font-size:13px; font-weight: 700; }
.draft-item-list { display: grid; gap: 10px; }
.draft-item-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf8; }
.draft-item-main { min-width: 0; display: flex; gap: 12px; align-items: flex-start; }
.draft-drag-handle,.product-builder-drag-handle { flex:0 0 auto; display:grid; place-items:center; min-width:22px; min-height:34px; border-radius:8px; color:#6f8178; background:#edf3ef; cursor:grab; user-select:none; touch-action:none; }
.draft-drag-handle:active,.product-builder-drag-handle:active { cursor:grabbing; }
.item-number { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--mint); color: var(--green); font-size:13px; font-weight: 800; }
.draft-item-thumb { width: 62px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 10px; background: #eaf0ec; color: #8ca097; }
.draft-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.draft-item-main small, .draft-item-main strong, .draft-item-main p { display: block; }
.draft-item-main small { color: var(--gold); font-size:13px; font-weight: 750; letter-spacing: .04em; }
.draft-item-main strong { margin-top: 3px; font-size: 13px; }
.draft-item-main p { max-width: 660px; max-height: 36px; margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size:13px; line-height: 1.45; }
.draft-item-values { display: grid; grid-template-columns: 80px 100px 100px auto 28px; gap: 10px; align-items: center; }
.draft-item-values label { font-size:13px; }
.draft-item-values input { padding: 8px 9px; }
.draft-item-values > div small, .draft-item-values > div strong { display: block; text-align: right; }
.draft-item-values > div small { color: var(--muted); font-size:12px; }
.draft-item-values > div strong { margin-top: 4px; font-size:13px; }
.remove-item-button { width: 28px; height: 28px; border: 0; border-radius: 9px; background: #f6e9e6; color: var(--danger); font-size: 18px; }
.workbench-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; }
.draft-validation { margin-top: 18px; padding: 18px; border-radius: 17px; background: #f4f7f2; }
.validation-summary { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)) auto; gap: 12px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.validation-summary small, .validation-summary strong { display: block; }
.validation-summary small { color: var(--muted); font-size:13px; }
.validation-summary strong { margin-top: 5px; font-size: 16px; }
.pass-copy { color: var(--green-2); }
.block-copy { color: var(--danger); }
.pdf-link { display: inline-block; text-decoration: none; text-align: center; }
.validation-gates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 15px; }
.validation-gates > div { display: flex; gap: 9px; align-items: center; padding: 10px; border-radius: 11px; background: white; }
.validation-gates > div > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; font-weight: 800; }
.validation-gates .pass > span { background: var(--mint); color: var(--green); }
.validation-gates .block > span { background: #f6e9e6; color: var(--danger); }
.validation-gates p, .validation-gates strong, .validation-gates small { display: block; margin: 0; }
.validation-gates strong { font-size:13px; }
.validation-gates small { margin-top: 2px; color: var(--muted); font-size:12px; line-height: 1.4; }
.recent-drafts-panel { margin-bottom: 18px; }
.recent-draft-list { display: grid; gap: 9px; }
.recent-draft-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcf8; }
.recent-draft-card small, .recent-draft-card strong, .recent-draft-card span { display: block; }
.recent-draft-card small, .recent-draft-card span { color: var(--muted); font-size:13px; }
.recent-draft-card strong { margin: 3px 0; font-size: 12px; }
.recent-draft-card > div:nth-child(2) { text-align: right; }
.recent-draft-card > div:nth-child(2) .status-pill { display: inline-block; margin-top: 4px; }
.recent-draft-actions { display: flex; gap: 8px; align-items: center; }
.recent-draft-actions .secondary-button { padding: 8px 10px; font-size:13px; }
.recent-draft-actions .danger-button { color: #9b382e; border-color: #ddb2aa; }
.recent-draft-actions a { color: var(--green-2); font-size:13px; font-weight: 700; text-decoration: none; }

.chat-hero { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; margin-bottom: 18px; background: linear-gradient(145deg, rgba(255,254,250,.97), rgba(228,243,235,.9)); }
.chat-hero .muted { max-width: 780px; margin-bottom: 0; }
.chat-assistant-layout { display: grid; grid-template-columns: minmax(440px, 1fr) minmax(440px, 1fr); gap: 18px; align-items: start; }
.chat-compose-panel, .chat-result-panel { min-width: 0; }
.chat-result-panel { position: sticky; top: 22px; }
.compact-button { padding: 9px 12px; font-size:13px; }
.quick-customer-form { margin: 0 0 20px; padding: 17px; border: 1px solid rgba(22,63,53,.16); border-radius: 17px; background: #f3f8f4; }
.quick-customer-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.quick-customer-head span { color: var(--muted); font-size:13px; }
.quick-customer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.quick-customer-form .inline-actions { display: flex; align-items: center; gap: 14px; }
.prospect-import-summary { flex-direction:column; align-items:flex-start; }
.prospect-import-summary span { line-height:1.6; }
.radar-product-lines-head > .inline-actions { margin:0; flex-wrap:wrap; }
.quick-customer-form .text-button { color: var(--muted); padding: 8px; }
.chat-advice-form { margin-top: 0; }
.chat-field-row { display: flex; gap: 11px; }
.chat-field-row label { min-width: 150px; }
.chat-field-row .grow { flex: 1; }
.chat-content-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; transition: .18s ease; }
.chat-content-editor:focus-within { border-color: #5f8f7d; box-shadow: 0 0 0 4px rgba(95,143,125,.13); }
#chatTranscript { min-height: 250px; border: 0; border-radius: 0; box-shadow: none; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
#chatTranscript:focus { border: 0; box-shadow: none; }
.chat-image-tray { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 12px 12px; }
.chat-image-tray.has-images { display: grid; }
.chat-image-card { position: relative; min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) 24px; gap: 9px; align-items: center; padding: 8px; border: 1px solid rgba(22,63,53,.13); border-radius: 12px; background: #f5f9f6; }
.chat-image-card img { width: 64px; height: 54px; object-fit: cover; border-radius: 8px; background: #e7ede8; }
.chat-image-card strong, .chat-image-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-image-card strong { font-size:13px; }
.chat-image-card span { margin-top: 4px; color: var(--muted); font-size:12px; }
.chat-image-card button { width: 24px; height: 24px; border: 0; border-radius: 8px; background: #e7eee9; color: var(--green); font-size: 17px; line-height: 1; }
.chat-paste-guide { display: flex; align-items: center; gap: 9px; margin: 0 12px 12px; padding: 10px 12px; border: 1px dashed #a6bab0; border-radius: 11px; background: #fafcf9; color: var(--green); }
.chat-paste-guide > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--mint); font-size: 12px; }
.chat-paste-guide p, .chat-paste-guide strong, .chat-paste-guide small { display: block; margin: 0; }
.chat-paste-guide strong { font-size:13px; }
.chat-paste-guide small { margin-top: 2px; color: var(--muted); font-size:12px; font-weight: 500; }
.chat-content-editor.has-images .chat-paste-guide { border-style: solid; background: #f1f7f3; }
.chat-input-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.file-entry-button { min-height: 45px; display: inline-flex; place-items: center; border: 1px dashed #8eaa9e; border-radius: 12px; padding: 11px 15px; background: #f7faf7; color: var(--green); cursor: pointer; font-weight: 700; }
.file-entry-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.field-hint { margin: -8px 0 0; color: var(--muted); font-size:13px; line-height: 1.55; }
.chat-submit-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-top: 4px; }
.chat-submit-row strong, .chat-submit-row span { display: block; }
.chat-submit-row strong { font-size:13px; }
.chat-submit-row span { max-width: 310px; margin-top: 3px; color: var(--muted); font-size:12px; line-height: 1.45; }
.chat-empty-state { min-height: 515px; display: grid; place-content: center; justify-items: center; padding: 30px; color: var(--muted); text-align: center; }
.chat-empty-state > span { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 18px; background: var(--mint); color: var(--green); font-size: 25px; }
.chat-empty-state strong { color: var(--ink); font-size: 16px; }
.chat-empty-state p { max-width: 360px; font-size: 12px; line-height: 1.7; }
.chat-advice-result { display: grid; gap: 12px; }
.chat-result-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.chat-result-summary > div { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 3px 8px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcf8; }
.chat-result-summary span { color: var(--muted); font-size:13px; }
.chat-result-summary strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--green); font: 600 25px Georgia, serif; }
.chat-result-summary > div:nth-child(n+3) strong { max-width: 150px; font: 700 11px "Segoe UI", "Microsoft YaHei", sans-serif; text-align: right; }
.chat-result-summary small { color: #82908a; font-size:12px; }
.chat-context-hint { margin: -2px 0 10px; padding: 9px 11px; border-radius: 10px; background: #eef5ef; color: #416056; font-size:12px; line-height: 1.5; }
.chat-history-panel { margin: 0 0 13px; padding: 11px; border: 1px solid rgba(22,63,53,.15); border-radius: 14px; background: linear-gradient(145deg,#f7faf6,#eef5ef); }
.chat-history-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 9px; }
.chat-history-head > div:first-child strong, .chat-history-head > div:first-child span { display: block; }
.chat-history-head strong { color: var(--green); font-size:13px; }
.chat-history-head span { margin-top: 2px; color: var(--muted); font-size:12px; }
.chat-history-head .inline-actions { margin: 0; }
.chat-history-timeline { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; padding: 3px 5px 3px 1px; scroll-behavior: smooth; }
.chat-history-panel.collapsed .chat-history-timeline, .chat-history-panel.collapsed #expandChatHistory { display: none; }
.chat-history-entry { width: min(86%,760px); padding: 9px 11px; border: 1px solid rgba(22,63,53,.1); border-radius: 12px; background: white; box-shadow: 0 2px 9px rgba(22,63,53,.035); }
.chat-history-entry.history-customer { align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-history-entry.history-sales { align-self: flex-end; border-color: rgba(22,96,73,.2); border-bottom-right-radius: 4px; background: #e8f4ee; }
.chat-history-entry.history-draft { align-self: center; border-style: dashed; border-color: rgba(189,146,63,.45); background: #fff9e9; }
.chat-history-entry.history-system { align-self: center; background: #f1f2ef; }
.chat-history-entry-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.chat-history-entry-head strong { color: var(--green); font-size:12px; }
.chat-history-entry-head span { color: #819089; font-size:12px; text-align: right; }
.chat-history-entry p { margin: 6px 0 0; color: #35453f; font-size:13px; line-height: 1.6; overflow-wrap: anywhere; }
.chat-history-entry details { margin-top: 7px; color: var(--muted); font-size:12px; }
.chat-history-entry summary { cursor: pointer; color: var(--green-2); font-weight: 700; }
.chat-history-language{margin-top:7px;padding-top:7px;border-top:1px solid rgba(22,63,53,.1)}.chat-history-language span{color:#597269;font-size:10px;font-weight:800}.chat-history-language p{margin-top:3px}.chat-history-language.chinese{padding:8px 9px;border:1px solid #d8e7df;border-radius:9px;background:rgba(255,255,255,.6)}.chat-history-language.chinese span{color:#1c6b51}.chat-history-language em{color:var(--muted);font-style:normal}
.chat-history-image { display: grid; gap: 4px; margin-top: 7px; color: var(--green-2); font-size:12px; text-decoration: none; }
.chat-history-image img { display: block; max-width: min(100%,320px); max-height: 180px; border-radius: 9px; object-fit: contain; background: #edf1ed; }
.chat-history-empty { display: grid; gap: 3px; padding: 14px; border-radius: 11px; background: rgba(255,255,255,.72); color: var(--muted); font-size:12px; text-align: center; }
.chat-history-empty strong { color: var(--green); font-size:13px; }
.chat-history-empty.error strong { color: #a44e40; }
#expandChatHistory { width: 100%; margin-top: 9px; }
.reply-action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chat-insight-card, .reply-draft-card, .memory-suggestion-card, .profile-suggestion-card, .configuration-recommendation-card { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcf8; }
.chat-insight-card.prominent { background: #f2f8f4; border-color: rgba(22,63,53,.14); }
.chat-card-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.chat-card-title span { color: var(--green); font-size:13px; font-weight: 800; }
.chat-card-title strong { color: var(--muted); font-size:12px; }
.chat-insight-card p, .reply-draft-card p { margin: 9px 0 0; color: #41504b; font-size: 12px; line-height: 1.65; }
.reply-draft-card { background: linear-gradient(145deg, #fffefa, #f5f9f5); border-color: rgba(22,63,53,.22); }
.reply-draft-text { margin: 12px 0; padding: 14px; border-left: 3px solid var(--green-2); border-radius: 0 10px 10px 0; background: white; font-size: 13px; line-height: 1.72; overflow-wrap: anywhere; }
.reply-draft-editor { display: block; width: 100%; min-height: 150px; border-top: 0; border-right: 0; border-bottom: 0; resize: vertical; color: var(--ink); font-family: inherit; }
.reply-draft-editor:focus { outline: 2px solid rgba(41,132,98,.2); outline-offset: 2px; }
.reply-draft-card details { margin-top: 11px; color: var(--muted); font-size:13px; }
.reply-draft-card summary { cursor: pointer; color: var(--green-2); font-weight: 700; }
.chat-insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.chat-insight-card ul { display: grid; gap: 6px; margin: 9px 0 0; padding-left: 17px; color: #45534e; font-size:13px; line-height: 1.5; }
.chat-insight-card.confirmed { border-top: 3px solid #4a9472; }
.chat-insight-card.questions { border-top: 3px solid #bd923f; }
.chat-insight-card.risks { border-top: 3px solid #b76051; }
.chat-insight-card.next { border-top: 3px solid #658ba1; }
.chat-list-empty { margin: 9px 0 0; color: var(--muted); font-size:13px; line-height: 1.5; }
.memory-suggestion-list { display: grid; gap: 7px; margin-top: 10px; }
.memory-suggestion-list label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; padding: 9px; border-radius: 11px; background: white; cursor: pointer; }
.memory-suggestion-list input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green-2); }
.memory-suggestion-list span { color: #4c5a55; font-size:13px; font-weight: 500; line-height: 1.5; }
.memory-suggestion-list strong { display: inline-block; margin-right: 7px; color: var(--green); font-size:12px; }
.profile-suggestion-card { background: linear-gradient(145deg, #fbfcf8, #eef6f1); border-color: rgba(22,63,53,.17); }
.profile-suggestion-list { display: grid; gap: 7px; margin-top: 10px; }
.profile-suggestion-list label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; padding: 10px; border: 1px solid rgba(22,63,53,.08); border-radius: 11px; background: white; cursor: pointer; }
.profile-suggestion-list input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green-2); }
.profile-suggestion-list span, .profile-suggestion-list strong, .profile-suggestion-list em, .profile-suggestion-list small { display: block; }
.profile-suggestion-list strong { color: var(--green); font-size:12px; }
.profile-suggestion-list em { margin-top: 3px; color: var(--ink); font-size: 12px; font-style: normal; font-weight: 700; overflow-wrap: anywhere; }
.profile-suggestion-list small { margin-top: 4px; color: var(--muted); font-size:12px; font-weight: 500; line-height: 1.5; }
.configuration-recommendation-card { background: linear-gradient(145deg, #f9fbf6, #eef3e8); border-color: rgba(184,138,59,.25); }
.configuration-recommendation-model { display: grid; gap: 3px; margin-top: 10px; padding: 11px; border-radius: 12px; background: white; }
.configuration-recommendation-model small, .configuration-recommendation-model span { color: var(--muted); font-size:12px; }
.configuration-recommendation-model strong { color: var(--green); font-size: 13px; }
.configuration-recommendation-list { display: grid; gap: 7px; margin: 9px 0; }
.configuration-recommendation-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid rgba(22,63,53,.08); border-radius: 11px; background: white; }
.configuration-recommendation-list article div > * { display: block; }
.configuration-recommendation-list article small { color: var(--muted); font-size:12px; }
.configuration-recommendation-list article strong { color: var(--ink); font-size:13px; }
.configuration-recommendation-list article span { margin-top: 3px; color: #53615c; font-size:12px; line-height: 1.45; }
.configuration-recommendation-card > .secondary-button { width: 100%; margin-top: 10px; }
.chat-save-bar { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 14px; border-radius: 15px; background: var(--green); color: white; }
.chat-save-bar strong, .chat-save-bar span { display: block; }
.chat-save-bar strong { font-size:13px; }
.chat-save-bar span { margin-top: 3px; color: rgba(255,255,255,.66); font-size:12px; line-height: 1.45; }
.chat-save-bar .primary-button { flex: 0 0 auto; background: white; color: var(--green); box-shadow: none; }
.chat-save-actions { display: flex; flex: 0 0 auto; gap: 7px; align-items: center; }
.chat-save-actions .secondary-button { border-color: rgba(255,255,255,.45); background: transparent; color: white; }
.chat-save-actions .secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.chat-save-actions .secondary-button[data-sent="true"] { opacity: 1; border-color: #9fe1bd; background: #d9f2e4; color: var(--green); }
.chat-save-status { display: block; margin-top: 8px; font-size:12px; line-height: 1.5; font-style: normal; color: rgba(255,255,255,.76); }
.chat-save-status.saving { color: #ffe9aa; }
.chat-save-status.success { color: #c8f3dc; font-weight: 700; }
.chat-save-status.error { color: #ffd1c7; font-weight: 700; }
.chat-save-bar .primary-button:disabled { opacity: .82; cursor: wait; }
.chat-save-bar .primary-button[data-saved="true"] { opacity: 1; cursor: default; background: #d9f2e4; }
.saved-chat-image { display: block; margin-top: 9px; overflow: hidden; border: 1px solid rgba(22,63,53,.12); border-radius: 12px; background: white; }
.saved-chat-image img { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #eef2ee; }

.experience-hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 18px; background: linear-gradient(145deg, rgba(255,254,250,.98), rgba(234,244,237,.94)); }
.experience-hero .muted { max-width: 760px; margin-bottom: 0; }
.experience-layout { display: grid; grid-template-columns: minmax(360px, .75fr) minmax(440px, 1.25fr); gap: 18px; align-items: start; }
.experience-form { margin-top: 0; }
.experience-list { display: grid; gap: 10px; max-height: 760px; overflow-y: auto; padding-right: 4px; }
.experience-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcf8; }
.experience-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.experience-card-head > span:first-child { color: var(--gold); font-size:12px; font-weight: 800; }
.experience-card > strong { display: block; margin-top: 7px; color: var(--green); font-size: 13px; }
.experience-card > p, .experience-card details p { margin: 7px 0; color: #45534e; font-size:13px; line-height: 1.65; }
.experience-card > small { display: block; margin-top: 8px; color: var(--muted); font-size:12px; }
.experience-card details { margin-top: 8px; color: var(--green-2); font-size:13px; }
.experience-card summary { cursor: pointer; font-weight: 700; }
.experience-review-actions { display: flex; gap: 8px; margin-top: 11px; }
.experience-review-actions button { padding: 8px 10px; font-size:13px; }

.analytics-hero { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; margin-bottom: 14px; background: linear-gradient(145deg, rgba(255,254,250,.98), rgba(231,242,233,.92)); }
.analytics-hero .muted { max-width: 780px; margin-bottom: 0; }
.analytics-hero-actions { display: flex; flex: 0 0 auto; gap: 9px; align-items: center; }
.analytics-warnings { display: grid; gap: 7px; margin-bottom: 14px; }
.analytics-warnings:empty { display: none; }
.analytics-warnings > div { display: flex; gap: 10px; align-items: center; padding: 10px 13px; border: 1px solid #e5cf9e; border-radius: 12px; background: #fff9e9; color: #70551c; }
.analytics-warnings span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #ecd8a8; font-size:13px; font-weight: 800; }
.analytics-warnings p { margin: 0; font-size:13px; line-height: 1.5; }
.analytics-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.analytics-metrics .metric-card { min-height: 128px; }
.analytics-grid { margin-top: 18px; }
.analytics-product-line-panel { margin-top:18px; }
.analytics-product-lines { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.analytics-product-lines article { display:grid; gap:12px; padding:14px; border:1px solid var(--line); border-radius:14px; background:#fbfcf8; }
.analytics-product-lines article>div:first-child small,.analytics-product-lines article>div:first-child strong,.analytics-product-lines article>div:first-child span { display:block; }
.analytics-product-lines article>div:first-child small { color:var(--muted); font-size:11px; }
.analytics-product-lines article>div:first-child strong { margin-top:3px; color:var(--green); font-size:17px; }
.analytics-product-lines article>div:first-child span { margin-top:4px; color:var(--muted); font-size:12px; }
.analytics-product-lines article>div:last-child { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.analytics-product-lines article>div:last-child span { display:grid; gap:3px; padding:8px; border-radius:10px; background:#f1f6f2; color:var(--muted); font-size:11px; }
.analytics-product-lines article>div:last-child strong { color:var(--green); font-size:12px; }
.analytics-bars { display: grid; gap: 12px; }
.analytics-bar-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; color: #4e5b56; font-size:13px; }
.analytics-bar-row strong { color: var(--green); }
.analytics-bar-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e9eee9; }
.analytics-bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-2), #9bb9a8); }
.analytics-velocity { display:grid; gap:8px; }
.analytics-velocity article { display:flex; justify-content:space-between; gap:14px; align-items:center; padding:11px 12px; border:1px solid var(--line); border-radius:12px; background:#fbfcf8; }
.analytics-velocity article > div > *, .analytics-velocity article > span > * { display:block; }
.analytics-velocity article > span { text-align:right; }
.analytics-velocity strong { color:var(--green); font-size:13px; }
.analytics-velocity article > span strong { font:600 20px Georgia,serif; }
.analytics-velocity small { margin-top:3px; color:var(--muted); font-size:12px; }
.analytics-empty { min-height: 115px; display: grid; place-content: center; gap: 4px; color: var(--muted); text-align: center; }
.analytics-empty strong { color: var(--ink); font-size: 12px; }
.analytics-empty span { font-size:12px; }
.analytics-quality-panel { margin-top: 18px; }
.analytics-review-grid { grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); }
.analytics-trend,.analytics-owners { display:grid; gap:8px; }
.analytics-trend article { display:grid; grid-template-columns:86px minmax(0,1fr) minmax(0,1fr); gap:10px; align-items:center; padding:10px 11px; border:1px solid var(--line); border-radius:12px; background:#fbfcf8; }
.analytics-trend article > strong { font-size:12px; }
.analytics-trend article > div { display:grid; grid-template-columns:50px minmax(20px,1fr) 22px; gap:6px; align-items:center; }
.analytics-trend span,.analytics-trend em { color:var(--muted); font-size:12px; font-style:normal; }
.analytics-trend em { text-align:right; font-weight:800; }
.analytics-trend i { display:block; height:7px; border-radius:999px; background:#9bb9a8; }
.analytics-trend i.quotation { background:#d2ae58; }
.analytics-owners article { display:grid; grid-template-columns:minmax(120px,.75fr) minmax(0,1.25fr); gap:10px; align-items:center; padding:11px; border:1px solid var(--line); border-radius:12px; background:#fbfcf8; }
.analytics-owners article > div:first-child strong,.analytics-owners article > div:first-child small { display:block; }
.analytics-owners article > div:first-child strong { font-size:13px; }
.analytics-owners article > div:first-child small { margin-top:3px; color:var(--muted); font-size:12px; }
.analytics-owners article > div:last-child { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.analytics-owners article > div:last-child span { display:grid; gap:3px; color:var(--muted); font-size:12px; }
.analytics-owners article > div:last-child strong { color:var(--green); font-size:13px; }
.analytics-demand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.analytics-demand article { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf8; }
.analytics-demand article > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--green); font-size:12px; font-weight: 800; }
.analytics-demand div > * { display: block; }
.analytics-demand small, .analytics-demand em { color: var(--muted); font-size:12px; font-style: normal; }
.analytics-demand strong { font-size:13px; }
.analytics-demand article > div:last-child { text-align: right; }
.analytics-outcomes { display: grid; gap: 8px; }
.analytics-outcomes article { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf8; }
.analytics-outcomes article div:last-child { text-align: right; }
.analytics-outcomes strong, .analytics-outcomes span { display: block; }
.analytics-outcomes strong { font-size: 12px; }
.analytics-outcomes span { margin-top: 3px; color: var(--muted); font-size:12px; }
.analytics-suggestions { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.analytics-suggestions li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 11px; border-radius: 12px; background: #f2f7f3; }
.analytics-suggestions li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--green); color: white; }
.analytics-suggestions p { margin: 0; color: #43514c; font-size:13px; line-height: 1.55; }
.analytics-quality { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.analytics-quality > div { padding: 13px; border-radius: 12px; background: #f3f7f3; }
.analytics-quality span, .analytics-quality strong, .analytics-quality small { display: block; }
.analytics-quality span, .analytics-quality small { color: var(--muted); font-size:12px; }
.analytics-quality strong { margin: 5px 0; color: var(--green); font: 600 22px Georgia, serif; }
.analytics-definitions { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 11px; color: var(--muted); font-size:12px; }
.analytics-definitions summary { cursor: pointer; color: var(--green-2); font-weight: 750; }
.analytics-definitions div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.analytics-definitions p { margin: 0; padding: 10px; border-radius: 10px; background: #f7f9f6; line-height: 1.5; }
.analytics-definitions strong, .analytics-definitions span { display: block; }
.analytics-definitions strong { color: var(--ink); }

@media (max-width: 980px) {
  .auth-layout { grid-template-columns: 1fr; padding: 50px 7vw; }
  .auth-brand h1 { font-size: 48px; }
  .auth-card { justify-self: start; }
  .app-layout { grid-template-columns: 78px 1fr; }
  .sidebar-brand > div:last-child, .nav-item span, .sidebar-foot { display: none; }
  .sidebar-brand { justify-content: center; padding-inline: 0; }
  .nav-item { justify-content: center; padding-inline: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .team-grid { grid-template-columns: 1fr; }
  .connection-grid { grid-template-columns: repeat(2, 1fr); }
  .import-counts { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
  .customer-layout { grid-template-columns: 1fr; }
  .chat-assistant-layout { grid-template-columns: 1fr; }
  .experience-layout { grid-template-columns: 1fr; }
  .chat-result-panel { position: static; }
  .customer-directory { position: static; max-height: none; }
  .customer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-sales-status-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-timeline { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-confirm { grid-template-columns: 1fr; }
  .model-guide { grid-template-columns: 1fr; }
  .sales-backup-panel { grid-template-columns: 1fr; }
  .document-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-toolbar { grid-template-columns: 1fr 1fr; }
  .media-rule { grid-column: span 2; }
  .workbench-fields.four-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .configuration-toolbar { grid-template-columns: 1fr 1fr; }
  .configuration-toolbar .secondary-button { grid-column: span 2; }
  .configuration-selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draft-item-card { grid-template-columns: 1fr; }
  .draft-item-values { grid-template-columns: 90px 1fr 1fr auto 28px; }
  .analytics-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-quality { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .auth-layout { padding: 30px 20px; }
  .auth-brand { gap: 18px; }
  .auth-brand h1 { font-size: 38px; }
  .brand-points { display: none; }
  .auth-card { padding: 26px 22px; }
  .app-layout { display: block; }
  .sidebar { position: fixed; z-index: 10; top: auto; bottom: 0; width: 100%; height: 68px; flex-direction: row; padding: 8px 12px; }
  .sidebar-brand, .sidebar-foot { display: none; }
  nav { width: 100%; display: flex; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  .nav-item { width: auto; min-width: 62px; flex: 1 0 62px; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; }
  .nav-item span { display: block; font-size:12px; }
  .workspace { padding: 26px 18px 100px; }
  .topbar { display: block; }
  .service-state { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 112px; padding: 16px; }
  .module-grid, .structure-grid { grid-template-columns: 1fr; }
  .connection-grid { grid-template-columns: 1fr; }
  .progress-copy { display: block; }
  .progress-copy span { display: block; margin-top: 5px; }
  .import-hero { display: grid; }
  .import-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-confirm { grid-template-columns: 1fr; }
  .customer-hero { display: grid; }
  .chat-hero { display: grid; }
  .experience-hero { display: grid; }
  .quick-customer-grid, .chat-insight-grid { grid-template-columns: 1fr; }
  .chat-image-tray { grid-template-columns: 1fr; }
  .chat-field-row, .chat-submit-row, .chat-save-bar { display: grid; }
  .chat-submit-row .primary-button, .chat-save-bar .primary-button { width: 100%; }
  .chat-save-actions { display: grid; width: 100%; }
  .chat-save-actions .secondary-button { width: 100%; }
  .chat-history-entry { width: 94%; }
  .chat-history-entry-head { display: grid; gap: 2px; }
  .chat-history-entry-head span { text-align: left; }
  .chat-input-actions { display: grid; grid-template-columns: 1fr; }
  .file-entry-button { justify-content: center; }
  .customer-list, .customer-work-grid { grid-template-columns: 1fr; }
  .customer-assign-form { grid-template-columns: 1fr; }
  .customer-sales-status-head { display: grid; }
  .customer-sales-status-head span { text-align: left; }
  .customer-sales-status-fields { grid-template-columns: 1fr; }
  .deal-overview-fields, .deal-next-fields, .deal-b2b-fields, .deal-timeline { grid-template-columns: 1fr; }
  .deal-next-fields .span-two, .deal-b2b-fields .span-two { grid-column:auto; }
  .task-complete-next-form { position:fixed; left:18px; right:18px; top:auto; bottom:20px; width:auto; }
  .customer-sales-status-fields .span-two { grid-column: auto; }
  .customer-sales-status-fields input, .customer-sales-status-fields select { min-height: 44px; }
  .customer-sales-status-fields textarea { min-height: 72px; }
  .chat-message { max-width: 94%; }
  .hero-panel { display: grid; }
  .product-command-top, .product-command-status { display: grid; justify-content: stretch; }
  .product-browser-actions { display: grid; justify-content: stretch; }
  .product-filter-primary, .product-filter-advanced { grid-template-columns: 1fr; }
  .settings-hero { display: grid; }
  .sales-backup-actions .primary-button, .sales-backup-actions .secondary-button { width: 100%; min-height: 45px; }
  .security-seal { min-width: 0; }
  .catalog-status { min-width: 0; }
  .document-hero { display: grid; }
  .document-summary { min-width: 0; }
  .document-template-grid, .document-gates { grid-template-columns: 1fr; }
  .media-library-head, .media-toolbar { display: grid; grid-template-columns: 1fr; }
  .product-readiness-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-browser-head { display: grid; }
  .product-view-tabs { width: 100%; }
  .product-view-tabs button { flex: 1; }
  .product-model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-filter-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-filter-wide { grid-column: 1 / -1; }
  .product-config-layout { grid-template-columns: 1fr; }
  .product-config-detail { position: static; }
  .media-summary { min-width: 0; }
  .media-rule { grid-column: auto; }
  .media-catalog-grid { grid-template-columns: 1fr; }
  .media-card-image { height: 210px; }
  .workbench-head { display: grid; }
  .workbench-fields.two-columns, .workbench-fields.three-columns, .workbench-fields.four-columns { grid-template-columns: 1fr; }
  .workbench-fields .span-two { grid-column: auto; }
  .configuration-toolbar { grid-template-columns: 1fr; }
  .configuration-toolbar .secondary-button { grid-column: auto; }
  .configuration-selector-grid, .chat-result-summary { grid-template-columns: 1fr; }
  .configuration-choice-card { grid-template-columns: 82px minmax(0, 1fr); }
  .presentation-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .presentation-controls > label:first-child { grid-column: 1 / -1; }
  .draft-item-card { padding: 13px; }
  .draft-item-main { display: grid; grid-template-columns: 30px 58px minmax(0, 1fr); }
  .draft-item-thumb { width: 58px; height: 46px; }
  .draft-item-values { grid-template-columns: 86px 1fr 1fr auto; }
  .draft-item-values .remove-item-button { grid-column: 4; grid-row: 1; justify-self: end; }
  .draft-item-values .status-pill { grid-column: 1 / -1; justify-self: start; }
  .workbench-actions { display: grid; }
  .validation-summary, .validation-gates { grid-template-columns: 1fr; }
  .recent-draft-card { grid-template-columns: 1fr auto; }
  .recent-draft-actions { grid-column: 1 / -1; }
  .analytics-hero, .analytics-hero-actions { display: grid; }
  .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-trend article,.analytics-owners article { grid-template-columns:1fr; }
  .analytics-owners article > div:last-child { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .analytics-demand, .analytics-quality, .analytics-definitions div,.analytics-product-lines { grid-template-columns: 1fr; }
  .analytics-product-lines article>div:last-child { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.product-master-panel .table-wrap { max-height: 440px; overflow: auto; margin: 18px 0; }
.product-master-panel table { min-width: 860px; }
.product-master-actions { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.product-master-actions .form-message { grid-column: 1 / -1; }
.product-master-panel td { vertical-align: middle; }
.product-master-panel td:nth-child(2) { max-width: 260px; }
.compact-button { min-height: 30px; padding: 6px 10px; font-size:12px; white-space: nowrap; }
.revision-tag { display: block; margin-top: 4px; color: #7a5b18; font-size:12px; white-space: nowrap; }
.product-master-editor { min-height: 100%; margin: 0; border: 0; background: #f8faf6; overflow: hidden; }
.product-master-dialog { width: min(1160px, calc(100vw - 210px)); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 20px 0 0 20px; box-shadow: 0 24px 70px #0004; overflow: hidden; }
.product-master-dialog::backdrop { background: #12382e99; }
html:has(.product-master-dialog[open]), body:has(.product-master-dialog[open]) { overflow: hidden; }
.product-batch-approval-dialog { width: min(660px,calc(100vw - 40px)); max-width: none; padding: 0; border: 0; border-radius: 20px; background: #fffdf8; color: var(--ink); box-shadow: 0 26px 80px #102f2860; }
.product-batch-approval-dialog::backdrop { background: #12382e99; backdrop-filter: blur(2px); }
.product-batch-approval-form > header { display: flex; justify-content: space-between; gap: 18px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.product-batch-approval-form > header h3 { margin: 2px 0 4px; }
.product-batch-approval-form > header p { margin: 0; color: var(--muted); font-size:12px; }
.product-batch-approval-body { display: grid; gap: 12px; padding: 18px 19px; }
.product-batch-approval-summary { display: grid; gap: 5px; padding: 12px; border-radius: 12px; background: #eff7f2; }
.product-batch-approval-summary strong { color: var(--green); font-size: 12px; }
.product-batch-approval-summary span { color: var(--muted); font-size:12px; line-height: 1.5; }
.product-batch-approval-note { margin: 0; padding: 10px; border-radius: 10px; background: #fff5df; color: #775b20; font-size:12px; line-height: 1.5; }
.product-batch-approval-form > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 19px; border-top: 1px solid var(--line); }
.product-batch-approval-form > .form-message { margin: 0; padding: 0 19px 14px; }
.product-master-dialog .product-master-editor { margin: 0; }
#productMasterFields { border: 0; margin: 0; padding: 0; min-width: 0; }
#productMasterFields.hidden { display: none; }
#productMasterLifecycleNote { margin: 0; padding: 9px 11px; border-radius: 10px; background: #eef3ee; }
.product-master-editor-head .muted { margin: 4px 0 0; }
.product-config-row.archived { opacity: .75; }
.product-master-editor.hidden, .product-master-editor [data-product-edit-mode].hidden { display: none; }
.product-master-editor-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 16px 18px 13px; border-bottom: 1px solid rgba(22,63,53,.12); background: #fff; }
.product-master-editor-head h4 { margin: 2px 0 4px; }
.product-master-editor-grid { display: grid; grid-template-columns: 1fr; gap: 11px; align-items: start; max-height: calc(100dvh - 82px); padding: 13px 16px 0; overflow: auto; }
.product-master-editor-grid .span-two { grid-column: auto; }
.product-editor-steps { display: flex; gap: 6px; }
.product-editor-steps span { padding: 6px 9px; border-radius: 8px; background: #eaf0ea; color: var(--muted); font-size:12px; font-weight: 700; }
.product-editor-steps span.active { background: var(--green); color: white; }
.product-master-workspace { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: 12px; align-items: start; }
.product-master-fields { display: grid; gap: 10px; }
.product-editor-side { display: grid; gap: 10px; position: static; align-self: start; }
.product-editor-section { display: grid; gap: 9px; padding: 13px; border: 1px solid rgba(22,63,53,.13); border-radius: 13px; background: #fff; }
.product-editor-section label { margin: 0; }
.product-editor-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product-editor-section-head strong { color: var(--green); font-size:13px; }
.product-editor-section-head small { color: var(--muted); font-size:12px; text-align: right; }
.product-editor-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.product-tier-editor-grid { display: grid; grid-template-columns: 52px minmax(120px,.8fr) minmax(120px,1fr); gap: 7px; align-items: center; }
.product-tier-editor-grid > strong { color: var(--muted); font-size:12px; }
.product-tier-editor-grid > span { font-size:13px; font-weight: 800; }
.product-tier-editor-grid input, .product-tier-editor-grid select { min-width: 0; padding: 8px 9px; }
.product-tier-editor-grid input[readonly] { background: #eff3ef; color: var(--muted); }
.product-master-media-editor { padding: 13px; border: 1px solid rgba(22,63,53,.16); border-radius: 13px; background: #fff; }
.product-master-media-editor-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.product-master-media-editor-head h5 { margin: 2px 0 0; font-size: 14px; }
.product-master-media-editor-head > span { color: var(--muted); font-size:12px; text-align: right; }
.product-master-media-card { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf6; }
.product-master-media-card.available, .product-master-media-card.approved { border-color: rgba(31,90,74,.28); }
.product-master-media-preview { position: relative; min-height: 190px; overflow: hidden; border-radius: 10px; background: #eef2ed; }
.product-master-media-preview > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; background: #eef2ed; }
.product-master-media-preview > .status-pill { position: absolute; top: 9px; right: 9px; }
.product-master-media-preview .media-placeholder { min-height: 190px; }
.product-master-media-controls { display: grid; align-content: start; gap: 10px; }
.product-master-media-controls > div:first-child { display: grid; gap: 3px; }
.product-master-media-controls > div:first-child small, .product-master-media-controls > em { color: var(--muted); font-size:12px; font-style: normal; }
.product-master-media-controls label { margin: 0; }
.product-master-media-controls label > small { display: block; margin-top: 5px; color: var(--muted); font-size:12px; }
.product-master-media-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.product-master-media-empty { display: grid; gap: 4px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.product-editor-audit > p { margin: 0; color: var(--muted); font-size:12px; line-height: 1.5; }
.product-editor-footer { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px 16px; margin: 0; padding: 14px 0 max(16px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(22,63,53,.13); background: transparent; }
.product-editor-footer .form-message { margin: 0; }
.product-editor-save-actions { display: flex; justify-content: flex-end; gap: 8px; min-width: 200px; }
.product-editor-save-actions button { min-width: 150px; }
.danger-text { color: #9b4d38; font-weight: 700; }
.sales-backup-latest a { display: inline-flex; margin-top: 10px; text-decoration: none; width: fit-content; }

@media (max-width: 760px) {
  .product-readiness-grid, .product-model-grid { grid-template-columns: 1fr; }
  .product-filter-wide { grid-column: auto; }
  .product-view-tabs { display: grid; grid-template-columns: 1fr; }
  .product-config-row { grid-template-columns: 1fr; }
  .product-row-action { text-align: left; }
  .product-config-list { max-height: none; }
  .product-detail-price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-master-actions { grid-template-columns: 1fr; }
  .product-master-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .product-master-workspace, .product-editor-field-grid { grid-template-columns: 1fr; }
  .product-editor-side { position: static; }
  .product-editor-steps { overflow-x: auto; }
  .product-editor-steps span { white-space: nowrap; }
  .product-tier-editor-grid { grid-template-columns: 44px minmax(105px,.8fr) minmax(105px,1fr); }
  .product-editor-footer { display: grid; }
  .product-editor-save-actions { min-width: 0; display: grid; grid-template-columns: 1fr; }
  .product-editor-save-actions button { width: 100%; min-width: 0; }
  .product-master-media-card, .product-master-media-actions { grid-template-columns: 1fr; }
  .product-master-media-editor-head { display: grid; }
  .product-master-media-editor-head > span { text-align: left; }
  .product-master-actions .form-message { grid-column: auto; }
}
.system-diagnostics-panel { display: grid; grid-template-columns: minmax(230px,.75fr) minmax(0,1.5fr) minmax(190px,.55fr); gap: 22px; align-items: center; margin-top: 18px; }
.system-diagnostics-panel h3 { margin: 0; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.diagnostic-item { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border-radius: 11px; background: #f4f6f3; }
.diagnostic-item > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e1ebe3; color: var(--green); font-weight: 800; }
.diagnostic-item.warn > span { background: #fbefcf; color: #8b6512; }
.diagnostic-item.fail > span { background: #f7dcdc; color: #9f3030; }
.diagnostic-item div { display: grid; gap: 2px; min-width: 0; }
.diagnostic-item strong { font-size:13px; }
.diagnostic-item small { color: var(--muted); overflow-wrap: anywhere; }
.diagnostic-actions { display: grid; gap: 8px; }
.diagnostic-actions .form-message { margin: 0; }
@media (max-width: 1050px) {
  .system-diagnostics-panel { grid-template-columns: 1fr; }
  .product-filter-primary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-filter-primary .product-filter-wide { grid-column: 1 / -1; }
  .product-filter-advanced { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 620px) { .diagnostic-grid { grid-template-columns: 1fr; } }
@media (min-width: 761px) and (max-width: 1180px) {
  .configuration-selector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Customer profile editing and duplicate resolution */
.customer-facts > .span-two { grid-column: span 2; }
.customer-profile-form { margin-top: 16px; padding: 15px; border: 1px solid rgba(22,63,53,.13); border-radius: 15px; background: #fbfcf8; }
.customer-profile-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: end; margin-top: 12px; }
.customer-profile-fields label { margin: 0; font-size:12px; }
.customer-profile-fields .span-two { grid-column: span 2; }
.customer-profile-fields input, .customer-profile-fields select, .customer-profile-fields textarea { margin-top: 5px; padding: 9px 10px; font-size:13px; }
.customer-profile-fields .secondary-button { min-height: 42px; }
.customer-duplicate-section { display: grid; gap: 9px; margin-top: 14px; padding: 13px; border: 1px solid #e7c9a1; border-radius: 14px; background: #fff9ee; }
.customer-duplicate-section > div { display: grid; gap: 3px; }
.customer-duplicate-section > div > strong { color: #7d551e; font-size:13px; }
.customer-duplicate-section > div > span { color: var(--muted); font-size:12px; }
.customer-duplicate-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid rgba(125,85,30,.16); border-radius: 11px; background: #fffdf8; }
.customer-duplicate-card > div { display: grid; gap: 2px; }
.customer-duplicate-card strong { font-size:13px; }
.customer-duplicate-card span, .customer-duplicate-card small { color: var(--muted); font-size:12px; }
.quick-customer-grid .span-two { grid-column: span 2; }
@media (max-width: 760px) {
  .customer-facts > .span-two, .customer-profile-fields .span-two, .quick-customer-grid .span-two { grid-column: auto; }
  .customer-profile-fields { grid-template-columns: 1fr; }
  .customer-profile-fields input, .customer-profile-fields select { min-height: 44px; }
  .customer-profile-fields textarea { min-height: 72px; }
  .customer-duplicate-card { grid-template-columns: 1fr; }
}
.customer-picker-field { display:grid; gap:6px; align-content:start; }
.customer-picker-field input[type="search"] { min-width:0; padding:9px 11px; border-color:#b8cbc2; background:#f7fbf8; }
.customer-picker-field select { min-width:0; }
.customer-filter-count { color:var(--muted); font-size:12px; font-weight:500; line-height:1.4; }
.workbench-head-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; flex-wrap:wrap; }
.document-draft-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin:2px 0 13px; }
.document-draft-stat { display:grid; gap:2px; padding:10px 11px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); text-align:left; }
.document-draft-stat:hover { border-color:#89a99a; transform:translateY(-1px); }
.document-draft-stat.active { border-color:var(--green); background:#edf5f0; box-shadow:inset 0 0 0 1px rgba(22,63,53,.08); }
.document-draft-stat span { color:var(--muted); font-size:12px; }
.document-draft-stat strong { color:var(--green); font:600 20px Georgia,"Microsoft YaHei",serif; }
.document-draft-toolbar { display:grid; grid-template-columns:minmax(250px,1.7fr) repeat(5,minmax(120px,1fr)) auto; gap:9px; align-items:end; padding:12px; border:1px solid var(--line); border-radius:14px; background:#f7faf7; }
.document-draft-toolbar label { display:grid; gap:5px; margin:0; color:var(--muted); font-size:12px; font-weight:700; }
.document-draft-toolbar input,.document-draft-toolbar select { width:100%; min-width:0; border:1px solid var(--line); border-radius:10px; padding:9px 10px; background:#fff; font:inherit; color:var(--ink); }
.document-draft-search { min-width:0; }
.document-draft-result-row { display:flex; justify-content:space-between; gap:12px; margin:9px 1px 11px; color:var(--muted); font-size:12px; }
.document-draft-result-row strong { color:var(--green); font-size:13px; }
@media(max-width:1180px){.document-draft-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.document-draft-search{grid-column:span 2}.document-draft-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.document-draft-toolbar{grid-template-columns:1fr 1fr}.document-draft-search{grid-column:1/-1}.document-draft-result-row{display:grid}.document-draft-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-head-actions{justify-content:flex-start}}
@media(max-width:1100px){.document-business-flow{grid-template-columns:repeat(3,minmax(0,1fr));}.document-business-flow i{display:none}.quick-document-type-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-document-fields{grid-template-columns:1fr 1fr}.quick-configuration-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.document-business-flow{grid-template-columns:1fr 1fr}.quick-document-fields,.document-source-context{grid-template-columns:1fr}.document-source-card.neutral,.document-source-note{grid-column:1}.quick-configuration-grid{grid-template-columns:1fr}.quick-configuration-head,.quick-document-actions{display:grid}.quick-configuration-head>div:last-child{display:grid;grid-template-columns:1fr 1fr}.quick-document-presentation{display:grid;grid-template-columns:1fr 1fr}.quick-document-presentation>strong{grid-column:1/-1;margin:0}.quick-document-actions .primary-button{min-width:0}.editable-document-notice,.manual-review-fields{grid-template-columns:1fr}.editable-document-steps{grid-template-columns:1fr 1fr}.document-source-actions{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.document-draft-toolbar{grid-template-columns:1fr}.document-draft-search{grid-column:auto}.document-draft-stats{grid-template-columns:1fr 1fr}.customer-picker-field input[type="search"]{font-size:12px}}

/* Daily sales workbench */
.workbench-hero { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:14px; background:linear-gradient(135deg,#fffefa 0%,#edf6f1 100%); }
.workbench-hero h3 { font:600 clamp(24px,2.3vw,34px) Georgia,"Microsoft YaHei",serif; }
.workbench-hero .muted { max-width:720px; margin-bottom:0; }
.workbench-hero-meta { min-width:220px; display:grid; justify-items:end; gap:6px; }
.workbench-hero-meta strong { color:var(--green); font-size:15px; }
.workbench-hero-meta span { color:var(--muted); font-size:13px; }
.workbench-quick-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.workbench-quick-actions button { display:grid; grid-template-columns:34px 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; padding:13px 14px; border:1px solid rgba(22,63,53,.11); border-radius:15px; background:rgba(255,254,250,.9); color:var(--ink); text-align:left; box-shadow:0 6px 20px rgba(30,60,50,.04); }
.workbench-quick-actions button:hover { border-color:#86aa9a; transform:translateY(-1px); }
.workbench-quick-actions span { grid-row:1/3; display:grid; place-items:center; width:34px; height:34px; border-radius:11px; background:var(--mint); color:var(--green); font-weight:800; }
.workbench-quick-actions strong { font-size:12px; }
.workbench-quick-actions small { color:var(--muted); font-size:12px; margin-top:2px; }
.workbench-plan-panel { margin-bottom:14px; }
.workbench-workstreams { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; }
.workbench-workstream { min-width:0; display:grid; grid-template-columns:30px minmax(0,1fr); gap:4px 8px; padding:12px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.workbench-workstream > span { grid-row:1/3; display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--mint); color:var(--green); font-size:13px; font-weight:800; }
.workbench-workstream > div { display:flex; align-items:baseline; justify-content:space-between; gap:6px; }
.workbench-workstream small { color:var(--muted); font-size:12px; }
.workbench-workstream strong { color:var(--green); font-size:20px; line-height:1; }
.workbench-workstream p,.workbench-workstream em { grid-column:1/-1; margin:0; overflow:hidden; text-overflow:ellipsis; }
.workbench-workstream p { min-height:14px; color:var(--ink); font-size:12px; white-space:nowrap; }
.workbench-workstream em { color:var(--muted); font-size:12px; font-style:normal; white-space:nowrap; }
.workbench-workstream.critical { border-color:#e3b0a6; background:#fff9f7; }
.workbench-workstream.warning { border-color:#e6cf9f; background:#fffdf7; }
.workbench-focus-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:10px; padding:6px; border:1px solid rgba(22,63,53,.12); border-radius:16px; background:rgba(255,254,250,.82); }
.workbench-focus-tabs button { display:grid; grid-template-columns:30px minmax(0,1fr); grid-template-rows:auto auto; gap:2px 9px; align-items:center; min-width:0; padding:10px 12px; border:0; border-radius:12px; background:transparent; color:var(--ink); text-align:left; }
.workbench-focus-tabs button > span { grid-row:1/3; display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:#edf3ef; color:var(--green); font-size:11px; font-weight:800; }
.workbench-focus-tabs button strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.workbench-focus-tabs button small { color:var(--muted); font-size:11px; }
.workbench-focus-tabs button.active { background:var(--green); color:#fff; box-shadow:0 8px 20px rgba(22,63,53,.16); }
.workbench-focus-tabs button.active > span { background:rgba(255,255,255,.16); color:#fff; }
.workbench-focus-tabs button.active small { color:rgba(255,255,255,.72); }
.workbench-overview-details { margin-top:10px; border:1px solid rgba(22,63,53,.12); border-radius:14px; background:rgba(255,254,250,.76); }
.workbench-overview-details > summary { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 13px; color:var(--green); cursor:pointer; list-style:none; }
.workbench-overview-details > summary::-webkit-details-marker { display:none; }
.workbench-overview-details > summary span { display:grid; gap:2px; }
.workbench-overview-details > summary strong { font-size:13px; }
.workbench-overview-details > summary small { color:var(--muted); font-size:11px; font-weight:400; }
.workbench-overview-details > summary b { flex:0 0 auto; padding:5px 8px; border-radius:999px; background:var(--mint); font-size:11px; }
.workbench-overview-details[open] > summary b { font-size:0; }
.workbench-overview-details[open] > summary b::after { content:"收起概览"; font-size:11px; }
.workbench-overview-details > .metrics { margin:0 12px 10px; }
.workbench-overview-details > .workbench-plan-panel { margin:0 12px 12px; }
.daily-workbench-stack > [data-workbench-focus-panel][hidden] { display:none!important; }
.daily-workbench-stack > .panel { min-height:360px; }
.workbench-review-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; align-items:start; }
.workbench-inquiry-list { display:grid; gap:8px; max-height:610px; overflow:auto; padding-right:3px; }
.workbench-inquiry { display:grid; grid-template-columns:86px minmax(170px,1.15fr) minmax(170px,1fr) minmax(190px,1.35fr) auto; gap:10px; align-items:center; width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:13px; background:#fff; color:var(--ink); text-align:left; }
.workbench-inquiry:hover { border-color:#8bb09f; background:#fbfefc; }
.workbench-inquiry.high { border-color:#e3b0a6; background:#fff9f7; }
.workbench-inquiry > span { justify-self:start; padding:5px 7px; border-radius:8px; background:#edf3ef; color:var(--green); font-size:12px; font-weight:800; }
.workbench-inquiry.high > span { background:#fae7e3; color:var(--danger); }
.workbench-inquiry div { min-width:0; display:grid; gap:3px; }
.workbench-inquiry strong,.workbench-inquiry b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.workbench-inquiry b { font-weight:700; }
.workbench-inquiry small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:11px; }
.workbench-inquiry em { justify-self:end; color:var(--green); font-size:12px; font-style:normal; font-weight:800; }
.daily-workbench-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(330px,.85fr); gap:14px; align-items:start; }
.workbench-task-panel { grid-row:span 2; }
.workbench-review-panel { grid-column:1/-1; }
.workbench-filters { display:flex; flex-wrap:wrap; gap:7px; margin:-4px 0 12px; }
.workbench-filters button { border:1px solid var(--line); border-radius:999px; padding:6px 10px; background:#fff; color:var(--muted); font-size:13px; }
.workbench-filters button span { display:inline-grid; place-items:center; min-width:16px; height:16px; margin-left:3px; padding:0 4px; border-radius:999px; background:#edf3ef; color:var(--green); font-size:12px; }
.workbench-filters button.active { border-color:var(--green); background:var(--green); color:#fff; }
.workbench-filters button.active span { background:rgba(255,255,255,.18); color:#fff; }
.workbench-task-list,.workbench-queue,.workbench-attention-list,.workbench-customer-list,.workbench-review-list { display:grid; gap:8px; }
.workbench-task-list,.workbench-attention-list { max-height:680px; overflow:auto; overscroll-behavior:contain; padding-right:3px; }
.workbench-task { display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:11px; align-items:center; padding:11px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.workbench-task.overdue { border-color:#e6b8af; background:#fff9f7; }
.workbench-task.today { border-color:#dfc68d; background:#fffdf7; }
.workbench-task-state { justify-self:start; padding:5px 7px; border-radius:999px; background:#edf3ef; color:var(--green); font-size:12px; font-weight:800; }
.workbench-task.overdue .workbench-task-state { background:#fae7e3; color:var(--danger); }
.workbench-task.today .workbench-task-state { background:#f4e9cf; color:#805b19; }
.workbench-task-copy { min-width:0; display:grid; gap:2px; }
.workbench-task-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.workbench-task-copy span,.workbench-task-copy small { color:var(--muted); font-size:12px; }
.workbench-task-copy .workbench-task-meta { display:flex; align-items:center; gap:6px; }
.workbench-task-meta i { flex:0 0 auto; padding:3px 5px; border-radius:6px; background:var(--mint); color:var(--green); font-size:12px; font-style:normal; font-weight:800; }
.workbench-task-actions { display:flex; gap:5px; }
.workbench-task-actions.order-managed { flex-direction:column;align-items:flex-end;max-width:220px; }
.workbench-order-task-hint { color:var(--muted);font-size:11px;line-height:1.4;text-align:right; }
.workbench-task-actions button { border:1px solid var(--line); border-radius:8px; padding:6px 7px; background:#fff; color:var(--green); font-size:12px; font-weight:700; }
.workbench-task-actions button.complete { border-color:var(--green); background:var(--green); color:#fff; }
.workbench-document,.workbench-customer,.workbench-review-item { width:100%; border:1px solid var(--line); border-radius:12px; padding:10px; background:#fff; color:var(--ink); text-align:left; }
.workbench-document { display:grid; grid-template-columns:auto minmax(0,1fr); gap:9px; align-items:center; }
.workbench-document-status { padding:5px 7px; border-radius:8px; background:#edf3ef; color:var(--green); font-size:12px; font-weight:800; }
.workbench-document-status.review { background:#f4e9cf; color:#805b19; }
.workbench-document div,.workbench-customer div { min-width:0; display:grid; gap:3px; }
.workbench-document strong,.workbench-customer strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.workbench-document small,.workbench-customer small { color:var(--muted); font-size:12px; }
.workbench-customer { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:9px; align-items:center; }
.workbench-customer > span { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--mint); color:var(--green); font-weight:800; }
.workbench-customer em { color:var(--muted); font-size:12px; font-style:normal; }
.workbench-attention { width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:9px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); text-align:left; }
.workbench-attention > span { padding:5px 7px; border-radius:8px; background:#f4e9cf; color:#805b19; font-size:12px; font-weight:800; }
.workbench-attention.high { border-color:#e3b0a6; background:#fff9f7; }
.workbench-attention.high > span { background:#fae7e3; color:var(--danger); }
.workbench-attention div { min-width:0; display:grid; gap:3px; }
.workbench-attention strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.workbench-attention small { color:var(--muted); font-size:12px; }
.workbench-attention em { color:var(--green); font-size:12px; font-style:normal; font-weight:800; }
.workbench-review-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
.workbench-review-item,.workbench-review-note { display:grid; gap:4px; padding:12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.workbench-review-item.warning { border-color:#e7c99c; background:#fffaf0; }
.workbench-review-item strong,.workbench-review-note strong { font-size:13px; }
.workbench-review-item span,.workbench-review-note span { color:var(--muted); font-size:12px; }
.workbench-review-note.ready { border-color:#b9d8c9; background:#f5fbf7; }
.workbench-empty { display:grid; gap:4px; padding:20px 12px; border:1px dashed var(--line); border-radius:12px; text-align:center; }
.workbench-empty strong { font-size:13px; }.workbench-empty span { color:var(--muted); font-size:12px; }
.panel .text-button { color:var(--green); padding:4px 0; font-weight:700; }
@media(max-width:1100px){.workbench-workstreams{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench-focus-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-inquiry{grid-template-columns:80px minmax(160px,1fr) minmax(160px,1fr) auto}.workbench-inquiry .inquiry-opportunity{display:none}.workbench-review-grid,.daily-workbench-grid{grid-template-columns:1fr}.workbench-task-panel{grid-row:auto}.workbench-review-panel{grid-column:auto}.workbench-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.workbench-hero{display:grid}.workbench-hero-meta{min-width:0;justify-items:start}.workbench-quick-actions{grid-template-columns:1fr 1fr}.workbench-quick-actions button{grid-template-columns:28px 1fr;padding:10px}.workbench-quick-actions span{width:28px;height:28px}.workbench-workstreams{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-focus-tabs{grid-template-columns:1fr 1fr}.workbench-focus-tabs button{padding:8px}.workbench-inquiry{grid-template-columns:auto minmax(0,1fr)}.workbench-inquiry .inquiry-source,.workbench-inquiry .inquiry-opportunity{display:none}.workbench-inquiry em{grid-column:2;justify-self:start}.daily-workbench-grid{gap:10px}.workbench-task{grid-template-columns:52px minmax(0,1fr)}.workbench-task-actions{grid-column:1/-1;justify-content:flex-end}.workbench-review-list{grid-template-columns:1fr}.workbench-customer{grid-template-columns:30px minmax(0,1fr)}.workbench-customer em{grid-column:2}.workbench-attention{grid-template-columns:auto minmax(0,1fr)}.workbench-attention em{grid-column:2}.workbench-document strong{white-space:normal}}
/* Business master data v0.2.12 */
.business-master-panel { margin-top:16px; }
.business-master-head { align-items:flex-start; }
.business-master-head > div:first-child { max-width:820px; }
.business-master-summary { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.business-master-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.business-master-grid fieldset { min-width:0; margin:0; padding:16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; border:1px solid var(--line); border-radius:16px; background:#fbfcf8; }
.business-master-grid legend { width:100%; padding:0 2px 8px; display:flex; align-items:center; gap:10px; color:var(--green-1); }
.business-master-grid legend > span { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; background:#e4f0eb; font-size:13px; font-weight:800; }
.business-master-grid legend div { display:grid; gap:2px; }
.business-master-grid legend strong { font-size:14px; }
.business-master-grid legend small { color:#9b6c20; font-size:13px; }
.business-master-grid legend small.ready { color:#26745d; }
.business-master-grid label { display:grid; gap:6px; font-size:12px; color:#52615b; }
.business-master-grid .span-two { grid-column:1/-1; }
.business-master-grid textarea { resize:vertical; min-height:68px; }
.business-master-actions { margin-top:14px; padding:14px; display:grid; grid-template-columns:auto minmax(310px,1fr) minmax(220px,1fr) minmax(190px,.8fr) auto; gap:12px; align-items:end; border:1px solid var(--line); border-radius:15px; background:#f4f8f5; }
.business-master-actions > label { display:grid; gap:6px; font-size:12px; color:#52615b; }
.business-approval-scopes { min-height:44px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.business-approval-scopes label { display:flex; align-items:center; gap:6px; padding:7px 9px; border:1px solid var(--line); border-radius:9px; background:white; font-size:12px; }
.business-approval-scopes input { width:auto; margin:0; }
.business-master-actions .form-message { grid-column:1/-1; margin:0; }
@media(max-width:1100px){.business-master-grid{grid-template-columns:1fr}.business-master-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.business-master-actions .form-message{grid-column:1/-1}}
@media(max-width:620px){.business-master-grid fieldset{grid-template-columns:1fr;padding:13px}.business-master-grid .span-two{grid-column:auto}.business-master-actions{grid-template-columns:1fr}.business-master-summary{justify-content:flex-start}.business-master-actions .primary-button,.business-master-actions .secondary-button{width:100%}}
/* Team security and audit v0.2.12 */
.self-tag { margin-left: 7px; padding: 3px 6px; border-radius: 999px; background: #e5f0e9; color: var(--green); font-size:12px; white-space: nowrap; }
.user-management-panel.hidden, .audit-log-panel.hidden, #createUserPanel.hidden { display: none; }
.user-management-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: end; }
.user-management-form label { margin: 0; }
.user-management-form .form-message { grid-column: 1 / -1; }
.audit-log-list { display: grid; gap: 7px; max-height: 480px; overflow: auto; padding-right: 5px; }
.audit-log-entry { display: grid; grid-template-columns: 135px minmax(0,1fr); gap: 13px; padding: 10px 12px; border: 1px solid rgba(22,63,53,.11); border-radius: 11px; background: #fbfcf8; }
.audit-log-entry > span { color: var(--muted); font-size:12px; }
.audit-log-entry > div { display: grid; gap: 3px; }
.audit-log-entry strong { font-size:13px; }
.audit-log-entry small, .audit-log-entry p { margin: 0; color: var(--muted); font-size:12px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .user-management-form { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) {
  .user-management-form { grid-template-columns: 1fr; }
  .user-management-form .form-message { grid-column: auto; }
  .audit-log-entry { grid-template-columns: 1fr; gap: 4px; }
}
/* Approved document fulfillment timeline */
.document-event-panel.hidden, .document-event-form [data-sensitive-event].hidden { display:none; }
.document-event-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; align-items:end; }
.document-event-form label { margin:0; }
.document-event-form .span-two { grid-column:span 2; }
.document-event-form .form-message { grid-column:1 / -1; }
.fulfillment-stage { display:block; margin-top:7px; color:#43685e; font-size:12px; font-weight:700; }
.document-event-timeline { margin-top:7px; }
.document-event-timeline summary { color:var(--green); cursor:pointer; font-size:12px; font-weight:700; }
.document-event-timeline p { display:grid; gap:2px; margin:6px 0 0; padding:7px 9px; border-left:2px solid #b9ccbF; background:#f6f9f6; }
.document-event-timeline p strong { font-size:12px; }
.document-event-timeline p span, .document-event-timeline p small { color:var(--muted); font-size:12px; }
@media(max-width:920px){.document-event-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.document-event-form{grid-template-columns:1fr}.document-event-form .span-two,.document-event-form .form-message{grid-column:auto}}.translation-review-card { margin-top: 14px; padding: 13px; border: 1px solid rgba(183,142,52,.34); border-radius: 13px; background: #fffaf0; }
.translation-review-card .translation-editor { min-height: 132px; margin-bottom: 9px; border-left-color: #b78e34; background: #fff; }
.translation-review-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.translation-review-actions span { color: #746845; font-size:13px; line-height: 1.45; }
.translation-learning-preview { margin-top: 9px!important; padding: 8px 10px; border-radius: 9px; background: #f2eee0; color: #5f593f!important; font-size:13px!important; }
.translation-review-hint { display: block; margin-top: 8px; color: #7b786f; font-size:12px; line-height: 1.5; }
.chat-history-review { margin-top: 9px; padding-top: 8px; border-top: 1px dashed rgba(183,142,52,.38); }
.chat-history-review summary { color: #8a6a29!important; font-weight: 800; }
.chat-history-review ol { display: grid; gap: 7px; margin: 8px 0 0; padding-left: 20px; }
.chat-history-review li strong,.chat-history-review li span { display: block; }
.chat-history-review li strong { color: #665426; font-size:13px; }
.chat-history-review li span { margin-top: 3px; color: #6f746f; font-size:13px; line-height: 1.5; }
@media (max-width: 720px) { .translation-review-actions { align-items: stretch; } .translation-review-actions button { width: 100%; } }
.phone-inference-hint { display:block; margin-top:5px; color:var(--muted); font-size:12px; line-height:1.45; }
.phone-inference-hint.matched { color:var(--green-2); font-weight:700; }
.chat-draft-status-actions { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:8px; padding-top:8px; border-top:1px dashed rgba(183,142,52,.35); }
.chat-draft-status-actions span { margin-right:2px; color:#7a6b43; font-size:12px; font-weight:700; }
.chat-draft-status-actions button { min-height:24px; padding:3px 7px; border:1px solid rgba(183,142,52,.35); border-radius:999px; background:#fffdf6; color:#70591f; font:inherit; font-size:12px; cursor:pointer; }
.chat-draft-status-actions button:hover { border-color:#a77c25; background:#fff5d6; }
.chat-draft-status-actions button:disabled { border-color:rgba(22,96,73,.25); background:#e9f3ee; color:var(--green-2); cursor:default; opacity:1; }
@media (max-width:720px) {
  .chat-draft-status-actions button { flex:1 1 auto; }
}

/* Progressive customer lifecycle master */
.customer-readiness { margin-top:16px; display:grid; grid-template-columns:1.25fr repeat(5,minmax(0,1fr)); gap:8px; }
.customer-readiness > * { min-width:0; padding:11px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.readiness-score { display:grid; grid-template-columns:1fr auto; gap:3px 8px; background:linear-gradient(135deg,#eaf4ee,#fffdf7); }
.readiness-score span,.customer-readiness article span { color:var(--muted); font-size:12px; }
.readiness-score strong { grid-row:1/3; grid-column:2; align-self:center; color:var(--green); font:700 22px Georgia,serif; }
.readiness-score small { color:var(--muted); font-size:12px; line-height:1.4; }
.customer-readiness article { display:grid; gap:5px; border-top:3px solid #c9963b; }
.customer-readiness article.ready { border-top-color:#2c8064; background:#f5faf7; }
.customer-readiness article div { display:flex; justify-content:space-between; gap:5px; }
.customer-readiness article strong { font-size:13px; }
.customer-readiness article small { overflow-wrap:anywhere; color:var(--muted); font-size:12px; line-height:1.45; }
.customer-business-profile-form { margin-top:16px; padding:16px; border:1px solid rgba(22,63,53,.14); border-radius:16px; background:linear-gradient(145deg,#fbfdf9,#fffdf7); }
.customer-business-profile-form > details,.deal-operations { margin-top:10px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.72); }
.customer-business-profile-form summary,.deal-operations summary { padding:11px 12px; color:var(--green); font-size:13px; font-weight:800; cursor:pointer; }
.customer-business-profile-form summary small,.deal-operations summary small { margin-left:7px; color:var(--muted); font-size:12px; font-weight:600; }
.customer-business-profile-form details .customer-profile-fields,.deal-operations .customer-profile-fields { margin:0; padding:0 12px 12px; }
.customer-business-profile-form > .secondary-button { margin-top:12px; }
@media(max-width:1450px){.customer-readiness{grid-template-columns:repeat(3,minmax(0,1fr))}.readiness-score{grid-column:span 3}}
@media(max-width:720px){.customer-readiness{grid-template-columns:1fr 1fr}.readiness-score{grid-column:1/-1}.customer-business-profile-form summary small,.deal-operations summary small{display:block;margin:3px 0 0}}

/* Multi-order project ledger */
.order-switcher,.order-ledger{margin-top:16px;padding:16px;border:1px solid #d8e3dc;border-radius:17px;background:#fbfcf8}
.order-switcher>div:first-child{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-switcher>div:first-child span{color:var(--muted);font-size:12px}
.order-switcher-list{display:flex;gap:8px;overflow:auto;margin-top:11px;padding-bottom:3px}.order-switcher-list button{min-width:165px;padding:9px 11px;border:1px solid #d8e3dc;border-radius:12px;background:#fff;text-align:left;color:#24483d;font:inherit;cursor:pointer}.order-switcher-list button strong,.order-switcher-list button span{display:block}.order-switcher-list button span{margin-top:3px;color:var(--muted);font-size:12px}.order-switcher-list button.active{border-color:#1f6b55;background:#eaf4ef;box-shadow:0 0 0 2px rgba(31,107,85,.08)}.order-switcher-list .new-order{min-width:110px;text-align:center;font-weight:800}
.customer-document-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:310px;margin-top:12px;overflow:auto;padding-right:3px}.customer-document-card{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid #d7e4dc;border-radius:13px;background:#fbfdf9;color:var(--green);font:inherit;text-align:left;cursor:pointer}.customer-document-card:hover,.customer-document-card:focus-visible{border-color:#6ca087;box-shadow:0 5px 16px rgba(22,77,57,.09);transform:translateY(-1px)}.customer-document-card.archived{opacity:.7}.customer-document-symbol{display:grid;width:36px;height:36px;place-items:center;border-radius:10px;background:#e4f1ea;font-weight:850}.customer-document-copy{min-width:0}.customer-document-copy small,.customer-document-copy strong,.customer-document-copy em{display:block}.customer-document-copy small,.customer-document-copy em{overflow:hidden;color:var(--muted);font-size:10px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.customer-document-copy strong{margin:3px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-document-state{display:grid;justify-items:end;gap:6px}.customer-document-state b{padding:4px 7px;border-radius:999px;background:#e8f3ec;color:#2b6d55;font-size:9px}.customer-document-state i{color:var(--muted);font-size:9px;font-style:normal}.customer-document-empty{display:grid;grid-column:1/-1;gap:4px;padding:18px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);text-align:center}.customer-document-empty strong{color:var(--green)}
.customer-document-preview{margin-top:14px;padding:14px;border:1px solid #cbded2;border-radius:14px;background:#f7fbf8;scroll-margin-top:105px}.customer-document-preview[hidden]{display:none}.customer-document-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.customer-document-preview-head small,.customer-document-preview-head span{color:var(--muted);font-size:11px}.customer-document-preview-head h4{margin:4px 0;color:var(--green);font-size:17px;overflow-wrap:anywhere}.customer-document-preview-actions{display:flex;flex-wrap:wrap;gap:7px}.customer-document-preview-actions .secondary-button{font-size:12px;text-decoration:none}.customer-document-preview-content{max-height:58vh;overflow:auto;margin:14px 0 0;padding:14px;border:1px solid #e0e9e1;border-radius:10px;background:#fff;color:#263f35;font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.customer-document-preview-pdf{width:100%;height:65vh;margin-top:14px;border:1px solid #d8e4da;border-radius:10px;background:#fff}
.order-overview-fields{grid-template-columns:repeat(4,minmax(0,1fr))}
.order-ledger-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:13px;margin-top:12px}.order-ledger-grid>div{padding:12px;border:1px solid #e1e7e1;border-radius:13px;background:#fff}
.order-event-list article{display:flex;gap:9px;padding:9px 0;border-bottom:1px solid #edf0eb}.order-event-list article>span{align-self:flex-start;padding:3px 6px;border-radius:999px;background:#e6f2ec;color:#1f6b55;font-size:12px}.order-event-list article div{min-width:0}.order-event-list article strong,.order-event-list article small,.order-event-list article p{display:block}.order-event-list article small{margin-top:3px;color:var(--muted);font-size:12px}.order-event-list article p{margin:4px 0 0;color:#56645d;font-size:12px}
.order-event-form,.order-file-form{display:grid;gap:8px;margin-top:11px}.order-event-form{grid-template-columns:repeat(2,minmax(0,1fr))}.order-event-form textarea,.order-event-form button{grid-column:1/-1}.order-file-list a{display:block;padding:9px 0;border-bottom:1px solid #edf0eb;color:#24483d;text-decoration:none}.order-file-list a strong,.order-file-list a span{display:block}.order-file-list a span{margin-top:3px;color:var(--muted);font-size:12px}
@media(max-width:1000px){.order-overview-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.order-ledger-grid{grid-template-columns:1fr}}
@media(max-width:720px){.order-overview-fields,.order-event-form{grid-template-columns:1fr}.order-switcher>div:first-child{display:block}.order-switcher>div:first-child span{display:block;margin-top:4px}}
@media(max-width:720px){.customer-document-list{grid-template-columns:1fr;max-height:360px}.customer-document-card{grid-template-columns:34px minmax(0,1fr)}.customer-document-state{grid-column:2;grid-template-columns:auto auto;justify-content:space-between;justify-items:start;width:100%}}
@media(max-width:720px){.customer-document-preview-head{display:block}.customer-document-preview-actions{margin-top:10px}.customer-document-preview-content{max-height:62vh}.chat-message{max-width:100%}}
.document-version-history{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:7px;margin-top:9px;padding-top:9px;border-top:1px dashed var(--line)}.document-version-history.hidden{display:none}.document-version-history article{padding:8px 9px;border:1px solid var(--line);border-radius:10px;background:#fbfcf8}.document-version-history strong,.document-version-history span,.document-version-history small{display:block}.document-version-history span,.document-version-history small{margin-top:3px;color:var(--muted);font-size:12px}

/* Public-data prospecting radar */
.prospecting-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;background:linear-gradient(135deg,#fffdf8 0%,#eaf4ee 100%)}
.prospecting-hero>div:first-child{max-width:850px}.prospecting-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.prospecting-hero-actions a{text-decoration:none}
.prospecting-workspace-tabs{position:sticky;z-index:12;top:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 8px;padding:8px;border:1px solid #cadbd2;border-radius:16px;background:rgba(248,250,246,.94);box-shadow:0 7px 22px rgba(22,63,53,.06);backdrop-filter:blur(12px)}.prospecting-workspace-tabs button{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;align-items:center;padding:10px 12px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--ink);text-align:left;cursor:pointer}.prospecting-workspace-tabs button>span{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e9efeb;color:#527064;font-size:11px;font-weight:900}.prospecting-workspace-tabs button strong{font-size:13px}.prospecting-workspace-tabs button small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.prospecting-workspace-tabs button:hover{border-color:#bfd4ca;background:#fff}.prospecting-workspace-tabs button.active{border-color:#1c5a47;background:#174c3c;color:#fff;box-shadow:0 6px 14px rgba(23,76,60,.16)}.prospecting-workspace-tabs button.active>span{background:rgba(255,255,255,.16);color:#fff}.prospecting-workspace-tabs button.active small{color:#d4e6de}.prospecting-workspace-summary{display:flex;align-items:center;gap:9px;margin:0 0 10px;padding:8px 12px;border-radius:11px;background:#edf5f0;color:#496157;font-size:12px}.prospecting-workspace-summary strong{color:#174c3c}.prospecting-workspace-summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-prospecting-panel][hidden]{display:none!important}
.prospect-daily-desk{display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.6fr);gap:12px;margin-bottom:14px}.prospect-daily-brief{display:grid;align-content:center;gap:5px;padding:15px 17px;border:1px solid #b9d3c6;border-radius:15px;background:linear-gradient(135deg,#174c3c,#23614e);color:#fff;box-shadow:0 8px 22px rgba(23,76,60,.13)}.prospect-daily-brief span{color:#cfe4da;font-size:12px;font-weight:800}.prospect-daily-brief strong{font-size:17px;line-height:1.35}.prospect-daily-brief small{color:#dceae4;font-size:12px;line-height:1.5}.prospect-quick-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.prospect-quick-filters button{display:grid;gap:5px;min-width:0;padding:12px;border:1px solid #d4e2db;border-radius:13px;background:#fff;color:#53645d;text-align:left;cursor:pointer}.prospect-quick-filters button:hover{border-color:#87ae9d;background:#f7fbf8}.prospect-quick-filters button.active{border-color:#286b55;background:#eaf5ef;color:#174c3c;box-shadow:inset 0 0 0 1px rgba(40,107,85,.08)}.prospect-quick-filters b{font:700 22px Georgia,serif}.prospect-quick-filters span{overflow:hidden;font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.prospect-metrics{grid-template-columns:repeat(7,minmax(90px,1fr));gap:8px}.prospect-metrics .metric-card{min-height:82px;padding:12px 13px;border-radius:14px}.prospect-metrics .metric-card span{font-size:12px}.prospect-metrics .metric-card strong{margin:7px 0 2px;font-size:24px}.prospect-metrics .metric-card small{font-size:10px;line-height:1.25}.prospect-source-panel{margin-bottom:18px}.prospect-source-library{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.prospect-radar-panel{margin-bottom:18px;border-color:#b8d2c5;background:linear-gradient(145deg,#fffdf8,#f3faf6)}
.prospect-radar-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0}.prospect-radar-overview>div{display:grid;gap:4px;padding:11px 12px;border:1px solid #d8e6de;border-radius:12px;background:rgba(255,255,255,.84)}.prospect-radar-overview span,.prospect-radar-overview small{color:var(--muted);font-size:12px}.prospect-radar-overview strong{overflow:hidden;text-overflow:ellipsis;color:#174b3b;font-size:13px;white-space:nowrap}
.prospect-radar-readiness{display:flex;gap:10px;align-items:center;margin:-3px 0 13px;padding:10px 12px;border:1px solid #e5d6ad;border-radius:11px;background:#fff9ea}.prospect-radar-readiness strong{white-space:nowrap;color:#815f21;font-size:12px}.prospect-radar-readiness span{color:#6c6555;font-size:12px;line-height:1.45}.prospect-radar-readiness.ready{border-color:#b8d9c8;background:#eef8f2}.prospect-radar-readiness.ready strong{color:#176448}.prospect-radar-readiness.blocked{border-color:#e2b9b1;background:#fff4f2}.prospect-radar-readiness.blocked strong{color:#a33e31}
.prospect-radar-form{display:grid;gap:12px}.prospect-radar-schedule{display:grid;grid-template-columns:minmax(250px,1.3fr) repeat(5,minmax(125px,.7fr));gap:9px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff}.prospect-radar-form label{display:grid;gap:5px;color:#52615b;font-size:12px}.prospect-radar-form label small{color:var(--muted);font-size:12px;line-height:1.4}
.radar-settings-block{overflow:hidden;border:1px solid #cadbd2;border-radius:13px;background:#f8fbf9}.radar-settings-block>summary,.radar-history-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;list-style:none;cursor:pointer}.radar-settings-block>summary::-webkit-details-marker,.radar-history-details>summary::-webkit-details-marker{display:none}.radar-settings-block>summary span,.radar-history-details>summary span{display:grid;gap:3px}.radar-settings-block>summary strong,.radar-history-details>summary strong{color:#174c3c;font-size:13px}.radar-settings-block>summary small,.radar-history-details>summary small{color:var(--muted);font-size:12px;font-weight:400}.radar-settings-block>summary b,.radar-history-details>summary b{color:#668076;font-size:11px}.radar-settings-block[open]>summary,.radar-history-details[open]>summary{border-bottom:1px solid #dbe7e0;background:#eef6f1}.radar-settings-block>.prospect-radar-schedule,.radar-settings-block>.radar-product-lines-section,.radar-settings-block>.prospect-radar-sources{border:0;border-radius:0}.radar-settings-block>.prospect-radar-sources{padding:12px}.radar-settings-block>.radar-product-lines-section{background:#fff}.radar-settings-block>.prospect-radar-schedule{background:#fff}
.prospect-radar-toggle{display:flex!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px}.prospect-radar-toggle input{width:auto}.prospect-radar-toggle span{display:grid;gap:3px}.prospect-radar-toggle strong{color:var(--ink);font-size:13px}.prospect-radar-toggle.compact strong{font-size:12px}
.radar-product-lines-section{padding:13px;border:1px solid #c9ddd3;border-radius:14px;background:#f8fbf9}.radar-product-lines-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.radar-product-lines-head strong,.radar-product-lines-head small{display:block}.radar-product-lines-head small,.radar-product-help{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5}.radar-product-lines{display:grid;gap:9px;margin-top:11px}.radar-product-line{padding:11px;border:1px solid #d9e5de;border-radius:13px;background:#fff}.radar-product-line-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.radar-product-line-head>div{display:flex;gap:8px;flex-wrap:wrap}.radar-product-line-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.radar-product-line-grid .span-two{grid-column:1/-1}.radar-product-line .form-message{margin:8px 0 0}.radar-hs-confirm{display:flex;align-items:center;gap:6px;color:#7c6b3d;font-size:12px}.radar-hs-confirm input{width:auto}.prospect-verification{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.prospect-verification>div{display:grid;gap:3px;padding:9px;border:1px solid #dbe7df;border-radius:10px;background:#f7fbf8}.prospect-verification span,.prospect-verification small{color:var(--muted);font-size:12px;line-height:1.45}.prospect-verification strong{color:#1c5d49;font-size:12px}
.prospect-radar-sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.prospect-radar-source{display:grid;align-content:start;gap:9px;min-width:0;padding:12px;border:1px solid #d9e5de;border-radius:14px;background:#fff}.prospect-radar-source>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:9px}.prospect-radar-source.pending-source{border-style:dashed;background:#fafaf7}.prospect-radar-source.pending-source p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.prospect-radar-source.osm-source{border-color:#b8d8c8;background:#f7fbf8}.prospect-radar-source code{font-size:12px}.prospect-radar-source .osm-attribution{margin:0;padding-top:7px;border-top:1px dashed #c9ddd3;color:#43675a;font-size:12px;line-height:1.5}
.prospect-radar-source.marketplace-source{border-color:#dccb9f;background:#fffdf6}.radar-marketplace-switches{display:grid!important;grid-template-columns:1fr;gap:8px;padding:9px;border:1px solid #eadfbe;border-radius:10px;background:#fff}.radar-marketplace-switches .prospect-radar-toggle{justify-content:flex-start!important}
.marketplace-import-box{border:1px solid #ddcfaa;border-radius:11px;background:#fff;padding:9px}.marketplace-import-box>summary{cursor:pointer;font-size:13px;font-weight:800;color:#1d4c3e}.marketplace-import-box>p{margin:8px 0;color:var(--muted);font-size:12px;line-height:1.55}.marketplace-file{display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:8px;border:1px dashed #cfbc88;border-radius:9px;background:#fffdf7}.marketplace-file input{max-width:150px;font-size:12px}.marketplace-import-actions{display:flex!important;justify-content:flex-end!important;gap:8px;margin-top:8px}.marketplace-import-preview{display:grid;gap:6px;margin-top:9px;max-height:280px;overflow:auto}.marketplace-import-summary{display:grid;gap:3px;padding:8px;border-radius:9px;background:#f1f6f2}.marketplace-import-summary span{font-size:12px;color:var(--muted)}.marketplace-import-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:7px;border:1px solid #e2e6df;border-radius:9px;background:#fff}.marketplace-import-row strong,.marketplace-import-row small{display:block}.marketplace-import-row small{margin-top:2px;color:var(--muted);font-size:12px;line-height:1.4}.marketplace-import-row em{align-self:start;font-size:12px;font-style:normal;color:#886620}.marketplace-import-row.blocked{border-color:#e3c6b7;background:#fff9f5}.marketplace-format-issues{margin:0;padding:7px 7px 7px 20px;border-radius:8px;background:#fff4ed;color:#934f35;font-size:12px}
.prospect-radar-actions{display:flex;align-items:end;justify-content:flex-end;gap:8px;flex-wrap:wrap}.prospect-radar-actions .admin-password{min-width:230px;margin-right:auto}.prospect-radar-history{display:grid;grid-template-columns:210px minmax(0,1fr);gap:12px;margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}.prospect-radar-history>div:first-child strong,.prospect-radar-history>div:first-child small{display:block}.prospect-radar-history>div:first-child small{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.45}.prospect-radar-history>div:last-child{display:grid;gap:6px}.radar-run{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:start;padding:8px 9px;border:1px solid var(--line);border-radius:10px;background:#fff}.radar-run>span{padding:3px 6px;border-radius:999px;background:#eef1ef;color:#5f6c66;font-size:11px;font-weight:800}.radar-run.success>span{background:#dff1e8;color:#176448}.radar-run.partial>span,.radar-run.running>span{background:#f7eccf;color:#855f19}.radar-run.error>span{background:#f8e5e1;color:#a33e31}.radar-run strong,.radar-run small{display:block}.radar-run strong{font-size:12px}.radar-run small{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.4}
.radar-history-details{display:block;margin-top:14px;padding:0;border:1px solid #d9e5de;border-radius:13px;background:#fff}.radar-history-details>#prospectRadarRuns{display:grid;gap:6px;padding:11px}
.radar-target-note{margin-top:4px!important;font-weight:800}.radar-target-note.ready{color:#176448!important}.radar-target-note.shortfall{color:#a45b20!important}.radar-run-details{margin-top:7px}.radar-run-details summary{cursor:pointer;color:#286651;font-size:12px;font-weight:800}.radar-run-details>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:7px}.radar-source-diagnostic{display:grid;gap:4px;padding:8px;border:1px solid #e0e7e2;border-radius:9px;background:#fafcf9}.radar-source-diagnostic>div{display:flex;align-items:center;justify-content:space-between;gap:7px}.radar-source-diagnostic p,.radar-source-diagnostic small,.radar-source-diagnostic em{display:block;margin:0;color:var(--muted);font-size:11px;line-height:1.45;font-style:normal}.radar-source-diagnostic small{color:#875c18}.radar-source-diagnostic.error small{color:#a33e31}
.prospect-source-card{min-width:0;display:grid;gap:5px;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fbfcf8;color:var(--ink);text-decoration:none;transition:.18s ease}.prospect-source-card:hover{border-color:#78a08f;transform:translateY(-1px);box-shadow:0 7px 20px rgba(22,63,53,.07)}
.prospect-source-card span,.prospect-source-card small{color:var(--muted);font-size:12px}.prospect-source-card strong{font-size:13px}.prospect-source-card small{min-height:32px;line-height:1.45}.prospect-source-card em{color:var(--green);font-size:12px;font-style:normal;font-weight:800}
.prospect-keyword-guide{margin-top:12px;padding:11px 13px;border:1px solid var(--line);border-radius:13px;background:#fff}.prospect-keyword-guide summary{cursor:pointer;color:var(--green);font-size:13px;font-weight:800}.prospect-keyword-guide>div{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:11px}.prospect-keywords p{display:flex;flex-wrap:wrap;gap:5px}.prospect-keywords span{padding:4px 7px;border-radius:999px;background:#e8f2ed;color:var(--green);font-size:12px}.prospect-guardrails li{margin:4px 0;color:var(--muted);font-size:12px}
.public-social-discovery-panel{margin-bottom:18px;background:linear-gradient(145deg,#fffdf8,#edf7f1)}.public-social-search-form{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr)) auto;gap:8px;align-items:end;margin:12px 0}.public-social-search-form label{display:grid;gap:5px;color:#52615b;font-size:12px}.public-social-search-results{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.public-social-search-card{min-width:0;display:grid;gap:8px;padding:11px;border:1px solid #cadbd2;border-radius:12px;background:#fff}.public-social-search-card>div:first-child{display:grid;gap:2px}.public-social-search-card span,.public-social-search-card small{color:var(--muted);font-size:12px}.public-social-search-card strong{font-size:13px}.public-social-search-card p{min-height:56px;max-height:72px;overflow:auto;margin:0;padding:7px;border-radius:8px;background:#f3f7f4;color:#45564f;font-size:11px;line-height:1.5}.public-social-search-actions{display:grid;gap:4px}.public-social-search-actions a,.public-social-search-actions button{display:block;width:100%;padding:5px 0;color:var(--green);font-size:12px;text-align:left;text-decoration:none}.public-social-capture{margin-top:13px;padding:11px;border:1px solid #b9d0c5;border-radius:13px;background:#fff}.public-social-capture summary{cursor:pointer;color:var(--green);font-size:13px;font-weight:800}.public-social-capture .prospect-form{margin-top:12px}
.prospecting-entry-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:18px;align-items:start;margin-bottom:18px}.prospect-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.prospect-form label,.prospect-filters label,.prospect-action-form label,.prospect-activity-form label,.prospect-convert-card label{display:grid;gap:5px;margin:0;color:#52615b;font-size:12px}.prospect-form .span-two{grid-column:1/-1}.prospect-import-panel{position:sticky;top:14px}.prospect-import-panel .file-drop{min-height:190px}.prospect-import-preview{display:grid;gap:7px;margin-top:12px;max-height:480px;overflow:auto}.prospect-import-summary{display:flex;justify-content:space-between;gap:8px;padding:10px;border-radius:11px;background:#eaf4ee}.prospect-import-summary span{color:var(--muted);font-size:12px}.prospect-import-preview article{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff}.prospect-import-preview article div{min-width:0}.prospect-import-preview article strong,.prospect-import-preview article small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prospect-import-preview article strong{font-size:12px}.prospect-import-preview article small,.prospect-import-preview article em{color:var(--muted);font-size:12px;font-style:normal}
.prospect-filters{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:12px}.prospect-search-row{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:8px;align-items:end}.prospect-search-row .secondary-button{white-space:nowrap}.prospect-advanced-filters{overflow:hidden;border:1px solid #d6e2dc;border-radius:11px;background:#f8fbf9}.prospect-advanced-filters>summary{padding:9px 11px;color:#315f50;font-size:12px;font-weight:800;cursor:pointer;list-style:none}.prospect-advanced-filters>summary::-webkit-details-marker{display:none}.prospect-advanced-filters[open]>summary{border-bottom:1px solid #dce7e1;background:#eef5f1}.prospect-advanced-filters>div{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr)) auto;gap:8px;align-items:end;padding:10px}.prospect-filter-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(130px,.7fr)) auto auto;gap:8px;align-items:center}.prospect-filter-actions .secondary-button{text-align:center;white-space:nowrap}.prospect-directory-layout{display:grid;grid-template-columns:minmax(320px,.76fr) minmax(0,1.55fr);gap:14px;align-items:start}.prospect-list{display:grid;gap:7px;max-height:820px;overflow:auto;padding-right:4px}.prospect-list-item{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.prospect-list-item:hover,.prospect-list-item.active{border-color:#77a08f;background:#f4faf6}.prospect-list-copy{min-width:0;display:grid;gap:3px}.prospect-list-copy strong,.prospect-list-copy small,.prospect-list-copy em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prospect-list-copy strong{font-size:13px}.prospect-list-copy small,.prospect-list-copy em{color:var(--muted);font-size:12px;font-style:normal}.prospect-list-copy .prospect-demand{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.4;white-space:normal}.prospect-contact-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:2px}.prospect-contact-tags i{padding:2px 5px;border-radius:999px;background:#e5f2eb;color:#22634e;font-size:10px;font-style:normal;font-weight:800}.prospect-contact-tags i.missing{background:#f3eee3;color:#896a29}.prospect-owner-badge{justify-self:end;padding:4px 7px;border-radius:999px;background:#e6f3ec;color:#1f664f;font-size:11px;font-weight:800;white-space:nowrap}.prospect-owner-badge.assigned{background:#edf1ef;color:#5d6d66}.prospect-primary-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.prospect-primary-actions button{flex:1 1 160px}
.prospect-score{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eef2ef;color:#5d6b65;font:700 13px Georgia,serif}.prospect-score.high,.prospect-score-large.high{background:#dff1e8;color:#176448}.prospect-score.medium,.prospect-score-large.medium{background:#f7eccf;color:#855f19}.prospect-score.blocked,.prospect-score-large.blocked{background:#f8e5e1;color:#a33e31}.prospect-priority{padding:4px 6px;border-radius:999px;background:#eef2ef;color:#68736f;font-size:11px;white-space:nowrap}.prospect-priority.high{background:#dff1e8;color:#176448}.prospect-priority.medium{background:#f7eccf;color:#855f19}.prospect-priority.blocked{background:#f8e5e1;color:#a33e31}
.prospect-detail{min-width:0;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fbfcf8}.prospect-detail-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.prospect-detail-head h3{margin:3px 0 4px}.prospect-detail-head span{color:var(--muted);font-size:12px}.prospect-score-large{display:flex;align-items:baseline;gap:2px;padding:9px 12px;border-radius:12px;background:#eef2ef;color:var(--green)}.prospect-score-large strong{font:700 22px Georgia,serif}.prospect-score-large small{font-size:12px}.prospect-score-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.prospect-score-grid article{display:flex;justify-content:space-between;gap:7px;padding:9px;border:1px solid var(--line);border-radius:10px;background:#fff}.prospect-score-grid span{color:var(--muted);font-size:12px}.prospect-score-grid strong{font-size:12px}
.prospect-directory-layout>.prospect-list,.prospect-detail{position:sticky;top:74px;max-height:calc(100vh - 96px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.prospect-detail{box-shadow:0 18px 44px rgba(30,71,57,.08)}.prospect-detail-tabs{position:sticky;top:-14px;z-index:5;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:13px -7px 0;padding:10px 7px;border-bottom:1px solid #d9e5de;background:rgba(251,252,248,.96);backdrop-filter:blur(12px)}.prospect-detail-tabs button{display:flex;align-items:center;gap:7px;min-width:0;padding:9px 8px;border:1px solid #dce7e1;border-radius:12px;background:#fff;color:#5b6b64;text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.prospect-detail-tabs button:hover{border-color:#8fb5a4;transform:translateY(-1px)}.prospect-detail-tabs button.active{border-color:#1f6a51;background:linear-gradient(145deg,#1b654d,#134d3c);color:#fff;box-shadow:0 8px 18px rgba(24,91,69,.2);transform:translateY(-2px)}.prospect-detail-tabs button>b{display:grid;flex:0 0 27px;width:27px;height:27px;place-items:center;border-radius:8px;background:#edf4f0;color:#39705d;font-size:10px}.prospect-detail-tabs button.active>b{background:rgba(255,255,255,.16);color:#fff}.prospect-detail-tabs button>span{min-width:0;display:grid;gap:2px}.prospect-detail-tabs strong,.prospect-detail-tabs small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prospect-detail-tabs strong{font-size:11px}.prospect-detail-tabs small{color:inherit;font-size:9px;opacity:.78}.prospect-detail-panel{animation:prospect-panel-in .18s ease}.prospect-detail-panel[hidden]{display:none!important}.prospect-next-step{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;margin-top:12px;padding:14px 15px;border:1px solid #a9cfbd;border-radius:14px;background:linear-gradient(135deg,#eff8f3,#f9fcfa);box-shadow:0 9px 22px rgba(35,101,77,.08)}.prospect-next-step>div{display:grid;gap:3px}.prospect-next-step span{color:#37705b;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.prospect-next-step strong{font-size:15px}.prospect-next-step small{color:var(--muted);font-size:12px;line-height:1.45}.prospect-next-step .primary-button{white-space:nowrap}@keyframes prospect-panel-in{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}
.prospect-evidence{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.prospect-evidence>div{min-width:0;display:grid;gap:4px;padding:10px;border:1px solid var(--line);border-radius:11px;background:#fff}.prospect-evidence span,.prospect-evidence small{color:var(--muted);font-size:12px}.prospect-evidence strong,.prospect-evidence a{overflow-wrap:anywhere;color:var(--ink);font-size:12px}.prospect-evidence a{color:var(--green);text-decoration:none;font-weight:800}.prospect-reasons,.prospect-notes,.prospect-activity-list{margin-top:12px;padding:11px;border:1px solid var(--line);border-radius:11px;background:#fff}.prospect-reasons ul{display:grid;gap:3px;margin:7px 0;padding-left:17px}.prospect-reasons li,.prospect-notes p{color:var(--muted);font-size:12px;line-height:1.5}.prospect-action-form,.prospect-activity-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;padding:11px;border:1px solid var(--line);border-radius:11px;background:#fff}.prospect-action-form .span-two,.prospect-activity-form .span-two{grid-column:1/-1}.prospect-block-check{display:flex!important;flex-direction:row;align-items:center!important}.prospect-block-check input{width:auto}.prospect-activity-list{display:grid;gap:7px}.prospect-activity-list>article{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;padding-top:7px;border-top:1px solid #edf0eb}.prospect-activity-list>article>span{align-self:start;padding:3px 6px;border-radius:999px;background:#eaf4ee;color:var(--green);font-size:12px}.prospect-activity-list article div{min-width:0}.prospect-activity-list article strong,.prospect-activity-list article small,.prospect-activity-list article p{display:block;margin:0}.prospect-activity-list article small,.prospect-activity-list article p{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.45}
.prospect-convert-card{display:grid;gap:10px;margin-top:12px;padding:13px;border:1px solid #9fc9b6;border-radius:13px;background:#eff8f3}.prospect-convert-card.blocked{border-color:#e6bbb4;background:#fff7f5}.prospect-convert-card>div{display:grid;gap:3px}.prospect-convert-card>div span{color:var(--muted);font-size:12px}.prospect-convert-card form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px;align-items:end}.prospect-convert-card .primary-button{min-height:42px}.prospect-detail .form-message{margin-bottom:0}
.prospect-contact-center,.prospect-email-workbench{display:grid;gap:10px;margin-top:12px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff}.prospect-contact-center-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.prospect-contact-center-head>div{display:grid;gap:3px}.prospect-contact-center-head span{color:var(--muted);font-size:12px}.prospect-contact-results{display:grid;grid-template-columns:1fr 1fr;gap:7px}.prospect-contact-results article{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:9px;border-radius:10px;background:#f3f7f4}.prospect-contact-results article>span{align-self:start;padding:3px 6px;border-radius:999px;background:#dff0e7;color:var(--green);font-size:11px;font-weight:800}.prospect-contact-results article div{min-width:0}.prospect-contact-results strong,.prospect-contact-results small{display:block;overflow-wrap:anywhere}.prospect-contact-results a{color:var(--green);text-decoration:none}.prospect-contact-results small{margin-top:3px;color:var(--muted);font-size:11px}.prospect-email-workbench{border-color:#94c4ad;background:#f3faf6}.prospect-email-workbench.blocked{border-color:#e6bbb4;background:#fff7f5}.prospect-email-composer{display:grid}.prospect-email-form{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-top:10px;border-top:1px solid #cfe3d8}.prospect-email-form label{display:grid;gap:5px;color:#52615b;font-size:12px}.prospect-email-form .span-two{grid-column:1/-1}.prospect-email-form textarea{resize:vertical;line-height:1.55}.prospect-email-confirm{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important;padding:10px;border-radius:10px;background:#fff}.prospect-email-confirm input{width:auto}.prospect-email-actions{display:flex;justify-content:flex-end;gap:8px}.prospect-email-warning{margin:0;padding:9px 11px;border-radius:9px;background:#fff3d6;color:#7c5a16;font-size:12px}.prospect-email-translation{padding:9px 11px;border-radius:10px;background:#fff}.prospect-email-translation summary{cursor:pointer;font-weight:800}.prospect-email-translation p{color:var(--muted);font-size:12px;line-height:1.55}.prospect-email-history{display:grid;gap:7px;padding-top:10px;border-top:1px solid #cfe3d8}.prospect-email-history>article{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:8px 0;border-top:1px solid #e1ebe5}.prospect-email-history>article>span{align-self:start;padding:3px 7px;border-radius:999px;background:#e8eee9;color:var(--muted);font-size:11px}.prospect-email-history>article.sent>span{background:#dff0e7;color:var(--green)}.prospect-email-history>article.failed>span{background:#ffe6e1;color:#a23b2a}.prospect-email-history article strong,.prospect-email-history article small,.prospect-email-history article p{display:block;margin:0}.prospect-email-history article small,.prospect-email-history article p{margin-top:3px;color:var(--muted);font-size:11px}.email-safety-notes{display:grid;gap:7px;padding:10px;border-radius:10px;background:#f1f7f3}.email-safety-notes span{color:var(--green);font-size:12px}.email-safety-card .check-line{padding:9px;border-radius:10px;background:#fff}
@media(max-width:1380px){.prospect-radar-schedule{grid-template-columns:repeat(3,minmax(0,1fr))}.prospect-radar-schedule .prospect-radar-toggle{grid-column:1/-1}.prospect-radar-sources{grid-template-columns:1fr 1fr}.prospect-radar-source.pending-source{grid-column:1/-1}.prospect-source-library{grid-template-columns:repeat(3,minmax(0,1fr))}.public-social-search-results{grid-template-columns:repeat(3,minmax(0,1fr))}.prospect-metrics{grid-template-columns:repeat(3,minmax(120px,1fr))}.prospecting-entry-grid{grid-template-columns:1fr}.prospect-import-panel{position:static}.prospect-directory-layout{grid-template-columns:minmax(280px,.75fr) minmax(0,1.25fr)}}
@media(min-width:901px) and (max-width:1380px){.prospect-metrics{grid-template-columns:repeat(7,minmax(90px,1fr))}}
@media(max-width:900px){.prospecting-workspace-tabs{grid-template-columns:1fr 1fr;position:static}.prospect-daily-desk{grid-template-columns:1fr}.prospect-quick-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.prospect-radar-overview{grid-template-columns:1fr 1fr}.prospect-radar-sources{grid-template-columns:1fr}.prospect-radar-source.pending-source{grid-column:auto}.prospect-radar-history{grid-template-columns:1fr}.radar-run-details>div{grid-template-columns:1fr}.prospecting-hero{display:grid}.prospecting-hero-actions{justify-content:flex-start}.prospect-source-library,.public-social-search-results{grid-template-columns:repeat(2,minmax(0,1fr))}.public-social-search-form{grid-template-columns:1fr 1fr}.public-social-search-form button{grid-column:1/-1}.prospect-advanced-filters>div,.prospect-filter-actions{grid-template-columns:1fr 1fr}.prospect-directory-layout{grid-template-columns:1fr}.prospect-list{max-height:420px}.prospect-convert-card form{grid-template-columns:1fr 1fr}.prospect-convert-card form button{grid-column:1/-1}}
@media(min-width:621px) and (max-width:900px){.prospect-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.prospect-metrics .metric-card:last-child{grid-column:span 2}}
@media(max-width:620px){.prospecting-workspace-tabs{gap:6px;padding:6px}.prospecting-workspace-tabs button{padding:9px}.prospecting-workspace-tabs button small{display:none}.prospecting-workspace-summary{align-items:flex-start;display:grid;gap:3px}.prospecting-workspace-summary span{white-space:normal}.prospect-daily-brief{padding:13px}.prospect-quick-filters{grid-template-columns:1fr 1fr}.prospect-search-row,.prospect-advanced-filters>div{grid-template-columns:1fr}.prospect-search-row .secondary-button{width:100%;text-align:center}.prospect-radar-overview,.prospect-radar-schedule,.radar-product-line-grid,.prospect-verification{grid-template-columns:1fr}.prospect-radar-schedule .prospect-radar-toggle{grid-column:auto}.radar-product-lines-head,.radar-product-line-head{display:grid}.radar-product-line-grid .span-two{grid-column:auto}.prospect-radar-actions{align-items:stretch}.prospect-radar-actions>*{width:100%;margin:0}.prospect-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.prospect-metrics .metric-card{min-height:102px;padding:13px;border-radius:15px}.prospect-metrics .metric-card strong{margin:10px 0 2px;font-size:27px}.prospect-metrics .metric-card:last-child{grid-column:1/-1}.prospect-source-library,.public-social-search-results,.public-social-search-form,.prospect-keyword-guide>div,.prospect-form,.prospect-filters,.prospect-filter-actions,.prospect-evidence,.prospect-action-form,.prospect-activity-form,.prospect-convert-card form,.prospect-contact-results,.prospect-email-form{grid-template-columns:1fr}.public-social-search-form button,.prospect-form .span-two,.prospect-action-form .span-two,.prospect-activity-form .span-two,.prospect-convert-card form button,.prospect-email-form .span-two{grid-column:auto}.prospect-list-item{grid-template-columns:34px minmax(0,1fr)}.prospect-priority,.prospect-owner-badge{grid-column:2;justify-self:start}.prospect-score-grid{grid-template-columns:1fr}.prospecting-hero-actions .secondary-button{width:100%;text-align:center}.prospect-contact-center-head{align-items:stretch;flex-direction:column}.prospect-primary-actions{display:grid}.prospect-email-actions{display:grid}.prospect-email-actions>*{width:100%}}

/* Unified official-channel inbox */
.channel-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fffdf7,#e8f3ed)}.channel-hero>div{max-width:900px}.channel-provider-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:14px 0}.channel-provider-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:13px;background:#fff}.channel-provider-card.ready{border-color:#9fc8b6;background:#f7fbf8}.channel-provider-card div{min-width:0}.channel-provider-card strong,.channel-provider-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-provider-card small,.channel-provider-card em{color:var(--muted);font-size:12px;font-style:normal}.channel-provider-card em{grid-column:1/-1}.channel-provider-mark{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:#e9efec;color:#2a5447;font-size:12px;font-weight:900}.channel-provider-mark.whatsapp{background:#daf5e5;color:#137941}.channel-provider-mark.facebook{background:#e0ecff;color:#1761bb}.channel-provider-mark.instagram{background:#f8e3ee;color:#a52c68}.channel-provider-mark.tiktok{background:#e8eaed;color:#111827}.channel-layout{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);gap:14px;align-items:start}.channel-inbox-panel,.channel-thread-panel{min-height:620px}.channel-filter-form{display:grid;grid-template-columns:minmax(0,1fr) 125px 165px auto;gap:7px;margin-bottom:11px}.channel-inbox{display:grid;gap:6px;max-height:720px;overflow:auto}.channel-inbox-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;width:100%;padding:9px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.channel-inbox-item:hover,.channel-inbox-item.active{border-color:#6d9b87;background:#f1f8f4}.channel-inbox-item div{min-width:0}.channel-inbox-item strong,.channel-inbox-item small,.channel-inbox-item p{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-inbox-item small,.channel-inbox-item time{color:var(--muted);font-size:12px}.channel-inbox-item p{margin:4px 0 0;color:#55645e;font-size:12px}.channel-thread-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-bottom:11px;border-bottom:1px solid var(--line)}.channel-thread-head>div{display:flex;gap:9px;align-items:center}.channel-thread-head strong,.channel-thread-head small,.channel-thread-head em{display:block}.channel-thread-head small{margin-top:3px;color:var(--muted);font-size:12px}.channel-thread-head em{margin-top:4px;color:#2d6653;font-size:12px;font-style:normal}.channel-message-list{display:grid;gap:8px;max-height:470px;overflow:auto;padding:13px 3px}.channel-message{max-width:82%;padding:10px 11px;border-radius:13px;background:#f2f5f2}.channel-message.outbound{justify-self:end;background:#e2f2ea}.channel-message>div{display:flex;justify-content:space-between;gap:12px}.channel-message strong,.channel-message time{font-size:12px}.channel-message time{color:var(--muted)}.channel-message p{margin:6px 0 0;font-size:13px;line-height:1.55}.channel-reply-form{display:grid;gap:7px;padding-top:11px;border-top:1px solid var(--line)}.channel-reply-form small{color:var(--muted);font-size:12px}.channel-ai-workspace{display:grid;gap:14px;margin-top:18px;padding-top:18px;border-top:1px solid #c8d9d1}.channel-ai-workspace>.chat-hero{margin:0}.channel-tools-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:14px}.channel-tools-grid>.panel{max-width:820px}.channel-settings-workspace{margin:18px 0}.channel-settings-workspace .channel-account-admin{margin:0}.channel-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.channel-form label{display:grid;gap:5px;color:#52615b;font-size:12px}.channel-form .span-two{grid-column:1/-1}.channel-form .check-label{display:flex;flex-direction:row;align-items:center}.channel-form .check-label input{width:auto}.channel-webhooks{display:grid;gap:5px;padding:9px;border:1px solid var(--line);border-radius:10px;background:#f8faf8;margin:10px 0}.channel-webhooks code{overflow-wrap:anywhere;color:#3b5c50;font-size:12px}.channel-safety-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(160px,.7fr) auto;gap:8px;align-items:end;padding:10px;border:1px solid #c9ddd3;border-radius:12px;background:#f5faf7}.channel-safety-form label{display:grid;gap:5px;font-size:12px}.channel-safety-form .check-label{display:flex;align-items:center;align-self:center}.channel-safety-form .check-label input{width:auto}.channel-account-list{display:grid;gap:8px}.channel-account-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}.channel-account-card.disabled{opacity:.65}.channel-account-card strong,.channel-account-card small,.channel-account-card em{display:block}.channel-account-card small,.channel-account-card em{margin-top:3px;color:var(--muted);font-size:12px;font-style:normal}.channel-account-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.danger-text{color:#a33b32}.channel-account-form{margin-top:12px;padding:12px;border:1px solid #96bbaa;border-radius:13px;background:#f9fcfa}.channel-account-form-head{display:flex;align-items:center;justify-content:space-between}.channel-account-form-head strong,.channel-account-form-head small{display:block}.channel-account-form-head small{margin-top:3px;color:var(--muted);font-size:12px}.channel-account-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px;border:1px dashed var(--line);border-radius:10px;background:#fff}.radar-api-location{margin:0;padding:8px;border:1px dashed #cbdad2;border-radius:9px;background:#f8faf8;color:var(--muted);font-size:12px;line-height:1.45}.radar-api-settings{margin-top:18px}.radar-api-settings-form{display:grid;grid-template-columns:1fr 1fr minmax(180px,.65fr) auto;gap:9px;align-items:end}.radar-api-settings-form label{display:grid;gap:5px;color:#52615b;font-size:12px}.radar-api-settings-form .span-two{grid-column:1/-1}
.meta-account-importer{margin:11px 0;border:1px solid #bdd6ca;border-radius:13px;background:#f8fcfa}.meta-account-importer>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;cursor:pointer;list-style:none}.meta-account-importer>summary::-webkit-details-marker{display:none}.meta-account-importer>summary span strong,.meta-account-importer>summary span small{display:block}.meta-account-importer>summary span small{margin-top:3px;color:var(--muted);font-size:12px}.meta-account-importer>summary b{padding:4px 7px;border-radius:999px;background:#dff2e8;color:#24634e;font-size:12px}.meta-account-boundaries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0 12px 11px}.meta-account-boundaries span{padding:8px;border:1px solid #d7e4dd;border-radius:9px;background:#fff;color:#5a6963;font-size:12px;line-height:1.45}.meta-account-boundaries strong{display:block;margin-bottom:3px;color:var(--green)}.meta-account-import-form{padding:12px;border-top:1px solid #d7e4dd}.meta-import-actions{display:flex;align-items:end;gap:7px}.meta-asset-discovery{display:grid;gap:8px;padding:10px;border:1px solid #c7dbd1;border-radius:11px;background:#fff}.meta-discovery-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.meta-discovery-head strong,.meta-discovery-head small{display:block}.meta-discovery-head small{margin-top:3px;color:var(--muted);font-size:12px}.meta-asset-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.meta-asset-row{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fbfdfb;cursor:pointer}.meta-asset-row:has(input:checked){border-color:#6fa28c;background:#eff8f3}.meta-asset-row input{width:auto}.meta-asset-row span:last-child{min-width:0}.meta-asset-row strong,.meta-asset-row small,.meta-asset-row em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-asset-row small,.meta-asset-row em{margin-top:3px;color:var(--muted);font-size:12px;font-style:normal}.meta-asset-row.unavailable{opacity:.6;cursor:not-allowed}.meta-discovery-warnings{display:grid;gap:3px;padding:8px;border-radius:9px;background:#fff5dc;color:#755d20;font-size:12px}.meta-discovery-warnings strong{font-size:12px}
.whatsapp-coexistence-card{margin:11px 0;border:1px solid #90c7aa;border-radius:13px;background:#f4fbf7}.whatsapp-coexistence-card>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;cursor:pointer;list-style:none}.whatsapp-coexistence-card>summary::-webkit-details-marker{display:none}.whatsapp-coexistence-card>summary strong,.whatsapp-coexistence-card>summary small{display:block}.whatsapp-coexistence-card>summary small{margin-top:3px;color:var(--muted);font-size:12px}.whatsapp-coexistence-card>summary b{padding:4px 7px;border-radius:999px;background:#fff0c7;color:#725719;font-size:12px}.whatsapp-coexistence-card>summary b.ready{background:#d9f2e4;color:#17633f}.whatsapp-coexistence-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:0 12px 10px}.whatsapp-coexistence-flow span{padding:7px;border-radius:9px;background:#fff;border:1px solid #d2e4db;color:#365f50;font-size:12px}.whatsapp-coexistence-checks{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px}.whatsapp-coexistence-checks span{padding:5px 7px;border-radius:999px;background:#fff0c7;color:#725719;font-size:12px}.whatsapp-coexistence-checks span.ready{background:#d9f2e4;color:#17633f}.whatsapp-coexistence-checks .webhook-fields{flex-basis:100%;border-radius:8px;background:#edf4f0;color:#456257;overflow-wrap:anywhere}.whatsapp-coexistence-form{padding:12px;border-top:1px solid #c8dfd4}.whatsapp-coexistence-form code{font-size:12px}
.channel-filter-form{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.channel-filter-search{width:100%}.channel-status-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.channel-status-filters button{padding:7px 8px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#53645d;cursor:pointer}.channel-status-filters button.active{border-color:#3f7c67;background:#e9f4ee;color:#174f3d;font-weight:800}.channel-status-filters b{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:3px;padding:0 4px;border-radius:999px;background:#edf1ee;font-size:11px}.channel-status-filters button.active b{background:#fff}.channel-filter-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.channel-customer-avatar{position:relative;display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:#e4efe9;color:#1d5945;font-size:12px;font-weight:900}.channel-customer-avatar>img{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;object-fit:cover}.channel-customer-avatar>i{position:absolute;right:-3px;bottom:-2px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border:2px solid #fff;border-radius:7px;background:#e6ece9;color:#244f41;font-size:8px;font-style:normal}.channel-customer-avatar>i.whatsapp{background:#d9f5e4;color:#137941}.channel-customer-avatar>i.facebook{background:#deebff;color:#1761bb}.channel-customer-avatar>i.instagram{background:#f8e2ed;color:#a52c68}.channel-inbox-item.unread{background:#f5fbf8}.channel-inbox-item.unread strong{font-weight:900}.channel-unread-dot{display:block;width:8px;height:8px;margin:0 0 5px auto;border-radius:50%;background:#178452}.channel-thread-actions{display:flex!important;justify-content:flex-end;flex-wrap:wrap}.channel-assignment-form{display:flex;align-items:flex-end;gap:6px}.channel-assignment-form label{display:grid;gap:3px;color:var(--muted);font-size:11px}.channel-assignment-form select{min-width:150px;padding:6px 8px}.channel-assignment-form .form-message{flex-basis:100%;margin:0;text-align:right}.channel-assignee-label{padding:6px 9px;border-radius:999px;background:#edf4f0;color:#315f50;font-size:12px}.channel-interaction-badge{display:inline-flex!important;vertical-align:middle;margin-left:4px;padding:2px 5px;border-radius:999px;background:#e8f1ed;color:#2f6553;font-size:11px!important;font-style:normal;font-weight:800}.channel-interaction-badge.comment{background:#fff0d6;color:#8a5a00}.channel-context-note{display:flex;justify-content:space-between;gap:10px;margin-top:10px;padding:9px 11px;border:1px solid #edd5a0;border-radius:10px;background:#fffaf0;font-size:12px}.channel-context-note span{color:var(--muted);text-align:right}
.tiktok-review-demo{margin-top:18px;border-color:#b8c0c5;background:linear-gradient(145deg,#fff,#f2f4f5)}.tiktok-review-grid{display:grid;grid-template-columns:.72fr 1fr 1.5fr;gap:10px;margin-top:12px}.tiktok-demo-account,.tiktok-demo-media,.tiktok-demo-comment{min-width:0;padding:11px;border:1px solid #d8dddf;border-radius:13px;background:#fff}.tiktok-demo-account{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center}.tiktok-demo-account strong,.tiktok-demo-account span,.tiktok-demo-account small,.tiktok-demo-media strong,.tiktok-demo-media span,.tiktok-demo-media small,.tiktok-demo-comment strong,.tiktok-demo-comment small{display:block}.tiktok-demo-account p,.tiktok-demo-media p,.channel-tiktok-context p,.channel-tiktok-media p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.tiktok-demo-account span,.tiktok-demo-account small,.tiktok-demo-media span,.tiktok-demo-media small,.tiktok-demo-comment small{margin-top:3px;color:var(--muted);font-size:12px}.tiktok-demo-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#111827;color:#fff;font-size:12px;font-weight:900}.review-demo-check{align-self:start;padding:3px 6px;border-radius:999px;background:#dff1e8;color:#176448;font-size:11px}.tiktok-demo-media{display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;align-items:center}.tiktok-demo-cover{display:grid;place-items:center;width:54px;height:68px;border-radius:10px;background:linear-gradient(155deg,#153f35,#e8c168);color:#fff;font-size:22px;text-align:center}.tiktok-demo-cover em{display:block;font-size:11px;font-style:normal}.tiktok-demo-comment p{margin:8px 0 0;color:var(--ink);font-size:13px;line-height:1.55}.tiktok-demo-comment>span{display:block;margin-top:6px;color:var(--muted);font-size:12px}.tiktok-review-actions{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:11px;margin-top:11px}.tiktok-review-actions .form-message{grid-column:1/-1;margin:0}.tiktok-review-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none;counter-reset:tiktok-flow}.tiktok-review-flow li{counter-increment:tiktok-flow;display:grid;place-items:center;min-height:38px;padding:7px;border:1px solid #d8dddf;border-radius:9px;background:#fff;color:#40504a;font-size:12px;text-align:center}.tiktok-review-flow li:before{content:counter(tiktok-flow);display:grid;place-items:center;width:16px;height:16px;margin-bottom:3px;border-radius:999px;background:#111827;color:#fff;font-size:11px}.channel-tiktok-context{margin-top:10px;padding:10px;border:1px solid #d7dcde;border-radius:12px;background:#f7f8f8}.channel-tiktok-context.review-demo{border-color:#9bbbaa;background:#f2f8f5}.channel-tiktok-context-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:flex-start}.channel-tiktok-context-head strong,.channel-tiktok-context-head small{display:block}.channel-tiktok-context-head small{margin-top:3px;color:var(--muted);font-size:12px}.channel-tiktok-context-head>em{padding:3px 6px;border-radius:999px;background:#e5eee9;color:#275e4b;font-size:11px;font-style:normal;white-space:nowrap}.channel-tiktok-media{display:grid;grid-template-columns:42px minmax(0,1fr);gap:9px;align-items:center;margin-top:8px;padding-top:8px;border-top:1px solid #dde4e0}.channel-tiktok-media>span{display:grid;place-items:center;width:42px;height:52px;border-radius:9px;background:linear-gradient(155deg,#153f35,#e8c168);color:#fff;font-size:17px}.channel-tiktok-media strong,.channel-tiktok-media small,.channel-tiktok-media span{display:block}.channel-tiktok-media small,.channel-tiktok-media span{margin-top:2px;color:var(--muted);font-size:12px}
@media(max-width:1100px){.channel-provider-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.channel-layout,.channel-tools-grid{grid-template-columns:1fr}.channel-inbox-panel,.channel-thread-panel{min-height:0}.channel-inbox{max-height:390px}.channel-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.channel-safety-form,.radar-api-settings-form{grid-template-columns:repeat(2,minmax(0,1fr))}.tiktok-review-grid{grid-template-columns:1fr 1fr}.tiktok-demo-comment{grid-column:1/-1}.tiktok-review-flow{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.channel-provider-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.channel-hero{display:grid}.channel-filter-form,.channel-form,.channel-safety-form,.channel-account-fields,.radar-api-settings-form,.tiktok-review-grid,.meta-account-boundaries,.meta-asset-list,.whatsapp-coexistence-flow{grid-template-columns:1fr}.channel-form .span-two,.radar-api-settings-form .span-two,.tiktok-demo-comment{grid-column:auto}.channel-message{max-width:94%}.channel-account-card{grid-template-columns:auto minmax(0,1fr)}.channel-account-actions{grid-column:1/-1;justify-content:flex-start}.tiktok-review-actions{display:grid}.tiktok-review-flow{grid-template-columns:1fr 1fr}.meta-import-actions{display:grid}.meta-discovery-head{align-items:flex-start}}

@media(max-width:1100px){.quick-document-fields.unbound{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.quick-document-fields.unbound,.customer-picker-controls{grid-template-columns:minmax(0,1fr)}}

/* Documents: ledger-first page with one guided composer */
.document-hero-actions{display:grid;gap:9px;min-width:230px}.document-hero-actions .primary-button{width:100%}
.document-reference-panel{margin-top:18px;border:1px solid var(--line);border-radius:16px;background:rgba(255,254,250,.72)}.document-reference-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;cursor:pointer;list-style:none}.document-reference-panel>summary::-webkit-details-marker{display:none}.document-reference-panel>summary strong,.document-reference-panel>summary small{display:block}.document-reference-panel>summary small{margin-top:3px;color:var(--muted);font-size:12px}.document-reference-panel>summary>span:last-child{color:var(--green-2);font-size:12px;font-weight:800}.document-reference-panel[open]>summary{border-bottom:1px solid var(--line)}.document-reference-content{padding:17px}.document-reference-content .document-card{min-height:0}.document-reference-content .document-bottom-grid{margin-bottom:0}
.document-composer-dialog,.document-customer-picker-dialog{max-width:none;padding:0;border:0;border-radius:22px;background:#f4f6f1;color:var(--ink);box-shadow:0 30px 90px rgba(12,39,32,.28)}.document-composer-dialog{width:min(1500px,calc(100vw - 42px));height:min(92vh,980px);overflow:hidden}.document-customer-picker-dialog{width:min(1050px,calc(100vw - 54px));max-height:88vh;overflow:hidden}.document-composer-dialog::backdrop,.document-customer-picker-dialog::backdrop{background:rgba(13,42,35,.54);backdrop-filter:blur(3px)}
.document-composer-shell{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%}.document-composer-header,.document-customer-picker-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:17px 20px;border-bottom:1px solid rgba(22,63,53,.13);background:#fffdf8}.document-composer-header h2,.document-customer-picker-header h2{margin:2px 0 4px;font-size:20px}.document-composer-header p,.document-customer-picker-header p{margin:0;color:var(--muted);font-size:13px}.dialog-close-button{display:grid;place-items:center;width:36px;height:36px;flex:0 0 auto;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--green);font-size:23px;line-height:1;cursor:pointer}.dialog-close-button:hover{border-color:var(--green-2);background:#eff7f2}
.document-composer-body{overflow:auto;padding:16px 18px 28px}.document-composer-body>.document-business-flow{position:static;margin-bottom:14px;box-shadow:none}.document-business-flow>button{min-width:0;padding:4px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.document-business-flow>button:hover strong{color:var(--green-2);text-decoration:underline}.document-composer-body>.quick-document-panel,.document-composer-body>.workbench-panel{margin-bottom:14px}.document-composer-body .composer-mirrored-field,.document-composer-body #documentConfigurationSection{display:none!important}.customer-picker-trigger{width:100%;min-height:44px;padding:10px 11px;border:1px solid rgba(22,63,53,.18);border-radius:10px;background:#fff;color:var(--green);font:inherit;font-weight:800;text-align:left;cursor:pointer}.customer-picker-trigger:hover{border-color:var(--green-2);background:#f7fbf8}
.document-composer-step-nav{display:flex;gap:8px;margin-bottom:14px;padding:5px;border:1px solid rgba(22,63,53,.14);border-radius:13px;background:#fff}.document-composer-step-nav button{flex:1;min-height:36px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-weight:700;cursor:pointer}.document-composer-step-nav button.active{background:var(--green);color:#fff}.document-composer-body #documentComposerBuilderMount>.product-builder-layout{grid-template-columns:minmax(0,1fr) minmax(300px,.36fr);margin-bottom:14px}.document-composer-body #documentComposerBuilderMount .product-builder-summary-panel{top:0}.document-composer-dialog[data-step="builder"] .document-business-flow,.document-composer-dialog[data-step="builder"] .quick-document-panel,.document-composer-dialog[data-step="builder"] .workbench-panel,.document-composer-dialog[data-step="builder"] .document-source-chooser{display:none!important}.document-composer-dialog:not([data-step="builder"]) #documentComposerBuilderMount{display:none!important}
.document-composer-next-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px;padding:10px 14px;border:1px solid rgba(22,63,53,.14);border-radius:12px;background:#eef6f1}.document-composer-next-actions:empty{display:none}.document-composer-next-actions strong{color:var(--green)}.document-composer-next-actions span{font-size:12px;color:var(--muted)}.document-composer-next-actions>div{display:flex;gap:7px;flex-wrap:wrap}.document-composer-next-actions button{min-height:32px;padding:5px 10px}
.document-composer-next-actions select{min-height:32px;max-width:240px;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:#fff}
.document-composer-confirm-form{display:flex;align-items:end;gap:9px;flex-wrap:wrap;width:100%;margin-top:12px;padding:12px;border-radius:10px;background:#eef6f1}.document-composer-confirm-form>strong{width:100%}.document-composer-confirm-form label{display:grid;gap:5px;flex:1;min-width:180px;font-size:12px;color:var(--muted)}.document-composer-confirm-form input,.document-composer-confirm-form select{min-height:36px;padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff}.document-composer-confirm-form button{min-height:36px}
.document-customer-picker-shell{display:grid;grid-template-rows:auto auto minmax(260px,1fr) auto;max-height:88vh}.document-customer-picker-search{display:grid;gap:6px;padding:14px 18px 10px;color:var(--muted);font-size:12px}.document-customer-picker-search input{margin:0;background:#fff}.document-customer-picker-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:12px;min-height:0;padding:4px 18px 14px}.document-customer-picker-grid>div{display:grid;grid-template-rows:auto minmax(0,1fr);gap:7px;min-height:0}.document-customer-picker-label{font-size:13px}.document-customer-picker-list{display:grid;align-content:start;gap:7px;min-height:0;max-height:470px;overflow:auto;padding-right:4px}.document-customer-picker-item{display:grid;gap:3px;width:100%;padding:11px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.document-customer-picker-item:hover,.document-customer-picker-item.selected{border-color:#73a38d;background:#eff8f3}.document-customer-picker-item strong{font-size:13px}.document-customer-picker-item span,.document-customer-picker-item small{color:var(--muted);font-size:12px}.document-customer-picker-empty{padding:18px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:13px;text-align:center}.document-customer-picker-preview{overflow:auto;padding:16px;border:1px solid rgba(31,98,80,.22);border-radius:15px;background:#fff}.document-customer-preview-heading small,.document-customer-preview-heading span{display:block;color:var(--muted);font-size:12px}.document-customer-preview-heading h3{margin:4px 0;font-size:19px}.document-customer-picker-preview dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}.document-customer-picker-preview dl>div{padding:9px;border-radius:10px;background:#f4f7f3}.document-customer-picker-preview dt{color:var(--muted);font-size:12px}.document-customer-picker-preview dd{margin:4px 0 0;font-size:13px;overflow-wrap:anywhere}.document-customer-preview-note{margin:0;padding:10px;border-radius:10px;background:#fff8e9;color:#765d25;font-size:12px;line-height:1.5}.document-customer-picker-actions{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;padding:13px 18px;border-top:1px solid var(--line);background:#fffdf8}
.quick-configuration-warnings{display:grid;gap:3px;margin:0 0 10px;padding:10px 12px;border:1px solid #e7c88c;border-radius:11px;background:#fff8e8}.quick-configuration-warnings strong{color:#765619;font-size:13px}.quick-configuration-warnings span,.quick-configuration-warnings small{color:#7d6a43;font-size:12px;line-height:1.45}
@media(max-width:760px){.document-hero{display:grid}.document-hero-actions{min-width:0}.document-composer-dialog,.document-customer-picker-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.document-composer-header,.document-customer-picker-header{padding:13px 14px}.document-composer-header h2,.document-customer-picker-header h2{font-size:17px}.document-composer-body{padding:10px}.document-composer-body>.document-business-flow{position:static}.document-customer-picker-shell{height:100%;max-height:none}.document-customer-picker-grid{grid-template-columns:1fr;overflow:auto}.document-customer-picker-list{max-height:240px}.document-customer-picker-preview{min-height:220px}.document-customer-picker-actions{grid-template-columns:1fr 1fr}.document-customer-picker-actions span{display:none}.document-customer-picker-actions .primary-button{grid-column:1/-1}.document-customer-picker-preview dl{grid-template-columns:1fr}.document-reference-panel>summary{align-items:flex-start}}
@media(max-width:760px){.document-composer-step-nav{gap:2px}.document-composer-step-nav button{font-size:12px}.document-composer-body #documentComposerBuilderMount>.product-builder-layout{grid-template-columns:1fr}}
@media(max-width:760px){.product-batch-approval-bar{grid-template-columns:1fr}.product-batch-approval-bar .primary-button{width:100%}.product-config-row-wrap.approvable{grid-template-columns:38px minmax(0,1fr)}.product-batch-approval-dialog{width:100vw;max-height:100dvh;border-radius:0}.product-batch-approval-form>footer{display:grid;grid-template-columns:1fr 1fr}}

/* Readability and product-library layout v1.36.1 */
html { font-size: 16px; }
body { line-height: 1.5; }
.app-layout { font-size: 15px; }
.app-layout input, .app-layout select, .app-layout textarea { font-size: 14px; }
.app-layout label, .app-layout button, .app-layout th, .app-layout td { line-height: 1.45; }
.app-layout small { line-height: 1.5; }
.app-layout .muted, .app-layout .compact-copy { font-size: 13px; }
.app-layout .workspace { padding-left: clamp(28px, 3vw, 52px); padding-right: clamp(28px, 3vw, 52px); }

.product-config-layout { grid-template-columns: minmax(0, 1fr) minmax(350px, .48fr); gap: 18px; }
.product-config-list { gap: 10px; }
.product-config-row-wrap.approvable { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
.product-approval-check { border-radius: 13px; }
.product-approval-check span { font-size:13px; }
.product-config-row {
  grid-template-columns: minmax(220px, 1.35fr) minmax(180px, .85fr) minmax(132px, auto);
  grid-template-areas: "identity module state" "tiers tiers state";
  gap: 9px 16px;
  min-height: 86px;
  padding: 14px 15px;
}
.product-config-identity { grid-area: identity; }
.product-config-module { grid-area: module; }
.product-tier-tags { grid-area: tiers; }
.product-config-state { grid-area: state; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 10px; min-width: 128px; }
.product-config-row strong { font-size: 14px; line-height: 1.4; }
.product-config-row small { margin-top: 4px; font-size: 12px; line-height: 1.45; white-space: normal; }
.product-tier-tags span { padding: 5px 8px; font-size:13px; }
.product-row-status span { font-size:13px; }
.product-row-action { font-size: 12px; }
.product-filter-toolbar { gap: 11px; padding: 14px; }
.product-filter-toolbar label { font-size: 12px; }
.product-filter-toolbar input, .product-filter-toolbar select { min-height: 44px; padding: 10px 12px; font-size: 13px; }
.product-active-filters > button, .product-active-filters > span { font-size:13px; }
.product-filter-result strong { font-size: 13px; }
.product-filter-result span { font-size: 12px; }
.product-batch-approval-bar label, .product-batch-approval-bar strong { font-size: 12px; }
.product-config-detail { padding: 19px; }
.product-detail-head h4 { font-size: 17px; }
.product-detail-head small, .product-detail-badges span, .product-detail-copy { font-size: 12px; }
.product-detail-price-grid strong { font-size: 12px; }
.product-detail-price-grid span { font-size:13px; }
.product-approval-result { display: grid; gap: 3px; min-height: 0; margin: 10px 0 12px; padding: 12px 14px; border: 1px solid #afd1c0; border-radius: 12px; background: #eff8f3; }
.product-approval-result strong, .product-approval-result span { display: block; }
.product-approval-result strong { color: var(--green); font-size: 13px; }
.product-approval-result span { color: #526b62; font-size: 12px; line-height: 1.5; }

@media (max-width: 1280px) {
  .product-config-layout { grid-template-columns: 1fr; }
  .product-config-detail { position: static; }
}
@media (max-width: 860px) {
  .product-config-row { grid-template-columns: 1fr; grid-template-areas: "identity" "module" "tiers" "state"; }
  .product-config-state { align-items: flex-start; min-width: 0; }
  .product-row-action { text-align: left; }
}

/* Product and configuration solution hub v1.37.0 */
.configuration-hub-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
  padding: 28px 30px;
  border-color: rgba(31, 90, 74, .2);
  background: linear-gradient(125deg, #fffefa 0%, #f2f8f3 62%, #e3f0e8 100%);
}
.configuration-hub-hero > div:first-child { max-width: 820px; }
.configuration-hub-hero h3 { margin: 0 0 9px; font: 600 28px/1.25 Georgia, "Microsoft YaHei", serif; }
.configuration-hub-hero p:last-child { margin: 0; font-size: 14px; }
.configuration-hub-seal { display: grid; grid-template-columns: auto auto auto auto auto; align-items: center; gap: 8px; min-width: 235px; }
.configuration-hub-seal span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; box-shadow: 0 7px 18px rgba(22,63,53,.18); }
.configuration-hub-seal i { color: #7e968d; font-style: normal; }
.configuration-hub-seal small { grid-column: 1 / -1; margin-top: 2px; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-align: center; }
.configuration-route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.configuration-route-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; min-height: 385px; overflow: hidden; padding: 26px; }
.configuration-route-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -86px; bottom: -100px; border-radius: 50%; background: rgba(39,105,83,.08); pointer-events: none; }
.configuration-route-card.document-route { border-color: rgba(31, 90, 74, .25); background: linear-gradient(145deg, #fffefa, #eff7f2); }
.configuration-route-card.preview-route { border-color: rgba(184, 138, 59, .26); background: linear-gradient(145deg, #fffefa, #fff7e7); }
.configuration-route-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.configuration-route-head em { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.8); color: #687771; font-size: 12px; font-style: normal; font-weight: 750; }
.configuration-route-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--green); color: #fff; font-size: 23px; box-shadow: 0 10px 24px rgba(22,63,53,.16); }
.preview-route .configuration-route-icon { background: #a77d34; }
.configuration-route-card h3 { margin: 0 0 8px; font-size: 24px; }
.configuration-route-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.configuration-route-card ul { display: grid; align-content: start; gap: 10px; margin: 0; padding: 0; list-style: none; }
.configuration-route-card li { position: relative; padding-left: 25px; color: #42554e; font-size: 13px; }
.configuration-route-card li::before { content: "✓"; position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #dff0e8; color: var(--green-2); font-size: 11px; font-weight: 900; }
.configuration-route-action { position: relative; z-index: 1; display: block; width: 100%; min-height: 48px; text-align: center; text-decoration: none; }
.configuration-unified-panel { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); gap: 22px; margin-bottom: 18px; padding: 0; overflow: hidden; border-color: rgba(31,90,74,.23); }
.configuration-unified-main { display: grid; align-content: start; gap: 21px; min-height: 390px; padding: 28px 30px; background: linear-gradient(145deg,#fffefa,#eff7f2); }
.configuration-unified-main h3 { margin: 0 0 8px; font-size: 25px; }
.configuration-unified-main p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.configuration-compatibility-note { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: center; margin: 0; padding: 13px 14px; border: 1px solid #dac58f; border-radius: 13px; background: #fff9e9; }
.configuration-compatibility-note strong { color: #73551c; font-size: 13px; white-space: nowrap; }
.configuration-compatibility-note span { color: #74694d; font-size: 13px; line-height: 1.55; }
.configuration-compatibility-note.compact { margin: 0 0 11px; }
.configuration-unified-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.72fr); gap: 10px; margin-top: auto; }
.configuration-unified-actions > * { display: grid; place-items: center; min-height: 50px; margin: 0; text-align: center; text-decoration: none; }
.configuration-output-panel { display: grid; align-content: start; gap: 13px; padding: 28px 26px; background: linear-gradient(155deg,#163f35,#235f4d); color: #fff; }
.configuration-output-panel .eyebrow { color: #acd8c7; }
.configuration-output-panel h3 { margin: 0; color: #fff; font-size: 21px; }
.configuration-output-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.09); }
.configuration-output-card > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--green); font-size: 19px; }
.configuration-output-card strong,.configuration-output-card small { display: block; }
.configuration-output-card strong { color: #fff; font-size: 14px; }
.configuration-output-card small { margin-top: 3px; color: #cfe2da; font-size: 12px; line-height: 1.5; }
.configuration-output-card em { padding: 4px 7px; border-radius: 999px; background: #dff2e9; color: #176047; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.configuration-output-card.visual > span { background: #fff2cf; color: #8a6522; }
.configuration-output-card.visual em { background: #fff2cf; color: #7a591b; }
.configuration-output-panel > p:last-child { margin: 5px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); color: #bdd4cb; font-size: 12px; line-height: 1.55; }
.configuration-flow-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 26px; }
.configuration-flow-panel > div:first-child { max-width: 610px; }
.configuration-flow-panel h3 { margin: 0 0 7px; }
.configuration-flow-panel p:last-child { margin: 0; font-size: 13px; }
.configuration-flow-steps { display: flex; align-items: center; gap: 9px; }
.configuration-flow-steps span { display: grid; gap: 3px; min-width: 118px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf8; color: #40534c; font-size: 12px; font-weight: 700; }
.configuration-flow-steps b { color: var(--gold); font-size: 11px; }
.configuration-flow-steps i { color: #8ca097; font-style: normal; }

.settings-product-maintenance { margin: 0 0 24px; padding: 22px; border: 1px solid rgba(31,90,74,.19); border-radius: 22px; background: rgba(237,246,240,.6); }
.settings-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 16px; padding: 3px 4px 0; }
.settings-section-heading h2 { margin: 0 0 6px; font: 600 25px/1.3 Georgia, "Microsoft YaHei", serif; }
.settings-section-heading p:last-child { max-width: 800px; margin: 0; font-size: 13px; }
.settings-product-maintenance .product-command-panel { margin-bottom: 14px; }
.settings-product-maintenance .product-browser-panel { margin-bottom: 0; }

@media (max-width: 1100px) {
  .configuration-hub-hero, .configuration-flow-panel { align-items: flex-start; }
  .configuration-unified-panel { grid-template-columns: 1fr; }
  .configuration-unified-main { min-height: 0; }
  .configuration-flow-panel { display: grid; }
  .configuration-flow-steps { flex-wrap: wrap; }
}
@media (max-width: 780px) {
  .configuration-hub-hero { display: grid; padding: 22px; }
  .configuration-hub-seal { min-width: 0; width: fit-content; }
  .configuration-route-grid { grid-template-columns: 1fr; }
  .configuration-route-card { min-height: 0; }
  .configuration-unified-main,.configuration-output-panel { padding: 22px; }
  .configuration-unified-actions { grid-template-columns: 1fr; }
  .configuration-compatibility-note { grid-template-columns: 1fr; gap: 4px; }
  .configuration-flow-steps { display: grid; grid-template-columns: 1fr; width: 100%; }
  .configuration-flow-steps i { display: none; }
  .settings-product-maintenance { padding: 14px; }
  .settings-section-heading { display: grid; }
}

/* Direct configuration entry, bulk void and fixed editor actions v1.38.0 */
.document-composer-dialog[data-context="configuration"] [data-quick-document-type]:not([data-quick-document-type="configuration_sheet"]) { display: none; }
.document-composer-dialog[data-context="configuration"] .quick-document-type-tabs { grid-template-columns: minmax(240px, 1fr); }

.document-bulk-action-bar { display: grid; grid-template-columns: minmax(220px,1fr) auto auto auto auto; gap: 10px; align-items: center; margin: 0 0 11px; padding: 11px 13px; border: 1px solid #a8c7b8; border-radius: 13px; background: #f1f8f4; }
.document-bulk-action-bar.hidden { display: none; }
.document-bulk-action-bar label { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--green); font-size: 13px; font-weight: 750; }
.document-bulk-action-bar input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.document-bulk-action-bar strong { color: var(--green); font-size: 12px; }
.document-bulk-action-bar .danger-button { color: #963d2f; border-color: #d7a79c; background: #fff; }
.recent-draft-card { grid-template-columns: 38px minmax(0,1fr) minmax(120px,auto) minmax(250px,auto); }
.document-select-check { display: grid; justify-items: center; gap: 3px; margin: 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.document-select-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.recent-draft-card.archived { border-style:dashed; background:#f3f4f1; }
.recent-draft-card.archived .recent-draft-summary { opacity:.78; }
.recent-draft-amount { text-align: right; }
.recent-draft-amount .status-pill { display: inline-block; margin-top: 4px; }
.recent-draft-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 520px; }

.product-master-dialog .product-master-editor:not(.hidden) { display: grid; grid-template-rows: auto minmax(0,1fr); height: 100%; min-height: 0; }
.product-master-editor-grid { grid-template-rows: none; height: 100%; min-height: 0; max-height: none; overflow-y: auto; overflow-x: hidden; padding-bottom: 0; }
.product-master-workspace { align-self: start; height: auto; min-height: 0; max-height: none; overflow: visible; padding-right: 4px; }
.product-editor-footer { align-self: auto; }

@media (min-width: 1281px) {
  .product-config-layout { grid-template-columns: minmax(560px,1.05fr) minmax(420px,.72fr); }
  .product-config-list { min-height: 360px; max-height: min(610px, calc(100dvh - 360px)); padding-right: 7px; }
  .product-config-detail { max-height: min(610px, calc(100dvh - 360px)); overflow: auto; }
}
@media (max-width: 1180px) {
  .recent-draft-card { grid-template-columns: 36px minmax(0,1fr) auto; }
  .recent-draft-actions { grid-column: 2 / -1; max-width: none; }
}
@media (max-width: 760px) {
  .document-bulk-action-bar { grid-template-columns: 1fr; }
  .document-bulk-action-bar button { width: 100%; }
  .recent-draft-card { grid-template-columns: 32px minmax(0,1fr); align-items: start; }
  .recent-draft-amount, .recent-draft-actions { grid-column: 2; text-align: left; justify-content: flex-start; }
  .product-master-editor-grid { padding-left: 12px; padding-right: 12px; }
  .product-editor-footer { margin: 0; }
}

/* Product configuration workspace: sales-first, readable and page-native */
.product-builder-hero { display:flex; align-items:center; justify-content:space-between; gap:28px; margin-bottom:18px; padding:23px 25px; background:linear-gradient(135deg,#fffdf8,#eaf4ee); }
.product-builder-hero h3 { margin:0 0 8px; font:600 27px/1.3 Georgia,"Microsoft YaHei",serif; }
.product-builder-hero p:last-child { max-width:820px; margin:0; font-size:14px; line-height:1.65; }
.product-builder-hero-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; min-width:330px; }
.product-builder-hero-actions button { min-height:44px; font-size:14px; }
.product-builder-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,.38fr); gap:18px; align-items:start; }
.product-builder-main { min-width:0; padding:22px; }
.product-builder-section-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:13px; }
.product-builder-section-head>div { display:flex; align-items:center; gap:11px; }
.product-builder-section-head>div>span { display:grid; place-items:center; width:34px; height:34px; flex:0 0 auto; border-radius:11px; background:var(--green); color:#fff; font-size:13px; font-weight:900; }
.product-builder-section-head strong,.product-builder-section-head small { display:block; }
.product-builder-section-head strong { font-size:17px; }
.product-builder-section-head small { margin-top:3px; color:var(--muted); font-size:13px; line-height:1.45; }
.product-builder-section-head>em { color:var(--green-2); font-size:13px; font-style:normal; font-weight:800; }
.product-builder-section-head.modules { align-items:end; margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.product-builder-search { display:grid; gap:5px; width:min(340px,42%); color:var(--muted); font-size:13px; font-weight:700; }
.product-builder-search input { width:100%; min-height:42px; padding:9px 11px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font:inherit; font-size:14px; }
.product-builder-model-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.product-builder-model-card { display:grid; gap:5px; min-width:0; min-height:105px; padding:13px; border:1px solid var(--line); border-radius:14px; background:#fbfcf9; color:var(--ink); text-align:left; cursor:pointer; }
.product-builder-model-card:hover { border-color:#7da693; background:#f5faf7; }
.product-builder-model-card.active { border-color:var(--green); background:var(--green); color:#fff; box-shadow:0 9px 22px rgba(22,63,53,.18); }
.product-builder-model-card>span { color:var(--gold); font-size:13px; font-weight:900; letter-spacing:.06em; }
.product-builder-model-card>strong { font-size:15px; line-height:1.4; overflow-wrap:anywhere; }
.product-builder-model-card>small { color:var(--muted); font-size:12.5px; line-height:1.45; }
.product-builder-model-card.active>span,.product-builder-model-card.active>small { color:rgba(255,255,255,.78); }
.product-builder-preferences { display:grid; grid-template-columns:minmax(220px,1.25fr) auto minmax(150px,.65fr) auto auto minmax(210px,.75fr); gap:9px; align-items:center; margin-top:14px; padding:13px; border:1px solid var(--line); border-radius:14px; background:#f6f9f6; }
.product-builder-language-control,.product-builder-discount-control input { width:100%; min-height:42px; margin:0; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font-size:14px; }
.product-builder-discount-control { display:grid; grid-template-columns:auto minmax(70px,1fr); align-items:center; gap:8px; min-width:210px; margin:0; color:var(--green); font-size:13px; font-weight:800; white-space:nowrap; }
.product-builder-preferences .choice-check { min-height:42px; margin:0; font-size:13px; }
.product-builder-customer-remarks { display:grid; gap:6px; margin-top:10px; color:var(--ink); font-size:13px; font-weight:700; }
.product-builder-customer-remarks textarea { width:100%; min-height:68px; resize:vertical; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fffdf8; color:var(--ink); font:inherit; font-weight:500; line-height:1.5; }
.product-builder-customer-button { min-height:42px; margin:0; padding:9px 12px; border:1px solid #97b4a7; border-radius:10px; background:#fff; color:var(--green); font-size:14px; font-weight:800; text-align:left; cursor:pointer; }
.product-builder-module-tabs { display:flex; gap:7px; margin:0 0 13px; padding:2px 1px 9px; overflow-x:auto; scrollbar-width:thin; }
.product-builder-module-tabs button { flex:0 0 auto; min-height:39px; padding:8px 11px; border:1px solid var(--line); border-radius:10px; background:#fff; color:#40534c; font-size:13px; font-weight:800; cursor:pointer; }
.product-builder-module-tabs button span { display:inline-grid; place-items:center; min-width:22px; height:22px; margin-left:4px; border-radius:999px; background:#edf2ee; color:var(--muted); font-size:12px; }
.product-builder-module-tabs button.active { border-color:var(--green); background:#e8f3ed; color:var(--green); }
.product-builder-catalog { display:grid; gap:16px; }
.product-builder-module-group { display:grid; gap:9px; }
.product-builder-module-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 2px; }
.product-builder-module-heading strong { color:var(--green); font-size:15px; }
.product-builder-module-heading span { color:var(--muted); font-size:13px; }
.product-builder-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.product-builder-option-card { display:grid; grid-template-columns:70px minmax(0,1fr) auto; gap:10px; align-items:center; min-width:0; min-height:105px; padding:10px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.product-builder-option-card:hover { border-color:#83aa98; transform:translateY(-1px); }
.product-builder-option-card.selected { border-color:var(--green-2); background:#edf7f1; box-shadow:inset 0 0 0 1px rgba(31,98,80,.08); }
.product-builder-option-card.locked { border-color:#c5a85f; background:#fff8e7; cursor:default; opacity:1; }
.product-builder-option-image { display:grid; place-items:center; width:70px; height:72px; overflow:hidden; border-radius:11px; background:#e8efea; color:#75877f; font-size:20px; }
.product-builder-option-image img { width:100%; height:100%; object-fit:cover; }
.product-builder-option-copy { min-width:0; }
.product-builder-option-copy small,.product-builder-option-copy strong,.product-builder-option-copy span,.product-builder-option-copy em { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-builder-option-copy small { color:var(--muted); font-size:12px; }
.product-builder-option-copy strong { margin-top:3px; font-size:14px; line-height:1.45; }
.product-builder-option-copy span { margin-top:2px; color:var(--muted); font-size:12.5px; }
.product-builder-option-copy em { margin-top:6px; color:#9a6c1e; font-size:12.5px; font-style:normal; font-weight:700; }
.product-builder-option-state { min-width:54px; padding:6px 7px; border-radius:999px; background:#eef2ef; color:#607169; font-size:12px; font-weight:900; text-align:center; }
.product-builder-option-state.ready { background:#e2f2ea; color:#256a53; }
.product-builder-option-state.pending { background:#fff0cf; color:#8a651d; }
.product-builder-summary-panel { position:sticky; top:16px; display:grid; gap:14px; padding:19px; }
.product-builder-summary-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.product-builder-summary-head h3 { margin:1px 0 0; font-size:18px; }
.product-builder-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.product-builder-totals>div { min-width:0; padding:10px 8px; border:1px solid var(--line); border-radius:11px; background:#f7faf7; text-align:center; }
.product-builder-totals strong,.product-builder-totals span { display:block; overflow-wrap:anywhere; }
.product-builder-totals strong { color:var(--green); font-size:15px; }
.product-builder-totals span { margin-top:3px; color:var(--muted); font-size:12.5px; }
.product-builder-warnings { display:grid; gap:4px; padding:11px 12px; border:1px solid #e6c77f; border-radius:11px; background:#fff8e7; }
.product-builder-warnings strong { color:#73551c; font-size:13px; }
.product-builder-warnings span { color:#7c6941; font-size:12.5px; line-height:1.45; }
.product-builder-pricing-safety,.pricing-safety-summary { display:grid; gap:8px; padding:11px 12px; border:1px solid #d6e3db; border-radius:11px; background:#f7faf7; }
.pricing-safety-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pricing-safety-head>span { padding:3px 7px; border-radius:999px; font-size:11.5px; font-weight:800; }
.pricing-safety-head>span.ready { color:#256a53; background:#e2f2ea; }
.pricing-safety-head>span.warm { color:#8a651d; background:#fff0cf; }
.pricing-safety-head>span.danger { color:#9b3e34; background:#f5e7e3; }
.pricing-safety-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.pricing-safety-grid>div { padding:7px; border-radius:8px; background:#fff; }
.pricing-safety-grid small,.pricing-safety-grid strong { display:block; }
.pricing-safety-grid small,.pricing-safety-summary>small { color:var(--muted); font-size:11.5px; }
.pricing-safety-grid strong { margin-top:2px; color:var(--green); font-size:13px; }
.product-builder-selected-head { display:flex; justify-content:space-between; gap:10px; padding-top:3px; }
.product-builder-selected-head strong { font-size:14px; }
.product-builder-selected-head span { color:var(--muted); font-size:13px; }
.product-builder-selected-items { display:grid; gap:6px; max-height:380px; overflow:auto; padding-right:3px; }
.customer-pricing-open{width:100%;margin:10px 0;min-height:40px}
.customer-pricing-dialog{width:min(860px,calc(100vw - 28px));max-height:min(88dvh,900px);padding:0;border:0;border-radius:18px;background:#fbfcf9;color:var(--ink);box-shadow:0 30px 90px rgba(12,39,32,.28)}
.customer-pricing-dialog::backdrop{background:rgba(13,42,35,.54)}
.customer-pricing-shell{display:grid;gap:14px;padding:20px;max-height:88dvh;overflow:auto}
.customer-pricing-shell header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:12px}
.customer-pricing-shell h2{margin:2px 0 6px;font-size:22px}.customer-pricing-shell header p:last-child{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.customer-package-fields{display:grid;grid-template-columns:2fr 1fr;gap:10px;padding:12px;border:1px solid #b7d4c9;border-radius:12px;background:#eef7f2}
.customer-package-fields.hidden{display:none}
.customer-package-fields label,.customer-price-input{display:grid;gap:5px;font-size:12px;color:var(--muted)}
.customer-package-fields input,.customer-price-input input{width:100%;min-width:0;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit}
.customer-pricing-table-head{display:flex;justify-content:space-between;gap:10px}.customer-pricing-table-head small{color:var(--muted)}
.customer-pricing-items{display:grid;gap:7px;max-height:44dvh;overflow:auto;padding-right:3px}
.customer-pricing-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,190px) 140px;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.customer-pricing-row>div:first-child{min-width:0}.customer-pricing-row strong,.customer-pricing-row small{display:block}.customer-pricing-row strong{font-size:13px;overflow-wrap:anywhere}.customer-pricing-row small{margin-top:3px;color:var(--muted);font-size:12px}
.customer-package-model-note{font-size:11px;color:var(--muted)}.customer-pricing-shell footer{display:flex;gap:8px;align-items:center;border-top:1px solid var(--line);padding-top:12px}.customer-pricing-shell footer span{flex:1}
@media(max-width:680px){.customer-pricing-dialog,.customer-pricing-shell{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.customer-package-fields,.customer-pricing-row{grid-template-columns:1fr}.customer-pricing-items{max-height:none}.customer-pricing-shell footer{flex-wrap:wrap}.customer-pricing-shell footer span{display:none}}
.product-builder-selected-items>div { display:flex; align-items:center; justify-content:space-between; gap:9px; padding:8px 9px; border:1px solid var(--line); border-radius:10px; background:#fbfcf9; }
.product-builder-selected-items>div>span:nth-child(2) { min-width:0; flex:1; }
.product-builder-selected-items strong,.product-builder-selected-items small { display:block; }
.product-builder-selected-items strong { font-size:13px; }
.product-builder-selected-items small { margin-top:2px; color:var(--muted); font-size:12px; }
.product-builder-selected-items em { color:#7d8d85; font-size:12px; font-style:normal; }
.product-builder-order-actions { display:flex; align-items:center; gap:3px; }
.product-builder-selected-items button { width:25px; height:25px; flex:0 0 auto; border:0; border-radius:7px; background:#edf3ef; color:#476359; font-size:14px; cursor:pointer; }
.product-builder-selected-items button.remove { background:#f5e7e3; color:#9b3e34; font-size:18px; }
.product-master-history { grid-column:1/-1; display:grid; gap:4px; padding:10px 12px; border-radius:10px; background:#f2f6f3; }
.product-master-history strong { color:var(--green); font-size:13px; }
.product-master-history span { color:var(--muted); font-size:12px; }
.product-builder-output-note { display:grid; gap:3px; padding:11px; border-radius:11px; background:#edf5f0; }
.product-builder-output-note strong { color:var(--green); font-size:13px; }
.product-builder-output-note span { color:var(--muted); font-size:12.5px; line-height:1.45; }
.product-builder-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.product-builder-actions button { min-height:44px; font-size:14px; }
.product-builder-actions .primary-button { grid-column:1/-1; grid-row:1; }
.product-builder-recent-panel { margin-top:18px; }
.product-builder-recent-list { display:grid; gap:8px; }
.product-builder-recent-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:center; padding:12px 13px; border:1px solid var(--line); border-radius:13px; background:#fbfcf9; }
.product-builder-recent-card small,.product-builder-recent-card strong,.product-builder-recent-card span { display:block; }
.product-builder-recent-card small { color:var(--muted); font-size:12.5px; }
.product-builder-recent-card strong { margin-top:3px; font-size:14px; }
.product-builder-recent-card span { margin-top:3px; color:var(--muted); font-size:13px; }
.product-builder-recent-card>div:last-child { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.product-builder-recent-card a { display:inline-grid; place-items:center; min-height:38px; padding:7px 10px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--green); font-size:13px; font-weight:800; text-decoration:none; }
.product-builder-empty { display:grid; gap:4px; padding:22px; border:1px dashed var(--line); border-radius:13px; color:var(--muted); }
.product-builder-empty strong { color:var(--ink); font-size:15px; }
.product-builder-empty span { font-size:13px; }

@media (max-width:1450px) {
  .product-builder-layout { grid-template-columns:1fr; }
  .product-builder-summary-panel { position:static; }
  .product-builder-preferences { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .product-builder-customer-button { grid-column:1/-1; }
  .product-builder-language-control,.product-builder-discount-control { width:100%; }
}
@media (max-width:760px) {
  .draft-drag-handle { display:none; }
  .product-builder-hero { display:grid; padding:18px; }
  .product-builder-hero h3 { font-size:22px; }
  .product-builder-hero-actions { display:grid; grid-template-columns:1fr; min-width:0; }
  .product-builder-main { padding:15px; }
  .product-builder-model-grid { grid-template-columns:1fr 1fr; }
  .product-builder-preferences,.product-builder-card-grid { grid-template-columns:1fr; }
  .product-builder-section-head,.product-builder-section-head.modules { display:grid; align-items:start; }
  .product-builder-search { width:100%; }
  .product-builder-option-card { grid-template-columns:64px minmax(0,1fr); }
  .product-builder-option-image { width:64px; height:66px; }
  .product-builder-option-state { grid-column:2; justify-self:start; }
  .product-builder-totals { grid-template-columns:1fr; }
  .product-builder-selected-items { max-height:none; }
  .product-builder-recent-card { grid-template-columns:1fr; }
  .product-builder-recent-card>div:last-child { justify-content:flex-start; }
}

/* Documents: choose an existing business source before editing a transaction file */
.document-composer-dialog[data-step="source"] .document-source-chooser { display:grid!important; }
.document-composer-dialog[data-step="source"] .document-business-flow,
.document-composer-dialog[data-step="source"] .quick-document-panel,
.document-composer-dialog[data-step="source"] .workbench-panel { display:none!important; }
.document-composer-dialog[data-step="compose"] .document-source-chooser { display:none!important; }
.document-composer-dialog[data-context="documents"][data-step="compose"] .quick-configuration-head,
.document-composer-dialog[data-context="documents"][data-step="compose"] .quick-configuration-grid,
.document-composer-dialog[data-context="documents"][data-step="compose"] .quick-configuration-warnings,
.document-composer-dialog[data-context="documents"][data-step="compose"] .configuration-compatibility-note.compact,
.document-composer-dialog[data-context="documents"][data-step="compose"] #quickDocumentModelField { display:none!important; }
.document-source-chooser { gap:18px; }
.document-source-chooser-intro { display:flex; align-items:center; justify-content:space-between; gap:26px; padding:20px; border:1px solid rgba(31,90,74,.2); border-radius:16px; background:linear-gradient(135deg,#fffdf8,#eaf4ee); }
.document-source-chooser-intro h3 { margin:1px 0 7px; font-size:22px; }
.document-source-chooser-intro p:last-child { max-width:850px; margin:0; color:var(--muted); font-size:14px; line-height:1.65; }
.document-source-chooser-intro .primary-button { min-width:220px; min-height:46px; font-size:14px; }
.document-source-chooser-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.document-source-chooser-head strong { font-size:16px; }
.document-source-chooser-head span { color:var(--muted); font-size:13px; }
.document-source-chooser-list { display:grid; gap:9px; }
.document-source-choice-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:center; padding:14px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.document-source-choice-card small,.document-source-choice-card strong,.document-source-choice-card span { display:block; }
.document-source-choice-card small { color:var(--muted); font-size:12.5px; }
.document-source-choice-card strong { margin-top:4px; font-size:15px; }
.document-source-choice-card span { margin-top:4px; color:var(--muted); font-size:13px; }
.document-source-choice-card>div:last-child { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.document-source-choice-card button { min-height:40px; font-size:13px; }
.document-source-unavailable { padding:8px 10px; border-radius:9px; background:#f1f4f1; color:var(--muted)!important; }
.document-source-empty,.document-source-chooser-note { display:grid; gap:4px; padding:16px; border:1px dashed var(--line); border-radius:13px; background:#f8faf7; }
.document-source-empty strong,.document-source-chooser-note strong { color:var(--ink); font-size:14px; }
.document-source-empty span,.document-source-chooser-note span { color:var(--muted); font-size:13px; line-height:1.55; }
@media(max-width:760px){
  .document-source-chooser-intro,.document-source-choice-card { grid-template-columns:1fr; display:grid; }
  .document-source-chooser-intro .primary-button { min-width:0; width:100%; }
  .document-source-chooser-head { display:grid; }
  .document-source-choice-card>div:last-child { justify-content:flex-start; }
}

/* Unified messaging workbench v1.41 */
.channel-layout{grid-template-columns:minmax(250px,320px) minmax(430px,1fr) minmax(350px,420px);gap:12px;align-items:start}
.channel-inbox-panel,.channel-thread-panel{min-height:calc(100dvh - 245px)}
.channel-ai-workspace{position:sticky;top:14px;display:grid;gap:10px;min-width:0;max-height:calc(100dvh - 28px);overflow:auto;margin:0;padding:0;border:0}
.assistant-command-card{display:grid;gap:11px;padding:14px}
.assistant-command-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.assistant-command-head h3{margin:1px 0 3px;font-size:18px}.assistant-command-head small{display:block;color:var(--muted);font-size:12px;line-height:1.45}
.assistant-tab-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;border-radius:12px;background:#edf3ef}
.assistant-tab-list button{min-width:0;padding:8px 5px;border:0;border-radius:9px;background:transparent;color:#5c6a65;font-size:12px;font-weight:750;cursor:pointer}
.assistant-tab-list button.active{background:#fff;color:var(--green);box-shadow:0 2px 8px rgba(22,63,53,.09)}
.assistant-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.assistant-primary-actions button{min-width:0;padding:10px 8px}
.assistant-automation-control{display:grid;grid-template-columns:minmax(0,1fr) 78px auto;gap:6px;align-items:end;padding:9px;border:1px solid #dce6e0;border-radius:12px;background:#f8faf8}
.assistant-automation-control label{display:grid;gap:4px;color:#65736e;font-size:11px}.assistant-automation-control select{min-width:0;padding:7px 6px;font-size:12px}
.assistant-automation-hint{margin:0;color:#6d7874;font-size:11px;line-height:1.5}
.assistant-context-details{border:1px solid var(--line);border-radius:13px;background:#fff}
.assistant-context-details>summary{padding:10px 13px;color:#50655d;font-size:12px;font-weight:750;cursor:pointer}
.assistant-context-details>.chat-compose-panel{margin:0;padding:13px;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
.assistant-context-details .chat-compose-panel>.panel-head,.assistant-context-details .quick-customer-form,.assistant-context-details .chat-history-panel{display:none}
.assistant-context-details .chat-field-row{display:grid;grid-template-columns:1fr 1fr}.assistant-context-details .chat-field-row:first-of-type{grid-template-columns:1fr}
.assistant-context-details #chatTranscript{min-height:120px}.assistant-context-details .chat-paste-guide,.assistant-context-details .chat-file-hint{display:none}
.channel-ai-workspace>.chat-result-panel{position:static;margin:0;padding:14px}.channel-ai-workspace>.chat-result-panel>.panel-head{display:none}
.channel-ai-workspace .chat-result-summary{grid-template-columns:1fr 1fr}.channel-ai-workspace .chat-result-summary>div{padding:9px}.channel-ai-workspace .chat-result-summary strong{font-size:18px}
.channel-ai-workspace .chat-insight-grid{grid-template-columns:1fr}.channel-ai-workspace .chat-empty-state{min-height:250px;padding:20px}
.customer-language-title{margin-top:13px}.translation-review-card{padding:12px;border:1px solid #c8dbd1;border-radius:12px;background:#f2f8f4}
.channel-inbox-item time{display:grid;justify-items:end;gap:6px}.channel-ai-state{padding:3px 6px;border-radius:999px;background:#eaf3ee;color:#28624f;font-size:10px;font-style:normal;white-space:nowrap}.channel-ai-state.handoff{background:#fff0ed;color:#a34539}
.channel-message-list{max-height:calc(100dvh - 570px);min-height:260px}.channel-message>.channel-message-original,.channel-message>.channel-message-translation{display:block}.channel-message-original{margin-top:8px;padding-top:7px;border-top:1px solid rgba(22,63,53,.1)}.channel-message-original span{display:block;color:#597269;font-size:10px;font-weight:800}.channel-message-original p{margin-top:3px}.channel-message-translation{margin-top:8px;padding:8px 9px;border-top:1px dashed #b9cfc4;border-radius:8px;background:rgba(255,255,255,.62)}
.channel-message-translation span{display:block;color:#28705a;font-size:10px;font-weight:800}.channel-message-translation p{margin-top:3px;color:#3f504a;font-size:12px}
.channel-message-translation em{color:var(--muted);font-style:normal}#channelTranslationStatus{margin:10px 0 0;font-size:11px}
.channel-composer-tools{display:flex;gap:7px;align-items:center}.channel-composer-tools a{text-decoration:none}.channel-composer-language{display:grid;gap:5px}.channel-composer-language>span{display:flex;justify-content:space-between;color:#38594e;font-size:12px;font-weight:750}.channel-composer-language em{color:#82908b;font-size:11px;font-style:normal;font-weight:500}
.channel-translate-button{justify-self:start}.channel-reply-form textarea{resize:vertical}
.channel-secondary-tools{margin-top:18px}
.assistant-configuration-drawer{width:min(1180px,calc(100vw - 32px));max-width:none;height:min(880px,calc(100dvh - 32px));max-height:none;padding:0;border:0;border-radius:18px;background:#f4f7f4;box-shadow:0 28px 90px rgba(12,39,31,.28)}
.assistant-configuration-drawer::backdrop{background:rgba(13,33,27,.56);backdrop-filter:blur(3px)}
.assistant-configuration-frame{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}.assistant-configuration-frame>header{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px 20px;border-bottom:1px solid #d7e2dc;background:#fff}.assistant-configuration-frame h2{margin:1px 0 3px;font-size:21px}.assistant-configuration-frame header span{color:var(--muted);font-size:12px}
#assistantConfigurationMount{min-height:0;overflow:auto;padding:14px}#assistantConfigurationMount .product-builder-layout{grid-template-columns:minmax(0,1fr) minmax(310px,.42fr)}#assistantConfigurationMount .product-builder-summary-panel{top:0}
@media(max-width:1350px){.channel-layout{grid-template-columns:minmax(240px,285px) minmax(400px,1fr) minmax(330px,370px)}}
@media(max-width:1100px){.channel-layout{grid-template-columns:300px minmax(0,1fr)}.channel-ai-workspace{position:static;grid-column:1/-1;max-height:none;overflow:visible}.channel-inbox-panel,.channel-thread-panel{min-height:0}.channel-message-list{max-height:520px}.assistant-context-details{display:none}}
@media(max-width:760px){.channel-layout{grid-template-columns:1fr}.channel-ai-workspace{grid-column:auto}.assistant-primary-actions{grid-template-columns:1fr}.assistant-automation-control{grid-template-columns:1fr 90px auto}.channel-thread-head{align-items:flex-start}.channel-thread-head>div{align-items:flex-start}.channel-message{max-width:92%}.assistant-configuration-drawer{width:100vw;height:100dvh;border-radius:0}#assistantConfigurationMount{padding:8px}#assistantConfigurationMount .product-builder-layout{grid-template-columns:1fr}.assistant-configuration-frame>header{padding:12px}}

/* Inbox identity, urgency and thread controls */
.channel-inbox-item{grid-template-columns:40px minmax(0,1fr);align-items:start}
.channel-inbox-item .channel-inbox-copy{min-width:0}
.channel-inbox-item .channel-inbox-copy strong{display:block;overflow:visible;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.channel-inbox-item time{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;font-size:11px}
.channel-inbox-item time span{white-space:nowrap}
.channel-inbox-item.awaiting-reply{border-left:4px solid #c84630;background:#fff9f6}
.channel-ai-state.reply-due{background:#b63325;color:#fff;font-size:11px;font-weight:900}
.channel-unread-dot{margin:0}
.channel-thread-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}
.channel-thread-head .channel-thread-identity{display:flex;min-width:0;align-items:flex-start;gap:9px}
.channel-thread-identity>div{min-width:0}
.channel-thread-identity strong{overflow-wrap:anywhere}
.channel-thread-actions{display:grid!important;justify-items:end;gap:7px;min-width:0}
.channel-thread-shortcuts{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.channel-assignment-form{justify-content:flex-end}
.channel-thread-head{align-items:center;min-height:53px;padding-bottom:7px;gap:8px}
.channel-thread-head .channel-thread-identity{align-items:center}
.channel-thread-identity .channel-customer-avatar{width:34px;height:34px;flex-basis:34px}
.channel-thread-identity strong{display:flex;align-items:center;flex-wrap:wrap;gap:5px;line-height:1.2;font-size:14px}
.channel-thread-identity small{margin-top:3px;line-height:1.3}
.channel-country-badge{display:inline-flex;align-items:center;padding:2px 6px;border-radius:999px;background:#e9f2eb;color:#28604c;font-size:11px;font-weight:800}
.channel-thread-head .channel-interaction-badge{margin:0}
.channel-assignment-control{position:relative;font-size:12px}
.channel-assignment-control>summary{padding:6px 9px;border:1px solid var(--line);border-radius:9px;background:#f8faf8;color:var(--green);cursor:pointer;list-style:none;font-weight:800}
.channel-assignment-control>summary::-webkit-details-marker{display:none}
.channel-assignment-control:not(.unassigned) .channel-assignment-form{position:absolute;z-index:10;right:0;top:calc(100% + 5px);min-width:290px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 24px rgba(22,63,53,.16)}
.channel-assignment-control.unassigned{display:flex;align-items:center;gap:8px}
.channel-assignment-control.unassigned>span{color:#a34838;font-weight:800}
.channel-assignment-form select{min-width:135px}
.channel-assignment-form .form-message:empty{display:none}
.assistant-tab-fallback{display:grid;gap:9px;align-content:start;padding:17px;border:1px solid #c8ddd1;border-radius:12px;background:#f4faf6;line-height:1.5}
.assistant-tab-fallback p{margin:0;color:#53645c;font-size:13px}
.assistant-tab-fallback button{justify-self:start}
.channel-document-attachments{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:9px;border:1px solid #b3d1be;border-radius:10px;background:#f0f8f2;font-size:12px}
.channel-document-attachments.hidden{display:none}
.channel-document-attachments strong{width:100%;color:var(--green)}
.channel-document-attachments span{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border-radius:8px;background:#fff;color:var(--green);font-weight:750}
.channel-document-attachments span button{border:0;background:none;color:#965247;font-size:18px;cursor:pointer}
.channel-document-attachments small{width:100%}
.channel-document-history{display:inline-block;margin-top:8px;padding:7px 9px;border:1px solid #b4d1bf;border-radius:8px;background:#f7fbf8;color:var(--green);font-size:12px;font-weight:750;overflow-wrap:anywhere}
@media(max-width:1500px){.channel-thread-head{grid-template-columns:1fr}.channel-thread-actions{justify-items:start}.channel-thread-shortcuts,.channel-assignment-form{justify-content:flex-start}}

/* Triage assignment stays separate from opening a customer record. */
.workbench-assign-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0 0 10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#f7faf8}
.workbench-assign-toolbar.hidden{display:none}
.workbench-assign-toolbar label{display:flex;align-items:center;gap:7px;flex:0 0 auto;white-space:nowrap;color:var(--green);font-size:12px;font-weight:800}
.workbench-assign-toolbar label input{flex:0 0 17px;width:17px;height:17px;margin:0;accent-color:var(--green)}
.workbench-assign-toolbar select{min-width:180px;max-width:260px;padding:8px 10px}
.workbench-assign-toolbar span{color:var(--muted);font-size:12px}
.workbench-assign-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;width:100%}
.workbench-assign-controls.hidden{display:none}
.order-active-context{margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#edf6f1;color:var(--green);font-size:13px;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
.order-event-form .order-payment-confirmation{grid-column:1/-1;display:grid;gap:5px;min-width:0}
.order-payment-confirmation small{color:var(--muted);font-size:11px;line-height:1.5}
.workbench-inquiry-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:8px}
.workbench-inquiry-row.assigning{grid-template-columns:24px minmax(0,1fr)}
.workbench-inquiry-row .workbench-inquiry{min-width:0}
.workbench-inquiry-select{display:grid;place-items:center;margin:0;cursor:pointer}
.workbench-inquiry-select input{width:17px;height:17px;accent-color:var(--green)}
.workbench-inquiry,.workbench-inquiry-header{grid-template-columns:78px minmax(190px,1.15fr) minmax(130px,.8fr) minmax(155px,.85fr) minmax(180px,1.2fr) 76px}
.workbench-inquiry{padding:10px 12px;border-radius:10px}
.workbench-inquiry-header{display:grid;gap:10px;padding:6px 15px 6px 12px;font-size:11px;color:var(--muted)}
.workbench-inquiry-header.assigning{margin-left:32px}
.workbench-inquiry-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:10px}
.workbench-inquiry-filters label{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.workbench-inquiry-filters select{width:auto;min-width:145px;padding:7px 9px}
.workbench-inquiry-filters>small{color:var(--muted);font-size:11px}
.workbench-inquiry .inquiry-time b{font-variant-numeric:tabular-nums;font-weight:600}
.workbench-inquiry .inquiry-time small.reply-late{color:var(--danger);font-weight:700}
.workbench-inquiry.high{border-color:var(--line);background:#fff}
.workbench-inquiry .inquiry-customer{display:flex;align-items:center;gap:10px}
.inquiry-avatar{position:relative;display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#e4f0e9;color:var(--green);font-size:12px;font-weight:800;overflow:hidden}
.inquiry-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.inquiry-avatar img[hidden]{display:none}
.workbench-inquiry .inquiry-customer-copy{gap:2px;flex:1}
.workbench-inquiry .inquiry-customer-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
.workbench-inquiry .inquiry-country{color:#376753;font-weight:700}
.workbench-inquiry .inquiry-state{border-radius:6px;white-space:normal;text-align:center}
.workbench-inquiry:has(.inquiry-state):hover{border-color:#8bb09f;background:#f7fbf8}
@media(max-width:1300px) and (min-width:1101px){.workbench-inquiry,.workbench-inquiry-header{grid-template-columns:64px minmax(160px,1fr) minmax(120px,.75fr) 150px minmax(140px,1fr) 70px;gap:8px}}
@media(max-width:1100px){.workbench-inquiry,.workbench-inquiry-header{grid-template-columns:64px minmax(145px,1fr) minmax(115px,.75fr) 150px 70px}.workbench-inquiry-header .inquiry-opportunity{display:none}}
@media(max-width:1000px) and (min-width:621px){.workbench-inquiry,.workbench-inquiry-header{grid-template-columns:60px minmax(110px,1fr) 150px 65px}.workbench-inquiry .inquiry-source,.workbench-inquiry-header>span:nth-child(3){display:none}}
@media(max-width:620px){.workbench-inquiry{grid-template-columns:64px minmax(0,1fr);gap:8px;padding:9px}.workbench-inquiry-header{display:none}.workbench-inquiry .inquiry-time{grid-column:2}.workbench-inquiry .inquiry-avatar{flex-basis:32px;width:32px;height:32px}.workbench-assign-controls{width:100%}.workbench-assign-toolbar select{min-width:0;flex:1}.workbench-inquiry em{grid-column:2;justify-self:start}}

.document-version-entry{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fbfcf8}
.document-version-entry[open]{grid-column:span 2;background:#fff}
.document-version-entry>summary{display:grid;gap:3px;position:relative;padding:9px 26px 9px 10px;cursor:pointer;list-style:none}
.document-version-entry>summary::-webkit-details-marker{display:none}
.document-version-entry>summary strong{font-size:12px}
.document-version-entry>summary span,.document-version-entry>summary small{color:var(--muted);font-size:11px}
.document-version-entry>summary em{color:var(--green);font-size:11px;font-style:normal;font-weight:800}
.document-version-content{display:grid;justify-items:start;gap:8px;padding:10px;border-top:1px solid var(--line)}
.document-version-content p{margin:0;color:var(--muted);font-size:12px}
.document-version-content pre{width:100%;max-height:360px;overflow:auto;margin:0;padding:10px;border-radius:8px;background:#f5f7f5;color:var(--ink);font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.document-version-content a{font-size:12px;text-decoration:none}
@media(max-width:760px){.document-version-entry[open]{grid-column:span 1}.channel-assignment-control.unassigned{align-items:flex-start;flex-direction:column}.channel-assignment-control:not(.unassigned) .channel-assignment-form{right:auto;left:0}}

/* Document archive: details lead, operations form a second scan line. */
.recent-draft-card{grid-template-columns:38px minmax(0,1fr) minmax(145px,auto);align-items:start;column-gap:14px;row-gap:9px}
.recent-draft-card>div.recent-draft-summary{text-align:left;min-width:0}
.recent-draft-summary small,.recent-draft-summary strong,.recent-draft-summary span{overflow-wrap:anywhere}
.recent-draft-amount{grid-column:3;text-align:right}
.recent-draft-actions{grid-column:2/-1;display:flex;justify-content:flex-start;max-width:none;padding-top:9px;border-top:1px solid var(--line)}
.document-version-history{grid-column:2/-1}
@media(max-width:760px){.recent-draft-card{grid-template-columns:32px minmax(0,1fr)}.recent-draft-amount,.recent-draft-actions,.document-version-history{grid-column:2;text-align:left}}

/* Settings: task-based navigation, one clear workspace at a time */
.settings-section-hidden { display:none!important; }
.settings-section-nav { position:sticky; top:10px; z-index:12; display:flex; gap:7px; margin:0 0 18px; padding:8px; overflow-x:auto; border:1px solid rgba(31,90,74,.16); border-radius:15px; background:rgba(250,251,247,.95); box-shadow:0 8px 24px rgba(39,61,51,.08); backdrop-filter:blur(10px); scrollbar-width:thin; }
.settings-section-nav button { flex:0 0 auto; min-height:42px; padding:9px 14px; border:1px solid transparent; border-radius:10px; background:transparent; color:#43564e; font-size:14px; font-weight:800; cursor:pointer; }
.settings-section-nav button:hover { background:#edf4ef; color:var(--green); }
.settings-section-nav button.active { border-color:var(--green); background:var(--green); color:#fff; }
.settings-overview { display:grid; gap:14px; }
.settings-overview-intro { padding:22px 24px; background:linear-gradient(135deg,#fffdf8,#edf5ef); }
.settings-overview-intro h2 { margin:2px 0 7px; font:600 24px/1.35 Georgia,"Microsoft YaHei",serif; }
.settings-overview-intro p:last-child { max-width:860px; margin:0; font-size:14px; line-height:1.65; }
.settings-overview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.settings-overview-card { display:grid; grid-template-columns:40px minmax(0,1fr); gap:12px; align-items:start; min-height:145px; padding:17px; border:1px solid var(--line); border-radius:16px; background:#fff; color:var(--ink); text-align:left; box-shadow:0 6px 18px rgba(47,68,58,.05); cursor:pointer; }
.settings-overview-card:hover { border-color:#83aa98; transform:translateY(-1px); box-shadow:0 10px 22px rgba(47,68,58,.09); }
.settings-overview-card>span { display:grid; place-items:center; width:40px; height:40px; border-radius:11px; background:#e8f1eb; color:var(--green); font-size:13px; font-weight:900; }
.settings-overview-card>div { min-width:0; }
.settings-overview-card strong,.settings-overview-card small,.settings-overview-card em { display:block; }
.settings-overview-card strong { font-size:17px; }
.settings-overview-card small { margin-top:5px; color:var(--muted); line-height:1.5; }
.settings-overview-card em { margin-top:11px; color:#9a6c1e; font-style:normal; font-weight:800; }
.settings-overview-card>b { grid-column:2; color:var(--green-2); font-size:13px; }
.settings-overview-card.ready>span { background:#daf0e4; color:#23634e; }
.settings-overview-card.ready em { color:#26745d; }
.settings-overview-card.attention { background:#fffdfa; }
#settingsPage>[data-settings-section]:not(.settings-overview) { margin-top:0; }
#settingsPage .settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
#settingsPage .deferred-card { display:none; }
#settingsPage .settings-confirm { margin-top:14px; }
.business-master-section-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:14px 0; padding:7px; border:1px solid var(--line); border-radius:13px; background:#f2f6f2; }
.business-master-section-tabs button { min-height:42px; padding:9px 11px; border:1px solid transparent; border-radius:9px; background:transparent; color:#52615b; font-size:14px; font-weight:800; cursor:pointer; }
.business-master-section-tabs button.active { border-color:#82a998; background:#fff; color:var(--green); box-shadow:0 4px 12px rgba(42,72,59,.08); }
#businessMasterForm .business-master-grid { grid-template-columns:1fr; }
#businessMasterForm [data-business-section][hidden] { display:none!important; }
#businessMasterForm .business-master-grid fieldset { padding:19px; }
#businessMasterForm .business-master-grid label,#businessMasterForm .business-master-actions>label,#businessMasterForm .business-approval-scopes label { font-size:13px; }
.product-master-dialog .product-master-editor-grid { grid-template-rows:repeat(4,max-content); overflow-y:auto; }
.product-master-dialog .product-master-workspace { height:auto; max-height:none; overflow:visible; }
.product-master-dialog .product-editor-footer { position:static; }

/* Readability floor for the three operational pages */
#productsPage,#documentsPage,#settingsPage { font-size:14px; }
#productsPage button,#productsPage input,#productsPage select,#productsPage textarea,
#documentsPage button,#documentsPage input,#documentsPage select,#documentsPage textarea,
#settingsPage button,#settingsPage input,#settingsPage select,#settingsPage textarea { font-size:14px; }
#productsPage small,#productsPage .muted,#productsPage .field-hint,#productsPage .form-message,
#documentsPage small,#documentsPage .muted,#documentsPage .field-hint,#documentsPage .form-message,
#settingsPage small,#settingsPage .muted,#settingsPage .field-hint,#settingsPage .form-message { font-size:13px; line-height:1.5; }
#productsPage .product-builder-option-state,#productsPage .product-builder-module-tabs button span { font-size:13px; }

@media(max-width:1050px){
  .settings-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #settingsPage .settings-grid { grid-template-columns:1fr; }
}
@media(max-width:700px){
  .settings-section-nav { top:6px; margin-left:-4px; margin-right:-4px; }
  .settings-overview-grid,.business-master-section-tabs { grid-template-columns:1fr; }
  .settings-overview-card { min-height:0; }
  #businessMasterForm .business-master-grid fieldset { padding:14px; }
}

/* Focused product workspace refinements v1.40.0 */
.product-config-row {
  grid-template-columns:60px minmax(170px,1.25fr) minmax(145px,.8fr) minmax(120px,auto);
  grid-template-areas:"thumbnail identity module state" "thumbnail tiers tiers state";
  min-height:96px;
}
.product-config-thumbnail { grid-area:thumbnail; align-self:start; display:grid!important; place-items:center; width:60px; height:64px; overflow:hidden; border-radius:11px; background:#e7eee9; color:#788b82; font-size:20px; }
.product-config-thumbnail img { width:100%; height:100%; object-fit:cover; }
.product-builder-catalog { max-height:min(720px,calc(100dvh - 210px)); overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:2px 8px 10px 1px; }
.product-builder-module-heading { position:sticky; top:0; z-index:2; margin-bottom:1px; padding:8px 4px; background:rgba(255,253,248,.96); backdrop-filter:blur(5px); }
.product-builder-actions { grid-template-columns:1fr; }
.product-builder-actions .primary-button { grid-column:auto; grid-row:auto; }
.document-customer-picker-shell { grid-template-rows:auto auto minmax(260px,1fr) auto; }
.document-customer-picker-shell:has(.document-customer-quick-create:not(.hidden)) { grid-template-rows:auto auto auto minmax(150px,1fr) auto; }
.document-customer-picker-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end; padding:14px 18px 10px; }
.document-customer-picker-toolbar .document-customer-picker-search { padding:0; }
.document-customer-picker-toolbar>button { min-height:43px; white-space:nowrap; }
.document-customer-quick-create { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto; gap:9px; align-items:end; margin:0 18px 12px; padding:12px; border:1px solid #a9c9ba; border-radius:13px; background:#edf6f0; }
.document-customer-quick-create>div { grid-column:1/-1; display:flex; align-items:baseline; gap:9px; }
.document-customer-quick-create>div strong { color:var(--green); font-size:14px; }
.document-customer-quick-create>div span { color:var(--muted); font-size:13px; }
.document-customer-quick-create label { display:grid; gap:5px; margin:0; color:var(--muted); font-size:13px; font-weight:700; }
.document-customer-quick-create input { min-height:42px; margin:0; background:#fff; font-size:14px; }
.document-customer-quick-create .document-customer-phone-field { min-width:0; }
.phone-inference-field { position:relative; display:block; }
.document-customer-phone-field input { padding-right:142px; }
.document-customer-phone-field .phone-inference-hint { position:absolute; top:50%; right:10px; max-width:126px; overflow:hidden; color:var(--green-2); font-size:11.5px; font-weight:800; line-height:1.2; pointer-events:none; text-align:right; text-overflow:ellipsis; transform:translateY(-50%); white-space:nowrap; }
.document-customer-phone-field .phone-inference-hint.pending { color:var(--muted); }
.document-customer-phone-field .phone-inference-hint.unmatched { color:#9a6c1e; }
.document-customer-quick-create button { min-height:42px; }
.document-customer-quick-create .form-message { grid-column:1/-1; min-height:0; margin:0; }

@media(max-width:860px){
  .product-config-row { grid-template-columns:60px minmax(0,1fr); grid-template-areas:"thumbnail identity" "thumbnail module" "tiers tiers" "state state"; }
  .product-config-state { align-items:flex-start; }
}
@media(max-width:760px){
  .product-builder-catalog { max-height:62dvh; padding-right:5px; }
  .document-customer-picker-toolbar { grid-template-columns:1fr; padding:10px 14px; }
  .document-customer-picker-toolbar>button { width:100%; }
  .document-customer-quick-create { grid-template-columns:1fr 1fr; margin:0 14px 10px; }
  .document-customer-quick-create>div,.document-customer-quick-create label,.document-customer-quick-create .form-message { grid-column:1/-1; }
  .document-customer-quick-create>div { display:grid; gap:2px; }
}

/* Product workspace mobile operation v1.40.2 */
@media(max-width:760px){
  #productsPage { min-width:0; }
  #productsPage button { touch-action:manipulation; }
  #productsPage input,#productsPage select,#productsPage textarea,
  .product-master-dialog input,.product-master-dialog select,.product-master-dialog textarea { font-size:16px; }
  .product-builder-hero { gap:16px; margin-bottom:12px; padding:17px 15px; }
  .product-builder-hero h3 { font-size:23px; line-height:1.32; }
  .product-builder-hero p:last-child { font-size:14px; line-height:1.6; }
  .product-builder-hero-actions { width:100%; }
  .product-builder-hero-actions button { width:100%; min-height:46px; }
  .product-builder-layout { gap:12px; }
  .product-builder-main { padding:14px 12px; }
  .product-builder-section-head { gap:10px; }
  .product-builder-section-head>div { align-items:flex-start; }
  .product-builder-section-head strong { font-size:16px; }
  .product-builder-section-head small { font-size:13px; }
  .product-builder-model-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .product-builder-model-card { min-height:112px; padding:12px 10px; }
  .product-builder-model-card>strong { font-size:14px; }
  .product-builder-model-card>small { font-size:13px; }
  .product-builder-preferences { grid-template-columns:1fr; padding:11px; }
  .product-builder-customer-button,.product-builder-preferences select,.product-builder-preferences .choice-check,.product-builder-discount-control input { width:100%; min-height:46px; }
  .product-builder-section-head.modules { margin-top:18px; padding-top:16px; }
  .product-builder-search input { min-height:46px; }
  .product-builder-module-tabs { margin-left:-2px; margin-right:-2px; padding-bottom:10px; scroll-snap-type:x proximity; }
  .product-builder-module-tabs button { min-height:44px; scroll-snap-align:start; font-size:14px; }
  .product-builder-catalog { max-height:58dvh; gap:13px; overflow-y:auto; padding:2px 4px 12px 1px; scrollbar-gutter:auto; -webkit-overflow-scrolling:touch; }
  .product-builder-module-heading { top:-2px; padding:9px 3px; }
  .product-builder-card-grid { grid-template-columns:1fr; gap:8px; }
  .product-builder-option-card { grid-template-columns:58px minmax(0,1fr) auto; gap:9px; min-height:92px; padding:9px; }
  .product-builder-option-image { width:58px; height:62px; }
  .product-builder-option-copy strong { white-space:normal; }
  .product-builder-option-copy span { display:-webkit-box; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
  .product-builder-option-copy em { white-space:normal; }
  .product-builder-option-state { grid-column:auto; justify-self:end; min-width:50px; padding:6px; font-size:13px; }
  .product-builder-summary-panel { gap:12px; padding:15px 12px; }
  .product-builder-summary-head h3 { font-size:17px; }
  .product-builder-totals { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .product-builder-totals>div { padding:9px 5px; }
  .product-builder-totals strong { font-size:14px; }
  .product-builder-selected-items { max-height:min(44dvh,360px); overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .product-builder-actions { grid-template-columns:1fr; }
  .product-builder-actions button { width:100%; min-height:46px; }
  .product-builder-recent-panel { margin-top:12px; }
  .product-builder-recent-card { gap:10px; }
  .product-builder-recent-card>div:last-child { display:grid; grid-template-columns:1fr; }
  .product-builder-recent-card a,.product-builder-recent-card button { width:100%; min-height:44px; }

  .product-command-panel { padding:14px 12px; }
  .product-command-top,.product-command-status { gap:10px; }
  .product-command-status .catalog-status { min-width:0; width:100%; }
  .product-config-layout { gap:12px; }
  .product-config-list { max-height:58dvh; overflow-y:auto; padding-right:3px; -webkit-overflow-scrolling:touch; }
  .product-config-row { grid-template-columns:58px minmax(0,1fr); grid-template-areas:"thumbnail identity" "thumbnail module" "tiers tiers" "state state"; gap:8px 10px; padding:11px; }
  .product-config-thumbnail { width:58px; height:62px; }
  .product-config-state { flex-direction:row; align-items:center; justify-content:space-between; width:100%; }
  .product-config-detail { padding:14px 12px; }

  .product-master-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; }
  .product-master-editor-head { position:sticky; top:0; z-index:4; padding:13px 12px; }
  .product-master-editor-head h4 { font-size:18px; }
  .product-master-editor-grid { gap:10px; padding:11px 12px 0; }
  .product-editor-steps { padding-bottom:4px; scroll-snap-type:x proximity; }
  .product-editor-steps span { flex:0 0 auto; min-width:126px; min-height:38px; display:grid; place-items:center; padding:8px 10px; scroll-snap-align:start; font-size:13px; }
  .product-master-workspace { gap:10px; padding-right:0; }
  .product-editor-section { padding:12px; }
  .product-editor-field-grid { grid-template-columns:1fr; }
  .product-tier-editor-grid { grid-template-columns:42px minmax(88px,.8fr) minmax(88px,1fr); }
  .product-master-media-card { padding:9px; }
  .product-master-media-actions button { min-height:44px; }
  .product-editor-footer { gap:9px; margin:0; padding:10px 0 max(12px,env(safe-area-inset-bottom)); }
}

@media(max-width:430px){
  .product-builder-model-grid { grid-template-columns:1fr; }
  .product-builder-model-card { min-height:0; }
  .product-builder-option-card { grid-template-columns:54px minmax(0,1fr); }
  .product-builder-option-image { width:54px; height:58px; }
  .product-builder-option-state { grid-column:2; justify-self:start; }
  .product-builder-totals strong { font-size:13px; }
  .product-builder-totals span { font-size:12px; }
  .product-config-state { display:grid; justify-items:start; }
}

.settings-team-workspace { display:grid; gap:18px; }
.team-permission-fieldset,.team-invite-form fieldset { border:1px solid var(--line); border-radius:14px; padding:14px; margin:0; }
.team-permission-fieldset legend,.team-invite-form legend { padding:0 7px; font-weight:800; color:var(--ink); }
.team-channel-permissions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.team-channel-permission { display:flex; align-items:center; gap:10px; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.team-channel-permission input { width:auto; }
.team-channel-permission span:last-child { display:grid; gap:2px; }
.team-channel-permission small { color:var(--muted); overflow-wrap:anywhere; }
.team-invite-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.team-invite-form > button,.team-invite-form > .form-message { align-self:end; }
.team-invite-result { display:flex; align-items:end; gap:10px; margin-top:14px; }
.team-invite-result label { flex:1; }
.team-invite-list { display:grid; gap:8px; margin-top:18px; }
.team-invite-item { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; }
.team-invite-item > div { display:grid; gap:3px; flex:1; }
.team-invite-item small { color:var(--muted); }
.team-authorization-dialog { width:min(680px,calc(100vw - 28px)); border:0; border-radius:22px; padding:0; box-shadow:0 28px 80px rgba(15,23,42,.28); }
.team-authorization-dialog::backdrop { background:rgba(15,23,42,.58); }
.team-authorization-frame { display:grid; gap:18px; padding:24px; }
.team-authorization-frame header { display:flex; justify-content:space-between; gap:16px; align-items:start; }
.team-authorization-frame header h2 { margin:4px 0 0; }
.team-authorization-providers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.team-authorization-provider { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:12px; padding:11px; font-weight:750; }
.team-authorization-notice { display:grid; gap:5px; padding:14px; border-radius:14px; background:#f0f9ff; color:#0c4a6e; }
.team-authorization-notice span { line-height:1.55; }
.team-authorization-assets { display:grid; gap:8px; max-height:320px; overflow:auto; padding:10px; border:1px solid var(--line); border-radius:14px; background:#f8faf9; }
.team-authorization-assets>strong { position:sticky; top:-10px; z-index:1; margin:-10px -10px 2px; padding:11px; background:#f8faf9; }
.team-authorization-asset { display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:9px; align-items:center; padding:10px; border:1px solid #d7e3dd; border-radius:12px; background:#fff; cursor:pointer; }
.team-authorization-asset input { width:auto; }
.team-authorization-asset strong,.team-authorization-asset small { display:block; }
.team-authorization-asset small { margin-top:3px; color:var(--muted); }
.team-whatsapp-coexistence { display:grid; gap:11px; padding:14px; border:1px solid #9dcdb1; border-radius:14px; background:#f2fbf6; }
.team-whatsapp-coexistence>div strong,.team-whatsapp-coexistence>div span { display:block; }
.team-whatsapp-coexistence>div span { margin-top:4px; color:var(--muted); line-height:1.5; }
.team-whatsapp-coexistence-form { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.team-whatsapp-coexistence-form label { display:grid; gap:5px; color:#486057; font-size:12px; }
.team-whatsapp-coexistence-form .span-two { grid-column:1/-1; }
.team-whatsapp-coexistence-form .checkbox-line { display:flex; align-items:center; }
.team-whatsapp-coexistence-form .checkbox-line input { width:auto; }
.team-whatsapp-coexistence-form button { grid-column:1/-1; }
.channel-health { display:flex!important; flex-wrap:wrap; gap:5px; margin-top:7px!important; }
.channel-health span { padding:3px 6px; border-radius:999px; background:#fff0c7; color:#725719; font-size:11px; font-style:normal; }
.channel-health span.ready { background:#d9f2e4; color:#17633f; }
.channel-health span.error { background:#fde7e4; color:#9a342c; }
.channel-real-tests { display:block; margin-top:5px; color:#52645c!important; white-space:normal; }
.channel-health-error { display:block; margin-top:5px; color:#a33b32!important; white-space:normal; }

@media (max-width:760px) {
  .team-channel-permissions,.team-invite-form,.team-authorization-providers,.team-whatsapp-coexistence-form { grid-template-columns:1fr; }
  .team-whatsapp-coexistence-form .span-two { grid-column:auto; }
  .team-invite-result { align-items:stretch; flex-direction:column; }
}

/* Keep inbox filters stacked at every width; the older responsive rule used two columns. */
.channel-inbox-panel .channel-filter-form { grid-template-columns:minmax(0,1fr); }

/* Unified inbox: compact header and one selected-customer context */
.workspace.channel-focus-mode { padding-top:14px; }
.workspace.channel-focus-mode>.topbar { display:none; }
.channel-page-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:48px; padding:9px 12px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.82); }
.channel-page-toolbar>div:first-child { min-width:0; }
.channel-page-toolbar strong,.channel-page-toolbar span { display:block; }
.channel-page-toolbar strong { color:var(--ink); font-size:18px; }
.channel-page-toolbar>div:first-child span { margin-top:2px; color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.channel-page-toolbar .inline-actions { display:flex; align-items:center; gap:8px; flex-wrap:nowrap; }
.channel-status-filters .channel-send-review{grid-column:1/-1;white-space:nowrap}.channel-status-filters .channel-send-review[hidden]{display:none!important}
.channel-more-tools{position:relative}.channel-more-tools>summary{cursor:pointer;padding:7px 12px;border:1px solid var(--line);border-radius:9px;background:white;font-size:13px;font-weight:650;list-style:none}.channel-more-content{display:grid;gap:10px;position:absolute;right:0;top:calc(100% + 8px);width:min(520px,calc(100vw - 32px));max-height:75dvh;overflow:auto;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 15px 40px #12382d24;z-index:35}.channel-more-content .ai-reply-control{margin:0}.channel-more-content .ai-reply-sound-tools{flex-wrap:wrap}.channel-more-content .ai-reply-policy-form{grid-template-columns:minmax(0,1fr)}.channel-more-content .ai-reply-policy-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.channel-connection-notice{max-width:300px;color:#ad432b;font-size:12px;overflow-wrap:anywhere}.channel-send-review{background:#fff4df;border-color:#dca759!important}.channel-order-entry{font-size:11px;white-space:nowrap}.channel-page-toolbar [hidden]{display:none!important}
.channel-provider-cards.compact { margin:8px 0 10px; gap:7px; }
.channel-provider-cards.compact .channel-provider-card { grid-template-columns:auto minmax(0,1fr) auto; gap:7px; min-height:52px; padding:7px 9px; border-radius:11px; }
.channel-provider-cards.compact .channel-provider-mark { width:27px; height:27px; border-radius:8px; }
.channel-provider-cards.compact .channel-provider-card strong { font-size:12px; }
.channel-provider-cards.compact .channel-provider-card small { font-size:11px; }
.channel-provider-cards.compact .channel-provider-card em { grid-column:auto; margin:0; font-size:10px; white-space:nowrap; }
.assistant-current-customer-note { margin:0; padding:9px 13px; border-top:1px solid var(--line); background:#f4f8f5; color:#4d665d; font-size:11px; line-height:1.5; }
.assistant-context-details .chat-field-row:first-of-type { display:none; }
.assistant-context-details .chat-compose-panel { padding-top:9px; }
.manual-conversation-dialog { width:min(980px,calc(100vw - 36px)); height:min(90vh,900px); max-width:none; max-height:none; padding:0; border:0; border-radius:20px; background:#f4f7f4; color:var(--ink); box-shadow:0 28px 90px rgba(12,39,31,.3); }
.manual-conversation-dialog::backdrop { background:rgba(13,42,35,.55); backdrop-filter:blur(3px); }
.manual-conversation-shell { display:grid; grid-template-rows:auto minmax(0,1fr); height:100%; }
.manual-conversation-shell>header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding:16px 18px; border-bottom:1px solid var(--line); background:#fffdf8; }
.manual-conversation-shell h2 { margin:2px 0 4px; font-size:20px; }
.manual-conversation-shell header span { color:var(--muted); font-size:12px; line-height:1.5; }
.manual-conversation-mount { min-height:0; overflow:auto; padding:14px; }
.manual-conversation-mount>.chat-compose-panel { margin:0; }
.manual-conversation-mount>.chat-result-panel { margin:14px 0 0; }
.manual-conversation-mount .chat-compose-panel>.panel-head { display:flex; }

@media(max-width:900px) {
  .workspace.channel-focus-mode { padding-top:10px; }
  .channel-page-toolbar { align-items:flex-start; }
  .channel-provider-cards.compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .channel-provider-cards.compact .channel-provider-card:last-child { grid-column:1/-1; }
}
@media(max-width:650px) {
  .channel-page-toolbar { display:grid; }
  .channel-page-toolbar .inline-actions { justify-content:space-between; }
  .channel-provider-cards.compact { grid-template-columns:1fr; }
  .channel-provider-cards.compact .channel-provider-card:last-child { grid-column:auto; }
  .manual-conversation-dialog { width:100vw; height:100dvh; border-radius:0; }
}
.channel-provider-mark.salesmartly,.channel-customer-avatar>i.salesmartly{background:#e8e7ff;color:#4338ca}

/* CRM information architecture v1.63: compact page headers and task-first customer workspaces. */
.workspace { padding-top:18px; }
.topbar { align-items:center; min-height:48px; margin-bottom:12px; }
.topbar .eyebrow { max-width:min(70vw,760px); margin:0 0 3px; overflow:hidden; color:var(--muted); font-size:11px; font-weight:650; letter-spacing:0; text-overflow:ellipsis; text-transform:none; white-space:nowrap; }
.topbar h2 { font:700 clamp(23px,2.1vw,30px) Georgia,"Microsoft YaHei",serif; }
.service-state { padding:7px 11px; background:rgba(255,255,255,.78); }

.workbench-hero,.customer-hero,.prospecting-hero,.chat-hero,.experience-hero,.product-builder-hero,.document-hero,.analytics-hero,.import-hero,.settings-hero { min-height:0; margin-bottom:11px; padding:12px 15px; border-radius:15px; box-shadow:none; }
.workbench-hero h3,.customer-hero h3,.prospecting-hero h3,.chat-hero h3,.experience-hero h3,.product-builder-hero h3,.document-hero h3,.analytics-hero h3,.import-hero h3,.settings-hero h3 { margin:0; font-size:15px; }
.workbench-hero .eyebrow,.customer-hero .eyebrow,.prospecting-hero .eyebrow,.chat-hero .eyebrow,.experience-hero .eyebrow,.product-builder-hero .eyebrow,.document-hero .eyebrow,.analytics-hero .eyebrow,.import-hero .eyebrow,.settings-hero .eyebrow { display:none; }
.workbench-hero .muted,.customer-hero .muted,.prospecting-hero .muted,.chat-hero .muted,.experience-hero .muted,.product-builder-hero .muted,.document-hero .muted,.analytics-hero .muted,.import-hero .muted,.settings-hero .muted { margin:3px 0 0; font-size:11px; line-height:1.45; }
.customer-hero { display:none; }

.customer-workspace-tabs { position:sticky; z-index:7; top:8px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-bottom:12px; padding:6px; border:1px solid rgba(22,63,53,.11); border-radius:16px; background:rgba(244,244,237,.93); box-shadow:0 8px 24px rgba(23,49,41,.08); backdrop-filter:blur(12px); }
.customer-workspace-tabs button { min-width:0; display:grid; grid-template-columns:26px minmax(0,1fr); grid-template-rows:auto auto; column-gap:9px; align-items:center; padding:9px 11px; border:1px solid transparent; border-radius:11px; background:transparent; color:var(--muted); text-align:left; }
.customer-workspace-tabs button>span { grid-row:1/3; display:grid; width:26px; height:26px; place-items:center; border-radius:8px; background:#e4ebe6; color:var(--green); font-size:10px; font-weight:800; }
.customer-workspace-tabs button strong { overflow:hidden; color:var(--ink); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.customer-workspace-tabs button small { overflow:hidden; margin-top:2px; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.customer-workspace-tabs button:hover { background:rgba(255,255,255,.7); }
.customer-workspace-tabs button.active { border-color:#a9cbbb; background:#fff; color:var(--green-2); box-shadow:0 5px 14px rgba(23,71,56,.08); }
.customer-workspace-tabs button.active>span { background:var(--green); color:#fff; }
.customer-workspace-panel[hidden],.customer-detail-panel[hidden],.customer-action-drawer[hidden],.customer-action-drawer [data-customer-drawer-panel][hidden] { display:none!important; }
.customer-workspace-panel { animation:appear .18s ease; }
.crm-operations-overview { grid-template-columns:repeat(5,minmax(0,1fr)); margin-bottom:11px; }
.crm-overview-card { min-height:87px; padding:12px 14px; }
.crm-overview-card strong { font-size:23px; }
.customer-focus-panel { padding:17px; }
.customer-focus-panel>.panel-head { margin-bottom:12px; }
.customer-focus-queue { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.customer-focus-queue>button { min-width:0; display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:10px; align-items:center; padding:11px; border:1px solid var(--line); border-radius:13px; background:#fbfcf8; color:var(--ink); text-align:left; }
.customer-focus-queue>button:hover { border-color:#83aa96; background:#f0f7f2; }
.customer-focus-priority { display:grid; width:34px; height:34px; place-items:center; border-radius:10px; background:#e2efe7; color:var(--green); font-weight:800; }
.customer-focus-queue strong,.customer-focus-queue small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.customer-focus-queue strong { font-size:12px; }
.customer-focus-queue small { margin-top:2px; color:var(--muted); font-size:10px; }
.customer-focus-queue p { display:flex; flex-wrap:wrap; gap:4px; margin:6px 0 0; }
.customer-focus-queue i { padding:3px 6px; border-radius:999px; background:#fff0d8; color:#855d1b; font-size:9px; font-style:normal; }
.customer-focus-queue em { color:var(--green-2); font-size:10px; font-style:normal; white-space:nowrap; }
.crm-rules-workspace { max-width:1100px; }
.crm-rules-form { display:grid; gap:12px; }
.crm-rules-primary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; align-items:end; }
.crm-rules-form label { margin:0; font-size:11px; }
.crm-rules-form input { margin-top:5px; }
.crm-rules-form .crm-rule-toggle { display:flex; align-items:center; min-height:43px; gap:8px; }
.crm-rules-form .crm-rule-toggle input { width:auto; margin:0; }
.crm-stage-rule-group { overflow:hidden; border:1px solid var(--line); border-radius:13px; background:#fafcf9; }
.crm-stage-rule-group>summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 13px; cursor:pointer; list-style:none; }
.crm-stage-rule-group>summary span { display:grid; gap:2px; }
.crm-stage-rule-group>summary strong { font-size:12px; }
.crm-stage-rule-group>summary small { color:var(--muted); font-size:10px; }
.crm-stage-rule-group>summary b { color:var(--green); font-size:10px; }
.crm-stage-rule-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:0 12px 12px; }
.crm-stage-rule-grid label { display:grid; grid-template-columns:minmax(0,1fr) 72px auto; gap:7px; align-items:center; padding:8px 9px; border:1px solid rgba(22,63,53,.1); border-radius:10px; background:#fff; }
.crm-stage-rule-grid label span { overflow:hidden; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.crm-stage-rule-grid label input { min-width:0; margin:0; padding:7px 8px; }
.crm-stage-rule-grid label small { min-height:0!important; margin:0!important; }
.crm-rules-footer,.crm-rules-actions { display:flex; align-items:center; gap:8px; }
.crm-rules-footer { justify-content:space-between; }

.customer-layout { grid-template-columns:minmax(285px,330px) minmax(0,1fr); gap:12px; }
.customer-directory { top:82px; max-height:calc(100vh - 98px); padding:15px; border-radius:17px; }
.customer-detail { min-height:540px; padding:17px; border-radius:17px; }
.customer-detail-head { align-items:center; }
.customer-detail-head h3 { margin-top:2px; font-size:22px; }
.customer-detail-head>div>span { margin-top:3px; font-size:11px; }
.customer-detail-actions { flex-wrap:nowrap; }
.customer-assign-form { margin-top:8px; }
.customer-detail-tabs { position:sticky; z-index:5; top:76px; display:flex; gap:4px; margin:13px -4px 14px; padding:5px; overflow-x:auto; border:1px solid var(--line); border-radius:13px; background:rgba(255,254,250,.94); backdrop-filter:blur(10px); scrollbar-width:none; }
.customer-detail-tabs::-webkit-scrollbar { display:none; }
.customer-detail-tabs button { flex:1 0 auto; min-width:92px; padding:9px 12px; border:0; border-radius:9px; background:transparent; color:var(--muted); font-size:11px; font-weight:750; white-space:nowrap; }
.customer-detail-tabs button span { display:inline-grid; min-width:17px; height:17px; margin-left:4px; place-items:center; border-radius:999px; background:#e7ede9; font-size:9px; }
.customer-detail-tabs button.active { background:var(--green); color:#fff; }
.customer-detail-tabs button.active span { background:rgba(255,255,255,.2); }
.customer-detail-panel { animation:appear .18s ease; }
.customer-next-action-card { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) auto; gap:13px; align-items:center; padding:15px; border:1px solid #b9d8c8; border-radius:15px; background:linear-gradient(145deg,#f2faf5,#e9f5ee); }
.customer-next-action-card>div { min-width:0; }
.customer-next-action-card span,.customer-next-action-card strong,.customer-next-action-card small { display:block; }
.customer-next-action-card span { color:var(--muted); font-size:10px; }
.customer-next-action-card strong { margin-top:4px; overflow-wrap:anywhere; font-size:13px; }
.customer-next-action-card small { margin-top:4px; color:var(--green-2); font-size:10px; }
.customer-facts-compact { margin-top:10px; }
.customer-readiness,.crm-customer-control,.customer-section,.order-switcher,.order-ledger { margin-top:12px; }
.customer-timeline-preview .crm-unified-timeline { max-height:300px; }
.customer-profile-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.customer-profile-actions article { display:flex; min-width:0; flex-direction:column; align-items:flex-start; padding:15px; border:1px solid var(--line); border-radius:15px; background:#fbfcf8; }
.customer-profile-actions span { color:var(--green-2); font-size:10px; font-weight:750; }
.customer-profile-actions strong { margin-top:5px; font-size:14px; }
.customer-profile-actions p { flex:1; margin:7px 0 12px; color:var(--muted); font-size:11px; line-height:1.55; }
.customer-profile-actions a { text-decoration:none; }
.customer-stage-lock { display:grid; gap:6px; margin-top:12px; padding:18px; border:1px dashed #c7b484; border-radius:15px; background:#fffaf0; text-align:center; }
.customer-stage-lock strong { color:#77591a; }
.customer-stage-lock span { color:#7d7561; font-size:11px; }
.order-action-card { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.factory-entry-card{border-color:#a7cdbb;background:#eef7f1}.factory-entry-card .primary-button{white-space:nowrap}.factory-entry-card h3{margin:3px 0}
.factory-crm-quicknav{display:flex;flex-wrap:wrap;gap:7px;margin:11px 0;padding:9px;border:1px solid #cbded3;border-radius:12px;background:#f5faf6}.factory-crm-quicknav button{padding:8px 11px;border:1px solid #aac8b8;border-radius:8px;background:#fff;color:#235744;font:inherit;font-weight:750;cursor:pointer}.factory-crm-quicknav button:hover,.factory-crm-quicknav button:focus-visible{border-color:#2d7357;background:#eaf5ee}.factory-crm-quicknav button:disabled{opacity:.45;cursor:default}.factory-crm-assignment,.factory-crm-overview,.factory-crm-columns>section,#customerOrderFileForm{scroll-margin-top:18px}
.order-action-card h3,.order-action-card p { margin-bottom:0; }

body.customer-drawer-open { overflow:hidden; }
.customer-action-drawer { position:fixed; z-index:120; inset:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(520px,680px); }
.customer-drawer-backdrop { grid-column:1/-1; grid-row:1; width:100%; height:100%; border:0; border-radius:0; background:rgba(11,34,28,.48); backdrop-filter:blur(2px); }
.customer-drawer-shell { position:relative; z-index:1; grid-column:2; grid-row:1; display:grid; grid-template-rows:auto minmax(0,1fr); height:100dvh; background:#f7f8f4; box-shadow:-20px 0 60px rgba(12,39,31,.22); animation:drawer-in .2s ease; }
@keyframes drawer-in { from { opacity:.5; transform:translateX(24px); } }
.customer-drawer-shell>header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:17px 20px; border-bottom:1px solid var(--line); background:#fffdf8; }
.customer-drawer-shell>header h3 { margin:2px 0; font-size:19px; }
.customer-drawer-shell>header span { color:var(--muted); font-size:11px; }
.customer-drawer-body { min-height:0; overflow:auto; padding:16px 20px 34px; }
.customer-drawer-body>[data-customer-drawer-panel] { margin:0; }
.customer-drawer-body .customer-profile-form,.customer-drawer-body .customer-business-profile-form,.customer-drawer-body .customer-sales-status-form,.customer-drawer-body .customer-deal-plan-form { margin-top:0; }
.drawer-section-head { display:grid; gap:5px; margin-bottom:13px; padding:13px; border-radius:13px; background:#eaf4ee; }
.drawer-section-head span { color:var(--muted); font-size:11px; line-height:1.5; }

@media(max-width:1300px) {
  .workspace { padding-right:22px; padding-left:22px; }
  .customer-layout { grid-template-columns:minmax(260px,300px) minmax(0,1fr); }
  .customer-focus-queue { grid-template-columns:1fr; }
  .crm-rules-primary,.crm-stage-rule-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .customer-next-action-card { grid-template-columns:minmax(0,1fr) minmax(0,.8fr); }
  .customer-next-action-card>button { grid-column:1/-1; justify-self:start; }
}
@media(max-width:980px) {
  .customer-workspace-tabs { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .crm-operations-overview { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .crm-rules-primary,.crm-stage-rule-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .customer-layout { grid-template-columns:1fr; }
  .customer-directory { position:static; max-height:none; }
  .customer-list { max-height:38vh; overflow:auto; }
  .customer-detail-tabs { top:8px; }
  .customer-profile-actions { grid-template-columns:1fr; }
}
@media(max-width:650px) {
  .workspace { padding:14px 12px 86px; }
  .topbar { min-height:38px; margin-bottom:8px; }
  .topbar .eyebrow { max-width:76vw; font-size:10px; }
  .topbar h2 { font-size:21px; }
  .workbench-hero,.prospecting-hero,.chat-hero,.experience-hero,.product-builder-hero,.document-hero,.analytics-hero,.import-hero,.settings-hero { padding:10px 12px; }
  .workbench-hero .muted,.prospecting-hero .muted,.chat-hero .muted,.experience-hero .muted,.product-builder-hero .muted,.document-hero .muted,.analytics-hero .muted,.import-hero .muted,.settings-hero .muted { display:none; }
  .customer-workspace-tabs { gap:5px; padding:5px; }
  .customer-workspace-tabs button { grid-template-columns:22px minmax(0,1fr); padding:8px; }
  .customer-workspace-tabs button>span { width:22px; height:22px; }
  .customer-workspace-tabs button small { display:none; }
  .crm-operations-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .crm-overview-card:last-child { grid-column:1/-1; }
  .customer-focus-panel,.customer-directory,.customer-detail { padding:12px; }
  .customer-list { grid-template-columns:1fr; }
  .customer-focus-queue>button { grid-template-columns:30px minmax(0,1fr); }
  .customer-focus-priority { width:30px; height:30px; }
  .customer-focus-queue em { display:none; }
  .crm-rules-primary,.crm-stage-rule-grid { grid-template-columns:1fr; }
  .crm-rules-footer { align-items:stretch; flex-direction:column; }
  .crm-rules-actions button { flex:1; }
  .customer-detail-head { align-items:flex-start; }
  .customer-detail-head h3 { font-size:19px; }
  .customer-detail-actions { display:grid; grid-template-columns:1fr 1fr; }
  .customer-detail-actions .status-pill { grid-column:1/-1; justify-self:start; }
  .customer-assign-form { grid-template-columns:1fr; }
  .customer-detail-tabs { margin-inline:-2px; }
  .customer-detail-tabs button { min-width:83px; padding:8px 9px; }
  .customer-next-action-card { grid-template-columns:1fr; }
  .customer-next-action-card>button { grid-column:auto; width:100%; }
  .customer-facts-compact { grid-template-columns:1fr 1fr; }
  .order-action-card { align-items:stretch; flex-direction:column; }
  .order-action-card button { width:100%; }
  .customer-action-drawer { display:block; }
  .customer-drawer-shell { width:100vw; }
  .customer-drawer-body { padding:12px 12px 90px; }
}

/* CRM workflow consolidation v1.66: one daily queue, one customer library, one development pipeline. */
.workbench-quick-actions { grid-template-columns:repeat(5,minmax(0,1fr)); }
.customer-directory { top:70px; max-height:calc(100vh - 86px); }
.prospecting-workspace-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); }
.prospecting-opportunity-workspace { display:grid; gap:10px; }
.opportunity-explainer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 15px; border:1px solid #bbd7c8; border-radius:14px; background:linear-gradient(135deg,#eff8f2,#e5f2e9); }
.opportunity-explainer>div { min-width:0; display:grid; gap:3px; }
.opportunity-explainer span { color:#2b6a55; font-size:10px; font-weight:800; letter-spacing:.04em; }
.opportunity-explainer strong { color:var(--ink); font-size:14px; }
.opportunity-explainer small { max-width:920px; color:var(--muted); font-size:11px; line-height:1.5; }
.settings-sales-workspace { display:grid; gap:14px; }
.crm-rule-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.crm-rule-summary span { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px; border:1px solid var(--line); border-radius:11px; background:#f7faf7; color:var(--muted); font-size:11px; }
.crm-rule-summary strong { color:var(--green); font-size:16px; }
.crm-rules-form label small { display:block; min-height:32px; margin-top:4px; color:var(--muted); font-size:10px; line-height:1.45; }

@media(max-width:1280px){
  .workbench-quick-actions { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .prospecting-workspace-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:900px){
  .workbench-quick-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .prospecting-workspace-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .crm-rule-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px){
  .customer-library-strip { align-items:flex-start; }
  .customer-library-strip>div { display:grid; gap:2px; }
  .customer-library-strip span { white-space:normal; }
  .customer-library-strip button { flex:0 0 auto; padding-inline:9px; }
  .opportunity-explainer { align-items:stretch; flex-direction:column; }
  .opportunity-explainer button { width:100%; }
  .crm-rule-summary { grid-template-columns:1fr 1fr; }
}
@media(max-width:1180px){.prospect-detail-tabs button{justify-content:center}.prospect-detail-tabs button>span small{display:none}}
@media(max-width:900px){.prospect-directory-layout>.prospect-list,.prospect-detail{position:static;scrollbar-gutter:auto}.prospect-detail{max-height:none;overflow:visible}.prospect-detail-tabs{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}.prospect-detail-tabs button{justify-content:flex-start}.prospect-detail-tabs button>span small{display:block}}
@media(max-width:620px){.prospect-detail-tabs{grid-template-columns:1fr 1fr}.prospect-next-step{grid-template-columns:1fr}.prospect-next-step .primary-button{width:100%}}

/* Customer context recovery and linked navigation v1.77. */
.topbar-tools { display:flex; align-items:center; justify-content:flex-end; gap:10px; min-width:min(52vw,680px); }
.global-crm-search { display:grid; grid-template-columns:minmax(230px,420px) auto; align-items:center; padding:3px; border:1px solid #cadbd2; border-radius:12px; background:rgba(255,255,255,.82); box-shadow:0 5px 18px rgba(16,62,49,.05); }
.global-crm-search:focus-within { border-color:#70a68f; box-shadow:0 0 0 3px rgba(58,133,102,.1); }
.global-crm-search input { min-width:0; padding:7px 10px; border:0; outline:0; background:transparent; color:var(--ink); font-size:11px; }
.global-crm-search button { padding:7px 11px; border:0; border-radius:8px; background:var(--green); color:#fff; font-size:11px; font-weight:800; cursor:pointer; }
.inquiry-opportunity-stack { display:grid; gap:2px; margin-top:2px; }
.inquiry-opportunity-stack small { padding-left:8px; border-left:2px solid #c9ded3; }
.customer-context-card { margin:13px 0 10px; overflow:hidden; border:1px solid #b7d4c5; border-radius:16px; background:linear-gradient(145deg,#f4faf6,#e8f3ec); box-shadow:0 9px 24px rgba(20,72,54,.07); }
.customer-context-card>header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:center; padding:15px 16px 13px; }
.customer-context-card>header>div:first-child { min-width:0; }
.customer-context-card>header span,.customer-context-card>header h4,.customer-context-card>header p { display:block; margin:0; }
.customer-context-card>header span { color:#2c7158; font-size:10px; font-weight:850; letter-spacing:.02em; }
.customer-context-card>header h4 { margin-top:4px; font-size:15px; }
.customer-context-card>header p { max-width:760px; margin-top:5px; overflow:hidden; color:#52655c; font-size:11px; line-height:1.55; }
.customer-context-state { display:grid; justify-items:end; gap:7px; }
.customer-context-state small { color:#4e6a5e; font-size:10px; }
.customer-context-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; padding:0 11px 11px; }
.customer-context-links>button { min-width:0; padding:10px; border:1px solid rgba(48,116,87,.17); border-radius:11px; background:rgba(255,255,255,.78); color:var(--ink); text-align:left; cursor:pointer; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.customer-context-links>button:not(:disabled):hover,.customer-context-links>button:not(:disabled):focus-visible { transform:translateY(-1px); border-color:#6ca28a; box-shadow:0 6px 14px rgba(24,83,62,.08); outline:0; }
.customer-context-links>button:disabled { cursor:default; opacity:.7; }
.customer-context-links span,.customer-context-links strong,.customer-context-links small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.customer-context-links span { color:#2e745a; font-size:9px; font-weight:850; }
.customer-context-links strong { margin-top:4px; font-size:11px; }
.customer-context-links small { margin-top:3px; color:var(--muted); font-size:9px; }
.customer-context-empty { grid-column:1/-1; padding:10px 12px; border-radius:11px; background:rgba(255,255,255,.62); }
.customer-context-empty strong,.customer-context-empty span { display:block; }
.customer-context-empty span { margin-top:3px; color:var(--muted); font-size:10px; }
.customer-context-card>footer { display:flex; align-items:center; gap:9px; padding:9px 15px; border-top:1px solid rgba(53,112,88,.12); background:rgba(255,255,255,.36); font-size:10px; }
.customer-context-card>footer span { color:var(--muted); }
.customer-context-card>footer strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.crm-unified-timeline .crm-timeline-item { position:relative; display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:10px; align-items:start; width:100%; padding:10px 5px 10px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; color:var(--ink); text-align:left; }
.crm-unified-timeline button.crm-timeline-item { cursor:pointer; }
.crm-unified-timeline button.crm-timeline-item:hover,.crm-unified-timeline button.crm-timeline-item:focus-visible { background:#f5faf6; outline:0; }
.crm-unified-timeline .crm-timeline-item>span { align-self:start; padding:4px 6px; border-radius:999px; background:#edf2ed; color:var(--green); font-size:9px; text-align:center; }
.crm-unified-timeline .crm-timeline-item>b { align-self:center; color:#6c8b7d; font-size:20px; font-weight:400; }
.context-highlight { animation:context-highlight 1.8s ease; }
@keyframes context-highlight { 0%,35% { box-shadow:0 0 0 4px rgba(190,139,50,.28); } 100% { box-shadow:none; } }

@media(max-width:1180px){
  .topbar-tools { min-width:0; }
  .service-state { display:none; }
  .global-crm-search { grid-template-columns:minmax(190px,330px) auto; }
  .customer-context-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px){
  .topbar { display:grid; }
  .topbar-tools { width:100%; justify-content:stretch; }
  .global-crm-search { width:100%; grid-template-columns:minmax(0,1fr) auto; }
  .customer-context-card>header { grid-template-columns:1fr; }
  .customer-context-state { grid-template-columns:1fr auto; align-items:center; justify-items:start; }
  .customer-context-links { grid-template-columns:1fr 1fr; }
}
@media(max-width:520px){
  .customer-context-links { grid-template-columns:1fr; }
  .customer-context-state { grid-template-columns:1fr; }
  .customer-context-state .primary-button { width:100%; }
}
/* Factory collaboration inside CRM */
.factory-crm-section{border:1px solid #d9e3e8;background:linear-gradient(180deg,#fff 0%,#f8fafb 100%)}
.factory-crm-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:center;margin:16px 0;padding:15px;border-radius:12px;background:#102b40;color:#fff}
.factory-crm-overview>div span,.factory-crm-overview>div small{display:block;color:#adc0ce;font-size:12px}.factory-crm-overview>div strong{display:block;margin:4px 0;font-size:16px}.factory-crm-overview .secondary-button{border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.1);color:#fff}
.factory-due-confirmation,.factory-shipment-handoff{margin:10px 0;padding:12px 15px;border:1px solid #d8e3dc;border-radius:12px;background:#f8fbf8}.factory-due-confirmation strong,.factory-due-confirmation span,.factory-shipment-handoff>div strong,.factory-shipment-handoff>div span{display:block}.factory-due-confirmation span,.factory-shipment-handoff>div span{color:#526675;font-size:12px;margin-top:4px}.factory-shipment-handoff form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.factory-shipment-handoff form button{grid-column:1/-1}.factory-shipment-handoff p{margin:8px 0;color:#244c60}.factory-change-compare{display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.factory-change-compare>label,.factory-change-compare>div{min-width:0}.factory-change-compare textarea{width:100%;box-sizing:border-box}.factory-change-compare.read-only>div{padding:10px;border-radius:8px;background:#f4f7f7}.factory-change-compare.read-only span{font-size:12px;color:#526675}.factory-change-compare.read-only p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0}.factory-change-note{grid-column:1/-1;white-space:pre-wrap}
.factory-crm-assignment,.factory-crm-create{margin-top:14px;border:1px solid #dfe6ea;border-radius:10px;background:#fff}.factory-crm-assignment>summary,.factory-crm-create>summary{padding:13px 15px;cursor:pointer;font-weight:800;color:#263d4e}
.factory-crm-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:4px 15px 16px}.factory-crm-form label{display:grid;gap:6px;font-size:13px;color:#5f6f7b}.factory-crm-form input,.factory-crm-form select,.factory-crm-form textarea{width:100%}.factory-crm-form .span-two{grid-column:span 3}.factory-crm-form>button{align-self:end}
.factory-mode-tip{margin:0;padding:10px 12px;border-radius:9px;background:#eef4f7;color:#526675;font-size:12px;line-height:1.55}
.factory-crm-evidence-board{margin:14px 0;padding:14px;border:1px solid #dfe6ea;border-radius:11px;background:#fff}.factory-crm-evidence-board>article{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);gap:12px;padding:10px 0;border-top:1px solid #edf0f2}.factory-crm-evidence-board>article.overdue{border-left:3px solid #b93c3c;padding-left:10px}.factory-crm-evidence-board strong,.factory-crm-evidence-board small,.factory-crm-evidence-board b,.factory-crm-evidence-board span,.factory-crm-evidence-board a{display:block}.factory-crm-evidence-board small,.factory-crm-evidence-board span{margin-top:3px;color:#6f7d87;font-size:12px}.factory-crm-evidence-board a{margin-top:4px;color:#19815f;font-size:12px;text-decoration:none}
.factory-crm-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.factory-crm-step{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;padding:13px;border:1px solid #dfe6ea;border-radius:10px;background:#fff}.factory-crm-step>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#edf2f5;color:#526675;font-weight:900}.factory-crm-step strong,.factory-crm-step small{display:block}.factory-crm-step small{margin-top:4px;color:#6f7d87;font-size:12px}.factory-crm-step p{margin:7px 0 0;color:#526675;font-size:13px;line-height:1.5}.factory-crm-step>div:last-child{grid-column:1/-1;display:flex;justify-content:flex-end;gap:7px}.factory-crm-step.done{border-color:#bfe1d4;background:#f1faf6}.factory-crm-step.done>span{background:#19815f;color:#fff}.factory-crm-step.review{border-color:#efc08f;background:#fff7ee}.factory-crm-step.review>span{background:#e77921;color:#fff}.factory-crm-step.blocked{border-color:#edc1c1;background:#fff4f4}
.factory-crm-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:14px}.factory-crm-columns>section{min-width:0;padding:14px;border:1px solid #dfe6ea;border-radius:11px;background:#fff}.factory-crm-subhead{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.factory-crm-subhead span{color:#6f7d87;font-size:12px}.factory-crm-issue{padding:12px 0;border-bottom:1px solid #e5eaed}.factory-crm-issue:last-child{border-bottom:0}.factory-crm-issue>span{display:block;color:#b0601e;font-size:12px;font-weight:800}.factory-crm-issue>strong{display:block;margin:5px 0}.factory-crm-issue>p{margin:0;color:#526675;font-size:13px;line-height:1.55}.factory-crm-issue>small{display:block;margin-top:6px;color:#6f7d87}.factory-crm-issue.critical>span{color:#b93c3c}.factory-crm-issue-form{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:7px;margin-top:10px}.factory-crm-resolution{margin-top:8px!important;padding:8px;border-radius:7px;background:#eaf6f1;color:#196b50!important}
.factory-crm-management{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.factory-crm-management>section{min-width:0;padding:14px;border:1px solid #dfe6ea;border-radius:11px;background:#fff}.factory-approval-history,.factory-bom-summary{display:grid;gap:7px;margin-top:10px}.factory-approval-history article,.factory-bom-summary article{display:grid;gap:3px;padding:9px;border-radius:8px;background:#f6f8f9}.factory-approval-history span,.factory-bom-summary span{color:#65747e;font-size:12px}.factory-approval-history p{margin:2px 0 0;font-size:12px;color:#8a493f}.factory-bom-summary article.critical{background:#fff0ed;color:#a13c31}.factory-crm-management details{margin-top:10px}.factory-crm-management details>summary{cursor:pointer;color:#1f6280;font-weight:700}.factory-dossier-link{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:13px 15px;border-radius:11px;background:#edf5f1}.factory-dossier-link>div{display:grid;gap:3px}.factory-dossier-link span{color:#61726a;font-size:12px}
.factory-crm-messages{display:grid;gap:8px;max-height:340px;overflow:auto}.factory-crm-messages article{padding:10px;border-radius:9px;background:#f1f5f7}.factory-crm-messages article.from-factory{border-left:3px solid #e77921}.factory-crm-messages article.from-crm{border-left:3px solid #19815f}.factory-crm-messages span,.factory-crm-messages strong{display:block}.factory-crm-messages span{color:#6f7d87;font-size:12px}.factory-crm-messages strong{margin:4px 0;font-size:13px}.factory-crm-messages p{margin:0;color:#526675;font-size:13px;line-height:1.5}.factory-crm-message-form{display:grid;gap:8px;margin-top:12px}.factory-crm-message-form input,.factory-crm-message-form textarea{width:100%}
.factory-file-share{display:flex!important;grid-column:1/-1;gap:10px!important;align-items:flex-start;padding:10px 12px;border:1px solid #dce6eb;border-radius:9px;background:#f7fafb;color:#263d4e!important}.factory-file-share input{width:auto!important;margin-top:3px}.factory-file-share span,.factory-file-share strong,.factory-file-share small{display:block}.factory-file-share small{margin-top:3px;color:#6f7d87;font-weight:400;line-height:1.4}
.factory-release-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #cfe0e8;border-radius:10px;background:#f3f8fa}.factory-release-fields label{display:grid;gap:6px}.factory-current-station{padding-left:13px;border-left:1px solid rgba(255,255,255,.2)}.factory-flow-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 14px;padding:10px;border:1px solid #d7e3e8;border-radius:9px;background:#f6fafb}.factory-flow-summary div{display:grid;gap:3px}.factory-flow-summary span{color:#647986;font-size:.72rem}.factory-flow-summary strong{color:#17394b;font-size:.84rem}.factory-flow-summary p{grid-column:1/-1;margin:2px 0 0;color:#617783;font-size:.75rem;line-height:1.5}.factory-unit-progress-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin:10px 0 14px}.factory-unit-progress-grid article{display:grid;gap:4px;padding:10px;border:1px solid #d7e3e8;border-radius:9px;background:#f6fafb}.factory-unit-progress-grid span{color:#647986;font-size:.72rem;font-weight:800}.factory-unit-progress-grid strong{color:#17394b;font-size:.86rem}.factory-unit-progress-grid small{color:#617783}.factory-actual-responsibility{margin-top:7px!important;padding-top:7px;border-top:1px dashed #d9e3e8;color:#36586d!important}.factory-critical-gate{display:block;margin-top:5px!important;padding:6px 7px;border-radius:6px;background:#fff1df;color:#8b511f!important}.factory-paperless-requirement{margin:0 0 6px!important;padding:7px 8px;border-radius:7px;background:#eef4f7;color:#36586d!important}.factory-change-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 13px;padding:11px;border:1px solid #f0d0ae;border-radius:9px;background:#fff8f0}.factory-change-form>strong,.factory-change-form>textarea,.factory-change-form>button{grid-column:1/-1}.factory-change-form input,.factory-change-form select,.factory-change-form textarea{width:100%}.factory-change-form>strong{color:#945019}
.factory-notification-settings-card hr{width:100%;border:0;border-top:1px solid var(--line);margin:4px 0}.factory-notification-template-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}.factory-notification-binding-list{display:grid;gap:7px;margin:10px 15px}.factory-notification-binding-list article{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}.factory-notification-binding-list small{color:var(--muted);text-align:right}.integration-advanced>summary{cursor:pointer;color:#315f50;font-weight:700}.factory-notification-delivery-summary{display:flex;flex-wrap:wrap;gap:6px;padding-top:9px;border-top:1px solid var(--line)}.factory-notification-delivery-summary span,.factory-notification-delivery-summary strong{padding:5px 7px;border-radius:999px;background:#edf4f0;color:#466257;font-size:10px}.factory-notification-delivery-summary span{background:#fff0c7;color:#725719}.factory-notification-delivery-log{display:grid;gap:6px;max-height:260px;overflow:auto}.factory-notification-delivery-log article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 9px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:#fff}.factory-notification-delivery-log article>small{grid-column:1/-1;color:#9b443b}.factory-notification-delivery-log strong,.factory-notification-delivery-log small{display:block}.factory-notification-delivery-log small,.factory-notification-delivery-log span{color:var(--muted);font-size:10px}.factory-notification-delivery-log article.failed{border-color:#e5b8b4;background:#fff7f6}.factory-notification-delivery-log article.sent{border-color:#b8dbc9;background:#f5fbf7}
@media(max-width:900px){.factory-crm-overview,.factory-crm-columns,.factory-crm-management{grid-template-columns:1fr}.factory-crm-overview>a{justify-self:start}.factory-crm-steps{grid-template-columns:1fr 1fr}.factory-crm-form{grid-template-columns:1fr 1fr}.factory-crm-form .span-two{grid-column:span 2}.factory-release-fields{grid-template-columns:1fr 1fr}.factory-current-station{padding:10px 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.2)}}
@media(max-width:560px){.factory-flow-summary{grid-template-columns:1fr}.factory-flow-summary p{grid-column:auto}}
@media(max-width:620px){.factory-crm-steps,.factory-crm-form,.factory-notification-template-keys{grid-template-columns:1fr}.factory-crm-form .span-two{grid-column:auto}.factory-crm-issue-form,.factory-change-form,.factory-release-fields{grid-template-columns:1fr}.factory-change-form>strong,.factory-change-form>textarea,.factory-change-form>button{grid-column:auto}.factory-crm-evidence-board>article{grid-template-columns:1fr}.factory-notification-binding-list article{align-items:flex-start;flex-direction:column}.factory-notification-binding-list small{text-align:left}}

/* Layered workspaces and recoverable object navigation v1.78. */
.route-return-bar{position:sticky;z-index:24;top:8px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 10px;padding:9px 12px;border:1px solid #b9d2c5;border-radius:12px;background:rgba(241,248,243,.96);box-shadow:0 7px 20px rgba(20,72,54,.09);backdrop-filter:blur(8px)}
.route-return-bar.hidden{display:none}.route-return-bar>div{min-width:0;display:flex;align-items:center;gap:8px}.route-return-bar span{color:var(--muted);font-size:10px}.route-return-bar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--green);font-size:11px}.route-return-bar button{flex:none}
.document-no-approval-note{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid #bad8c8;border-radius:9px;background:#edf8f1;color:#24644d;font-size:10px;font-weight:800}
.global-crm-search-dialog{width:min(920px,calc(100vw - 30px));max-height:min(760px,calc(100dvh - 36px));padding:0;border:0;border-radius:18px;background:#f8faf7;box-shadow:0 28px 80px rgba(8,40,30,.28)}
.global-crm-search-dialog::backdrop{background:rgba(7,30,24,.48);backdrop-filter:blur(3px)}
.global-search-shell{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:inherit}.global-search-shell>header{display:flex;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line);background:#fffdf8}.global-search-shell h3{margin:3px 0}.global-search-shell header span{color:var(--muted);font-size:11px}.global-crm-search-results{overflow:auto;padding:14px 18px 24px}.global-search-group{margin-bottom:16px}.global-search-group>header{display:flex;justify-content:space-between;padding:4px 3px 8px;color:var(--green);font-size:11px}.global-search-group>div{display:grid;gap:7px}.global-search-result{display:grid;grid-template-columns:72px minmax(0,1fr) auto 16px;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.global-search-result:hover{border-color:#82aa97;background:#f3f9f5}.global-search-result>span{padding:5px 7px;border-radius:999px;background:#e7f2eb;color:var(--green);font-size:9px;font-weight:800;text-align:center}.global-search-result div{min-width:0}.global-search-result strong,.global-search-result small,.global-search-result p{display:block;overflow:hidden;margin:0;text-overflow:ellipsis;white-space:nowrap}.global-search-result small,.global-search-result p,.global-search-result time{margin-top:3px;color:var(--muted);font-size:10px}.global-search-result>b{font-size:20px}.global-search-empty{display:grid;place-items:center;gap:6px;min-height:220px;color:var(--muted)}
.section-view-tabs,.settings-subnav{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:7px;margin:10px 0;padding:6px;border:1px solid #cadbd2;border-radius:14px;background:rgba(248,251,248,.92)}.section-view-tabs button,.settings-subnav button{display:grid;gap:3px;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink);text-align:left;cursor:pointer}.section-view-tabs button small{color:var(--muted);font-size:9px}.section-view-tabs button.active,.settings-subnav button.active{border-color:#316f58;background:var(--green);color:#fff;box-shadow:0 6px 16px rgba(24,83,62,.14)}.section-view-tabs button.active small{color:#dcebe4}
.analytics-view-tabs{position:sticky;z-index:16;top:8px;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:14px}.analytics-view-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.analytics-view-panel>.analytics-warnings,.analytics-view-panel>.analytics-metrics,.analytics-view-panel>.analytics-product-line-panel,.analytics-view-panel>.analytics-quality-panel,.analytics-view-panel>article.wide{grid-column:1/-1}.analytics-view-panel>.panel{margin:0}.analytics-metrics .metric-card,.analytics-product-lines>button,.analytics-owners>button,.analytics-bar-row:is(button){width:100%;border:0;color:inherit;text-align:left;cursor:pointer}.analytics-metrics .metric-card:hover,.analytics-product-lines>button:hover,.analytics-owners>button:hover,.analytics-bar-row:is(button):hover{box-shadow:0 0 0 2px rgba(45,116,87,.18);transform:translateY(-1px)}.analytics-product-lines>button,.analytics-owners>button{display:grid;background:inherit;font:inherit}.analytics-bar-row:is(button){display:block;padding:0;background:transparent;font:inherit}
.prospecting-entry-grid{display:block}.prospect-capture-tabs{grid-template-columns:1fr 1fr;margin-bottom:12px}.prospecting-entry-grid>[data-prospect-capture-panel]{margin-top:0}.prospect-source-group{margin-bottom:9px;border:1px solid var(--line);border-radius:13px;background:#fbfcf9}.prospect-source-group>summary{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}.prospect-source-group>summary span{display:grid;gap:3px}.prospect-source-group>summary small{color:var(--muted);font-size:9px}.prospect-source-group>summary b{color:var(--green);font-size:10px}.prospect-source-group>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 12px 12px}
.record-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:10px 12px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.record-pagination>div{display:flex;gap:7px}.record-pagination button{padding:7px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--green);font-weight:800;cursor:pointer}.record-pagination button:disabled{opacity:.42;cursor:not-allowed}
.customer-subview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.customer-subview-tabs{display:flex;flex-wrap:wrap;gap:6px}.customer-subview-tabs button{padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:10px;font-weight:800;cursor:pointer}.customer-subview-tabs button.active{border-color:var(--green);background:#e9f4ed;color:var(--green)}.customer-auto-field{display:grid;gap:4px;padding:11px;border:1px dashed #9dbbaa;border-radius:11px;background:#f1f8f3}.customer-auto-field span,.customer-auto-field small{color:var(--muted);font-size:9px}.customer-auto-field strong{font-size:12px}.crm-opportunity-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}.crm-focus-flash{animation:crm-focus-flash 2.4s ease}@keyframes crm-focus-flash{0%,45%{box-shadow:0 0 0 4px rgba(206,155,45,.35);background:#fff8df}100%{box-shadow:none}}
.workbench-workstream:is(button),#metrics .metric-card{font:inherit;color:inherit;text-align:left;cursor:pointer}.workbench-workstream:is(button):hover,#metrics .metric-card:hover{border-color:#77a58f;box-shadow:0 6px 18px rgba(22,77,57,.08)}.freight-history-card .text-button{display:inline;padding:0;font-size:inherit;text-decoration:underline}
@media(max-width:980px){.analytics-view-tabs{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}.analytics-view-panel{grid-template-columns:1fr}.analytics-view-panel>*{grid-column:1!important}.prospect-source-group>div{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.route-return-bar{align-items:stretch;flex-direction:column}.route-return-bar>div{display:grid;gap:2px}.route-return-bar button{width:100%}.global-search-result{grid-template-columns:58px minmax(0,1fr) 12px}.global-search-result time{display:none}.analytics-view-tabs{grid-template-columns:1fr 1fr}.analytics-view-tabs button small{display:none}.customer-subview-head{align-items:stretch;flex-direction:column}.prospect-source-group>div{grid-template-columns:1fr}.record-pagination{align-items:flex-start;flex-direction:column}.record-pagination>div{width:100%}.record-pagination button{flex:1}.factory-change-compare,.factory-shipment-handoff form{grid-template-columns:1fr}.factory-shipment-handoff form button{grid-column:auto}}
.customer-identity-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(740px,95vw);height:100dvh;max-height:100dvh;max-width:95vw;padding:0;border:0;border-radius:20px 0 0 20px;background:#fcfdfb;color:#183d34;box-shadow:-16px 0 60px #183d342b}
.customer-identity-dialog::backdrop{background:#102b2360}
.customer-identity-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #dce9e3}
.customer-identity-dialog h2{font-size:21px;margin:5px 0}.customer-identity-dialog h3{font-size:16px;margin:0 0 12px}
.identity-panel-body{height:calc(100dvh - 110px);overflow:auto;padding:20px 24px;overscroll-behavior:contain}
.identity-panel-body>section,.identity-panel-body>details{padding:18px 0;border-bottom:1px solid #dce9e3;scroll-margin-top:60px}
.identity-panel-body>details>summary{font-weight:700;cursor:pointer;padding:4px 0 12px}.identity-panel-tabs{display:flex;gap:10px;position:sticky;top:0;background:#fcfdfb;padding:10px 0;z-index:1}.identity-panel-tabs button{background:#eef6f2;border-radius:8px;padding:9px 12px;color:#164c3c;text-decoration:none;font-size:13px;border:0;cursor:pointer}.identity-panel-tabs button.active{background:#194f3f;color:white}
.identity-card-facts{display:grid;gap:7px;overflow-wrap:anywhere}.identity-card-facts>strong{font-size:16px}.identity-card-facts>span,.identity-card-facts>small{font-size:12px;color:#587369}
.identity-member,.identity-candidate,.identity-relation{padding:16px;margin:10px 0;border:1px solid #dce9e3;border-radius:12px;background:white}.identity-candidate>small{display:block;color:#9b6c1b;margin-bottom:10px}.identity-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.identity-search{display:grid;gap:8px;font-size:12px;margin-bottom:16px}.identity-search input{width:100%}.identity-relation{display:grid;gap:8px}.identity-relation>small{color:#587369}
.identity-channel-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.identity-channel{display:grid;gap:7px;text-align:left;padding:12px;border:1px solid #d5e5dc;border-radius:10px;background:#f0f7f3;color:#164c3c;overflow-wrap:anywhere}.identity-channel span,.identity-channel small{font-size:11px}.identity-channel strong{font-size:13px}
.customer-identity-entry{border:1px solid #dce9e3;border-radius:10px;margin:10px 0;padding:10px 14px;font-size:12px}.customer-identity-entry summary{cursor:pointer;font-weight:700;display:list-item}.customer-identity-entry summary span{font-weight:400;color:#637e73;margin-left:12px}.customer-identity-entry>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-identity-entry p{color:#637e73}
.channel-identity-hint{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:8px 12px;margin-top:8px;border-radius:8px;background:#eef6f2;font-size:12px}.channel-identity-hint.possible{background:#fff5df;border:1px solid #e8c676}.identity-provenance{display:block;color:#507868;font-size:11px;margin:5px 0}.identity-history-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0;font-size:12px}.identity-history-filter select{width:auto}.identity-history-filter small{color:#637e73}
@media(max-width:640px){.identity-channel-list{grid-template-columns:1fr}.customer-identity-dialog>header,.identity-panel-body{padding:16px}.identity-panel-tabs{gap:5px}.identity-panel-tabs button{padding:8px;font-size:12px}.channel-identity-hint{align-items:flex-start}.customer-identity-entry>div{align-items:flex-start;flex-direction:column}}
.customer-identity-dialog .text-button,.channel-identity-hint .text-button{color:#245e4c;background:transparent;border:0;cursor:pointer}
.customer-identity-dialog .identity-candidate p{margin:10px 0;font-size:13px;line-height:1.6}.customer-identity-dialog .identity-panel-body>section[hidden],.customer-identity-dialog .identity-panel-body>details[hidden]{display:none}
.channel-filter-feedback{display:grid;gap:6px;margin:0 0 10px;padding:9px 10px;border:1px solid #d8e6dd;border-radius:10px;background:#f5faf7}
.channel-filter-feedback-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.channel-filter-feedback-head>span{color:#315f50;font-size:11px;line-height:1.45}.channel-filter-feedback-head>button{flex:none;font-size:11px;padding:3px 0;color:#245e4c}.channel-filter-feedback-head>button:disabled{color:#83958b;cursor:default}
.channel-filter-feedback p{margin:0;color:#62766b;font-size:10px;line-height:1.45}.channel-filter-feedback p.error{color:#a3382a;font-weight:700}
.channel-filter-chips{display:flex;flex-wrap:wrap;gap:5px}.channel-filter-chips>span{max-width:100%;padding:3px 6px;border:1px solid #dcc69a;border-radius:6px;background:#fff6df;color:#805611;font-size:10px;overflow-wrap:anywhere}
.channel-provider-card.active{border-color:#22654e;background:#e8f4ec;box-shadow:inset 0 0 0 1px #22654e}.channel-inbox-error{display:grid;gap:8px;padding:16px;border:1px solid #e0b9b1;border-radius:12px;background:#fff7f4;color:#9e3b2d}.channel-inbox-error p{margin:0;overflow-wrap:anywhere;font-size:12px}.channel-inbox-error small{color:#78615b;line-height:1.5}.channel-inbox-error button{justify-self:start}
.identity-confirmation{padding:12px;margin-top:10px;border:1px solid #b89a54;border-radius:12px;background:#fff8e8}.identity-confirmation p{font-size:13px;line-height:1.5}.identity-confirmation button+button{margin-left:8px}

/* Customer library: two compact header rows, with full names and actions intact. */
.customer-layout>.customer-directory, .customer-layout>.customer-detail { min-width:0; }
.customer-detail .customer-detail-head { display:block; margin-bottom:10px; }
.customer-heading-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.customer-heading-identity { min-width:0; flex:1; }
.customer-heading-identity h3 { margin:0; font-size:21px; line-height:1.35; overflow-wrap:anywhere; }
.customer-heading-meta { display:flex; flex-wrap:wrap; gap:3px 10px; margin:4px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.customer-heading-meta span+span { border-left:1px solid var(--line); padding-left:10px; }
.customer-heading-row .customer-detail-actions { display:flex; flex-shrink:0; flex-wrap:wrap; justify-content:flex-end; gap:6px; max-width:100%; }
.customer-heading-tools { display:flex; align-items:flex-start; justify-content:space-between; gap:8px 14px; margin-top:8px; }
.customer-header-identity-slot { min-width:0; flex:1; }
.customer-heading-tools .customer-assign-form { grid-template-columns:minmax(150px,220px) auto; align-items:center; flex-shrink:0; gap:6px; margin:0; }
.customer-heading-tools .customer-assign-form select { min-width:0; }
.customer-header-identity-slot .customer-identity-entry { width:fit-content; max-width:100%; margin:0; padding:5px 8px; border-radius:8px; }
.customer-header-identity-slot .customer-identity-entry summary { font-size:11px; line-height:1.7; }
.customer-header-identity-slot .customer-identity-entry summary span { margin-left:8px; }
.customer-header-identity-slot .customer-identity-entry>div { flex-direction:column; align-items:flex-start; gap:6px; padding:6px 0 2px; }
.customer-header-identity-slot .customer-identity-entry p { margin:0; line-height:1.5; }
@media (max-width:1100px) {
  .customer-heading-row { flex-wrap:wrap; }
  .customer-heading-identity { flex-basis:100%; }
  .customer-heading-row .customer-detail-actions { justify-content:flex-start; }
}
@media (max-width:680px) {
  .customer-layout { grid-template-columns:minmax(0,1fr); }
  .customer-heading-tools { flex-direction:column; }
  .customer-header-identity-slot { width:100%; }
  .customer-heading-tools .customer-assign-form { width:100%; grid-template-columns:minmax(0,1fr) auto; }
  .customer-heading-identity h3 { font-size:19px; }
}

/* Clear customer scope and customer-local business journey. */
.customer-directory-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;}
.customer-directory-actions button{padding:7px 10px;font-size:12px;}
.customer-pool-hint{display:grid;gap:4px;color:var(--muted);font-size:11px;padding:7px 9px;background:#f1f7f4;border-radius:8px;line-height:1.5;}
.customer-pool-hint .text-button{text-align:left;padding:0;font-size:11px;color:#176b56;}
.customer-pagination{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;font-size:12px;}
.customer-journey{border:1px solid #d8e7df;border-radius:12px;padding:12px;background:#f6faf8;margin-bottom:14px;}
.customer-journey header{display:flex;justify-content:space-between;align-items:center;gap:12px;}
.customer-journey header div{display:grid;gap:4px;}
.customer-journey small{color:var(--muted);font-size:11px;line-height:1.5;}
.customer-journey-source{display:flex;gap:10px;align-items:center;margin:10px 0;font-size:12px;}
.customer-journey-source select{max-width:440px;}
.customer-journey-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:10px;}
.customer-journey-steps button{background:white;border:1px solid #dce6e0;border-radius:9px;text-align:left;padding:10px;display:grid;align-content:start;gap:5px;color:var(--ink);cursor:pointer;min-width:0;overflow-wrap:anywhere;}
.customer-journey-steps button:hover{border-color:#427f6a;background:#edf7f1;}
.customer-journey-steps button.has-document{border-top:3px solid #427f6a;}
.customer-journey-steps span{font-size:12px;font-weight:700;}
.customer-journey-steps strong{font-size:11px;}
.customer-create-dialog{width:min(780px,calc(100vw - 30px));max-height:90dvh;border:1px solid #cddfd5;border-radius:16px;padding:22px;color:var(--ink);overflow:auto;}
.customer-create-dialog::backdrop{background:rgba(13,35,27,.42);}
.customer-create-dialog header{display:flex;align-items:start;justify-content:space-between;gap:12px;}
.customer-create-dialog header h3{margin:0;}
.customer-create-dialog header p{font-size:12px;color:var(--muted);}
.customer-create-dialog header button{border:0;background:transparent;font-size:24px;cursor:pointer;}
.customer-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.customer-create-grid label{display:grid;gap:5px;font-size:12px;min-width:0;}
.customer-create-grid input,.customer-create-grid select,.customer-create-grid textarea{width:100%;}
.customer-create-grid .span-two{grid-column:1/-1;}
.customer-create-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding-top:14px;}
.customer-create-dialog [data-create-duplicates]{display:grid;gap:6px;}
@media(max-width:1250px){.customer-journey-steps{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:680px){.customer-journey-steps{grid-template-columns:repeat(2,minmax(0,1fr));}.customer-journey header{align-items:start;flex-direction:column;}.customer-journey-source{display:grid;}.customer-create-grid{grid-template-columns:minmax(0,1fr);}}
