@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --canvas: #f6f7fb;
  --surface: #ffffff;
  --ink: #242539;
  --text: #45465b;
  --muted: #818497;
  --line: #eeeff5;
  --purple: #6558d9;
  --purple-dark: #5447c7;
  --purple-soft: #f0edff;
  --green: #3aa589;
  --orange: #d99a49;
  --blue: #5c8cdb;
  --radius: 14px;
  --sidebar: 216px;
  font-family: 'DM Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); font-size: 13px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, a { touch-action: manipulation; }
a { color: var(--purple); text-decoration: none; }
svg { flex-shrink: 0; vertical-align: middle; }
button svg, .search-field svg, .global-search svg { width: 18px; height: 18px; }
input, select, textarea { outline: 0; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #a5a7b6; }
button:focus-visible, a:focus-visible { outline: 3px solid #bfb6ff; outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #9c8fe9 !important; box-shadow: 0 0 0 3px #6558d90d; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; }
::selection { background: #dcd5ff; }
[hidden] { display: none !important; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid #eaeaf2; padding: 32px 18px 0; display: flex; flex-direction: column; z-index: 30; overflow-y: auto; scrollbar-width: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 35px; }
.brand-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: var(--purple); color: #fff; box-shadow: 0 5px 12px #6558d925; }
.brand-icon svg { width: 23px; height: 23px; }
.brand h1 { font-size: 23px; line-height: 1.25; letter-spacing: 1px; }
.brand { color: var(--ink); }
.brand-en { margin-left: 6px; color: #b0a7ce; font-size: 9px; font-weight: 500; letter-spacing: .2px; vertical-align: middle; }
.brand small { display: block; font-size: 8px; font-weight: 500; color: #8f91a4; line-height: 1.8; letter-spacing: 2.9px; }
.workspace-switch { display: flex; align-items: center; width: 100%; gap: 10px; padding: 11px 10px; margin-bottom: 31px; border: 1px solid #eeedf5; border-radius: 10px; text-align: left; }
.workspace-switch > svg { width: 15px; height: 15px; color: #a3a4b5; margin-left: auto; }
.workspace-avatar { width: 32px; height: 32px; border-radius: 8px; background: #f0eefc; color: var(--purple); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.workspace-info { flex: 1; line-height: 1.5; }
.workspace-info strong { display: block; font-size: 12px; font-weight: 600; }
.workspace-info small { font-size: 10px; color: var(--muted); }
.nav-section-label { font-size: 10px; font-weight: 500; color: #a3a4b2; padding: 0 14px; margin: 0 0 10px; letter-spacing: 1px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 14px; margin-bottom: 5px; border-radius: 8px; color: #7d7f94; text-align: left; font-size: 13px; transition: background .18s, color .18s; white-space: nowrap; }
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.65; }
.nav-item:hover { background: #f7f6fc; color: var(--purple); }
.nav-item.active { background: #efecfc; color: var(--purple); font-weight: 600; }
.nav-count { margin-left: auto; min-width: 22px; text-align: center; padding: 0 5px; background: #e6e0fc; color: var(--purple); font-size: 10px; line-height: 19px; border-radius: 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 35px; }
.helper-card { padding: 15px 13px; margin: 0 6px 20px; background: #f8f8fc; border-radius: 10px; }
.helper-card > svg { color: #897dd7; width: 21px; height: 21px; margin-bottom: 8px; }
.helper-card h4 { font-size: 11px; margin-bottom: 4px; }
.helper-card > strong { display: block; font-size: 10px; font-weight: 500; margin: 8px 0 4px; }
.helper-card > [data-icon] { color: #a294cc; }
.helper-card p { font-size: 10px; color: var(--muted); line-height: 1.8; }
.helper-card button { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: var(--purple); font-size: 10px; margin-top: 10px; }
.helper-card button svg { width: 12px; height: 12px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin: 14px -18px 0; padding: 19px 22px; border-top: 1px solid var(--line); }
.sidebar-user { text-align: left; }
.sidebar-user > [data-icon] svg { width: 14px; height: 14px; color: #aaa7bb; }
.demo-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #b7abda; vertical-align: middle; margin: 0 3px; }
.user-info { line-height: 1.6; flex: 1; }
.user-info strong { display: block; font-size: 11px; font-weight: 600; }
.user-info small { font-size: 10px; color: var(--muted); }
.sidebar-user .icon-button { color: #a1a2b4; width: 22px; }
.avatar { display: inline-grid; place-items: center; position: relative; width: 33px; height: 33px; flex-shrink: 0; border-radius: 50%; background: #ece7fc; color: #7a68bd; font-size: 11px; font-weight: 600; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xs { width: 25px; height: 25px; font-size: 9px; }
.avatar.lavender { background: #eee9fc; color: #8571c9; }
.avatar.peach { background: #fff0e6; color: #b9896c; }
.avatar.blue { background: #e7f0ff; color: #6f92bd; }
.avatar.mint { background: #e3f3ec; color: #5d9b83; }

.workspace { width: calc(100% - var(--sidebar)); margin-left: var(--sidebar); min-width: 0; }
.topbar { height: 78px; padding: 0 34px; background: #ffffffdf; border-bottom: 1px solid #eeeef4; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.breadcrumbs { display: flex; align-items: center; gap: 13px; color: #9799aa; font-size: 11px; }
.breadcrumbs strong, .breadcrumbs > span:last-child { color: #515267; font-weight: 500; }
.breadcrumbs svg { width: 14px; height: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.topbar-actions > .avatar { width: 31px; height: 31px; }
.topbar-divider { width: 1px; height: 21px; background: #eeedf4; margin: 0 -5px; }
.global-search { display: flex; align-items: center; gap: 9px; height: 34px; width: 218px; padding: 0 10px; border: 1px solid #eeeff5; border-radius: 7px; color: #a0a2b3; background: #fbfbfe; }
.global-search input { min-width: 0; width: 100%; border: none; background: none; font-size: 10px; padding: 0; }
.global-search svg { width: 14px; height: 14px; }
kbd { font-family: inherit; white-space: nowrap; border: 1px solid #e8e9f1; border-radius: 3px; font-size: 9px; line-height: 16px; padding: 0 4px; color: #a2a3b0; background: #fff; }
.icon-button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; border-radius: 7px; color: #989bad; position: relative; transition: color .16s, background .16s; }
.icon-button:hover { color: var(--purple); background: #f2effe; }
.notification-dot { position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: #e99c8e; border: 1.5px solid white; }
main { max-width: 1600px; padding: 28px 34px 32px; margin: 0 auto; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 1600px; margin: 0 auto; padding: 0 34px 24px; color: #b2b1c0; font-size: 9px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.page-eyebrow { color: #a2a3b1; font-size: 10px; line-height: 1.4; letter-spacing: 1.8px; margin-bottom: 5px; text-transform: uppercase; }
.page-head h1 { font-size: 28px; line-height: 1.5; letter-spacing: -.7px; }
.page-head p { color: #818497; font-size: 12px; margin-top: 5px; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; min-height: 36px; border-radius: 7px; font-size: 12px; font-weight: 500; border: 1px solid transparent; transition: background .16s, border-color .16s, transform .16s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; }
.btn.primary { color: white; background: var(--purple); border-color: var(--purple); box-shadow: 0 3px 6px #6558d916; }
.btn.primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn.secondary { color: #696b80; background: white; border-color: #e6e7ef; }
.btn.secondary:hover { border-color: #c7bff1; color: var(--purple); }
.btn.small { font-size: 11px; padding: 6px 11px; min-height: 32px; }
.btn.ghost { color: #7c6bce; border-color: #ded8f4; background: #ffffff65; }
.btn.danger { background: #fff1f0; color: #d36b6b; border-color: #f5d7d7; }
.text-button { display: inline-flex; align-items: center; gap: 5px; color: var(--purple); font-size: 11px; padding: 0; white-space: nowrap; }
.text-button svg { width: 13px; height: 13px; }
.text-button:hover { color: var(--purple-dark); }
.link-button { color: #6a5cd2; padding: 0; font-weight: 600; font-size: inherit; }
.link-button:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: 11px; font-weight: 400; }
.subtext { color: #8b8e9f; font-size: 11px; margin-top: 4px; }

.welcome-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 154px; padding: 24px 31px; border: 1px solid #e6e1f6; border-radius: var(--radius); background: linear-gradient(106deg, #f0edfc 0%, #f5f2fd 51%, #ececfc 100%); position: relative; overflow: hidden; margin-bottom: 22px; }
.welcome-banner::after { content: ''; position: absolute; width: 270px; height: 270px; right: -90px; top: -160px; border: 40px solid #ffffff33; border-radius: 50%; pointer-events: none; }
.banner-content { position: relative; z-index: 2; }
.eyebrow { color: #9b91c3; font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 5px; }
.welcome-banner h2 { font-size: 20px; line-height: 1.6; color: #41376d; letter-spacing: -.5px; }
.welcome-banner p { font-size: 10px; color: #9389ae; margin-top: 5px; }
.banner-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.banner-actions .btn { min-height: 29px; font-size: 10px; padding: 5px 10px; }
.banner-actions .text-button { color: #8b7fb7; }
.banner-art { position: absolute; width: 260px; height: 150px; right: 43px; bottom: 0; z-index: 1; }
.banner-art svg { width: 100%; height: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 23px; }
.stat-card { display: block; position: relative; min-width: 0; text-align: left; padding: 18px 20px 16px; background: white; border: 1px solid #eaeaf3; border-radius: 12px; transition: border-color .2s, transform .2s; overflow: hidden; }
.stat-card:hover { border-color: #c9c1ed; transform: translateY(-2px); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8d8fa1; font-size: 11px; }
.stat-top > span:first-child { display: flex; align-items: center; gap: 8px; }
.stat-icon { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; }
.stat-icon svg { width: 14px; height: 14px; }
.stat-icon.purple { background: #f1edfc; color: #9b8bd2; }
.stat-icon.blue { background: #eaf2fd; color: #7ea2dd; }
.stat-icon.orange { background: #fff4e5; color: #d5a15b; }
.stat-icon.green { background: #eaf5f0; color: #75b39d; }
.stat-trend { font-size: 9px; font-weight: 500; color: #58a68e; display: inline-flex; align-items: center; gap: 3px; }
.stat-trend svg { width: 11px; height: 11px; }
.stat-value { font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -.9px; margin-top: 13px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 14px; letter-spacing: 0; margin-right: 3px; font-weight: 500; }
.stat-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; min-height: 20px; color: #a3a5b3; font-size: 9px; }
.sparkline { width: 80px; height: 25px; position: absolute; right: 20px; bottom: 20px; opacity: .8; }
.sparkline svg { width: 100%; height: 100%; }

.pipeline { display: flex; align-items: center; gap: 0; margin-bottom: 23px; padding: 16px 20px; background: white; border: 1px solid #eaeaf3; border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.pipeline::-webkit-scrollbar { display: none; }
.pipeline-step { display: flex; align-items: center; gap: 8px; padding: 5px 7px; white-space: nowrap; min-width: 0; flex: 1; border-radius: 6px; transition: background .2s; }
.pipeline-step:hover, .pipeline-step.active { background: #f6f3ff; }
.pipeline-dot { width: 7px; height: 7px; border-radius: 50%; background: #cbc5ed; flex-shrink: 0; }
.pipeline-step:nth-of-type(2) .pipeline-dot { background: #a79cde; }
.pipeline-step:nth-of-type(3) .pipeline-dot { background: #a8bbde; }
.pipeline-step:nth-of-type(4) .pipeline-dot { background: #dcb681; }
.pipeline-step:nth-of-type(5) .pipeline-dot { background: #86b8af; }
.pipeline-step:nth-of-type(6) .pipeline-dot { background: #b4bac7; }
.pipeline-label { color: #8a8c9f; font-size: 10px; }
.pipeline-num { font-weight: 600; color: #535467; font-size: 13px; margin-left: auto; }
.pipeline-step.active .pipeline-label, .pipeline-step.active .pipeline-num { color: var(--purple); }
.pipeline-connector { margin: 0 8px; color: #d9d9e5; width: 17px; height: 1px; background: #e4e4ed; flex-shrink: 0; }
.pipeline-connector svg { display: none; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 22px; align-items: start; }
.panel { background: white; border: 1px solid #eaeaf3; border-radius: var(--radius); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 21px 15px; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: -.1px; }
.panel-head > div { display: block; }
.order-tabs { display: flex; gap: 23px; padding: 0 21px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.order-tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; gap: 6px; align-items: center; padding: 0 0 13px; color: #999bac; position: relative; font-size: 10px; white-space: nowrap; }
.tab.active { color: var(--purple); font-weight: 500; }
.tab.active::after { content: ''; height: 2px; width: 100%; border-radius: 3px 3px 0 0; background: var(--purple); position: absolute; left: 0; bottom: -1px; }
.tab .count { min-width: 15px; padding: 0 4px; border-radius: 4px; font-size: 8px; line-height: 14px; background: #f2f3f7; color: #a0a1af; }
.tab.active .count { background: #eeebfc; color: #8a7ed1; }
.table-tools { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 12px; }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 100px; width: 230px; height: 31px; color: #a6a8b7; border: 1px solid #ededf3; border-radius: 6px; padding: 0 10px; background: #fff; }
.search-field svg { width: 14px; height: 14px; }
.search-field input { border: 0; padding: 0; width: 100%; min-width: 0; background: none; font-size: 9px; }
.tool-actions { display: flex; align-items: center; gap: 7px; }
.select-control { display: flex; align-items: center; gap: 5px; color: #85879a; height: 31px; background: white; padding: 0 9px; border: 1px solid #ededf3; border-radius: 6px; font-size: 9px; }
.select-control select { appearance: none; border: 0; background: transparent; color: inherit; padding-right: 8px; font-size: inherit; cursor: pointer; }
.select-control svg { width: 12px; height: 12px; }
.table-tools .btn { min-height: 31px; padding: 6px 9px; font-size: 9px; }
.table-tools .btn svg { width: 12px; height: 12px; }
.table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ded9ee transparent; }
.order-table { border-collapse: collapse; width: 100%; min-width: 810px; white-space: nowrap; font-size: 12px; }
.order-table th { padding: 12px; background: #fafafe; color: #818497; font-weight: 400; text-align: left; border-top: 1px solid #f2f2f7; border-bottom: 1px solid #f2f2f7; font-size: 11px; }
.order-table td { padding: 17px 12px; border-bottom: 1px solid #f0f0f6; vertical-align: middle; color: #696b80; }
.order-table th:first-child, .order-table td:first-child { padding-left: 20px; padding-right: 2px; width: 30px; }
.order-table th:last-child, .order-table td:last-child { padding-right: 17px; }
.order-table tbody tr { transition: background .16s; }
.order-table tbody tr:hover { background: #fcfbff; }
.order-table tbody tr:last-child td { border-bottom: none; }
.checkbox { appearance: none; display: inline-block; width: 12px; height: 12px; border: 1px solid #dcdde7; border-radius: 3px; margin: 0; cursor: pointer; position: relative; vertical-align: middle; background: white; }
.checkbox:checked { background: var(--purple); border-color: var(--purple); }
.checkbox:checked::after { content: ''; position: absolute; width: 5px; height: 3px; top: 2px; left: 2px; border: 1.3px solid white; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.order-id { font-weight: 500; letter-spacing: -.2px; }
.source-tag { display: inline-flex; align-items: center; gap: 3px; color: #cc986e; font-size: 8px; background: #fff5eb; border: 1px solid #f9eadc; padding: 0 4px; line-height: 14px; border-radius: 3px; margin-top: 5px; }
.source-tag svg { width: 9px; height: 9px; }
.customer-name { font-weight: 400; color: #717386; max-width: 205px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; margin-top: 5px; }
.country { color: #a4a6b4; font-size: 9px; margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.country svg { width: 11px; height: 11px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; padding: 4px 7px; line-height: 1.5; border-radius: 4px; color: #8a7bbe; background: #f3effd; white-space: nowrap; }
.status-dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.status-badge.pending { color: #b69763; background: #fbf4e9; }
.status-badge.handoff { color: #9b81ce; background: #f2edfc; }
.status-badge.production { color: #7196c4; background: #ecf3fc; }
.status-badge.ready { color: #c3975d; background: #fcf3e7; }
.status-badge.shipped { color: #70a592; background: #edf7f2; }
.status-badge.completed { color: #989dab; background: #f1f3f6; }
.amount { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; color: #5c5d71; }
.due-date { font-variant-numeric: tabular-nums; font-size: 11px; }
.due-date.danger { color: #d78b85; }
.due-date.warning { color: #d0a36a; }
.people-pair { display: inline-flex; align-items: center; padding-left: 0; }
.people-pair .avatar + .avatar { margin-left: -6px; border: 2px solid white; }
.row-actions { display: flex; align-items: center; gap: 1px; }
.row-actions .icon-button { width: 24px; height: 24px; }
.row-actions .icon-button svg { width: 13px; height: 13px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 15px 20px; color: #a3a5b4; font-size: 9px; }
.pagination { display: flex; align-items: center; gap: 5px; }
.pagination button { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; color: #a0a2b3; border-radius: 5px; font-size: 9px; border: 1px solid transparent; }
.pagination button.active { color: var(--purple); background: #f0ecfc; }
.pagination button:hover { border-color: #e3ddf5; }
.pagination button svg { width: 12px; height: 12px; }
.mobile-orders { display: none; }
.right-rail { display: flex; flex-direction: column; gap: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 18px 12px; }
.section-heading h2 { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.section-heading h2 .count { color: #ac92d5; background: #f5f0fc; padding: 0 5px; border-radius: 4px; font-size: 9px; line-height: 16px; }
.section-heading .icon-button { width: 20px; height: 20px; }
.section-heading .icon-button svg { width: 13px; height: 13px; }
.todo-panel { padding-bottom: 7px; }
.todo-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 12px 18px; text-align: left; position: relative; transition: background .18s; }
.todo-item:hover { background: #fcfbff; }
.todo-icon { width: 29px; height: 29px; display: grid; place-items: center; flex-shrink: 0; border-radius: 8px; margin-top: 1px; }
.todo-icon svg { width: 14px; height: 14px; }
.todo-icon.orange { color: #cdab7b; background: #fcf4e8; }
.todo-icon.purple { color: #a18acb; background: #f3eefc; }
.todo-icon.blue { color: #7c9fcf; background: #edf3fd; }
.todo-text { flex: 1; min-width: 0; }
.todo-text h4 { font-size: 10px; font-weight: 500; color: #68697e; line-height: 1.7; }
.todo-text p { color: #a4a6b5; font-size: 9px; line-height: 1.7; margin-top: 3px; }
.todo-time { color: #c0b2d5; font-size: 8px; display: block; margin-top: 4px; }
.todo-arrow { color: #c0c0ce; margin-top: 8px; }
.todo-arrow svg, svg.todo-arrow { width: 12px; height: 12px; }
.team-panel { padding-bottom: 9px; }
.team-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; }
.team-person { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.team-person .avatar { width: 28px; height: 28px; font-size: 9px; }
.person-info strong { display: block; font-weight: 500; font-size: 10px; color: #75768a; }
.person-info small { display: block; color: #b0b2bf; font-size: 8px; margin-top: 1px; }
.workload { width: 68px; color: #a0a2b3; font-size: 8px; text-align: right; }
.workload strong { font-weight: 500; color: #807a99; }
.mini-bar { background: #f0edf8; height: 3px; border-radius: 3px; width: 100%; margin-top: 6px; overflow: hidden; }
.mini-bar > span { display: block; height: 100%; background: #b4a6e2; border-radius: inherit; }
.insight-card { position: relative; overflow: hidden; padding: 19px 19px 18px; background: #f0f2fc; border: 1px solid #e7e9f7; border-radius: var(--radius); }
.insight-card::after { content: ''; width: 90px; height: 90px; position: absolute; right: -33px; bottom: -34px; border: 17px solid #e4e7f8; border-radius: 50%; }
.insight-icon { width: 28px; height: 28px; display: grid; place-items: center; background: #e5e8fa; color: #8b93c5; border-radius: 8px; margin-bottom: 11px; }
.insight-icon svg { width: 15px; height: 15px; }
.insight-card h3 { color: #6b7194; font-size: 11px; }
.insight-card p { color: #9da3bd; font-size: 9px; line-height: 1.9; margin-top: 5px; max-width: 205px; }
.insight-card .text-button { color: #8f82c8; margin-top: 11px; font-size: 9px; position: relative; z-index: 1; }
.bottom-nav { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; margin: 0 0 10px 20px; background: #f3effe; color: #8e7bc7; border-radius: 5px; font-size: 10px; }
.filter-chip button { padding: 0; }
.filter-chip svg { width: 11px; height: 11px; }
.empty-state { padding: 65px 24px; text-align: center; color: #a0a1b1; }
.empty-state > svg { width: 42px; height: 42px; color: #c8c2e2; margin-bottom: 12px; }
.empty-state h3 { font-size: 14px; color: #656579; margin-bottom: 7px; }
.empty-state p { font-size: 11px; margin-bottom: 18px; }

/* Workspace views */
.view-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.customer-card { background: #fff; border: 1px solid #eaeaf3; border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.customer-card:hover { border-color: #c9c0ec; transform: translateY(-2px); }
.customer-logo { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; background: #f0edfc; color: #8d7bc5; font-weight: 600; font-size: 17px; margin-bottom: 17px; }
.customer-card h3 { font-size: 15px; }
.customer-meta { color: #9b9dad; font-size: 10px; line-height: 2; margin: 7px 0 17px; }
.customer-card > p { color: #9294a7; font-size: 11px; }
.customer-card .detail-grid { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; align-items: start; }
.kanban-column { background: #eeeff6; border: 1px solid #e7e8f0; border-radius: 12px; padding: 13px; min-height: 320px; }
.kanban-head { display: flex; align-items: center; gap: 8px; padding: 2px 3px 15px; color: #77798e; font-size: 12px; font-weight: 500; }
.kanban-head .count { color: #a4a5b3; font-size: 10px; margin-left: auto; }
.kanban-card { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #e7e7f0; border-radius: 9px; padding: 16px; margin-bottom: 10px; }
.kanban-card:hover { border-color: #c5bbea; }
.kanban-card h3 { font-size: 12px; margin-bottom: 7px; }
.kanban-card p { font-size: 10px; color: #9698ab; margin-top: 6px; }
.kanban-card .status-badge { margin-top: 13px; }
.kanban-card .progress-bar { margin-top: 13px; }
.kanban-card .card-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; }
.shipment-list { display: grid; gap: 16px; }
.shipment-card { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding: 24px; background: white; border: 1px solid #eaeaf3; border-radius: var(--radius); }
.shipment-card h3 { font-size: 14px; }
.shipment-card p { font-size: 11px; color: #9294a7; margin-top: 5px; }
.shipment-card > .product-icon { width: 45px; height: 45px; }
.shipment-card > div:not(.product-icon) { flex: 1; }
.settings-card { background: white; border: 1px solid #eaeaf3; border-radius: var(--radius); padding: 27px; margin-bottom: 20px; }
.settings-card h2 { font-size: 16px; margin-bottom: 5px; }
.settings-card > p { font-size: 11px; color: #9698aa; margin-bottom: 23px; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.role-card { background: #fbfbfe; border: 1px solid #eeedf5; border-radius: 10px; padding: 20px; }
.role-card h3 { font-size: 13px; margin-bottom: 10px; }
.role-card p, .role-card li { font-size: 11px; color: #9696aa; line-height: 1.9; }
.role-card ul { padding-left: 15px; margin: 8px 0 0; }

/* Focused editing and detail surfaces */
.overlay, .drawer-overlay { position: fixed; inset: 0; background: #22213b43; backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade-in .18s ease-out; }
.modal { width: 530px; max-width: 100%; max-height: calc(100dvh - 48px); border-radius: 16px; background: #fff; box-shadow: 0 20px 90px #24203d2b; display: flex; flex-direction: column; overflow: hidden; animation: rise-in .2s ease-out; }
.modal.wide { width: 760px; }
.modal-head, .drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 26px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.modal-head h2, .drawer-head h2 { font-size: 17px; letter-spacing: -.3px; }
.modal-head p, .drawer-head p { color: #999bad; font-size: 10px; margin-top: 4px; }
.modal-body { padding: 25px 26px; overflow-y: auto; }
.modal-foot, .drawer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 17px 26px; border-top: 1px solid var(--line); background: #fdfdff; flex-shrink: 0; }
.modal-foot > .muted, .drawer-foot > .muted { margin-right: auto; }
.drawer-overlay { justify-content: flex-end; padding: 0; }
.drawer { height: 100dvh; width: 700px; max-width: 100%; background: #fff; box-shadow: -15px 0 70px #25233a1c; display: flex; flex-direction: column; overflow: hidden; animation: slide-in .25s ease-out; }
.drawer-summary { padding: 23px 27px; background: linear-gradient(110deg, #faf9ff, #ffffff); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-summary h2 { font-size: 22px; }
.drawer-summary .amount { margin-left: auto; font-size: 23px; font-weight: 600; color: #62568b; }
.drawer-summary .subtext { font-size: 10px; }
.drawer-tabs { display: flex; padding: 0 27px; gap: 28px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.drawer-tabs button { padding: 16px 0 14px; font-size: 11px; color: #9998ac; border-bottom: 2px solid transparent; }
.drawer-tabs button.active { color: var(--purple); border-bottom-color: var(--purple); font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: 25px 27px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field { min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; color: #727288; font-size: 11px; margin-bottom: 7px; font-weight: 500; }
.form-field label span, .required { color: #c396a1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 41px; background: #fff; border: 1px solid #e4e4ef; border-radius: 7px; padding: 9px 11px; font-size: 13px; transition: border-color .15s; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: #c9c4de; }
.form-field textarea { min-height: 90px; resize: vertical; }
.field-help { font-size: 9px; color: #a7a6b6; margin-top: 6px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 25px; }
.detail-block { min-width: 0; }
.detail-label { font-size: 10px; color: #a1a0b2; margin-bottom: 5px; }
.detail-value { color: #5a596e; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.detail-section { margin-bottom: 26px; }
.detail-section + .detail-section { padding-top: 23px; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: 12px; color: #69677f; margin-bottom: 17px; display: flex; align-items: center; gap: 8px; }
.detail-section h3 svg { width: 15px; height: 15px; color: #a49abf; }
.product-row { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid #eeeaf6; border-radius: 9px; background: #fcfbfe; margin-bottom: 9px; }
.product-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: #efebfa; color: #a294c5; }
.product-icon svg { width: 20px; height: 20px; }
.product-row h4 { font-size: 11px; color: #6e6a83; }
.product-row p { font-size: 10px; color: #aaa5b9; margin-top: 4px; }
.product-row > .amount { margin-left: auto; white-space: nowrap; }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.check-item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid #eae7f3; background: #fdfcff; border-radius: 8px; cursor: pointer; }
.check-item input { accent-color: var(--purple); width: 15px; height: 15px; margin: 3px 0 0; flex-shrink: 0; }
.check-copy { flex: 1; }
.check-copy strong { color: #716b85; font-size: 11px; font-weight: 500; }
.check-copy p { color: #aaa4b7; font-size: 10px; margin-top: 3px; }
.check-item:has(input:checked) { border-color: #d8d0f1; background: #f8f5ff; }
.progress-track { display: flex; padding: 8px 0 26px; overflow-x: auto; }
.progress-step { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 64px; position: relative; gap: 9px; }
.progress-step::before { content: ''; position: absolute; height: 1px; background: #eae6f2; left: -50%; right: 50%; top: 12px; }
.progress-step:first-child::before { display: none; }
.step-circle { display: grid; place-items: center; height: 25px; width: 25px; font-size: 9px; border-radius: 50%; color: #bcb5cb; background: #f4f1f8; border: 1px solid #eee9f4; z-index: 1; }
.step-circle svg { height: 12px; width: 12px; }
.step-label { color: #b3adbf; font-size: 9px; }
.progress-step.done .step-circle { color: #9b8ac6; background: #eeE8fa; border-color: #e5dbf5; }
.progress-step.done::before, .progress-step.current::before { background: #d6c9ee; }
.progress-step.current .step-circle { color: white; background: var(--purple); border-color: var(--purple); box-shadow: 0 0 0 4px #f1ecfc; }
.progress-step.current .step-label { color: var(--purple); font-weight: 500; }
.timeline { padding: 0 0 0 4px; }
.timeline-item { display: flex; gap: 14px; position: relative; padding-bottom: 23px; }
.timeline-item::before { content: ''; position: absolute; top: 13px; bottom: 0; width: 1px; left: 4px; background: #eee8f6; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 9px; height: 9px; flex-shrink: 0; background: #cec2e6; border: 2px solid #f5f1fb; border-radius: 50%; margin-top: 6px; position: relative; }
.timeline-item:first-child .timeline-dot { background: #9d86cf; border-color: #eae3f7; }
.timeline-content h4 { font-size: 11px; font-weight: 500; color: #777085; }
.timeline-content p { font-size: 10px; color: #a59bb4; line-height: 1.8; margin-top: 4px; }
.timeline-content small, .timeline-content time { display: block; font-size: 9px; color: #b8b0c3; margin-top: 5px; }
.notice { padding: 12px 14px; display: flex; align-items: flex-start; gap: 9px; border-radius: 8px; border: 1px solid #e7e0f4; background: #f7f3fd; font-size: 11px; line-height: 1.8; color: #9184aa; margin-bottom: 21px; }
.notice > svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.notice.warning { background: #fffbf2; border-color: #f4e8cc; color: #b39b6a; }
.notice.info { background: #f2f5fe; border-color: #e1e7f8; color: #8999c2; }
.notice.success { background: #f1f8f4; border-color: #deeee3; color: #78a38a; }
.progress-bar { height: 5px; background: #f1edf7; border-radius: 5px; overflow: hidden; }
.progress-bar > span { height: 100%; display: block; border-radius: inherit; background: #ab96d6; transition: width .3s; }
.amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 23px; }
.amount-card { border: 1px solid #eee9f5; border-radius: 9px; padding: 17px 15px; background: #fcfbfe; }
.amount-card p { font-size: 10px; color: #a39bad; }
.amount-card strong { display: block; color: #756780; font-size: 20px; font-weight: 600; margin-top: 7px; }
.amount-card small { font-size: 9px; color: #b0a7bb; }
.mobile-preview-frame { width: 360px; height: min(680px, 70dvh); border: 7px solid #39334c; border-radius: 32px; overflow: hidden; margin: 0 auto; background: var(--canvas); }
.mobile-preview-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.toast { position: fixed; left: calc(50% + var(--sidebar) / 2); bottom: 28px; z-index: 200; transform: translate(-50%, 15px); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 9px; background: #363145; box-shadow: 0 8px 30px #29213820; color: #fff; border-radius: 9px; padding: 12px 19px; font-size: 12px; max-width: calc(100vw - 40px); transition: opacity .2s, transform .2s, visibility .2s; }
.toast svg { width: 16px; height: 16px; color: #b9d4bc; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-in { from { transform: translateX(35px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }

@media (min-width: 1680px) {
  main { padding: 34px 42px 40px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 315px; gap: 25px; }
  .stat-card { padding: 22px 24px 20px; }
  .order-table td { padding-top: 20px; padding-bottom: 20px; }
  .welcome-banner { min-height: 170px; }
  .banner-art { width: 300px; height: 170px; right: 70px; }
}
@media (max-width: 1360px) {
  main { padding: 26px 26px 30px; }
  .topbar { padding: 0 26px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 258px; gap: 18px; }
  .stats-grid { gap: 13px; }
  .stat-card { padding: 17px 16px; }
  .stat-value { font-size: 28px; }
  .stat-trend { font-size: 8px; }
  .pipeline { padding-left: 14px; padding-right: 14px; }
  .pipeline-connector { width: 9px; margin: 0 4px; }
  .pipeline-step { gap: 6px; }
  .pipeline-label { font-size: 9px; }
  .pipeline-num { font-size: 12px; }
  .order-table th, .order-table td { padding-left: 9px; padding-right: 9px; }
  .table-tools { padding: 15px 16px; }
  .search-field { width: 185px; }
  .order-tabs { gap: 20px; }
  .todo-item { padding-left: 15px; padding-right: 15px; gap: 8px; }
  .section-heading { padding-left: 16px; padding-right: 16px; }
  .team-row { padding-left: 16px; padding-right: 16px; }
  .banner-art { right: 25px; }
}
@media (max-width: 1190px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .right-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .insight-card { display: none; }
  .todo-panel, .team-panel { min-height: 220px; }
  .order-table { min-width: 700px; }
  .welcome-banner { padding-left: 25px; }
  .welcome-banner h2 { font-size: 19px; }
  .banner-art { width: 235px; right: 10px; }
  .view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  :root { --sidebar: 76px; }
  .sidebar { padding: 27px 12px 0; align-items: center; }
  .brand { padding: 0; margin-bottom: 28px; }
  .brand h1, .brand small { display: none; }
  .brand-icon { width: 35px; height: 35px; }
  .workspace-switch { width: 44px; height: 44px; padding: 5px; margin-bottom: 28px; justify-content: center; }
  .workspace-info, .workspace-switch > svg, .nav-section-label, .nav-item span, .nav-count, .helper-card, .user-info, .sidebar-user .icon-button { display: none; }
  .sidebar nav, .sidebar-bottom { width: 100%; }
  .nav-item { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; margin: 0 auto 7px; }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-item > span[data-icon] { display: inline-flex; }
  .sidebar-user { margin: 13px -12px 0; padding: 21px 22px; }
  .topbar { height: 68px; }
  main { padding: 26px; }
}
@media (max-width: 768px) {
  :root { --sidebar: 0px; }
  body { font-size: 13px; }
  .sidebar { display: none; }
  .workspace { width: 100%; margin-left: 0; }
  .topbar { height: 61px; padding: 0 20px; background: #fff; }
  .breadcrumbs { font-size: 10px; gap: 9px; }
  .topbar-actions { gap: 13px; }
  .topbar-actions .global-search, .topbar-actions > .icon-button:first-of-type { display: none; }
  .topbar-actions > .avatar { width: 28px; height: 28px; font-size: 9px; }
  .topbar-divider { display: none; }
  main { padding: 23px 18px 100px; }
  .app-footer { display: none; }
  .page-head { gap: 12px; margin-bottom: 20px; align-items: flex-start; }
  .page-eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 5px; }
  .page-head h1 { font-size: 24px; line-height: 1.45; }
  .page-head p { font-size: 10px; margin-top: 6px; max-width: 230px; line-height: 1.8; }
  .page-actions { padding-top: 19px; gap: 6px; }
  .page-actions .btn { min-height: 31px; padding: 6px 9px; font-size: 10px; gap: 4px; }
  .page-actions > .btn.secondary { display: none; }
  .page-actions .btn svg { width: 12px; height: 12px; }
  .welcome-banner { min-height: 147px; padding: 20px; margin-bottom: 17px; border-radius: 12px; }
  .welcome-banner h2 { font-size: 17px; max-width: 240px; line-height: 1.6; }
  .welcome-banner p { font-size: 9px; max-width: 235px; line-height: 1.8; }
  .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .banner-actions { margin-top: 13px; gap: 9px; }
  .banner-actions .btn { min-height: 27px; padding: 5px 9px; font-size: 9px; }
  .banner-actions .text-button { font-size: 9px; }
  .banner-art { width: 180px; height: 120px; right: -35px; opacity: .48; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 17px; }
  .stat-card { padding: 14px 15px 12px; border-radius: 10px; }
  .stat-top { font-size: 10px; gap: 4px; }
  .stat-top > span:first-child { gap: 6px; }
  .stat-icon { width: 23px; height: 23px; border-radius: 6px; }
  .stat-icon svg { width: 12px; height: 12px; }
  .stat-trend { font-size: 8px; }
  .stat-value { font-size: 28px; margin-top: 10px; }
  .stat-value small { font-size: 13px; }
  .stat-bottom { font-size: 8px; margin-top: 7px; }
  .sparkline { right: 14px; bottom: 15px; width: 60px; height: 22px; }
  .pipeline { padding: 11px 10px; margin-bottom: 18px; gap: 3px; border-radius: 10px; }
  .pipeline-step { flex-direction: column; gap: 4px; padding: 5px 6px; min-width: 54px; }
  .pipeline-dot { width: 5px; height: 5px; }
  .pipeline-label { font-size: 8px; }
  .pipeline-num { font-size: 13px; margin-left: 0; }
  .pipeline-connector { width: 7px; margin: 0 0 15px; }
  .content-grid { gap: 17px; }
  .orders-panel { border-radius: 12px; }
  .panel-head { padding: 17px 16px 14px; }
  .panel-head h2 { font-size: 13px; gap: 8px; }
  .panel-head .muted { font-size: 9px; }
  .order-tabs { padding: 0 16px; gap: 23px; }
  .tab { padding-bottom: 12px; font-size: 10px; gap: 4px; }
  .tab .count { font-size: 8px; }
  .table-tools { padding: 14px 15px; gap: 8px; }
  .search-field { flex: 1; width: auto; height: 32px; }
  .search-field input { font-size: 10px; }
  .tool-actions { gap: 6px; }
  .tool-actions .select-control { display: none; }
  .table-tools .btn { height: 32px; font-size: 10px; padding: 6px 8px; }
  .table-wrap { display: none; }
  .mobile-orders { display: block; padding: 0 15px; }
  .order-card { display: block; width: 100%; text-align: left; padding: 17px 0; border-top: 1px solid var(--line); }
  .order-card .order-card-head, .order-card .order-card-top, .order-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .order-card .order-id { font-size: 11px; }
  .order-card .status-badge { font-size: 9px; padding: 3px 7px; }
  .order-card .customer-name { font-size: 12px; margin-top: 12px; max-width: 100%; }
  .order-card .country { margin-top: 4px; }
  .order-card .order-card-meta, .order-card .order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
  .order-card .amount { font-size: 15px; font-weight: 600; }
  .order-card .due-date { font-size: 9px; }
  .order-card .source-tag { margin-left: 5px; margin-top: 0; }
  .order-card .subtext { font-size: 9px; }
  .table-footer { padding: 14px 15px; font-size: 9px; }
  .pagination { gap: 3px; }
  .pagination button { min-width: 23px; height: 23px; }
  .right-rail { display: flex; gap: 17px; }
  .todo-panel { padding-bottom: 8px; min-height: 0; }
  .todo-item { padding: 11px 17px; gap: 12px; }
  .todo-text h4 { font-size: 11px; }
  .todo-text p { font-size: 9px; }
  .todo-icon { width: 32px; height: 32px; }
  .section-heading { padding: 17px 17px 10px; }
  .team-panel { min-height: 0; }
  .team-row { padding: 11px 18px; }
  .workload { width: 90px; }
  .insight-card { display: block; }
  .bottom-nav { position: fixed; inset: auto 0 0; display: flex; justify-content: space-around; background: #ffffffef; backdrop-filter: blur(15px); border-top: 1px solid #ecebf3; z-index: 45; padding: 9px 10px max(10px, env(safe-area-inset-bottom)); box-shadow: 0 -3px 20px #2d214a04; }
  .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 53px; padding: 2px 8px; color: #a2a0b3; font-size: 9px; }
  .bottom-nav button svg { width: 20px; height: 20px; stroke-width: 1.6; }
  .bottom-nav button.active { color: var(--purple); font-weight: 500; }
  .bottom-nav button.active svg { stroke-width: 2; }
  .view-grid { grid-template-columns: 1fr; gap: 14px; }
  .customer-card { padding: 21px; }
  .customer-logo { width: 39px; height: 39px; font-size: 15px; margin-bottom: 13px; }
  .customer-card h3 { font-size: 14px; }
  .kanban { grid-template-columns: 1fr; gap: 17px; }
  .kanban-column { min-height: 0; }
  .kanban-head { padding-bottom: 12px; }
  .kanban-card:last-child { margin-bottom: 0; }
  .shipment-card { padding: 19px; gap: 14px; }
  .shipment-card .btn { width: 100%; }
  .settings-card { padding: 21px; }
  .settings-card h2 { font-size: 14px; }
  .role-grid { gap: 13px; }
  .overlay { padding: 14px; }
  .modal { max-height: calc(100dvh - 28px); border-radius: 13px; }
  .modal-head, .drawer-head { padding: 18px 20px; }
  .modal-head h2, .drawer-head h2 { font-size: 16px; }
  .modal-body { padding: 20px; }
  .modal-foot, .drawer-foot { padding: 14px 20px max(14px, env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .modal-foot > .muted, .drawer-foot > .muted { display: none; }
  .modal-foot .btn, .drawer-foot .btn { flex: 1; min-height: 39px; }
  .drawer { width: 100%; }
  .drawer-summary { padding: 20px; gap: 12px; }
  .drawer-summary h2 { font-size: 20px; }
  .drawer-summary .amount { font-size: 21px; }
  .drawer-tabs { padding: 0 20px; justify-content: space-between; gap: 15px; overflow-x: auto; }
  .drawer-tabs button { font-size: 11px; white-space: nowrap; }
  .drawer-body { padding: 21px 20px; }
  .form-grid, .form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 13px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 12px; min-height: 41px; }
  .form-field label { font-size: 11px; }
  .detail-grid { gap: 20px 18px; }
  .detail-label { font-size: 10px; }
  .detail-value { font-size: 11px; }
  .product-row { padding: 12px; gap: 10px; }
  .product-row .amount { font-size: 12px; }
  .product-row h4 { font-size: 10px; }
  .product-row p { font-size: 9px; }
  .product-icon { width: 32px; height: 32px; }
  .amount-grid { gap: 8px; }
  .amount-card { padding: 13px 10px; }
  .amount-card p { font-size: 9px; }
  .amount-card strong { font-size: 17px; }
  .amount-card small { font-size: 8px; }
  .toast { bottom: 91px; font-size: 11px; padding: 12px 16px; }
  .mobile-preview-frame { width: 100%; max-width: 360px; }
}
@media (max-width: 360px) {
  main { padding-left: 13px; padding-right: 13px; }
  .topbar { padding: 0 15px; }
  .page-actions .btn { padding: 6px 8px; font-size: 9px; }
  .page-head h1 { font-size: 22px; }
  .welcome-banner { padding: 18px; }
  .welcome-banner h2 { font-size: 16px; }
  .banner-art { opacity: .25; right: -55px; }
  .stat-card { padding: 12px; }
  .stat-trend { display: none; }
  .stat-bottom { font-size: 7px; }
  .pipeline-step { min-width: 48px; }
  .order-tabs { gap: 18px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Component details shared by the live workspace views. */
.nav-indicator { width: 5px; height: 5px; background: #d3b57e; border-radius: 50%; margin-left: auto; }
.workspace-info strong { font-size: 12px; }
.workspace-switch > [data-icon] svg { width: 14px; height: 14px; color: #aaa7b8; }
.page-eyebrow { color: #9491a6; }
.page-eyebrow > span { color: #b6b3c4; padding: 0 5px; }
.welcome-banner h2 { font-size: 22px; }
.welcome-banner p { font-size: 12px; color: #8e82a9; }
.banner-art { width: 270px; height: 164px; right: 39px; }
.banner-actions { gap: 10px; color: #8d81ad; font-size: 11px; }
.banner-actions > svg { width: 13px; height: 13px; color: #b1a6cc; }
.integration-label { display: inline-flex; align-items: center; gap: 5px; color: #8d83a5; font-family: 'DM Sans', sans-serif; font-weight: 500; }
.integration-label b { font-size: 21px; font-style: italic; font-weight: 700; line-height: .8; color: #dc9d60; padding-right: 1px; }
.banner-divider { width: 1px; height: 12px; background: #d9d2ea; margin: 0 2px; }
.eyebrow > i { display: inline-block; vertical-align: middle; width: 4px; height: 4px; margin-right: 5px; border-radius: 50%; background: #a794d1; }
.stat-top { font-size: 12px; color: #85879b; }
.stat-value { font-size: 29px; }
.stat-value small { font-size: 11px; font-weight: 400; letter-spacing: 0; color: #9694aa; margin: 0 0 0 6px; }
.stat-bottom { min-height: 26px; font-size: 10px; color: #9193a5; margin-top: 8px; }
.stat-bottom > span { min-width: 0; flex: 1; }
.stat-bottom > svg.sparkline { position: static; width: 64px; height: 27px; flex-shrink: 0; opacity: .68; }
.stat-card:nth-child(1) .sparkline { color: #b3a5e2; }
.stat-card:nth-child(2) .sparkline { color: #9ab9e1; }
.stat-card:nth-child(3) .sparkline { color: #dbbd8b; }
.stat-card:nth-child(4) .sparkline { color: #95bfb2; }
.pipeline-heading { padding: 0 0 12px; gap: 12px; }
.pipeline-heading h2 { font-size: 12px; color: #5b5c73; }
.pipeline-heading > span { font-size: 10px; color: #9998aa; margin-right: auto; }
.pipeline-heading .text-button { font-size: 10px; }
.pipeline { padding: 15px 16px; }
.pipeline-step { padding: 5px 7px; gap: 9px; }
.pipeline-dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #f1edf9; color: #a18cc8; }
.pipeline-dot svg { width: 15px; height: 15px; }
.pipeline-step:nth-of-type(2) .pipeline-dot { background: #f0ecfb; color: #a08bcb; }
.pipeline-step:nth-of-type(3) .pipeline-dot { background: #edf2fa; color: #8ba7d0; }
.pipeline-step:nth-of-type(4) .pipeline-dot { background: #fbf3e7; color: #c7a370; }
.pipeline-step:nth-of-type(5) .pipeline-dot { background: #ebf5f0; color: #81ae9c; }
.pipeline-step:nth-of-type(6) .pipeline-dot { background: #f1f2f6; color: #a1a7b7; }
.pipeline-label { font-size: 11px; color: #85869c; }
.pipeline-num { font-size: 15px; display: inline-flex; gap: 4px; align-items: baseline; }
.pipeline-num small { font-size: 10px; font-weight: 400; color: #adaabb; }
.pipeline-connector { width: 10px; height: auto; background: none; margin: 0 3px; color: #d4d0e3; }
.pipeline-connector svg { display: block; width: 11px; height: 11px; }
.panel-head h2 { font-size: 14px; }
.panel-head h2 > .count { padding: 0 5px; line-height: 17px; border-radius: 4px; background: #f3eefb; color: #ab93d1; font-size: 10px; }
.panel-head p.subtext { margin-top: 5px; font-size: 10px; }
.tab { font-size: 11px; color: #8a8c9f; }
.tab .count.red { color: #cd938c; background: #fcf0ed; }
.table-tools .search-field { width: 245px; min-width: 130px; height: 34px; }
.table-tools .search-field input { font-size: 11px; }
.table-tools select.select-control { height: 34px; padding: 0 22px 0 10px; font-size: 11px; outline: none; color: #898a9d; cursor: pointer; }
.table-tools .btn { min-height: 34px; font-size: 11px; }
.order-id .source-tag { margin: 0 0 0 6px; vertical-align: middle; font-size: 9px; }
.customer-name .country, .order-card h3 .country, .drawer-summary .country { display: inline; margin: 0 0 0 5px; color: #aaa7b9; font-size: 9px; font-weight: 400; }
.order-table td .subtext { font-size: 10.5px; }
.order-table td:nth-child(4) .subtext { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.order-table td:last-child { width: 33px; }
.due-date svg { width: 11px; height: 11px; margin: -2px 3px 0 0; }
.partial-tag { display: block; }
.table-footer { color: #9293a6; font-size: 10px; }
.pagination button { font-size: 10px; }
.active-filter-row { display: flex; gap: 11px; align-items: center; padding: 0 20px 12px; }
.active-filter-row .filter-chip { margin: 0; font-size: 11px; }
.active-filter-row .filter-chip button { font-size: 15px; line-height: 1; color: #ab9bc9; }
.selection-bar { display: flex; align-items: center; gap: 15px; margin: 0 20px 12px; padding: 10px 12px; background: #f6f3fe; border: 1px solid #ebe4fb; border-radius: 7px; color: #9684bf; font-size: 11px; }
.selection-bar > span { margin-right: auto; }
.todo-text h4 { font-size: 11px; color: #65667e; }
.todo-text p { font-size: 10px; color: #9698a9; }
.todo-time { font-size: 9px; color: #a49ab7; }
.view-all-todos { display: flex; justify-content: center; width: calc(100% - 36px); margin: 9px 18px 4px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 10px; color: #9788ba; }
.person-info strong { font-size: 11px; }
.person-info small { font-size: 10px; color: #9395a8; }
.workload { font-size: 10px; }
.insight-card h3 { font-size: 12px; }
.insight-card p { font-size: 11px; color: #9299b4; }
.insight-card .text-button { font-size: 10px; }
.customer-card { text-align: left; }
.customer-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.customer-logo.blue { background: #edf3fc; color: #91a7cb; }
.customer-logo.peach, .customer-logo.orange { background: #fbf0e6; color: #c8a488; }
.customer-logo.green, .customer-logo.mint { background: #edf6f0; color: #95b8a1; }
.customer-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #8d8ea4; }
.customer-meta svg { width: 13px; height: 13px; }
.customer-card-stats { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; margin-top: 21px; }
.customer-card-stats > div > span { display: block; font-size: 10px; color: #9697ab; }
.customer-card-stats strong { display: block; font-size: 19px; color: #625d7b; font-weight: 500; margin-top: 4px; }
.customer-card-stats small { font-size: 10px; color: #aaa3bb; font-weight: 400; }
.customer-card-foot { display: flex; align-items: center; gap: 7px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 20px; font-size: 10px; color: #9a93aa; }
.customer-card-foot > svg { width: 14px; height: 14px; margin-left: auto; color: #bcb1d3; }
.kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kanban-head { display: block; padding: 2px 2px 18px; }
.kanban-head > div { display: flex; align-items: center; gap: 7px; }
.kanban-head h2 { font-size: 13px; }
.kanban-head .count { font-size: 11px; background: #e7e6f1; border-radius: 5px; padding: 0 5px; }
.kanban-head p { font-size: 10px; color: #9a97ac; margin-top: 4px; padding-left: 11px; }
.kanban-head .status-dot { color: #b39ad6; }
.kanban-head .status-dot.production { color: #8ea9ce; }
.kanban-head .status-dot.ready { color: #c9b081; }
.kanban-card { padding: 18px; }
.kanban-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.kanban-card-top .order-id { font-size: 11px; color: #9684b9; }
.kanban-card-top > svg { width: 15px; height: 15px; color: #b5aeca; }
.kanban-card-top .status-badge { margin-top: 0; font-size: 9px; }
.kanban-card h3 { font-size: 13px; color: #655e79; }
.kanban-card p { font-size: 11px; color: #9590a5; }
.production-meta { display: flex; justify-content: space-between; margin-top: 19px; color: #a197b1; font-size: 10px; }
.kanban-card .progress-bar { margin-top: 7px; }
.kanban-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 19px; }
.kanban-card-foot .due-date { font-size: 10px; }
.kanban-card-foot .people-pair { gap: 5px; }
.kanban-card-foot small { color: #a094b0; font-size: 10px; }
.shipping-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.shipping-summary > div { display: flex; align-items: center; gap: 12px; padding: 20px 23px; background: #fff; border: 1px solid #eaeaf3; border-radius: 12px; color: #9290a5; font-size: 12px; }
.shipping-summary strong { font-size: 23px; color: #5d5876; font-weight: 600; margin: 0 6px; }
.shipping-summary .stat-icon { width: 35px; height: 35px; }
.shipping-summary .stat-icon svg { width: 17px; height: 17px; }
.shipment-card > .shipment-card-main { display: flex; align-items: center; gap: 13px; flex: 1.5; min-width: 230px; }
.shipment-card-main h3 { font-size: 12px; color: #726d83; margin-top: 5px; }
.shipment-card-main .subtext { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shipment-card-progress { max-width: 220px; }
.shipment-card-progress strong { display: block; font-size: 12px; color: #8a7e9b; font-weight: 500; margin-bottom: 8px; }
.shipment-card-progress .subtext { display: block; margin-top: 7px; font-size: 10px; overflow-wrap: anywhere; }
.shipment-card > div:nth-child(3) { flex: .8; }
.finance-summary .amount-card { padding: 24px; background: #fff; }
.amount-card > span { display: block; font-size: 11px; color: #9590a5; }
.finance-summary .amount-card strong { font-size: 29px; margin-top: 9px; }
.finance-summary strong.green { color: #70a38a; }
.finance-summary strong.orange { color: #c7a16e; }
.finance-summary strong.purple { color: #8b76b5; }
.finance-table .order-table { min-width: 760px; }
.finance-table .order-table td:first-child, .finance-table .order-table th:first-child { width: auto; padding-right: 18px; }
.finance-table .order-table td:nth-child(2), .finance-table .order-table td:nth-child(3), .finance-table .order-table td:nth-child(4) { font-variant-numeric: tabular-nums; font-size: 12px; }
.finance-table strong.warning { font-weight: 500; color: #c5a06d; }
.finance-table td:last-child > svg { width: 18px; height: 18px; color: #a1bba8; }
.settings-card > .panel-head { padding: 0 0 21px; }
.role-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.role-card > .stat-icon { margin-bottom: 15px; }
.role-card h3 { margin-bottom: 2px; }
.role-card > small { display: block; font-size: 10px; color: #aa9cbe; margin-bottom: 11px; }
.role-card p { min-height: 64px; color: #9390a3; }
.role-card .text-button { margin-top: 15px; font-size: 10px; }
.team-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 8px 8px; }
.team-members .team-row { padding: 16px; border-top: 1px solid var(--line); gap: 15px; }
.team-members .team-row > .subtext { font-size: 10px; }
.overlay { z-index: 120; }
.drawer-overlay { z-index: 100; }
.drawer-head > span { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; color: #898096; }
.drawer-head > span svg { width: 17px; height: 17px; color: #ad9bc8; }
.drawer-summary { justify-content: space-between; }
.drawer-summary > div:last-child { text-align: right; }
.drawer-summary > div > strong { display: block; font-weight: 500; font-size: 25px; margin-top: 10px; color: #776187; }
.drawer-summary strong small { font-size: 10px; font-weight: 400; color: #b4a7c0; margin-left: 6px; }
.drawer-summary p { font-size: 12px; color: #9f90ad; margin-top: 4px; }
.drawer-summary .source-tag { margin-top: 0; margin-bottom: 7px; font-size: 9px; }
.drawer-tabs .tab { position: static; }
.drawer-tabs .tab::after { display: none; }
.drawer-foot { justify-content: space-between; }
.drawer-foot > .subtext { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #afa3ba; }
.drawer-foot > .subtext svg { width: 12px; height: 12px; }
.drawer-foot > div { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.detail-label { display: block; }
.detail-section > p.subtext { margin: -9px 0 17px; font-size: 11px; }
.detail-section .section-heading { padding: 0 0 17px; }
.detail-section .section-heading h3 { margin-bottom: 0; }
.detail-section .count { font-size: 10px; font-weight: 400; color: #ac9bbe; }
.product-row > div { flex: 1; min-width: 0; }
.product-row > div > strong { font-size: 12px; font-weight: 500; color: #786682; }
.product-row > div > small { display: block; margin-top: 5px; color: #ad9cb7; font-size: 10px; }
.product-row > strong { color: #8e779c; font-weight: 500; font-size: 13px; }
.delivery-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.delivery-metrics > div > span { display: flex; justify-content: space-between; font-size: 11px; color: #9c8aa9; margin-bottom: 10px; }
.delivery-metrics strong { font-size: 11px; font-weight: 500; color: #a68bba; }
.detail-note { font-size: 12px; line-height: 1.9; color: #9b8ba8; background: #fcfaff; border: 1px solid #f1ebf7; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; overflow-wrap: anywhere; }
.handoff-people { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 12px; padding: 18px; background: #faf7fe; border: 1px solid #eee7f7; border-radius: 9px; margin: 19px 0; }
.handoff-people > div { display: flex; align-items: center; gap: 8px; }
.handoff-people strong { color: #8f789f; font-size: 12px; font-weight: 500; }
.handoff-people small { color: #b3a1bf; font-size: 10px; margin-left: auto; }
.handoff-people > svg { width: 20px; height: 20px; color: #c3acd5; justify-self: center; }
.check-copy small { display: block; font-size: 11px; color: #ac9eb6; margin-top: 5px; line-height: 1.8; overflow-wrap: anywhere; }
.check-status { margin-top: 3px; color: #b399ce; }
.check-status svg { width: 14px; height: 14px; }
.production-progress { display: flex; align-items: baseline; gap: 18px; margin: 16px 0; }
.production-progress > strong { font-size: 38px; font-weight: 600; letter-spacing: -1px; color: #a188b7; }
.production-progress small { font-size: 16px; font-weight: 400; margin-left: 4px; }
.production-progress > span { font-size: 11px; color: #ad9abd; }
.progress-bar.large { height: 8px; margin: 0 0 19px; }
.record-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #eee7f4; border-radius: 9px; margin-top: 14px; background: #fdfbff; }
.record-card > div { min-width: 0; }
.record-card strong { display: block; color: #947b9f; font-weight: 500; font-size: 12px; }
.record-card p { color: #ac98b9; font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.record-card small { display: block; font-size: 10px; color: #bdaac8; margin-top: 5px; }
.record-card .product-icon.green { background: #edf5ef; color: #a0b8a1; }
.timeline-content h3 { color: #8d759a; font-size: 12px; font-weight: 500; margin-bottom: 5px; }
.detail-section > .timeline { margin-top: 23px; }
.form-field { display: block; }
.form-field > span { display: block; color: #878096; font-size: 12px; margin-bottom: 7px; font-weight: 400; }
.form-section-title { font-size: 12px; font-weight: 500; color: #8c7b9c; margin: 25px 0 17px; }
.form-section-title:first-of-type { margin-top: 5px; }
.form-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 19px; margin-top: 23px; border: 1px solid #ede5f7; background: #faf6ff; border-radius: 9px; }
.form-total span { font-size: 11px; color: #a590b5; }
.form-total strong { color: #9879b1; font-size: 24px; font-weight: 500; }
.modal-body form > p.subtext { margin: 0 0 20px; font-size: 11px; }
.modal-body form > .notice { margin-top: 18px; }
.amount-grid:has(> .amount-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.upload-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 165px; padding: 25px; border: 1.5px dashed #d9c9ea; border-radius: 11px; background: #fcf9ff; text-align: center; position: relative; overflow: hidden; cursor: pointer; transition: border-color .2s, background .2s; }
.upload-area:hover { border-color: #ab8cc8; background: #f8f2ff; }
.upload-area > svg { width: 25px; height: 25px; color: #b89bcd; margin-bottom: 5px; }
.upload-area strong { font-size: 12px; font-weight: 500; color: #a68bb9; }
.upload-area > span { color: #c3aecf; font-size: 10px; }
.upload-area input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-area:focus-within { outline: 3px solid #e0d0f0; outline-offset: 3px; }
.import-example { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 19px 0 6px; color: #b29ec1; font-size: 11px; }
.import-example .text-button { color: #b093c3; }
.guide-intro { display: flex; align-items: center; gap: 14px; padding: 3px 0 25px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.guide-intro > .stat-icon { width: 40px; height: 40px; border-radius: 10px; }
.guide-intro .stat-icon svg { width: 20px; height: 20px; }
.guide-intro p { font-size: 13px; line-height: 1.8; color: #9b83a9; }
.guide-intro + .timeline { margin-bottom: 25px; }
.guide-intro ~ .notice { margin-bottom: 0; }
.role-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.role-choice-item { display: flex; align-items: center; gap: 11px; padding: 15px 12px; border: 1px solid #ebe3f4; border-radius: 9px; text-align: left; transition: background .2s, border-color .2s; }
.role-choice-item:hover { background: #fbf7ff; border-color: #d8c5e8; }
.role-choice-item.active { background: #f6efff; border-color: #d1bae5; }
.role-choice-item > svg:first-child { width: 20px; height: 20px; color: #b496c9; }
.role-choice-item > svg:last-child { width: 12px; height: 12px; color: #c5b1d3; margin-left: auto; }
.role-choice-item strong { display: block; font-size: 12px; color: #9c80af; font-weight: 500; }
.role-choice-item small { display: block; color: #baa4c9; font-size: 10px; margin-top: 4px; }
.notification-item { display: flex; align-items: center; gap: 12px; padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line); text-align: left; }
.notification-item:last-child { border-bottom: 0; }
.notification-item > span:nth-child(2) { min-width: 0; flex: 1; }
.notification-item strong { display: block; font-weight: 500; color: #92769e; font-size: 12px; }
.notification-item small { display: block; margin-top: 5px; font-size: 10px; color: #b39ac1; }
.notification-item > svg { width: 14px; height: 14px; color: #c9b2d7; }
.workspace-details { text-align: center; padding: 7px 0 28px; }
.workspace-details .workspace-avatar { width: 55px; height: 55px; font-size: 23px; margin: 0 auto 16px; background: #f3eafb; color: #b395c9; border-radius: 14px; }
.workspace-details h3 { font-size: 18px; color: #9274a6; margin-bottom: 7px; }
.workspace-details p { font-size: 12px; color: #b59ac7; }
.mobile-preview-frame { margin-top: 19px; }

@media (max-height: 850px) and (min-width: 769px) {
  .sidebar { padding-top: 24px; }
  .brand { margin-bottom: 23px; }
  .workspace-switch { margin-bottom: 22px; }
  .sidebar-bottom { padding-top: 22px; }
  .helper-card { display: none; }
}
@media (max-width: 1440px) and (min-width: 1301px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
  .order-table { min-width: 800px; }
  .order-table td, .order-table th { padding-left: 10px; padding-right: 10px; }
  .order-table td:nth-child(4) .subtext { max-width: 145px; }
  .pipeline-step { gap: 7px; }
  .pipeline-dot { width: 27px; height: 27px; }
  .pipeline-label { font-size: 10px; }
  .pipeline-num { font-size: 13px; gap: 2px; }
}
@media (max-width: 1300px) and (min-width: 769px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .right-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
  .right-rail .insight-card { display: none; }
  .right-rail .panel { min-height: 235px; }
  .right-rail .todo-panel { grid-row: span 1; }
  .pipeline-step { gap: 7px; }
  .pipeline-num { font-size: 13px; gap: 2px; }
  .pipeline-label { font-size: 10px; }
  .pipeline-dot { width: 27px; height: 27px; }
  .banner-art { right: 22px; }
}
@media (max-width: 1190px) and (min-width: 769px) {
  .kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  .kanban-column { padding: 10px; }
  .kanban-card { padding: 14px; }
  .kanban-card h3 { font-size: 12px; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-bottom { font-size: 9px; }
  .stat-bottom > svg.sparkline { width: 48px; }
  .stat-value { font-size: 27px; }
  .shipping-summary > div { padding: 17px; gap: 8px; }
  .shipment-card { gap: 20px; }
  .shipment-card > .shipment-card-main { flex-basis: 100%; }
}
@media (max-width: 768px) {
  body { font-size: 13px; }
  .page-head h1 { font-size: 25px; }
  .page-head p { font-size: 12px; color: #8a8b9c; }
  .page-actions .btn { font-size: 11px; min-height: 35px; padding: 6px 10px; }
  .welcome-banner h2 { font-size: 18px; }
  .welcome-banner p { font-size: 11px; max-width: 225px; line-height: 1.9; }
  .banner-art { width: 175px; height: 133px; right: -34px; opacity: .35; }
  .banner-actions { font-size: 10px; gap: 6px; }
  .banner-actions > svg { width: 11px; height: 11px; }
  .integration-label { font-size: 10px; }
  .integration-label b { font-size: 17px; }
  .banner-divider { margin: 0 1px; }
  .stat-top { font-size: 12px; }
  .stat-value { font-size: 27px; margin-top: 12px; }
  .stat-value small { font-size: 10px; }
  .stat-bottom { gap: 5px; font-size: 10px; min-height: 30px; align-items: center; line-height: 1.7; }
  .stat-bottom > svg.sparkline { width: 43px; height: 23px; }
  .stat-icon { width: 25px; height: 25px; }
  .pipeline-heading { gap: 8px; padding-bottom: 10px; }
  .pipeline-heading h2 { font-size: 12px; }
  .pipeline-heading > span { display: none; }
  .pipeline-heading .text-button { font-size: 11px; margin-left: auto; }
  .pipeline { padding: 11px 8px; }
  .pipeline-step { flex-direction: column; min-width: 48px; gap: 5px; padding: 4px 4px; }
  .pipeline-dot { width: 26px; height: 26px; border-radius: 7px; }
  .pipeline-dot svg { width: 13px; height: 13px; }
  .pipeline-label { font-size: 10px; }
  .pipeline-num { font-size: 14px; gap: 3px; }
  .pipeline-num small { font-size: 9px; }
  .pipeline-connector { width: 7px; margin: 0 0 35px; }
  .pipeline-connector svg { width: 8px; height: 8px; }
  .panel-head h2 { font-size: 14px; }
  .panel-head p.subtext { font-size: 11px; line-height: 1.7; }
  .order-tabs { gap: 22px; }
  .tab { font-size: 12px; }
  .tab .count { font-size: 9px; }
  .table-tools .search-field { flex: 1; width: auto; height: 35px; }
  .table-tools .search-field input { font-size: 12px; }
  .table-tools .btn { min-height: 35px; font-size: 12px; }
  .active-filter-row { padding: 0 15px 12px; }
  .selection-bar { margin: 0 15px 12px; }
  .order-card { padding: 18px 0; }
  .order-card .order-id { font-size: 12px; }
  .order-card h3 { font-size: 14px; font-weight: 500; color: #686079; line-height: 1.7; margin-top: 10px; }
  .order-card h3 .country { font-size: 10px; }
  .order-card > .subtext { font-size: 12px; color: #9990a5; line-height: 1.8; }
  .order-card .status-badge { font-size: 11px; }
  .order-card .order-card-bottom { gap: 9px; margin-top: 15px; }
  .order-card .order-card-bottom > strong { font-size: 17px; font-weight: 500; color: #80708d; }
  .order-card .due-date { font-size: 11px; margin-left: auto; }
  .order-card .people-pair { margin-left: 3px; }
  .table-footer { font-size: 10px; }
  .pagination button { font-size: 11px; }
  .todo-text h4 { font-size: 12px; }
  .todo-text p { font-size: 11px; }
  .todo-time { font-size: 10px; }
  .person-info strong { font-size: 12px; }
  .person-info small { font-size: 11px; }
  .workload { font-size: 11px; }
  .right-rail .view-all-todos { font-size: 11px; }
  .insight-card h3 { font-size: 13px; }
  .insight-card p { font-size: 12px; }
  .insight-card .text-button { font-size: 11px; }
  .bottom-nav button { font-size: 10px; }
  .customer-card h3 { font-size: 16px; }
  .customer-meta { font-size: 12px; }
  .customer-card-stats > div > span { font-size: 11px; }
  .customer-card-stats strong { font-size: 21px; }
  .customer-card-foot { font-size: 11px; }
  .kanban { grid-template-columns: 1fr; }
  .kanban-column { padding: 14px; }
  .kanban-head h2 { font-size: 14px; }
  .kanban-head p { font-size: 12px; }
  .kanban-card h3 { font-size: 14px; }
  .kanban-card p { font-size: 12px; }
  .kanban-card-top .order-id { font-size: 12px; }
  .production-meta { font-size: 12px; }
  .kanban-card-foot .due-date { font-size: 11px; }
  .kanban-card-foot small { font-size: 11px; }
  .shipping-summary { gap: 9px; margin-bottom: 17px; }
  .shipping-summary > div { flex-direction: column; gap: 10px; padding: 15px 6px 13px; font-size: 10px; border-radius: 10px; }
  .shipping-summary strong { font-size: 18px; margin: 0 3px; }
  .shipping-summary .stat-icon { width: 30px; height: 30px; }
  .shipment-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 18px; }
  .shipment-card > .shipment-card-main { grid-column: 1 / -1; min-width: 0; gap: 12px; }
  .shipment-card-main h3 { font-size: 13px; }
  .shipment-card-main .subtext { font-size: 11px; max-width: 240px; }
  .shipment-card-progress { min-width: 0; }
  .shipment-card-progress strong { font-size: 12px; }
  .shipment-card-progress .subtext { font-size: 10px; }
  .shipment-card > div:nth-child(3) { text-align: right; }
  .shipment-card > div:nth-child(3) .subtext { font-size: 10px; }
  .shipment-card > .btn { grid-column: 1 / -1; min-height: 36px; font-size: 12px; }
  .finance-summary { gap: 10px; grid-template-columns: 1fr; }
  .finance-summary .amount-card { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .finance-summary .amount-card > span { font-size: 12px; }
  .finance-summary .amount-card strong { font-size: 24px; margin-top: 0; }
  .table-wrap.finance-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .finance-table .order-table { min-width: 740px; font-size: 12px; }
  .finance-table .order-table th { font-size: 11px; }
  .finance-table .order-table td { padding-top: 17px; padding-bottom: 17px; }
  .finance-table .order-table .subtext { font-size: 10px; }
  .finance-table .status-badge { font-size: 10px; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { padding: 20px; }
  .role-card h3 { font-size: 14px; }
  .role-card > small { font-size: 11px; }
  .role-card p { min-height: 0; font-size: 12px; }
  .role-card .text-button { font-size: 12px; }
  .team-members { grid-template-columns: 1fr; }
  .team-members .team-row { padding: 16px 10px; }
  .team-members .team-row > .subtext { font-size: 10px; }
  .drawer-summary > div > strong { font-size: 22px; }
  .drawer-summary p { font-size: 12px; }
  .drawer-tabs button { font-size: 12px; }
  .drawer-foot > .subtext { display: none; }
  .drawer-foot > div { width: 100%; }
  .drawer-foot .btn { font-size: 12px; }
  .drawer-body .subtext { font-size: 12px; }
  .detail-section h3 { font-size: 13px; }
  .detail-label { font-size: 11px; }
  .detail-value { font-size: 12px; }
  .product-row > div > strong { font-size: 12px; }
  .product-row > div > small { font-size: 10px; }
  .product-row > strong { font-size: 12px; }
  .product-row p { font-size: 10px; }
  .delivery-metrics { gap: 12px; }
  .delivery-metrics > div > span, .delivery-metrics strong { font-size: 11px; }
  .detail-note { font-size: 12px; }
  .handoff-people { padding: 14px 10px; gap: 5px; margin: 18px 0; }
  .handoff-people > div { gap: 6px; flex-wrap: wrap; }
  .handoff-people strong { font-size: 12px; }
  .handoff-people small { width: 100%; padding-left: 31px; margin: -4px 0 0; font-size: 10px; }
  .check-copy strong { font-size: 12px; }
  .check-copy small { font-size: 11px; }
  .production-progress { gap: 13px; }
  .production-progress > strong { font-size: 34px; }
  .production-progress > span { font-size: 12px; }
  .record-card { padding: 13px; gap: 10px; }
  .record-card p { font-size: 12px; }
  .record-card small { font-size: 11px; }
  .amount-card > span { font-size: 10px; }
  .amount-card strong { font-size: 16px; }
  .timeline-content h3 { font-size: 13px; }
  .timeline-content p { font-size: 12px; }
  .timeline-content small { font-size: 11px; }
  .form-field > span { font-size: 12px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 13px; }
  .form-section-title { font-size: 13px; }
  .form-total span { font-size: 11px; }
  .form-total strong { font-size: 23px; }
  .notice { font-size: 12px; padding: 13px; }
  .field-help { font-size: 11px; }
  .modal-body form > p.subtext { font-size: 12px; }
  .modal-foot .btn { font-size: 12px; }
  .role-choice { grid-template-columns: 1fr; }
  .role-choice-item { padding: 16px; }
  .role-choice-item strong { font-size: 13px; }
  .role-choice-item small { font-size: 12px; }
  .upload-area strong { font-size: 13px; }
  .upload-area > span { font-size: 12px; }
  .import-example { font-size: 11px; }
  .notification-item strong { font-size: 13px; }
  .notification-item small { font-size: 11px; }
  .workspace-details p { font-size: 12px; }
}
@media (max-width: 360px) {
  .stat-top { font-size: 11px; }
  .stat-value { font-size: 25px; }
  .stat-bottom > svg.sparkline { display: none; }
  .banner-actions { gap: 4px; font-size: 9px; }
  .integration-label { font-size: 9px; }
  .amount-grid:not(.finance-summary) { grid-template-columns: 1fr; }
  .amount-grid:not(.finance-summary) .amount-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .amount-grid:not(.finance-summary) .amount-card strong { margin-top: 0; font-size: 20px; }
}

/* Order collaboration, account scopes, and factory media. */
.account-pill { display: inline-flex; align-items: center; gap: 9px; padding: 5px 8px 5px 5px; border: 1px solid #eae6f5; border-radius: 24px; text-align: left; background: #fff; transition: border-color .16s, background .16s; }
.account-pill:hover { border-color: #c9bff1; background: #fcfaff; }
.account-pill .avatar { width: 30px; height: 30px; font-size: 10px; }
.account-copy { display: block; line-height: 1.45; }
.account-copy strong { display: block; font-size: 11px; font-weight: 500; color: #605b77; }
.account-copy small { display: block; font-size: 9px; color: #9b91ac; }
.account-pill > svg { width: 12px; height: 12px; color: #aca2bc; margin-left: 4px; }
.role-banner.notice { align-items: center; gap: 12px; padding: 14px 17px; margin-bottom: 22px; border-color: #e5def6; background: #f4f1fd; color: #85729f; }
.role-banner-copy { min-width: 0; flex: 1; }
.role-banner-copy strong { display: block; font-size: 12px; font-weight: 500; color: #75608f; }
.role-banner-copy p, .role-banner-copy small { display: block; font-size: 11px; line-height: 1.8; color: #9a88ad; margin-top: 3px; }
.role-banner-copy > span { display: block; font-size: 11px; line-height: 1.8; color: #9a88ad; margin-top: 3px; }
.role-scope { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; background: #fff9; border: 1px solid #e9e0f5; border-radius: 6px; color: #9274ad; font-size: 10px; }
.role-scope svg { width: 12px; height: 12px; }
.account-list { display: grid; gap: 10px; }
.account-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px; text-align: left; border: 1px solid #ebe5f4; border-radius: 10px; background: #fff; transition: background .16s, border-color .16s; }
.account-option:hover { border-color: #cfc1e9; background: #fcfaff; }
.account-option.active, .account-option[aria-pressed="true"] { border-color: #c9b8e8; background: #f7f2ff; }
.account-details { min-width: 0; flex: 1; }
.account-details strong { display: block; font-size: 13px; color: #766187; font-weight: 500; }
.account-details small { display: block; color: #a391b0; font-size: 11px; margin-top: 4px; line-height: 1.7; }
.account-option .status-badge { font-size: 10px; }
.account-option > svg { width: 16px; height: 16px; color: #ab92c9; }
.team-members.account-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 21px 21px; }
.permissions-panel { margin-bottom: 20px; overflow: hidden; }
.permissions-panel .panel-head { padding: 21px 24px 19px; align-items: flex-start; }
.permissions-panel .panel-head p { max-width: 650px; line-height: 1.8; }
.permission-table { display: block; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #dbd3ed transparent; -webkit-overflow-scrolling: touch; }
.permission-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 12px; }
.permission-table th { padding: 13px 21px; background: #faf9fd; color: #8d819e; font-weight: 500; border-top: 1px solid #efebf6; border-bottom: 1px solid #efebf6; text-align: center; white-space: nowrap; }
.permission-table td { padding: 15px 21px; border-bottom: 1px solid #f0edf6; text-align: center; color: #9b8aab; }
.permission-table th:first-child, .permission-table td:first-child { text-align: left; width: 40%; padding-left: 24px; }
.permission-table td:last-child { width: auto; }
.permission-table td:first-child > strong { display: block; color: #786987; font-weight: 500; font-size: 12px; line-height: 1.7; }
.permission-table .order-table td:first-child > p.subtext { white-space: normal; color: #a698b2; font-size: 10px; font-weight: 400; line-height: 1.8; margin-top: 4px; }
.permission-table tr:last-child td { border-bottom: 0; }
.permission-table tbody tr:hover { background: #fdfbff; }
.permission-label { display: block; color: #786987; font-weight: 500; font-size: 12px; line-height: 1.7; }
.permission-label small { display: block; font-size: 10px; font-weight: 400; color: #a698b2; margin-top: 4px; }
.permission-switch { display: inline-flex; align-items: center; justify-content: center; gap: 7px; position: relative; cursor: pointer; padding: 6px 3px; vertical-align: middle; }
.permission-switch > small { font-size: 10px; color: #aa98b7; }
.permission-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.permission-switch > span { display: inline-block; width: 31px; height: 18px; border-radius: 12px; background: #e4dfec; position: relative; transition: background .18s; }
.permission-switch > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #4d3a6620; transition: transform .18s; }
.permission-switch input:checked + span { background: #9f8acc; }
.permission-switch input:checked + span::after { transform: translateX(13px); }
.permission-switch input:focus-visible + span { outline: 3px solid #d3c7ef; outline-offset: 3px; }
.permission-switch:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.permissions-scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.scope-card { min-width: 0; padding: 20px; border: 1px solid #eae5f3; background: #fff; border-radius: 11px; }
.scope-card h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #79668b; }
.scope-card h3 svg { width: 16px; height: 16px; color: #ad96c6; }
.scope-card > .stat-icon { width: 31px; height: 31px; margin-bottom: 13px; }
.scope-card > strong { display: block; margin-top: 5px; font-size: 11px; color: #a187b1; font-weight: 400; }
.scope-card p { margin-top: 9px; font-size: 11px; line-height: 1.9; color: #a190ae; }
.admin-only-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; color: #ae9aba; background: #f7f2fa; border: 1px solid #eee4f4; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.admin-only-tag svg { width: 11px; height: 11px; }
.field-restricted { color: #b5a7bd; font-size: 11px; font-weight: 400; }
.role-notice.notice { margin-top: 0; }
.role-notice small { display: block; color: inherit; font-size: 11px; line-height: 1.8; margin-top: 3px; }
.collab-tabs { overflow-x: auto; justify-content: flex-start; gap: 25px; scrollbar-width: thin; scrollbar-color: #ded6ee transparent; -webkit-overflow-scrolling: touch; }
.collab-tabs button { flex-shrink: 0; white-space: nowrap; }
.customization-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.customization-header h3 { margin-bottom: 0; }
.version-badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 5px; background: #f3eefb; border: 1px solid #e9e0f5; color: #a18aba; font-size: 10px; white-space: nowrap; }
.customization-grid { gap: 12px; }
.customization-field { min-width: 0; padding: 13px 14px; border: 1px solid #efebf5; border-radius: 8px; background: #fcfaff; }
.customization-field.full { grid-column: 1 / -1; }
.customization-grid + .customization-field { margin: 15px 0 18px; }
.customization-grid > .detail-block { padding: 12px 13px; border: 1px solid #efebf5; border-radius: 8px; background: #fcfaff; }
.customization-grid .detail-label { color: #a291b0; }
.customization-grid .detail-value { color: #806b8f; line-height: 1.9; }
.customization-field .detail-label { margin-bottom: 6px; color: #a291b0; }
.customization-field .detail-value { color: #806b8f; font-size: 12px; line-height: 1.9; }
.customization-text { color: #907b9e; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.customization-field .customization-text { margin-top: 5px; }
.collab-section.detail-section h3 { justify-content: flex-start; flex-wrap: wrap; }
.collab-section h3 .text-button { margin-left: auto; font-size: 11px; font-weight: 400; }
.customization-summary { margin-top: 5px; max-width: 235px; color: #a89ab3; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factory-status { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; color: #a59ab2; font-size: 10px; }
.factory-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; background: #edf3fb; color: #8da0bd; font-size: 10px; line-height: 1.6; }
.factory-chip svg { width: 11px; height: 11px; }
.feedback-timeline { display: grid; gap: 14px; }
.feedback-card { min-width: 0; padding: 17px; border: 1px solid #eae4f2; border-radius: 10px; background: #fdfbff; }
.feedback-head { display: flex; align-items: center; gap: 10px; }
.feedback-head .avatar { width: 31px; height: 31px; font-size: 10px; }
.feedback-author { min-width: 0; flex: 1; line-height: 1.6; }
.feedback-author strong { display: block; font-size: 12px; color: #80658f; font-weight: 500; }
.feedback-author small { display: block; color: #b19bbd; font-size: 10px; margin-top: 1px; }
.feedback-head time { color: #b5a4bf; font-size: 10px; white-space: nowrap; margin-left: auto; }
.feedback-author time { display: block; margin: 2px 0 0; }
.feedback-content { padding-left: 41px; margin-top: 12px; min-width: 0; }
.feedback-content > p { color: #947b9f; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #b19dbd; font-size: 10px; margin-top: 11px; }
.feedback-meta .status-badge { font-size: 10px; }
.feedback-content .media-grid { margin-top: 13px; gap: 10px; }
.feedback-compose textarea { min-height: 110px; line-height: 1.8; }
.factory-form-grid { align-items: start; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.media-card { min-width: 0; position: relative; border: 1px solid #eae3f2; border-radius: 9px; overflow: hidden; background: #fff; }
.media-preview { display: flex; align-items: center; justify-content: center; position: relative; aspect-ratio: 4 / 3; width: 100%; min-height: 100px; overflow: hidden; background: #f1edf7; color: #b3a0c5; }
.media-preview img, .media-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-preview video { object-fit: contain; background: #282331; }
.media-preview > span[data-media-thumb] { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; width: 100%; height: 100%; padding: 12px; }
.media-preview > span[data-media-thumb] > svg { width: 27px; height: 27px; color: #b3a0c5; }
.media-preview > span[data-media-thumb] > small { max-width: 100%; color: #ac92bf; font-size: 11px; line-height: 1.8; }
.media-preview > span[data-media-thumb]:has(> img), .media-preview > span[data-media-thumb]:has(> video) { padding: 0; }
.media-preview > span[data-media-thumb] > img, .media-preview > span[data-media-thumb] > video { width: 100%; height: 100%; }
.media-preview > button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; width: 100%; height: 100%; padding: 18px 12px; color: #ac92bf; font-size: 11px; text-align: center; }
.media-preview > button:hover { background: #eae3f4; }
.media-preview > button > svg { width: 28px; height: 28px; }
.media-preview > button > img { position: absolute; inset: 0; }
.media-preview > button > span { position: relative; z-index: 1; }
.media-kind { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; line-height: 1.6; color: #a28bb3; background: #f6f0fb; padding: 2px 6px; border-radius: 4px; }
.media-kind svg { width: 11px; height: 11px; }
.media-preview .media-kind { position: absolute; left: 8px; top: 8px; z-index: 2; color: #8c739f; background: #fffffff0; backdrop-filter: blur(6px); }
.media-info { min-width: 0; padding: 12px 12px 10px; }
.media-info strong { display: block; color: #8b719a; font-size: 11px; font-weight: 500; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-info small { display: block; color: #b3a0bf; font-size: 10px; line-height: 1.8; margin-top: 4px; overflow-wrap: anywhere; }
.media-info .media-kind { margin-top: 6px; }
.media-info > .media-kind:first-child { margin: 0 0 6px; }
.media-info > p { color: #aa94b7; font-size: 11px; line-height: 1.8; margin-top: 8px; overflow-wrap: anywhere; }
.media-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 12px; }
.media-actions .text-button { font-size: 10px; }
.media-actions .text-button.danger { color: #c79098; }
.media-empty.empty-state { padding: 36px 20px; border: 1px dashed #e2d7ed; border-radius: 9px; background: #fdfaff; }
.media-empty.empty-state h3 { display: block; margin-bottom: 7px; color: #9c83ae; font-size: 13px; }
.media-empty.empty-state p { margin-bottom: 16px; color: #b39fc0; line-height: 1.9; }
.media-empty.empty-state > svg { width: 32px; height: 32px; margin-bottom: 11px; color: #c4afd5; }
.media-upload-area { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; min-height: 140px; padding: 22px 18px; border: 1.5px dashed #dac9e9; border-radius: 9px; color: #ac8fc1; background: #fcf9ff; text-align: center; cursor: pointer; transition: background .16s, border-color .16s; }
.media-upload-area:hover { background: #f7f1ff; border-color: #b397d1; }
.media-upload-area:focus-within { outline: 3px solid #e5d5f3; outline-offset: 3px; }
.media-upload-area input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.media-upload-area > svg { width: 25px; height: 25px; margin-bottom: 3px; }
.media-upload-area label, .media-upload-area strong { color: #a183b7; font-size: 12px; font-weight: 500; margin: 0; }
.media-upload-area > span, .media-upload-area small { color: #bfa8cc; font-size: 11px; margin: 0; font-weight: 400; }
#mediaUploadForm .media-upload-area { margin-top: 20px; }
.attachment-kind-select select { cursor: pointer; }
.upload-file-list { display: grid; gap: 8px; margin-top: 15px; }
.upload-file { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #ebe2f3; border-radius: 7px; background: #fcfaff; min-width: 0; }
.upload-file > svg { width: 20px; height: 20px; color: #b397c7; }
.upload-file-copy { min-width: 0; flex: 1; }
.upload-file-copy strong { display: block; color: #987ca8; font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-copy small { display: block; margin-top: 3px; color: #b6a0c3; font-size: 10px; }
.upload-file .icon-button { width: 27px; height: 27px; color: #b9a5c7; }
.upload-file .icon-button svg { width: 14px; height: 14px; }
.upload-progress { margin-top: 15px; color: #a38bb5; font-size: 11px; }
.upload-progress .progress-bar { margin-top: 8px; height: 5px; }
.media-lightbox { display: flex; align-items: center; justify-content: center; min-height: 180px; background: #f6f2fa; border-radius: 9px; overflow: hidden; }
.media-lightbox img, .media-lightbox video { display: block; width: 100%; max-height: 65dvh; object-fit: contain; }
.media-lightbox video { background: #26202e; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.workflow-node { position: relative; padding: 17px; border: 1px solid #ece4f4; border-radius: 9px; background: #fcfaff; }
.workflow-node .circle { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: #a185b7; background: #f0e8f9; font-size: 11px; font-weight: 500; margin-bottom: 12px; }
.workflow-node h4 { color: #977aa6; font-size: 12px; margin-bottom: 5px; }
.workflow-node p { color: #b39cbe; font-size: 11px; line-height: 1.8; }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row > button { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; padding: 0; text-align: left; }
.inbox-row button strong { display: block; font-size: 12px; font-weight: 500; color: #92769f; }
.inbox-row button small { display: block; color: #b29bc0; font-size: 10px; margin-top: 4px; }
.unread-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 5px; color: #9a7fbc; background: #eee6f9; font-size: 9px; line-height: 1; }

@media (max-width: 1190px) and (min-width: 769px) {
  .permissions-scope-grid { gap: 12px; }
  .scope-card { padding: 17px; }
  .account-copy strong { font-size: 10px; }
}
@media (max-width: 768px) {
  .topbar-actions { gap: 10px; }
  .account-pill { gap: 6px; padding: 3px 6px 3px 3px; }
  .account-pill .avatar { width: 27px; height: 27px; font-size: 10px; }
  .account-copy strong { font-size: 10px; }
  .account-copy small { font-size: 9px; }
  .account-pill > svg { display: none; }
  .role-banner.notice { gap: 10px; padding: 13px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
  .role-banner-copy strong { font-size: 12px; }
  .role-banner-copy p, .role-banner-copy small { font-size: 11px; }
  .role-scope { margin-left: 26px; font-size: 10px; }
  .role-banner-copy + .role-scope:first-child { margin-left: 0; }
  .account-option { gap: 10px; padding: 14px 12px; }
  .account-details strong { font-size: 13px; }
  .account-details small { font-size: 11px; }
  .account-option .status-badge { font-size: 10px; }
  .team-members.account-list { grid-template-columns: 1fr; padding: 0 17px 17px; }
  .permissions-panel .panel-head { padding: 18px 18px 16px; flex-wrap: wrap; }
  .permission-table th, .permission-table td { padding: 14px 17px; }
  .permission-table th:first-child, .permission-table td:first-child { padding-left: 18px; }
  .permission-label { font-size: 12px; }
  .permission-label small { font-size: 11px; }
  .permission-table .order-table td:first-child > p.subtext { font-size: 11px; }
  .permissions-scope-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
  .scope-card { padding: 17px 18px; }
  .scope-card h3 { font-size: 13px; }
  .scope-card p { font-size: 12px; line-height: 1.8; margin-top: 6px; }
  .collab-tabs { gap: 23px; padding-left: 20px; padding-right: 20px; }
  .collab-tabs button { min-height: 48px; font-size: 12px; }
  .customization-header { align-items: flex-start; gap: 9px; }
  .version-badge { font-size: 10px; margin-top: 1px; }
  .customization-grid { gap: 10px; }
  .customization-field { padding: 12px; }
  .customization-field .detail-value, .customization-text { font-size: 12px; }
  .collab-section h3 .text-button { font-size: 12px; }
  .customization-summary { max-width: 100%; font-size: 11px; }
  .factory-status, .factory-chip { font-size: 11px; }
  .feedback-card { padding: 14px 12px; }
  .feedback-head { gap: 9px; flex-wrap: wrap; }
  .feedback-author strong { font-size: 12px; }
  .feedback-author small, .feedback-head time { font-size: 10px; }
  .feedback-content { padding-left: 0; margin-top: 13px; }
  .feedback-content > p { font-size: 12px; }
  .feedback-meta { font-size: 11px; }
  .feedback-meta .status-badge { font-size: 10px; }
  .media-grid { gap: 11px; }
  .media-info { padding: 10px 10px 8px; }
  .media-info strong { font-size: 11px; }
  .media-info small { font-size: 10px; }
  .media-actions { padding: 0 10px 11px; gap: 7px; }
  .media-actions .text-button { min-height: 24px; font-size: 11px; }
  .media-preview { min-height: 95px; }
  .media-preview > button { padding: 12px 8px; font-size: 11px; }
  .media-preview > button > svg { width: 25px; height: 25px; }
  .media-kind { font-size: 9px; }
  .media-empty.empty-state { padding: 29px 18px; }
  .media-empty.empty-state p { font-size: 12px; }
  .media-upload-area { min-height: 145px; padding: 20px 15px; }
  .media-upload-area label, .media-upload-area strong { font-size: 13px; }
  .media-upload-area > span, .media-upload-area small { font-size: 11px; }
  .upload-file-copy strong { font-size: 12px; }
  .upload-file-copy small { font-size: 11px; }
  .media-lightbox img, .media-lightbox video { max-height: 60dvh; }
  .factory-form-grid.form-grid { grid-template-columns: 1fr; }
  .role-notice small { font-size: 11px; }
  .workflow-steps { grid-template-columns: 1fr; gap: 10px; }
  .workflow-node { padding: 15px 16px 15px 56px; }
  .workflow-node .circle { position: absolute; left: 16px; top: 16px; margin: 0; }
  .workflow-node h4 { font-size: 13px; }
  .workflow-node p { font-size: 12px; }
  .inbox-row button strong { font-size: 13px; }
  .inbox-row button small { font-size: 11px; }
}
@media (max-width: 380px) {
  .account-copy strong { display: none; }
  .account-copy small { font-size: 10px; }
  .customization-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .feedback-content .media-grid { grid-template-columns: 1fr; }
  .media-preview { aspect-ratio: 16 / 10; }
  .feedback-head > time { margin-left: 40px; margin-top: -5px; }
  .customization-header { flex-wrap: wrap; }
}

/* Store ownership, product lines and current-rate performance estimates. */
.commerce-filter-bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; padding: 16px 20px; margin-bottom: 20px; }
.commerce-filter-bar > label, .commerce-filter-bar .store-filter, .commerce-filter-bar .type-filter { display: grid; gap: 6px; min-width: 160px; color: #9290a5; font-size: 11px; }
.commerce-filter-bar select { display: block; width: 100%; min-height: 36px; max-width: 100%; padding: 7px 30px 7px 11px; border: 1px solid #e7e4f0; border-radius: 7px; background: #fff; color: #726d86; font-size: 12px; cursor: pointer; text-overflow: ellipsis; }
.commerce-filter-bar .filter-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-left: auto; padding: 8px 0; font-size: 11px; color: #a098af; }
.commerce-filter-bar .filter-summary strong { font-size: 13px; font-weight: 500; color: #8775af; }
.store-tree { margin-bottom: 22px; overflow: hidden; }
.store-tree .panel-head { border-bottom: 1px solid #f0edf6; }
.store-tree .panel-head p { margin-top: 4px; font-size: 11px; color: #a39ab1; }
.platform-node { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 21px; background: #fcfaff; border-bottom: 1px solid #f0edf6; }
.platform-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; color: #d99a62; background: #fff2e6; }
.platform-icon svg { width: 20px; height: 20px; }
.platform-node h3 { color: #6f6385; font-size: 13px; }
.platform-node small { display: block; margin-top: 2px; color: #a99ab8; font-size: 10px; }
.platform-node > small { margin-left: auto; }
.store-node { padding: 18px 21px; border-bottom: 1px solid #f1eef6; }
.store-node:last-child { border-bottom: 0; }
.store-node-head { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; }
.store-node-head > svg { width: 16px; height: 16px; color: #aa95c4; }
.store-node-head strong, .store-node-head h3 { color: #82708f; font-size: 12px; font-weight: 500; }
.store-node-head small, .store-node-head > span { color: #b09cbe; font-size: 10px; }
.store-node-head .text-button { margin-left: auto; }
.store-sales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-left: 25px; }
.sales-node { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; padding: 12px; border: 1px solid #eee7f5; border-radius: 8px; background: #fdfbff; text-align: left; transition: border-color .16s, background .16s; }
.sales-node:hover { background: #f7f2fe; border-color: #d9caec; }
.sales-node.active, .sales-node[aria-pressed="true"] { background: #f2ecfc; border-color: #cabcdf; }
.sales-node .avatar { width: 30px; height: 30px; font-size: 10px; }
.sales-node > div, .sales-node > span:not(.avatar) { min-width: 0; flex: 1; }
.sales-node strong { display: block; color: #8d769c; font-size: 11px; font-weight: 500; }
.sales-node small { display: block; margin-top: 3px; color: #b09cbe; font-size: 10px; overflow-wrap: anywhere; }
.store-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.store-summary-card { min-width: 0; padding: 20px; text-align: left; transition: border-color .16s, background .16s; }
.store-summary-card:hover { border-color: #d1c1e4; background: #fdfaff; }
.store-summary-card > .stat-icon { float: right; }
.store-summary-card h3, .store-summary-card > strong:first-child { display: block; color: #7d6d8e; font-size: 12px; font-weight: 500; }
.store-summary-card > p { color: #aa99b8; font-size: 11px; margin-top: 6px; }
.store-summary-card > strong { display: block; margin-top: 12px; color: #8b76a5; font-weight: 500; font-size: 25px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.store-summary-card small { display: block; color: #b39fc0; font-size: 10px; margin-top: 5px; }
.store-summary-card > strong > small { display: inline; margin-left: 3px; font-size: 11px; letter-spacing: 0; }
.order-type-badge { display: inline-flex; align-items: center; flex-shrink: 0; gap: 4px; padding: 2px 6px; border: 1px solid transparent; border-radius: 4px; font-size: 9px; line-height: 1.6; font-weight: 400; vertical-align: middle; color: #9b86b5; background: #f1eafa; white-space: nowrap; }
.order-type-badge.sample { color: #9a83bd; background: #f1eafa; border-color: #e9e0f5; }
.order-type-badge.repeat { color: #6eaa95; background: #edf7f2; border-color: #e0efe8; }
.order-type-badge.bulk { color: #899fc3; background: #eef3fc; border-color: #e2eaf6; }
.order-meta-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 5px; min-width: 0; }
.order-meta-tags .source-tag, .order-meta-tags .order-type-badge { margin: 0; }
.order-money { min-width: 120px; font-variant-numeric: tabular-nums; }
.order-money .original-money { display: flex; align-items: baseline; gap: 4px; }
.order-money > strong.original-money { color: #877194; font-size: 12px; font-weight: 500; }
.order-money .original-money strong { color: #877194; font-size: 12px; font-weight: 500; }
.order-money .original-money small { color: #aa97b5; font-size: 10px; }
.order-money .cny-money { display: block; margin-top: 4px; color: #b39bc5; font-size: 10px; }
.order-money .cny-money strong { font-weight: 400; }
.order-card .order-money .original-money { justify-content: flex-end; }
.fx-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 21px; padding: 15px 20px; background: #fefcff; }
.fx-provider { display: flex; align-items: center; gap: 8px; color: #8a76a0; font-size: 11px; }
.fx-provider > svg { width: 17px; height: 17px; color: #ae98c6; }
.fx-provider strong { font-size: 11px; font-weight: 500; }
.fx-provider small { display: block; color: #b09abe; font-size: 10px; margin-top: 2px; }
.fx-date { color: #b09fc0; font-size: 10px; }
.fx-date > small { display: block; font-size: 10px; margin-top: 4px; }
.fx-rates { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.fx-rates > span { padding: 4px 8px; border-radius: 5px; background: #f6f1fc; color: #a18bb5; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-rates strong { font-weight: 500; color: #8e76a7; }
.fx-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.fx-actions .btn { min-height: 30px; font-size: 10px; padding: 5px 9px; }
.fx-warning { width: 100%; margin-top: -3px; color: #bc9c78; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.fx-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #aaa0b8; white-space: nowrap; }
.fx-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fx-status.fresh { color: #7faa96; }
.fx-status.cached { color: #c3a375; }
.fx-status.missing { color: #c98e95; }
.items-editor { margin: 25px 0; min-width: 0; }
.items-editor-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
.items-editor-head h3 { color: #8b789c; font-size: 12px; font-weight: 500; }
.items-editor-head h3 > small { margin-left: 5px; color: #b09cbe; font-size: 10px; font-weight: 400; }
.items-editor-head .btn, .items-editor-head .text-button { font-size: 11px; }
.items-editor-list { display: grid; gap: 11px; }
.item-edit-row { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 10px; padding: 15px 45px 15px 13px; border: 1px solid #eee7f5; border-radius: 9px; background: #fdfbff; min-width: 0; }
.item-row-index { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: 28px; border-radius: 5px; color: #b19bc1; background: #f0e9f7; font-size: 10px; }
.item-row-fields { display: grid; grid-template-columns: minmax(160px, 2.2fr) minmax(90px, 1.1fr) minmax(65px, .7fr) minmax(90px, 1fr); align-items: start; gap: 10px; min-width: 0; }
.item-row-fields .form-field { min-width: 0; }
.item-row-fields .form-field:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
.item-row-fields .form-field > span, .item-row-fields .form-field label { margin-bottom: 6px; color: #a08caa; font-size: 10px; }
.item-row-fields .form-field input { min-height: 36px; padding: 8px 9px; font-size: 12px; }
.item-row-fields .form-field textarea { min-height: 62px; padding: 8px 9px; font-size: 12px; line-height: 1.7; }
.item-row-actions { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; padding-top: 0; }
.item-row-actions .icon-button { width: 28px; height: 28px; color: #c5a4b2; }
.item-row-actions > .icon-button { position: absolute; top: 41px; right: 9px; }
.item-row-actions .icon-button:hover { color: #bc7c91; background: #fbf0f4; }
.item-row-actions .icon-button svg { width: 15px; height: 15px; }
.line-subtotal { grid-column: 2 / -1; display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 6px; font-size: 10px; color: #ad9abc; font-variant-numeric: tabular-nums; }
.line-subtotal strong { color: #9e82b1; font-size: 12px; font-weight: 500; }
.item-row-actions > .line-subtotal { color: #9e82b1; font-size: 12px; font-weight: 500; }
.item-row-actions > .line-subtotal::before { content: '本款小计'; margin-right: 7px; color: #ad9abc; font-size: 10px; font-weight: 400; }
.order-cost-grid { margin-top: 19px; }
.cost-breakdown { display: grid; gap: 12px; padding: 17px 18px; margin-top: 20px; border: 1px solid #ece4f5; border-radius: 9px; background: #fcf9ff; }
.cost-row { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; min-width: 0; color: #a38aaf; font-size: 11px; }
.cost-row > span { min-width: 0; }
.cost-row > strong { color: #9379a3; font-weight: 500; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cost-row.grand-total { border-top: 1px solid #eae1f4; padding-top: 13px; }
.cost-row.grand-total > span { color: #8f739f; }
.cost-row.grand-total > strong { color: #9573ac; font-size: 22px; letter-spacing: -.4px; }
.cost-row.cny-total { gap: 9px; flex-wrap: wrap; color: #b29dc1; font-size: 10px; }
.cost-row.cny-total strong { color: #a38bb9; font-size: 12px; margin-left: auto; }
.cost-breakdown > small { color: #b29dc1; font-size: 10px; line-height: 1.8; }
.cost-breakdown > .notice { margin: 0; font-size: 11px; }
.form-cny-estimate { margin-top: 9px; color: #b29dc0; font-size: 10px; line-height: 1.8; }
.form-cny-estimate strong { color: #a087b4; font-weight: 500; }
.currency-badge { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; color: #a08bb5; background: #f4eefb; font-size: 9px; line-height: 1.6; letter-spacing: .3px; }
.item-detail-list { display: grid; gap: 10px; }
.item-detail-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #eee7f5; border-radius: 9px; background: #fdfbff; min-width: 0; }
.item-detail-card .product-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; }
.item-detail-copy { min-width: 0; flex: 1; }
.item-detail-copy h4 { color: #8d7798; font-size: 12px; font-weight: 500; line-height: 1.8; overflow-wrap: anywhere; }
.item-detail-copy p { margin-top: 4px; color: #b39fbf; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.item-detail-copy > small { display: block; margin-top: 6px; color: #b49fc1; font-size: 10px; line-height: 1.8; }
.item-detail-numbers { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; padding-top: 2px; font-variant-numeric: tabular-nums; }
.item-detail-numbers strong { color: #9b80ac; font-size: 12px; font-weight: 500; }
.item-detail-numbers small { color: #b49fc3; font-size: 10px; }
.amount-breakdown { padding: 17px; margin-top: 14px; background: #fcf9ff; }
.amount-breakdown > h3 { margin: 0 0 15px; color: #947ca3; font-size: 12px; }
.amount-breakdown:not(.cost-breakdown) .cost-row + .cost-row { margin-top: 11px; }
.amount-breakdown .cost-breakdown { border: 0; padding: 0; margin: 0; background: transparent; }
.finance-currency-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.currency-summary-card { min-width: 0; padding: 19px 20px; border: 1px solid #ebe5f4; border-radius: 11px; background: #fff; }
.currency-summary-card h3, .currency-summary-card > span { color: #a18bb0; font-size: 11px; font-weight: 400; }
.currency-summary-card > strong { display: block; margin-top: 8px; color: #9077a4; font-size: 23px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.currency-summary-card > div { margin-top: 12px; }
.currency-summary-card > div + div { padding-top: 11px; border-top: 1px solid #f0eaf7; }
.currency-summary-card > div > strong { display: block; margin-top: 4px; color: #9077a4; font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.currency-summary-card small, .currency-summary-card p { display: block; margin-top: 6px; color: #b7a1c5; font-size: 10px; line-height: 1.8; }
.shipment-item-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid #f0eaf7; min-width: 0; }
.shipment-item-row:last-child { border-bottom: 0; }
.item-shipping-name { min-width: 0; color: #967fa3; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.item-shipping-name strong { font-size: 12px; font-weight: 500; }
.item-shipping-name > small { display: block; margin-top: 4px; color: #b09bbe; font-size: 10px; }
.shipment-item-row .form-field input { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.shipment-item-row .form-field > span { color: #a691b3; font-size: 10px; }
.shipment-item-row .subtext { color: #b09bbe; font-size: 10px; line-height: 1.8; }
.commerce-hierarchy-note { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; color: #b09bbe; font-size: 10px; line-height: 1.8; }
.commerce-hierarchy-note svg { width: 12px; height: 12px; color: #beaacf; }
.commerce-hierarchy-note.notice { margin: 0 0 20px; }
.store-node-head h3 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.store-node-head h3 svg { width: 15px; height: 15px; color: #af99c5; }
.sales-node > svg { width: 13px; height: 13px; color: #c3b2d1; }
.schema-notice { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 20px; padding: 13px 16px; color: #ab91ba; background: #faf6ff; border-color: #eee4f8; font-size: 11px; line-height: 1.9; }
.schema-notice > svg { width: 15px; height: 15px; margin-top: 3px; }
.schema-notice strong { color: #9576aa; font-weight: 500; }
.store-select, .store-select select { min-width: 0; max-width: 100%; }
.store-select option { color: #7e6a90; }
.source-order-id { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: break-word; font-variant-numeric: tabular-nums; }

@media (max-width: 1190px) and (min-width: 769px) {
  .store-sales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-summary-grid { gap: 12px; }
  .store-summary-card { padding: 17px; }
  .store-summary-card > strong { font-size: 22px; }
  .fx-actions { margin-left: 0; }
}
@media (max-width: 768px) {
  .commerce-filter-bar { gap: 12px; padding: 15px 16px; margin-bottom: 18px; }
  .commerce-filter-bar > label, .commerce-filter-bar .store-filter, .commerce-filter-bar .type-filter { flex: 1; min-width: 110px; font-size: 11px; }
  .commerce-filter-bar select { min-height: 40px; font-size: 12px; padding-left: 9px; }
  .commerce-filter-bar .filter-summary { width: 100%; margin-left: 0; padding: 0; }
  .store-tree { margin-bottom: 18px; }
  .platform-node { padding: 16px; gap: 10px; }
  .platform-node h3 { font-size: 13px; }
  .platform-node small { font-size: 11px; }
  .platform-node > small { width: 100%; margin: -3px 0 0 46px; }
  .store-node { padding: 17px 16px; }
  .store-node-head strong, .store-node-head h3 { font-size: 12px; }
  .store-node-head small, .store-node-head > span { font-size: 11px; }
  .store-sales { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; gap: 9px; }
  .sales-node { gap: 8px; padding: 11px 9px; }
  .sales-node strong { font-size: 12px; }
  .sales-node small { font-size: 10px; }
  .store-summary-grid { grid-template-columns: 1fr; gap: 11px; margin-bottom: 18px; }
  .store-summary-card { padding: 17px 18px; }
  .store-summary-card h3 { font-size: 13px; }
  .store-summary-card > strong { font-size: 26px; }
  .store-summary-card small { font-size: 11px; }
  .order-type-badge { font-size: 10px; padding: 2px 6px; }
  .order-meta-tags { gap: 5px; margin-top: 7px; }
  .order-money .original-money strong { font-size: 13px; }
  .order-money > strong.original-money { font-size: 13px; }
  .order-money .original-money small, .order-money .cny-money { font-size: 11px; }
  .fx-strip { align-items: flex-start; gap: 10px 12px; padding: 15px 16px; margin-bottom: 18px; }
  .fx-provider { flex: 1; font-size: 12px; }
  .fx-provider strong { font-size: 12px; }
  .fx-provider small { font-size: 10px; }
  .fx-rates { width: 100%; gap: 6px; }
  .fx-rates > span { font-size: 11px; padding: 4px 7px; }
  .fx-actions { width: 100%; margin-left: 0; justify-content: flex-start; gap: 8px; }
  .fx-actions .btn { min-height: 34px; font-size: 11px; }
  .fx-date, .fx-warning, .fx-status { font-size: 10px; }
  .items-editor { margin: 22px 0; }
  .items-editor-head h3 { font-size: 13px; }
  .items-editor-head .btn, .items-editor-head .text-button { font-size: 12px; }
  .item-edit-row { grid-template-columns: 21px minmax(0, 1fr); gap: 8px; padding: 14px 39px 14px 10px; }
  .item-row-index { width: 21px; height: 21px; margin-top: 29px; }
  .item-row-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .item-row-fields .form-field:first-child { grid-column: 1 / -1; }
  .item-row-fields .form-field:nth-child(2) { grid-column: 1 / -1; }
  .item-row-fields .form-field:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  .item-row-fields .form-field > span, .item-row-fields .form-field label { font-size: 11px; }
  .item-row-fields .form-field input { min-height: 40px; padding: 9px; font-size: 13px; }
  .item-row-fields .form-field textarea { min-height: 72px; font-size: 13px; }
  .item-row-actions { padding-top: 0; }
  .item-row-actions > .icon-button { right: 6px; top: 41px; }
  .line-subtotal { grid-column: 2 / -1; font-size: 11px; }
  .line-subtotal strong { font-size: 13px; }
  .item-row-actions > .line-subtotal { font-size: 13px; }
  .item-row-actions > .line-subtotal::before { font-size: 11px; }
  .order-cost-grid.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-breakdown { padding: 16px; margin-top: 18px; }
  .cost-row { font-size: 12px; gap: 12px; }
  .cost-row > strong { font-size: 13px; }
  .cost-row.grand-total > strong { font-size: 23px; }
  .cost-row.cny-total, .form-cny-estimate { font-size: 11px; }
  .cost-row.cny-total strong { font-size: 13px; }
  .currency-badge { font-size: 10px; }
  .item-detail-card { gap: 10px; padding: 13px 11px; flex-wrap: wrap; }
  .item-detail-card .product-icon { width: 34px; height: 34px; }
  .item-detail-copy { flex-basis: calc(100% - 44px); }
  .item-detail-copy h4 { font-size: 12px; }
  .item-detail-copy p { font-size: 11px; }
  .item-detail-copy > small { font-size: 11px; }
  .item-detail-numbers { width: calc(100% - 44px); margin-left: 44px; flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 7px; padding-top: 0; }
  .item-detail-numbers strong { font-size: 13px; }
  .item-detail-numbers small { font-size: 11px; }
  .amount-breakdown { padding: 15px; }
  .finance-currency-grid { grid-template-columns: 1fr; gap: 11px; margin-bottom: 18px; }
  .currency-summary-card { padding: 17px 18px; }
  .currency-summary-card h3, .currency-summary-card > span { font-size: 12px; }
  .currency-summary-card > strong { font-size: 25px; }
  .currency-summary-card > div > strong { font-size: 23px; }
  .currency-summary-card small, .currency-summary-card p { font-size: 11px; }
  .shipment-item-row { grid-template-columns: minmax(0, 1fr) 95px; gap: 11px; }
  .shipment-item-row .form-field input { font-size: 13px; min-height: 40px; }
  .shipment-item-row .form-field > span, .shipment-item-row .subtext { font-size: 11px; }
  .item-shipping-name > small { font-size: 11px; }
  .commerce-hierarchy-note { font-size: 11px; }
  .schema-notice { padding: 13px 14px; font-size: 11px; }
}
@media (max-width: 380px) {
  .store-sales { grid-template-columns: 1fr; }
  .commerce-filter-bar > label, .commerce-filter-bar .store-filter, .commerce-filter-bar .type-filter { min-width: 100px; }
  .item-edit-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .item-row-index { display: none; }
  .item-row-actions { grid-column: 1; }
  .line-subtotal { grid-column: 1 / -1; }
  .order-cost-grid.form-grid { grid-template-columns: 1fr; }
}
