:root {
  --ink: #17241f;
  --muted: #68756f;
  --line: #dfe5e1;
  --paper: #f4f5f1;
  --card: #ffffff;
  --nav: #142c27;
  --nav-soft: #1e3b34;
  --jade: #2e7d67;
  --jade-dark: #1c5c4c;
  --jade-pale: #e4f1ec;
  --gold: #b78949;
  --gold-pale: #f7efe1;
  --coral: #c96859;
  --blue: #526ea3;
  --shadow: 0 12px 36px rgba(25, 52, 43, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 40;
  display: flex; flex-direction: column; padding: 24px 18px;
  color: #edf6f2; background:
    radial-gradient(circle at 20% 0%, rgba(80,151,126,.25), transparent 32%),
    linear-gradient(165deg, #17322b, #10251f 70%);
  box-shadow: 8px 0 30px rgba(18, 43, 35, .08);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px 26px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  color: #173128; background: linear-gradient(145deg, #e9d6ab, #c9a86a);
  font-family: SimSun, serif; font-size: 24px; font-weight: 700; box-shadow: inset 0 1px 0 #fff7;
}
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; letter-spacing: .04em; }
.brand span { margin-top: 4px; color: #9fb9af; font-size: 11px; }
.nav { display: grid; gap: 4px; }
.nav-label { padding: 19px 12px 6px; color: #78958a; font-size: 11px; letter-spacing: .14em; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 13px;
  border: 0; border-radius: 12px; color: #bcd0c8; background: transparent; text-align: left;
  transition: .18s ease;
}
.nav-item:hover { color: white; background: #ffffff0d; transform: translateX(2px); }
.nav-item.active { color: white; background: linear-gradient(90deg, #3a806a, #2d6858); box-shadow: 0 10px 24px #061a1355; }
.nav-icon { width: 22px; color: #d9c18f; font-size: 18px; text-align: center; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 13px; background: #ffffff0a; }
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { font-size: 12px; }
.sidebar-foot span { margin-top: 3px; color: #8da79d; font-size: 10px; }
.server-dot { width: 9px; height: 9px; border-radius: 50%; background: #73d3a8; box-shadow: 0 0 0 5px #73d3a81c; }

.workspace { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 76px; display: flex; align-items: center; gap: 20px;
  padding: 0 30px; border-bottom: 1px solid #dfe5df; background: rgba(247, 248, 245, .9); backdrop-filter: blur(16px);
}
.menu-btn { display: none !important; }
.search-wrap { position: relative; flex: 1; max-width: 680px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #dce3de; border-radius: 13px; background: white; }
.search-wrap > span { color: #7d8b85; font-size: 23px; transform: rotate(-20deg); }
.search-wrap input { width: 100%; height: 43px; border: 0; outline: 0; color: var(--ink); background: transparent; }
kbd { padding: 3px 7px; border: 1px solid #d9e0dc; border-bottom-width: 2px; border-radius: 6px; color: #84908b; background: #f7f8f6; font-size: 10px; white-space: nowrap; }
.search-results { position: absolute; top: 52px; left: 0; right: 0; display: none; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.search-results.show { display: block; }
.search-result { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-radius: 9px; font-size: 13px; }
.search-result:hover { background: var(--paper); }
.search-result small { color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; color: #53625c; background: white; }
.notify-dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.user-chip { display: flex; align-items: center; gap: 9px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--jade), #163f34); font-size: 13px; }
.user-chip strong, .user-chip span { display: block; }
.user-chip strong { font-size: 12px; }
.user-chip span { margin-top: 2px; color: var(--muted); font-size: 10px; }

#mainContent { padding: 28px 30px 48px; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-kicker { margin-bottom: 5px; color: var(--jade); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.page-head h1 { margin: 0; font-family: SimSun, "Songti SC", serif; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.04em; }
.page-head p { max-width: 700px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px; color: #31423b; background: white; font-weight: 700; font-size: 13px; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px #153d3020; }
.btn-primary { border-color: var(--jade); color: white; background: linear-gradient(135deg, #347e69, #23604f); }
.btn-gold { border-color: #d5bd8c; color: #64491f; background: var(--gold-pale); }
.btn-danger { border-color: #a64137; color: white; background: #a64137; }
.btn-danger:hover { background: #8d332b; }
.btn-danger-ghost { border-color: #e6c7c2; color: #9b3e35; background: #fff8f7; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: 12px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { position: relative; overflow: hidden; min-height: 128px; padding: 20px; border: 1px solid #e0e5e1; border-radius: var(--radius); background: var(--card); box-shadow: 0 8px 26px rgba(31, 58, 49, .045); }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -28px; bottom: -37px; border-radius: 50%; background: var(--wash, var(--jade-pale)); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--accent, var(--jade)); background: var(--wash, var(--jade-pale)); font-size: 17px; }
.metric-value { margin-top: 13px; font-family: Georgia, serif; font-size: 30px; font-weight: 700; }
.metric-note { margin-top: 4px; color: var(--muted); font-size: 11px; }
.positive { color: var(--jade); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; }
.grid-equal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { border: 1px solid #e0e5e1; border-radius: var(--radius); background: var(--card); box-shadow: 0 8px 26px rgba(31, 58, 49, .04); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 21px 15px; border-bottom: 1px solid #edf0ed; }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 18px 21px; }

.workflow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.workflow-step { position: relative; width: 100%; padding: 15px 12px; border: 1px solid transparent; border-radius: 13px; color: inherit; background: #f6f8f5; text-align: left; cursor: pointer; transition: .18s ease; }
.workflow-step:hover { border-color: #9ab9ad; transform: translateY(-2px); }
.workflow-step.done { background: #eef7f3; }
.workflow-step.current { border-color: var(--gold); box-shadow: 0 0 0 3px #c9aa7020; }
.workflow-step:not(:last-child)::after { content: "›"; position: absolute; top: 28px; right: -9px; z-index: 2; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #739084; background: white; box-shadow: 0 2px 8px #0001; }
.step-num { color: var(--jade); font-family: Georgia, serif; font-size: 19px; }
.workflow-step strong, .workflow-step span { display: block; }
.workflow-step strong { margin-top: 8px; font-size: 12px; }
.workflow-step span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.next-task { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 20px 22px; border: 1px solid #dcc38f; border-radius: 17px; background: linear-gradient(115deg,#fffaf0,#f5fbf8); box-shadow: var(--shadow); }
.next-task span { color: #8a672d; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.next-task h2 { margin: 5px 0 4px; font-size: 18px; }
.next-task p { margin: 0; color: var(--muted); font-size: 11px; }

.record-list { display: grid; gap: 3px; }
.record-row { display: grid; grid-template-columns: minmax(200px, 1.25fr) minmax(145px, .8fr) 100px 110px; align-items: center; gap: 12px; padding: 13px 10px; border-radius: 11px; transition: .16s ease; }
.record-row:hover { background: #f5f7f4; }
.record-link { min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.combo-row { grid-template-columns: minmax(220px,1.25fr) minmax(150px,.8fr) 105px minmax(190px,.8fr); }
.combo-actions { display: flex; justify-content: flex-end; gap: 6px; }
.sample-section { margin-top: 14px; border: 1px dashed var(--line); border-radius: 14px; background: #fbfcfa; }
.sample-section summary { padding: 14px 18px; color: var(--muted); font-size: 11px; cursor: pointer; }
.sample-row { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 11px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.sample-row:hover { background: #f1f4f1; }
.empty-state.compact { padding: 25px 15px; }
.record-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.thumb { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: #e9ece8; }
.record-main strong, .record-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-main strong { font-size: 12px; }
.record-main span, .record-cell small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.record-cell { color: #415049; font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; width: max-content; padding: 5px 9px; border-radius: 999px; color: var(--badge-text, var(--jade-dark)); background: var(--badge-bg, var(--jade-pale)); font-size: 10px; font-weight: 800; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.gold { --badge-bg: var(--gold-pale); --badge-text: #9a6c2b; }
.badge.gray { --badge-bg: #edf0ee; --badge-text: #6c7772; }
.badge.coral { --badge-bg: #fae9e6; --badge-text: #b95143; }
.progress { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #e7ebe8; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--jade), #6ab397); }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-card { min-height: 112px; padding: 15px; border: 1px solid #e5e9e6; border-radius: 14px; background: linear-gradient(145deg, white, #f7f8f5); text-align: left; }
.quick-card:hover { border-color: #b6cfc5; transform: translateY(-2px); box-shadow: 0 10px 22px #14382e12; }
.quick-card b, .quick-card span { display: block; }
.quick-card b { margin: 13px 0 4px; font-size: 12px; }
.quick-card span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.quick-symbol { color: var(--gold); font-size: 20px; }

.data-toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.field-control { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; outline: 0; }
.data-toolbar .field-control:first-child { flex: 1; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.archive-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; transition: .18s ease; }
.archive-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.archive-image { position: relative; height: 180px; overflow: hidden; background: #edf0ec; }
.archive-image img { width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.color-gallery { width: 100%; height: 100%; display: grid; gap: 2px; background: #dfe4df; }
.color-gallery.count-1 { grid-template-columns: 1fr; }
.color-gallery.count-2 { grid-template-columns: 1fr 1fr; }
.color-gallery.count-3 { grid-template-columns: repeat(3, 1fr); }
.color-gallery.count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.color-gallery img, .color-gallery .gallery-placeholder { width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.gallery-placeholder { display: grid; place-items: center; color: white; background: var(--coral); font-size: 12px; font-weight: 800; }
.imported-card { border-color: #a9c8bc; box-shadow: 0 8px 25px #2e7d6710; }
.archive-card:hover .archive-image img { transform: scale(1.025); }
.archive-overlay { position: absolute; left: 12px; bottom: 12px; padding: 5px 8px; border-radius: 8px; color: white; background: #142b24c9; backdrop-filter: blur(7px); font-size: 10px; }
.archive-content { padding: 15px; }
.archive-content h3 { margin: 0; font-size: 14px; }
.archive-content p { margin: 7px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.meta-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid #edf0ed; color: var(--muted); font-size: 10px; }

.detail-hero { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.detail-art { position: relative; min-height: 320px; overflow: hidden; background: #e8ece8; }
.detail-art img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.custom-combo-art { padding: 14px; }
.combo-color-gallery { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.combo-color-gallery > div { position: relative; min-height: 270px; overflow: hidden; border-radius: 12px; background: white; }
.combo-color-gallery img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.combo-color-gallery span { position: absolute; right: 8px; bottom: 8px; padding: 5px 7px; border-radius: 7px; color: white; background: #173a30d9; font-size: 10px; }
.detail-art::after { content: "样例图 · 非同一正式订单"; position: absolute; left: 18px; bottom: 17px; padding: 6px 9px; border-radius: 8px; color: white; background: #142b24cc; font-size: 10px; }
.detail-info { padding: 28px; }
.detail-info h2 { margin: 7px 0 8px; font-family: Georgia, SimSun, serif; font-size: 27px; }
.detail-info > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.info-box { padding: 13px; border-radius: 12px; background: #f5f7f4; }
.info-box span, .info-box strong { display: block; }
.info-box span { color: var(--muted); font-size: 10px; }
.info-box strong { margin-top: 5px; font-size: 12px; }
.schemes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.scheme-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.scheme-photo { width: 100%; height: 105px; margin-bottom: 13px; border-radius: 10px; object-fit: cover; }
.scheme-card.empty { display: grid; place-items: center; min-height: 245px; border-style: dashed; color: var(--muted); background: #fafbf9; text-align: center; }
.scheme-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.scheme-head h3 { margin: 0; font-size: 13px; }
.swatch-list { display: grid; gap: 8px; }
.swatch-row { display: grid; grid-template-columns: 66px 28px 1fr; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.swatch { width: 28px; height: 20px; border: 1px solid #0001; border-radius: 6px; background: var(--swatch); }
.swatch-row strong { color: #33443d; font-size: 10px; }
.scheme-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0ed; color: var(--muted); font-size: 10px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 12px; color: #7a8781; background: #f6f8f5; font-size: 10px; font-weight: 700; text-align: left; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #edf0ed; color: #35463f; font-size: 11px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.material-name { display: flex; align-items: center; gap: 9px; }
.material-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot), white 78%); }

.empty-state { padding: 44px 20px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin: 12px 0 5px; color: var(--ink); }
.empty-symbol { font-size: 32px; color: var(--gold); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: #0b211bc4; backdrop-filter: blur(8px); }
.modal-backdrop.show { display: grid; }
.modal { position: relative; width: min(720px, 100%); max-height: 90vh; overflow: auto; border-radius: 22px; background: white; box-shadow: 0 28px 80px #05130e88; animation: modalIn .18s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 10px; color: #5f6b66; background: #edf1ee; font-size: 21px; }
.modal-inner { padding: 28px; }
.modal-inner.wide { padding: 28px; }
.modal:has(.modal-inner.wide) { width: min(980px, 100%); }
.modal-inner h2 { margin: 0; font-family: SimSun, serif; font-size: 25px; }
.modal-inner > p { margin: 8px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #52615b; font-size: 11px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #dbe2dd; border-radius: 10px; color: var(--ink); background: #fbfcfa; outline: none; }
.form-field textarea { min-height: 76px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #70a895; box-shadow: 0 0 0 3px #70a8951c; }
.form-hint { color: var(--muted); font-size: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #edf0ed; }
.modal:has(.embroidery-review-modal) { overflow: auto; }
.embroidery-review-modal { min-height: 84vh; padding-bottom: 34px; }
.embroidery-review-form .batch-review { max-height: none; overflow: visible; }
.review-rule { margin-top: 12px; }
.review-sticky-actions { position: sticky; top: -28px; z-index: 5; align-items: center; justify-content: space-between; margin: 0 0 14px; padding: 13px 0; border-top: 0; border-bottom: 1px solid var(--line); background: #fffffff4; box-shadow: 0 12px 22px #153a3012; backdrop-filter: blur(10px); }
.review-next-hint { display: grid; gap: 3px; }
.review-next-hint strong { color: var(--ink); font-size: 11px; }
.review-next-hint span { color: var(--muted); font-size: 9px; }
.combination-picker-modal { min-height: 78vh; }
.combination-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.visual-picker-panel { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #f7f9f7; }
.visual-picker-head { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 10px; margin-bottom: 10px; }
.visual-picker-head strong, .visual-picker-head span { display: block; }
.visual-picker-head strong { font-size: 11px; }
.visual-picker-head span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.visual-picker-head input { min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.visual-picker-list { display: grid; gap: 9px; max-height: 390px; overflow: auto; padding-right: 3px; }
.visual-picker-card { position: relative; display: grid; grid-template-columns: 126px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; transition: .16s ease; }
.visual-picker-card:hover { border-color: #86ae9f; transform: translateY(-1px); }
.visual-picker-card:has(input:checked) { border-color: var(--jade); background: var(--jade-pale); box-shadow: 0 0 0 2px #2e7d6715; }
.visual-picker-card input { position: absolute; opacity: 0; }
.visual-picker-card strong, .visual-picker-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visual-picker-card strong { font-size: 10px; }
.visual-picker-card span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.visual-picker-card > b { padding: 5px 7px; border-radius: 7px; color: var(--jade); background: #e7f1ed; font-size: 8px; }
.visual-picker-card:has(input:checked) > b { color: white; background: var(--jade); }
.visual-picker-images { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 126px; height: 78px; overflow: hidden; border-radius: 8px; background: #edf1ee; }
.visual-picker-images img { width: 100%; height: 78px; object-fit: contain; background: white; }
.combination-meta { margin-top: 14px; }
.combo-pair-thumb { display: grid; grid-template-columns: 1fr 1fr; width: 78px; height: 58px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.combo-pair-thumb img { width: 100%; height: 100%; object-fit: contain; }
.combo-reference-section { display: grid; gap: 8px; padding: 12px; }
.combo-reference-section + .combo-reference-section { border-top: 1px solid var(--line); }
.combo-reference-section > strong { color: var(--muted); font-size: 10px; }
.custom-combo-art::after { display: none; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: left; transition: .18s ease; }
.choice-card:hover { border-color: #9ab9ad; transform: translateY(-1px); }
.choice-card.selected { border-color: var(--jade); background: var(--jade-pale); box-shadow: 0 0 0 2px #2e7d6712; }
.choice-card > div { flex: 1; }
.choice-check { display: none; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: white; background: var(--jade); font-size: 12px; }
.choice-card.selected .choice-check { display: grid; }
.upload-drop { display: grid; place-items: center; min-height: 142px; margin-top: 16px; padding: 22px; border: 1.5px dashed #aac0b7; border-radius: 15px; color: var(--muted); background: #f8faf8; text-align: center; cursor: pointer; transition: .18s ease; }
.upload-drop:hover { border-color: var(--jade); background: var(--jade-pale); }
.upload-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-drop strong { margin: 8px 0 4px; color: var(--ink); font-size: 13px; }
.upload-drop > span:last-of-type { font-size: 10px; }
.upload-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--jade); font-size: 20px; }
.file-list { display: grid; gap: 8px; margin-top: 12px; }
.file-empty { padding: 13px; border-radius: 10px; color: var(--muted); background: #f2f4f1; font-size: 11px; text-align: center; }
.file-item { display: grid; grid-template-columns: 52px minmax(0,1fr) 30px; align-items: center; gap: 11px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.file-item img, .pdf-symbol { width: 52px; height: 46px; border-radius: 8px; object-fit: cover; }
.pdf-symbol { display: grid; place-items: center; color: white; background: var(--coral); font-size: 10px; font-weight: 800; }
.file-item strong, .file-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item strong { font-size: 11px; }
.file-item span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.file-item button { width: 28px; height: 28px; border: 0; border-radius: 8px; color: var(--muted); background: #edf1ee; }
.inline-alert { margin-top: 13px; padding: 11px 13px; border-radius: 10px; color: #9a3f34; background: #fbe9e6; font-size: 11px; }
.inline-alert.info { color: #315d50; background: var(--jade-pale); }
.demo-notice { margin: 0 0 18px; }
.recognizing { display: grid; place-items: center; min-height: 400px; padding: 45px; text-align: center; }
.recognizing h2 { margin: 20px 0 7px; font-family: SimSun, serif; font-size: 24px; }
.recognizing p, .recognizing small { color: var(--muted); }
.scan-ring { width: 92px; height: 92px; display: grid; place-items: center; border: 3px solid #dcebe5; border-top-color: var(--jade); border-radius: 50%; animation: scanSpin 1s linear infinite; }
.scan-ring span { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; color: var(--jade); background: var(--jade-pale); font-size: 12px; font-weight: 800; animation: scanSpin 1s linear infinite reverse; }
@keyframes scanSpin { to { transform: rotate(360deg); } }
.scan-progress { width: min(360px, 100%); height: 7px; margin: 22px 0 10px; overflow: hidden; border-radius: 99px; background: #e8ece9; }
.scan-progress i { display: block; width: 55%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--jade), #70b79d); animation: scanMove .8s ease-in-out infinite alternate; }
@keyframes scanMove { to { width: 92%; } }
.recognition-grid { display: grid; grid-template-columns: minmax(190px,.72fr) minmax(0,1.28fr); gap: 18px; }
.recognition-preview { position: relative; min-height: 270px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #eef1ed; }
.recognition-preview.tall { min-height: 430px; }
.recognition-preview img { width: 100%; height: 100%; position: absolute; object-fit: contain; background: white; }
.recognition-preview > span { position: absolute; left: 10px; right: 10px; bottom: 10px; overflow: hidden; padding: 6px 8px; border-radius: 7px; color: white; background: #173a30d9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pdf-large { height: 100%; display: grid; place-items: center; color: var(--coral); font-size: 36px; font-weight: 900; }
.mini-table { margin-top: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.mini-table > div { display: grid; grid-template-columns: 1fr .8fr .8fr; }
.mini-table span { padding: 7px 9px; border-bottom: 1px solid #edf0ed; font-size: 9px; }
.mini-table > div:last-child span { border-bottom: 0; }
.mini-table-head { color: var(--muted); background: #f4f6f3; font-weight: 800; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.batch-review { display: grid; gap: 13px; max-height: 58vh; overflow: auto; padding-right: 4px; }
.batch-review-card { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf9; }
.embroidery-review-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fafbf9; }
.embroidery-review-card .batch-review-card { border: 0; border-radius: 0; }
.card-review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line); background: #fff8ea; }
.card-review-toolbar > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.card-review-toolbar strong { color: var(--muted); font-size: 9px; line-height: 1.5; }
.btn-small { min-height: 34px; padding: 7px 10px; font-size: 9px; }
.file-replace { position: relative; overflow: hidden; cursor: pointer; }
.file-replace input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.embroidery-review-card.needs-confirmation { border-color: #d5b36f; box-shadow: 0 0 0 2px #f5ead3; }
.embroidery-review-card.is-confirmed { border-color: #72aa97; box-shadow: 0 0 0 2px #e2f1eb; }
.embroidery-review-card.is-confirmed .card-review-toolbar { background: #edf8f3; }
.embroidery-review-card.has-review-error { border-color: #b94e43; box-shadow: 0 0 0 2px #f6dfdc; }
.embroidery-review-card.has-review-error .card-review-toolbar { background: #fff0ed; }
.badge.error { color: #8d3028; background: #f8deda; }
.ocr-result-line { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ocr-result-line strong { color: var(--muted); font-size: 9px; }
.editable-material-table { margin: 0 13px 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.editable-material-head, .editable-material-row { display: grid; grid-template-columns: 1fr .8fr 1.25fr 118px; gap: 1px; background: var(--line); }
.editable-material-head span { padding: 8px 10px; color: var(--muted); background: #f4f6f4; font-size: 9px; font-weight: 800; }
.editable-material-row input { width: 100%; min-height: 36px; border: 0; border-radius: 0; background: white; font-size: 10px; }
.quantity-input { display: grid; grid-template-columns: 1fr 58px; gap: 1px; background: var(--line); }
.material-absent-toggle { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px; color: #8d3028; background: #fff; cursor: pointer; font-size: 8px; font-weight: 700; }
.material-absent-toggle input { width: 14px; min-height: 14px; accent-color: #a64137; }
.editable-material-row.is-absent { opacity: .58; }
.editable-material-row.is-absent input:not([data-material-absent]) { color: #78827e; background: #f0f2f0; text-decoration: line-through; }
.editable-material-row.is-absent .material-absent-toggle { color: #315d50; background: #eaf4f0; }
.material-review-hint { margin: -4px 13px 13px; padding: 9px 11px; border-radius: 9px; color: #5f6b66; background: #f3f6f4; font-size: 9px; }
.batch-preview { position: relative; min-height: 145px; overflow: hidden; border-radius: 11px; background: #edf1ee; }
.batch-preview.tall { min-height: 185px; }
.batch-preview img { width: 100%; height: 100%; position: absolute; object-fit: contain; background: white; }
.batch-preview b { position: absolute; left: 8px; bottom: 8px; padding: 5px 7px; border-radius: 7px; color: white; background: #173a30dc; font-size: 9px; }
.form-grid.compact { gap: 9px; align-content: start; }
.form-grid.compact .form-field { gap: 4px; }
.form-grid.compact input, .form-grid.compact select { min-height: 38px; padding: 7px 9px; font-size: 11px; }
.recognition-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.recognition-legend span { padding: 7px 10px; border-radius: 999px; color: #315d50; background: var(--jade-pale); font-size: 10px; font-weight: 700; }
.multi-print-review { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fafbf9; }
.multi-print-source { min-width: 0; }
.multi-print-source .batch-preview { min-height: 210px; }
.panel-detection { display: grid; gap: 10px; margin-top: 10px; padding: 11px; border-radius: 11px; background: white; }
.panel-detection > div { display: flex; align-items: center; gap: 7px; }
.panel-detection strong { color: var(--muted); font-size: 9px; }
.panel-detection label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-size: 10px; font-weight: 700; }
.panel-detection select { min-height: 34px; padding: 5px 24px 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.source-file-name { display: block; margin-top: 8px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.detected-colorway-list { display: grid; gap: 9px; }
.detected-colorway { position: relative; padding: 12px 12px 12px 58px; border: 1px solid #e0e6e2; border-radius: 12px; background: white; }
.colorway-number { position: absolute; top: 12px; left: 11px; width: 38px; padding: 7px 3px; border-radius: 8px; color: white; background: var(--jade); font-size: 9px; font-weight: 800; text-align: center; }
.code-read-status { display: inline-flex; margin: 0 0 8px; padding: 4px 8px; border-radius: 999px; color: #85601b; background: #fbf2df; font-size: 9px; font-weight: 800; }
.code-read-status.success { color: #17634f; background: #e2f2ec; }
.workflow-boundary { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #cfe3db; border-radius: 12px; color: #315d50; background: #f0f8f5; }
.workflow-boundary strong { font-size: 10px; }
.workflow-boundary span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.saved-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.saved-gallery article { padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fafbf9; }
.saved-gallery-image { height: 220px; overflow: hidden; border-radius: 10px; background: white; }
.saved-gallery-image img { width: 100%; height: 100%; object-fit: contain; }
.saved-gallery strong, .saved-gallery span { display: block; }
.saved-gallery strong { margin-top: 9px; font-size: 11px; }
.saved-gallery span { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.saved-gallery .btn { width: 100%; margin-top: 9px; }
.archive-file-replace { position: relative; overflow: hidden; text-align: center; }
.archive-file-replace input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.archive-file-replace.is-loading { opacity: .65; pointer-events: none; }
.file-resolution-warning { color: #a15b21 !important; font-weight: 700; }
.archive-delete-rule { margin-bottom: 18px; }
.optional-check { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 10px; cursor: pointer; }
.optional-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--jade); }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.revision-note { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.modal-actions.spread { justify-content: space-between; }
.danger-symbol { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; color: white; background: #a64137; font-size: 24px; font-weight: 800; }
.delete-summary { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9f7; }
.delete-summary span { color: var(--muted); font-size: 11px; }
.production-sheet { margin-top: 18px; padding: 24px; border: 2px solid #18362d; color: #17241f; background: white; }
.production-sheet header { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 3px solid #18362d; }
.production-sheet header span { color: var(--jade); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.production-sheet h1 { margin: 5px 0 0; font-family: SimSun, serif; font-size: 28px; }
.sheet-number { text-align: right; }
.sheet-number small, .sheet-number strong { display: block; }
.sheet-number small { color: var(--muted); font-size: 9px; }
.sheet-number strong { margin-top: 5px; font-size: 12px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 18px; border: 1px solid #d9e1dc; border-width: 1px 0 0 1px; }
.sheet-grid > div { padding: 10px; border: 1px solid #d9e1dc; border-width: 0 1px 1px 0; }
.sheet-grid small, .sheet-grid strong { display: block; }
.sheet-grid small { color: var(--muted); font-size: 9px; }
.sheet-grid strong { margin-top: 4px; font-size: 10px; }
.sheet-reference-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: 18px 0; }
.sheet-reference { margin: 0; overflow: hidden; border: 1px solid var(--line); background: white; }
.sheet-reference figcaption { padding: 8px 10px; color: #315d50; background: var(--jade-pale); font-size: 9px; font-weight: 800; }
.sheet-reference img { display: block; width: 100%; height: 300px; object-fit: contain; background: white; }
.print-reference { grid-column: 1 / -1; }
.print-reference img { height: 420px; padding: 10px; object-fit: contain; filter: saturate(.78) contrast(1.04); transform: scale(var(--print-zoom, 1.5)); transform-origin: center; }
.embroidery-reference { grid-column: 1 / -1; }
.embroidery-reference img { height: 620px; padding: 10px; }
.placement-reference { grid-column: 1 / -1; border-width: 2px; border-color: #b99a5c; }
.placement-reference img { height: 620px; padding: 10px; object-fit: contain; }
.duplicate-note { display: block; margin-top: 7px; color: #8a651f; font-size: 9px; }
.sheet-placement-note { grid-column: 1 / -1; padding: 16px; border: 1px dashed #b99a5c; color: #6d5730; background: #fffaf0; font-size: 10px; }
.sheet-material-summary { margin-top: 18px; break-inside: avoid; }
.sheet-material-execution { margin-top: 18px; break-inside: avoid; }
.sheet-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.sheet-section-heading h2, .sheet-section-heading p { margin: 0; }
.sheet-section-heading p { margin-top: 4px; }
.sheet-execution-table { table-layout: fixed; }
.sheet-execution-table th:nth-child(1) { width: 31%; }
.sheet-execution-table th:nth-child(2) { width: 23%; }
.sheet-execution-table th:nth-child(3), .sheet-execution-table th:nth-child(4) { width: 23%; }
.sheet-execution-table td strong, .sheet-execution-table td small { display: block; }
.sheet-execution-table td small { margin-top: 3px; color: var(--muted); }
.manager-accounting { margin-top: 12px; border: 1px solid #d5c8b2; border-radius: 10px; background: #fcfaf6; }
.manager-accounting summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 13px; color: #5d4825; cursor: pointer; }
.manager-accounting summary span, .manager-accounting summary small { display: block; }
.manager-accounting summary span { font-weight: 800; }
.manager-accounting summary small { color: #7c7161; font-size: 9px; text-align: right; }
.manager-accounting-scroll { overflow-x: auto; padding: 0 11px 11px; }
.manager-accounting-scroll table { min-width: 1080px; }
.manager-accounting-locked { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 13px; }
.manager-accounting-locked strong, .manager-accounting-locked small { display: block; }
.manager-accounting-locked small { margin-top: 3px; color: #7c7161; font-size: 9px; }
.manager-output-gate { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 26px 30px; border: 1px solid #d7c7a8; border-radius: 17px; background: linear-gradient(135deg,#fbf7ee,#f1e5ce); box-shadow: 0 12px 34px rgba(82,61,29,.08); }
.manager-output-gate h2, .manager-output-gate p { margin: 0; }
.manager-output-gate h2 { margin-top: 4px; color: #32291d; font-size: 18px; }
.manager-output-gate p { margin-top: 7px; color: #6f6352; font-size: 10px; line-height: 1.7; }
.manager-output-panel { border-color: #cdb681; }
.manager-output-panel .panel-head { background: linear-gradient(135deg,#fbf6eb,#f0e2c6); }
.manager-output-panel .panel-body > h3 { margin: 0 0 10px; color: #473821; font-size: 13px; }
.manager-output-panel .manager-order-title { margin-top: 24px; padding-top: 19px; border-top: 1px solid #ded3c1; }
.manager-accounting-modal .sheet-material-execution { margin-top: 18px; }
.sheet-file-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 7px 9px; border-top: 1px solid var(--line); color: #6f665a; font-size: 8px; }
.sheet-file-meta a { color: #765622; font-weight: 700; }
.sheet-file-meta b { color: #9a5c22; }
.sheet-file-meta.legacy { background: #fff8e9; }
.sheet-execution { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--jade); background: #f5f8f6; }
.sheet-missing-reference { padding: 25px; border: 1px dashed #b94e43; color: #8d3028; background: #fff5f3; font-size: 10px; }
.production-sheet h2 { font-size: 13px; }
.production-sheet p { color: #44524c; font-size: 10px; line-height: 1.7; }
.production-sheet footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.summary-item { padding: 14px; background: #f8faf7; }
.summary-item span, .summary-item strong { display: block; }
.summary-item span { color: var(--muted); font-size: 9px; }
.summary-item strong { margin-top: 5px; font-size: 12px; }

.toast { position: fixed; right: 28px; bottom: 28px; z-index: 150; min-width: 240px; padding: 14px 17px; border-radius: 12px; color: white; background: #173a30; box-shadow: 0 16px 44px #07181255; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .22s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(3, 1fr); }
  .schemes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 252px; transition: .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: grid !important; }
  .topbar { padding: 0 16px; }
  #mainContent { padding: 22px 16px 40px; }
  .user-chip > div:last-child, .top-actions > .icon-btn { display: none; }
  .grid-2, .grid-equal, .detail-hero { grid-template-columns: 1fr; }
  .detail-art { min-height: 280px; }
  .record-row { grid-template-columns: 1fr 100px; }
  .record-row > :nth-child(2), .record-row > :nth-child(3) { display: none; }
  .combo-row { grid-template-columns: 1fr; }
  .combo-actions { justify-content: flex-start; padding-top: 8px; }
  .next-task { align-items: flex-start; flex-direction: column; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .card-review-toolbar { align-items: flex-start; flex-direction: column; }
  .combination-picker-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .metrics, .archive-grid, .schemes, .form-grid, .choice-cards { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .search-wrap kbd { display: none; }
  .topbar { gap: 8px; }
  .detail-info { padding: 20px; }
  .summary-strip { grid-template-columns: 1fr; }
  .recognition-grid { grid-template-columns: 1fr; }
  .recognition-preview, .recognition-preview.tall { min-height: 260px; }
  .batch-review-card { grid-template-columns: 1fr; }
  .multi-print-review { grid-template-columns: 1fr; }
  .workflow-boundary { grid-template-columns: 1fr; }
  .batch-review-card { grid-template-columns: 1fr; }
  .saved-gallery { grid-template-columns: 1fr; }
  .combo-color-gallery { grid-template-columns: 1fr; }
  .sheet-grid { grid-template-columns: 1fr 1fr; }
  .sheet-reference-grid { grid-template-columns: 1fr; }
  .visual-picker-head { grid-template-columns: 1fr; }
  .visual-picker-card { grid-template-columns: 105px minmax(0,1fr); }
  .visual-picker-card > b { display: none; }
  .visual-picker-images { width: 105px; }
  .embroidery-review-modal { min-height: 90vh; padding: 22px 16px 14px; }
  .review-sticky-actions { align-items: stretch; flex-direction: column; }
  .review-sticky-actions .row-actions { width: 100%; }
  .review-sticky-actions .row-actions .btn { flex: 1; }
}

/* TIARA brand system · warm ivory and champagne gold */
:root {
  --ink: #211e1a;
  --muted: #746c61;
  --line: #ded3c1;
  --paper: #f4f0e8;
  --card: #fffdf8;
  --nav: #eae1d1;
  --nav-soft: #f5eee2;
  --jade: #506f63;
  --jade-dark: #354f46;
  --jade-pale: #e8f0ec;
  --gold: #d6b165;
  --gold-pale: #f7ecd4;
  --shadow: 0 18px 48px rgba(74, 59, 36, .09);
}

body { background: radial-gradient(circle at 78% 0%, #f8eedb 0, transparent 34%), #e9e3d9; }
.app-shell { grid-template-columns: 278px minmax(0, 1fr); }
.sidebar {
  padding: 27px 18px 21px; color: var(--ink);
  background: linear-gradient(165deg, #f4eddf 0%, #e8ddca 100%);
  border-right: 1px solid #d8c7a9; box-shadow: 12px 0 36px rgba(74, 55, 27, .06);
}
.brand { align-items: flex-start; gap: 13px; padding: 0 6px 28px; border-bottom: 1px solid #d8c9af; }
.brand-mark {
  position: relative; width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid #c59e54;
  border-radius: 50% 50% 42% 42%; color: #6d5226; background: rgba(255,253,248,.78);
  box-shadow: inset 0 0 0 5px rgba(214,177,101,.12), 0 8px 20px rgba(107,78,32,.09);
  font-family: Georgia, serif; font-size: 25px; letter-spacing: -.05em;
}
.brand-mark::before { content: ""; position: absolute; top: 7px; width: 25px; height: 8px; border: 1px solid #d6b165; border-width: 1px 0 0; transform: rotate(-5deg); }
.brand-mark::after { content: "✦"; position: absolute; top: -9px; right: 2px; color: #d6b165; font-size: 11px; }
.brand-mark span { position: relative; z-index: 1; font-family: Georgia, serif; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.brand-copy strong, .brand-copy b, .brand-copy span { display: block; }
.brand-copy strong { color: #211e1a; font-family: Georgia, serif; font-size: 21px; letter-spacing: .18em; }
.brand-copy b { margin-top: 3px; color: #51483d; font-size: 11px; font-weight: 600; }
.brand-copy span { margin-top: 5px; color: #8c7550; font-size: 7px; letter-spacing: .09em; white-space: nowrap; }
.nav { margin-top: 10px; }
.nav-label { color: #9a896c; font-size: 10px; font-weight: 700; }
.nav-item { position: relative; color: #5d554a; border: 1px solid transparent; }
.nav-item:hover { color: #211e1a; background: rgba(255,253,248,.55); transform: translateX(2px); }
.nav-item.active { color: #211e1a; border-color: #e0d4c1; background: #fffdf8; box-shadow: 0 10px 24px rgba(91,68,32,.08); }
.nav-item.active::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 4px; background: #d6b165; }
.nav-icon { color: #ad8641; }
.sidebar-foot { display: block; border: 1px solid #d9cbb5; background: rgba(255,253,248,.42); }
.sidebar-foot strong { color: #5f513c; font-size: 8px; letter-spacing: .12em; }
.sidebar-foot span { color: #94856e; }
.admin-access { width: 100%; margin-bottom: 10px; padding: 10px 11px; border: 1px solid #d6b165; border-radius: 10px; color: #5f513c; background: #fffaf0; text-align: left; cursor: pointer; }
.admin-access strong { font-size: 10px; letter-spacing: .04em; }
.admin-access.is-unlocked { color: white; border-color: #8d6b30; background: #8d6b30; }
.admin-access.is-unlocked strong, .admin-access.is-unlocked span { color: white; }
.archive-bulk-bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; border: 1px solid #d7c7ab; border-radius: 12px; background: rgba(255,253,248,.96); box-shadow: 0 -8px 20px rgba(67,50,24,.08); }
.archive-select { display: flex; align-items: center; gap: 8px; color: #6c5b42; font-size: 10px; }
.archive-select input { width: 17px; height: 17px; accent-color: #8d6b30; }

.material-library-toolbar { display:grid; grid-template-columns:220px 180px minmax(260px,1fr); gap:12px; margin-bottom:16px; }
.material-library-toolbar select,.material-library-toolbar input { width:100%; min-height:44px; border:1px solid var(--line); border-radius:12px; background:#fffdf8; padding:0 13px; color:var(--ink); }
.material-library-summary { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.material-library-summary span { display:flex; gap:8px; align-items:center; padding:8px 12px; border-radius:999px; background:#f2eadb; color:#6b5839; font-size:11px; }
.material-library-summary b { color:#231f1a; }
.material-library-table td small { display:block; margin-top:4px; color:var(--muted); }
.material-code-stack { min-width:180px; }
.material-code-stack small { display:grid !important; grid-template-columns:72px 1fr; gap:6px; margin:2px 0 !important; white-space:nowrap; }
.material-library-table tr.is-inactive { opacity:.58; }
.digital-color-swatch { display:inline-block; width:52px; height:32px; border:1px solid rgba(22,29,25,.18); border-radius:9px; background:var(--digital-color); box-shadow:inset 0 0 0 3px rgba(255,255,255,.55); vertical-align:middle; }
.digital-color-swatch.large { width:84px; height:58px; border-radius:13px; }
.color-picker-line { display:flex; align-items:center; gap:14px; padding:12px; border:1px solid var(--line); border-radius:14px; background:#faf7ef; }
.color-picker-line input[type="color"] { width:72px; height:58px; padding:3px; border:1px solid var(--line); border-radius:11px; background:white; cursor:pointer; }
.color-picker-line strong { min-width:88px; font-family:Consolas,monospace; }
.color-metric-preview { margin-top:9px; padding:10px 12px; border-radius:10px; background:#edf4f0; color:#315b4f; font-size:11px; }
.near-color-compare { display:grid; grid-template-columns:1fr 90px 1fr; gap:16px; align-items:center; margin:22px 0; }
.near-color-compare>div { display:grid; justify-items:center; gap:8px; padding:16px; border:1px solid var(--line); border-radius:15px; background:#fbfaf7; }
.near-color-compare i { width:100%; height:76px; border-radius:12px; background:var(--compare-color); border:1px solid rgba(22,29,25,.18); }
.near-color-compare>b { text-align:center; color:#9b6a21; }
.scheme-top-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:18px 0; }
.smart-material-list { display:grid; gap:16px; margin:18px 0; }
.smart-material-card { border:1px solid #d8c9ae; border-radius:18px; padding:18px; background:linear-gradient(135deg,#fffdf8,#f8f1e5); }
.smart-material-card.has-review-error { border-color:#b94e43; box-shadow:0 0 0 3px rgba(185,78,67,.12); }
.smart-material-head,.smart-material-foot { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.smart-material-head>div { display:grid; gap:4px; }
.smart-material-head span:not(.badge) { font-size:10px; color:#88704b; }
.smart-material-head strong { font-size:15px; }
.smart-color-workflow { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:16px 0; }
.suggested-color-box,.manual-color-box { padding:14px; border:1px solid rgba(114,91,54,.16); border-radius:14px; background:rgba(255,255,255,.72); }
.suggested-color-box>label,.manual-color-box>label { display:block; font-size:11px; font-weight:800; margin-bottom:10px; }
.suggested-color-box>div { display:flex; align-items:center; gap:10px; }
.suggested-color-box input[type="color"] { width:58px; height:42px; padding:2px; border:1px solid var(--line); border-radius:9px; background:white; }
.suggested-color-box small { display:block; margin-top:9px; color:var(--muted); line-height:1.5; }
.manual-color-box select { width:100%; min-height:42px; border:1px solid var(--line); border-radius:10px; padding:0 10px; background:white; }
.selected-color-preview { display:grid; grid-template-columns:58px auto; gap:4px 10px; align-items:center; margin-top:10px; min-height:42px; }
.selected-color-preview .digital-color-swatch { grid-row:1/3; }
.selected-color-preview small { color:var(--muted); }
.match-candidates { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; min-height:70px; margin-bottom:14px; }
.match-candidates>span { grid-column:1/-1; display:grid; place-items:center; padding:16px; border:1px dashed var(--line); border-radius:12px; color:var(--muted); }
.match-candidate { position:relative; display:grid; grid-template-columns:44px 1fr; grid-template-rows:auto auto; gap:3px 10px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:13px; background:white; text-align:left; cursor:pointer; }
.match-candidate.selected { border-color:#a57c35; box-shadow:0 0 0 3px rgba(214,177,101,.22); }
.match-candidate i { grid-row:1/3; width:44px; height:44px; border-radius:10px; border:1px solid rgba(22,29,25,.15); background:var(--candidate-color); }
.match-candidate small { color:var(--muted); font-size:9px; line-height:1.35; }
.candidate-rank { position:absolute; right:7px; top:6px; width:18px; height:18px; display:grid; place-items:center; border-radius:50%; background:#ead4a5; color:#5c4520; font-size:9px; font-weight:800; }
.recognition-failed { color:#9a3f35!important; }
.legacy-material-card { background:#f6f6f3; border-color:#d9ddd8; }
.legacy-material-card .form-field { margin:14px 0 8px; }
.sheet-color-swatch { display:block; width:58px; height:42px; border-radius:8px; border:1px solid rgba(22,29,25,.18); background:var(--sheet-color); margin-bottom:4px; }
.sheet-color-notice { padding:10px 12px; border-left:4px solid #b58b45; background:#fff7e8; font-weight:700; }

@media (max-width: 850px) {
  .material-library-toolbar { grid-template-columns:1fr; }
  .near-color-compare { grid-template-columns:1fr; }
  .scheme-top-grid,.smart-color-workflow,.match-candidates { grid-template-columns:1fr; }
}
.topbar { border-color: #ded3c1; background: rgba(250,247,240,.9); }
.search-wrap, .icon-btn { border-color: #ded3c1; background: #fffdf8; }
.avatar { color: #2d271f; background: linear-gradient(145deg, #f1d28b, #d6b165); }
#mainContent { max-width: 1680px; width: 100%; margin: 0 auto; }
.page-kicker { color: #9b7534; }
.page-head h1, .brand-hero h1 { font-family: "Songti SC", SimSun, Georgia, serif; }
.btn { border-color: #ddd1bd; color: #453d32; background: #fffdf8; }
.btn:hover { box-shadow: 0 10px 24px rgba(86,63,27,.12); }
.btn-primary { border-color: #2b2721; color: #f7f1e8; background: linear-gradient(135deg, #342f28, #201d19); }
.btn-primary:hover { border-color: #a78342; background: linear-gradient(135deg, #443b2e, #27231e); }
.btn-gold { border-color: #d6b165; color: #5a421d; background: linear-gradient(135deg, #fbf1dc, #f1d28b); }
.panel, .metric-card, .archive-card, .detail-hero, .scheme-card { border-color: #e1d7c7; background: var(--card); box-shadow: 0 10px 32px rgba(78,60,31,.05); }
.panel-head, .meta-line { border-color: #eee5d7; }
.brand-hero {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  min-height: 236px; margin-bottom: 22px; padding: 38px 42px; overflow: hidden;
  border: 1px solid #cdb890; border-radius: 25px;
  background: linear-gradient(125deg, #eee4d2 0%, #dfcaab 58%, #d4ba91 100%);
  box-shadow: var(--shadow);
}
.brand-hero::before { content: "T"; position: absolute; right: 13%; top: -63px; color: rgba(86,62,27,.08); font-family: Georgia, serif; font-size: 275px; line-height: 1; }
.brand-hero::after { content: ""; position: absolute; right: -80px; bottom: -105px; width: 300px; height: 300px; border: 1px solid rgba(112,78,30,.22); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,249,235,.12), 0 0 0 76px rgba(91,64,25,.04); }
.brand-silk-ribbons { position: absolute; z-index: 0; top: -38%; right: -3%; width: 70%; height: 180%; object-fit: contain; object-position: right center; opacity: .42; filter: saturate(.84) contrast(.94); pointer-events: none; }
.brand-hero-copy, .brand-hero-actions { position: relative; z-index: 1; }
.brand-eyebrow { color: #9a7432; font-family: Georgia, serif; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.brand-hero h1 { margin: 14px 0 5px; font-size: clamp(31px,4vw,52px); font-weight: 500; letter-spacing: .02em; }
.brand-hero p { margin: 0; color: #746650; font-family: Georgia, serif; font-size: 14px; letter-spacing: .04em; }
.brand-values { display: flex; align-items: center; gap: 10px; margin-top: 25px; color: #5c5142; font-size: 11px; letter-spacing: .18em; }
.brand-values i { width: 3px; height: 3px; border-radius: 50%; background: #d6b165; }
.brand-hero-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.metrics { gap: 16px; }
.metric-card { min-height: 150px; border-width: 1px; box-shadow: 0 14px 30px rgba(63,52,39,.08); }
.metric-card::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--metric-line); }
.metric-card::after { background: rgba(255,255,255,.2); }
.metric-card .metric-top { color: rgba(35,31,27,.72); font-size: 13px; font-weight: 700; }
.metric-card .metric-icon { color: var(--metric-ink); background: rgba(255,253,248,.46); }
.metric-card .metric-value { color: #211e1a; font-size: 36px; }
.metric-card .metric-note { color: rgba(35,31,27,.65); }
.metric-card.metric-print { --metric-line:#70806f; --metric-ink:#526351; background: linear-gradient(145deg,#e4e9df,#d5dfd3); border-color:#c4d0c2; }
.metric-card.metric-embroidery { --metric-line:#ae7c39; --metric-ink:#8a5e25; background: linear-gradient(145deg,#f0dfbf,#e4c99e); border-color:#d8bd91; }
.metric-card.metric-combination { --metric-line:#657580; --metric-ink:#4e606b; background: linear-gradient(145deg,#e1e7ea,#ced9de); border-color:#bdcbd1; }
.metric-card.metric-review { --metric-line:#9b6957; --metric-ink:#82513f; background: linear-gradient(145deg,#eadcd5,#dfc8bd); border-color:#d2b8ac; }
.next-task { border-color: #cbb992; background: linear-gradient(115deg,#e8decb,#f5ecdd); }
.workflow-step { background: #ede7dc; }
.workflow-step:nth-child(2) { background: #e2e8df; }
.workflow-step:nth-child(3) { background: #e5e1da; }
.workflow-step:nth-child(4) { background: #e8dfd2; }
.workflow-step:nth-child(5) { background: #dde4e7; }
.workflow-step.done { background: #f7efdd; }
.workflow-step.current { border-color: #d6b165; box-shadow: 0 0 0 3px rgba(214,177,101,.15); }
.step-num { color: #9c7330; }
.quick-card { border-color: #e6dccd; background: linear-gradient(145deg,#fffdf8,#f8f2e8); }
.fabric-intro-grid, .material-purpose-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.fabric-feature, .material-purpose-grid article { padding: 21px; border: 1px solid #dfd1b9; border-radius: 16px; background: linear-gradient(145deg,#fffdf8,#f8f0e2); }
.fabric-feature > span, .material-purpose-grid article > span { color: #b5893f; font-family: Georgia, serif; font-size: 20px; }
.fabric-feature strong, .material-purpose-grid strong { display: block; margin-top: 13px; font-size: 13px; }
.fabric-feature p, .material-purpose-grid p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.material-spectrum { margin-bottom: 18px; }
.material-swatch-grid { display: grid; grid-template-columns: repeat(8,minmax(74px,1fr)); gap: 10px; }
.material-swatch-tile { overflow: hidden; border: 1px solid #ddd1bf; border-radius: 11px; background: #fbf8f2; }
.material-swatch-tile i { display: block; height: 54px; background: var(--material-color); box-shadow: inset 0 -12px 22px rgba(255,255,255,.18); }
.material-swatch-tile span { display: block; padding: 8px 5px; color: #5f564a; font-size: 9px; font-weight: 700; text-align: center; }
.dashboard-legal { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 16px 3px 3px; border-top: 1px solid rgba(121,101,70,.26); color: #857866; }
.dashboard-legal div { display: flex; align-items: baseline; gap: 10px; }
.dashboard-legal strong { color: #5a4930; font-family: Georgia, serif; font-size: 12px; letter-spacing: .18em; }
.dashboard-legal span, .dashboard-legal p { font-size: 8px; letter-spacing: .04em; }
.dashboard-legal p { margin: 0; text-align: right; }
.production-sheet { border-color: #3a3228; color: #211e1a; }
.production-sheet header { border-color: #3a3228; }
.production-sheet header span { color: #9a7432; }
.sheet-reference figcaption { color: #5d4825; background: #f7ecd4; }
.sheet-execution { border-color: #d6b165; background: #fbf7ef; }
.production-sheet footer.sheet-brand-footer { display: grid; grid-template-columns: 125px minmax(0,1fr) 100px; align-items: stretch; gap: 0; padding: 0; border: 1px solid #cfc5b6; color: #554d42; }
.sheet-brand-footer > div { padding: 10px 12px; }
.sheet-brand-footer > div + div { border-left: 1px solid #cfc5b6; }
.sheet-brand-footer > div:nth-child(2) { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.sheet-aixma-mark { display: flex; align-items: center; justify-content: center; flex-direction: column; background: #f4ead5; }
.sheet-aixma-mark b { color: #6f5123; font-family: Georgia, serif; font-size: 16px; letter-spacing: .16em; }
.sheet-aixma-mark span { margin-top: 3px; font-size: 6px; letter-spacing: .1em; }
.sheet-page-box { display: flex; align-items: center; justify-content: center; flex-direction: column; background: #faf8f3; text-align: center; }
.sheet-page-box small { color: #9a7432; font-size: 7px; letter-spacing: .18em; }
.sheet-page-box strong { margin: 4px 0; color: #2c2822; font-size: 11px; }
.sheet-page-box span { font-size: 7px; }
.toast { color: #f7f1e8; background: #29251f; box-shadow: 0 16px 44px rgba(35,29,22,.3); }

@media (max-width: 900px) {
  .brand-hero { align-items: flex-start; flex-direction: column; padding: 30px; }
  .fabric-intro-grid, .material-purpose-grid { grid-template-columns: 1fr; }
  .material-swatch-grid { grid-template-columns: repeat(4,minmax(70px,1fr)); }
  .manager-output-gate { grid-template-columns: 1fr; }
  .manager-output-gate .btn { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 820px) {
  .sidebar { width: 278px; }
}
@media (max-width: 560px) {
  .brand-hero { min-height: 0; padding: 25px 21px; }
  .brand-hero h1 { font-size: 29px; }
  .brand-values { flex-wrap: wrap; }
  .brand-hero-actions, .brand-hero-actions .btn { width: 100%; }
  .brand-silk-ribbons { right: -40%; width: 140%; opacity: .26; }
  .material-swatch-grid { grid-template-columns: repeat(3,minmax(65px,1fr)); }
  .dashboard-legal { align-items: flex-start; flex-direction: column; }
  .dashboard-legal p { text-align: left; }
  .production-sheet footer.sheet-brand-footer { grid-template-columns: 1fr; }
  .sheet-brand-footer > div + div { border-left: 0; border-top: 1px solid #cfc5b6; }
}

/* AIXMA homepage P0/P1 · 2026-10-28 */
body {
  color: #292723;
  background: #f1eee8;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.app-shell { grid-template-columns: 272px minmax(0, 1fr); }
.sidebar {
  width: 272px;
  padding: 24px 16px 20px;
  color: #403b34;
  background: #e9e2d7;
  border-right: 1px solid #d8cec0;
  box-shadow: none;
}
.brand {
  display: block;
  min-height: 132px;
  padding: 4px 12px 22px;
  border-bottom: 1px solid #d6cbbb;
}
.brand-copy strong {
  color: #24221f;
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: .2em;
  line-height: 1;
}
.brand-copy .brand-ai {
  margin-top: 9px;
  color: #9a783d;
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .24em;
}
.brand-ai i { color: #b89454; font-style: normal; }
.brand-copy b {
  margin-top: 19px;
  color: #4d4840;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .05em;
}
.brand-copy .brand-subsidiary {
  margin-top: 7px;
  color: #867b6c;
  font-size: 9px;
  letter-spacing: .06em;
}
.nav { gap: 2px; margin-top: 10px; }
.nav-label { padding: 17px 12px 6px; color: #958a7b; font-size: 9px; letter-spacing: .14em; }
.nav-item {
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  color: #655e54;
  font-size: 12px;
}
.nav-item:hover { color: #272521; background: rgba(255,255,255,.48); transform: none; }
.nav-item.active {
  color: #272521;
  border: 0;
  background: #f8f3e9;
  box-shadow: none;
}
.nav-item.active::before { left: 0; top: 8px; bottom: 8px; width: 3px; background: #b68b48; }
.nav-icon { width: 20px; color: #9f7b40; font-size: 16px; }
.sidebar-foot {
  display: block;
  padding: 14px 12px;
  border: 1px solid #d8cebf;
  border-radius: 10px;
  background: rgba(255,255,255,.35);
}
.sidebar-foot .system-health { display: flex; align-items: center; gap: 8px; }
.sidebar-foot .system-health strong { color: #4f5d50; font-size: 10px; letter-spacing: .02em; }
.sidebar-foot > span { margin: 6px 0 0 17px; color: #8c8376; font-size: 9px; }
.server-dot { width: 7px; height: 7px; background: #4f9c70; box-shadow: 0 0 0 3px rgba(79,156,112,.12); }

.topbar { height: 72px; padding: 0 28px; background: rgba(248,246,241,.94); }
.search-wrap { flex: 0 1 54%; max-width: 720px; min-width: 360px; border-radius: 11px; box-shadow: none; }
.top-actions { gap: 8px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 5px 9px 5px 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: inherit;
  background: transparent;
  text-align: left;
}
.user-chip:hover { border-color: #ddd3c4; background: #fffdf8; }
.user-chip.is-unlocked { border-color: #c8ad78; background: #fff8e8; }
.user-chip .avatar { width: 36px; height: 36px; border-radius: 10px; background: #38342e; color: #f5ecdc; }
.user-chip strong { color: #38342e; }
.user-chip span { white-space: nowrap; }
.user-chip .user-chevron { margin: 0 0 0 5px; color: #958a7b; font-size: 14px; }

#mainContent { padding: 24px 28px 44px; }
.brand-hero {
  align-items: center;
  min-height: 300px;
  margin-bottom: 24px;
  padding: 40px 44px;
  border: 1px solid #d0c6b7;
  border-radius: 20px;
  background: linear-gradient(118deg, #f4efe6 0%, #e8dece 58%, #dfd0b8 100%);
  box-shadow: 0 12px 34px rgba(62,52,39,.07);
}
.brand-hero::before, .brand-hero::after { content: none; }
.brand-silk-ribbons {
  top: -36%;
  right: -5%;
  width: 68%;
  height: 176%;
  opacity: .23;
  filter: saturate(.62) contrast(.93);
}
.brand-hero-copy { max-width: 760px; }
.brand-eyebrow {
  color: #8b6b35;
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 12px;
  letter-spacing: .23em;
}
.brand-eyebrow small { margin-left: 10px; color: #938673; font-size: 8px; letter-spacing: .18em; }
.brand-hero h1 {
  max-width: 780px;
  margin: 17px 0 10px;
  color: #282521;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(34px, 4vw, 55px);
  font-weight: 500;
  letter-spacing: -.035em;
}
.brand-hero p { color: #625b51; font-family: inherit; font-size: 16px; letter-spacing: .05em; }
.brand-values { margin-top: 28px; color: #6c6357; font-size: 10px; letter-spacing: .2em; }
.brand-hero-actions { align-self: flex-end; justify-content: flex-end; min-width: 310px; }
.brand-hero-actions .btn { min-width: 145px; box-shadow: none; }

.metrics { gap: 16px; margin-bottom: 24px; }
.metric-card {
  min-height: 136px;
  padding: 20px;
  border-radius: 16px;
  color: inherit;
  text-align: left;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.metric-card::before, .metric-card::after { content: none; }
.metric-card:hover { transform: translateY(-2px); border-color: #bba987; box-shadow: 0 10px 24px rgba(63,52,39,.07); }
.metric-card .metric-top { font-size: 12px; }
.metric-card .metric-icon { border: 1px solid rgba(61,55,47,.08); background: rgba(255,255,255,.46); }
.metric-card .metric-value { margin-top: 11px; font-family: Inter, "Helvetica Neue", sans-serif; font-size: 32px; }
.metric-card .metric-note { margin-top: 5px; font-size: 10px; }
.metric-card.metric-print { background: #e8ece6; border-color: #d5dbd2; }
.metric-card.metric-embroidery { background: #efe8dc; border-color: #dfd4c2; }
.metric-card.metric-combination { background: #e5e9eb; border-color: #d4dade; }
.metric-card.metric-review { background: #ebe3df; border-color: #ddd2cc; }

.next-task {
  min-height: 154px;
  margin-bottom: 24px;
  padding: 23px 24px;
  border-color: #d7c8aa;
  border-radius: 16px;
  background: #f7f2e8;
  box-shadow: none;
}
.next-task-copy { min-width: 0; }
.next-task span { color: #8a6a34; }
.next-task h2 { margin-top: 7px; font-size: 19px; }
.next-task p { max-width: 720px; font-size: 11px; line-height: 1.6; }
.next-task-meta { display: grid; grid-template-columns: auto minmax(130px, auto) auto minmax(110px, auto); align-items: center; gap: 5px 10px; margin-top: 14px; }
.next-task-meta small { color: #8b8276; font-size: 9px; }
.next-task-meta b { overflow: hidden; color: #403a32; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.workflow-panel { margin-bottom: 24px; box-shadow: none; }
.workflow-panel .panel-body { padding: 14px 20px 18px; }
.workflow { gap: 0; overflow-x: auto; }
.workflow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  min-height: 66px;
  padding: 10px 16px;
  border: 0;
  border-top: 2px solid #d8d5cf;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.workflow-step:hover { border-color: #a88b5a; background: #faf7f1 !important; transform: none; }
.workflow-step.done { border-top-color: #8e7448; }
.workflow-step.current { border-top-color: #2f3b38; background: #f3eee4 !important; }
.workflow-step:not(:last-child)::after { top: 23px; right: -8px; box-shadow: none; }
.step-num { display: grid !important; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; margin: 0 !important; border: 1px solid #c9c2b6; border-radius: 50%; color: #7a7166; font-family: Inter, sans-serif; font-size: 10px; }
.workflow-step.done .step-num { border-color: #8e7448; color: #fff; background: #8e7448; }
.workflow-step.current .step-num { border-color: #2f3b38; color: #fff; background: #2f3b38; }
.workflow-copy { min-width: 0; margin: 0 !important; }
.workflow-copy strong { margin: 0; font-size: 11px; white-space: nowrap; }
.workflow-copy > span { margin-top: 3px; font-size: 9px; white-space: nowrap; }

.recent-combos-panel { overflow: hidden; box-shadow: none; }
.recent-combo-head, .recent-combo-row {
  display: grid;
  grid-template-columns: minmax(190px,1.15fr) minmax(150px,1fr) minmax(150px,1fr) 84px 88px 88px;
  align-items: center;
  gap: 14px;
}
.recent-combo-head { padding: 10px 21px; color: #8a8175; background: #f5f2ec; font-size: 9px; font-weight: 700; }
.recent-combo-list { padding: 0 12px 8px; }
.recent-combo-row {
  width: 100%;
  min-height: 68px;
  padding: 9px;
  border: 0;
  border-bottom: 1px solid #eee8de;
  color: #49443d;
  background: transparent;
  text-align: left;
  font-size: 10px;
}
.recent-combo-row:last-child { border-bottom: 0; }
.recent-combo-row:hover { background: #f8f5ef; }
.recent-combo-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.recent-combo-id .thumb { width: 42px; height: 42px; border-radius: 9px; }
.recent-combo-id b { overflow: hidden; color: #302d29; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.dashboard-legal { align-items: center; margin-top: 24px; padding: 18px 2px 2px; }
.dashboard-legal .legal-brand { display: grid; gap: 5px; }
.dashboard-legal .legal-brand strong { color: #514838; font-family: Inter, "Helvetica Neue", sans-serif; font-size: 10px; letter-spacing: .08em; }
.registered-mark { margin-left: 2px; font-size: .42em; line-height: 0; vertical-align: super; }
.dashboard-legal span, .dashboard-legal p { color: #91887b; font-size: 8px; line-height: 1.65; }

@media (max-width: 1180px) {
  .brand-hero { align-items: flex-start; flex-direction: column; min-height: 300px; }
  .brand-hero-actions { align-self: flex-start; }
  .recent-combo-head, .recent-combo-row { grid-template-columns: minmax(180px,1.1fr) minmax(130px,1fr) minmax(130px,1fr) 70px 78px; }
  .recent-combo-head span:nth-child(4), .recent-combo-row > span:nth-child(4) { display: none; }
}
@media (max-width: 1000px) {
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .recent-combo-head, .recent-combo-row { grid-template-columns: minmax(180px,1.1fr) minmax(130px,1fr) minmax(130px,1fr) 80px; }
  .recent-combo-head span:nth-child(5), .recent-combo-row > span:nth-child(5) { display: none; }
  .search-wrap { flex-basis: 60%; min-width: 260px; }
}
@media (max-width: 850px) {
  .app-shell { display: block; }
  .sidebar { width: 272px; }
  .topbar { padding: 0 18px; }
  .search-wrap { flex: 1; min-width: 0; }
}
@media (max-width: 700px) {
  #mainContent { padding: 18px 14px 36px; }
  .brand-hero { min-height: 330px; padding: 28px 24px; }
  .brand-silk-ribbons { right: -45%; width: 150%; opacity: .16; }
  .brand-hero h1 { font-size: 34px; }
  .brand-hero p { font-size: 13px; }
  .metrics { grid-template-columns: 1fr; }
  .next-task { align-items: stretch; flex-direction: column; }
  .next-task-meta { grid-template-columns: auto 1fr; }
  .next-task > .btn { width: 100%; }
  .workflow { grid-template-columns: repeat(5,178px); }
  .recent-combo-head { display: none; }
  .recent-combo-row { grid-template-columns: 1fr auto; gap: 5px 10px; }
  .recent-combo-row > span:nth-child(2), .recent-combo-row > span:nth-child(3) { grid-column: 1 / -1; display: block; color: #7a7268; }
  .recent-combo-row > span:nth-child(5) { display: none; }
  .recent-combo-row > span:last-child { grid-column: 2; grid-row: 1; }
  .dashboard-legal { align-items: flex-start; flex-direction: column; }
  .dashboard-legal p { text-align: left; }
  .user-chip > div:nth-child(2), .user-chevron { display: none; }
}

/* AIXMA readability refinement · deeper neutrals and larger type */
:root {
  --aixma-c047: #d6c2a2;
  --aixma-c047-soft: #e9ddca;
  --aixma-c047-deep: #8e6940;
  --ink: #27241f;
  --muted: #686056;
  --line: #cdbb9f;
  --paper: #e9dfd1;
  --card: #fffaf2;
}
body { color: #27241f; background: #e8dece; font-size: 14px; }
.sidebar { background: #ded0bb; border-right-color: #c7b394; }
.brand { min-height: 126px; border-bottom-color: #cbbda9; }
.brand-copy strong { color: #a8782d; font-size: 31px; font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.brand-copy b { margin-top: 20px; color: #3e3932; font-size: 13px; }
.brand-copy .brand-subsidiary { margin-top: 8px; color: #716657; font-size: 10px; }
.nav { gap: 3px; }
.nav-label { padding-top: 18px; color: #776d60; font-size: 10px; font-weight: 700; }
.nav-item { min-height: 45px; color: #514b43; font-size: 13px; font-weight: 550; }
.nav-item.active { color: #211f1b; background: #faf4e9; }
.nav-icon { font-size: 17px; }
.sidebar-foot { border-color: #cabda9; background: rgba(255,252,245,.55); }
.sidebar-foot .system-health strong { color: #3f5143; font-size: 11px; }
.sidebar-foot > span { color: #70685d; font-size: 10px; }
.topbar { border-bottom-color: #cdbb9f; background: rgba(242,235,224,.96); }
.search-wrap { border-color: #cfc2b0; background: #fffaf3; }
.search-wrap input { font-size: 13px; }
.user-chip strong { font-size: 13px; }
.user-chip span { font-size: 11px; }
.brand-hero { border-color: #bfa985; background: linear-gradient(118deg,#eee4d5 0%,#e2d4be 56%,#d6c2a2 100%); }
.brand-eyebrow { color: #9b6d25; font-size: 13px; font-weight: 750; }
.brand-hero p { color: #514a41; font-size: 17px; }
.brand-values { color: #554d43; font-size: 11px; }
.btn { font-size: 14px; }
.panel, .recent-combos-panel { border-color: #d7cab8; background: #fffaf3; }
.panel-head { border-bottom-color: #e2d7c7; }
.panel-head h2 { color: #2d2924; font-size: 16px; }
.panel-head p { color: #6c645a; font-size: 12px; }
.metric-card .metric-top { color: #4f4941; font-size: 13px; }
.metric-card .metric-value { font-size: 34px; }
.metric-card .metric-note { color: #625b52; font-size: 11px; }
.metric-card.metric-print { background: #dfe6de; border-color: #c8d2c6; }
.metric-card.metric-embroidery { background: #e9dfd0; border-color: #d5c5ad; }
.metric-card.metric-combination { background: #dce3e7; border-color: #c6d0d5; }
.metric-card.metric-review { background: #e5d9d4; border-color: #d1bfb7; }
.next-task { border-color: #cbb78f; background: #f2eadc; }
.next-task span { font-size: 11px; }
.next-task h2 { font-size: 20px; }
.next-task p { color: #5f574e; font-size: 12px; }
.next-task-meta small { color: #766d61; font-size: 10px; }
.next-task-meta b { font-size: 11px; }
.workflow-copy strong { font-size: 12px; }
.workflow-copy > span { color: #625b52; font-size: 10px; }
.recent-combo-head { color: #6f665b; font-size: 10px; }
.recent-combo-row { color: #433e37; font-size: 11px; }
.recent-combo-id b { font-size: 12px; }

/* Hero typography and action alignment refinement */
.brand-hero { align-items: center; }
.brand-hero-copy { width: min(100%, 880px); max-width: 880px; }
.brand-hero h1 {
  margin: 17px 0 10px;
  color: #302b26;
  font-size: clamp(52px, 4.2vw, 72px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.brand-hero p { color: #665d54; font-family: Inter, "Helvetica Neue", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .13em; }
.brand-eyebrow, .brand-values { color: #a87932; }
.brand-values i { background: #a87932; }
.brand-hero-actions {
  align-self: auto;
  justify-content: flex-start;
  min-width: 0;
  margin-top: 26px;
}
.brand-silk-ribbons {
  top: 0;
  right: 0;
  width: 61%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: .82;
  filter: saturate(.82) contrast(.98);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 46%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 22%, #000 46%);
}
.nav-item.active::before, .brand-values i { background: var(--aixma-c047-deep); }
.brand-copy strong, .brand-eyebrow, .brand-values { color: var(--aixma-c047-deep); }
.next-task { border-color: #c7ae84; background: #efe3d0; }
.metric-card.metric-embroidery { background: #e4d6c0; border-color: #cdb997; }
.manager-output-gate { border-color: #c8b18a; background: linear-gradient(135deg,#fbf6ed,#e9ddca); }

@media (max-width: 1180px) {
  .brand-hero { align-items: flex-start; }
  .brand-hero-copy { max-width: 100%; }
}
@media (max-width: 700px) {
  .brand-hero h1 { font-size: clamp(36px, 8.2vw, 52px); white-space: normal; }
  .brand-silk-ribbons { right: -28%; width: 130%; opacity: .32; }
}
body.login-required .sidebar,
body.login-required .topbar { display:none; }
body.login-required .app-shell { display:block; margin:0; padding:0; min-height:100vh; }
body.login-required .workspace { display:block; width:100%; min-height:100vh; }
body.login-required #mainContent { display:block; max-width:none; width:100%; min-height:100vh; margin:0; padding:0; }
.system-login { min-height:100vh; display:grid; place-items:center; padding:32px; background:radial-gradient(circle at 18% 12%,rgba(168,121,50,.18),transparent 34%),linear-gradient(135deg,#f5eee2,#e7dcc9); }
.system-login-card { width:min(520px,100%); padding:48px; border:1px solid rgba(168,121,50,.35); border-radius:28px; background:rgba(255,252,247,.94); box-shadow:0 24px 70px rgba(48,43,38,.14); }
.system-login-card h1 { margin:10px 0 14px; color:#302b26; font:500 clamp(34px,5vw,52px)/1.15 "STSong","SimSun",serif; }
.system-login-card>p { color:#665d54; line-height:1.8; }
.system-login-card form { display:grid; gap:18px; margin:28px 0 22px; }
.system-login-card .btn { min-height:52px; }
.system-login-card>small { display:block; text-align:center; color:#8a7b6a; letter-spacing:.08em; }
