:root {
  --navy: #0d1b2a;
  --navy-2: #14263a;
  --brand: #246bfd;
  --brand-dark: #1857d4;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #182230;
  --muted: #667085;
  --subtle: #98a2b3;
  --border: #e4e9f0;
  --green: #12a16c;
  --shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 8px 28px rgba(16, 24, 40, .05);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font: 14px/1.5 Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
svg { display: block; fill: currentColor; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 248px; display: flex; flex-direction: column; padding: 26px 16px 20px; color: #c9d3df; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 38px; text-decoration: none; color: #fff; }
.brand-logo { width: 44px; height: 44px; flex: 0 0 auto; display: block; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { color: #fff; font-size: 16px; line-height: 1.15; letter-spacing: .8px; }
.brand-copy small { margin-top: 3px; color: #8fa1b5; font-size: 10px; letter-spacing: .15px; white-space: nowrap; }
.nav-group { display: flex; flex-direction: column; gap: 5px; }
.nav-label { padding: 0 12px 8px; color: #6e8298; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.nav-label-spaced { margin-top: 22px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 9px; color: #aebdcb; font-size: 13px; font-weight: 600; text-decoration: none; transition: .18s ease; }
.nav-item svg { width: 19px; height: 19px; opacity: .82; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: #1d3d66; box-shadow: inset 3px 0 var(--brand); }
.nav-item.active svg { color: #6fa1ff; opacity: 1; }
.sidebar-footer { margin-top: auto; padding: 18px 12px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.version-row { display: flex; align-items: center; gap: 8px; color: #aebdcb; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #31c48d; box-shadow: 0 0 0 3px rgba(49,196,141,.12); }
.version-text { margin-top: 7px; color: #60758b; font-size: 10px; }

.workspace { min-height: 100vh; margin-left: 248px; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .25px; }
.user-area { display: flex; align-items: center; gap: 12px; }
.user-meta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.user-meta strong { font-size: 13px; }
.user-meta span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #3e7cff, #245ac7); font-size: 13px; font-weight: 750; }
.signout { width: 34px; height: 34px; display: grid; place-items: center; margin-left: 4px; border-radius: 8px; color: #7b8794; text-decoration: none; transition: .18s ease; }
.signout svg { width: 19px; height: 19px; }
.signout:hover { color: #d92d20; background: #fff1f0; }
.mobile-menu { display: none; border: 0; background: none; color: var(--text); cursor: pointer; }
.mobile-menu svg { width: 24px; height: 24px; }
.content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 36px 38px 58px; }

.page-heading { margin-bottom: 28px; }
.page-heading h1 { margin: 3px 0 6px; font-size: 28px; line-height: 1.25; letter-spacing: -.7px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.heading-with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-kicker { color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 0; border-radius: 9px; font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; transition: .18s ease; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 3px 8px rgba(36,107,253,.2); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 5px 12px rgba(36,107,253,.25); }
.btn-wide { width: 100%; }

.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card { position: relative; min-height: 208px; padding: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(16,24,40,.02); text-decoration: none; transition: .2s ease; }
.module-card.featured:hover { border-color: #a9c4ff; transform: translateY(-2px); box-shadow: var(--shadow); }
.module-card h3 { margin: 22px 0 6px; font-size: 16px; letter-spacing: -.2px; }
.module-card p { max-width: 300px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.module-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; }
.module-icon svg { width: 22px; height: 22px; }
.module-icon.blue { color: #246bfd; background: #edf3ff; }.module-icon.amber { color: #d77a06; background: #fff5e5; }.module-icon.red { color: #e25252; background: #fff0f0; }.module-icon.violet { color: #7655d8; background: #f3efff; }.module-icon.teal { color: #178a8a; background: #eaf8f8; }.module-icon.green { color: #188b60; background: #eaf8f1; }
.module-status { position: absolute; top: 22px; right: 20px; padding: 4px 8px; border-radius: 99px; color: #7b8794; background: #f2f4f7; font-size: 9px; font-weight: 750; letter-spacing: .5px; text-transform: uppercase; }
.module-status.live { display: flex; align-items: center; gap: 5px; color: #137a54; background: #eaf8f1; }.module-status.live i { width: 5px; height: 5px; border-radius: 50%; background: #20ad78; }
.module-link { position: absolute; bottom: 20px; left: 22px; color: var(--brand); font-size: 12px; font-weight: 700; }
.module-link b { margin-left: 5px; }
.soon { background: #fbfcfe; }
.soon h3, .soon p, .soon .module-icon { opacity: .78; }

.section-block { margin-top: 36px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2 { margin: 0 0 3px; font-size: 18px; letter-spacing: -.3px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.text-link { color: var(--brand); font-size: 12px; font-weight: 700; text-decoration: none; }
.text-link b { margin-left: 4px; }
.table-card, .panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.table-head, .project-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr .8fr 34px; align-items: center; column-gap: 20px; padding: 0 22px; }
.table-head { height: 42px; color: var(--subtle); background: #f9fafc; border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.project-row { min-height: 70px; border-bottom: 1px solid #edf0f4; }
.project-row:last-child { border-bottom: 0; }
.project-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.project-main > div, .project-list-info, .user-list-info { display: flex; flex-direction: column; min-width: 0; }
.project-main strong, .project-list-info strong, .user-list-info strong { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.project-main small, .project-list-info small, .user-list-info small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.project-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #3263bd; background: #edf3ff; font-size: 12px; font-weight: 800; }
.cell-primary { overflow: hidden; color: #475467; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.badge { width: fit-content; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge i { width: 5px; height: 5px; border-radius: 50%; }
.badge-open { color: #137a54; background: #eaf8f1; }.badge-open i { background: #20ad78; }
.badge-muted { color: #667085; background: #f2f4f7; }.badge-muted i { background: #98a2b3; }
.row-action { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: #667085; text-decoration: none; }
.row-action:hover { color: var(--brand); background: #edf3ff; }
.empty-state { padding: 54px 24px; text-align: center; }.empty-state.compact { padding: 72px 24px; }
.empty-state .empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--brand); background: #edf3ff; font-size: 22px; }
.empty-state h3 { margin: 0 0 5px; font-size: 15px; }.empty-state p { margin: 0 auto 17px; color: var(--muted); font-size: 12px; }

.split-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: start; gap: 22px; }
.panel { overflow: hidden; }
.sticky-panel { position: sticky; top: 24px; padding-bottom: 24px; }
.panel-heading { display: flex; align-items: center; gap: 12px; padding: 21px 22px 17px; }
.panel-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.2px; }.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--brand); background: #edf3ff; }.panel-icon svg { width: 19px; height: 19px; }
.panel-heading-row { justify-content: space-between; border-bottom: 1px solid var(--border); }
.count-pill { min-width: 28px; height: 24px; display: grid; place-items: center; padding: 0 8px; border-radius: 99px; color: #536274; background: #f2f4f7; font-size: 10px; font-weight: 750; }
.form-stack { display: flex; flex-direction: column; gap: 16px; padding: 2px 22px; }
.field label { display: block; margin-bottom: 6px; color: #344054; font-size: 11.5px; font-weight: 700; }.field label em { color: #e43c3c; font-style: normal; }
.field input, .field select, textarea { width: 100%; border: 1px solid #d9dfe8; border-radius: 8px; outline: none; color: var(--text); background: #fff; transition: .18s ease; }
.field input, .field select { height: 42px; padding: 0 12px; }
.field input::placeholder, textarea::placeholder { color: #a6afbc; }
.field input:focus, .field select:focus, textarea:focus { border-color: #80a9ff; box-shadow: 0 0 0 3px rgba(36,107,253,.1); }
.project-list-row { display: flex; align-items: center; min-height: 72px; padding-right: 12px; border-bottom: 1px solid #edf0f4; transition: .15s ease; }
.project-list-row:last-child { border-bottom: 0; }.project-list-row:hover { background: #f8faff; }
.project-open-main { min-width: 0; flex: 1; display: grid; grid-template-columns: 38px minmax(180px, 1fr) 110px 80px 24px; align-items: center; gap: 12px; min-height: 72px; padding: 0 10px 0 20px; text-decoration: none; }
.project-delete-form, .quote-delete-form { flex: 0 0 auto; }
.project-delete-button, .quote-delete-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #98a2b3; background: transparent; cursor: pointer; transition: .15s ease; }
.project-delete-button svg, .quote-delete-button svg { width: 17px; height: 17px; }.project-delete-button:hover, .quote-delete-button:hover { color: #d92d20; background: #fff0ef; }
.project-market { color: var(--muted); font-size: 11.5px; }.chevron { color: #98a2b3; font-size: 16px; }
.user-row { display: grid; grid-template-columns: 38px minmax(140px,1fr) 100px 80px minmax(132px,auto); align-items: center; gap: 12px; min-height: 70px; padding: 0 20px; border-bottom: 1px solid #edf0f4; }.user-row:last-child { border-bottom: 0; }
.avatar-soft { width: 34px; height: 34px; color: #4b64a5; background: #eef2ff; }.role-badge { width: fit-content; padding: 4px 8px; border-radius: 6px; color: #475467; background: #f2f4f7; font-size: 10px; font-weight: 700; }
.user-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; }.user-actions form { margin:0; }.user-action-button { min-width:48px; height:30px; padding:0 9px; border:1px solid #f2c4bf; border-radius:7px; color:#b42318; background:#fff7f6; font-size:10px; font-weight:750; cursor:pointer; }.user-action-button:hover { color:#fff; border-color:#d92d20; background:#d92d20; }.user-action-button.is-restore { color:#137a54; border-color:#a8dec9; background:#f0fbf6; }.user-action-button.is-restore:hover { color:#fff; border-color:#159567; background:#159567; }.user-action-button.is-delete { color:#7a271a; border-color:#f3b7b2; }.user-delete-disabled { color:#98a2b3; font-size:9px; white-space:nowrap; }

.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #98a2b3; font-size: 11px; }.breadcrumb a { color: #667085; text-decoration: none; }.breadcrumb a:hover { color: var(--brand); }
.inquiry-heading { align-items: center; }.inquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.inquiry-panel { min-height: 610px; }.inquiry-panel .panel-heading { border-bottom: 1px solid var(--border); }
.blue-icon { color: var(--brand); background: #edf3ff; }.green-icon { color: #188b60; background: #eaf8f1; }
.inquiry-form { padding: 20px 22px; }.inquiry-form textarea { display: block; min-height: 445px; resize: vertical; padding: 15px; line-height: 1.65; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }.privacy-note { display: flex; align-items: center; gap: 6px; color: #98a2b3; font-size: 10.5px; }.privacy-note svg { width: 14px; height: 14px; }
.analysis-result { min-height: 510px; margin: 0; padding: 22px; overflow: auto; color: #344054; background: #fff; font: 12.5px/1.72 Inter, "Segoe UI", Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.analysis-heading { justify-content: space-between; gap: 16px; }
.panel-title-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
.analysis-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.btn-secondary { color: #475467; background: #fff; border: 1px solid #d9dfe8; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.btn-secondary:hover { color: var(--brand); border-color: #a9c4ff; background: #f7f9ff; }
.btn-small { min-height: 34px; padding: 0 11px; font-size: 11px; }
.btn-small svg { width: 15px; height: 15px; }
.btn-secondary.copy-success { color: #137a54; border-color: #9cdec4; background: #eaf8f1; }
.btn-secondary.copy-error { color: #b42318; border-color: #f5b7b1; background: #fff3f2; }
.analysis-empty { min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px; text-align: center; }.analysis-empty > span { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 14px; color: #7ea4f4; background: #f0f5ff; }.analysis-empty svg { width: 25px; height: 25px; }.analysis-empty h3 { margin: 0 0 7px; font-size: 15px; }.analysis-empty p { max-width: 340px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.auth-page { min-height: 100vh; background: #fff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.05fr) minmax(480px, .95fr); }
.auth-visual { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 46px 56px; color: #fff; background: radial-gradient(circle at 15% 15%, rgba(60,123,255,.22), transparent 30%), radial-gradient(circle at 90% 70%, rgba(43,108,176,.25), transparent 36%), #0d1b2a; }
.auth-visual::after { content: ""; position: absolute; right: -130px; bottom: -140px; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.015); }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }.brand-logo-auth { width: 54px; height: 54px; }
.auth-brand .brand-copy small { color: #90a4b9; }
.auth-message { position: relative; z-index: 1; max-width: 570px; margin: auto 0; padding: 80px 0; }.auth-kicker { color: #75a4ff; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.auth-message h1 { margin: 16px 0 18px; font-size: clamp(38px, 4vw, 58px); line-height: 1.08; letter-spacing: -2px; }.auth-message p { max-width: 500px; margin: 0; color: #aebdcb; font-size: 15px; line-height: 1.75; }
.auth-foot { position: relative; z-index: 1; color: #6f8399; font-size: 10px; letter-spacing: .3px; }
.auth-form-panel { display: grid; place-items: center; padding: 50px; }.login-box { width: 100%; max-width: 390px; }.login-box h2 { margin: 6px 0 7px; font-size: 26px; letter-spacing: -.6px; }.login-box > .muted { margin: 0 0 28px; color: var(--muted); font-size: 13px; }.login-box .form-stack { padding: 0; gap: 18px; }.login-box .btn { margin-top: 4px; }.login-help { margin: 24px 0 0; color: #98a2b3; font-size: 10.5px; text-align: center; }
.alert { margin: 0 0 20px; padding: 10px 12px; border-radius: 8px; font-size: 12px; }.alert-error { color: #a8251a; background: #fff0ef; border: 1px solid #ffd3cf; }.alert-success { color: #137a54; background: #eaf8f1; border: 1px solid #b8e5d1; }.project-alert, .quote-alert { margin-top: -12px; }
.mobile-auth-brand { display: none; }
.mobile-overlay { display: none; }

/* Quotation module */
.amber-icon { color: #d77a06; background: #fff5e5; }
.badge-draft { color: #9a5b09; background: #fff4df; }.badge-draft i { background: #e49a2d; }
.quote-list-head { display: grid; grid-template-columns: 1.05fr 1.5fr 1fr 1fr 80px 24px 34px; align-items: center; gap: 16px; height: 42px; padding: 0 12px 0 22px; color: var(--subtle); background: #f9fafc; border-bottom: 1px solid var(--border); font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.quote-list-row { min-height: 72px; display: flex; align-items: center; padding-right: 12px; border-bottom: 1px solid #edf0f4; color: #475467; font-size: 11.5px; transition: .15s ease; }
.quote-open-main { min-width: 0; flex: 1; display: grid; grid-template-columns: 1.05fr 1.5fr 1fr 1fr 80px 24px; align-items: center; gap: 16px; min-height: 72px; padding: 0 10px 0 22px; color: #475467; text-decoration: none; }
.quote-list-row:last-child { border-bottom: 0; }.quote-list-row:hover { background: #f8faff; }
.quote-number, .quote-project { display: flex; flex-direction: column; min-width: 0; }.quote-number strong, .quote-project strong { overflow: hidden; color: var(--text); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }.quote-number small, .quote-project small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.quote-amount { color: #1f5fbd; font-weight: 750; }
.quote-form-section { margin-bottom: 18px; overflow: visible; }
.quote-fields { padding: 4px 22px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }.field-span-2 { grid-column: 1 / -1; }
.input-suffix { position: relative; }.input-suffix input { padding-right: 42px; }.input-suffix span { position: absolute; top: 0; right: 12px; height: 42px; display: flex; align-items: center; color: var(--muted); font-size: 11px; }
.quote-items-wrap { padding: 0 22px; overflow-x: auto; }
.quote-items-head, .quote-item-row { min-width: 850px; display: grid; grid-template-columns: 2fr 1.35fr 90px 105px 120px 110px 28px; align-items: center; gap: 9px; }
.quote-items-head { padding: 9px 8px; color: var(--subtle); background: #f9fafc; border: 1px solid var(--border); border-radius: 8px 8px 0 0; font-size: 9px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }
.quote-items-head em { color: #e43c3c; font-style: normal; }
.quote-item-row { padding: 10px 8px; border: 1px solid var(--border); border-top: 0; background: #fff; }
.quote-item-row:last-child { border-radius: 0 0 8px 8px; }
.quote-item-row input, .quote-item-row select { width: 100%; height: 38px; padding: 0 9px; border: 1px solid #d9dfe8; border-radius: 7px; outline: none; color: var(--text); background: #fff; font-size: 11px; }.quote-item-row input:focus, .quote-item-row select:focus { border-color: #80a9ff; box-shadow: 0 0 0 3px rgba(36,107,253,.08); }
.line-total { color: #344054; font-size: 12px; font-weight: 750; text-align: right; }.remove-item { width: 28px; height: 28px; border: 0; border-radius: 6px; color: #98a2b3; background: transparent; font-size: 19px; cursor: pointer; }.remove-item:hover { color: #d92d20; background: #fff1f0; }
.optional-section { border-color: #ddd5f6; }.violet-icon { color: #7655d8; background: #f3efff; }
.spare-items-wrap { padding: 0 22px 24px; overflow-x: auto; }.spare-items-head,.spare-item-row { min-width: 900px; display: grid; align-items: center; gap: 9px; }.spare-items-head.cost-enabled,.spare-item-row.cost-enabled { min-width: 1510px; grid-template-columns: 1.55fr 1.25fr 72px 88px 110px 100px 100px 105px 110px 145px 28px; }.spare-items-head { padding: 9px 8px; color: var(--subtle); background: #faf9fe; border: 1px solid #e7e1f7; border-radius: 8px 8px 0 0; font-size: 9px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }.spare-item-row { padding: 10px 8px; border: 1px solid #e7e1f7; border-top: 0; background: #fff; }.spare-item-row:last-child { border-radius: 0 0 8px 8px; }.spare-item-row input,.spare-item-row select { width: 100%; height: 38px; padding: 0 9px; border: 1px solid #d9dfe8; border-radius: 7px; outline: none; color: var(--text); background: #fff; font-size: 11px; }.spare-item-row input:focus,.spare-item-row select:focus { border-color: #a892e6; box-shadow: 0 0 0 3px rgba(118,85,216,.08); }.spare-line-total,.spare-converted-cost { color: #344054; font-size: 11px; font-weight: 750; text-align: right; }.remove-spare { width: 28px; height: 28px; border: 0; border-radius: 6px; color: #98a2b3; background: transparent; font-size: 19px; cursor: pointer; }.remove-spare:hover { color: #d92d20; background: #fff1f0; }
.image-editor-body { padding: 0 22px 24px; }.product-image-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }.product-image-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }.image-thumb { height: 132px; overflow: hidden; border-radius: 7px; background: #eef2f7; }.image-thumb img { width: 100%; height: 100%; object-fit: cover; }.image-toggle { display: flex; align-items: center; gap: 6px; color: #344054; font-size: 11px; font-weight: 700; }.image-caption { height: 36px; padding: 0 9px; border: 1px solid #d9dfe8; border-radius: 7px; color: var(--text); font-size: 11px; }.remove-image { align-self: flex-end; border: 0; color: #b42318; background: transparent; font-size: 10px; cursor: pointer; }.custom-image-upload { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 14px 16px; border: 1px dashed #a9b9cd; border-radius: 10px; background: #f9fbfe; }.custom-image-upload label { display: flex; flex-direction: column; gap: 3px; color: #344054; font-size: 12px; }.custom-image-upload label span,.new-image-name { color: var(--muted); font-size: 10px; }.custom-image-upload input { max-width: 420px; }.new-image-grid { margin-top: 14px; }.new-upload-card { border-color: #b9d2ff; background: #f8faff; }
.quote-adjustments { display: grid; grid-template-columns: 1fr 340px; padding: 16px 22px 22px; }
.quote-summary-edit { padding: 14px 16px; border-radius: 10px; background: #f8fafc; }.quote-summary-edit label, .quote-total { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #667085; font-size: 11px; }.quote-summary-edit label strong { color: #344054; font-size: 12px; }.quote-summary-edit input { width: 125px; height: 32px; padding: 0 9px; border: 1px solid #d9dfe8; border-radius: 6px; text-align: right; }
.quote-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid #d7dde6; color: #344054; font-weight: 750; }.quote-total strong { color: var(--brand); font-size: 17px; }.quote-total b { font-size: 10px; }
.form-submit-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 5px 0 40px; }
.cad-font-scale { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; font-weight:700; }.cad-font-scale select { min-width:150px; height:40px; padding:0 32px 0 11px; border:1px solid var(--border); border-radius:8px; color:var(--ink); background:#fff; }
.heading-actions { display: flex; align-items: center; gap: 12px; }
.quote-view-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 20px; }
.quote-preview-card { padding: 28px; }
.quote-preview-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 22px; border-bottom: 3px solid #173b63; }.quote-preview-head > div:first-child span { color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: 1.1px; }.quote-preview-head h2 { margin: 2px 0 0; color: #173b63; font-size: 23px; }.quote-no { display: flex; flex-direction: column; align-items: flex-end; }.quote-no small { color: var(--muted); font-size: 9px; }.quote-no strong { margin: 3px 0; color: #173b63; font-size: 14px; }
.quote-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px 0; }.quote-parties > div:last-child { text-align: right; }.quote-parties small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; }.quote-parties strong, .quote-parties span { display: block; }.quote-parties strong { font-size: 14px; }.quote-parties span { color: #667085; font-size: 11px; }
.quote-table-head, .quote-table-row { display: grid; grid-template-columns: 28px minmax(145px,1fr) 68px 105px 105px; align-items: center; gap: 8px; }.quote-table-head { padding: 9px 8px; color: #fff; background: #173b63; font-size: 9px; font-weight: 750; }.quote-table-row { min-height: 58px; padding: 9px 8px; border-bottom: 1px solid var(--border); color: #475467; font-size: 10.5px; }.quote-table-row > span:nth-child(n+3), .quote-table-head > span:nth-child(n+3) { text-align: right; }.quote-table-row strong, .quote-table-row small { display: block; }.quote-table-row strong { color: var(--text); font-size: 11.5px; }.quote-table-row small { color: var(--muted); }
.quote-view-total { display: grid; grid-template-columns: 1fr 300px; padding: 16px 0 4px; }.quote-view-total p { display: flex; justify-content: space-between; margin: 0; padding: 5px 0; color: #667085; font-size: 11px; }.quote-view-total p b { color: #344054; }.quote-view-total .grand-total { margin-top: 6px; padding-top: 11px; border-top: 2px solid #173b63; color: #173b63; font-weight: 750; }.quote-view-total .grand-total strong { font-size: 16px; }
.quote-terms-card { position: sticky; top: 24px; }.terms-list { margin: 0; padding: 0 22px 20px; }.terms-list > div { padding: 11px 0; border-bottom: 1px solid #edf0f4; }.terms-list > div:last-child { border-bottom: 0; }.terms-list dt { color: var(--muted); font-size: 9.5px; }.terms-list dd { margin: 3px 0 0; color: #344054; font-size: 11.5px; font-weight: 650; }.preline { white-space: pre-line; }

/* Supplier quote import and internal-cost review */
.import-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: start; gap: 20px; }
.upload-panel { padding-bottom: 24px; }.import-form { display: flex; flex-direction: column; gap: 18px; padding: 4px 22px; }.import-alert { margin: 0 22px 16px; }
.drop-zone { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #a9b9cd; border-radius: 12px; color: #344054; background: #f9fbfe; cursor: pointer; transition: .18s ease; }.drop-zone:hover { border-color: var(--brand); background: #f4f7ff; }.drop-zone input { position: absolute; opacity: 0; pointer-events: none; }.drop-zone small { color: var(--muted); }.drop-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 12px; color: var(--brand); background: #eaf1ff; font-size: 23px; }
.flow-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0 22px 22px; list-style: none; }.flow-list li { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }.flow-list li:last-child { border-bottom: 0; }.flow-list b { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #1d5bd1; background: #eaf1ff; font-size: 11px; }.flow-list div { display: flex; flex-direction: column; }.flow-list strong { font-size: 12.5px; }.flow-list span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.source-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid #b9d2ff; border-radius: 11px; background: #f4f8ff; color: #526071; font-size: 11px; }.source-banner > div { display: flex; align-items: center; gap: 9px; min-width: 0; }.source-banner strong { overflow: hidden; color: #26354a; text-overflow: ellipsis; white-space: nowrap; }.source-banner small { color: var(--muted); }.source-badge { padding: 4px 8px; border-radius: 99px; color: #1659d2; background: #dfeaff; font-size: 9px; font-weight: 800; }
.internal-section { border-color: #f0d4aa; background: #fffdf9; }.internal-section .panel-heading { position: relative; }.internal-only { margin-left: auto; padding: 4px 8px; border-radius: 99px; color: #a25d08; background: #fff0d5; font-size: 9px; font-weight: 800; }.cost-enabled.quote-items-head,.cost-enabled.quote-item-row { min-width: 1580px; grid-template-columns: 1.7fr 1.55fr 1.05fr 72px 88px 110px 100px 100px 105px 110px 145px 28px; }.cost-label { color: #b96a08; }.cost-input { color: #9a5b09!important; border-color: #efd7b0!important; background: #fffaf2!important; }.sale-input { color: #1659d2!important; border-color: #b9d2ff!important; background: #f7faff!important; }.wide-suffix input { padding-right: 78px; }.percent-input { position: relative; }.percent-input input { padding-right: 26px; }.percent-input span { position: absolute; right: 9px; top: 0; height: 38px; display: flex; align-items: center; color: #9a5b09; font-size: 10px; }.converted-cost { color: #344054; font-size: 11px; font-weight: 750; text-align: right; }.suggested-price { height: 34px; padding: 0 8px; border: 1px solid #b9d2ff; border-radius: 7px; color: #1659d2; background: #f4f8ff; font-size: 11px; font-weight: 800; cursor: pointer; }.suggested-price:hover { background: #e8f0ff; }.line-finance { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; gap: 2px; }.line-finance small { max-width: 140px; color: #667085; font-size: 8.5px; white-space: nowrap; }
.quote-side-stack { display: flex; flex-direction: column; gap: 16px; }.quote-side-stack .quote-terms-card { position: static; }.internal-cost-card { border-color: #f0d4aa; background: #fffdf9; }.cost-value { color: #a25d08!important; font-size: 15px!important; }
.technical-preview { margin-top: 20px; }.technical-preview .panel-heading { border-bottom: 1px solid var(--border); }.technical-preview pre { margin: 0; padding: 20px 22px 24px; color: #344054; background: #fff; font: 12px/1.7 Inter, "Segoe UI", Arial, sans-serif; white-space: pre-wrap; }
.optional-preview-list { padding: 0 22px 16px; }.optional-preview-list > div { display: grid; grid-template-columns: minmax(180px,1.5fr) 1fr 100px 130px; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); color: #667085; font-size: 11px; }.optional-preview-list > div:last-child { border-bottom: 0; }.optional-preview-list strong { color: var(--text); }

/* Drawing management */
.drawing-filter select { min-width: 280px; height: 42px; padding: 0 12px; border: 1px solid #d9dfe8; border-radius: 9px; color: #344054; background: #fff; }
.drawing-layout { display: grid; grid-template-columns: 350px minmax(0,1fr); align-items: start; gap: 22px; }
.drawing-upload-panel { padding-bottom: 24px; }.compact-grid { gap: 10px; }
.drawing-drop { min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px; border: 1.5px dashed #a9b9cd; border-radius: 10px; color: var(--brand); background: #f8faff; text-align: center; cursor: pointer; }.drawing-drop span { max-width: 260px; overflow: hidden; color: var(--muted); font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }.drawing-drop:hover { border-color: var(--brand); background: #f1f6ff; }
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; }
.drawing-library { min-height: 530px; }.drawing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 18px; }
.drawing-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: #fff; transition: .18s ease; }.drawing-card:hover { border-color: #b9d2ff; box-shadow: 0 8px 24px rgba(16,24,40,.07); transform: translateY(-1px); }
.drawing-preview { height: 155px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#f5f7fb,#eaf0f7); text-decoration: none; }.drawing-preview img { width: 100%; height: 100%; object-fit: cover; }.drawing-file-icon { width: 72px; height: 82px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #7655d8; box-shadow: 0 7px 18px rgba(118,85,216,.2); font-size: 14px; font-weight: 850; letter-spacing: .8px; }.drawing-file-icon.pdf { background: #df4b4b; box-shadow: 0 7px 18px rgba(223,75,75,.2); }.drawing-file-icon.cad { background: #526a86; box-shadow: 0 7px 18px rgba(82,106,134,.2); }
.drawing-card-body { padding: 14px; }.drawing-card-top,.drawing-meta,.drawing-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.drawing-card-top small,.drawing-meta { color: var(--muted); font-size: 9.5px; }.drawing-category { padding: 3px 7px; border-radius: 99px; color: #38598a; background: #edf3ff; font-size: 9px; font-weight: 750; }.category-supplier { color: #966006; background: #fff4df; }.category-internal { color: #674bb5; background: #f3efff; }.category-final { color: #137a54; background: #eaf8f1; }
.drawing-card h3 { margin: 10px 0 2px; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }.drawing-card-body > p { margin: 0; overflow: hidden; color: var(--muted); font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }.drawing-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }.drawing-card dl div { padding: 7px 8px; border-radius: 7px; background: #f8fafc; }.drawing-card dt { color: var(--subtle); font-size: 8.5px; }.drawing-card dd { margin: 2px 0 0; overflow: hidden; color: #344054; font-size: 10.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }.drawing-card-body .drawing-notes { margin: 0 0 11px; padding: 8px; color: #667085; background: #fbfcfe; white-space: normal; line-height: 1.45; }.drawing-meta { padding-top: 10px; border-top: 1px solid #edf0f4; }.drawing-actions { justify-content: flex-start; margin-top: 12px; }.drawing-actions form { margin-left: auto; }.drawing-delete { min-height: 32px; padding: 0 8px; border: 0; color: #b42318; background: transparent; font-size: 10px; cursor: pointer; }.drawing-delete:hover { border-radius: 6px; background: #fff1f0; }
.drawing-job-status { padding: 6px 10px; border-radius: 99px; color: #526071; background: #eef2f6; font-size: 10px; font-weight: 800; }.status-ready_to_export,.status-ready_to_redact { color: #1659d2; background: #eaf1ff; }.status-completed { color: #137a54; background: #eaf8f1; }.status-error { color: #b42318; background: #fff1f0; }
.drawing-review-panel { overflow: hidden; }.cad-text-head,.cad-text-row { display: grid; grid-template-columns: 190px minmax(220px,1fr) minmax(260px,1.15fr); gap: 14px; align-items: center; }.cad-text-head { padding: 10px 18px; color: var(--subtle); background: #f8fafc; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 9px; font-weight: 800; }.cad-text-row { min-height: 78px; padding: 10px 18px; border-bottom: 1px solid #edf0f4; }.cad-text-row:last-child { border-bottom: 0; }.cad-text-row > span { display: flex; flex-direction: column; }.cad-text-row strong { font-size: 11px; }.cad-text-row small { color: var(--muted); font-size: 9px; }.cad-text-row pre { margin: 0; color: #344054; font: 11px/1.5 "Segoe UI",Arial,sans-serif; white-space: pre-wrap; }.cad-text-row textarea { width: 100%; min-height: 54px; padding: 8px; border: 1px solid #b9d2ff; border-radius: 7px; color: #173b63; background: #f8faff; font-size: 11px; resize: vertical; }
.workflow-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 4px 22px 22px; }.workflow-steps > div { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 9px; background: #fbfcfe; }.workflow-steps b { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #667085; background: #eef2f6; font-size: 10px; }.workflow-steps .active { border-color: #b9d2ff; background: #f4f8ff; }.workflow-steps .active b { color: #fff; background: var(--brand); }.workflow-steps span { display: flex; flex-direction: column; }.workflow-steps strong { font-size: 11px; }.workflow-steps small { margin-top: 2px; color: var(--muted); font-size: 9px; }.customer-drawing-notice { margin: 0 22px 22px; padding: 14px; border-radius: 9px; color: #526071; background: #fff8ea; font-size: 11px; line-height: 1.65; }.completed-output { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 20px 22px; }.completed-output > div { display: flex; align-items: center; gap: 12px; }.completed-output h2 { margin: 0 0 3px; font-size: 15px; }.completed-output p { margin: 0; color: var(--muted); font-size: 11px; }
.cad-translation-cell { min-width: 0; }.cad-translation-cell textarea { display: block; }.cad-remove-option { display: flex; flex-direction: row !important; align-items: center; gap: 7px; margin-top: 7px; color: #b42318; font-size: 9.5px; font-weight: 700; cursor: pointer; }.cad-remove-option input { width: 14px; height: 14px; margin: 0; accent-color: #d92d20; }
.drawing-progress-card { margin: -2px 0 20px; padding: 15px 18px; border: 1px solid #b9d2ff; border-radius: 11px; background: #f7faff; box-shadow: 0 4px 14px rgba(30,99,221,.05); }.drawing-progress-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: #173b63; font-size: 11px; }.drawing-progress-meta span { color: var(--brand); font-weight: 850; }.drawing-progress-track { height: 9px; overflow: hidden; border-radius: 99px; background: #e5edfa; }.drawing-progress-track > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#1e6bff,#55a0ff); transition: width .45s ease; }.drawing-progress-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 9.5px; }
.drawing-page-jump { position: fixed; right: 22px; bottom: 24px; z-index: 30; display: flex; flex-direction: column; gap: 8px; }.drawing-page-jump button { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid #d7e0ed; border-radius: 12px; color: #315272; background: rgba(255,255,255,.96); box-shadow: 0 7px 22px rgba(16,24,40,.12); cursor: pointer; transition: .18s ease; }.drawing-page-jump button:hover { color: #fff; border-color: var(--brand); background: var(--brand); transform: translateY(-1px); }.drawing-page-jump span { font-size: 17px; line-height: 15px; }.drawing-page-jump small { margin-top: 3px; font-size: 8px; font-weight: 750; }
.scan-review-panel { overflow:hidden; }.scan-preview-list { display:grid; gap:18px; padding:18px; background:#eef2f7; }.scan-preview-item { width:100%; max-width:1180px; margin:0 auto; }.scan-preview-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; color:#344054; font-size:11px; }.scan-clear-page { border:0; color:#b42318; background:transparent; font-size:10px; font-weight:700; cursor:pointer; }.scan-preview-sheet { position:relative; width:100%; overflow:hidden; border:1px solid #cfd8e6; background:#fff; box-shadow:0 8px 24px rgba(16,24,40,.09); line-height:0; cursor:crosshair; touch-action:none; user-select:none; }.scan-preview-sheet img { display:block; width:100%; height:auto; pointer-events:none; }.scan-redaction-layer { position:absolute; inset:0; pointer-events:none; }.scan-redaction-box { position:absolute; border:2px solid #e5484d; background:rgba(239,68,68,.2); box-shadow:0 0 0 1px rgba(255,255,255,.75) inset; }.scan-ai-consent { margin:16px 18px; padding:14px 16px; border:1px solid #f0c36d; border-radius:9px; background:#fff9eb; }.scan-ai-consent label { display:flex; align-items:flex-start; gap:9px; color:#594214; font-size:11px; font-weight:700; line-height:1.55; }.scan-ai-consent input { width:15px; height:15px; flex:0 0 auto; margin-top:1px; accent-color:var(--brand); }.scan-ai-consent .btn { margin:10px 0 5px; }.scan-ai-consent small { display:block; color:#80672c; font-size:9.5px; line-height:1.55; }
.scan-preview-viewport { width:100%; max-height:72vh; overflow:auto; border:1px solid #cfd8e6; border-radius:7px; background:#dce3ec; }.scan-preview-viewport .scan-preview-sheet { width:100%; min-width:100%; border:0; box-shadow:none; transform-origin:top left; }.scan-preview-tools { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:5px; }.scan-preview-tools button { min-height:30px; padding:0 9px; border:1px solid #cfd8e6; border-radius:6px; color:#40556d; background:#fff; font-size:9.5px; font-weight:700; cursor:pointer; }.scan-preview-tools button:hover,.scan-preview-tools button.active { color:#fff; border-color:var(--brand); background:var(--brand); }.scan-preview-tools .scan-clear-page { color:#b42318; }.scan-preview-tools .scan-clear-page:hover { color:#fff; border-color:#d92d20; background:#d92d20; }.scan-zoom-label { min-width:40px; color:#526071; text-align:center; font-size:9.5px; font-weight:800; }.scan-preview-sheet[data-mode="pan"] { cursor:grab; }.scan-preview-sheet[data-mode="pan"]:active { cursor:grabbing; }
.scan-export-hint { margin-right:auto; color:#b54708; font-size:10px; font-weight:700; }.form-submit-bar .btn:disabled { cursor:not-allowed; opacity:.45; box-shadow:none; }

/* PDF editor */
.pdf-upload-card { max-width:760px; margin:0 auto; }.pdf-upload-form { padding:4px 22px 24px; }.pdf-upload-form .btn { width:100%; margin-top:14px; }.red-icon { color:#d92d20; background:#fff0ef; font-size:9px; font-weight:900; }
.pdf-editor-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }.pdf-editor-heading > div { display:flex; min-width:0; flex-direction:column; gap:3px; }.pdf-editor-heading strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.pdf-editor-heading span { color:var(--muted); font-size:10px; }
.pdf-editor-shell { min-height:680px; display:grid; grid-template-columns:175px minmax(460px,1fr) 220px; overflow:hidden; border:1px solid var(--border); border-radius:13px; background:#fff; box-shadow:var(--shadow); }.pdf-page-panel { overflow:hidden; border-right:1px solid var(--border); background:#f7f9fc; }.pdf-page-title { padding:15px 14px 10px; color:#344054; font-size:11px; font-weight:800; }.pdf-page-panel > div:last-child { max-height:630px; overflow-y:auto; padding:0 10px 16px; }.pdf-page-thumb { position:relative; width:100%; margin:0 0 10px; padding:8px; border:2px solid transparent; border-radius:9px; color:#667085; background:#fff; cursor:pointer; }.pdf-page-thumb.active { border-color:var(--brand); box-shadow:0 3px 12px rgba(36,107,253,.16); }.pdf-page-thumb > span { position:absolute; z-index:2; top:5px; left:5px; width:21px; height:21px; display:grid; place-items:center; border-radius:50%; color:#fff; background:rgba(13,27,42,.78); font-size:9px; font-weight:800; }.pdf-page-thumb > div { height:130px; display:grid; place-items:center; overflow:hidden; background:#edf1f6; }.pdf-page-thumb img { max-width:90%; max-height:90%; transition:.2s ease; }.pdf-page-thumb small { display:block; padding-top:6px; font-size:8.5px; }
.pdf-stage-panel { min-width:0; background:#e7ecf3; }.pdf-editor-toolbar { min-height:51px; display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:9px 12px; border-bottom:1px solid #cdd5e1; background:#fff; }.pdf-editor-toolbar button,.pdf-image-button { min-height:31px; display:inline-flex; align-items:center; padding:0 10px; border:1px solid #d5dce7; border-radius:7px; color:#344054; background:#fff; font-size:9.5px; font-weight:750; cursor:pointer; }.pdf-editor-toolbar button:hover,.pdf-image-button:hover { color:var(--brand); border-color:#9dbcf8; background:#f4f8ff; }.pdf-editor-toolbar .danger { margin-left:auto; color:#b42318; }.pdf-image-button input { display:none; }.pdf-stage-wrap { height:590px; display:flex; align-items:flex-start; justify-content:center; overflow:auto; padding:25px; }.pdf-stage { position:relative; width:min(100%,760px); flex:0 0 auto; overflow:hidden; background:#fff; box-shadow:0 8px 30px rgba(16,24,40,.19); }.pdf-stage > img { position:absolute; top:0; left:0; display:block; pointer-events:none; user-select:none; }.pdf-stage #pdfOverlayLayer { position:absolute; inset:0; }.pdf-overlay { position:absolute; overflow:hidden; border:1px dashed transparent; cursor:move; user-select:none; line-height:1.2; white-space:pre-wrap; }.pdf-overlay:hover,.pdf-overlay.selected { border-color:var(--brand); background:rgba(36,107,253,.06); box-shadow:0 0 0 2px rgba(36,107,253,.1); }.pdf-overlay.image img { width:100%; height:100%; object-fit:contain; pointer-events:none; }.pdf-help { padding:9px 14px; color:#667085; background:#f8fafc; border-top:1px solid #d8dfe8; font-size:9px; text-align:center; }
.pdf-editor-toolbar button.active { color:#fff; border-color:var(--brand); background:var(--brand); }.pdf-source-text { position:absolute; min-width:4px; min-height:4px; padding:0; border:1px solid rgba(36,107,253,.65); background:rgba(36,107,253,.08); cursor:pointer; }.pdf-source-text:hover,.pdf-source-text.selected { z-index:3; border:2px solid #155eef; background:rgba(36,107,253,.18); }.pdf-source-text.edited { border-color:#12a36d; background:rgba(18,163,109,.14); }
.pdf-property-panel { padding:16px; border-left:1px solid var(--border); background:#fbfcfe; }.pdf-property-panel h3 { margin:0 0 14px; font-size:13px; }.pdf-no-selection { color:var(--muted); font-size:10px; line-height:1.6; }.pdf-property-panel label { display:flex; flex-direction:column; gap:5px; margin-bottom:12px; color:#475467; font-size:10px; font-weight:700; }.pdf-property-panel textarea,.pdf-property-panel input[type="number"] { width:100%; padding:8px; border:1px solid #d7dde6; border-radius:7px; color:var(--text); background:#fff; font:11px/1.5 inherit; }.pdf-property-panel input[type="color"] { width:100%; height:34px; padding:2px; border:1px solid #d7dde6; border-radius:7px; background:#fff; }.pdf-property-panel input[type="range"] { width:100%; }.btn-danger { color:#b42318!important; border-color:#f3b7b2!important; background:#fff5f4!important; }.pdf-export-bar { display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:16px 0 36px; }.pdf-export-bar > span { margin-right:auto; color:var(--muted); font-size:10px; }

/* Technical translator */
.translator-panel { overflow:hidden; }.translator-toolbar { display:grid; grid-template-columns:1fr 42px 1fr; align-items:center; gap:12px; padding:18px 22px 12px; }.translator-toolbar select { height:42px; padding:0 12px; border:1px solid #d7dde6; border-radius:9px; color:#344054; background:#fff; font-weight:700; }.translator-toolbar button { width:38px; height:38px; border:1px solid #d7dde6; border-radius:50%; color:var(--brand); background:#fff; font-size:18px; cursor:pointer; }.translator-grid { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }.translator-box { min-width:0; padding:18px 22px 12px; }.translator-box + .translator-box { border-left:1px solid var(--border); background:#fbfcff; }.translator-box textarea { width:100%; min-height:390px; padding:0; border:0; outline:0; color:var(--text); background:transparent; font:14px/1.75 "Segoe UI","Microsoft YaHei",sans-serif; resize:vertical; }.translator-box > div { display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:9.5px; }.translator-box button { border:0; color:var(--brand); background:transparent; font-size:10px; font-weight:700; cursor:pointer; }.translator-actions { display:flex; justify-content:flex-end; gap:10px; padding:16px 22px 8px; }.translator-note { margin:0 22px 18px; padding:11px 13px; border-radius:8px; color:#5c4c25; background:#fff8e8; font-size:10px; line-height:1.6; }
.document-translation-panel { margin-bottom:22px; }.document-translation-form { display:grid; grid-template-columns:minmax(240px,1.15fr) minmax(190px,.8fr) minmax(240px,1fr) auto; align-items:end; gap:15px; padding:4px 22px 22px; }.document-drop { min-height:76px; display:flex!important; align-items:center; justify-content:center; flex-direction:column!important; gap:4px!important; margin:0!important; border:1.5px dashed #9fb1c8; border-radius:9px; color:var(--brand)!important; background:#f8faff; cursor:pointer; }.document-drop input { position:absolute; width:1px; height:1px; opacity:0; }.document-drop span { max-width:260px; overflow:hidden; color:var(--muted); font-size:9.5px; text-overflow:ellipsis; white-space:nowrap; }.document-translation-form > label:not(.document-drop):not(.document-branding-option) { display:flex; flex-direction:column; gap:6px; color:#475467; font-size:10px; font-weight:700; }.document-translation-form input[type="text"],.document-translation-form select { height:42px; padding:0 11px; border:1px solid #d7dde6; border-radius:8px; color:var(--text); background:#fff; }.document-branding-option { grid-column:1 / 4; display:flex; align-items:flex-start; gap:9px; color:#344054; cursor:pointer; }.document-branding-option input { width:16px; height:16px; flex:0 0 auto; margin-top:2px; accent-color:var(--brand); }.document-branding-option span { display:flex; flex-direction:column; gap:2px; }.document-branding-option small { color:var(--muted); font-size:9.5px; font-weight:400; }.document-translation-form > .btn { grid-column:4; grid-row:1; min-height:76px; }.document-translation-form > .btn:disabled { opacity:.7; cursor:wait; transform:none; }.document-form-message { grid-column:1 / -1; min-height:16px; color:#b42318; font-size:10px; }.tool-divider { display:flex; align-items:center; gap:15px; margin:22px 0; color:#98a2b3; font-size:10px; font-weight:800; letter-spacing:.6px; }.tool-divider::before,.tool-divider::after { content:""; height:1px; flex:1; background:#dce2ea; }.document-job-card { display:grid; grid-template-columns:minmax(250px,1fr) minmax(180px,1fr) 48px auto; align-items:center; gap:16px; padding:18px 22px 22px; }.document-job-card > div:first-child { display:flex; min-width:0; flex-direction:column; gap:4px; }.document-job-card strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.document-job-card span { color:var(--muted); font-size:10px; }.document-job-progress { height:9px; overflow:hidden; border-radius:99px; background:#e4ecf8; }.document-job-progress > div { height:100%; border-radius:inherit; background:linear-gradient(90deg,#1e6bff,#55a0ff); transition:.35s ease; }.document-job-card > b { color:var(--brand); font-size:11px; }.document-job-card.status-error span { color:#b42318; }.document-result-summary { display:flex; flex-wrap:wrap; gap:9px; padding:0 22px 20px; }.document-result-summary span { padding:6px 9px; border-radius:99px; color:#137a54; background:#eaf8f1; font-size:9px; font-weight:750; }

@media (max-width: 1100px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inquiry-layout { grid-template-columns: 1fr; }
  .inquiry-panel { min-height: auto; }
  .auth-shell { grid-template-columns: .9fr 1.1fr; }
  .auth-visual { padding: 42px; }
  .auth-message h1 { font-size: 42px; }
  .quote-view-grid { grid-template-columns: 1fr; }.quote-terms-card { position: static; }
  .import-layout { grid-template-columns: 1fr; }
  .product-image-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .drawing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pdf-editor-shell { grid-template-columns:145px minmax(420px,1fr); }.pdf-property-panel { grid-column:1 / -1; border-top:1px solid var(--border); border-left:0; }.pdf-property-panel #pdfObjectSettings { display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr auto; align-items:end; gap:12px; }.pdf-property-panel label { margin:0; }
  .document-translation-form { grid-template-columns:1fr 1fr; }.document-translation-form > .btn { grid-column:1 / -1; grid-row:auto; min-height:42px; }.document-branding-option { grid-column:1 / -1; }
}
@media (max-width: 850px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }.menu-open .sidebar { transform: translateX(0); }
  .workspace { margin-left: 0; }.mobile-menu { display: block; padding: 0; }.topbar { padding: 0 22px; }.topbar-context { display: flex; align-items: center; gap: 14px; }
  .content { padding: 28px 22px 46px; }.mobile-overlay { position: fixed; inset: 0; z-index: 10; background: rgba(9,18,29,.48); }.menu-open .mobile-overlay { display: block; }
  .split-layout { grid-template-columns: 1fr; }.sticky-panel { position: static; }
  .quote-list-head { display: none; }.quote-list-row { padding: 0 10px 0 0; }.quote-open-main { grid-template-columns: 1fr 1fr 90px 24px; padding: 13px 10px 13px 18px; }.quote-open-main > :nth-child(3), .quote-open-main > :nth-child(5) { display: none; }
  .auth-shell { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-form-panel { min-height: 100vh; }.mobile-auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }.mobile-auth-brand strong { letter-spacing: .7px; }
  .drawing-layout { grid-template-columns: 1fr; }.drawing-upload-panel { position: static; }
  .pdf-editor-shell { grid-template-columns:120px minmax(360px,1fr); }.pdf-stage-wrap { padding:14px; }
  .cad-text-head,.cad-text-row { grid-template-columns: 150px 1fr 1fr; }.workflow-steps { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .topbar { height: 64px; }.eyebrow, .user-meta { display: none; }.content { padding: 24px 16px 40px; }
  .heading-with-action { align-items: flex-start; flex-direction: column; }.heading-with-action .btn { width: 100%; }.page-heading h1 { font-size: 24px; }
  .module-grid { grid-template-columns: 1fr; }.module-card { min-height: 195px; }.section-heading { align-items: flex-start; gap: 14px; }
  .table-head { display: none; }.project-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 16px; }.project-row > :nth-child(2), .project-row > :nth-child(3) { display: none; }.project-row .badge { display: none; }
  .project-list-row { padding: 0 10px 0 0; }.project-open-main { grid-template-columns: 38px minmax(0,1fr) 24px; padding: 12px 10px 12px 16px; }.project-open-main .project-market, .project-open-main .badge { display: none; }
  .user-row { grid-template-columns: 38px minmax(0,1fr) auto; padding: 12px 16px; }.user-row .role-badge { display: none; }.user-actions { grid-column:2/-1; justify-content:flex-start; }
  .form-footer { align-items: stretch; flex-direction: column; }.form-footer .btn { width: 100%; }.privacy-note { justify-content: center; }.inquiry-form, .analysis-result { padding: 16px; }.analysis-empty { padding: 38px 24px; }
  .analysis-heading { align-items: flex-start; flex-direction: column; }.analysis-actions { width: 100%; }.analysis-actions .btn { flex: 1; }
  .auth-form-panel { padding: 32px 22px; }
  .form-grid { grid-template-columns: 1fr; }.field-span-2 { grid-column: auto; }.quote-adjustments { grid-template-columns: 1fr; }.quote-summary-edit { grid-column: 1; }.quote-preview-card { padding: 18px; }.quote-parties { grid-template-columns: 1fr; }.quote-parties > div:last-child { text-align: left; }.quote-table { overflow-x: auto; }.quote-table-head, .quote-table-row { min-width: 690px; }.quote-view-total { grid-template-columns: 1fr; }.quote-view-total > div:last-child { grid-column: 1; }.heading-actions { width: 100%; align-items: stretch; flex-direction: column; }.heading-actions .btn { width: 100%; }
  .product-image-grid { grid-template-columns: 1fr; }.custom-image-upload { align-items: stretch; flex-direction: column; }
  .drawing-filter,.drawing-filter select { width: 100%; }.drawing-grid { grid-template-columns: 1fr; padding: 14px; }
  .cad-text-head { display: none; }.cad-text-row { grid-template-columns: 1fr; }.workflow-steps { grid-template-columns: 1fr; }.completed-output { align-items: stretch; flex-direction: column; }.completed-output .btn { width: 100%; }
  .drawing-page-jump { right: 10px; bottom: 14px; }.drawing-page-jump button { width: 42px; height: 42px; }
  .scan-preview-list { padding: 10px; }
  .scan-preview-toolbar { align-items:flex-start; flex-direction:column; }.scan-preview-tools { justify-content:flex-start; }
  .pdf-editor-shell { display:block; }.pdf-page-panel { border-right:0; border-bottom:1px solid var(--border); }.pdf-page-panel > div:last-child { max-height:none; display:flex; overflow-x:auto; }.pdf-page-thumb { min-width:100px; }.pdf-stage-wrap { height:500px; padding:10px; }.pdf-editor-toolbar .danger { margin-left:0; }.pdf-property-panel #pdfObjectSettings { display:block; }.pdf-property-panel label { margin-bottom:12px; }.pdf-export-bar { align-items:stretch; flex-direction:column; }.pdf-export-bar > span { margin:0; }.translator-toolbar { grid-template-columns:1fr 36px 1fr; padding:14px; }.translator-grid { grid-template-columns:1fr; }.translator-box + .translator-box { border-top:1px solid var(--border); border-left:0; }.translator-box textarea { min-height:260px; }
  .document-translation-form { grid-template-columns:1fr; }.document-branding-option,.document-translation-form > .btn { grid-column:1; }.document-job-card { grid-template-columns:1fr; }.document-job-card > b { text-align:right; }
}
