:root {
  color-scheme: light;
  --sidebar-width: 216px;
  --canvas: #f5f5f6;
  --surface: #fff;
  --ink: #242629;
  --muted: #70747b;
  --subtle: #878d96;
  --line: #e7e8eb;
  --line-strong: #dcdfe3;
  --accent: #303338;
  --link-hover: #426d9f;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 13px; line-height: 1.55; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: #656a72; text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
svg { display: block; flex-shrink: 0; width: 16px; height: 16px; }
:focus-visible { outline: 2px solid #8c9fb8; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.4; }
h1 { margin-bottom: 7px; font-size: 24px; }
h2 { margin-bottom: 0; font-size: 15px; }
h3 { margin-bottom: 6px; font-size: 13px; }
p { margin-bottom: 10px; }
.skip-link { position: fixed; top: 9px; left: calc(var(--sidebar-width) + 12px); z-index: 120; transform: translateY(-220%); padding: 8px 13px; border: 1px solid #8c9fb8; border-radius: 6px; background: #fff; color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 0 12px 15px; border-right: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 9px; min-height: 75px; padding: 19px 9px 15px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; background: #33363b; color: #fff; font-size: 16px; font-weight: 700; line-height: 1; }
.brand-name { display: block; font-size: 16px; font-weight: 650; line-height: 1.35; white-space: nowrap; }
.brand-caption { display: block; margin-top: 3px; color: #9a9da3; font-size: 10px; line-height: 1.3; letter-spacing: .03em; }
.sidebar-search { display: flex; align-items: center; gap: 5px; min-width: 0; height: 34px; margin-bottom: 15px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #fafafa; }
.sidebar-search input { width: 100%; min-width: 0; height: 32px; padding: 6px 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.sidebar-search button { display: grid; place-items: center; width: 25px; height: 26px; flex-shrink: 0; padding: 4px; border: 0; border-radius: 4px; background: transparent; color: #9a9da4; }
.sidebar-search button:hover { background: #efeff1; color: #5b626c; }
.sidebar-search:focus-within { border-color: #aeb8c7; }
.sidebar nav { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d8dade transparent; }
.nav-group-title { margin: 17px 0 7px; padding: 0 13px; color: #a1a4aa; font-size: 11px; line-height: 1.7; white-space: nowrap; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 38px; margin-bottom: 4px; padding: 9px 13px; border: 0; border-radius: 7px; background: transparent; color: #6b7078; font-size: 13px; line-height: 20px; text-align: left; text-decoration: none; white-space: nowrap; }
.nav-item:hover { background: #f6f6f7; color: #33383f; }
.nav-item[aria-current="page"], .nav-item.active { background: #eeeeef; color: #24282d; font-weight: 600; }
.nav-icon { display: grid; place-items: center; width: 17px; height: 18px; flex: 0 0 17px; }
.nav-icon svg { width: 17px; height: 17px; }
.nav-label { min-width: 0; }
.sidebar-footer { margin-top: auto; padding: 18px 10px 0; color: #92969e; font-size: 11px; line-height: 1.8; }
.version, .sidebar-environment { display: block; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); }
.sidebar-profile strong { display: block; color: #454b53; font-size: 12px; font-weight: 600; }
.sidebar-profile small { display: block; margin-top: 2px; color: #999ea7; font-size: 11px; }
.sidebar-profile .avatar { flex: 0 0 30px; width: 30px; height: 30px; }
.sidebar-footer + .sidebar-profile { margin-top: 15px; }
.main-wrap { min-width: 0; min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 51px; padding: 0 28px; border-bottom: 1px solid #ececef; background: #fafafa; }
.breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; color: #777d85; font-size: 12px; white-space: nowrap; }
.breadcrumb strong, #current-page { color: #545b64; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.save-indicator { display: inline-flex; align-items: center; gap: 6px; color: #90969f; font-size: 11px; white-space: nowrap; }
.save-indicator svg { width: 14px; height: 14px; color: #6b8c74; }
.avatar { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #e0e2e6; border-radius: 50%; background: #ebedf0; color: #747d89; font-size: 11px; font-weight: 600; }
#main { width: 100%; padding: 28px; }
#main:focus { outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.eyebrow { display: none; }
.subtitle { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.page-actions { display: flex; align-items: center; flex-shrink: 0; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 33px; padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: #5a626d; font-size: 12px; font-weight: 400; line-height: 19px; text-decoration: none; white-space: nowrap; }
.button svg { width: 14px; height: 14px; }
.button:hover { border-color: #b7bec8; background: #fafafa; color: #333941; }
.button.primary, .button.blue { border-color: #33373c; background: #33373c; color: #fff; }
.button.primary:hover, .button.blue:hover { border-color: #181d24; background: #181d24; color: #fff; }
.button.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.button.quiet:hover { background: #f1f2f4; color: #3c4653; }
.button.small { min-height: 28px; padding: 3px 10px; font-size: 11px; }
.notice, .demo-notice { display: flex; align-items: center; gap: 8px; min-height: 33px; margin-bottom: 18px; padding: 7px 11px; border: 1px solid #e5e7eb; border-radius: 6px; background: #f0f1f3; color: #8a919c; font-size: 11px; line-height: 1.65; }
.notice[role="alert"] { border-color: #ddcba8; background: #fff8e8; color: #856234; }
.notice svg { color: #8290a2; }
.notice p { margin: 0; }
.notice strong { color: #626e7e; font-weight: 500; }
.demo-notice .tag { flex-shrink: 0; padding: 0 5px; border-color: #dce0e5; background: #e9ecf0; color: #7b8798; line-height: 18px; font-size: 10px; }
.welcome-hero { position: relative; display: flex; align-items: flex-start; min-height: 220px; margin: -2px 0 23px; padding: 28px 0 25px; overflow: hidden; }
.welcome-copy { position: relative; z-index: 2; width: min(520px, 62%); }
.welcome-date { margin: 0 0 12px; color: #767d85; font-size: 12px; letter-spacing: .03em; }
.welcome-copy h1 { margin: 0 0 24px; color: #1f2329; font-size: 34px; font-weight: 650; line-height: 1.35; letter-spacing: -.04em; }
.workspace-search { display: flex; align-items: center; gap: 9px; width: 375px; max-width: 100%; height: 42px; padding: 0 11px 0 14px; border: 1px solid #e2e5e9; border-radius: 8px; background: #fbfbfc; }
.workspace-search > svg { width: 16px; height: 16px; color: #a0a7b1; }
.workspace-search input { width: 100%; min-width: 0; height: 39px; padding: 8px 0; border: 0; outline: 0; background: transparent; color: #4e5968; font-size: 12px; }
.workspace-search button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 27px; padding: 4px 7px; border: 0; border-radius: 5px; background: #f0f2f5; color: #626972; font-size: 11px; white-space: nowrap; }
.workspace-search button:hover { background: #e7ebf0; color: #62738c; }
.workspace-search:focus-within { border-color: #aeb8c8; box-shadow: 0 0 0 2px rgb(100 120 145 / 5%); }
.welcome-art { position: absolute; top: 0; right: 0; z-index: 1; display: block; width: 380px; height: 220px; max-width: 45%; pointer-events: none; color: #a2adb8; }
.welcome-art svg { width: 100%; height: 100%; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
.home-section-heading h2 { color: #323840; font-size: 15px; font-weight: 600; }
.world-clocks { margin-bottom: 27px; }
.world-clock-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.world-clock-card { min-width: 0; padding: 17px 18px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.world-clock-place { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; min-height: 20px; }
.world-clock-place h3 { margin: 0; color: #42474f; font-size: 13px; font-weight: 600; }
.world-clock-place > span { color: var(--muted); font-size: 11px; }
.world-clock-time { display: block; margin: 12px 0 9px; color: #30343b; font-size: 27px; font-weight: 500; line-height: 1.2; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.world-clock-calendar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; color: #707780; font-size: 11px; }
.world-clock-day { padding: 1px 5px; border-radius: 4px; background: #f0f2f5; color: #697483; font-size: 10px; }
.world-clock-difference { margin: 7px 0 0; color: #7d838b; font-size: 11px; }
@media (max-width: 1180px) {
  .world-clock-card { padding: 15px 12px; }
  .world-clock-place { flex-direction: column; gap: 2px; min-height: 39px; }
  .world-clock-time { font-size: 23px; }
}
@media (max-width: 960px) {
  .world-clock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .world-clocks { margin-bottom: 21px; }
  .world-clock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .world-clock-card { padding: 13px 11px; }
  .world-clock-time { font-size: clamp(18px, 5.6vw, 22px); }
  .world-clocks .home-section-heading { flex-wrap: wrap; gap: 5px; }
}
.app-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 27px; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 112px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: var(--ink); text-align: left; text-decoration: none; box-shadow: 0 1px 2px rgb(25 35 50 / 2%); }
.app-card:hover { border-color: #cbd2db; background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgb(25 35 50 / 4%); }
.app-icon { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 10px; border-radius: 8px; background: #edf1f8; color: #7a9ccb; }
.app-icon svg { width: 19px; height: 19px; stroke-width: 1.8; }
.app-icon[data-tone="orange"] { background: #ffebe0; color: #e99a70; }
.app-icon[data-tone="green"] { background: #e4f5e9; color: #72ba8f; }
.app-icon[data-tone="blue"] { background: #e5f2fd; color: #78b5e3; }
.app-icon[data-tone="purple"] { background: #eeeafe; color: #a496dd; }
.app-icon[data-tone="amber"] { background: #fff2d8; color: #d8b265; }
.app-icon[data-tone="teal"] { background: #e3f5ef; color: #71baa3; }
.app-card strong { display: block; width: 100%; margin-bottom: 3px; color: #353d48; font-size: 12px; font-weight: 600; line-height: 1.55; }
.app-card small { display: block; width: 100%; color: #737b85; font-size: 11px; line-height: 1.5; }
.home-metrics, .erp-kpis, .stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.stat-card { min-width: 0; min-height: 78px; padding: 14px 20px; border: 0; border-right: 1px solid #eceef1; border-radius: 0; background: #fff; color: var(--ink); text-align: left; }
.stat-card:last-child { border-right: 0; }
button.stat-card:hover { background: #fafbfc; }
button.stat-card[aria-pressed="true"] { background: #f4f6f8; }
.stat-label { display: block; color: #797f88; font-size: 11px; }
.stat-value { display: block; margin: 2px 0 0; color: #3e434a; font-size: 23px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat-note { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: #9299a3; font-size: 11px; }
.stat-note svg { width: 12px; height: 12px; }
.panel { min-width: 0; margin-bottom: 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 16px 19px; border-bottom: 1px solid #eff0f3; }
.panel-heading h2 { color: #3e4753; font-size: 14px; font-weight: 600; }
.panel-heading .subtle { margin-top: 3px; }
.panel-heading + .table-wrap { border: 0; border-radius: 0; }
.text-link, .operation-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: #626a74; font-size: 12px; line-height: 1.7; text-decoration: none; white-space: nowrap; }
.text-link:hover, .operation-link:hover { color: var(--link-hover); }
.operation-link + .operation-link { margin-left: 12px; }
.erp-status-tabs, .segmented { display: flex; align-items: stretch; gap: 0; min-height: 43px; padding: 0 14px; overflow-x: auto; border-bottom: 1px solid #eff0f3; background: #fff; }
.erp-status-tabs .segmented { padding: 0; border-bottom: 0; }
.segmented button, .erp-status-tabs > button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; min-height: 43px; padding: 9px 13px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #8b929c; font-size: 12px; line-height: 22px; white-space: nowrap; }
.segmented button:hover, .erp-status-tabs > button:hover { color: #505a68; }
.segmented button[aria-pressed="true"], .erp-status-tabs > button[aria-pressed="true"] { border-bottom-color: #697483; color: #4b5665; font-weight: 500; }
.erp-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 19px; }
.compact-list { margin: 0; padding: 0 19px; list-style: none; }
.compact-item, .system-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 45px; padding: 11px 0; border-bottom: 1px solid #eff1f4; font-size: 12px; }
.compact-item:last-child, .system-row:last-child { border-bottom: 0; }
.compact-item strong { font-size: 12px; font-weight: 500; }
.compact-item p, .system-row p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.system-row { color: #646e7c; }
.system-state { flex-shrink: 0; padding: 1px 7px; border: 1px solid #e4e8ed; border-radius: 4px; background: #f8f9fb; color: #8b95a2; font-size: 11px; white-space: nowrap; }
.system-state.ready { border-color: #dbe9df; background: #f3f8f4; color: #568366; }
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.toolbar > label, .toolbar .filter-group > label { display: flex; align-items: center; gap: 8px; min-width: 0; color: #697280; font-size: 12px; }
.panel > .toolbar { margin-bottom: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.toolbar > label.search-field { align-items: center; flex-direction: row; }
.filter-label { flex-shrink: 0; color: #77808d; font-size: 12px; white-space: nowrap; }
.search-field { display: flex; align-items: center; gap: 7px; width: 245px; min-width: 160px; max-width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.search-field svg { width: 14px; height: 14px; color: #8b97a7; }
.search-field input { width: 100%; min-width: 0; height: 32px; padding: 5px 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-field:focus-within { border-color: #a0aec2; }
input::placeholder, textarea::placeholder { color: #9099a6; opacity: 1; }
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.toolbar select { min-width: 108px; max-width: 100%; height: 34px; padding: 5px 25px 5px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: #697686; font-size: 12px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 41px; padding: 9px 18px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #fff; }
.results-heading h2 { font-size: 14px; }
.panel > .results-heading { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.results-heading .count { margin-left: 0; padding: 0; background: transparent; color: #778393; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; min-width: 740px; border-collapse: collapse; color: var(--ink); text-align: left; font-size: 12px; }
.summary-table { min-width: 820px; }
th { height: 40px; padding: 9px 17px; border-bottom: 1px solid #eef0f3; background: #fafbfc; color: #7b8593; font-size: 11px; font-weight: 500; white-space: nowrap; }
td { height: 49px; padding: 11px 17px; border-bottom: 1px solid #f0f2f5; color: #646b75; font-size: 12px; line-height: 1.65; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfd; }
.erp-bottom-grid table { min-width: 0; }
.erp-bottom-grid table th, .erp-bottom-grid table td { height: 45px; padding-top: 11px; padding-bottom: 11px; }
.erp-bottom-grid table th:nth-child(n+2), .erp-bottom-grid table td:nth-child(n+2) { width: 89px; white-space: nowrap; }
.panel #home-tasks > .table-wrap, .panel #task-results > .table-wrap { border: 0; border-radius: 0; }
.summary-table th:first-child, .summary-table td:first-child { width: 55px; text-align: center; color: #969fac; }
.summary-table td:nth-child(4), .summary-table td:nth-child(5), .summary-table td:nth-child(6), .summary-table td:nth-child(7) { white-space: nowrap; }
.summary-table .subject-cell { max-width: 400px; }
.summary-table .table-title { display: block; overflow: hidden; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.summary-table .task-description { overflow: hidden; margin: 2px 0 0; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.row-number { width: 55px; color: #909cab; text-align: center; }
.table-footer { padding: 11px 18px; border-top: 1px solid #eef1f5; color: #8996a7; font-size: 11px; line-height: 1.6; }
.table-title { display: inline; max-width: 430px; margin: 0; padding: 0; border: 0; background: transparent; color: #646b75; font-size: 12px; font-weight: 400; line-height: 1.65; text-align: left; text-decoration: none; }
button.table-title:hover, a.table-title:hover { color: var(--link-hover); text-decoration: underline; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 1px 7px; border: 1px solid #e3e7ed; border-radius: 4px; background: #f7f8fa; color: #7b899f; font-size: 11px; line-height: 19px; white-space: nowrap; }
.status-pill[data-status="进行中"], .status-pill[data-status="处理中"] { border-color: #d4dfeb; background: #f0f4f9; color: #536f94; }
.status-pill[data-status="待验收"], .status-pill[data-status="待确认"] { border-color: #e9dec6; background: #faf7ef; color: #8b733e; }
.status-pill[data-status="受阻"], .status-pill[data-status="已逾期"] { border-color: #ecd6d2; background: #fcf4f2; color: #a4645a; }
.status-pill[data-status="已完成"] { border-color: #d6e6dc; background: #f2f8f4; color: #62866f; }
.owner-chip { display: inline-flex; align-items: center; gap: 5px; color: #646b75; font-size: 12px; white-space: nowrap; }
.owner-chip > span[aria-hidden="true"] { display: inline-grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: #f0f3f8; color: #7f91ac; font-size: 10px; line-height: 1; }
.waiting-text { display: block; margin-top: 2px; color: #8f7b52; font-size: 12px; line-height: 1.65; }
.task-date { color: #646b75; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-date.overdue { color: #a0655b; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #8b9bb1; font-size: 12px; line-height: 1.6; }
.task-description { display: block; margin: 3px 0 0; color: #646b75; font-size: 12px; line-height: 1.7; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 235px; padding: 35px 20px; color: #8b99ad; text-align: center; }
.empty-state > svg { width: 34px; height: 34px; margin-bottom: 15px; padding: 8px; border-radius: 50%; background: #f0f2f5; color: #8b96a7; stroke-width: 1.6; }
.empty-state > strong { display: block; margin-bottom: 7px; color: #667a96; font-size: 13px; font-weight: 500; }
.empty-state p { max-width: 450px; margin: 0 0 13px; font-size: 12px; line-height: 1.8; }
.tag { display: inline-flex; align-items: center; padding: 1px 6px; border: 1px solid #e2e7ef; border-radius: 4px; background: #f8fafd; color: #7f91ac; font-size: 11px; line-height: 19px; white-space: nowrap; }
.tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.tool-name { display: inline-flex; align-items: center; gap: 8px; min-width: 145px; color: #646b75; white-space: nowrap; }
.tool-name svg { width: 17px; height: 17px; color: #889fbe; }
.tool-name strong { font-weight: 500; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 23px 0 13px; }
.subtle { color: #8596b0; font-size: 12px; line-height: 1.7; }
.muted { color: var(--muted); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; margin-left: 4px; padding: 0 4px; border-radius: 4px; background: #f0f4fa; color: #819bbf; font-size: 12px; font-variant-numeric: tabular-nums; }
.settings-note { padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfc; color: #646b75; font-size: 12px; line-height: 1.8; }
.settings-note p:last-child { margin-bottom: 0; }
.inline-feedback { margin: 10px 0; padding: 8px 11px; border: 1px solid #e2e7ef; border-radius: 6px; background: #f5f8fc; color: #728fb7; font-size: 12px; }
.page-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 28px 21px; color: #909fb7; font-size: 11px; line-height: 1.7; }
dialog.task-dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid #e0e6ef; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 16px 60px rgb(40 50 70 / 16%); }
dialog.task-dialog:not([open]) { display: none; }
dialog.task-dialog::backdrop { background: rgb(30 36 46 / 32%); }
.task-dialog form, dialog.info-dialog { padding: 22px 24px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin-bottom: 4px; font-size: 18px; }
.dialog-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.icon-button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #8699b5; font-size: 18px; }
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover { background: #f0f3f7; color: #6c83a5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 16px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: #646b75; font-size: 12px; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #dce4ef; border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8da3c2; }
.field textarea { display: block; min-height: 90px; resize: vertical; }
.field input[readonly], .field textarea[readonly] { background: #f7f9fc; color: #758ead; }
.field .subtle { display: block; margin-top: 4px; font-size: 11px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.dialog-actions > .subtle { margin-right: auto; }
.form-error { margin: 12px 0 0; color: #ab645c; font-size: 12px; line-height: 1.7; }
.info-body h3 { margin: 16px 0 6px; color: #5d7ba5; font-size: 13px; font-weight: 500; }
.info-body h3:first-child { margin-top: 0; }
.info-body p { color: #646b75; font-size: 13px; line-height: 1.8; }
.info-body .settings-note { margin-top: 16px; padding: 10px 12px; }
.toast { position: fixed; top: 65px; left: calc(50% + var(--sidebar-width) / 2); z-index: 100; max-width: min(500px, calc(100vw - 32px)); transform: translateX(-50%); padding: 10px 17px; border: 1px solid #e0e6ee; border-radius: 8px; background: #fff; color: #646b75; box-shadow: 0 5px 19px rgb(35 50 75 / 10%); font-size: 12px; line-height: 1.7; text-align: center; }
.toast:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-card { min-height: 111px; }
  .welcome-art { max-width: 42%; }
  .welcome-copy { width: 60%; }
  .toolbar { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .topbar { padding-right: 20px; padding-left: 20px; }
  #main { padding: 22px 20px; }
  .welcome-hero { min-height: 210px; padding-top: 23px; }
  .welcome-copy h1 { font-size: 29px; }
  .welcome-copy { width: 74%; }
  .welcome-art { right: -40px; width: 290px; opacity: .45; }
  .erp-bottom-grid { grid-template-columns: 1fr; gap: 0; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .home-metrics, .erp-kpis, .stats-grid { grid-template-columns: repeat(5, minmax(90px, 1fr)); overflow-x: auto; }
  .stat-card { padding: 13px; }
  .filter-group { gap: 10px; }
  .topbar-actions { gap: 10px; }
}
@media (max-width: 650px) {
  :root { --sidebar-width: 72px; }
  .sidebar { padding-right: 6px; padding-left: 6px; }
  .brand { justify-content: center; min-height: 59px; padding: 14px 5px; }
  .brand > span:not(.brand-mark), .brand > div:not(.brand-mark), .brand-name, .brand-caption, .nav-group-title, .sidebar-search, .sidebar-footer { display: none; }
  .sidebar nav { overflow-x: hidden; }
  .nav-item { flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 61px; padding: 10px 3px; font-size: 10px; line-height: 1.4; text-align: center; }
  .nav-label { display: block; max-width: 55px; font-size: 10px; white-space: normal; }
  .sidebar-profile { justify-content: center; padding: 14px 0 0; }
  .sidebar-profile > :not(.avatar) { display: none; }
  .topbar { min-height: 49px; padding: 0 13px; gap: 8px; }
  .breadcrumb { gap: 6px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
  .breadcrumb > span:first-child { display: none; }
  .save-indicator { display: none; }
  .avatar { width: 25px; height: 25px; }
  #main { padding: 17px 14px; }
  .welcome-hero { min-height: 190px; padding: 17px 0 20px; margin-bottom: 17px; }
  .welcome-copy { width: 100%; }
  .welcome-date { margin-bottom: 10px; font-size: 11px; }
  .welcome-copy h1 { margin-bottom: 20px; font-size: 28px; }
  .welcome-art { display: none; }
  .workspace-search { width: 100%; height: 41px; }
  .workspace-search input { font-size: 16px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 21px; }
  .app-card { min-height: 114px; padding: 14px 12px; }
  .app-card strong { font-size: 12px; }
  .app-card small { font-size: 10px; }
  .home-section-heading { margin-bottom: 11px; }
  h1 { font-size: 22px; }
  .page-heading { margin-bottom: 17px; }
  .button { padding-left: 10px; padding-right: 10px; }
  .notice, .demo-notice { align-items: flex-start; padding: 7px 9px; margin-bottom: 16px; line-height: 1.7; }
  .home-metrics, .erp-kpis, .stats-grid { grid-template-columns: repeat(5, 96px); margin-bottom: 17px; }
  .stat-card { min-height: 75px; padding: 12px; }
  .panel { margin-bottom: 17px; }
  .panel-heading { padding: 13px 14px; }
  .segmented, .erp-status-tabs { padding-left: 5px; padding-right: 5px; }
  .segmented button, .erp-status-tabs > button { padding-left: 10px; padding-right: 10px; }
  .toolbar { gap: 10px; padding: 14px; }
  .toolbar > label, .toolbar .filter-group > label { align-items: flex-start; flex-direction: column; gap: 5px; }
  .toolbar > label { width: 100%; }
  .toolbar > label.search-field { flex-direction: row; align-items: center; }
  .search-field { width: 100%; }
  .filter-group { width: 100%; gap: 10px; }
  .filter-group > label { flex: 1; }
  .toolbar select { width: 100%; min-width: 82px; padding-right: 18px; }
  .toolbar input, .toolbar select { font-size: 16px; }
  .results-heading { padding: 9px 14px; }
  th, td { padding-left: 14px; padding-right: 14px; }
  .compact-list { padding-right: 14px; padding-left: 14px; }
  .compact-item, .system-row { align-items: flex-start; gap: 9px; }
  .empty-state { min-height: 220px; padding: 26px 16px; }
  .page-footer { padding: 0 14px 16px; font-size: 10px; }
  .toast { top: 61px; max-width: calc(100vw - 94px); padding: 9px 12px; }
  dialog.task-dialog { width: calc(100vw - 26px); max-height: calc(100dvh - 26px); }
  .task-dialog form, dialog.info-dialog { padding: 18px; }
  .form-grid { gap: 13px 12px; }
  .field input, .field select, .field textarea { font-size: 16px; }
}
@media (max-width: 420px) {
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .page-actions { width: 100%; }
  .welcome-copy h1 { font-size: 25px; }
  .compact-item, .system-row { flex-wrap: wrap; }
  .topbar .avatar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Project progress: compact tables and detail fields. */
.project-list-table, .project-task-table { width: 100%; min-width: 880px; table-layout: fixed; }
.project-list-table th:nth-child(1) { width: 24%; }
.project-list-table th:nth-child(2) { width: 11%; }
.project-list-table th:nth-child(3) { width: 12%; }
.project-list-table th:nth-child(4) { width: 13%; }
.project-list-table th:nth-child(5) { width: 29%; }
.project-list-table th:nth-child(6) { width: 11%; }
.project-list-table td, .project-task-table td { vertical-align: top; overflow-wrap: anywhere; }
.project-name { display: inline-block; max-width: 100%; padding: 0; border: 0; background: transparent; color: #414b59; font-size: 12px; font-weight: 500; line-height: 1.75; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.project-name:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
.project-update { margin: 0; color: #747d8a; font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-detail-heading { align-items: flex-start; }
.project-detail-heading > div { min-width: 0; }
.project-detail-heading h1 { overflow-wrap: anywhere; }
.project-back { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-bottom: 10px; padding: 0; border: 0; background: transparent; color: #8b95a4; font-size: 12px; line-height: 1.7; text-align: left; }
.project-back:hover { color: var(--link-hover); }
.project-back svg { width: 14px; height: 14px; }
.project-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.project-fact { min-width: 0; padding: 14px 18px; border-right: 1px solid var(--line); }
.project-fact:last-child { border-right: 0; }
.project-fact > span { display: block; margin-bottom: 5px; color: #8a95a5; font-size: 11px; line-height: 1.6; }
.project-fact > strong { display: block; color: #535f72; font-size: 13px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.project-latest { margin: 0; padding: 15px 19px 17px; color: #707e92; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-task-table th:nth-child(1) { width: 25%; }
.project-task-table th:nth-child(2) { width: 11%; }
.project-task-table th:nth-child(3) { width: 13%; }
.project-task-table th:nth-child(4) { width: 13%; }
.project-task-table th:nth-child(5) { width: 27%; }
.project-task-table th:nth-child(6) { width: 11%; }
.project-task-note { margin: 0; color: #7c8ba0; font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-task-status { width: 100%; min-width: 78px; max-width: 116px; min-height: 29px; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: #74839a; font-size: 12px; line-height: 1.6; }
.project-task-status:hover { border-color: #adb9c9; }
.project-task-status:focus { border-color: #8da3c2; }
.project-overdue { display: block; margin-top: 4px; color: #aa824a; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.project-task-count { display: block; margin-top: 3px; color: #8f9eb4; font-size: 12px; font-weight: 400; line-height: 1.7; }
@media (max-width: 900px) {
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-fact:nth-child(2n) { border-right: 0; }
  .project-fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 650px) {
  .project-detail-heading { gap: 12px; }
  .project-detail-heading .page-actions { width: 100%; }
  .project-facts { margin-bottom: 16px; }
  .project-fact { padding: 12px; }
  .project-fact > strong { font-size: 12px; }
  .project-latest { padding: 13px 14px 15px; font-size: 12px; }
  .project-task-status { font-size: 16px; }
  .project-task-table { min-width: 930px; }
}

/* Mail snapshots and local read marks. */
.mail-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -3px 0 18px; color: var(--muted); font-size: 11px; }
.mail-scope strong { font-weight: 500; color: #59626e; }
.mail-scope-dot { width: 6px; height: 6px; border-radius: 50%; background: #7c8999; }
.mail-snapshot-time { margin-left: auto; color: #9399a1; }
.mail-accounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }
.mail-account { min-width: 0; padding: 15px 17px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.mail-account > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; }
.mail-account strong { color: #454b54; font-size: 12px; font-weight: 600; }
.mail-account p { margin: 6px 0 8px; color: #7c828c; font-size: 11px; overflow-wrap: anywhere; }
.mail-account small { color: #969ba4; font-size: 10px; }
.mail-account-state { color: #7b8b7f; font-size: 10px; }
.mail-account-error { color: #a66b51; }
.mail-panel { overflow: hidden; }
.mail-tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 0 19px; border-bottom: 1px solid var(--line); }
.mail-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 53px; padding: 0 1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9297a0; font-size: 12px; }
.mail-tab span { padding: 0 6px; border-radius: 4px; background: #f2f3f5; color: #969da6; font-size: 10px; }
.mail-tab.active { border-bottom-color: #64758a; color: #36475b; font-weight: 600; }
.mail-tab.active span { background: #edf1f6; color: #71829a; }
.mail-toolbar { display: flex; align-items: center; gap: 9px; padding: 15px 18px; }
.mail-toolbar select, .mail-toolbar input { height: 33px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; font-size: 11px; }
.mail-toolbar input { width: 245px; min-width: 100px; }
.mail-toolbar > span { margin-left: auto; color: #a0a5ad; font-size: 10px; }
.mail-table { width: 100%; min-width: 870px; table-layout: fixed; }
.mail-table th:nth-child(1) { width: 12%; }
.mail-table th:nth-child(2) { width: 15%; }
.mail-table th:nth-child(3) { width: 35%; }
.mail-table th:nth-child(4) { width: 17%; }
.mail-table th:nth-child(5) { width: 9%; }
.mail-table th:nth-child(6) { width: 12%; }
.mail-table td { vertical-align: top; padding-top: 17px; padding-bottom: 17px; overflow-wrap: anywhere; }
.mail-time { color: #9197a0; font-size: 11px; }
.mail-subject { max-width: 100%; text-align: left; font-weight: 500; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
.mail-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 6px 0 0; color: #969ca5; font-size: 11px; line-height: 1.7; }
.mail-badge { display: inline-block; margin: 0 4px 4px 0; padding: 0 5px; border: 1px solid #e8e9ec; border-radius: 4px; color: #9299a3; font-size: 10px; line-height: 18px; }
.mail-important { border-color: #e7d9c8; background: #fbf7f0; color: #a48054; }
.mail-reason { margin: 1px 0 0; color: #828a95; font-size: 11px; }
.mail-status { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #f2f3f5; color: #90969f; font-size: 10px; white-space: nowrap; }
.mail-status[data-read="false"] { background: #edf2f8; color: #59779c; }
.mail-is-unread .mail-subject { color: #465f7f; font-weight: 600; }
.mail-is-read .mail-subject { color: #7e8792; }
.mail-row-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; white-space: nowrap; }
.mail-footnote { margin: 13px 1px 0; color: #969da7; font-size: 10px; line-height: 1.8; }
.mail-empty { padding: 58px 22px; text-align: center; }
.mail-empty strong { color: #6c7683; font-size: 13px; font-weight: 500; }
.mail-empty p { margin: 8px 0 0; color: #9aA1ab; font-size: 11px; }
html:has(.mail-dialog[open]), body:has(.mail-dialog[open]) { overflow: hidden; }
.mail-dialog { width: min(960px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); padding: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-padding-top: 82px; border: 1px solid #e0e3e7; border-radius: 12px; color: #2d333b; background: #fff; box-shadow: 0 24px 90px rgb(20 30 45 / 18%); scrollbar-width: thin; scrollbar-color: #d2d6dc transparent; }
.mail-dialog::backdrop { background: rgb(24 31 41 / 34%); }
.mail-reader-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 65px; padding: 12px 24px; border-bottom: 1px solid #eceef1; background: #fff; }
.mail-reader-label { color: #777e88; font-size: 12px; white-space: nowrap; }
.mail-reader-actions { display: flex; align-items: center; gap: 12px; }
.mail-reader-actions .mail-status { padding: 3px 8px; font-size: 11px; }
.mail-reader-actions .button { min-height: 32px; }
.mail-reader-divider { width: 1px; height: 18px; background: #e8eaed; }
.mail-reader-close { gap: 5px; padding-right: 8px; padding-left: 8px; }
.mail-reader-close svg { width: 15px; height: 15px; }
.mail-reader-content { padding: 35px 48px 28px; }
.mail-reader-source { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 15px; color: #9097a1; font-size: 12px; overflow-wrap: anywhere; }
.mail-reader-store { color: #606b7b; font-weight: 500; }
.mail-reader-heading h2 { margin: 0 0 22px; color: #252a31; font-size: 24px; font-weight: 600; line-height: 1.5; letter-spacing: -.025em; overflow-wrap: anywhere; }
.mail-metadata { display: grid; gap: 8px; margin: 0; font-size: 12px; line-height: 1.75; }
.mail-metadata > div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
.mail-metadata dt { color: #959ca5; }
.mail-metadata dd { margin: 0; color: #69727f; overflow-wrap: anywhere; }
.mail-reader-timezone { display: inline-block; margin-left: 10px; color: #a0a6af; font-size: 11px; }
.mail-advice { margin-top: 25px; padding: 13px 16px; border-left: 2px solid #b5c3d4; background: #f7f9fb; }
.mail-advice-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; color: #7d8896; font-size: 11px; }
.mail-advice strong { color: #53657b; font-size: 12px; font-weight: 500; }
.mail-advice-review { color: #89939f; }
.mail-advice p { margin: 6px 0 0; color: #6c7888; font-size: 12px; line-height: 1.8; }
.mail-body { margin: 30px 0 36px; }
.mail-body-copy { color: #353d48; font-family: inherit; font-size: 14px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-body-notice { margin: 0 0 20px; color: #8c7456; font-size: 12px; line-height: 1.8; }
.mail-reader-footer { padding-top: 18px; border-top: 1px solid #eceef1; }
.mail-reader-footer p { margin: 0 0 5px; color: #929aa5; font-size: 10px; line-height: 1.8; }
.mail-reader-footer .mail-save-error { margin-top: 10px; color: #a4774c; font-size: 12px; }
.mail-form-hint { margin: 4px 0 13px; color: #9ba2ac; font-size: 10px; }
.mail-save-error { margin: 14px 0 0; color: #a4774c; font-size: 11px; }
@media (max-width: 1000px) { .mail-toolbar { flex-wrap: wrap; } .mail-toolbar > span { flex-basis: 100%; margin-left: 0; } .mail-accounts { gap: 9px; } .mail-account { padding: 12px; } }
@media (max-width: 650px) { .mail-accounts { grid-template-columns: 1fr; gap: 8px; } .mail-account { padding: 12px 15px; } .mail-account p { margin: 4px 0; } .mail-snapshot-time { flex-basis: 100%; margin-left: 0; } .mail-tabs { gap: 2px 17px; padding: 0 13px; } .mail-tab { min-height: 44px; font-size: 11px; } .mail-toolbar { padding: 12px; } .mail-toolbar input { flex: 1; } .mail-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 9px; } .mail-reader-toolbar { gap: 10px; min-height: 60px; padding: 10px 14px; } .mail-reader-actions { gap: 7px; } .mail-reader-actions .button { padding: 5px 9px; } .mail-reader-close span { display: none; } .mail-reader-content { padding: 26px 22px 22px; } .mail-reader-heading h2 { margin-bottom: 19px; font-size: 21px; line-height: 1.5; } .mail-reader-source { gap: 5px 10px; font-size: 11px; } .mail-metadata > div { gap: 9px; } .mail-advice { margin-top: 22px; padding: 11px 13px; } .mail-body { margin-top: 26px; } .mail-body-copy { font-size: 14px; line-height: 1.9; } }


.login-body{min-height:100vh;display:grid;place-items:center;background:var(--canvas,#f7f8fa);padding:24px}.login-card{width:min(420px,100%);background:#fff;border:1px solid #e7e9ed;border-radius:16px;padding:38px}.login-card .brand{margin-bottom:32px}.login-card h1{font-size:27px;margin:0 0 10px}.login-card form{display:grid;gap:20px;margin-top:30px}.login-card input{width:100%}.login-card form>.button{width:100%;margin-top:6px}.login-note{font-size:12px;color:#8b9098;margin:24px 0 0}.topbar-actions{flex-wrap:wrap}.transfer-summary{width:100%;border-collapse:collapse}.transfer-summary th,.transfer-summary td{padding:10px;text-align:left;border-bottom:1px solid #eceef1}.transfer-summary th{font-weight:500;color:#707780}.import-warning{font-size:13px;line-height:1.8;color:#5f6570;margin:18px 0}.account-dialog{max-width:460px}.account-dialog .field{margin-bottom:18px}.busy{opacity:.7}[hidden]{display:none!important}
.topbar{flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.topbar-actions{flex-shrink:1;min-width:0;row-gap:8px}@media(max-width:650px){.topbar-actions{justify-content:flex-start;gap:8px}.login-card{padding:28px 24px}.transfer-summary th,.transfer-summary td{padding:8px 5px;font-size:12px}}

/* Batch-first freight table; expansions stay within the visible scroll area. */
#freight-root,.freight-panel,#freight-results{min-width:0;max-width:100%}
.freight-table-scroll{container-type:inline-size;border:0;border-radius:0}
.freight-batch-table{width:100%;min-width:1770px;table-layout:fixed}
.freight-batch-table>thead>tr>th{width:135px;white-space:normal}
.freight-batch-table>thead>tr>th:first-child{width:190px;position:sticky;left:0;z-index:3;background:#f8f9fb}
.freight-batch-row>td{vertical-align:top;white-space:normal;overflow-wrap:anywhere;line-height:1.7}
.freight-batch-row>td:first-child{position:sticky;left:0;z-index:2;background:#fff;border-right:1px solid var(--line);box-shadow:3px 0 5px rgb(40 50 70 / 3%)}
.freight-row-actions{display:flex;gap:14px;margin-top:9px}.freight-fba-cell{font-size:11px}
.freight-expanded-row>td{padding:0!important;background:#f7f8fa}
.freight-expansion{position:sticky;left:0;width:100cqw;max-width:100%;padding:18px;white-space:normal}
.freight-subsection{border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden;margin-bottom:14px}
.freight-subsection:last-child{margin-bottom:0}.freight-subsection .panel-heading{padding:13px 16px}.freight-subsection .panel-heading h2{font-size:13px}.freight-subsection .panel-heading p{margin:4px 0 0}
.freight-subsection>.table-wrap{border:0;border-radius:0}.freight-subtable{min-width:850px;width:100%;table-layout:auto}
.freight-subtable th,.freight-subtable td{padding:12px 14px;vertical-align:top;font-size:11px}
.freight-subtable .freight-note-cell{min-width:150px;max-width:260px;white-space:pre-wrap;overflow-wrap:anywhere}
.freight-inline-empty{padding:18px 16px;margin:0;font-size:12px;color:var(--muted)}
.freight-history{padding:10px 0 0;color:var(--muted);font-size:12px}.freight-history summary{cursor:pointer;padding:8px 0}.freight-history .table-wrap{margin:10px 0}
.freight-review-link{font-size:11px;margin-right:4px}.freight-extra-fields{margin-top:18px;border-top:1px solid var(--line)}.freight-extra-fields summary{cursor:pointer;padding:14px 0;color:var(--muted);font-size:12px}
.freight-form-heading{font-size:12px;font-weight:500;color:#555f6b;border-top:1px solid var(--line);padding-top:16px;margin-top:4px}
.freight-dialog.task-dialog{width:min(740px,calc(100vw - 32px))}
.freight-fba-options{border:1px solid var(--line);border-radius:6px;padding:12px 14px;display:flex;gap:10px 20px;flex-wrap:wrap}.freight-fba-options legend{font-size:12px;color:var(--muted);padding:0 5px}.freight-fba-options label{display:flex;gap:7px;align-items:center;font-size:12px}.freight-fba-options input{width:auto;min-height:0;margin:0}
.freight-report-section{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.freight-report-section h3{font-size:13px;font-weight:500;margin:0 0 12px}.freight-report-section .field{margin-bottom:10px}.freight-report-section input[type=file]{padding:8px;font-size:12px}
.freight-report-list{list-style:none;padding:0;margin:10px 0 18px}.freight-report-list li{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--line);padding:9px 0;overflow-wrap:anywhere}.freight-report-list a{font-size:12px;text-decoration:underline}.freight-report-status{font-size:12px;color:#777f89;line-height:1.7;min-height:1.7em}
@supports not (width:1cqw){.freight-expansion{width:min(1100px,calc(100vw - var(--sidebar-width) - 64px))}}
@media(max-width:700px){.freight-expansion{padding:12px}.freight-dialog.task-dialog{width:calc(100vw - 24px)}}

.freight-table-scroll:focus-visible{outline:2px solid #829389;outline-offset:-2px}

.freight-flow-card{margin-bottom:14px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:7px;min-width:0}
.freight-flow-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.freight-flow-heading h2{font-size:13px;font-weight:500;margin:0}.freight-flow-current{font-size:12px;font-weight:500;color:#426b9f}.freight-flow-current[data-terminal=true]{color:#68717e}
.freight-flow-detail{font-size:11px;line-height:1.7;color:#808995;margin:6px 0 0;white-space:normal;overflow-wrap:anywhere}
.freight-flow-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px;list-style:none;padding:0;margin:15px 0}
.freight-flow-step{position:relative;min-width:0;padding:11px 10px;background:#f6f7f9;border:1px solid #e4e7ec;border-radius:6px;color:#848c98;white-space:normal}
.freight-flow-step:not(:last-child)::after{content:'→';position:absolute;right:-16px;top:26px;color:#b6bec8;font-size:15px;line-height:1}
.freight-flow-step-heading{display:flex;align-items:center;gap:6px}.freight-flow-step-heading>strong{font-size:12px;font-weight:500}.freight-flow-number{display:grid;place-items:center;flex:none;width:18px;height:18px;border:1px solid currentColor;border-radius:50%;font-size:10px;opacity:.8}
.freight-flow-step-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:10px;line-height:1.6;margin-top:7px}.freight-flow-current-tag{padding:0 4px;border-radius:3px;background:#e3edf9;color:#36679e;font-weight:500}.freight-flow-step>p{font-size:10px;line-height:1.7;margin:7px 0 0;color:#7b8591;overflow-wrap:anywhere}
.freight-flow-step[data-flow-status=complete]{background:#f0f6f2;border-color:#c8ddcf;color:#527961}.freight-flow-step[data-flow-status=active]{background:#f0f5fc;border-color:#c8d8ee;color:#4f75a5}.freight-flow-step[data-flow-status=unknown]{border-style:dashed}.freight-flow-step[data-flow-status=attention]{background:#fcf5e9;border-color:#e7d1ab;color:#9b7238}.freight-flow-step[aria-current=step]{border-color:#7297c7;box-shadow:0 0 0 1px #7297c7}
.freight-flow-settlements{display:flex;gap:9px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line)}.freight-flow-settlement{display:flex;align-items:center;gap:9px;border:1px solid #e7e9ed;border-radius:5px;padding:5px 9px;font-size:11px;color:#828b97;background:#fafbfc}.freight-flow-settlement strong{font-size:11px;font-weight:500;color:#747e8b}.freight-flow-settlement[data-settlement-status="部分付款"] strong{color:#4f75a5}.freight-flow-settlement[data-settlement-status="已结清"] strong{color:#527961}
@container(max-width:700px){.freight-flow-steps{grid-template-columns:1fr;gap:15px}.freight-flow-step{display:grid;grid-template-columns:120px minmax(0,1fr);column-gap:12px;padding:10px 12px}.freight-flow-step-heading,.freight-flow-step-meta{grid-column:1}.freight-flow-step-meta{margin-top:5px}.freight-flow-step>p{grid-column:2;grid-row:1/span 2;align-self:center;margin:0}.freight-flow-step:not(:last-child)::after{content:'↓';right:50%;top:auto;bottom:-15px;font-size:13px}}
@media(max-width:700px){.freight-flow-card{padding:13px}.freight-flow-steps{grid-template-columns:1fr;gap:15px}.freight-flow-step{display:grid;grid-template-columns:120px minmax(0,1fr);column-gap:12px;padding:10px 12px}.freight-flow-step-heading,.freight-flow-step-meta{grid-column:1}.freight-flow-step>p{grid-column:2;grid-row:1/span 2;align-self:center;margin:0}.freight-flow-step:not(:last-child)::after{content:'↓';right:50%;top:auto;bottom:-15px;font-size:13px}}
