/* Manrope, sage tokens and Tabler masks come from the existing styles.css. */
.buyer-page textarea { font: inherit; color: inherit; resize: vertical; }
.buyer-page textarea:focus-visible, .buyer-page summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.buyer-page .icon-button { display: inline-flex; align-items: center; justify-content: center; }
.buyer-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.buyer-heading > div { min-width: 0; }
.buyer-heading .button { flex-shrink: 0; }
.buyer-local-label { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 6px; }
.buyer-local-label .icon { width: 15px; height: 15px; }
.buyer-local-note { display: flex; align-items: flex-start; gap: 10px; color: #65746b; font-size: 11px; max-width: 900px; margin: -10px 0 26px; }
.buyer-local-note .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--green); }
.buyer-local-note strong { font-weight: 650; }
.buyer-summary { display: grid; grid-template-columns: 0.8fr 1fr 1.4fr; gap: 22px; border-block: 1px solid var(--line); padding: 24px 0; margin-bottom: 34px; }
.buyer-summary > div { min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.buyer-summary > div:first-child { border: 0; padding-left: 0; }
.buyer-summary span { display: block; color: #637269; font-size: 11px; }
.buyer-summary .buyer-stat-label { color: #6d7972; font-size: 10px; letter-spacing: 0.5px; font-weight: 650; }
.buyer-summary strong { display: block; font-size: 31px; font-weight: 750; letter-spacing: -1.1px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.buyer-summary > div:last-child strong { color: var(--green); }
.buyer-section-heading { align-items: center; gap: 20px; }
.buyer-section-heading > div { min-width: 0; }
.buyer-data-tools { position: relative; flex-shrink: 0; }
.buyer-data-tools summary { display: flex; align-items: center; gap: 8px; border: 1px solid #dfe6e0; border-radius: 7px; background: #fff; padding: 10px 13px; font-size: 11px; font-weight: 650; list-style: none; cursor: pointer; }
.buyer-data-tools summary::-webkit-details-marker { display: none; }
.buyer-data-tools summary .icon { width: 16px; height: 16px; }
.buyer-data-tools > div { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; padding: 18px; display: grid; gap: 9px; z-index: 4; border: 1px solid var(--line); background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.buyer-data-tools p { font-size: 10px; color: #67746c; }
.buyer-data-tools .button { justify-content: flex-start; }
.buyer-toolbar { display: grid; grid-template-columns: minmax(210px, 1.7fr) repeat(4, minmax(125px, 1fr)); gap: 9px; margin-bottom: 13px; }
.buyer-toolbar .search-input { min-width: 0; }
.buyer-select select { width: 100%; height: 43px; padding: 0 25px 0 12px; border: 1px solid #dfe6e0; border-radius: 7px; background-color: #fff; color: #4f6056; font-size: 10px; }
.buyer-filter-meta { display: flex; justify-content: space-between; gap: 14px; align-items: center; color: #67766d; font-size: 10px; margin-bottom: 17px; }
.buyer-filter-meta .text-button { font-size: 10px; }
.buyer-list { display: grid; gap: 12px; }
.buyer-lot { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 21px 23px; display: grid; grid-template-columns: minmax(0, 1fr) 165px; column-gap: 28px; }
.buyer-lot-main { min-width: 0; }
.buyer-lot-top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.buyer-stage-tag, .buyer-due-tag { border-radius: 4px; padding: 3px 8px; font-size: 9px; font-weight: 700; background: #f1f4f2; color: #617269; }
.buyer-stage-tag[data-stage="ready"], .buyer-stage-tag[data-stage="won"] { background: #edf5ef; color: #227453; }
.buyer-stage-tag[data-stage="to-check"], .buyer-due-tag[data-due="today"], .buyer-due-tag[data-due="overdue"] { background: #fcf2e5; color: #805b22; }
.buyer-due-tag[data-due="soon"] { background: #edf5ef; color: #227453; }
.buyer-lot h3 { font-size: 16px; letter-spacing: -0.35px; line-height: 1.5; overflow-wrap: anywhere; }
.buyer-title-button { border: 0; background: transparent; text-align: left; padding: 0; font: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit; }
.buyer-title-button:hover { color: var(--green); }
.buyer-lot-specs { color: #65766b; font-size: 11px; margin-top: 7px; overflow-wrap: anywhere; }
.buyer-lot-deadline { display: flex; align-items: flex-start; gap: 6px; font-size: 10px; color: #67766c; margin-top: 10px; }
.buyer-lot-deadline .icon { width: 14px; height: 14px; margin-top: 1px; }
.buyer-lot-note { color: #77837b; font-size: 10px; margin-top: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.buyer-lot-budget { align-self: start; padding-left: 24px; border-left: 1px solid var(--line); }
.buyer-lot-budget > span { display: block; font-size: 9px; color: #6c7b71; }
.buyer-lot-budget strong { display: block; color: var(--green); font-size: 22px; letter-spacing: -0.75px; font-variant-numeric: tabular-nums; margin: 3px 0; }
.buyer-lot-budget .buyer-budget-unknown { color: #79847e; font-size: 12px; font-weight: 650; letter-spacing: 0; margin-block: 8px; }
.buyer-lot-budget small { display: block; font-size: 9px; color: #728178; line-height: 1.65; }
.buyer-lot-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #edf0ed; }
.buyer-lot-actions a, .buyer-lot-actions button { font-size: 10px; font-weight: 650; color: #526f5c; display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; padding: 3px 0; }
.buyer-lot-actions a:hover, .buyer-lot-actions button:hover { color: var(--green); text-decoration: underline; }
.buyer-lot-actions .icon { width: 14px; height: 14px; }
.buyer-lot-actions .buyer-delete { margin-left: auto; color: #7c7266; }
.buyer-empty { padding: 35px 22px; display: grid; justify-items: center; text-align: center; background: white; border: 1px dashed #ccd9cf; border-radius: 10px; }
.buyer-empty > .icon { width: 28px; height: 28px; color: #789684; margin-bottom: 13px; }
.buyer-empty h3 { font-size: 18px; margin-bottom: 7px; }
.buyer-empty p { color: #68796e; font-size: 11px; max-width: 410px; }
.buyer-empty .button { margin-top: 18px; }
.buyer-empty-link { display: inline-flex; align-items: center; gap: 5px; color: var(--green); margin-top: 12px; font-size: 10px; }
.buyer-empty-link .icon { width: 13px; height: 13px; }
.buyer-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 38px; font-size: 10px; color: #6c7b71; }
.buyer-footer a { display: inline-flex; align-items: center; gap: 5px; color: #4f715b; }
.buyer-footer .icon { width: 13px; height: 13px; }
.buyer-notice { border: 1px solid #d8e4dc; padding: 12px 15px; border-radius: 7px; background: #f1f6f2; color: #42644e; font-size: 11px; margin-bottom: 17px; overflow-wrap: anywhere; }
.buyer-error { border-color: #ead8c2; background: #fff7ed; color: #795a2e; }
.buyer-dialog, .buyer-confirm-dialog { padding: 0; border: 1px solid var(--line); background: white; color: var(--ink); box-shadow: var(--shadow); }
.buyer-dialog { width: min(690px, calc(100% - 32px)); max-width: 690px; max-height: calc(100dvh - 40px); border-radius: 12px; }
.buyer-dialog::backdrop, .buyer-confirm-dialog::backdrop { background: #1f332b65; }
.buyer-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 27px 18px; border-bottom: 1px solid var(--line); background: white; }
.buyer-dialog-head h2 { font-size: 23px; line-height: 1.4; }
.buyer-dialog-head .eyebrow { font-size: 9px; margin-bottom: 4px; display: block; }
.buyer-dialog-head .icon-button { flex-shrink: 0; }
.buyer-form-body { padding: 22px 27px; }
.buyer-form-intro { color: #65776b; font-size: 11px; margin-bottom: 24px; }
.buyer-page fieldset { border: 0; padding: 0; margin: 0 0 27px; min-width: 0; }
.buyer-page legend { font-size: 14px; font-weight: 750; margin: 0 0 13px; padding: 0; letter-spacing: -0.3px; }
.buyer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.buyer-form-grid label, .buyer-page fieldset > label { display: grid; gap: 6px; font-size: 11px; font-weight: 650; color: #506357; min-width: 0; }
.buyer-form-grid label > span { display: inline; }
.buyer-full { grid-column: 1 / -1; }
.buyer-form-grid input, .buyer-form-grid select, .buyer-page textarea, .buyer-research input { width: 100%; min-width: 0; height: 42px; padding: 9px 11px; border: 1px solid #dbe4dd; border-radius: 6px; background: white; color: #2c4233; font-size: 12px; }
.buyer-page textarea { height: auto; min-height: 95px; }
.buyer-form-grid input[aria-invalid="true"] { border-color: #a1783e; }
.buyer-form-grid small { font-size: 10px; color: #6a7c70; font-weight: 400; }
.buyer-form-grid small strong { font-weight: 650; }
.buyer-fieldset-note { font-size: 10px; color: #6a7c70; margin-bottom: 12px; }
.buyer-page textarea + .buyer-fieldset-note { margin-top: 8px; }
.buyer-budget-panel { background: #edf5ef; border: 1px solid #dceade; border-radius: 8px; padding: 18px 20px; margin: 18px 0 10px; }
.buyer-budget-panel > span { font-size: 10px; color: #597761; display: block; }
.buyer-budget-panel strong { display: block; font-size: 26px; letter-spacing: -0.7px; color: var(--green); line-height: 1.7; }
.buyer-budget-panel p { font-size: 10px; color: #577b60; }
.buyer-budget-panel .buyer-equation { border-top: 1px solid #d4e5d7; padding-top: 10px; margin-top: 10px; color: #5c7261; font-size: 10px; }
.buyer-research { border-block: 1px solid var(--line); padding: 20px 0; margin-bottom: 25px; }
.buyer-research-heading { display: flex; gap: 7px; align-items: center; margin-bottom: 9px; }
.buyer-research-heading .icon { width: 17px; height: 17px; color: var(--green); }
.buyer-research h3 { font-size: 14px; }
.buyer-research > p { font-size: 10px; color: #69786d; }
.buyer-research-controls { display: flex; gap: 9px; margin-top: 13px; }
.buyer-research-controls label { flex: 1; min-width: 0; }
.buyer-research-controls .button { flex-shrink: 0; }
.buyer-research .buyer-research-privacy { margin-top: 8px; font-size: 9px; }
#buyer-research-result { margin-top: 12px; font-size: 11px; color: #65786b; }
.buyer-archive-summary { background: #f5f7f5; padding: 10px 12px; border-radius: 6px; margin-bottom: 8px; font-size: 10px; }
.buyer-archive-summary strong { color: var(--green); }
.buyer-archive-list { list-style: none; margin: 0; padding: 0; }
.buyer-archive-list li { border-bottom: 1px solid var(--line); padding: 9px 0; }
.buyer-archive-list a { color: #2d6341; font-size: 11px; font-weight: 650; display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; }
.buyer-archive-list a:hover { text-decoration: underline; }
.buyer-archive-list .icon { width: 14px; height: 14px; margin-top: 2px; }
.buyer-archive-list p { font-size: 10px; margin-top: 3px; color: #758078; }
.buyer-dialog-actions { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 16px 27px; background: white; border-top: 1px solid var(--line); }
.buyer-confirm-dialog { width: min(480px, calc(100% - 32px)); border-radius: 10px; }
.buyer-confirm-dialog h2 { font-size: 19px; }
.buyer-confirm-body { padding: 20px 27px; font-size: 12px; color: #5b7062; }
.buyer-restore-stats { display: flex; gap: 20px; padding: 15px 0; }
.buyer-restore-stats > div { flex: 1; }
.buyer-restore-stats strong { display: block; font-size: 25px; color: var(--green); }
.buyer-restore-stats span { font-size: 10px; }
.buyer-restore-list { margin: 0 0 13px; padding-left: 19px; font-size: 11px; overflow-wrap: anywhere; }
.buyer-confirm-body > div > p { font-size: 10px; margin-bottom: 10px; }
.buyer-status { position: fixed; bottom: 24px; left: calc(50% + 100px); transform: translateX(-50%); background: #254b34; color: white; border-radius: 8px; box-shadow: var(--shadow); padding: 12px 19px; font-size: 11px; z-index: 30; max-width: min(480px, calc(100% - 28px)); width: max-content; overflow-wrap: anywhere; }
.buyer-noscript { position: fixed; bottom: 0; background: #fff7ed; border: 1px solid #ead8c2; width: 100%; padding: 15px; z-index: 40; }
.buyer-noscript a { text-decoration: underline; }
@media (max-width: 1280px) { .buyer-toolbar { grid-template-columns: minmax(210px, 1.8fr) repeat(2, minmax(145px, 1fr)); } .buyer-toolbar .buyer-select:nth-last-child(-n+2) { grid-row: 2; } }
@media (max-width: 800px) { .buyer-heading { align-items: flex-start; } .buyer-summary { gap: 16px; } .buyer-summary > div { padding-left: 16px; } .buyer-toolbar { grid-template-columns: 1fr 1fr; } .buyer-toolbar .search-input { grid-column: 1 / -1; } .buyer-toolbar .buyer-select:nth-last-child(-n+2) { grid-row: auto; } .buyer-lot { grid-template-columns: minmax(0, 1fr) 150px; padding: 18px; gap: 20px; } .buyer-lot-budget { padding-left: 18px; } .buyer-summary strong { font-size: 27px; } .buyer-status { left: 50%; } }
@media (max-width: 540px) {
  .buyer-page .workspace-label, .buyer-page .nav-divider, .buyer-page .sidebar-bottom, .buyer-page .sidebar > .nav-link { display: none; }
  .buyer-page .sidebar { gap: 0; height: 64px; padding: 5px 8px; }
  .buyer-page .navigation { display: flex; gap: 3px; width: 100%; }
  .buyer-page .navigation .nav-link { flex: 1; margin: 0; min-height: 48px; padding: 5px 2px; }
  .buyer-page .navigation .nav-link > span { font-size: 9px; }
  .buyer-page .navigation .nav-link .icon { display: inline-block; width: 18px; height: 18px; }
  .buyer-page .nav-count { display: none; }
  .buyer-page .topbar { padding-block: 13px; }
  .buyer-local-label { font-size: 9px; }
  .buyer-heading { flex-direction: column; gap: 17px; margin-bottom: 23px; }
  .buyer-heading .button { width: 100%; justify-content: center; }
  .buyer-local-note { margin-top: 0; margin-bottom: 22px; }
  .buyer-summary { grid-template-columns: 1fr 1fr; gap: 19px; padding: 20px 0; margin-bottom: 27px; }
  .buyer-summary > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; padding-top: 15px; border-left: 0; border-top: 1px solid var(--line); }
  .buyer-summary strong { line-height: 1.6; }
  .buyer-section-heading { display: flex; flex-direction: column; align-items: stretch; gap: 15px; }
  .buyer-data-tools summary { width: fit-content; }
  .buyer-data-tools > div { position: relative; top: auto; width: 100%; margin-top: 8px; box-shadow: none; }
  .buyer-select select { font-size: 11px; padding-left: 10px; }
  .buyer-lot { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
  .buyer-lot-budget { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .buyer-lot-budget strong { font-size: 25px; }
  .buyer-lot-actions { flex-wrap: wrap; gap: 9px 15px; margin-top: 0; padding-top: 12px; }
  .buyer-lot-actions a, .buyer-lot-actions button { min-height: 30px; }
  .buyer-dialog { width: 100%; max-width: 100%; max-height: 100dvh; margin: 0; inset: 0; border: 0; border-radius: 0; }
  .buyer-dialog-head { padding: 18px 20px; }
  .buyer-form-body { padding: 20px; }
  .buyer-form-grid { gap: 14px 12px; }
  .buyer-form-grid input, .buyer-form-grid select, .buyer-page textarea, .buyer-research input { font-size: 16px; }
  .buyer-dialog-actions { padding: 14px 20px; }
  .buyer-dialog-actions .button { flex: 1; justify-content: center; }
  .buyer-confirm-dialog .buyer-dialog-actions { flex-wrap: wrap; }
  .buyer-budget-panel { padding: 16px; }
  .buyer-budget-panel strong { font-size: 23px; }
  .buyer-status { bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) { .buyer-page *, .buyer-page *::before, .buyer-page *::after { scroll-behavior: auto; transition: none; animation: none; } }

.buyer-heading > div { margin-right: auto; }
.buyer-heading { flex-wrap: wrap; gap: 12px; }
@media(max-width:540px){.buyer-intake-link { width:100%; justify-content:center; }}
