/* Interface typography. The customer-facing proposal keeps its print layout. */
@font-face {
  font-family: Manrope;
  src: url('./fonts/Manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: Manrope, 'Segoe UI', sans-serif;
  font-size: 16px;
  --muted: #4f525a;
}
body { line-height: 1.55; font-weight: 500; }
button, input, select, textarea { font-family: inherit; }
p, li, dt, dd, small, label, .help, .hint { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(32px, 3.15vw, 46px); line-height: 1.16; letter-spacing: -1.7px; }
h2 { font-size: 21px; line-height: 1.35; letter-spacing: -.65px; }
h3 { font-size: 17px; }
strong, b { font-weight: 600; }
.eyebrow, .pagehead .eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 1.3px; color: #62646d; }
.sidebar { width: 248px; padding: 30px 18px 20px; }
.shell { margin-left: 248px; }
.identity { font-size: 27px; font-weight: 500; padding-bottom: 34px; }
.identity small { font-size: 10px; letter-spacing: 0; }
.brandmark { width: 39px; height: 40px; font-weight: 500; }
.nav { gap: 7px; }
.navbutton { min-height: 47px; font-size: 14px; line-height: 1.4; padding: 12px; font-weight: 500; }
.navbutton.active { font-weight: 600; }
.navbutton .ui-icon { width: 19px; height: 19px; }
.side-label { font-size: 12px; margin-top: 32px; }
.brand-button { font-size: 14px; min-height: 42px; font-weight: 500; }
.brand-button.chosen { font-weight: 600; }
.account-profile strong { font-size: 14px; font-weight: 500; max-width: 150px; }
.account-profile>div>span, .sidebar-bottom #role-label { font-size: 11px; }
.account-link, .link-button { font-size: 12px; margin-top: 10px; }
.secure, .version { font-size: 10px; }
.topbar { padding: 20px 36px; min-height: 85px; }
.breadcrumb, .breadcrumb strong, .top-search { font-size: 13px; font-weight: 500; }
.top-search { width: 248px; min-height: 42px; }
.header-create { width: 42px; min-height: 42px; }
.connection, .username { font-size: 12px; }
.main { padding: 24px 36px 56px; max-width: 1740px; }
.pagehead { align-items: center; gap: 24px; margin-bottom: 30px; }
.pagehead p { font-size: 15px; line-height: 1.65; max-width: 65ch; margin-top: 10px; }
.pagehead .eyebrow { margin-bottom: 10px; }
.btn { font-size: 14px; font-weight: 500; min-height: 44px; padding: 10px 16px; border-radius: 10px; line-height: 1.4; }
.btn.smallbtn { font-size: 12px; min-height: 36px; padding: 8px 11px; }
.btn:active:not(:disabled), .quick-action:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); box-shadow: 0 4px 12px #7da23118; }
.card, .dashboard-card, .catalog-offer { border-radius: 20px; }
.card-pad, .dashboard-card, .catalog-offer { padding: 28px; }
.card-heading { gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.card-heading h2 { font-size: 21px; font-weight: 500; }
.step { width: 30px; height: 30px; font-size: 13px; font-weight: 500; }
.fields { gap: 20px 18px; }
.field>span, .auth-card label { font-size: 13px; font-weight: 500; color: #585b64; margin-bottom: 9px; }
input, select, textarea { font-size: 15px; min-height: 47px; padding: 12px 14px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #62656d; }
input:disabled, select:disabled, textarea:disabled { color: #62646d; }
input[type=file] { font-size: 13px; }
.help, .tiny, .filter-status { font-size: 12px; line-height: 1.65; }
.checkline { font-size: 14px; line-height: 1.6; }
.tag, .internal-analysis .tag { font-size: 11px; font-weight: 500; padding: 4px 8px; }
.hint, .notice { font-size: 13px; line-height: 1.7; }
.hint strong { font-weight: 550; }
.metrics { gap: 18px; margin-bottom: 26px; }
.metric { min-height: 100px; padding: 20px 22px; }
.metric b { font-size: 28px; font-weight: 600; letter-spacing: -1px; }
.metric small { font-size: 12px; }
.product-line { padding-top: 26px; margin-top: 26px; }
.line-title, .selected-product strong { font-size: 17px; font-weight: 500; }
.line-number { width: 28px; height: 28px; font-size: 12px; }
.line-description { font-size: 13px; }
.quantity-fields { gap: 14px; }
.line-result { font-size: 13px; padding: 14px 16px; flex-wrap: wrap; }
.line-result strong { font-size: 22px; font-weight: 500; }
.draft-strip { font-size: 13px; margin-bottom: 24px; }
.quote-conditions>summary { font-size: 19px; font-weight: 500; }
.quote-conditions>summary small { font-size: 13px; }
.summary-card { border-color: #dce8c6; overflow: hidden; }
.summary-head { padding: 25px; background: #effbd9; border-top: 4px solid var(--accent); }
.summary-head h2 { font-size: 22px; font-weight: 500; }
.summary-head p { font-size: 12px; color: #62675e; margin-top: 6px; }
.summary-body { padding: 25px; }
.summary-row { font-size: 14px; gap: 14px; margin-bottom: 15px; flex-wrap: wrap; }
.summary-row strong { font-weight: 500; }
.summary-total { flex-wrap: wrap; margin-top: 22px; padding-top: 20px; }
.summary-total span { font-size: 15px; font-weight: 500; }
.summary-total strong { font-size: clamp(32px, 2.6vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -1.5px; overflow-wrap: anywhere; }
.summary-state, .summary-note, .summary-mini small { font-size: 12px; }
.summary-mini { font-size: 13px; }
.summary-actions { gap: 10px; margin-top: 25px; }
.internal-disclosure>summary { font-size: 13px; padding: 18px 4px; }
.internal-metrics { font-size: 13px; gap: 12px; }
.internal-metrics dd { font-weight: 500; }
.internal-line h4 { font-size: 15px; font-weight: 500; }
.internal-sources, .internal-alternative { font-size: 12px; }
.disclosure summary { font-size: 13px; }
.empty-state h2 { font-size: 22px; font-weight: 500; }
.empty-state p { font-size: 14px; }
th { font-size: 12px; font-weight: 500; color: #4f525a; padding: 15px 18px; }
td { font-size: 14px; padding: 18px; }
td strong { font-weight: 500; }
td small { font-size: 12px; }
.table-actions { flex-wrap: wrap; }
.tablewrap { position: relative; }
.catalog-offer h2 { font-size: 22px; font-weight: 500; }
.catalog-offer p { font-size: 14px; }
.catalog-offer .offer-price { font-size: 30px; font-weight: 600; }
.catalog-offer .offer-price small, .tier { font-size: 12px; }
.list-entry h3 { font-size: 18px; }
.list-entry p, .version-row { font-size: 13px; }
.version-row small, .diff-summary { font-size: 12px; }
.review-table td, .review-table th { font-size: 12px; }
.dashboard-kpis { gap: 18px; margin-bottom: 22px; }
.dashboard-kpi { padding: 24px; border-radius: 20px; position: relative; overflow: hidden; }
.dashboard-kpi:first-child { background: var(--light); border-color: #e0edc8; }
.dashboard-kpi:first-child:after { content: ''; position: absolute; width: 95px; height: 95px; border: 18px solid #b7f52b29; border-radius: 50%; right: -32px; bottom: -38px; pointer-events: none; }
.kpi-top { margin-bottom: 20px; align-items: flex-start; }
.kpi-label { font-size: 14px; font-weight: 500; color: #585b64; }
.kpi-icon { width: 31px; height: 31px; display: grid; place-items: center; background: #f3f4f0; border-radius: 9px; flex-shrink: 0; }
.kpi-value { font-size: clamp(36px, 3.2vw, 48px); font-weight: 600; letter-spacing: -1.8px; line-height: 1.15; margin-bottom: 9px; }
.kpi-caption { font-size: 12px; display: block; }
.dashboard-scope { font-size: 12px; margin-bottom: 22px; }
.dashboard-main, .dashboard-bottom { gap: 22px; grid-template-columns: minmax(0,1.45fr) minmax(320px,1fr); margin-bottom: 22px; }
.dashboard-card-head { margin-bottom: 25px; flex-wrap: wrap; }
.dashboard-card-head h2 { font-size: 21px; font-weight: 500; }
.dashboard-card-head p { font-size: 13px; margin-top: 6px; }
.dashboard-card-head .btn { font-size: 12px; min-height: 34px; }
.dashboard-range select { font-size: 12px; width: 155px; min-height: 38px; padding: 8px 10px; }
.chart-caption { font-size: 12px; }
.status-donut { width: 200px; height: 200px; margin: 5px auto 22px; }
.donut-center { inset: 46px; }
.donut-center strong { font-size: 38px; font-weight: 600; }
.donut-center span { font-size: 11px; }
.status-legend { gap: 14px 20px; }
.status-legend-item { font-size: 12px; }
.status-legend-item strong { font-weight: 500; }
.chart-empty h3, .dashboard-empty h3 { font-size: 17px; font-weight: 500; }
.chart-empty p, .dashboard-empty p { font-size: 13px; }
.dashboard-status-badge { font-size: 11px; padding: 4px 7px; }
.dashboard-recents th { font-size: 11px; padding: 13px 10px; }
.dashboard-recents td { font-size: 13px; padding: 16px 10px; }
.dashboard-recents td small { font-size: 11px; }
.quick-action { min-height: 78px; padding: 16px; gap: 14px; }
.quick-action-icon { width: 36px; height: 36px; }
.quick-action-copy strong { font-size: 15px; font-weight: 500; }
.quick-action-copy small { font-size: 12px; line-height: 1.5; margin-top: 4px; }
.product-choice { font-size: 15px; }
.product-choice strong { font-weight: 500; }
.product-choice small { font-size: 13px; }
#share-body { font-size: 15px; }
.auth-intro h1 { font-weight: 500; font-size: clamp(38px,4.5vw,64px); }
.auth-intro p { font-size: 17px; font-weight: 500; }
.auth-card { max-width: 420px; }
.auth-card h2 { font-size: 34px; font-weight: 500; }
.auth-card>p { font-size: 15px; }
.auth-help, .auth-card .helptext, .errorlist { font-size: 12px; }
.auth-brands { font-size: 16px; }
.quick-dock small { font-size: 12px; }
.quick-dock strong { font-size: 26px; font-weight: 500; }
[data-view='builder'] .workspace { grid-template-columns: minmax(0,1fr) minmax(300px,350px); gap: 24px; }
[data-view='builder'] .card-pad { padding: 28px; }
[data-view='builder'] .summary-total strong { font-size: clamp(32px,2.6vw,40px); }
@media (max-width: 1250px) {
  .sidebar { width: 220px; padding-inline: 14px; }
  .shell { margin-left: 220px; }
  .main { padding: 22px 26px 48px; }
  .topbar { padding-inline: 26px; }
  .navbutton { font-size: 13px; }
  .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-main, .dashboard-bottom { grid-template-columns: 1fr; }
  .dashboard-main .status-legend { max-width: 440px; margin-inline: auto; }
  .dashboard-recents th:nth-child(2), .dashboard-recents td:nth-child(2) { display: table-cell; }
  [data-view='builder'] .workspace { grid-template-columns: 1fr; }
  [data-view='builder'] .right-stack { position: static; display: block; }
  [data-view='builder'] .fields { grid-template-columns: 1fr 1fr; }
  [data-view='builder'] .quantity-fields { grid-template-columns: repeat(3,1fr); }
  [data-view='builder'] .quantity-fields>:first-child { grid-column: auto; }
}
@media (max-width: 820px) {
  .top-search { width: auto; }
  .quick-dock { left: 220px; }
  .metrics { grid-template-columns: 1fr; gap: 10px; }
  .metric { min-height: 0; padding: 16px 20px; }
  .metric-symbol { display: grid; }
  .metric b { font-size: 25px; }
  .auth-brand, .auth-content { padding: 28px; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: auto; padding: 20px 18px 12px; }
  .shell { margin-left: 0; }
  .identity { font-size: 25px; padding: 0 0 20px; }
  .identity small { font-size: 9px; }
  .brand-switch { position: static; margin-top: 15px; gap: 10px; }
  .brand-button { font-size: 13px; min-height: 36px; padding: 8px 12px; }
  .nav { gap: 5px; }
  .navbutton { font-size: 13px; min-height: 42px; padding: 10px 12px; }
  .topbar { min-height: 66px; padding: 12px 18px; }
  .breadcrumb { font-size: 0; }
  .breadcrumb strong, .top-search, .mobile-account { font-size: 12px; }
  .top-search { min-height: 38px; padding: 8px 10px; }
  .main { padding: 24px 18px 40px; }
  h1 { font-size: 34px; letter-spacing: -1.2px; }
  .pagehead { gap: 18px; margin-bottom: 24px; }
  .pagehead p { font-size: 14px; }
  .pagehead>.actions { width: 100%; flex-wrap: wrap; }
  .pagehead>.actions .btn { font-size: 13px; min-height: 43px; padding: 10px 14px; }
  .card-pad, .dashboard-card, .catalog-offer, [data-view='builder'] .card-pad { padding: 22px; }
  .dashboard-kpis { gap: 12px; }
  .dashboard-kpi { padding: 19px 16px; }
  .kpi-top { gap: 5px; margin-bottom: 16px; }
  .kpi-label { font-size: 13px; }
  .kpi-icon { width: 24px; height: 24px; }
  .kpi-value { font-size: 38px; }
  .kpi-caption { font-size: 11px; min-height: 0; }
  .dashboard-card-head h2, .card-heading h2 { font-size: 20px; }
  .dashboard-card-head { gap: 14px; }
  .dashboard-activity .dashboard-card-head { flex-wrap: wrap; }
  .dashboard-recents table { min-width: 540px; }
  .dashboard-recents td:first-child strong { max-width: 190px; }
  .status-legend { gap: 12px; }
  input, select, textarea { font-size: 16px; }
  [data-view='builder'] .fields, .fields.three { grid-template-columns: 1fr; }
  [data-view='builder'] .quantity-fields { grid-template-columns: 1fr 1fr; }
  [data-view='builder'] .quantity-fields>:first-child { grid-column: 1/-1; }
  .quick-dock { left: 0; }
  .quick-dock .btn { font-size: 13px; }
  .line-title, .selected-product strong { font-size: 16px; }
  .selected-product { align-items: flex-start; flex-wrap: wrap; }
  .summary-head, .summary-body { padding: 23px; }
  .auth-intro h1 { font-size: 38px; }
  .auth-card h2 { font-size: 30px; }
  .dialog-actions .btn { font-size: 13px; }
  .toolbar .field { flex-basis: 100%; }
}

/* Secondary copy must stay clear on the white and pale-green surfaces. */
.identity small, .side-label, .account-profile>div>span, .sidebar-bottom #role-label,
.account-link, .link-button, .breadcrumb, .connection, .top-search,
.pagehead p, .pagehead .eyebrow, .metric small, .empty-state p,
.field>span, .help, .line-description, .summary-row, .summary-note,
.summary-state, .summary-mini small, .draft-strip, .quote-conditions>summary small,
.internal-disclosure>summary, .internal-metrics dt, .internal-sources span,
.dashboard-scope, .dashboard-card-head p, .kpi-caption, .chart-caption,
.donut-center span, .status-legend-item, .quick-action-copy small,
.chart-empty p, .dashboard-empty p, .product-choice small,
.auth-intro p, .auth-card>p, .auth-help, .auth-card .helptext,
td small, .catalog-offer p, .filter-status, .tag {
  color: #50535b;
}
.eyebrow, .dashboard-range select, .version-row small, .version,
.auth-brands, .secure { color: #5b5e65; }

#conversation-dialog { width: min(860px, calc(100% - 28px)); }
.conversation-body { padding: 26px; }
.conversation-body>p, .conversation-review { font-size: 14px; line-height: 1.7; }
.conversation-body textarea { min-height: 220px; }
.conversation-review { margin-top: 24px; }
.conversation-review blockquote { margin: 8px 0 14px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg); color: #50535b; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-confirmation { padding: 16px; background: var(--light); border-radius: 10px; }
.pagehead>.actions { flex-wrap: wrap; }
@media(max-width:700px) { .conversation-body { padding: 20px; } }
