/* UI UX Pro Max: Minimalism & Swiss Style, manufacturing dashboard.
   Presentation only. Existing business functions and DOM contracts stay intact. */
:root {
  --blue:#245bd8; --navy:#183a74; --ink:#1f3048; --text:#1f3048;
  --muted:#52637a; --line:#dee5ef; --bg:#f4f6fa;
  --green:#18704e; --red:#b83d47; --amber:#99621c; --radius:12px;
  --ui-surface:#fff; --ui-nav:#14243b; --ui-nav-text:#ccd7e5;
  --ui-nav-muted:#a4b4c9; --ui-selected:#eaf0fc; --ui-control:#a0aec0;
  font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:14px; line-height:1.5; letter-spacing:0;
}
body {background:var(--bg);color:var(--ink)}
.sidebar {width:240px;padding:0 16px;background:var(--ui-nav);border-right:0;color:var(--ui-nav-text)}
.brand {height:88px;padding:16px 8px;gap:12px;font-size:21px;font-weight:700;line-height:1.15;letter-spacing:-.35px;color:#fff;flex-shrink:0}
.brand-mark i {background:#719cff}
.brand-sub {font-size:11px;color:var(--ui-nav-muted);letter-spacing:1px;margin-top:7px}
.sidebar .workspace {background:#1d304c;border:1px solid #3b4e69;border-radius:10px;padding:14px 12px;gap:10px;margin-bottom:12px;color:#fff;text-align:left;flex-shrink:0}
.sidebar button.workspace:hover {background:#263e5e;border-color:#6983a8;color:#fff}
.sidebar .workspace-icon {width:34px;height:36px;flex-shrink:0;background:#314c76;color:#dce8ff;border-radius:8px;font-size:12px}
.sidebar .workspace b {font-size:13px;color:#fff;line-height:1.6}
.sidebar .workspace small,.sidebar .chevron {font-size:12px;color:var(--ui-nav-text)}
.sidebar nav {padding:0 0 8px;scrollbar-color:#51647d transparent;min-height:0}
.sidebar .nav-label {font-size:11px;letter-spacing:1px;color:var(--ui-nav-muted);margin:20px 12px 8px}
.sidebar .nav-item {height:auto;min-height:42px;gap:12px;padding:10px 12px;margin:4px 0;color:var(--ui-nav-text);font-size:14px;border-radius:8px}
.sidebar .nav-item:hover {background:#233b5b;color:#fff}
.sidebar .nav-item.active,.sidebar .cloud-active {background:#245bd8;color:#fff!important;font-weight:650}
.sidebar .nav-item.active:before {display:none}
.sidebar .nav-count {background:#2b405e;color:#d5deeb;border-radius:5px;font-size:11px;min-width:22px;text-align:center}
.sidebar .nav-item.active .nav-count {background:#fff2;color:#fff}
.sidebar-bottom {background:var(--ui-nav);padding-top:8px;border-top:1px solid #354862;flex-shrink:0}
.sidebar .data-entry {color:var(--ui-nav-text);font-size:13px;padding:10px 12px;min-height:40px;border-radius:8px}
.sidebar .data-entry:hover {background:#233b5b;color:#fff}
.sidebar .profile {background:transparent;color:#fff;border-top:1px solid #354862;border-radius:0;margin-top:8px;padding:14px 8px;min-height:70px}
.sidebar .profile:hover {background:#233b5b}
.sidebar .profile b {color:#fff;font-size:13px}
.sidebar .profile small {color:var(--ui-nav-muted);font-size:12px}
.avatar {width:36px;height:36px;background:#314c76;color:#dce8ff;font-size:14px;flex-shrink:0}
.sidebar .online {width:7px;height:7px;background:#5cd5aa}
.app-shell {margin-left:240px;min-width:0}
.topbar {height:68px;padding:0 28px;gap:16px;background:#fff;border-bottom:1px solid var(--line)}
.breadcrumb {gap:12px;font-size:13px;color:var(--muted)}
.breadcrumb b,#cloud-title {color:var(--ink);font-weight:600}
.top-actions {gap:12px;min-width:0}
.search-trigger {padding:8px 12px;border:1px solid var(--line);background:#f7f9fc;border-radius:8px;color:var(--muted);font-size:12px;min-height:36px}
.search-trigger kbd {font-size:11px;margin-left:8px;color:var(--muted);background:#fff}
.demo-chip,.cloud-sync-status {font-size:11px;color:#365f4e;background:#edf7f1;border:1px solid #d9e9df;border-radius:6px;padding:5px 8px;line-height:1.5}
.icon-button,.top-avatar {width:36px;height:36px;border-radius:8px;color:var(--muted)}
.top-avatar {border-radius:50%;background:var(--ui-selected);color:var(--blue);font-size:13px}
main {padding:28px;max-width:1760px;margin:0 auto}
.page-heading {align-items:center;gap:20px;margin-bottom:24px}
.page-heading>div:first-child {min-width:0}
.eyebrow {color:var(--muted);font-size:10px;font-weight:600;letter-spacing:1.4px;margin-bottom:6px}
h1 {font-size:28px;line-height:1.3;font-weight:700;letter-spacing:-.5px;overflow-wrap:anywhere}
h2 {font-size:16px;font-weight:650;line-height:1.5}
h3 {font-size:15px;font-weight:650}
.subtitle {font-size:13px;color:var(--muted);line-height:1.8;margin-top:8px}
.heading-actions {gap:8px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
.button {min-height:40px;padding:9px 14px;border:1px solid var(--ui-control);color:#42536a;background:#fff;border-radius:8px;font-size:13px;font-weight:500;line-height:1.5;gap:8px}
.button:hover {background:#f0f4fa;border-color:#6f85a5;color:var(--ink)}
.button.primary {background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 2px 3px #245bd814}
.button.primary:hover {background:#184bc1;border-color:#184bc1;color:#fff}
.button.danger {color:var(--red)}
.button.small {font-size:12px;min-height:34px;border-radius:7px}
button:active:not(:disabled),a.button:active {filter:brightness(.95)}
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible {outline:3px solid #5581ec;outline-offset:3px}
.sidebar :where(button,a):focus-visible {outline-color:#adc6ff;outline-offset:2px}
.context-bar {gap:16px;margin-bottom:20px;flex-wrap:wrap}
.segmented {padding:4px;border:1px solid var(--line);border-radius:9px;background:#e9edf4;gap:4px}
.segmented button {font-size:12px;padding:7px 14px;min-height:32px;color:var(--muted);border-radius:6px}
.segmented button.selected {background:#fff;color:var(--blue);font-weight:650;box-shadow:0 1px 3px #14243b14}
.data-status,.panel-note,.legend,.category-foot {font-size:12px;color:var(--muted);line-height:1.6}
.metrics {gap:16px;margin-bottom:24px;grid-template-columns:repeat(4,minmax(0,1fr))}
.metric {padding:20px;min-height:154px;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 5px #14243b03}
.metric:hover {border-color:#91abe0;background:#fcfdff}
.metric-label {font-size:13px;color:var(--muted);font-weight:500;gap:8px}
.metric-icon {background:#eef3fc;color:#4970b4;border-radius:8px;padding:7px}
.metric-number {font-size:32px;font-weight:700;letter-spacing:-1px;line-height:1.25;margin:14px 0 12px;color:var(--ink);font-variant-numeric:tabular-nums}
.metric-number small {font-size:12px;margin-left:6px;letter-spacing:0;color:var(--muted)}
.metric-bottom {font-size:12px;color:var(--muted);line-height:1.6;flex-wrap:wrap}
.metric-spark {display:none} /* Original decorative line is identical on every metric; actual business charts remain. */
.panel {background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 5px #14243b03}
.panel-header {padding:20px 20px 16px;gap:12px}
.panel-note {margin-top:4px}
.two-columns {grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:20px;margin-bottom:24px}
.three-columns {gap:20px;margin-bottom:24px}
.chart-label,.chart-axis-title {fill:var(--muted);font-size:11px}
.monthly-chart-note,.sales-rank-note {font-size:12px;color:var(--muted)}
.chart-tooltip {font-size:13px;border-radius:8px;box-shadow:0 8px 24px #14243b1a}
.category-info,.risk-summary {font-size:13px}
.category-info span:last-child {color:var(--muted)}
.category-foot {padding:14px 20px}
.toolbar,.stage-toolbar {padding:18px 20px;background:#fff;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.toolbar-left {gap:10px;flex-wrap:wrap;min-width:0}
.search-box,.search-shell {height:40px;border-color:var(--ui-control);border-radius:8px;background:#fff}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea {color:var(--ink);background:#fff;border-color:var(--ui-control);border-radius:8px;font-size:14px;line-height:1.5}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select {min-height:40px}
textarea {padding:12px;resize:vertical;line-height:1.7}
input::placeholder,textarea::placeholder {color:#65758b;opacity:1}
.search-shell input,.search-box input {background:transparent;border:0;min-height:36px}
input[type=checkbox],input[type=radio] {accent-color:var(--blue)}
.table-wrap {overflow:auto;max-width:100%;overscroll-behavior-x:contain}
table {font-size:14px;font-variant-numeric:tabular-nums}
table th {background:#edf1f7;color:#34465f;font-size:12px;font-weight:650;padding:14px 20px;letter-spacing:.15px;line-height:1.5;border-bottom:1px solid #d1dbea}
table td {padding:16px 20px;font-size:14px;color:#34465f;line-height:1.65;border-bottom:1px solid #e9eef5}
tbody tr:hover {background:#f5f8fd}
table td small {font-size:12px;color:var(--muted)}
.table-actions {gap:8px}
.table-actions button {padding:6px 8px;font-size:13px;border-radius:6px;min-height:32px;font-weight:500;color:var(--blue)}
.table-actions button:hover {background:var(--ui-selected)}
.badge {font-size:12px;padding:4px 8px;border-radius:5px;font-weight:500;white-space:nowrap}
.badge.green {background:#e7f5ed;color:#17613f}
.badge.red {background:#fcebec;color:#a33240}
.badge.amber {background:#fff2dc;color:#88571a}
.badge.blue {background:#eaf0fd;color:#2454a9}
.pagination,.table-footer {padding:16px 20px;gap:12px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.empty,.cloud-empty {padding:40px 20px;color:var(--muted);font-size:14px;line-height:1.8}
.tabs {gap:24px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.tabs button,.supplier-tabs a {font-size:14px;padding:12px 0}
.progress-stage-sections {gap:16px}
.progress-stage-section summary {padding:20px;gap:14px;background:#fff}
.stage-sequence {width:40px;height:40px;background:#ecf2fc;border-color:#cedbf1;color:#2454a9;font-weight:650;border-radius:9px}
.stage-heading h2 {font-size:16px;gap:10px}
.stage-heading h2 span {font-size:12px;font-weight:500;color:#425f8d;background:#edf2fa;border-radius:5px}
.stage-heading small,.stage-expand-label,.progress-section-tools,.stage-project-note {font-size:12px;color:var(--muted)}
.stage-overdue {font-size:12px;color:var(--red)}
.inventory-spaces {gap:16px;margin-bottom:24px}
.inventory-space {padding:20px;border-radius:12px;color:var(--ink)}
.inventory-space.selected {background:#edf3ff;border-color:#7397e5;box-shadow:inset 0 3px 0 var(--blue)}
.inventory-space strong {font-size:17px;font-weight:650}
.inventory-space span {font-size:12px;color:var(--muted)}
.sales-summary {gap:20px;margin-bottom:24px}
.sales-rank-row {min-height:62px}
.sales-rank-product b,.sales-rank-row strong {font-size:14px}
.sales-rank-product small {font-size:12px;color:var(--muted)}
.sales-rank-number {font-size:13px;color:var(--muted)}
.sales-rank-note {padding:14px 20px}
dialog {border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 80px #14243b33}
dialog::backdrop {background:#14243b80}
.modal-header,.modal-footer {padding:20px 24px;gap:12px}
.modal-header h2 {font-size:20px;letter-spacing:-.3px}
.modal-body {padding:24px}
.field label,.field>span {font-size:13px;font-weight:500;color:#42536a;line-height:1.6}
.field input,.field select {padding:10px 12px}
.form-grid {gap:20px}
.editor-hint,.cloud-notice,.account-notice {font-size:13px;line-height:1.8;background:#eff4fc;color:#425f8d;border-radius:8px}
.editor-hint span {font-size:12px}
.editor-note,.account-help {font-size:12px;line-height:1.8;color:var(--muted)}
.account-popover {border-radius:12px;box-shadow:0 12px 36px #14243b22;font-size:13px;background:#fff;color:var(--ink)}
.account-popover button,.account-popover a {font-size:13px;min-height:40px}
.account-popover-identity small {font-size:12px;color:var(--muted)}
footer {padding:20px 28px;color:var(--muted);font-size:11px;gap:12px;line-height:1.8}
/* Account screens use the same surfaces, type scale and controls. */
.accounts-body {background:var(--bg);color:var(--ink)}
.accounts-header {height:72px;border-bottom:1px solid var(--line);padding:0 32px}
.accounts-header b {font-size:22px;font-weight:700;color:var(--ink);letter-spacing:-.5px}
.accounts-header span {font-size:13px;color:var(--muted)}
.accounts-main {max-width:1280px;margin:32px auto;padding:0 28px}
.account-login {max-width:460px;margin:56px auto;padding:32px;border-top:3px solid var(--blue)}
.account-login h1 {font-size:25px}
.account-login p,.accounts-page-heading p,.account-summary h3 {color:var(--muted)}
.account-login .field {margin:24px 0}
.account-summary {gap:20px;margin-bottom:24px}
.account-summary .panel {padding:24px}
.account-summary b {font-size:32px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.account-list th {background:#edf1f7;color:#34465f;font-weight:650}
.account-list td {color:var(--ink)}
.account-node,.account-node-list.readonly a {border:1px solid var(--line);background:#f4f7fc;border-radius:8px;color:#34465f}
.account-dialog-heading h2 {font-size:20px}
#cloud-main .cloud-form,.cloud-field-editor {gap:20px}
.ui-preview-notice {padding:9px 28px;background:#eaf0fc;border-bottom:1px solid #cddaf2;color:#345680;font-size:12px;line-height:1.6}
.ui-preview-notice a {font-weight:650;text-decoration:underline;margin-left:12px}
@media(min-width:1600px) {main{padding:32px 40px}.topbar{padding:0 40px}.metric{padding:24px}.metric-number{font-size:36px}}
@media(max-width:1150px) {.topbar{padding:0 24px}.top-actions{gap:8px}.search-trigger span:not(:first-child),.search-trigger kbd{display:none}main{padding:24px}.page-heading{align-items:flex-start}.heading-actions{max-width:48%}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.two-columns{grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)}.sales-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.supplier-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px) {.two-columns,.three-columns{grid-template-columns:1fr}.page-heading{flex-wrap:wrap}.heading-actions{max-width:100%;justify-content:flex-start}.monthly-chart-controls{gap:8px}.demo-chip,.cloud-sync-status{max-width:150px}.toolbar-left{flex:1 1 100%}}
@media(max-width:800px) {.sidebar{width:220px}.app-shell{margin-left:0}.sidebar .brand{font-size:19px}.topbar{padding:0 16px}.ui-preview-notice{padding:8px 16px}main{padding:20px 16px}.sidebar .nav-item{min-height:44px}.sidebar-bottom .data-entry{min-height:44px}.heading-actions .button{min-height:44px}.icon-button,.top-avatar{min-width:40px;height:40px}.accounts-main{padding:0 16px}}
@media(max-width:650px) {.topbar{height:64px;gap:8px}.top-actions{gap:6px}.breadcrumb{gap:8px;font-size:12px}.search-trigger{display:none}.demo-chip,.cloud-sync-status{font-size:10px;max-width:116px;padding:4px 6px}.topbar .button{font-size:11px;padding:7px 8px;min-height:40px}.page-heading{gap:16px;margin-bottom:20px}h1{font-size:25px}.eyebrow{font-size:10px}.subtitle{font-size:13px}.heading-actions{width:100%;gap:8px}.button{min-height:44px;padding:9px 12px;font-size:12px}.metrics{gap:12px}.metric{padding:16px;min-height:145px}.metric-number{font-size:27px}.metric-label{font-size:12px}.metric-bottom{font-size:11px}.metric-icon{padding:5px}.panel-header{padding:16px;flex-wrap:wrap}.toolbar,.stage-toolbar{padding:16px}.toolbar-left .search-shell,.toolbar-left .modal-search{width:100%;max-width:100%}.search-shell input{width:100%;min-width:0}.context-bar{gap:12px}.data-status{font-size:11px}.legend{font-size:11px;gap:8px}.inventory-spaces{gap:8px}.inventory-space{padding:14px 10px}.inventory-space strong{font-size:15px}.inventory-space span{font-size:11px}.sales-summary{grid-template-columns:1fr}.supplier-metrics{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr;gap:18px}.modal-header,.modal-footer{padding:18px}.modal-body{padding:18px}.stage-heading h2{font-size:15px}.stage-heading small{font-size:11px}.stage-expand-label{display:none}.pagination{padding:14px 16px}.table-actions button{min-width:44px;min-height:44px}footer{padding:16px;flex-wrap:wrap}.accounts-header{padding:0 16px}.accounts-header b{font-size:18px}.accounts-header span{font-size:11px;margin-left:8px}.accounts-main{margin:24px auto}.account-login{padding:24px;margin:32px auto}.account-summary{grid-template-columns:1fr}.account-node-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:900px){.app-shell{margin-left:0}.sidebar{width:240px}.sidebar .nav-item{min-height:44px}}
.workbench-readable :where(.subtitle,.metric-label,.metric-bottom,.panel-note,.toolbar,.field label,table td,.nav-item){font-size:15px}
.input-shell{min-height:40px;border-color:var(--ui-control);border-radius:8px;color:var(--muted);background:#fff;max-width:100%}
.input-shell input{font-size:13px;background:transparent;border:0;min-width:0;min-height:38px;padding:9px 8px}
.input-shell svg{color:var(--muted)}
.cell-sub,.task-meta,.task-end,.progress-info small,.insight,.small-stat span,.panel-bottom{font-size:12px;color:var(--muted);line-height:1.7}
.task-title{font-size:14px;color:var(--ink);font-weight:550}
.task-row{padding:16px 20px}.task-meta{flex-wrap:wrap;gap:8px}
.progress-info,.module-tabs button{font-size:13px;color:var(--muted)}
.module-tabs button.selected{color:var(--blue);font-weight:650}
.stage-heading small,.stage-project-note{line-height:1.8}
.badge.gray{color:var(--muted);background:#eef1f5}
@media(max-width:650px){.input-shell{width:100%}.input-shell input{width:100%;min-width:0}.toolbar-left{width:100%}.cell-sub,.task-meta{font-size:12px}}

/* Details show complete values; list summaries remain compact. */
.details>div{min-width:0;overflow-wrap:anywhere}
.details .detail-wide{grid-column:1/-1}
.details .detail-value,.detail-note .cloud-value{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:none;max-height:none;overflow:visible;color:var(--ink);font-size:14px;line-height:1.8}
.details .cell-title,.detail-title{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.details .supplier-products-display{max-height:none;overflow:visible;min-width:0}
.details .supplier-products-display table{min-width:0;width:100%;table-layout:fixed}

#workbench-feedback{width:min(720px,calc(100vw - 24px))}
#workbench-feedback .full-width{grid-column:1/-1}
.feedback-entry{border:1px solid var(--line);border-radius:8px;padding:16px;margin:12px 0;overflow-wrap:anywhere}
.feedback-entry p{white-space:pre-wrap;line-height:1.8}
.feedback-entry small{color:var(--muted);display:block;margin-top:8px}

/* Keep owner-only entries hidden despite flex navigation styles. */
[hidden]{display:none!important;}
.workspace:disabled{opacity:1;cursor:default;}
[data-development-stage] summary .button{margin-left:auto;white-space:nowrap}
#progress-gallery{width:min(1000px,94vw);max-height:90vh;padding:0;border:1px solid #dce4ef;border-radius:16px;color:#23364d}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 26px;border-bottom:1px solid #dce4ef}.gallery-heading h2{margin:0;font-size:22px}.gallery-body{padding:24px;max-height:72vh;overflow:auto}.gallery-body>p{line-height:1.7}.gallery-body input[type=file]{display:block;max-width:300px;font-size:13px;margin-top:8px}.stage-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;margin:20px 0}.stage-photo{border:1px solid #dce4ef;background:#f5f7fb;border-radius:10px;padding:8px;cursor:pointer}.stage-photo img{width:100%;height:160px;object-fit:contain}.gallery-body>[data-gallery-large]{width:100%;max-height:480px;object-fit:contain;background:#f5f7fb;border-radius:10px}.overview-sales-notice{padding:16px 20px;margin:10px 0 22px;background:#eef4ff;border-radius:10px}.overview-sales-notice button{margin-left:12px}#sales-launch-value{display:block;padding:14px;background:#f4f7fb;border-radius:8px}
.project-images{margin-top:20px;padding:22px;border:1px solid #dae4f2;border-radius:12px;background:#f8faff}.project-images-heading{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.project-images h3{margin:0;font-size:18px;color:#20344f}.project-images-heading span,.project-images p,.project-images small{color:#6a7f9c;line-height:1.7}.project-images input[type=file]{display:block;margin-top:8px;max-width:280px;font-size:13px}.project-images>[data-gallery-large]{width:100%;max-height:420px;object-fit:contain;background:white;border-radius:10px}.project-images .stage-photo{background:white}.profit-period-controls label{display:flex;align-items:center;gap:10px}
.period-filter-group{display:flex;align-items:center;justify-content:flex-start;gap:16px;flex-wrap:wrap;min-width:0}.period-filter-group label{display:flex;align-items:center;gap:8px;font-size:13px;color:#62748d;white-space:nowrap}.period-filter-group select{min-height:42px;padding:8px 12px;font-size:14px;background:#fff;border:1px solid #d6e0ee;border-radius:9px;color:#263c58}.period-filter-group .segmented{flex-shrink:0}.context-bar:has(>.period-filter-group){justify-content:flex-start}.context-bar:has(>.period-filter-group)>.data-status{margin-left:auto}@media(max-width:750px){.period-filter-group{gap:12px;width:100%}.context-bar:has(>.period-filter-group)>.data-status{margin-left:0;width:100%}}
.project-images{padding:0;border:0;background:none}.project-image-label{font-size:14px!important;font-weight:500;margin-bottom:10px!important;color:#62748d!important}.project-image-upload{padding:18px;gap:20px;border-color:#dce5f1;background:#fafcff}.project-image-cover{padding:0}.project-image-cover>[data-project-cover]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;width:100%;height:100%;font-size:12px;color:#7992b8}.project-image-cover svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.project-image-cover img{width:100%;height:100%;object-fit:contain}.project-image-upload .product-image-description{flex:1}.project-image-upload .product-image-description b{font-size:14px;color:#263c58}.project-image-upload .product-image-description p{font-size:12px;margin:7px 0 12px;line-height:1.8}.project-image-upload .heading-actions{justify-content:flex-start;gap:8px;margin-top:0}.project-image-upload [data-gallery-status]{font-size:12px;margin-top:10px;line-height:1.7;color:#7790b0}.project-image-footnote{display:block;font-size:11px}.project-images .stage-photo-grid:empty{display:none}.project-images .stage-photo-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;margin:14px 0}.project-images .stage-photo img{height:100px}.project-images .stage-photo{padding:5px}@media(max-width:650px){.project-image-upload{gap:12px;padding:14px}.project-image-upload .product-image-description p{font-size:11px}.project-image-upload .heading-actions{gap:6px}}

/* Supplier list cells use a compact product list; full details retain all columns. */
.supplier-product-list{list-style:none;margin:0;padding:0;min-width:180px;max-width:360px;max-height:190px;overflow:auto;white-space:normal}
.supplier-product-list li{padding:8px 0;line-height:1.6;overflow-wrap:anywhere}
.supplier-product-list li:first-child{padding-top:0}
.supplier-product-list li:last-child{padding-bottom:0}
.supplier-product-list li+li{border-top:1px solid var(--line);margin-top:8px}
.supplier-product-name{font-weight:600;color:var(--ink)}
.supplier-product-meta{font-size:12px;color:#52637a;white-space:pre-wrap}
.supplier-product-meta span{color:#65758b}

.ai-intake{margin:20px 0;padding:20px;border:1px solid #cddbf5;border-radius:12px;background:#f8faff}.ai-intake-heading{display:flex;gap:12px;align-items:center}.ai-intake-heading span{color:#61718a;font-size:12px}.ai-intake p{font-size:13px;line-height:1.7}.ai-consent{display:flex;gap:8px;align-items:flex-start;margin:16px 0;font-size:13px}.ai-intake [role=status]{margin-top:12px;line-height:1.7;font-size:13px}.ai-edit-table{max-height:300px}.ai-edit-table input{min-width:140px}.ai-edit-table td{padding:8px}
.ai-file-actions,.ai-preview-pagination{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ai-preview-pagination{padding:12px 0;font-size:12px;color:#62748d}.ai-preview-pagination label{display:flex;align-items:center;gap:6px}.ai-preview-pagination input{width:65px;padding:8px}.ai-preview-pagination .button{padding:8px 12px}.ai-file-actions label{max-width:100%;overflow-wrap:anywhere}
.ai-chat-panel{overflow:hidden}.ai-chat-toolbar{display:flex;gap:12px;align-items:center;padding:20px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.ai-chat-toolbar label{display:flex;align-items:center;gap:10px}.ai-chat-toolbar select{max-width:420px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.ai-model-binding{padding:16px 20px;border-bottom:1px solid var(--line)}.ai-model-binding summary{cursor:pointer;color:#245bd8;font-weight:600}.ai-model-binding p{font-size:13px;line-height:1.7;color:#62748d}.ai-chat-messages{box-sizing:border-box;min-height:170px;max-height:min(380px,45vh);overflow:auto;padding:16px 24px;background:#f8faff}.ai-chat-empty{text-align:center;padding:24px 16px;color:#62748d}.ai-chat-empty h2{color:#263c58;margin:0 0 10px;font-size:18px}.ai-chat-empty p{margin:0;line-height:1.6}.ai-chat-message{max-width:85%;padding:16px 20px;border:1px solid #dce5f1;background:#fff;border-radius:12px;margin-bottom:16px}.ai-chat-message.user{margin-left:auto;background:#edf3ff;border-color:#c9d9f7}.ai-chat-message b{font-size:12px;color:#62748d}.ai-chat-message div{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin-top:8px}.ai-chat-compose{padding:20px}.ai-chat-compose textarea{width:100%;box-sizing:border-box;margin-top:8px;resize:vertical}.ai-chat-footer{display:flex;justify-content:space-between;gap:12px;align-items:center}.ai-chat-compose small{color:#62748d}.ai-chat-compose [role=status]{color:#ad4b39;font-size:13px;line-height:1.7;margin-bottom:8px}.ai-model-binding input:not([type=checkbox]){width:100%;box-sizing:border-box;margin-top:8px}@media(max-width:650px){.ai-chat-toolbar label{width:100%;flex-wrap:wrap}.ai-chat-toolbar select{width:100%}.ai-chat-message{max-width:100%}.ai-chat-footer{flex-wrap:wrap}.ai-chat-footer .button{width:100%}}
