/* Marchés adopts the ERP's Spine, ListScreen and RecordScreen structure.
   The ERP source remains read-only; flair-tokens.css is its local token snapshot. */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; align-items: center; width: 88px; padding: 16px 8px; background: var(--spine); color: var(--spine-ink); }
.brand { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; }
.brand img { display: block; width: 34px; height: 34px; }
.sidebar nav { display: grid; gap: 8px; width: 100%; }
.sidebar .nav-link { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 68px; width: 72px; padding: 10px 2px; border: 0; border-radius: 20px 6px 6px 6px; background: transparent; color: var(--spine-muted); font-size: 11px; line-height: 14px; font-weight: 500; text-align: center; }
.sidebar .nav-link[data-view="commissions"] { font-size: 10px; }
.sidebar .nav-link:hover { background: var(--spine-hover); color: var(--spine-ink); }
.sidebar .nav-link.active { background: var(--spine-active); color: var(--spine-active-ink); }
.nav-symbol { display: block; width: 22px; height: 22px; background: currentColor; mask: center/contain no-repeat; }
.nav-opportunities { mask-image: url('assets/dashboard.svg'); }
.nav-consultations { mask-image: url('assets/projects.svg'); }
.nav-submissions { mask-image: url('assets/reports.svg'); }
.nav-commissions { mask-image: url('assets/hr.svg'); }
.nav-profile { mask-image: url('assets/settings.svg'); }
.nav-dossiers { mask-image: url('assets/documents.svg'); }
.sidebar-bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; color: var(--spine-muted); font-size: 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--spine-muted); }
.main { margin-left: 88px; min-height: 100vh; padding: 12px 24px 80px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; border-bottom: 1px solid var(--rule); color: var(--text-2); font-size: 13px; }
.topbar-location { display: flex; align-items: center; gap: 16px; }
.topbar-location img, .product-divider { display: none; }
.topbar-location b { margin: 0 12px; font-weight: 400; color: var(--text-3); }
.sync-info { color: var(--text-3); font-size: 12px; }
.module-tabs { display: flex; gap: 28px; min-height: 52px; border-bottom: 1px solid var(--line); }
.module-tab { display: inline-flex; align-items: center; padding: 14px 0 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--text-3); font-size: 14px; font-weight: 500; }
.module-tab:hover { color: var(--ink); }
.module-tab.active { border-bottom-color: var(--accent); color: var(--ink); }
.view { padding-top: 32px; }
.page-head { margin-bottom: 32px; }
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.page-head h1, .page-heading h1 { margin: 12px 0 16px; font-size: clamp(44px,5vw,72px); line-height: .95; font-weight: 700; letter-spacing: -.035em; }
.page-deck { margin: 0; font-size: 15px; }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; margin-top: 24px; color: var(--text-3); font-size: 13px; }
.stats > span { padding: 0 20px; border-left: 1px solid var(--line-strong); }
.stats > span:first-child { padding-left: 0; border-left: 0; }
.stats strong { margin-right: 4px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.list-views, .record-tabs { display: flex; gap: 28px; overflow-x: auto; border-bottom: 1px solid var(--line-strong); }
.list-views button, .record-tabs button { flex: none; padding: 12px 0; border: 0; border-bottom: 3px solid transparent; color: var(--text-3); background: transparent; font-weight: 500; }
.list-views .is-on, .record-tabs [aria-selected=true] { border-bottom-color: var(--accent); color: var(--ink); }
.record-tabs { margin-bottom: 24px; }
.lot-response-panel { margin: 24px 0; border: 1px solid var(--line-strong); border-radius: var(--r-12, 12px); overflow: hidden; background: var(--surface); }
.lot-response-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); }
.lot-response-heading h3 { margin: 6px 0; }
.lot-response-heading p { margin: 6px 0 0; }
.lot-response-heading .pill { flex: none; }
.lot-response-list { max-height: 280px; overflow-y: auto; }
.lot-response-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.lot-response-row.is-active { background: var(--selected); box-shadow: inset 3px 0 var(--brand); }
.lot-include { display: grid; place-items: center; }
.lot-include input { width: 18px; height: 18px; accent-color: var(--brand); }
.lot-response-row button { text-align: left; padding: 14px 16px 14px 0; border: 0; background: transparent; color: var(--ink); min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lot-response-row button > span { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.lot-response-row button > span > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lot-response-row button strong { color: var(--brand-strong); }
.lot-response-row button small { color: var(--text-3); flex: none; max-width: 40%; }
.lot-save-status { padding: 12px 20px; margin: 0; }
.lot-model-fields { margin-bottom: 24px; }
.lot-model-fields label, .market-file-scope { min-width: 0; }
.lot-model-fields select, .market-file-scope select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.market-file-scope { display: grid; gap: 8px; margin: 12px 0; max-width: 560px; }
@media (max-width: 767px) {
  .lot-response-heading { padding: 16px; flex-wrap: wrap; }
  .lot-response-row button { display: grid; gap: 8px; }
  .lot-response-row button small { max-width: none; }
  .lot-model-fields { grid-template-columns: minmax(0, 1fr); }
}
.filterbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 20px 0 16px; }
.search { position: relative; flex: 1 1 260px; }
.search span { position: absolute; left: 12px; top: 6px; color: var(--text-3); font-size: 22px; }
.search input { width: 100%; padding-left: 36px !important; }
.filterbar select { width: 175px; }
.filterbar > input { width: 180px; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.table-context { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 0 0 12px; color: var(--text-3); font-size: 12px; }
.market-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.market-table { width: 100%; min-width: 980px; border-collapse: collapse; text-align: left; table-layout: fixed; }
.market-table th { padding: 14px 16px; border-bottom: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-3); font-size: 12px; line-height: 16px; font-weight: 500; }
.market-table th:first-child { width: 32%; }
.market-table th:nth-child(2) { width: 19%; }
.market-table th:nth-child(3) { width: 13%; }
.market-table th:nth-child(4), .market-table th:nth-child(5) { width: 12%; }
.market-table th:nth-child(6) { width: 8%; }
.market-table th:last-child { width: 48px; padding-left: 8px; padding-right: 8px; }
.market-table td { padding: 16px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 13px; line-height: 20px; vertical-align: middle; }
.market-table tbody tr:last-child td { border-bottom: 0; }
.market-table tbody tr { cursor: pointer; }
.market-table tbody tr:hover { background: var(--surface-hover); }
.market-table tbody tr.is-preview { background: var(--selected); }
.market-table td:last-child { padding: 8px; }
.row-reference { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 6px; color: var(--text-3); font-size: 12px; }
.market-identity > strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 500; }
.market-buyer small { display: block; margin-top: 4px; color: var(--text-3); font-size: 12px; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.market-table td.numeric { white-space: nowrap; }
.row-score.compatible { color: var(--success); }
.page-heading { margin-bottom: 32px; max-width: 1000px; }
.page-heading p { font-size: 15px; }
@media(min-width:1600px) { .main { padding-left: 32px; padding-right: 32px; } }
@media(max-width:1100px) { .page-head-row { align-items: start; } .page-head-row > .button { margin-top: 24px; } .filterbar .toggle { width: 100%; } }
@media(max-width:767px) {
 .sidebar { inset: auto 0 0; width: 100%; height: 72px; padding: 6px 8px; }
 .sidebar .brand, .sidebar-bottom { display: none; }
 .sidebar nav { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px; }
 .sidebar .nav-link { width: 100%; min-width: 0; min-height: 60px; padding: 8px 0; font-size: 9px; line-height: 12px; }
 .sidebar .nav-link[data-view="commissions"] { font-size: 9px; }
 .main { margin-left: 0; padding: 0 16px 100px; }
 .topbar { min-height: 52px; gap: 12px; }
 .sync-info { max-width: 180px; text-align: right; }
 .module-tabs, .list-views, .record-tabs { gap: 20px; }
 .module-tab { font-size: 13px; white-space: nowrap; }
 .view { padding-top: 24px; }
 .page-head-row { flex-direction: column; gap: 20px; }
 .page-head-row > .button { margin: 0; }
 .page-head h1, .page-heading h1 { font-size: 44px; }
 .stats > span { padding: 0 12px; }
 .filterbar select, .filterbar > input { width: calc(50% - 6px); flex: 1; }
 .filterbar .search { flex-basis: 100%; }
 .table-context > span:last-child { display: none; }
}

.market-buyer { overflow-wrap: anywhere; }
.market-buyer small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.market-table td.numeric, .market-table th.numeric { padding-left: 10px; padding-right: 10px; }
.sync-progress[data-running="false"] { padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.sync-progress[data-running="false"] progress { display: none; }

.financial-progress { margin: 0 0 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.financial-progress > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.financial-progress > div > span { color: var(--text-3); }
.financial-progress progress { display: block; width: 100%; height: 4px; margin-top: 12px; accent-color: var(--brand); }
.amount-status { display: inline-block; max-width: 115px; white-space: normal; color: var(--text-3); font-size: 12px; line-height: 16px; }
.lot-amounts { white-space: normal; font-size: 13px; }
.lot-amounts summary { list-style: none; color: var(--text-2); }
.lot-amounts summary small { display: block; margin-top: 3px; font-size: 11px; color: var(--link); }
.lot-amounts summary small:after { content: ' ▾'; }
.lot-amounts summary::-webkit-details-marker { display: none; }
.lot-amounts > div { margin-top: 12px; }
.lot-amounts > div > span { display: block; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12px; }
.lot-amounts strong { display: block; font-weight: 500; }
.drawer-lots { margin-top: 24px; }
.drawer-lots h3 { font-size: 18px; }
.drawer-lot { padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer-lot > strong { display: block; font-size: 14px; }
.drawer-lot dl { display: grid; gap: 8px; margin: 12px 0 0; }
.drawer-lot dl > div { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.drawer-lot dt { color: var(--text-3); }.drawer-lot dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Submission selection and tracking share the ERP surfaces and typography. */
.submission-row-action { display: block; max-width: 170px; margin-bottom: 10px; font-size: 12px; text-align: left; line-height: 17px; }
.workspace-submission-action { margin: 0 0 24px; }
.submission-table { min-width: 850px; }
.submission-table td { vertical-align: top; }
.submission-table td small { display: block; margin-top: 6px; color: var(--text-3); font-size: 12px; }
.submission-stage { display: block; max-width: 260px; font-size: 13px; }
.submission-lot-tag { display: inline-block; margin: 0 6px 6px 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; white-space: nowrap; }
#submission-choice { width: min(620px,calc(100vw - 32px)); max-height: 85vh; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
#submission-choice::backdrop { background: rgba(24,35,65,.3); }
#submission-choice h2 { margin: 0 0 12px; font-size: 24px; font-weight: 600; }
#submission-choice-lots { margin: 20px 0; padding: 0; border: 0; }
.submission-choice-lot { display: flex; align-items: start; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.submission-choice-lot input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0; accent-color: var(--brand); }
.submission-choice-lot > span { display: grid; gap: 8px; font-size: 13px; line-height: 19px; }
.submission-choice-lot small { color: var(--text-3); }
.submission-lot-form { padding: 22px 0; border-top: 1px solid var(--line); }
.submission-lot-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.submission-lot-heading > span { color: var(--text-3); font-size: 13px; max-width: 360px; }
.submission-lot-form > label { display: grid; gap: 8px; margin-top: 16px; font-size: 13px; }
.submission-history { padding-top: 20px; border-top: 1px solid var(--line); }
.submission-history ol { padding: 0; list-style: none; }
.submission-history li { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.submission-history time { color: var(--text-3); white-space: nowrap; }
.submission-history small { display: block; margin-top: 6px; overflow-wrap: anywhere; }
@media(max-width:767px) { #submission-choice { padding: 20px; } .submission-lot-heading, .submission-history li { flex-direction: column; gap: 8px; } .module-tabs { overflow-x: auto; } .sidebar .nav-link { min-width: 64px; } }
.market-identity .submission-row-action { max-width: none; margin: 10px 0 0; }
.submission-table th:first-child { width: 34%; }
.submission-table th:nth-child(2) { width: 12%; }
.submission-table th:nth-child(3) { width: 15%; }
.submission-table th:nth-child(4) { width: 23%; }
.submission-table th:last-child { width: 16%; padding: 14px 16px; }
.submission-table tbody tr { cursor: default; }

/* Accueil reprend les proportions et surfaces du Home de Flair One. */
.mast { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 4px 4px; margin-bottom: 28px; }
.mast-kicker { margin: 0; font-size: 13px; color: var(--text-2); }
.mast-title { margin: 0; font: var(--t-mast); letter-spacing: var(--tracking-mast); color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
.mast-title em { color: var(--brand-strong); font-weight: 700; }
.mast-deck { margin: 4px 0 0; font-size: 16px; color: var(--text-2); }
.home-lead { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.field-block { grid-column: span 5; position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 260px; padding: 28px; border-radius: var(--r-sweep); background: var(--field-bg) url('assets/flow-cobalt.svg') right -140px top -90px / 440px auto no-repeat; color: var(--field-ink); overflow: hidden; }
.field-label { margin: 0; font-size: 14px; font-weight: 500; }
.field-figure { margin: auto 0 0; font-size: 82px; line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.field-line { margin: 4px 0 0; font-size: 14px; color: var(--field-ink); }
.field-go { align-self: flex-start; margin-top: 14px; padding: 8px 14px; border: 0; border-radius: var(--r-sweep-s); background: var(--field-ink); color: var(--brand-strong); font-size: 14px; font-weight: 600; }
.dashboard-card { min-width: 0; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.dashboard-card.decide { grid-column: span 4; }.dashboard-card.today { grid-column: span 3; }
.dashboard-section-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dashboard-section-heading h2,.dashboard-card h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.decide-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--highlight); font-size: 14px; font-weight: 700; }
.decide-list,.today-entries { list-style: none; margin: 0; padding: 0; }
.decide-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.dashboard-action-copy { flex: 1; min-width: 0; }.dashboard-action-copy b { display: block; font-size: 14px; font-weight: 500; line-height: 20px; }.dashboard-action-copy small { color: var(--text-3); }
.today-entries button { width: 100%; border: 0; border-top: 1px solid var(--rule); background: transparent; padding: 12px 0; text-align: left; color: var(--ink); }.today-entries b,.today-entries small { display: block; }.today-entries small { margin-top: 5px; color: var(--text-3); font-size: 12px; }
.figures { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); margin: 28px 0 8px; }
.figure { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; min-width: 0; border: 0; border-left: 1px solid var(--rule); background: transparent; text-align: left; }
.figure:first-child { border-left: 0; padding-left: 4px; }.figure-label { font-size: 13px; color: var(--text-2); }.figure-value { font-size: 36px; color: var(--ink); font-weight: 600; }
.dashboard-work { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }.dashboard-section { min-width: 0; margin-top: 30px; }
.dashboard-record { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }.dashboard-record > div { min-width: 0; }.dashboard-record strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }.dashboard-record p { margin: 6px 0 0; color: var(--text-3); font-size: 12px; }.dashboard-record .text-button { flex-shrink: 0; }
.dashboard-missing-table th:first-child { width: 30%; }.dashboard-missing-table th:nth-child(2) { width: 15%; }.dashboard-missing-table th:nth-child(3) { width: 25%; }.dashboard-missing-table th:nth-child(4) { width: 22%; }.dashboard-missing-table th:last-child { width: 8%; }
.commission-add { padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }.commission-add form { max-width: 650px; padding: 18px 0; }
.commission-workspace { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 28px; margin-top: 24px; }
.commission-choice { display: grid; width: 100%; gap: 8px; padding: 16px; margin-bottom: 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); text-align: left; color: var(--ink); }.commission-choice.is-on { border-color: var(--brand); background: var(--selected); }.commission-choice span,.commission-choice small { font-size: 12px; color: var(--text-3); }
.commission-detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }.commission-detail-heading h2 { font-size: 20px; line-height: 28px; font-weight: 600; }.commission-detail-heading button { flex-shrink: 0; }
.commission-status { padding: 16px 0; border-bottom: 1px solid var(--rule); }.commission-status p { color: var(--text-2); font-size: 14px; }.commission-status small { display: block; color: var(--text-3); font-size: 12px; }.commission-status a { display: inline-block; margin-top: 12px; font-size: 13px; }
.commission-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 24px 0; }.commission-facts small { display: block; margin-bottom: 6px; color: var(--text-3); }.commission-facts strong { color: var(--ink); font-size: 18px; font-weight: 500; }
.commission-participants { min-width: 850px; table-layout: auto; }.commission-participants th:first-child { width: 30%; }.commission-participants th:nth-child(2),.commission-participants th:nth-child(3) { width: 15%; }.commission-participants th:nth-child(4),.commission-participants th:last-child { width: 20%; padding: 14px 16px; }.commission-participants tr { cursor: default; }.company-participant { background: var(--selected); }.company-participant small { display: block; margin-top: 4px; font-size: 11px; color: var(--link); }.participant-admitted { color: var(--success); }.participant-rejected { color: var(--danger); }
.commission-revisions { margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--rule); }
@media(max-width:1100px) { .field-block { grid-column: span 12; }.dashboard-card.decide,.dashboard-card.today { grid-column: span 6; }.commission-workspace { grid-template-columns: 1fr; }#commission-list { display: flex; gap: 12px; overflow-x: auto; }.commission-choice { min-width: 180px; } }
@media(max-width:767px) { .sidebar nav { overflow-x: auto; justify-content: flex-start; width: 100%; }.sidebar .nav-link { flex-shrink: 0; }.home-lead { gap: 16px; }.dashboard-card.decide,.dashboard-card.today { grid-column: span 12; }.dashboard-work { grid-template-columns: 1fr; gap: 0; }.figures { grid-template-columns: repeat(2,minmax(0,1fr)); }.figure:nth-child(3) { border-left: 0; }.field-figure { font-size: 64px; }.commission-detail-heading { flex-direction: column; }.commission-facts { grid-template-columns: 1fr 1fr; }.commission-facts strong { font-size: 15px; } }
.commission-workspace { display: block; }
#commission-list { display: flex; gap: 12px; margin-bottom: 24px; overflow-x: auto; }
.commission-choice { min-width: 240px; max-width: 320px; }
.commission-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ranking-summary { display: grid; grid-template-columns: 1fr .8fr 1.4fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--rule); }
.ranking-summary small,.ranking-summary span { display: block; color: var(--text-3); font-size: 12px; line-height: 18px; }
.ranking-summary strong { display: block; margin: 8px 0; color: var(--ink); font-size: 22px; font-weight: 600; }
.ranking-rule { margin-bottom: 24px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 13px; }
.ranking-rule p { line-height: 20px; color: var(--text-2); }.ranking-rule a { display: inline-block; margin: 8px 0; }
.commission-participants { min-width: 980px; table-layout: fixed; }
.commission-participants th:first-child { width: 7%; }.commission-participants th:nth-child(2) { width: 21%; }.commission-participants th:nth-child(3) { width: 11%; }.commission-participants th:nth-child(4) { width: 11%; }.commission-participants th:nth-child(5) { width: 18%; }.commission-participants th:nth-child(6) { width: 15%; }.commission-participants th:last-child { width: 17%; }
.commission-participants td { vertical-align: top; }.commission-participants td.numeric { white-space: normal; }.commission-participants td small { display: block; margin-top: 4px; color: var(--text-3); font-size: 11px; line-height: 16px; }
@media(max-width:767px) { .ranking-summary { grid-template-columns: 1fr; gap: 16px; }.commission-facts { grid-template-columns: 1fr 1fr; } }

.commission-participants th:first-child,.commission-participants td:first-child { padding-left: 8px; padding-right: 8px; }

/* Official publications use the same flat sections and rules as the ERP. */
.official-results { margin: 24px 0; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.official-results h3 { margin: 0; }.official-read-status { margin-top: 16px; font-size: 12px; color: var(--text-2); }
.official-decision { padding: 20px; margin: 20px 0; border-left: 3px solid var(--brand); background: var(--selected); }
.official-decision h3 { margin-top: 8px; font-size: 22px; }.official-decision p { margin: 12px 0; }
.official-decision blockquote { margin: 16px 0 8px; padding-left: 12px; border-left: 1px solid var(--rule); color: var(--text-2); font-size: 13px; }
.official-decision small,.official-document small { display: block; color: var(--text-3); font-size: 11px; }.official-lot { border-top: 1px solid var(--rule); padding-top: 16px; }
.official-document { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--rule); }.official-document strong { font-size: 14px; }.official-document small { margin-top: 6px; }
.official-document-actions { display: flex; flex-direction: column; align-items: end; gap: 12px; flex-shrink: 0; font-size: 12px; }
@media(max-width:767px) { .official-results .dashboard-section-heading,.official-document { flex-direction: column; align-items: stretch; }.official-document-actions { align-items: start; }.official-decision { padding: 16px; } }

/* Shared presentation of the ERP's page, record, list and document patterns. */
.topbar-view-name { padding-inline-start: 20px; border-inline-start: 1px solid var(--rule); color: var(--text-2); font: var(--t-label); white-space: nowrap; }
.main { max-width: 1760px; padding-inline: 32px; }
.view { padding-top: 28px; }
.button { transition: background-color var(--m-fast), border-color var(--m-fast); }
.button-secondary { border-color: var(--rule); }
.button:focus-visible, .text-button:focus-visible, summary:focus-visible, .preview-tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.icon-button, .row-preview { width: 36px; height: 36px; border-radius: var(--r-field); }
.sidebar .nav-link { border-radius: var(--r-sweep-s); }
.sidebar .nav-link[aria-current=page] .nav-symbol { opacity: 1; }
.page-heading h1, .page-head h1 { font-size: clamp(40px, 4.5vw, 64px); margin-block: 12px; }
.page-head-row { align-items: flex-end; }
.page-deck, .page-heading > p { color: var(--text-2); line-height: 1.6; max-width: 64ch; }
.page-heading .eyebrow, .page-head .eyebrow { color: var(--text-3); font-size: 11px; letter-spacing: .08em; }
.mast { padding-top: 12px; margin-bottom: 24px; gap: 10px; }
.mast-title { font-size: clamp(44px,5.2vw,72px); }
.mast-deck { font: var(--t-body-lg); }
.vault-dashboard-notice { margin-block: 20px; padding-block: 14px; }
.home-lead { gap: 20px; }
.field-block { grid-column: span 4; min-height: 280px; padding: 26px; }
.dashboard-card.decide { grid-column: span 5; }
.dashboard-card.today { grid-column: span 3; }
.dashboard-card { border-radius: var(--r-inner); padding: 22px; }
.decide-list li { padding-block: 13px; }
.dashboard-action-copy b { font-weight: 500; }
.figures { margin-block: 28px 0; border-top-color: var(--line-strong); }
.figure-value { font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-figure); }
.dashboard-section-heading h2 { font: var(--t-section-title); }
.dashboard-record { gap: 16px; padding-block: 18px; }
.dashboard-record > div { flex: 1; }
.dashboard-work { gap: 40px; }
.dashboard-record .row-reference { margin-bottom: 8px; }
.market-table-wrap { border-color: var(--rule); border-radius: var(--r-inner); }
.market-table thead th { background: var(--surface-2); font: var(--t-caption); padding-block: 13px; }
.market-table td { padding-block: 18px; font-size: 13px; }
.market-identity > strong { font-weight: 500; line-height: 21px; }
.market-table tbody tr { transition: background-color var(--m-fast); }
.market-table td.numeric { font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.market-table .row-reference .pill { font-size: 11px; padding: 1px 6px; }
.filterbar { gap: 12px; padding-block: 18px; }
.filterbar :is(input, select), .vault-filterbar :is(input,select) { min-height: 42px; }
.table-context { margin-bottom: 14px; }
.workspace-navigation { padding-block: 0 12px; }
.workspace-view .drawer-intro { padding-block: 12px 20px; }
.workspace-view h1 { font-size: clamp(25px,2.25vw,32px); line-height: 1.25; letter-spacing: var(--tracking-title); max-width: 1100px; margin-block: 12px; text-wrap: balance; }
.workspace-summary { gap: 8px 20px; max-width: 1100px; line-height: 1.55; }
.workspace-summary > span + span::before { content: '·'; margin-inline-end: 16px; color: var(--text-3); }
.workspace-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 24px 0 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--rule); }
.workspace-facts > div { display: block; padding: 14px 20px; border-inline-start: 1px solid var(--rule); margin: 0; min-width: 0; }
.workspace-facts > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.workspace-facts dt { color: var(--text-3); font: var(--t-caption); }
.workspace-facts dd { margin: 6px 0 0; color: var(--ink); font: 600 17px/24px var(--font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.workspace-facts .workspace-caution dd { color: var(--brand-strong); }
.workspace-submission-action { margin-bottom: 20px; }
.record-tabs { gap: 28px; margin-bottom: 20px; }
.record-tabs button { min-height: 48px; padding-block: 12px; border-bottom-width: 2px; font-size: 14px; }
.workspace-panel { padding: 24px; border-color: var(--rule); border-radius: var(--r-inner); margin-bottom: 20px; }
.workspace-panel h3 { font: var(--t-section-title); letter-spacing: var(--tracking-title); }
.section-kicker { font-size: 10px; letter-spacing: .08em; }
.workspace-panel > p.subtle { max-width: 76ch; line-height: 1.6; }
.workspace-panel .drawer-actions { gap: 12px; }
.revision-panel { padding: 0; background: transparent; }
.revision-panel .revision-heading { padding: 15px 20px; gap: 20px; display: flex; align-items: center; list-style: none; }
.revision-heading::-webkit-details-marker { display: none; }
.revision-heading::after { content: '+'; color: var(--text-3); font-size: 20px; line-height: 1; }
.revision-disclosure[open] > .revision-heading::after { content: '−'; }
.revision-heading > div { flex: 1; min-width: 0; }
.revision-heading .section-kicker { display: none; }
.revision-panel h3 { margin: 0; font: var(--t-label); }
.revision-content { padding: 0 20px 20px; border-top: 1px solid var(--rule); }
.revision-content > p { margin-top: 16px; }
.revision-attention { background: var(--warning-bg); border-color: var(--warning); }
.revision-attention h3 { color: var(--warning); }
.revision-attention .revision-content { background: var(--surface); }
.required-phase > h4 { font: 600 16px/24px var(--font); padding-bottom: 12px; }
.required-document { padding-block: 14px; }
.required-document details { padding-inline-start: 0; }
.required-document details > summary { font-size: 12px; }
.required-document-heading strong { font-weight: 500; }
.document-condition { background: var(--surface-2); border: 1px solid var(--rule); color: var(--text-2); font-size: 11px; }
.form-grid { gap: 20px; }
.form-grid > label, .profile-card label { line-height: 1.5; }
.profile-card { max-width: none; border-color: var(--rule); border-radius: var(--r-inner); padding: 28px; }
.profile-card + .profile-card { margin-top: 24px; }
.profile-card h2 { letter-spacing: var(--tracking-title); }
.profile-card .drawer-actions { padding-top: 8px; }
.price-source { border-radius: 0 var(--r-field) var(--r-field) 0; line-height: 1.6; }
.price-table-wrap { border-color: var(--rule); border-radius: var(--r-inner); }
.price-table td { padding-block: 10px; }
.price-table input { background: transparent; border-color: transparent; border-radius: 6px; }
.price-table input:hover { border-color: var(--rule); background: var(--surface-2); }
.price-table input:focus { background: var(--surface); border-color: var(--brand); }
.price-table th { font-size: 11px; }
.price-total { border-top: 1px solid var(--rule); padding-top: 16px; }
.draft-notice:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; margin-top: 16px; border: 1px solid var(--warning); border-radius: var(--r-inner); background: var(--warning-bg); color: var(--ink); font: var(--t-caption); }
.draft-notice .text-button { flex: none; }
#workspace-save-status { font: var(--t-caption); color: var(--text-3); }
.workspace-submission-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-table textarea { width: 100%; min-width: 0; min-height: 60px; resize: vertical; padding: 8px; border: 1px solid var(--line-control); border-radius: var(--r-field); background: var(--surface); color: var(--ink); font: inherit; }
.price-table [aria-invalid=true] { border-color: var(--danger); background: var(--danger-bg); }
.price-field-error { display: block; max-width: 230px; color: var(--danger); font: var(--t-caption); white-space: normal; }
.price-field-error:empty { display: none; }
.price-row-incomplete .row-amount, #price-total[data-incomplete=true] { color: var(--warning); }
@media (max-width:767px) { .draft-notice:not([hidden]) { align-items: start; flex-direction: column; gap: 4px; } }
.notice, .preview-caveat { border-radius: 0 var(--r-field) var(--r-field) 0; line-height: 1.6; }
.notice p { color: inherit; margin-block: 6px 0; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--r-inner); padding: 36px 24px; text-align: center; color: var(--text-3); }
.empty strong { display: block; color: var(--ink); font: var(--t-panel-title); }
.empty p { max-width: 55ch; margin: 12px auto 20px; line-height: 1.6; }
#pane-preview > .workspace-panel { padding: 0; border: 0; background: transparent; }
.response-ready { margin-top: 0; padding-top: 0; border-top: 0; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px 16px; }
.preview-heading > div > strong { display: block; font: var(--t-section-title); margin-top: 6px; }
.preview-heading p { margin-block: 6px 0; }
.preview-state { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 6px 10px; color: var(--text-2); font: var(--t-caption); white-space: nowrap; }
.preview-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--warning); }
.preview-workbench { display: grid; grid-template-columns: 248px minmax(0,1fr); margin-top: 20px; border: 1px solid var(--rule); border-radius: var(--r-inner); overflow: hidden; background: var(--surface); }
.preview-library { min-width: 0; padding: 20px 12px; border-inline-end: 1px solid var(--rule); }
.preview-library > h4 { margin: 0 10px 6px; font: var(--t-label); }
.preview-library > p { margin: 0 10px 16px; font: var(--t-caption); }
.preview-tabs { display: grid; border: 0; gap: 4px; overflow: visible; }
.preview-tabs button { display: flex; align-items: start; text-align: left; gap: 10px; width: 100%; min-width: 0; padding: 12px 10px; border: 1px solid transparent; border-radius: var(--r-field); color: var(--text-2); }
.preview-tabs button > span:last-child { min-width: 0; }
.preview-tabs button strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: var(--t-label); overflow-wrap: anywhere; }
.preview-tabs button small { display: block; margin-top: 4px; color: var(--text-3); font: var(--t-caption); }
.preview-tabs button:hover { background: var(--surface-2); }
.preview-tabs button[aria-pressed=true] { border-color: var(--cobalt-100); background: var(--selected); color: var(--selected-text); }
.preview-file-icon { display: block; flex: 0 0 18px; height: 20px; margin-top: 1px; background: currentColor; mask: url('assets/documents.svg') center/contain no-repeat; }
.preview-stage { min-width: 0; background: var(--neutral-100); position: relative; }
.preview-stage.is-loading iframe { visibility: hidden; }
.preview-stage.has-preview-error iframe { display: none; }
.preview-error:not([hidden]) { min-height: 340px; padding: 40px 28px; color: var(--ink); }
.preview-error p { max-width: 55ch; color: var(--text-2); }
.preview-loading:not([hidden]) { position: absolute; inset: 100px 16px auto; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.preview-spinner { width: 16px; height: 16px; border: 2px solid var(--rule); border-top-color: var(--link); border-radius: 50%; animation: preview-spin .8s linear infinite; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .preview-spinner { animation: none; } }
.preview-document-heading { display: flex; align-items: center; padding: 16px 20px; min-height: 60px; margin: 0; background: var(--surface); border-bottom: 1px solid var(--rule); }
.preview-document-heading strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--t-label); }
.preview-document-heading a { flex: none; font: var(--t-caption); color: var(--link); text-decoration: none; }
#document-preview-frame { height: max(640px,calc(100dvh - 230px)); width: 100%; display: block; border: 0; border-radius: 0; background: var(--neutral-100); }
.preview-envelope-list { margin: 18px 10px 0 !important; padding-top: 16px; border-top: 1px solid var(--rule); }
.preview-envelope-list > summary { color: var(--text-3); font: var(--t-caption); }
.preview-library .packet-envelopes { display: block; margin: 16px 0 0; }
.preview-library .packet-envelopes section { border-top: 0; }
.preview-library .packet-envelopes h4 { font: var(--t-caption); }
.preview-library .packet-envelopes ul { padding-inline-start: 14px; }
.preview-library .packet-envelopes li { font-size: 11px; line-height: 1.5; margin-block: 8px; }
.response-checks { padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--r-inner); background: var(--surface); }
.response-checks > summary { font: var(--t-label); }
.preview-export { padding: 20px 0 0; align-items: center; }
.preview-export strong { font: var(--t-label); overflow-wrap: anywhere; }
.preview-export p { font: var(--t-caption); }
.commission-detail-heading { padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.commission-choice { border-radius: var(--r-inner); padding: 18px; }
.commission-choice.is-on { box-shadow: inset 3px 0 var(--brand); border-color: var(--cobalt-200); }
.commission-facts { border-radius: var(--r-inner); overflow: hidden; }
.commission-lot { margin-top: 24px; }
.vault-table-wrap { border-radius: var(--r-inner); }
.vault-table th { font: var(--t-caption); background: var(--surface-2); }
.vault-dialog, .account-dialog, #submission-choice { border-radius: var(--r-dialog); }
@media (min-width: 768px) and (max-width: 1100px) {
  .main { padding-inline: 24px; }
  .home-lead { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field-block, .dashboard-card.decide { grid-column: span 1; }
  .dashboard-card.today { grid-column: 1 / -1; }
  .today-entries { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
  .preview-workbench { grid-template-columns: 210px minmax(0,1fr); }
  .workspace-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-facts > div { padding-inline: 16px; }
  .workspace-facts > div:nth-child(odd) { border-inline-start: 0; }
  .workspace-facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.progress-pill[data-tone=warning] { color: var(--warning); background: var(--warning-bg); }
.progress-pill[data-tone=info] { color: var(--info); background: var(--info-bg); }
.company-layout { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 28px; align-items: start; }
.company-content { min-width: 0; }
.company-section-nav { position: sticky; top: 24px; display: grid; gap: 4px; }
.company-section-nav .section-kicker { padding: 4px 12px 10px; color: var(--text-3); }
.company-section-nav button { padding: 12px; min-height: 44px; border: 0; border-radius: var(--r-field); background: transparent; text-align: left; font: var(--t-label); color: var(--text-2); }
.company-section-nav button:hover { background: var(--surface-2); }
.company-section-nav button[aria-current=location] { background: var(--selected); color: var(--selected-text); font-weight: 600; }
body:not([data-role=owner]) [data-profile-section=account-team] { display: none; }
.company-content > * { scroll-margin-top: 24px; }
.company-content .profile-import { padding-block: 18px; margin-bottom: 20px; }
.profile-import > summary h2 { display: inline; margin: 0; font: var(--t-label); }
.profile-import[open] > summary { margin-bottom: 16px; }
.company-content .profile-card + .profile-card { margin-top: 20px; }
.company-content .card-heading h2 { font: var(--t-section-title); }
.company-content .form-footer { align-items: center; gap: 16px; }
.account-invite .button { border-radius: var(--r-pill); }
.account-team-table th { border-bottom-color: var(--line-strong); }
.dashboard-loading { padding-block: 20px; }
.dashboard-loading > p { color: var(--text-3); font: var(--t-label); }
.skeleton { min-height: 240px; background: var(--neutral-100); border-radius: var(--r-inner); }
.skeleton-title { height: 56px; min-height: 0; width: min(560px,85%); margin-block: 20px 36px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
