@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #171a1f;
  --muted: #66737a;
  --line: #d9e4e8;
  --paper: #ffffff;
  --canvas: #f4f8f9;
  --warm: #e9f3f6;
  --accent: #171a1f;
  --accent-dark: #0e1115;
  --brand: #087cff;
  --brand-dark: #0568d6;
  --brand-soft: #e7f2ff;
  --soft-neutral: #edf5ff;
  --danger: #a13b32;
  --shadow: 0 18px 55px rgba(23, 26, 31, 0.09);
  font-family: "Onest", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 274px 1fr; }
.app-shell[hidden] { display: none; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 22px 22px; display: flex; flex-direction: column; background: #171a1f; color: #fff; }
.wordmark { padding: 2px 10px 30px; }
.wordmark-logo { width: 178px; height: 102px; display: block; object-fit: contain; object-position: left center; }
.company-switcher { margin: -18px 10px 22px; display: grid; gap: 6px; color: rgba(255,255,255,.62); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.company-switcher select { width: 100%; height: 39px; padding: 0 31px 0 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.company-switcher select:focus { border-color: rgba(255,255,255,.72); outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { width: 100%; min-height: 52px; padding: 0 10px; border: 0; border-radius: 12px; display: flex; align-items: center; gap: 11px; background: transparent; color: #c8d2d7; text-align: left; font-size: 14px; }
.nav-icon { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.72); border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.96); color: #171a1f; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 17px; line-height: 1; box-shadow: 0 5px 14px rgba(0,0,0,.16); }
.nav-item em { margin-left: auto; min-width: 23px; padding: 2px 7px; border-radius: 999px; background: rgba(8,124,255,.16); color: #a9d2ff; text-align: center; font-size: 11px; font-style: normal; }
.nav-item:hover, .nav-item.active { background: rgba(8,124,255,.17); color: #fff; }
.nav-item[hidden] { display: none; }
.nav-item:hover .nav-icon, .nav-item.active .nav-icon { border-color: #b7d9ff; box-shadow: 0 0 0 3px rgba(8,124,255,.18), 0 6px 16px rgba(0,0,0,.18); }
.sidebar-secondary { margin-top: auto; display: grid; gap: 9px; }
.sidebar-foot { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.nav-item .updates-badge { min-width: 0; padding: 4px 7px; background: #087cff; color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nav-item .updates-badge[hidden] { display: none !important; }

body[data-company-theme="support"] {
  --accent: #6d29fd;
  --accent-dark: #5117d5;
  --brand: #6d29fd;
  --brand-dark: #5720d0;
  --brand-soft: #f0eaff;
  --soft-neutral: #f3edff;
  --warm: #f1ecfb;
}
body[data-company-theme="support"] .sidebar { background: linear-gradient(180deg,#5b20d4 0%,#421393 100%); }
body[data-company-theme="support"] .nav-item em { background: rgba(255,255,255,.15); color: #fff; }
body[data-company-theme="support"] .nav-item:hover,
body[data-company-theme="support"] .nav-item.active { background: rgba(255,255,255,.16); }
body[data-company-theme="support"] .nav-item:hover .nav-icon,
body[data-company-theme="support"] .nav-item.active .nav-icon { border-color: #d9ccff; box-shadow: 0 0 0 3px rgba(255,255,255,.16), 0 6px 16px rgba(35,4,79,.24); }
body[data-company-theme="support"] .topbar-actions .primary,
body[data-company-theme="support"] .manager-add-button,
body[data-company-theme="support"] .builder-actions .primary { border-color: #6d29fd; background: #6d29fd; box-shadow: 0 8px 20px rgba(109,41,253,.24); }
body[data-company-theme="support"] .topbar-actions .primary:hover,
body[data-company-theme="support"] .manager-add-button:hover,
body[data-company-theme="support"] .builder-actions .primary:hover { border-color: #5117d5; background: #5117d5; }
body[data-company-theme="support"] .overview-stat.is-active,
body[data-company-theme="support"] .summary-card,
body[data-company-theme="support"] .quote-section-tab.active,
body[data-company-theme="support"] .company-preview,
body[data-company-theme="support"] .toast { border-color: #4d159f; background: #4d159f; }
body[data-company-theme="support"] .catalog-search-icon,
body[data-company-theme="support"] .product-search-count strong,
body[data-company-theme="support"] .product-search-group-title b,
body[data-company-theme="support"] .product-search-group-title span,
body[data-company-theme="support"] .product-add-action,
body[data-company-theme="support"] .builder-item-group > header span,
body[data-company-theme="support"] .quantity-control button:hover,
body[data-company-theme="support"] .price-edit-action,
body[data-company-theme="support"] .product-edit-icon,
body[data-company-theme="support"] .manager-contact-grid a:hover strong,
body[data-company-theme="support"] .product-image-upload strong { color: #6d29fd; }
body[data-company-theme="support"] .product-edit-icon { background: #f0eaff; }
body[data-company-theme="support"] .product-edit-icon:hover { background: #6d29fd; color: #fff; }
body[data-company-theme="support"] .product-add-action { background: #eee7ff; }
body[data-company-theme="support"] .product-add-action:hover { background: #e0d4ff; }
body[data-company-theme="support"] .product-search-group-title { border-bottom-color: #ddd0ff; background: rgba(244,239,255,.97); color: #49288d; }
body[data-company-theme="support"] .product-search-group-title:hover,
body[data-company-theme="support"] .product-search-result:hover { background: #f4efff; }
body[data-company-theme="support"] .quote-section-tab.active span { background: #9a6dff; }
body[data-company-theme="support"] .quantity-control:focus-within { box-shadow: 0 0 0 3px rgba(109,41,253,.16); }

.main-area { min-width: 0; }
.topbar { min-height: 118px; padding: 26px clamp(24px,4vw,58px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(244,248,249,.9); backdrop-filter: blur(10px); }
.topbar h1 { margin: 2px 0 0; font-family: "Onest", ui-sans-serif, sans-serif; font-size: clamp(29px,3vw,42px); font-weight: 600; letter-spacing: -.045em; }
.topbar h1 span { white-space: nowrap; }
body[data-view="overview"] .topbar h1 { font-size: clamp(24px,2.6vw,37px); line-height: 1.08; }
body[data-view="managers"] .topbar { display: none; }
body[data-view="company"] .topbar { display: none; }
.eyebrow { margin: 0; color: var(--brand-dark); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.company-switcher-topbar { display: none; }
.company-switcher-topbar select { height: 42px; padding: 0 35px 0 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.clean-status { padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.65); color: var(--muted); font-size: 12px; }
.clean-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.content { padding: clamp(24px,4vw,56px); }

.primary, .secondary, .danger { min-height: 42px; padding: 0 18px; border-radius: 9px; font-weight: 700; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-dark); }
.topbar-actions .primary { border-color: #087cff; background: #087cff; white-space: nowrap; box-shadow: 0 8px 20px rgba(8,124,255,.22); }
.topbar-actions .primary:hover { border-color: #006de5; background: #006de5; }
.secondary { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.secondary:hover { background: var(--warm); }
.danger { border: 1px solid #e1bcb7; background: #fff5f3; color: var(--danger); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); font-size: 25px; line-height: 1; }

.hero { padding: clamp(30px,5vw,62px); border: 1px solid var(--line); border-radius: 22px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr); gap: 34px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.hero-copy h2 { max-width: 730px; margin: 10px 0 16px; font-family: "Onest", ui-sans-serif, sans-serif; font-size: clamp(34px,5vw,62px); font-weight: 600; line-height: .98; letter-spacing: -.055em; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { align-self: stretch; padding: 26px; border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; background: var(--soft-neutral); }
.hero-note span { width: 42px; height: 42px; border: 1px solid var(--brand); border-radius: 50%; display: grid; place-items: center; color: var(--brand-dark); font-size: 20px; }
.hero-note p { margin: 35px 0 0; color: #34454d; font-size: 14px; line-height: 1.55; }
.metrics { margin-top: 18px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.metric { min-height: 130px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.62); }
.metric strong { display: block; margin-bottom: 24px; font-family: "Onest", ui-sans-serif, sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: 12px; }

.overview-stats { margin-bottom: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.overview-stat { min-height: 138px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 17px; display: grid; align-content: space-between; justify-items: start; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 7px 28px rgba(23,26,31,.05); }
.overview-stat:hover { border-color: var(--brand); transform: translateY(-1px); }
.overview-stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.overview-stat strong { font-size: 36px; font-weight: 600; letter-spacing: -.05em; }
.overview-stat small { color: #8999a0; font-size: 11px; }
.overview-stat.is-active { border-color: #171a1f; background: #171a1f; color: #fff; }
.overview-stat.is-active span, .overview-stat.is-active small { color: #9fb2ba; }
.workspace-quotes { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 34px rgba(23,26,31,.05); }
.workspace-quotes-heading { padding: 22px 24px 18px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.workspace-quotes-heading h2 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -.035em; }
.workspace-quotes-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.overview-quote-filters { padding: 0 24px 18px; display: grid; grid-template-columns: minmax(150px,.8fr) minmax(190px,1.2fr) minmax(180px,1fr) minmax(135px,.7fr) auto; gap: 10px; align-items: end; }
.overview-quote-filters label { min-width: 0; display: grid; gap: 5px; color: #697981; font-size: 10px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.overview-quote-filters input, .overview-quote-filters select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #cbd6db; border-radius: 10px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 550; letter-spacing: 0; text-transform: none; }
.overview-quote-filters input:focus, .overview-quote-filters select:focus { border-color: #087cff; outline: 3px solid rgba(8,124,255,.12); }
.overview-filter-reset { height: 42px; padding: 0 14px; border: 1px solid #d5dfe3; border-radius: 10px; background: #f6f9fa; color: #65767e; font-size: 11px; font-weight: 700; }
.overview-filter-reset:hover { border-color: #9fb0b8; background: #fff; color: var(--ink); }
.workspace-quote-table { overflow-x: auto; }
.workspace-quote-row { min-width: 950px; padding: 16px 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: .75fr minmax(150px,1.35fr) minmax(160px,1.4fr) .9fr .85fr 104px 114px; gap: 15px; align-items: center; color: #66777f; font-size: 12px; }
.workspace-quote-row[hidden], .overview-filter-empty[hidden] { display: none !important; }
.workspace-quote-row:not(.workspace-quote-head):hover { background: #f9fbfc; }
.workspace-quote-row > * { min-width: 0; }
.workspace-quote-row > strong, .workspace-client { color: var(--ink); }
.workspace-quote-head { padding-top: 11px; padding-bottom: 11px; background: #f6f9fa; color: #8a9aa1; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.workspace-status-wrap { position: relative; width: max-content; }
.workspace-status-wrap select { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.workspace-status [data-quote-views] { font-variant-numeric: tabular-nums; }
.workspace-status { width: 100px; height: 28px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; white-space: nowrap; }
.workspace-status.draft { background: #edf0f2; color: #6b7a80; }
.workspace-status.ready { background: #eeeafb; color: #6852a6; }
.workspace-status.sent { background: #e5f4fb; color: #277795; }
.workspace-status.viewed { background: #fff3da; color: #80531c; }
.workspace-status.accepted { background: #e7f7ef; color: #287653; }
.workspace-status.rejected { background: #fff0f2; color: #a94354; }
.workspace-row-actions { display: flex; gap: 6px; }
.workspace-row-actions button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #66777f; font-weight: 800; }
.workspace-row-actions button:hover:not(:disabled) { border-color: var(--brand); color: #171a1f; }
.workspace-row-actions button:disabled { opacity: .45; cursor: default; }
.workspace-row-actions button svg { width: 17px; height: 17px; display: block; margin: auto; }
.workspace-quote-menu { position: relative; }
.workspace-quote-menu .workspace-menu-trigger { font-size: 19px; line-height: 1; }
.workspace-quote-menu-popover { z-index: 100; position: fixed; width: 196px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; display: grid; background: #fff; box-shadow: 0 16px 38px rgba(23,26,31,.18); }
.workspace-quote-menu-popover[hidden] { display: none; }
.workspace-quote-menu-popover button { width: 100%; height: auto; min-height: 37px; padding: 8px 10px; border: 0; border-radius: 7px; display: block; background: transparent; color: var(--ink); text-align: left; font-size: 12px; font-weight: 650; }
.workspace-quote-menu-popover button:hover { background: #edf7fa; }
.workspace-quote-menu-popover button:last-child { color: var(--danger); }
.workspace-quotes-empty { padding: 55px 24px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; }

.section-head { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-head h2 { margin: 4px 0 0; font-family: "Onest", ui-sans-serif, sans-serif; font-size: 31px; font-weight: 600; letter-spacing: -.035em; }
.section-head p { margin: 7px 0 0; color: var(--muted); }
.empty-state { min-height: 420px; padding: 50px 24px; border: 1px dashed #cbc6bb; border-radius: 20px; display: grid; place-items: center; text-align: center; background: rgba(255,255,255,.42); }
.empty-state-inner { max-width: 460px; }
.empty-icon { width: 66px; height: 66px; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent); font-size: 27px; box-shadow: 0 10px 25px rgba(40,37,31,.07); }
.empty-state h3 { margin: 0 0 9px; font-family: "Onest", ui-sans-serif, sans-serif; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.empty-state p { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }

.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.catalog-filter-panel { margin-bottom: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 9px 28px rgba(38,34,27,.05); }
.catalog-filter-heading { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catalog-filter-heading strong { font-size: 15px; }
.catalog-filter-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.catalog-filter-heading > span { min-width: 29px; padding: 5px 8px; border-radius: 999px; background: var(--warm); color: var(--muted); text-align: center; font-size: 11px; font-weight: 700; }
.catalog-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.catalog-filter { flex: 0 0 auto; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: var(--warm); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.catalog-filter:hover { border-color: var(--brand); background: #fff; }
.catalog-filter.active { border-color: var(--brand); background: var(--brand); color: #102229; }
.catalog-filter span { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.07); color: inherit; font-size: 10px; text-align: center; }
.catalog-filter.active span { background: rgba(255,255,255,.14); }
.catalog-stats { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.catalog-stats strong { color: var(--ink); font-size: 15px; }
.catalog-stats span { margin: 0 5px; }
.catalog-groups { display: grid; gap: 22px; }
.catalog-section { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.56); }
.catalog-section-head { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catalog-section-head h3 { margin: 0; font-family: "Onest", ui-sans-serif, sans-serif; font-size: 25px; font-weight: 600; letter-spacing: -.035em; }
.catalog-section-head span, .catalog-category-head span { padding: 5px 9px; border-radius: 999px; background: var(--warm); color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.catalog-categories { display: grid; gap: 18px; }
.catalog-category { padding-top: 18px; border-top: 1px solid var(--line); }
.catalog-category-head { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catalog-category-head h4 { margin: 0; font-size: 15px; font-weight: 750; }
.catalog-cards { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.product-card h3 { overflow-wrap: anywhere; }
.product-card-with-image { padding: 0; overflow: hidden; }
.product-card-image { width: 100%; aspect-ratio: 4 / 3; padding: 8px; display: block; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line); }
.product-card { display: flex; flex-direction: column; }
.product-card-content { flex: 1; padding: 13px; display: flex; flex-direction: column; }
.product-card:not(.product-card-with-image) .product-card-content { padding: 0; }
.catalog-cards .record-card h3 { font-size: 13px; line-height: 1.32; }
.catalog-cards .record-card .amount { margin-top: 0; font-size: 18px; }
.catalog-cards .record-card-actions { margin-top: 14px; }
.product-card-footer { margin-top: auto; padding-top: 13px; display: flex; align-items: flex-end; justify-content: space-between; gap: 9px; }
.product-card-footer .amount { line-height: 1; }
.product-card-actions { flex: 0 0 auto; display: flex; gap: 7px; align-items: flex-end; }
.product-edit-icon, .product-delete-icon { flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; display: grid; place-items: center; transition: background .16s ease, color .16s ease, transform .16s ease; }
.product-edit-icon { background: #e9f3ff; color: #087cff; }
.product-edit-icon:hover { background: #087cff; color: #fff; transform: translateY(-1px); }
.product-edit-icon:focus-visible { outline: 3px solid rgba(8,124,255,.22); outline-offset: 2px; }
.product-edit-icon svg { width: 20px; height: 20px; }
.product-delete-icon { background: #fff0ef; color: #d93832; }
.product-delete-icon:hover { background: #d93832; color: #fff; transform: translateY(-1px); }
.product-delete-icon:focus-visible { outline: 3px solid rgba(223,61,53,.22); outline-offset: 2px; }
.product-delete-icon svg { width: 22px; height: 22px; }
.product-needs-review { border-color: #e45a5a; box-shadow: 0 0 0 1px rgba(210,45,45,.07); }
.product-needs-review .amount { color: #c93030; }
.product-review-badge { width: fit-content; margin: 11px 0 0 !important; padding: 5px 8px; border-radius: 7px; background: #fff0f0; color: #b52d2d !important; font-size: 10px !important; font-weight: 800; line-height: 1.25 !important; }
.archive-retention { margin-top: 15px !important; padding: 9px 11px; border-radius: 9px; background: #f3f6f8; }
.archive-retention strong { color: var(--ink); }
.record-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.record-card-head { display: flex; justify-content: space-between; gap: 15px; }
.record-card h3 { margin: 0 0 5px; font-size: 17px; }
.record-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.record-card .amount { margin-top: 28px; display: block; font-family: "Onest", ui-sans-serif, sans-serif; font-size: 25px; font-weight: 600; letter-spacing: -.03em; }
.record-card-actions { margin-top: 18px; display: flex; gap: 8px; }
.record-card-actions button { min-height: 34px; padding: 0 11px; font-size: 12px; }
.status-pill { height: 26px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--warm); color: var(--muted); font-size: 11px; white-space: nowrap; }
.manager-page-actions { display: flex; justify-content: flex-end; }
.manager-page-actions-bottom { margin-top: 18px; }
.manager-page-header { margin-bottom: 22px; }
.manager-page-header h1 { margin: 0; font-size: clamp(28px,3vw,40px); font-weight: 600; letter-spacing: -.045em; }
.manager-add-button { border-color: #087cff; background: #087cff; box-shadow: 0 8px 20px rgba(8,124,255,.18); }
.manager-add-button:hover { border-color: #006de5; background: #006de5; }
.manager-list { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fff; box-shadow: 0 8px 34px rgba(23,26,31,.05); }
.manager-row { min-height: 108px; padding: 19px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px minmax(190px,1.15fr) minmax(300px,1.7fr) auto auto; gap: 18px; align-items: center; }
.manager-row:last-child { border-bottom: 0; }
.manager-row:hover { background: #f9fbfc; }
.manager-avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: #287995; font-size: 13px; font-weight: 800; }
.manager-avatar img { width: 100%; height: 100%; border-radius: inherit; display: block; object-fit: cover; background: #fff; }
.manager-identity { min-width: 0; }
.manager-identity h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.35; }
.manager-identity p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.manager-contact-grid { min-width: 0; display: grid; grid-template-columns: minmax(135px,.8fr) minmax(165px,1.2fr); gap: 15px; }
.manager-contact-grid a, .manager-contact-grid > div { min-width: 0; display: grid; gap: 4px; color: inherit; text-decoration: none; }
.manager-contact-grid a:hover strong { color: #087cff; }
.manager-contact-grid span { color: #8a9aa1; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.manager-contact-grid strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.manager-links { display: flex; flex-wrap: wrap; gap: 6px; }
.manager-links a, .manager-link-empty { min-width: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--warm); color: var(--ink); font-size: 10px; font-weight: 750; text-align: center; text-decoration: none; }
.manager-links a:hover { border-color: var(--brand); background: #fff; }
.manager-link-empty { color: #a6b2b7; background: #f7f9fa; }
.manager-row-actions { display: flex; align-items: center; gap: 7px; }
.manager-edit-button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 750; }
.manager-edit-button:hover { border-color: var(--brand); background: var(--warm); }
.manager-edit-button svg, .manager-delete-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.manager-delete-button { width: 38px; height: 38px; padding: 0; border: 1px solid #f0ceca; border-radius: 9px; display: grid; place-items: center; background: #fff6f5; color: var(--danger); }
.manager-delete-button:hover { border-color: #d95f55; background: #d95f55; color: #fff; }

.settings-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 18px; }
.company-page-header { margin-bottom: 22px; }
.company-page-header h1 { margin: 0; font-size: clamp(29px,3vw,42px); font-weight: 600; letter-spacing: -.045em; }
.company-page-header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.company-cards { margin-bottom: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.company-card { min-width: 0; min-height: 112px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: 82px minmax(0,1fr) 28px; gap: 16px; align-items: center; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 7px 24px rgba(23,26,31,.05); }
.company-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.company-card.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), 0 10px 26px rgba(23,26,31,.07); }
.company-card-logo { width: 82px; height: 72px; padding: 8px; border-radius: 12px; display: grid; place-items: center; background: #f5f7fa; }
.company-card-logo img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; }
.company-card-copy { min-width: 0; display: grid; gap: 5px; }
.company-card-copy small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.company-card-copy strong { overflow-wrap: anywhere; font-size: 18px; font-weight: 700; letter-spacing: -.025em; }
.company-card > i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-style: normal; font-weight: 800; }
.company-form-panel { align-self: start; }
.manager-identity small { color: var(--brand-dark); }
.employee-password-reset { display: flex; align-items: center; gap: 8px; }
.employee-password-reset input { width: 16px; height: 16px; margin: 0; }
.employee-credentials-note { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.quote-observers { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.quote-observers summary { cursor: pointer; font-weight: 700; }
.quote-observers summary span { margin-left: 6px; color: var(--muted); }
.quote-observers p { margin: 10px 0 8px; font-size: 13px; }
.quote-observer-list { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.quote-observer-list label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.quote-observer-list input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }
.panel { padding: 27px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.panel h3 { margin: 0 0 5px; font-family: "Onest", ui-sans-serif, sans-serif; font-size: 25px; font-weight: 600; letter-spacing: -.03em; }
.panel > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
label.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #cbc8c0; border-radius: 9px; background: #fff; color: var(--ink); outline: none; }
input, select { height: 43px; padding: 0 12px; }
textarea { min-height: 92px; padding: 11px 12px; resize: vertical; }
#quote-note { min-height: 140px; padding: 14px 15px; font-size: 14px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,124,255,.16); }
.company-preview { min-height: 360px; display: grid; place-items: center; background: #171a1f; color: #fff; }
.company-preview small { color: #9db3bc; }
.company-preview strong { font-family: "Onest", ui-sans-serif, sans-serif; font-size: 29px; font-weight: 600; letter-spacing: -.035em; }
.company-preview p { margin: 0; color: #9db3bc; }
.company-logo-dark { width: min(210px,82%); height: auto; display: block; object-fit: contain; }

.builder-shell { display: grid; gap: 18px; }
.builder-toolbar { position: sticky; z-index: 16; top: 12px; min-height: 64px; padding: 10px 12px 10px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(23,26,31,.96); box-shadow: 0 14px 36px rgba(23,26,31,.22); backdrop-filter: blur(14px); }
.back-link { min-height: 40px; padding: 0 9px; border: 0; background: transparent; color: #d5dfe3; font-weight: 700; }
.back-link:hover { color: #fff; }
.builder-actions { display: flex; gap: 9px; }
.builder-actions .secondary { border-color: rgba(255,255,255,.24); background: #fff; }
.builder-actions .primary { border-color: #087cff; background: #087cff; box-shadow: 0 7px 18px rgba(8,124,255,.3); }
.builder-actions .primary:hover { border-color: #006de5; background: #006de5; }
.builder-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 18px; align-items: start; }
.builder-main { display: grid; gap: 18px; }
.form-card { padding: 27px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.section-heading { margin-bottom: 22px; display: flex; align-items: flex-start; gap: 14px; }
.section-heading h2 { margin: 0 0 4px; font-family: "Onest", ui-sans-serif, sans-serif; font-size: 25px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; }
.step-number { flex: 0 0 auto; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; }
.product-heading { justify-content: space-between; }
.heading-with-step { display: flex; gap: 14px; }
.add-product-row { margin-bottom: 16px; padding: 13px; border-radius: 11px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; background: var(--warm); }
.add-product-row select { min-width: 0; }
.line-items { display: grid; gap: 11px; }
.line-item { padding: 16px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 32px minmax(0,1fr) 110px 92px 40px; gap: 10px; align-items: center; }
.line-number { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--warm); color: var(--muted); font-size: 12px; font-weight: 700; }
.line-item input { min-width: 0; }
.line-item .item-price, .line-item .item-qty { text-align: right; }
.remove-item { width: 38px; height: 38px; border: 1px solid #e1bcb7; border-radius: 9px; background: #fff5f3; color: var(--danger); }
.items-empty { padding: 27px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); text-align: center; }
.summary-card { position: sticky; top: 18px; padding: 24px; border: 1px solid #29313a; border-radius: 16px; background: #171a1f; color: #fff; }
.summary-card h3 { margin: 0 0 24px; font-family: "Onest", ui-sans-serif, sans-serif; font-size: 25px; font-weight: 600; letter-spacing: -.03em; }
.summary-row { padding: 12px 0; border-bottom: 1px solid #31404a; display: flex; justify-content: space-between; gap: 15px; color: #c6d3d9; font-size: 13px; }
.summary-row strong { color: #fff; }
.summary-total { padding-top: 24px; display: flex; justify-content: space-between; align-items: end; }
.summary-total span { color: #9db3bc; font-size: 12px; }
.summary-total strong { font-family: "Onest", ui-sans-serif, sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.builder-note { margin-top: 16px; color: #90a5ae; font-size: 11px; line-height: 1.5; }

.account-manager-note { margin: 0; padding: 11px 13px; border-radius: 9px; background: #f2f7f9; color: #61737b; font-size: 11px; font-weight: 400; line-height: 1.5; }
#quote-main-fields > label { font-size: 12px; font-weight: 600; }
#quote-main-fields input, #quote-main-fields select { height: 46px; font-size: 14px; font-weight: 500; letter-spacing: -.012em; }
#quote-main-fields input::placeholder { color: #84929a; font-size: 14px; font-weight: 400; opacity: 1; }
#quote-main-fields input[readonly] { background: #f7f9fb; color: #303a42; }
#quote-main-fields input.field-invalid { border-color: #d84b4b; background: #fff8f8; color: #a93333; box-shadow: 0 0 0 3px rgba(216,75,75,.12); }
#quote-main-fields input.field-invalid::placeholder { color: #c23f3f; }
.client-field .field-error { margin: 1px 0 0; color: #b72f2f; font-size: 11px; font-weight: 650; line-height: 1.35; }
.client-field .field-error[hidden] { display: none; }
.quote-section-tabs { margin-bottom: 14px; padding: 5px; border: 1px solid #dce5e9; border-radius: 13px; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; background: #f3f7f9; }
.quote-section-tab { min-height: 43px; padding: 0 13px; border: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: #60717a; font-weight: 750; }
.quote-section-tab span { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; background: #e0e9ed; color: #61747c; font-size: 10px; }
.quote-section-tab.active { background: #171a1f; color: #fff; box-shadow: 0 4px 14px rgba(18,25,30,.14); }
.quote-section-tab.active span { background: #087cff; color: #fff; }
.catalog-search-panel { position: relative; }
.catalog-search-panel input { height: 50px; padding: 0 18px 0 45px; border-color: #aebfc6; font-size: 13px; }
.catalog-page-search { margin-bottom: 14px; }
.catalog-page-search input { background: #fff; box-shadow: 0 8px 24px rgba(38,34,27,.05); }
.catalog-search-icon { position: absolute; z-index: 1; left: 16px; top: 12px; color: #087cff; font-size: 24px; line-height: 1; transform: rotate(-15deg); }
.product-search-results { max-height: 420px; margin: 8px 0 19px; border: 1px solid #dbe4e8; border-radius: 12px; background: #fff; overflow-y: auto; }
.product-search-count { position: sticky; z-index: 3; top: 0; padding: 9px 12px; border-bottom: 1px solid #dbe4e8; display: flex; align-items: center; background: rgba(247,250,251,.96); color: #66777f; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; backdrop-filter: blur(8px); }
.product-search-count strong { margin-left: 5px; color: #087cff; font-size: 11px; }
.product-search-count span { margin-left: auto; color: #829198; font-size: 9px; font-weight: 700; }
.product-search-group { background: #fff; }
.product-search-group + .product-search-group { margin-top: 7px; border-top: 7px solid #f3f6f8; }
.product-search-group-title { position: sticky; z-index: 2; top: 33px; width: 100%; min-height: 42px; padding: 8px 12px; border: 0; border-bottom: 1px solid #dce7ef; display: flex; align-items: center; gap: 8px; background: rgba(237,246,255,.97); color: #1a3d64; text-align: left; backdrop-filter: blur(8px); }
.product-search-group-title:hover { background: #e5f2ff; }
.product-search-group-title b { width: 18px; height: 18px; display: grid; place-items: center; color: #087cff; font-family: Arial, sans-serif; font-size: 21px; line-height: 1; transition: transform .18s ease; }
.product-search-group.is-expanded .product-search-group-title b { transform: rotate(90deg); }
.product-search-group-title strong { font-size: 11px; font-weight: 800; letter-spacing: .01em; }
.product-search-group-title span { min-width: 22px; height: 22px; margin-left: auto; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: #087cff; font-size: 9px; font-weight: 800; }
.product-search-group-items[hidden] { display: none; }
.product-search-result { width: 100%; min-height: 62px; padding: 10px 12px; border: 0; border-bottom: 1px solid #e8eef0; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; background: #fff; text-align: left; }
.product-search-group .product-search-result:last-child { border-bottom: 0; }
.product-search-result:hover { background: #f2f8ff; }
.product-search-result.is-added, .product-search-result.is-added:hover { background: #f4fbf7; }
.product-search-result span { min-width: 0; display: grid; gap: 4px; }
.product-search-result strong { overflow: hidden; color: #1a2026; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.product-search-result small { overflow: hidden; color: #7c8b92; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.product-search-result b { color: #253039; font-size: 12px; white-space: nowrap; }
.product-add-action { min-width: 76px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: #e6f2ff; color: #087cff; font-size: 10px; font-weight: 800; }
.product-add-action:hover { background: #d6eaff; }
.product-result-quantity { height: 34px; border: 1px solid #b9dfcc; border-radius: 9px; display: grid; grid-template-columns: 32px 34px 32px; overflow: hidden; background: #fff; box-shadow: 0 5px 12px rgba(37,167,106,.12); }
.product-result-quantity button { width: 32px; height: 32px; padding: 0; border: 0; background: #e7f7ee; color: #168956; font-size: 17px; font-weight: 800; }
.product-result-quantity button:hover { background: #d4f0e0; }
.product-result-quantity strong { display: grid; place-items: center; color: #168956; font-size: 11px; }
.product-search-result em { width: fit-content; padding: 3px 6px; border-radius: 5px; background: #fff0f0; color: #b52d2d; font-size: 9px; font-style: normal; font-weight: 800; }
.product-search-result.needs-review { border-left: 3px solid #d63c3c; background: #fffafa; }
.product-search-result.needs-review b { color: #c93030; }
.catalog-category, .product-search-group { content-visibility: auto; contain-intrinsic-size: 1px 560px; }
.product-search-empty { padding: 24px; color: #708089; font-size: 12px; text-align: center; }
.custom-product-panel { margin-bottom: 19px; padding: 17px; border: 1px solid #cddce2; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #f7fafb; }
.custom-product-panel strong { font-size: 13px; }
.custom-product-panel p { margin: 4px 0 0; color: #6d7e85; font-size: 11px; }
.custom-add-button { flex: 0 0 auto; min-width: 92px; height: 36px; padding: 0 14px; border: 1px solid #cbd7dc; border-radius: 9px; background: #fff; color: #33424a; font-size: 11px; font-weight: 650; }
.custom-add-button:hover { border-color: #87b8ee; background: #f1f7ff; color: #087cff; }
.builder-item-group { display: grid; gap: 8px; }
.builder-item-group > header { padding: 9px 12px 5px; display: flex; align-items: center; gap: 8px; }
.builder-item-group > header strong { font-size: 12px; }
.builder-item-group > header span { min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; background: #e7f2ff; color: #087cff; font-size: 10px; font-weight: 800; }
.line-item { padding: 14px; grid-template-columns: 30px minmax(0,1fr) 38px; gap: 10px; align-items: start; }
.line-field { min-width: 0; gap: 5px; }
.line-field > span { padding-left: 2px; color: #7a898f; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.line-field input { height: 40px; }
.line-name-field { grid-column: 2; grid-row: 1; }
.line-controls { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: 112px minmax(132px,160px) 92px minmax(84px,1fr); gap: 12px; align-items: start; }
.quantity-control { height: 40px; border: 1px solid #cbc8c0; border-radius: 9px; display: grid; grid-template-columns: 30px minmax(0,1fr) 30px; overflow: hidden; background: #fff; }
.quantity-control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,124,255,.16); }
.quantity-control button { align-self: stretch; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; display: grid; place-items: center; appearance: none; background: #f3f6f8; color: #4c5c64; font-family: Arial, sans-serif; font-size: 17px; font-weight: 700; line-height: 1; }
.quantity-control button:first-child { border-right: 1px solid #e2e7e9; }
.quantity-control button:last-child { border-left: 1px solid #e2e7e9; }
.quantity-control button:hover { background: #e7f2ff; color: #087cff; }
.quantity-control .item-qty { width: 100%; height: 38px; padding: 0 5px; border: 0; border-radius: 0; box-shadow: none; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.quantity-control .item-qty::-webkit-inner-spin-button, .quantity-control .item-qty::-webkit-outer-spin-button, .line-price-field .item-price::-webkit-inner-spin-button, .line-price-field .item-price::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.line-price-field { position: relative; align-content: start; }
.line-price-field .item-price { padding: 0 11px; text-align: right; appearance: textfield; -moz-appearance: textfield; }
.line-price-field .item-price[readonly] { background: #f3f6f8; color: #4e5b62; }
.price-edit-action { width: 100%; margin-top: 1px; padding: 1px 0 0; border: 0; background: transparent; color: #087cff; font-size: 9px; font-weight: 750; line-height: 1.3; text-align: left; }
.price-edit-action.restore { color: #33815f; }
.line-price-field small { width: 100%; padding-left: 0; display: block; color: #d33f3f; font-size: 9px; font-weight: 750; line-height: 1.3; text-align: left; }
.line-tax-field select { height: 40px; padding: 0 28px 0 10px; font-size: 12px; font-weight: 650; }
.line-total { display: grid; gap: 7px; padding-top: 1px; }
.line-total span { color: #7a898f; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.line-total strong { min-height: 40px; display: flex; align-items: center; font-size: 12px; white-space: nowrap; }
.line-item .remove-item { grid-column: 3; grid-row: 1; margin-top: 17px; }
.line-item.price-is-changed { border-color: #e7a5a5; background: #fffafa; }
.line-item.price-is-changed .item-price { border-color: #dd6f6f; }
.price-alerts { margin-bottom: 16px; padding: 17px 19px; border: 1px solid #efb3b3; border-radius: 14px; background: #fff6f6; }
.price-alerts > div:first-child { display: flex; align-items: center; gap: 9px; }
.price-alerts > div:first-child > span { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #d73e3e; color: #fff; font-weight: 900; }
.price-alert-dismiss { width: 30px; height: 30px; margin-left: auto; padding: 0; border: 1px solid #efcaca; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.78); color: #a33e3e; font-size: 21px; line-height: 1; }
.price-alert-dismiss:hover { border-color: #d96868; background: #fff; color: #7d2626; }
.price-alerts strong { color: #922f2f; font-size: 13px; }
.price-alerts p { margin: 7px 0 0 34px; color: #985a5a; font-size: 11px; }
.price-alert-list { margin: 13px 0 0 34px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.price-alert-list button { min-width: 0; padding: 10px 12px; border: 1px solid #efcaca; border-radius: 10px; display: grid; gap: 3px; background: rgba(255,255,255,.76); color: #6d3333; text-align: left; }
.price-alert-list button:hover { border-color: #d96868; background: #fff; }
.price-alert-list button span { font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.price-alert-list button strong { overflow: hidden; color: #742d2d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.price-alert-list button small { color: #a06d6d; font-size: 9px; }

.preview-open { overflow: hidden; }
.quote-preview-layer { z-index: 50; position: fixed; inset: 0; overflow: auto; padding: 24px; background: #dfe7ea; }
.quote-preview-layer[hidden] { display: none; }
.quote-preview-toolbar { position: sticky; z-index: 2; top: 0; width: min(210mm,100%); min-height: 66px; margin: 0 auto 16px; padding: 11px 14px 11px 18px; border: 1px solid #cad5d9; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(19,29,34,.11); backdrop-filter: blur(10px); }
.quote-preview-toolbar > div:first-child { display: grid; gap: 2px; }
.quote-preview-toolbar strong { font-size: 14px; }
.quote-preview-toolbar span { color: var(--muted); font-size: 11px; }
.quote-preview-actions { display: flex; gap: 8px; }
.quote-preview-document { width: min(210mm,100%); margin: 0 auto 30px; }
.quote-sheet { position: relative; isolation: isolate; min-height: 297mm; padding: 12mm 12mm 10mm; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #101827; box-shadow: 0 22px 70px rgba(18,29,35,.14); }
.quote-sheet > *:not(.quote-top-art):not(.quote-bottom-art) { position: relative; z-index: 1; }
.quote-top-art { position: absolute; z-index: 0; top: 0; right: 0; width: 114mm; pointer-events: none; }
.quote-top-art img { width: 100%; height: auto; display: block; opacity: .34; }
.quote-bottom-art { position: absolute; z-index: 0; left: -48mm; bottom: -48mm; width: 132mm; height: 88mm; pointer-events: none; }
.quote-bottom-art i { position: absolute; inset: auto; display: block; border-radius: 50%; }
.quote-bottom-art i:first-child { left: 0; bottom: 0; width: 118mm; height: 78mm; border: 12mm solid rgba(98,174,255,.1); background: radial-gradient(circle at 67% 42%,rgba(238,248,255,.5),rgba(199,227,255,.11) 54%,transparent 72%); filter: blur(.7mm); }
.quote-bottom-art i:last-child { left: 29mm; bottom: 20mm; width: 90mm; height: 50mm; border: 7mm solid rgba(82,163,251,.055); filter: blur(.45mm); }
.quote-sheet-header { min-height: 26mm; border: 0; display: grid; grid-template-columns: 54mm 49mm minmax(0,1fr); gap: 6mm; align-items: center; color: #101827; }
.quote-brand { min-width: 0; display: flex; align-items: center; }
.quote-brand-logo { width: 43mm; height: auto; display: block; object-fit: contain; }
.quote-document-meta { min-width: 0; padding-left: 6mm; border-left: 1px solid #8794a7; display: grid; gap: .8mm; text-align: left; }
.quote-document-meta strong { font-size: 15px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.quote-document-meta small { color: #536075; font-size: 12.5px; font-weight: 520; }
.quote-document-valid { min-width: 0; padding-left: 6mm; border-left: 1px solid #8794a7; display: grid; gap: .7mm; color: #41516a; text-align: left; }
.quote-document-valid span, .quote-document-valid strong { font-size: 12.5px; font-weight: 560; line-height: 1.18; }
.quote-document-valid strong { color: #2479db; font-weight: 740; white-space: nowrap; }
.quote-hero { padding: 7mm 0 9mm; display: grid; grid-template-columns: minmax(0,1fr) 49mm; gap: 8mm; align-items: center; text-align: left; }
.quote-title-lockup { min-width: 0; display: grid; grid-template-columns: 2.7mm minmax(0,1fr); gap: 4.5mm; align-items: stretch; }
.quote-title-lockup > i { border-radius: 1mm; background: linear-gradient(180deg,#0a82f8,#1467eb); }
.quote-hero h1 { margin: 0; font-size: 41px; font-weight: 800; line-height: .93; letter-spacing: .012em; text-transform: uppercase; }
.quote-recipient { min-width: 0; min-height: 18mm; padding: 3.4mm 3.8mm; border: 1px solid rgba(126,177,237,.2); border-radius: 3.5mm; display: grid; grid-template-columns: 6mm minmax(0,1fr); grid-template-rows: auto auto; column-gap: 2.5mm; align-content: center; background: linear-gradient(145deg,rgba(248,252,255,.94),rgba(222,238,255,.84)); color: #68778c; box-shadow: 0 6px 18px rgba(66,133,208,.07); }
.quote-recipient svg { grid-row: 1 / 3; width: 6mm; height: 6mm; align-self: center; fill: none; stroke: #0b82f7; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quote-recipient span { align-self: end; font-size: 7.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.quote-recipient strong { align-self: start; max-width: 34mm; color: #101827; font-size: 11.5px; font-weight: 690; line-height: 1.18; letter-spacing: -.01em; overflow-wrap: anywhere; }
.quote-table-card { border: 1px solid #d8e1ec; border-radius: 5mm; overflow: hidden; background: rgba(255,255,255,.92); }
.quote-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.quote-table thead tr { background: linear-gradient(90deg,#edf6ff 0%,#d8ebff 45%,#c8e2ff 100%); }
.quote-table th { padding: 3.7mm 2.5mm; border: 0; background: transparent; color: #111a2a; text-align: left; font-size: 11px; font-weight: 760; letter-spacing: -.01em; text-transform: none; }
.quote-table th:first-child { width: 12mm; padding-left: 5mm; }
.quote-table th:nth-child(3) { width: 24mm; text-align: center; }
.quote-table th:nth-child(4) { width: 28mm; text-align: right; }
.quote-table th:nth-child(5) { width: 18mm; text-align: center; }
.quote-table th:nth-child(6) { width: 31mm; text-align: right; }
.quote-table th:last-child { padding-right: 5mm; }
.quote-table td { padding: 2.8mm 2.5mm; border-bottom: 1px solid #dde4ed; color: #172030; vertical-align: middle; font-size: 10.8px; line-height: 1.25; }
.quote-table tbody tr:last-child td { border-bottom: 0; }
.quote-table td:first-child { padding-left: 5mm; font-weight: 650; }
.quote-table td:nth-child(3) { text-align: center; white-space: nowrap; }
.quote-table td:nth-child(4), .quote-table td:nth-child(6) { text-align: right; white-space: nowrap; }
.quote-table td:nth-child(5) { text-align: center; white-space: nowrap; }
.quote-table td:last-child { padding-right: 5mm; }
.quote-table td:last-child strong { font-size: 12px; font-weight: 800; }
.quote-item-main { min-width: 0; display: flex; align-items: center; gap: 2.5mm; }
.quote-item-main > span { min-width: 0; overflow-wrap: anywhere; }
.quote-item-image { flex: 0 0 13mm; width: 13mm; height: 13mm; padding: 1mm; border: 1px solid #dfe6ee; border-radius: 2.2mm; display: grid; place-items: center; background: #fff; cursor: zoom-in; }
.quote-item-image:hover { border-color: #79b7f4; box-shadow: 0 2px 8px rgba(26,101,181,.12); }
.quote-item-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.quote-table .quote-section-row td { padding: 2.4mm 5mm; border-top: 1px solid #d8e1ec; background: #f7f9fc; color: #4e6077; letter-spacing: 0; text-transform: none; }
.quote-table .quote-section-row:first-child td { border-top: 0; }
.quote-table .quote-section-row td > div { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6mm; }
.quote-table .quote-section-row span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.quote-table .quote-section-row strong { color: inherit; font-size: 10px; font-weight: 700; text-align: right; white-space: nowrap; }
.quote-table-empty { padding: 12mm !important; color: #687880 !important; text-align: center !important; }
.quote-total-block { min-height: 18mm; margin-top: 7mm; padding: 0 0 0 8mm; border-radius: 5mm; display: flex; align-items: stretch; justify-content: space-between; gap: 10mm; overflow: hidden; background: linear-gradient(90deg,#e4f1ff,#f7fbff); break-inside: avoid; }
.quote-total-block > div { display: grid; align-content: center; gap: 1.2mm; }
.quote-total-block > div > span { font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.quote-total-block > div > small { color: #647791; font-size: 9px; font-weight: 620; }
.quote-total-block > strong { min-width: 61mm; padding: 4mm 8mm 4mm 11mm; border-radius: 13mm 0 0 13mm; display: flex; align-items: center; justify-content: center; background: linear-gradient(125deg,#8fd3ff 0%,#2e93f5 44%,#0863d8 100%); color: #fff; text-align: center; font-size: 22px; font-weight: 750; letter-spacing: -.025em; box-shadow: -5px 0 18px rgba(21,119,235,.16); }
.quote-reference-block { margin-top: 6mm; border: 1px solid #d9e2eb; border-radius: 4mm; overflow: hidden; background: #fbfcfd; break-inside: avoid; }
.quote-reference-heading { padding: 4mm 5mm; display: flex; align-items: center; justify-content: space-between; gap: 5mm; background: linear-gradient(90deg,#f5f8fb,#edf3f8); }
.quote-reference-heading span { color: #243246; font-size: 12px; font-weight: 780; }
.quote-reference-heading p { margin: 1mm 0 0; color: #68788b; font-size: 8.5px; line-height: 1.35; }
.quote-reference-heading b { flex: 0 0 auto; min-width: 7mm; height: 7mm; padding: 0 2mm; border-radius: 4mm; display: grid; place-items: center; background: #dfeaf4; color: #436078; font-size: 9px; }
.quote-reference-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.quote-reference-table th { padding: 2.6mm 5mm; background: #f8fafc; color: #718092; text-align: left; font-size: 8px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.quote-reference-table th:nth-child(2) { width: 27mm; text-align: center; }
.quote-reference-table th:nth-child(3) { width: 20mm; text-align: center; }
.quote-reference-table th:last-child { width: 34mm; text-align: right; }
.quote-reference-table td { padding: 3mm 5mm; border-top: 1px solid #e4e9ef; color: #283548; font-size: 10px; line-height: 1.3; }
.quote-reference-table td:nth-child(2) { text-align: center; white-space: nowrap; }
.quote-reference-table td:nth-child(3) { text-align: center; white-space: nowrap; }
.quote-reference-table td:last-child { text-align: right; white-space: nowrap; }
.quote-reference-table td:last-child strong { font-size: 10.5px; }
.quote-reference-total { min-height: 12mm; padding: 2.5mm 5mm; border-top: 1px solid #d9e0e7; display: flex; align-items: center; justify-content: space-between; gap: 8mm; background: #e9edf1; color: #455364; }
.quote-reference-total span { font-size: 10.5px; font-weight: 650; }
.quote-reference-total strong { color: #24303d; font-size: 16px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.quote-benefits-block { margin: 11mm 0 7mm; break-inside: avoid; }
.quote-benefits-heading { margin-bottom: 5mm; display: grid; grid-template-columns: 3mm auto 1fr; gap: 4mm; align-items: center; }
.quote-benefits-heading b { width: 3mm; height: 9mm; border-radius: 1mm; display: block; background: linear-gradient(180deg,#0b82f7,#1768ef); transform: skew(-15deg); }
.quote-benefits-heading h2 { margin: 0; color: #111a2a; font-size: 15px; font-weight: 780; letter-spacing: -.025em; text-transform: uppercase; }
.quote-benefits-heading i { height: 1px; display: block; background: #aeb9c7; }
.quote-benefits { display: grid; grid-template-columns: repeat(3,1fr); }
.quote-benefits > div { min-width: 0; min-height: 17mm; padding: 0 6mm; border-right: 1px solid #d4dce7; display: flex; align-items: center; justify-content: center; gap: 4mm; }
.quote-benefits > div:last-child { border-right: 0; }
.quote-benefit-icon { flex: 0 0 13mm; width: 13mm; height: 13mm; border-radius: 4mm; display: grid; place-items: center; background: linear-gradient(145deg,#f1f7ff,#e5efff); }
.quote-benefits svg { width: 8.5mm; height: 8.5mm; fill: none; stroke: #0b82f7; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quote-benefits > div > span:last-child { color: #172030; font-size: 12px; font-weight: 560; line-height: 1.28; }
.quote-note { margin: 6mm 0 0; padding: 5mm 6mm; border: 1px solid #d7e5f5; border-left: 2.5mm solid #2d8cf3; border-radius: 3.5mm; background: rgba(245,250,255,.9); break-inside: avoid; }
.quote-note span { color: #52657e; font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.quote-note p { margin: 2.5mm 0 0; color: #172030; font-size: 12px; font-weight: 400; line-height: 1.55; white-space: pre-line; }
.quote-sheet-footer { margin-top: auto; padding-top: 4mm; display: grid; grid-template-columns: minmax(0,1.16fr) minmax(0,.84fr); gap: 7mm; align-items: stretch; break-inside: avoid; }
.quote-manager { min-height: 42mm; padding: 6mm; border: 1px solid rgba(153,197,245,.28); border-radius: 5mm; display: grid; grid-template-columns: 19mm minmax(0,1fr); gap: 5mm; align-items: start; background: linear-gradient(145deg,rgba(248,252,255,.96),rgba(223,239,255,.92)); box-shadow: 0 8px 24px rgba(69,139,213,.08); }
.quote-manager-avatar { width: 19mm; height: 19mm; border-radius: 4mm; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg,#dbeeff,#bcdcff); color: #106ac8; font-size: 15px; font-weight: 800; }
.quote-manager-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.quote-manager-copy { min-width: 0; display: grid; align-content: start; }
.quote-manager-copy > span { color: #627087; font-size: 9px; }
.quote-manager-copy > strong { margin: 1mm 0 3mm; font-size: 14px; font-weight: 750; line-height: 1.12; letter-spacing: -.025em; }
.quote-manager-links { display: grid; gap: 1.2mm; }
.quote-manager-links > a, .quote-manager-links > span { min-width: 0; display: flex; align-items: center; gap: 2.2mm; color: #17263a; font-size: 9.5px; font-weight: 620; text-decoration: none; overflow-wrap: anywhere; }
.quote-manager-links > a:hover { color: #087cff; text-decoration: underline; }
.quote-manager-links svg { flex: 0 0 4.5mm; width: 4.5mm; height: 4.5mm; fill: none; stroke: #087cff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quote-accept { min-height: 42mm; display: grid; align-content: stretch; }
.quote-accept-action { position: relative; min-height: 42mm; width: 100%; padding: 6mm 7mm; border: 0; border-radius: 5mm; display: flex; align-items: center; justify-content: space-between; gap: 4mm; overflow: hidden; background: linear-gradient(112deg,#8ed8ff 0%,#4aa9fb 24%,#177ee9 52%,#075dcc 76%,#70caff 100%); background-size: 260% 100%; color: #fff; text-align: left; box-shadow: 0 10px 26px rgba(20,111,226,.24); cursor: pointer; animation: quoteGradientFlow 7.5s ease-in-out infinite alternate; }
.quote-accept-action[hidden] { display: none !important; }
.quote-accept-action::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg,transparent 34%,rgba(255,255,255,.2) 48%,transparent 62%); transform: translateX(-120%); animation: quoteSheen 7.5s ease-in-out infinite; pointer-events: none; }
.quote-accept-action:hover { box-shadow: 0 13px 30px rgba(20,111,226,.34); }
.quote-accept-action:hover b { transform: translateX(2mm); }
.quote-accept-action span { position: relative; z-index: 1; font-size: 16px; font-weight: 750; line-height: 1.15; letter-spacing: -.025em; }
.quote-accept-action b { font-size: 28px; font-weight: 400; line-height: 1; transition: transform .25s ease; }
.quote-messenger-choices { min-height: 42mm; padding: 4.5mm 5mm; border: 0; border-radius: 5mm; display: grid; align-content: center; gap: 3mm; overflow: hidden; background: linear-gradient(112deg,#8ed8ff 0%,#4aa9fb 26%,#177ee9 58%,#075dcc 100%); color: #fff; box-shadow: 0 10px 26px rgba(20,111,226,.24); animation: messengerChoicesIn .25s ease both; }
.quote-messenger-choices[hidden] { display: none !important; }
.quote-messenger-choices > span { color: #fff; font-size: 14px; font-weight: 760; line-height: 1.15; letter-spacing: -.015em; }
.quote-messenger-choices > p { margin: 0; color: rgba(255,255,255,.9); font-size: 10px; line-height: 1.35; }
.quote-messenger-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2mm; }
.quote-messenger-link { min-width: 0; min-height: 17mm; padding: 2mm 2.5mm; border: 1px solid rgba(255,255,255,.58); border-radius: 3.5mm; display: flex; align-items: center; justify-content: center; gap: 2.5mm; background: rgba(255,255,255,.92); color: #172030; font-size: 10.5px; font-weight: 780; text-decoration: none; backdrop-filter: blur(8px); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.quote-messenger-link:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 7px 18px rgba(0,55,137,.2); }
.quote-messenger-icon { flex: 0 0 12mm; width: 12mm; height: 12mm; display: grid; place-items: center; }
.quote-messenger-icon img { width: 12mm; height: 12mm; display: block; object-fit: contain; }
.quote-image-lightbox { position: fixed; z-index: 80; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(12,20,31,.72); backdrop-filter: blur(6px); }
.quote-image-lightbox[hidden] { display: none; }
.quote-image-lightbox figure { position: relative; width: min(400px,calc(100vw - 48px)); margin: 0; padding: 22px; border-radius: 22px; display: grid; gap: 14px; background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.32); }
.quote-image-lightbox figure img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; background: #fff; }
.quote-image-lightbox figcaption { color: #25364b; font-size: 13px; font-weight: 650; line-height: 1.35; text-align: center; }
.quote-image-lightbox-close { position: fixed; z-index: 1; top: 24px; right: 24px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(12,20,31,.55); color: #fff; font-size: 30px; line-height: 1; }
.quote-print-measure { position: fixed !important; z-index: -1000 !important; top: 0 !important; left: -20000px !important; min-height: 0 !important; overflow: visible !important; box-shadow: none !important; transform: none !important; visibility: hidden !important; }
.quote-pdf-page { position: absolute; z-index: -999; top: 0; left: 0; width: 210mm; height: auto; overflow: visible; background: #fff; pointer-events: none; }
.quote-pdf-page .quote-sheet { box-shadow: none; transform: none !important; transform-origin: top left; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.quote-pdf-page .quote-accept-action { animation: none; }
.quote-pdf-page .quote-table thead { display: table-header-group; }
.quote-pdf-page .quote-table-card, .quote-pdf-page .quote-reference-block { break-inside: auto; page-break-inside: auto; }
.quote-pdf-page .quote-sheet-header, .quote-pdf-page .quote-hero, .quote-pdf-page .quote-table tr, .quote-pdf-page .quote-reference-table tr, .quote-pdf-page .quote-total-block, .quote-pdf-page .quote-reference-heading, .quote-pdf-page .quote-reference-total, .quote-pdf-page .quote-note, .quote-pdf-page .quote-benefits-block, .quote-pdf-page .quote-sheet-footer { break-inside: avoid; page-break-inside: avoid; }
.quote-preview-layer[data-company-theme="support"] .quote-top-art img { filter: hue-rotate(52deg) saturate(1.25); }
.quote-preview-layer[data-company-theme="support"] .quote-bottom-art i:first-child { border-color: rgba(109,41,253,.1); background: radial-gradient(circle at 67% 42%,rgba(249,246,255,.6),rgba(220,205,255,.16) 54%,transparent 72%); }
.quote-preview-layer[data-company-theme="support"] .quote-bottom-art i:last-child { border-color: rgba(109,41,253,.065); }
.quote-preview-layer[data-company-theme="support"] .quote-brand-logo { width: 31mm; max-height: 22mm; object-position: left center; }
.quote-preview-layer[data-company-theme="support"] .quote-document-valid strong { color: #6d29fd; }
.quote-preview-layer[data-company-theme="support"] .quote-title-lockup > i,
.quote-preview-layer[data-company-theme="support"] .quote-benefits-heading b { background: linear-gradient(180deg,#8b54ff,#5c1fe0); }
.quote-preview-layer[data-company-theme="support"] .quote-recipient { border-color: rgba(109,41,253,.18); background: linear-gradient(145deg,rgba(252,250,255,.96),rgba(235,226,255,.88)); box-shadow: 0 6px 18px rgba(109,41,253,.08); }
.quote-preview-layer[data-company-theme="support"] .quote-recipient svg,
.quote-preview-layer[data-company-theme="support"] .quote-benefits svg,
.quote-preview-layer[data-company-theme="support"] .quote-manager-links svg { stroke: #6d29fd; }
.quote-preview-layer[data-company-theme="support"] .quote-table thead tr { background: linear-gradient(90deg,#f4efff 0%,#e8ddff 45%,#d8c7ff 100%); }
.quote-preview-layer[data-company-theme="support"] .quote-table .quote-section-row td { border-top-color: #e4dcf2; background: #faf8fd; color: #674b99; }
.quote-preview-layer[data-company-theme="support"] .quote-total-block { background: linear-gradient(90deg,#eee7ff,#fbf9ff); }
.quote-preview-layer[data-company-theme="support"] .quote-total-block > strong { background: linear-gradient(125deg,#bca0ff 0%,#8753fb 44%,#5a1ed7 100%); box-shadow: -5px 0 18px rgba(109,41,253,.18); }
.quote-preview-layer[data-company-theme="support"] .quote-benefit-icon { background: linear-gradient(145deg,#f6f2ff,#e9e0ff); }
.quote-preview-layer[data-company-theme="support"] .quote-note { border-color: #e0d5f7; border-left-color: #6d29fd; background: rgba(250,247,255,.94); }
.quote-preview-layer[data-company-theme="support"] .quote-manager { border-color: rgba(109,41,253,.18); background: linear-gradient(145deg,rgba(252,250,255,.97),rgba(235,226,255,.9)); box-shadow: 0 8px 24px rgba(109,41,253,.08); }
.quote-preview-layer[data-company-theme="support"] .quote-manager-avatar { background: linear-gradient(145deg,#eee6ff,#d8c6ff); color: #5b20d4; }
.quote-preview-layer[data-company-theme="support"] .quote-manager-links > a:hover { color: #6d29fd; }
.quote-preview-layer[data-company-theme="support"] .quote-accept-action,
.quote-preview-layer[data-company-theme="support"] .quote-messenger-choices { background: linear-gradient(112deg,#c6b0ff 0%,#986cff 24%,#6d29fd 55%,#4d16bd 82%,#a884ff 100%); box-shadow: 0 10px 26px rgba(109,41,253,.24); }
@keyframes quoteGradientFlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes quoteSheen { 0%,18% { transform: translateX(-120%); } 48%,100% { transform: translateX(120%); } }
@keyframes messengerChoicesIn { from { opacity: 0; transform: translateY(-2mm); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .quote-accept-action, .quote-accept-action::after, .quote-messenger-choices { animation: none; } .quote-accept-action b, .quote-messenger-link { transition: none; } }

.activity-filters { margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; }
.activity-help { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.activity-list { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 15px; background: #fff; list-style: none; overflow: hidden; }
.activity-list li { padding: 18px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 150px minmax(0,1fr); gap: 18px; align-items: start; }
.activity-list li.requires-attention { background: #fff7f7; box-shadow: inset 4px 0 #d94b4b; }
.activity-list li.is-focused { background: #fff7dd; box-shadow: inset 4px 0 #f0a720; animation: activityFocusPulse 1.1s ease; }
.activity-list li:last-child { border-bottom: 0; }
.activity-list time { color: var(--muted); font-size: 12px; }
.updates-intro { margin-bottom: 18px; padding: 19px 21px; border: 1px solid #cfe1f5; border-radius: 16px; display: flex; align-items: center; gap: 15px; background: linear-gradient(135deg,#f7fbff,#edf6ff); }
.updates-intro-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 23px; box-shadow: 0 8px 24px rgba(8,124,255,.12); }
.updates-intro strong { display: block; margin-bottom: 4px; font-size: 15px; }
.updates-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.updates-timeline { display: grid; gap: 14px; }
.update-card { position: relative; padding: 24px 26px 25px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 10px 32px rgba(23,26,31,.05); overflow: hidden; }
.update-card.is-latest::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); }
.update-card-meta { margin-bottom: 13px; display: flex; align-items: center; gap: 9px; }
.update-card-meta time { color: var(--muted); font-size: 12px; font-weight: 650; }
.update-card-meta span { padding: 4px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.update-card h3 { margin: 0 0 7px; font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.update-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.update-card ul { margin: 18px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.update-card li { position: relative; padding-left: 23px; color: #334047; font-size: 13px; line-height: 1.5; }
.update-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 850; }
.activity-account { font-size: 12px; font-weight: 750; }
.activity-copy { display: grid; gap: 3px; }
.activity-copy strong { font-size: 13px; }
.activity-copy span, .activity-copy small { color: var(--muted); font-size: 12px; }
@keyframes activityFocusPulse { 0% { background: #ffe9a8; } 100% { background: #fff7dd; } }

dialog { width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.26); }
dialog::backdrop { background: rgba(25,27,24,.55); backdrop-filter: blur(3px); }
dialog form { max-height: calc(100vh - 28px); padding: 27px; overflow-y: auto; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; }
.dialog-head h2 { margin: 4px 0 0; font-family: "Onest", ui-sans-serif, sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
#quote-history-dialog { padding: 24px; width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 48px); }
#quote-history-content > p { color: var(--muted); }
.dialog-fields { margin-top: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.product-image-field { margin-top: 2px; }
.product-image-upload { position: relative; min-height: 72px; padding: 14px 16px; border: 1px dashed #a9bac1; border-radius: 11px; display: grid; align-content: center; gap: 4px; background: #f7fafb; color: var(--ink); cursor: pointer; }
.product-image-upload:hover { border-color: #087cff; background: #f1f8ff; }
.product-image-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.product-image-upload strong { color: #087cff; font-size: 13px; }
.product-image-upload small { color: var(--muted); font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.product-image-requirements { grid-column: 1 / -1; margin: -2px 0 0; padding: 12px 14px; border-radius: 9px; background: #edf7fa; color: #53666e; font-size: 11px; line-height: 1.55; }
.product-image-requirements strong { color: var(--ink); }
.manager-image-field { margin-top: 2px; }
.manager-image-upload { grid-template-columns: 58px minmax(0,1fr); align-items: center; }
.manager-image-preview { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: #e7f2f5; color: #5b8797; }
.manager-image-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.manager-image-preview b { font-size: 10px; }
.manager-image-upload-copy { min-width: 0; display: grid; gap: 4px; }
.manager-image-upload-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-actions { margin-top: 26px; display: flex; justify-content: flex-end; gap: 9px; }
.form-error { min-height: 18px; margin: 12px 0 0; color: var(--danger); font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 14px 18px; border-radius: 11px; background: #171a1f; color: #fff; box-shadow: var(--shadow); font-size: 13px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .catalog-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .manager-row { grid-template-columns: 48px minmax(190px,1fr) minmax(280px,1.5fr) auto; }
  .manager-links { grid-column: 2 / 4; }
  .manager-row-actions { grid-column: 4; grid-row: 1 / 3; }
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 82px 1fr; }
  .sidebar { padding: 22px 12px; }
  .wordmark { padding: 0 0 24px; text-align: center; }
  .nav-item:not(.active) em { display: none; }
  .wordmark-logo { width: 58px; height: 58px; object-fit: contain; }
  .sidebar > .company-switcher { display: none; }
  .company-switcher-topbar { display: block; }
  .nav-item { padding: 0; justify-content: center; font-size: 0; }
  .nav-icon { width: 38px; height: 38px; font-size: 18px; }
  .nav-item em { position: absolute; margin: -30px 0 0 32px; }
  .nav-item .updates-badge:not([hidden]) { width: 9px; height: 9px; min-width: 9px; padding: 0; display: block; overflow: hidden; color: transparent; }
  .hero { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .settings-grid, .builder-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .manager-row { grid-template-columns: 48px minmax(0,1fr) auto; }
  .manager-contact-grid, .manager-links { grid-column: 2 / 3; }
  .manager-row-actions { grid-column: 3; grid-row: 1 / 4; }
  .overview-quote-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-filter-reset { width: fit-content; }
  .workspace-quote-row { min-width: 820px; padding-left: 18px; padding-right: 18px; grid-template-columns: .7fr minmax(130px,1.2fr) minmax(135px,1.2fr) .8fr .78fr 92px 108px; gap: 10px; }
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 16px; }
  .topbar > div:first-child { min-width: 0; flex: 1 1 360px; }
  .topbar-actions { min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
  .builder-shell, .builder-layout, .builder-main, .form-card, .summary-card { min-width: 0; width: 100%; }
  .builder-toolbar { top: 8px; flex-wrap: wrap; }
  .builder-toolbar > * { min-width: 0; }
  .builder-actions { min-width: 0; flex: 1 1 280px; justify-content: flex-end; }
  .builder-actions button { white-space: nowrap; }
  .workspace-quote-table { padding: 0 18px 18px; overflow: visible; }
  .workspace-quote-head { display: none; }
  .workspace-quote-row:not(.workspace-quote-head) { min-width: 0; margin-top: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; background: #fff; }
  .workspace-quote-row:not(.workspace-quote-head) > *::before { content: attr(data-label); margin-bottom: 3px; display: block; color: #8a979d; font-size: 8px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(1) { grid-column: 1; grid-row: 1; font-size: 14px; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(4) { grid-column: 1; grid-row: 4; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(5) { grid-column: 1; grid-row: 5; align-self: end; font-size: 15px; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(6) { grid-column: 2; grid-row: 1; align-self: start; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(7) { grid-column: 2; grid-row: 4 / 6; align-self: end; }
  .workspace-status { width: auto; min-width: 92px; height: 36px; }
  .workspace-row-actions button { width: 42px; height: 42px; }
}

@media (max-width: 680px) {
  .app-shell { display: block; padding-bottom: 78px; }
  .sidebar { z-index: 20; position: fixed; top: auto; bottom: 0; width: 100%; height: 74px; padding: 6px 7px; display: grid; grid-template-columns: minmax(0,5fr) minmax(0,2fr); gap: 3px; }
  .wordmark { display: none; }
  .sidebar nav { height: 100%; display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; }
  .sidebar-secondary { height: 100%; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; }
  .sidebar-foot { height: 100%; margin: 0; padding: 0; border: 0; }
  .nav-item { min-height: 58px; padding: 3px 1px; flex-direction: column; justify-content: center; gap: 2px; font-size: 0; }
  .nav-item::after { content: attr(data-mobile-label); font-size: 8px; font-weight: 700; line-height: 1; white-space: nowrap; }
  .nav-icon { width: 32px; height: 32px; font-size: 16px; }
  .nav-item em { display: none; }
  .topbar { min-height: auto; padding: 17px 18px; display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 12px; }
  .topbar > div:first-child, .topbar-actions { min-width: 0; width: 100%; }
  .topbar-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; justify-content: stretch; }
  .topbar-actions .clean-status { display: none; }
  .company-switcher-topbar, .company-switcher-topbar select { width: 100%; min-width: 0; }
  .company-switcher-topbar select { height: 38px; padding-left: 9px; font-size: 10px; }
  .topbar h1 { max-width: 100%; font-size: 26px; overflow-wrap: anywhere; }
  .topbar h1 span { white-space: normal; }
  .topbar-actions .primary { min-height: 38px; padding: 0 12px; font-size: 12px; }
  .content { padding: 18px; }
  .company-cards { grid-template-columns: 1fr; }
  .company-card { min-height: 94px; grid-template-columns: 68px minmax(0,1fr) 28px; padding: 13px; }
  .company-card-logo { width: 68px; height: 60px; }
  .hero { padding: 27px 21px; border-radius: 16px; }
  .hero-copy h2 { font-size: 38px; }
  .hero-note { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .overview-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .overview-stat { min-height: 112px; padding: 16px; }
  .overview-stat strong { font-size: 31px; }
  .overview-stat small { display: none; }
  .workspace-quotes { margin-left: -18px; margin-right: -18px; border-left: 0; border-right: 0; border-radius: 0; }
  .overview-quote-filters { padding: 0 18px 14px; grid-template-columns: 1fr; }
  .overview-filter-reset { width: 100%; }
  .workspace-quote-table { padding: 0 12px 14px; overflow: visible; }
  .workspace-quote-head { display: none; }
  .workspace-quote-row:not(.workspace-quote-head) { min-width: 0; margin-top: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; background: #fff; }
  .workspace-quote-row:not(.workspace-quote-head) > *::before { content: attr(data-label); margin-bottom: 3px; display: block; color: #8a979d; font-size: 8px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(1) { grid-column: 1; grid-row: 1; font-size: 14px; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(4) { grid-column: 1; grid-row: 4; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(5) { grid-column: 1; grid-row: 5; align-self: end; font-size: 15px; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(6) { grid-column: 2; grid-row: 1; align-self: start; }
  .workspace-quote-row:not(.workspace-quote-head) > :nth-child(7) { grid-column: 2; grid-row: 4 / 6; align-self: end; }
  .workspace-status { width: auto; min-width: 92px; height: 36px; }
  .workspace-row-actions button { width: 44px; height: 44px; }
  .metric { min-height: 110px; padding: 17px; }
  .metric strong { margin-bottom: 17px; }
  .section-head { align-items: flex-start; }
  .section-head p { display: none; }
  .empty-state { min-height: 350px; }
  .cards { grid-template-columns: 1fr; }
  .manager-page-actions { justify-content: stretch; }
  .manager-add-button { width: 100%; }
  .manager-row { padding: 17px; grid-template-columns: 42px minmax(0,1fr); gap: 13px; align-items: start; }
  .manager-avatar { width: 42px; height: 42px; border-radius: 12px; }
  .manager-contact-grid { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 11px; }
  .manager-links { grid-column: 1 / -1; }
  .manager-links a, .manager-link-empty { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .manager-row-actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-end; }
  .manager-edit-button { flex: 1; justify-content: center; }
  .catalog-filter-panel { margin-left: -18px; margin-right: -18px; border-left: 0; border-right: 0; border-radius: 0; }
  .catalog-filter { max-width: 100%; min-width: 0; white-space: normal; text-align: left; overflow-wrap: anywhere; }
  .catalog-filter-heading p { display: none; }
  .catalog-section { padding: 18px; }
  .catalog-category-head { align-items: flex-start; }
  .catalog-category-head h4, .product-search-group-title strong { min-width: 0; overflow-wrap: anywhere; }
  .form-grid, .dialog-fields { grid-template-columns: 1fr; }
  .builder-toolbar { align-items: flex-start; }
  .builder-shell, .builder-layout, .builder-main, .form-card { min-width: 0; width: 100%; }
  .builder-toolbar { top: 8px; flex-direction: column; align-items: stretch; gap: 8px; }
  .back-link { align-self: flex-start; }
  .builder-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .builder-actions button { width: 100%; padding: 0 10px; font-size: 11px; }
  .form-card { padding: 20px 17px; }
  .quote-section-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .quote-section-tab { min-width: 0; padding: 9px 4px; gap: 3px; font-size: 9px; }
  .quote-section-tab span { min-width: 18px; padding: 2px 4px; }
  .product-search-result { grid-template-columns: minmax(0,1fr) auto; }
  .product-search-result > span { grid-row: 1 / 3; }
  .product-search-result b { grid-column: 2; grid-row: 1; }
  .product-add-action, .product-result-quantity { grid-column: 2; grid-row: 2; }
  .custom-product-panel { align-items: stretch; flex-direction: column; }
  .line-item { grid-template-columns: 30px minmax(0,1fr) 38px; align-items: start; }
  .line-item .line-name-field { grid-column: 2 / 3; }
  .line-controls { grid-column: 2 / 3; grid-template-columns: 1fr; }
  .line-item .line-price-field { margin-top: 2px; }
  .line-item .remove-item { grid-column: 3; grid-row: 1; }
  .activity-filters { grid-template-columns: 1fr; }
  .price-alert-list { margin-left: 0; grid-template-columns: 1fr; }
  .price-alerts p { margin-left: 0; }
  .activity-list li { grid-template-columns: 1fr; gap: 6px; }
  .updates-intro { padding: 16px; align-items: flex-start; }
  .updates-intro-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 20px; }
  .update-card { padding: 20px 19px 21px; }
  .update-card-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .update-card h3 { font-size: 19px; }
  label.full { grid-column: auto; }
  .product-edit-icon, .product-delete-icon { width: 44px; height: 44px; }
  .toast { left: 18px; right: 18px; bottom: 88px; }
  .quote-preview-layer { padding: 0; background: #fff; }
  .quote-preview-toolbar { position: sticky; width: 100%; margin: 0; border-width: 0 0 1px; border-radius: 0; }
  .quote-preview-toolbar > div:first-child { display: none; }
  .quote-preview-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .quote-preview-actions button { width: 100%; padding: 0 8px; font-size: 10px; }
  .quote-preview-document { width: 100%; margin: 0; overflow: hidden; }
  .quote-sheet { width: 210mm; min-height: 297mm; box-shadow: none; transform-origin: top left; }
}

@page { size: A4; margin: 0; }

@media print {
  body { background: #fff; }
  body > *:not(.quote-preview-layer) { display: none !important; }
  .quote-preview-layer { position: static; inset: auto; overflow: visible; padding: 0; display: block !important; background: #fff; }
  .quote-preview-toolbar { display: none !important; }
  .quote-preview-document { width: 210mm; height: auto !important; margin: 0; overflow: visible; }
  .quote-sheet { width: var(--print-layout-width,210mm); min-height: 0; height: auto; padding: 12mm 12mm 10mm; overflow: hidden; box-shadow: none; transform: none !important; zoom: var(--print-scale,1); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .quote-accept-action { animation: none; }
  .quote-messenger-choices { display: none !important; }
  .quote-image-lightbox { display: none !important; }
  .quote-item-image { cursor: default; }
  .quote-table thead { display: table-header-group; }
  .quote-table-card, .quote-reference-block { break-inside: auto; page-break-inside: auto; }
  .quote-sheet-header, .quote-hero, .quote-table tr, .quote-reference-table tr, .quote-total-block, .quote-reference-heading, .quote-reference-total, .quote-note, .quote-benefits-block, .quote-sheet-footer { break-inside: avoid; page-break-inside: avoid; }
}
/* Server authentication */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 78% 12%, rgba(23, 126, 242, .18), transparent 30%),
    linear-gradient(145deg, #f7faff 0%, #eef4fb 100%);
}

.auth-screen[hidden] { display: none; }

.auth-card {
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid #dbe6f2;
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(23, 41, 63, .14);
}

.auth-card > img {
  display: block;
  width: min(230px, 70%);
  max-height: 76px;
  margin: 0 auto 34px;
  object-fit: contain;
}

.auth-card h1 { margin: 5px 0 10px; font-size: clamp(28px, 5vw, 38px); }
.auth-card > div > p:not(.eyebrow) { margin: 0 0 24px; color: #68788a; line-height: 1.5; }
.auth-card form { display: grid; gap: 16px; }
.auth-card label { display: grid; gap: 7px; color: #26384a; font-weight: 700; }
.auth-card input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid #c8d6e4;
  border-radius: 13px;
  background: #fff;
  color: #111b28;
  font: inherit;
}
.auth-card input:focus { border-color: #1883f2; outline: 3px solid rgba(24, 131, 242, .14); }
.auth-card button { min-height: 50px; margin-top: 4px; }
.auth-password-actions { display: flex; gap: 10px; }
.auth-password-actions button { flex: 1; }

.session-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 13px;
  border: 1px solid #d8e2eb;
  border-radius: 14px;
  background: #fff;
}
.session-user[hidden] { display: none; }
.session-user span { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.session-user button { border: 0; background: transparent; color: #647486; cursor: pointer; font: inherit; font-size: 13px; }

body.public-quote-mode .app-shell { display: none; }
.quote-messenger-choices > .quote-handoff-hint { margin: 0; max-width: 250px; font-size: 12px; line-height: 1.4; color: inherit; }
.quote-copy-message { padding: 8px; border: 1px solid currentColor; border-radius: 7px; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.max-handoff-dialog { width: min(510px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 28px; overflow: auto; color: #172030; }
.max-handoff-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.max-handoff-head img { display: block; width: 52px; height: 52px; }
.max-handoff-head .icon-button { flex: 0 0 40px; width: 40px; height: 40px; font-size: 26px; }
.max-handoff-dialog h2 { margin: 20px 0 8px; font-size: 28px; font-weight: 780; line-height: 1.15; letter-spacing: -.025em; }
.max-handoff-recipient { margin: 0; color: #53647c; font-size: 14px; line-height: 1.5; }
.max-handoff-status { margin: 18px 0; padding: 12px 14px; border-radius: 10px; color: #31506f; background: #eef4fc; font-size: 16px; font-weight: 650; line-height: 1.45; }
.max-handoff-status[data-state="copied"] { color: #176239; background: #eaf7ef; }
.max-handoff-status[data-state="manual"] { color: #84500d; background: #fff3dc; }
.max-handoff-instruction { padding: 22px 18px; border: 1px solid #cce2ff; border-radius: 16px; text-align: center; background: #edf5ff; }
.max-handoff-shortcut { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; color: #1766d6; font-size: 24px; }
.max-handoff-shortcut kbd { min-width: 62px; padding: 10px 16px; border: 1px solid #c1d8f5; border-bottom-width: 4px; border-radius: 10px; background: #fff; font-family: inherit; font-size: 28px; font-weight: 750; line-height: 1.1; }
.max-handoff-instruction strong { display: block; font-size: 18px; font-weight: 750; line-height: 1.35; }
.max-handoff-instruction p { margin: 12px 0 0; color: #53647c; font-size: 14px; line-height: 1.5; }
.max-handoff-message { margin-top: 18px; }
.max-handoff-message summary { color: #31567f; font-size: 14px; cursor: pointer; }
.max-handoff-message textarea { width: 100%; min-height: 150px; margin-top: 12px; padding: 12px; border: 1px solid #c7d5e8; border-radius: 10px; color: #172030; background: #fff; font: 14px/1.5 Arial, sans-serif; resize: vertical; }
.max-handoff-actions { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; margin-top: 24px; }
.max-handoff-actions > * { min-height: 48px; padding: 12px; border-radius: 10px; text-align: center; font: 650 16px/1.3 Arial, sans-serif; }
.max-handoff-open { display: flex; align-items: center; justify-content: center; color: #fff; background: #126be5; text-decoration: none; }
.max-handoff-open:hover { background: #075dcc; }
.max-handoff-open[aria-disabled="true"] { opacity: .55; cursor: progress; }
.max-handoff-open:focus-visible, .max-handoff-message summary:focus-visible { outline: 3px solid #8060ef; outline-offset: 3px; }
@media (max-width: 520px) {
  .max-handoff-dialog { padding: 22px 18px; }
  .max-handoff-dialog h2 { font-size: 25px; }
  .max-handoff-actions { grid-template-columns: 1fr; }
  .max-handoff-open { grid-row: 1; }
}
@media print { .max-handoff-dialog { display: none !important; } }
body.public-quote-mode .quote-preview-toolbar [data-preview-close],
body.public-quote-mode .quote-preview-toolbar [data-preview-link] { display: none; }

@media (max-width: 720px) {
  .auth-screen { padding: 12px; }
  .auth-card { padding: 26px 20px; border-radius: 22px; }
  .session-user span { display: none; }
}
