:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17202a;
  background: #f4f6f7;
  --ink: #17202a;
  --muted: #66727f;
  --line: #dce1e5;
  --surface: #ffffff;
  --green: #176b52;
  --green-soft: #e9f4ef;
  --red: #b33a3a;
  --red-soft: #faecec;
  --amber: #9a6200;
  --amber-soft: #fff4d6;
  --blue: #2864a7;
  --sidebar: #20262d;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f4f6f7; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #eef1f2; }
.login-panel { width: min(400px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 14px 42px rgba(24, 33, 42, .12); }
.login-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.login-brand strong, .login-brand span { display: block; }
.login-brand span { margin-top: 2px; color: var(--muted); font-size: 13px; }
.login-heading { padding: 26px 0 20px; }
.login-heading h1 { font-size: 22px; }
.login-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.login-panel label + label { margin-top: 16px; }
.login-submit { width: 100%; margin-top: 22px; }
.login-error { margin-top: 14px; padding: 10px 12px; background: var(--red-soft); color: #7f2424; font-size: 13px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 14px; background: var(--sidebar); color: white; display: flex; flex-direction: column; }
.brand-block { display: flex; gap: 10px; align-items: center; padding: 0 8px 24px; }
.brand-block strong, .brand-block small { display: block; }
.brand-block small { color: #aeb8c2; margin-top: 2px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: #37a47c; border-radius: 6px; font-weight: 700; }
nav { display: grid; gap: 4px; }
.nav-item { min-height: 42px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: #cfd6dc; text-align: left; }
.nav-item:hover, .nav-item.active { color: white; background: #343d46; }
.sidebar-status { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid #3a434b; color: #aeb8c2; font-size: 12px; line-height: 1.5; }
.sidebar-account { margin-top: auto; padding: 14px 8px 12px; border-top: 1px solid #3a434b; display: grid; gap: 3px; }
.sidebar-account strong { font-size: 13px; }
.sidebar-account span { color: #aeb8c2; font-size: 12px; }
.sidebar-account button { width: fit-content; margin-top: 7px; padding: 0; border: 0; background: transparent; color: #d8dee3; font-size: 12px; }
.sidebar-account + .sidebar-status { margin-top: 0; }

main { min-width: 0; padding: 0 30px 40px; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
h1 { margin: 0 0 4px; font-size: 24px; font-weight: 650; letter-spacing: 0; }
.topbar p { margin: 0; color: var(--muted); font-size: 14px; }
h2 { margin: 0; font-size: 17px; letter-spacing: 0; }
.view { display: none; padding-top: 24px; }
.view.active { display: block; }

.button { min-height: 38px; padding: 0 16px; border-radius: 5px; border: 1px solid transparent; font-weight: 600; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: #12563f; }
.button.secondary { background: white; color: var(--ink); border-color: var(--line); }
.button.danger { background: white; color: var(--red); border-color: #e7bcbc; }
.button.small { min-height: 32px; padding: 0 11px; font-size: 13px; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.icon-button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; color: var(--muted); }

.notice { margin-top: 18px; padding: 12px 14px; border-left: 4px solid var(--blue); background: #eef4fb; color: #214f82; }
.notice.error { border-color: var(--red); background: var(--red-soft); color: #7f2424; }
.hidden { display: none !important; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.metric { min-height: 116px; padding: 22px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-label { color: var(--muted); font-size: 13px; }
.metric-value { margin-top: 12px; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.section-band { margin-top: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); }
.section-heading h2 { color: var(--ink); }
.section-heading p { margin: 5px 0 0; font-size: 13px; }
.status-table { border-top: 1px solid var(--line); }
.status-row { min-height: 58px; display: grid; grid-template-columns: 180px 100px 1fr; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.integration-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; color: var(--muted); font-size: 13px; }
.integration-actions + .integration-actions { margin-top: 16px; border-top: 1px solid var(--line); }

.tag { display: inline-flex; width: fit-content; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag.good { color: var(--green); background: var(--green-soft); }
.tag.warn { color: var(--amber); background: var(--amber-soft); }
.tag.bad { color: var(--red); background: var(--red-soft); }

.toolbar { min-height: 54px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
input, select, textarea { width: 100%; border: 1px solid #cfd6dc; border-radius: 5px; background: white; color: var(--ink); outline: none; }
input, select { min-height: 40px; padding: 0 11px; }
textarea { padding: 10px 11px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(23, 107, 82, .12); }
.toolbar select { width: 160px; }
.toolbar input { max-width: 420px; }
#order-time-filter { flex-wrap: wrap; align-items: flex-end; }
#order-time-filter label { display: grid; gap: 6px; }
#order-time-count { flex-basis: 100%; color: var(--muted); font-size: 13px; }

.data-table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); }
#view-dashboard .table-wrap { overflow-x: auto; }
#view-dashboard .table-wrap table { min-width: 540px; width: 100%; }
#workload-filter { flex-wrap: wrap; align-items: end; }
#workload-filter label { display: grid; gap: 6px; }
#workload-summary { margin: 16px 0; }
.workload-chart { display: flex; gap: 20px; overflow-x: auto; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.workload-column { flex: 0 0 100px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.workload-count { font-weight: 600; }
.workload-track { height: 180px; width: 40px; display: flex; align-items: end; }
.workload-bar { width: 100%; background: #25806d; min-height: 0; }
.department-chart .workload-bar { background: #c28a28; }
.workload-label { width: 100%; overflow-wrap: anywhere; text-align: center; font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { min-height: 46px; padding: 12px; border-bottom: 1px solid #e7eaed; text-align: left; white-space: nowrap; }
th { background: #f8f9fa; color: #55616e; font-weight: 600; }
td.number, th.number { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }

.work-list { border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; min-height: 92px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.work-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 7px; font-weight: 650; }
.work-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.work-actions { display: flex; gap: 8px; }

.form-layout { max-width: 920px; }
.segmented-control { display: inline-grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; padding: 3px; background: #e5e9ec; border-radius: 6px; }
.intake-mode-control {
  grid-template-columns: repeat(4, max-content);
  max-width: 100%;
  overflow-x: auto;
}
.intake-mode-control button { white-space: nowrap; }
.segmented-control button { min-height: 36px; padding: 0 18px; border: 0; border-radius: 4px; background: transparent; color: #586573; font-weight: 600; }
.segmented-control button.active { background: white; color: var(--ink); box-shadow: 0 1px 3px rgba(24, 33, 42, .14); }
.form-section { padding-bottom: 24px; }
.form-section h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.form-layout[data-intake-panel] .field-grid > label { align-content: start; }
.customer-search-results { display: grid; gap: 6px; padding: 8px; margin-top: -10px; border: 1px solid var(--line); background: #fff; max-height: 280px; overflow-y: auto; }
.customer-search-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 10px 12px; border: 0; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.customer-search-option:hover, .customer-search-option:focus-visible { background: var(--surface); }
.customer-search-option span { color: var(--muted); font-size: 13px; text-align: right; }
label { display: grid; gap: 7px; color: #4d5965; font-size: 13px; font-weight: 600; }
label.wide { grid-column: 1 / -1; }
.wide { grid-column: 1 / -1; }
.voice-order-field { display: grid; gap: 7px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #4d5965; font-size: 13px; font-weight: 600; }
.voice-input-button { display: inline-flex; align-items: center; gap: 7px; min-width: 108px; justify-content: center; }
.voice-input-indicator { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #73808c; }
.voice-input-button.listening { border-color: #d28585; color: #8b2f2f; background: #fff7f7; }
.voice-input-button.listening .voice-input-indicator { background: var(--red); animation: voice-pulse 1.1s ease-out infinite; }
.voice-input-status { min-height: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.voice-input-status.error { color: var(--red); font-weight: 600; }
@keyframes voice-pulse { 0% { box-shadow: 0 0 0 0 rgba(179, 58, 58, .34); } 70% { box-shadow: 0 0 0 7px rgba(179, 58, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(179, 58, 58, 0); } }
.form-actions { display: flex; justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--line); }
.form-actions.split-actions { justify-content: space-between; }
.link-button { display: inline-flex; align-items: center; text-decoration: none; }
.master-import { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 10px; align-items: end; max-width: 980px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.master-import .button { justify-content: center; }
.master-entry-actions { display: flex; justify-content: flex-end; max-width: 980px; padding: 12px 0 4px; }
.master-sync-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 980px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line, #d9e0e7); border-radius: 10px; background: #fff; }
.master-sync-conflicts { max-width: 980px; margin: -4px 0 14px; padding: 10px 14px; border: 1px solid #e7d3a2; border-radius: 8px; background: var(--amber-soft); color: #6d4b00; font-size: 13px; }
.master-sync-conflicts summary { cursor: pointer; font-weight: 600; }
.master-sync-conflicts ul { max-height: 180px; margin: 10px 0 0; padding-left: 20px; overflow: auto; line-height: 1.6; }
.master-table-wrap { max-height: calc(100vh - 300px); }
.master-table-wrap table { min-width: 900px; }
.record-count { margin-left: auto; color: var(--muted); font-size: 13px; }

.admin-layout { display: grid; gap: 30px; }
.admin-create-form { max-width: 980px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.permission-fieldset { margin: 20px 0 0; padding: 18px; border: 1px solid var(--line); background: white; }
.permission-fieldset legend { padding: 0 7px; color: var(--ink); font-size: 14px; font-weight: 650; }
.role-default-toggle { display: flex; grid-auto-flow: column; grid-template-columns: auto 1fr; justify-content: start; align-items: center; gap: 8px; margin-bottom: 16px; }
.role-default-toggle input, .permission-option input { width: 16px; min-height: 16px; margin: 0; }
.permission-list { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px 18px; }
.permission-group { padding-top: 10px; border-top: 1px solid #edf0f2; }
.permission-group strong { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.permission-option { display: flex; grid-auto-flow: column; grid-template-columns: auto 1fr; justify-content: start; align-items: center; gap: 8px; min-height: 30px; color: var(--ink); font-weight: 400; }
.permission-list.disabled { opacity: .55; }
.user-table { min-width: 900px; }
.user-cell strong, .user-cell span { display: block; }
.user-cell span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.user-permissions { max-width: 330px; white-space: normal; color: var(--muted); line-height: 1.45; }
.table-actions { display: flex; gap: 6px; }

dialog { width: min(1000px, calc(100vw - 40px)); height: min(760px, calc(100vh - 40px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 18px 60px rgba(14, 25, 35, .24); }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(18, 25, 32, .45); }
.dialog-header { position: sticky; top: 0; z-index: 2; min-height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
#dialog-content { min-height: 0; padding: 20px; overflow: auto; }
.detail-columns { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(420px, 1.4fr); gap: 24px; }
.source-panel { padding-right: 20px; border-right: 1px solid var(--line); }
.source-text { margin-top: 12px; padding: 14px; min-height: 160px; white-space: pre-wrap; background: #f5f7f8; border: 1px solid var(--line); line-height: 1.6; }
.review-form .field-grid { margin-top: 0; }
.item-editor { margin-top: 18px; border-top: 1px solid var(--line); }
#review-freight-panel { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; padding: 14px 0; }
#review-freight-panel[hidden] { display: none; }
#review-freight-panel > label { width: 220px; max-width: 100%; }
#review-freight-summary { flex: 1 1 220px; margin: 0; color: var(--muted); line-height: 1.5; }
.item-line { display: grid; grid-template-columns: minmax(180px, 2fr) 80px 100px; align-items: start; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-item-number { display: inline-block; margin-bottom: 6px; padding: 3px 9px; border-radius: 4px; background: #e7f3ef; color: #176b54; font-size: 13px; font-weight: 700; }
.item-product { min-width: 0; display: grid; align-content: start; gap: 6px; }
.item-product select { width: 100%; }
.selected-product-full-name { display: block; min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.selected-product-full-name[hidden] { display: none; }
.guanyi-stock { display: block; position: static; min-width: 0; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.guanyi-stock-heading { display: block; margin-bottom: 3px; font-weight: 600; }
.guanyi-stock-breakdown { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.guanyi-stock-chip { display: inline-block; max-width: 100%; padding: 2px 5px; border-radius: 3px; background: #f1f4f3; overflow-wrap: anywhere; }
.guanyi-stock-time { display: block; margin-top: 3px; font-size: 10px; }
.candidate-products { display: flex; flex-direction: column; gap: 0; min-width: 0; margin: 2px 0 0; padding: 0; max-height: 360px; overflow-y: auto; border: 1px solid #d7dde1; background: #fff; }
.candidate-products-heading { flex: 0 0 auto; padding: 9px 11px; border-bottom: 1px solid #d7dde1; background: #f5f7f8; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.candidate-product-option { display: grid; flex: 0 0 auto; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; min-width: 0; min-height: 52px; padding: 9px 11px; border-bottom: 1px solid #edf0f2; cursor: pointer; }
.candidate-product-option:last-child { border-bottom: 0; }
.candidate-product-option:hover { background: #f7faf9; }
.candidate-product-option:has(input:checked) { background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green); }
.candidate-product-option input { width: 16px; min-height: 16px; margin: 2px 0 0; }
.candidate-product-option strong, .candidate-product-option small { display: block; overflow-wrap: anywhere; }
.candidate-product-option strong { color: var(--ink); font-size: 12px; line-height: 1.45; }
.candidate-product-option small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.4; }
.candidate-product-option > span { min-width: 0; }
.manual-product-search-results { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; border: 1px solid var(--line); background: #fff; }
.manual-product-search-heading { flex: 0 0 auto; padding: 8px 11px; border-bottom: 1px solid var(--line); background: #f5f7f8; color: var(--muted); font-size: 12px; line-height: 1.45; }
.manual-product-search-option { display: grid; flex: 0 0 auto; gap: 3px; width: 100%; min-width: 0; min-height: 54px; height: auto; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; white-space: normal; overflow: visible; }
.manual-product-search-option:last-child { border-bottom: 0; }
.manual-product-search-option:hover, .manual-product-search-option:focus-visible { background: var(--green-soft); outline: none; }
.manual-product-search-option strong, .manual-product-search-option span { display: block; min-width: 0; overflow-wrap: anywhere; }
.manual-product-search-option strong { font-size: 12px; line-height: 1.45; }
.manual-product-search-option span, .manual-product-search-empty { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.45; }
.manual-product-search-empty { padding: 14px 11px; }
.item-rule-note { display: block; margin: 0 0 3px; padding: 8px 10px; border-left: 3px solid #cbd5d1; background: #f5f7f8; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.unresolved-item-note { border-left-color: var(--red); background: #fff4f2; color: var(--red); font-weight: 600; }
.submit-blocked { margin-top: 16px; padding: 12px 14px; border-left: 3px solid #b5473c; background: #fff4f2; color: #8f3028; font-size: 13px; line-height: 1.5; }
.submit-complete { display: grid; gap: 4px; margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--green-soft); color: #245d4a; font-size: 13px; line-height: 1.5; }
.dialog-actions { position: sticky; bottom: -20px; z-index: 1; display: flex; gap: 8px; justify-content: flex-end; margin: 20px -20px -20px; padding: 14px 20px; border-top: 1px solid var(--line); background: white; }
.product-search-results { grid-column: 1 / -1; border: 1px solid var(--line); background: white; }
.product-search-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.product-search-row:last-child { border-bottom: 0; }
.product-search-row strong, .product-search-row span { display: block; }
.product-search-row strong { font-size: 13px; color: var(--ink); }
.product-search-row span { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.product-add-button { flex: 0 0 36px; border: 1px solid var(--line); border-radius: 5px; font-size: 20px; }
.product-search-empty { padding: 18px 12px; color: var(--muted); text-align: center; font-weight: 400; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; width: 100%; height: auto; padding: 12px; }
  .brand-block { padding: 0 4px 12px; }
  nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .nav-item { min-width: 0; padding: 0 6px; text-align: center; }
  .sidebar-status { display: none; }
  .sidebar-account { margin-top: 10px; }
  main { padding: 0 16px 28px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .status-row { grid-template-columns: 110px 80px 1fr; }
  .detail-columns { grid-template-columns: 1fr; }
  .source-panel { padding-right: 0; padding-bottom: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .master-import { grid-template-columns: 1fr; align-items: stretch; }
  .permission-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .topbar { min-height: 78px; }
  h1 { font-size: 20px; }
  .topbar p { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .master-sync-bar { align-items: stretch; flex-direction: column; }
  .toolbar select, .toolbar input, .toolbar .button { width: 100%; max-width: none; }
  .work-row { grid-template-columns: 1fr; gap: 12px; }
  .field-grid { grid-template-columns: 1fr; }
  label.wide { grid-column: auto; }
  .segmented-control { width: 100%; }
  .form-actions.split-actions { align-items: stretch; flex-direction: column-reverse; gap: 10px; }
  .form-actions.split-actions .button { justify-content: center; width: 100%; }
  .status-row { grid-template-columns: 1fr auto; padding: 12px 0; }
  .status-row span:last-child { grid-column: 1 / -1; }
  .integration-actions { align-items: stretch; flex-direction: column; }
  .item-line { grid-template-columns: 1fr 76px 92px; }
  .permission-list { grid-template-columns: 1fr; }
}

.image-intake-preview { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.image-intake-preview img { width: 112px; height: 112px; object-fit: contain; background: white; border: 1px solid var(--line); }
.image-drop-zone { min-height: 112px; display: grid; place-content: center; gap: 6px; padding: 20px; border: 1px dashed #aeb8c2; border-radius: 5px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.image-drop-zone:hover, .image-drop-zone.drag-active { border-color: var(--green); background: var(--green-soft); }
.image-drop-title { color: var(--ink); font-size: 14px; font-weight: 650; }
.image-drop-meta { color: var(--muted); font-size: 12px; font-weight: 400; }
.image-confirm-label { display: flex; align-items: center; margin-top: 14px; }
.image-confirm-label input { width: auto; min-height: auto; }
#image-intake-raw { white-space: pre-wrap; overflow-wrap: anywhere; }
#image-intake-status { white-space: pre-line; }
.visually-hidden { 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; }
