:root {
  --ink: #102a2b;
  --ink-deep: #0a1d1f;
  --ink-soft: #234344;
  --paper: #f4f1e9;
  --paper-deep: #eae5da;
  --white: #fffdf8;
  --line: #d9d4c8;
  --muted: #77766d;
  --copper: #ce784d;
  --copper-soft: #f3dfd1;
  --green: #2d866a;
  --green-soft: #dceee6;
  --blue: #356ea2;
  --blue-soft: #dce9f5;
  --violet: #7968a1;
  --violet-soft: #e9e4f2;
  --shadow: 0 16px 40px rgba(16, 42, 43, .08);
  --radius: 16px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(206, 120, 77, .35); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 256px; flex: 0 0 256px; min-height: 100vh; padding: 25px 16px 18px; color: #eef4ed; background: var(--ink); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.sidebar::before { content: ""; position: absolute; width: 360px; height: 360px; right: -220px; top: 190px; border: 1px solid rgba(242, 218, 187, .18); border-radius: 50%; box-shadow: 0 0 0 24px rgba(242, 218, 187, .04), 0 0 0 48px rgba(242, 218, 187, .04); pointer-events: none; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 9px 24px; position: relative; z-index: 1; }
.brand-mark { width: 34px; height: 41px; display: flex; align-items: end; gap: 3px; transform: skew(-13deg); }
.brand-mark span { width: 8px; border-radius: 7px 7px 2px 2px; background: var(--copper); display: block; }
.brand-mark span:nth-child(1) { height: 23px; opacity: .82; }.brand-mark span:nth-child(2) { height: 36px; background: #e9b46e; }.brand-mark span:nth-child(3) { height: 29px; opacity: .68; }
.brand-kicker { margin: 0; font-size: 9px; letter-spacing: .19em; color: #a8c0b6; font-weight: 700; }
.brand-lockup h1 { margin: 2px 0 0; font-size: 19px; letter-spacing: .12em; font-weight: 800; }
.brand-subtitle { margin: 1px 0 0; color: #8faea2; font-size: 11px; letter-spacing: .08em; }
.plant-chip { margin: 0 3px 24px; padding: 12px 12px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; gap: 9px; border-radius: 10px; position: relative; z-index: 1; }
.plant-chip strong, .plant-chip small { display: block; }.plant-chip strong { font-size: 12px; }.plant-chip small { color: #8faea2; font-size: 10px; margin-top: 3px; }.plant-dot { width: 7px; height: 7px; border-radius: 50%; background: #68bf91; box-shadow: 0 0 0 4px rgba(104,191,145,.14); }.plant-chevron { color: #8faea2; margin-left: auto; font-size: 17px; }
.main-nav { position: relative; z-index: 1; }.nav-caption { margin: 0 10px 8px; font-size: 10px; color: #729088; letter-spacing: .16em; font-weight: 800; }.nav-caption--lower { margin-top: 27px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 10px; color: #aec1b9; padding: 11px 11px; border: 0; background: transparent; border-radius: 9px; text-align: left; margin: 2px 0; font-size: 13px; transition: background .18s, color .18s; }.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }.nav-item.is-active { color: #fff; background: #2a5050; box-shadow: inset 3px 0 var(--copper); }.nav-icon { width: 18px; font-size: 17px; line-height: 1; color: #85a79a; }.nav-item.is-active .nav-icon { color: #efb979; }.nav-item em { margin-left: auto; font-size: 10px; color: #69847a; font-style: normal; }.nav-item em.nav-alert { color: #e89a6d; }.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #68bf91; box-shadow: 0 0 0 4px rgba(104,191,145,.12); margin-left: auto; }
.sidebar-bottom { margin-top: auto; position: relative; z-index: 1; }.shift-card { margin: 20px 3px 16px; padding: 14px 13px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }.shift-top { display: flex; justify-content: space-between; font-size: 10px; color: #92aca2; }.live-pill { color: #8dd2a9; }.live-pill i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #6ecb93; margin-right: 4px; vertical-align: 1px; }.shift-card strong { display: block; font-size: 12px; margin: 10px 0; }.shift-card small { color: #8faea2; font-size: 10px; }.shift-progress { height: 4px; border-radius: 5px; overflow: hidden; background: #40605e; margin-bottom: 8px; }.shift-progress span { display: block; height: 100%; background: #e7ae6a; border-radius: inherit; }.user-row { display: flex; gap: 9px; align-items: center; padding: 9px 8px 0; border-top: 1px solid rgba(255,255,255,.1); }.avatar { width: 30px; height: 30px; border-radius: 50%; background: #e1a473; color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 12px; }.user-row strong, .user-row small { display: block; }.user-row strong { font-size: 11px; }.user-row small { color: #8faea2; font-size: 10px; margin-top: 2px; }.more-btn { margin-left: auto; background: transparent; color: #86a79c; border: 0; letter-spacing: 2px; }

.main-area { flex: 1; min-width: 0; }.topbar { height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(244,241,233,.9); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #9a978d; }.breadcrumbs b { color: #bbb5a7; font-weight: 400; }.breadcrumbs strong { color: var(--ink); font-size: 13px; }.top-actions { display: flex; align-items: center; gap: 12px; }.search-box { min-width: 252px; height: 37px; border: 1px solid var(--line); background: rgba(255,255,255,.5); display: flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 8px; color: #a6a095; }.search-box input { width: 100%; border: 0; outline: none; background: transparent; font-size: 12px; color: var(--ink); }.icon-btn { border: 1px solid var(--line); background: transparent; width: 37px; height: 37px; border-radius: 8px; color: var(--ink); position: relative; }.notification-btn i { position: absolute; width: 6px; height: 6px; background: var(--copper); border-radius: 50%; right: 7px; top: 6px; }.primary-btn, .ghost-btn { border-radius: 8px; padding: 10px 15px; border: 1px solid transparent; font-size: 12px; font-weight: 800; transition: transform .18s, box-shadow .18s, background .18s; }.primary-btn { background: var(--ink); color: #fff; box-shadow: 0 8px 18px rgba(16,42,43,.12); }.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 21px rgba(16,42,43,.19); }.top-add { background: var(--copper); }.ghost-btn { background: transparent; border-color: var(--line); color: var(--ink); }.ghost-btn:hover { background: var(--paper-deep); }
.content { max-width: 1500px; margin: 0 auto; padding: 30px 38px 54px; }.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }.eyebrow { margin: 0 0 7px; color: var(--copper); letter-spacing: .18em; font-weight: 800; font-size: 10px; }.page-title { margin: 0; letter-spacing: -.03em; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.1; }.page-intro { margin: 9px 0 0; font-size: 12px; color: var(--muted); }.head-actions { display: flex; gap: 8px; align-items: center; }.date-chip { border: 1px solid var(--line); padding: 9px 12px; border-radius: 8px; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.38); }
.hero-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 18px; margin-bottom: 18px; }.hero-panel { min-height: 220px; border-radius: var(--radius); padding: 27px; background: var(--ink); color: #f5eee4; position: relative; overflow: hidden; box-shadow: var(--shadow); }.hero-panel::after { content: ""; position: absolute; width: 310px; height: 310px; right: -55px; bottom: -220px; border: 1px solid rgba(230,182,117,.36); border-radius: 50%; box-shadow: 0 0 0 23px rgba(230,182,117,.04), 0 0 0 46px rgba(230,182,117,.04), 0 0 0 69px rgba(230,182,117,.04); }.hero-panel > * { position: relative; z-index: 1; }.hero-panel h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }.hero-panel p { margin: 9px 0 20px; font-size: 12px; color: #aac0b4; max-width: 460px; line-height: 1.7; }.hero-metrics { display: flex; align-items: end; gap: 34px; }.hero-metric strong { display: block; font-size: 34px; letter-spacing: -.05em; }.hero-metric span { display: block; color: #9bb4a9; font-size: 10px; margin-top: 2px; }.hero-metric.accent strong { color: #eab275; }.hero-line { width: 100%; height: 38px; margin-top: 12px; position: relative; }.hero-line svg { width: 100%; height: 100%; overflow: visible; }.hero-badge { position: absolute; right: 20px; top: 22px; border: 1px solid rgba(232,177,116,.36); border-radius: 100px; padding: 7px 9px; font-size: 10px; color: #efbd80; }.brief-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; background: var(--white); box-shadow: var(--shadow); }.brief-head { display: flex; justify-content: space-between; align-items: start; }.brief-head h3, .section-title { margin: 0; font-size: 15px; letter-spacing: -.02em; }.brief-head span { color: var(--copper); font-size: 18px; }.brief-panel p { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 13px 0 16px; }.brief-list { display: grid; gap: 10px; }.brief-item { display: flex; align-items: center; gap: 9px; font-size: 11px; }.brief-item i { width: 7px; height: 7px; border-radius: 2px; background: var(--copper); transform: rotate(45deg); }.brief-item small { color: var(--muted); margin-left: auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }.kpi-card { background: var(--white); border: 1px solid var(--line); padding: 17px 17px 15px; min-height: 116px; position: relative; overflow: hidden; }.kpi-card::before { content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 3px; background: var(--ink); }.kpi-card.copper::before { background: var(--copper); }.kpi-card.blue::before { background: var(--blue); }.kpi-card.violet::before { background: var(--violet); }.kpi-card.green::before { background: var(--green); }.kpi-label { font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; }.kpi-label b { font-size: 13px; color: var(--green); font-weight: 700; }.kpi-value { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; }.kpi-value strong { font-size: 27px; letter-spacing: -.05em; }.kpi-value span { font-size: 10px; color: var(--muted); }.kpi-sub { color: var(--muted); font-size: 10px; margin-top: 7px; }.kpi-sub.warn { color: var(--copper); }.sparkline { width: 72px; height: 24px; position: absolute; right: 12px; bottom: 13px; }.sparkline svg { width: 100%; height: 100%; }
.dashboard-kpis { grid-template-columns: repeat(6, 1fr); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 18px; }.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 24px rgba(16,42,43,.035); }.panel + .panel { margin-top: 18px; }.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.panel-link { border: 0; background: transparent; color: var(--copper); font-size: 11px; padding: 3px 0; }.flow { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 8px 0 6px; }.flow-step { min-width: 118px; flex: 1; }.flow-box { height: 56px; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); background: #faf8f2; border-radius: 8px; }.flow-box strong { font-size: 17px; letter-spacing: -.04em; }.flow-box span { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }.flow-step.tone-copper .flow-box { border-color: #e8c5ad; background: #fcf3eb; }.flow-step.tone-blue .flow-box { border-color: #c7d9eb; background: #f2f7fc; }.flow-step.tone-violet .flow-box { border-color: #d8cde7; background: #f7f4fb; }.flow-step.tone-green .flow-box { border-color: #c5dfd2; background: #f1f9f5; }.flow-arrow { color: #b8b1a4; font-size: 16px; }.flow-progress { height: 4px; background: var(--paper-deep); margin-top: 10px; border-radius: 5px; overflow: hidden; }.flow-progress span { display: block; height: 100%; border-radius: inherit; background: var(--copper); }.flow-step.tone-blue .flow-progress span { background: var(--blue); }.flow-step.tone-violet .flow-progress span { background: var(--violet); }.flow-step.tone-green .flow-progress span { background: var(--green); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 11px; }.mini-table th { text-align: left; color: #969188; font-size: 10px; font-weight: 600; padding: 0 8px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }.mini-table td { padding: 12px 8px; border-bottom: 1px solid #ece8df; vertical-align: middle; }.mini-table tr:last-child td { border-bottom: 0; }.mini-table td:first-child, .mini-table th:first-child { padding-left: 0; }.mini-table td:last-child, .mini-table th:last-child { padding-right: 0; }.table-main { color: var(--ink); font-weight: 700; }.table-muted { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 3px; }.number-cell { text-align: right; white-space: nowrap; }.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; font-size: 10px; white-space: nowrap; }.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status.blue { color: var(--blue); background: var(--blue-soft); }.status.copper { color: #ae5e37; background: var(--copper-soft); }.status.violet { color: #715d98; background: var(--violet-soft); }.status.green { color: var(--green); background: var(--green-soft); }.status.ink { color: var(--ink-soft); background: #dde8e3; }
.attention-list { display: grid; gap: 10px; }.attention-item { border-left: 3px solid var(--copper); padding: 10px 11px; background: #fcf5ee; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }.attention-item.blue { border-color: var(--blue); background: #f2f7fc; }.attention-item.violet { border-color: var(--violet); background: #f7f4fb; }.attention-item strong { font-size: 11px; }.attention-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }.attention-item .attention-meta { color: var(--copper); font-size: 10px; grid-row: span 2; align-self: center; text-align: right; }.action-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.quick-action { padding: 12px 10px; background: #faf8f2; border: 1px solid var(--line); border-radius: 9px; text-align: left; color: var(--ink); }.quick-action:hover { border-color: var(--copper); background: #fff9f1; }.quick-action span { color: var(--copper); font-size: 18px; display: block; margin-bottom: 7px; }.quick-action strong { display: block; font-size: 11px; }.quick-action small { color: var(--muted); font-size: 9px; display: block; margin-top: 4px; }
.subtle-tag { display: inline-block; color: var(--muted); border: 1px solid var(--line); padding: 4px 7px; border-radius: 5px; font-size: 10px; }

.module-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }.filter-btn { border: 1px solid var(--line); background: rgba(255,255,255,.5); border-radius: 7px; color: var(--muted); font-size: 11px; padding: 8px 11px; }.filter-btn.is-selected { border-color: var(--ink); color: var(--ink); background: var(--white); }.data-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }.data-card .mini-table { padding: 0 20px; }.data-card .mini-table th { padding-top: 15px; }.table-scroll { overflow-x: auto; }.empty-state { text-align: center; padding: 45px 15px; color: var(--muted); }.empty-state strong { display: block; color: var(--ink); margin-bottom: 6px; }
.style-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }.style-card { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 15px; position: relative; }.style-swatch { height: 76px; border-radius: 10px; background: linear-gradient(120deg, #1b1515 0%, #604a42 31%, #d29d73 44%, #e8c5a0 57%, #5e3a33 72%, #161414 100%); margin-bottom: 13px; position: relative; overflow: hidden; }.style-swatch::after { content: ""; width: 170%; height: 130%; position: absolute; top: -17px; left: -32px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; transform: rotate(-12deg); box-shadow: 0 8px 0 rgba(255,255,255,.12), 0 16px 0 rgba(255,255,255,.12), 0 24px 0 rgba(255,255,255,.12); }.style-card:nth-child(2) .style-swatch { background: linear-gradient(120deg, #4b2f26, #d7a47b 29%, #f0ceb3 40%, #6f4938 60%, #2b1d1a); }.style-card:nth-child(3) .style-swatch { background: linear-gradient(120deg, #1a1a19, #5b4434 28%, #9d7857 45%, #29201c 74%); }.style-card:nth-child(4) .style-swatch { background: linear-gradient(120deg, #08090a, #1c151d 30%, #653a63 55%, #110e14); }.style-card:nth-child(5) .style-swatch { background: linear-gradient(120deg, #39231e, #8e4a37 32%, #d39370 55%, #492820); }.style-code { font-size: 10px; color: var(--copper); font-weight: 800; letter-spacing: .08em; }.style-card h3 { margin: 5px 0 5px; font-size: 15px; }.style-card p { margin: 0; color: var(--muted); font-size: 10px; }.style-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 13px; }.style-meta span { font-size: 10px; color: var(--muted); background: var(--paper); padding: 5px 6px; border-radius: 4px; }.style-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 12px; border-top: 1px solid #ece8df; }.style-bottom small { color: var(--muted); font-size: 10px; }.style-card button { border: 0; background: transparent; color: var(--copper); font-size: 10px; padding: 0; }
.outsourcing-layout { display: grid; grid-template-columns: 1.45fr .72fr; gap: 18px; }.outsource-card { border: 1px solid var(--line); background: var(--white); border-radius: 13px; padding: 15px; margin-bottom: 10px; }.outsource-card:last-child { margin-bottom: 0; }.outsource-top { display: flex; justify-content: space-between; gap: 12px; }.outsource-title { display: flex; gap: 10px; align-items: start; }.partner-avatar { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--copper-soft); color: #a75732; font-size: 12px; font-weight: 800; flex: 0 0 auto; }.outsource-title h3 { margin: 0 0 4px; font-size: 13px; }.outsource-title p { margin: 0; color: var(--muted); font-size: 10px; }.outsource-top-right { text-align: right; }.outsource-top-right small { color: var(--muted); font-size: 10px; display: block; margin-bottom: 5px; }.outsource-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 14px 0 12px; padding-top: 12px; border-top: 1px solid #ece8df; }.outsource-stat small { display: block; color: var(--muted); font-size: 9px; }.outsource-stat strong { display: block; margin-top: 4px; font-size: 16px; letter-spacing: -.04em; }.outsource-stat.warn strong { color: var(--copper); }.outsource-progress { height: 5px; background: var(--paper-deep); border-radius: 5px; overflow: hidden; }.outsource-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); }.outsource-bottom { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; }.outsource-bottom small { color: var(--muted); font-size: 10px; }.tiny-action { border: 0; background: transparent; padding: 2px 0; color: var(--copper); font-size: 10px; }.side-stat-list { display: grid; gap: 14px; }.side-stat { display: flex; align-items: center; gap: 11px; }.side-stat-icon { width: 35px; height: 35px; border-radius: 9px; background: var(--paper); display: grid; place-items: center; color: var(--copper); font-size: 17px; }.side-stat strong, .side-stat small { display: block; }.side-stat strong { font-size: 16px; }.side-stat small { font-size: 10px; color: var(--muted); margin-top: 3px; }.bar-list { display: grid; gap: 12px; }.bar-row { display: grid; grid-template-columns: 93px 1fr 35px; align-items: center; gap: 9px; font-size: 10px; }.bar-row label { color: var(--muted); }.bar-track { height: 6px; background: var(--paper-deep); border-radius: 6px; overflow: hidden; }.bar-track span { display: block; height: 100%; background: var(--copper); border-radius: inherit; }.bar-row:nth-child(2) .bar-track span { background: var(--blue); }.bar-row:nth-child(3) .bar-track span { background: var(--green); }.bar-row:nth-child(4) .bar-track span { background: var(--violet); }.bar-row b { font-size: 10px; text-align: right; }
.inventory-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }.inventory-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }.inventory-tile { padding: 15px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; }.inventory-tile span { color: var(--muted); font-size: 10px; }.inventory-tile strong { display: block; margin-top: 9px; font-size: 22px; letter-spacing: -.05em; }.inventory-tile small { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; }.inventory-tile.warn strong { color: var(--copper); }
.quality-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px; }.quality-score { padding: 23px; color: #f4efe5; background: var(--ink); border-radius: var(--radius); min-height: 210px; position: relative; overflow: hidden; }.quality-score::after { content: ""; position: absolute; width: 200px; height: 200px; right: -84px; bottom: -114px; border: 1px solid rgba(234,178,117,.38); border-radius: 50%; box-shadow: 0 0 0 20px rgba(234,178,117,.04), 0 0 0 40px rgba(234,178,117,.04); }.quality-score > * { position: relative; z-index: 1; }.quality-score h3 { margin: 0; font-size: 14px; }.score-number { font-size: 49px; letter-spacing: -.07em; margin: 22px 0 1px; }.score-number small { font-size: 15px; color: #aec1b9; }.quality-score p { color: #9fb6aa; font-size: 10px; margin: 0; }.quality-track { margin-top: 18px; height: 6px; background: #3a5b59; border-radius: 5px; overflow: hidden; }.quality-track span { display: block; height: 100%; width: 96.4%; background: #e6ae6a; border-radius: inherit; }.defect-list { display: grid; gap: 10px; }.defect-row { display: flex; justify-content: space-between; font-size: 11px; }.defect-row span { color: var(--muted); }.defect-row b { font-size: 11px; }.defect-bar { margin-top: 5px; height: 5px; background: var(--paper-deep); border-radius: 5px; overflow: hidden; }.defect-bar span { display: block; height: 100%; background: var(--copper); border-radius: inherit; }.defect-item:nth-child(2) .defect-bar span { background: var(--blue); }.defect-item:nth-child(3) .defect-bar span { background: var(--violet); }.defect-item:nth-child(4) .defect-bar span { background: var(--green); }
.cost-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-bottom: 18px; }.cost-tile { padding: 16px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; }.cost-tile span { color: var(--muted); font-size: 10px; }.cost-tile strong { display: block; margin-top: 9px; font-size: 21px; }.cost-tile small { color: var(--green); font-size: 10px; display: block; margin-top: 4px; }.cost-tile.warn small { color: var(--copper); }
.feishu-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }.connection-card { background: var(--ink); border-radius: var(--radius); color: #f4efe5; padding: 23px; min-height: 225px; position: relative; overflow: hidden; }.connection-card::after { content: "⌁"; position: absolute; right: 18px; bottom: -36px; font-size: 160px; line-height: 1; color: rgba(234,178,117,.1); }.connection-card > * { position: relative; z-index: 1; }.connection-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(234,178,117,.15); color: #efbb7c; font-size: 27px; margin-bottom: 19px; }.connection-card h3 { margin: 0 0 7px; font-size: 18px; }.connection-card p { margin: 0; color: #a9beb1; font-size: 11px; line-height: 1.7; max-width: 330px; }.connection-card .connected { margin-top: 18px; color: #9fdaaf; font-size: 10px; }.connected i { width: 6px; height: 6px; display: inline-block; background: #6bc28a; border-radius: 50%; margin-right: 5px; }.code-block { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #d5ddd5; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.09); padding: 12px; border-radius: 8px; font-size: 10px; line-height: 1.7; margin-top: 15px; }.sync-log { width: 100%; border-collapse: collapse; font-size: 11px; }.sync-log th { text-align: left; font-size: 10px; color: var(--muted); font-weight: 600; padding-bottom: 11px; border-bottom: 1px solid var(--line); }.sync-log td { padding: 13px 5px; border-bottom: 1px solid #ece8df; }.sync-log td:first-child { padding-left: 0; color: var(--muted); font-size: 10px; }.sync-log td:last-child { text-align: right; padding-right: 0; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 27, 28, .44); display: grid; place-items: center; padding: 20px; z-index: 30; backdrop-filter: blur(5px); }.modal-backdrop[hidden] { display: none; }.modal { max-width: 620px; width: 100%; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.2); border-radius: 18px; overflow: hidden; }.modal-header { padding: 21px 23px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }.modal-header h2 { margin: 0; font-size: 20px; }.modal-close { border: 0; background: transparent; color: var(--muted); font-size: 27px; line-height: 1; }.modal-form { padding: 23px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.form-grid label { color: var(--muted); font-size: 10px; }.form-grid input, .form-grid select { display: block; width: 100%; margin-top: 7px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 7px; padding: 10px 11px; font-size: 12px; outline: none; }.form-note { display: flex; gap: 9px; margin-top: 18px; padding: 12px; background: #f9ebdc; border: 1px solid #ecd1ba; color: var(--ink); border-radius: 8px; }.form-note > span { color: var(--copper); }.form-note strong { font-size: 11px; }.form-note p { margin: 5px 0 0; font-size: 10px; color: #866957; }.modal-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.toast-region { position: fixed; z-index: 40; right: 20px; bottom: 20px; display: grid; gap: 8px; }.toast { background: var(--ink); color: #f5eee4; border-left: 3px solid var(--copper); border-radius: 8px; padding: 12px 14px; min-width: 235px; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .25s ease-out; }.toast small { display: block; color: #a5bbb0; margin-top: 4px; font-size: 10px; }@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mobile-menu { display: none; }
@media (max-width: 1180px) { .sidebar { width: 218px; flex-basis: 218px; }.topbar, .content { padding-left: 25px; padding-right: 25px; }.kpi-grid, .dashboard-kpis { grid-template-columns: repeat(3,1fr); }.hero-grid, .dashboard-grid, .outsourcing-layout, .inventory-grid, .quality-grid, .feishu-grid { grid-template-columns: 1fr; }.style-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { width: 100%; min-height: auto; padding: 13px 15px; position: sticky; top: 0; z-index: 20; }.sidebar::before, .brand-subtitle, .plant-chip, .sidebar-bottom, .nav-caption { display: none; }.brand-lockup { padding: 0; }.brand-lockup h1 { font-size: 16px; }.brand-kicker { font-size: 8px; }.brand-mark { transform: scale(.78) skew(-13deg); transform-origin: left center; width: 29px; }.main-nav { display: flex; overflow-x: auto; gap: 2px; margin-top: 10px; padding-bottom: 2px; }.nav-item { width: auto; flex: 0 0 auto; padding: 8px 9px; margin: 0; font-size: 11px; }.nav-item em { display: none; }.nav-icon { width: auto; font-size: 14px; }.topbar { height: 62px; padding: 0 15px; }.breadcrumbs span, .breadcrumbs b { display: none; }.top-actions { gap: 7px; }.search-box { min-width: 0; width: 37px; padding: 0 10px; }.search-box input { display: none; }.top-add { font-size: 0; padding: 10px; width: 37px; }.top-add span { font-size: 18px; }.content { padding: 21px 15px 38px; }.page-head { display: block; }.head-actions { margin-top: 15px; justify-content: space-between; }.page-title { font-size: 28px; }.hero-panel { padding: 22px; }.hero-panel h2 { font-size: 23px; }.hero-metrics { gap: 20px; }.hero-metric strong { font-size: 27px; }.kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.kpi-card { min-height: 108px; padding: 14px; }.kpi-value strong { font-size: 23px; }.panel { padding: 15px; }.flow-step { min-width: 108px; }.mini-table { min-width: 700px; }.data-card { overflow: hidden; }.style-grid { grid-template-columns: 1fr; }.outsource-stats { grid-template-columns: repeat(2,1fr); row-gap: 13px; }.inventory-summary, .cost-summary { grid-template-columns: 1fr 1fr; }.form-grid { grid-template-columns: 1fr; }.modal-form { padding: 18px; }.modal-header { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
