/* 一秒互联公司 www.yimiaonet.com：一秒税账云界面样式 */
:root {
  --sidebar: 242px;
  --ink: #202629;
  --ink-2: #30383c;
  --paper: #f3f5f5;
  --surface: #ffffff;
  --surface-2: #eef1f1;
  --line: #dde2e3;
  --muted: #737c81;
  --subtle: #9aa2a6;
  --red: #bb443d;
  --red-soft: #faecea;
  --green: #337963;
  --green-soft: #e9f4f0;
  --amber: #a96e2e;
  --amber-soft: #fbf2e5;
  --blue: #4d7084;
  --blue-soft: #eaf0f3;
  --shadow: 0 18px 45px rgba(21, 30, 34, .12);
  --ease: cubic-bezier(.2, .75, .25, 1);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--paper); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(77,112,132,.22); outline-offset: 2px; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 18px 14px 14px; color: #dce2e4; background: #22282c; border-right: 1px solid rgba(255,255,255,.06); overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 7px 16px; color: #fff; text-decoration: none; }
.brand-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--red); }
.brand-icon svg { width: 18px; height: 18px; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 15px; letter-spacing: 0; }
.brand small { color: #79868b; font-size: 7px; font-weight: 700; }
.tenant-card { display: grid; grid-template-columns: 33px 1fr 26px; align-items: center; gap: 8px; min-height: 56px; padding: 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: rgba(255,255,255,.035); }
.tenant-logo { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: #465258; font-size: 12px; font-weight: 800; }
.tenant-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.tenant-card strong, .tenant-card small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tenant-card strong { color: #e7ecee; font-size: 10px; }
.tenant-card small { color: #849197; font-size: 8px; }
.tenant-card button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; color: #89969b; background: transparent; cursor: pointer; }
.tenant-card button svg { width: 14px; height: 14px; }
.main-nav { margin-top: 12px; }
.main-nav p { margin: 17px 10px 6px; color: #68757a; font-size: 8px; font-weight: 800; }
.main-nav button { position: relative; width: 100%; height: 37px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 7px; padding: 0 10px; border: 0; border-radius: 6px; color: #aab4b8; background: transparent; text-align: left; font-size: 10px; cursor: pointer; transition: .2s ease; }
.main-nav button:hover { color: #fff; background: rgba(255,255,255,.05); }
.main-nav button.active { color: #fff; background: rgba(255,255,255,.09); }
.main-nav button.active::before { content: ""; position: absolute; left: -14px; width: 3px; height: 20px; background: var(--red); }
.main-nav button svg { width: 16px; height: 16px; }
.main-nav em { min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; border-radius: 9px; color: #cbd3d6; background: #3b454a; font-size: 8px; font-style: normal; }
.main-nav em.danger { color: #ffc1bc; background: rgba(187,68,61,.3); }
.sidebar-status { margin-top: auto; padding: 13px 10px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-status > div { display: flex; justify-content: space-between; gap: 8px; color: #8d999e; font-size: 8px; }
.sidebar-status > div span { display: flex; align-items: center; gap: 5px; }
.sidebar-status > div i { width: 6px; height: 6px; border-radius: 50%; background: #53b58f; box-shadow: 0 0 0 3px rgba(83,181,143,.12); }
.sidebar-status p { margin: 13px 0 7px; color: #98a4a9; font-size: 8px; }
.sidebar-status > strong { height: 3px; display: block; overflow: hidden; background: rgba(255,255,255,.1); }
.sidebar-status > strong b { height: 100%; display: block; background: #8fa1a8; }
.sidebar-status > small { display: block; margin-top: 6px; color: #69767b; font-size: 7px; }
.sidebar-footer { display: grid; gap: 7px; padding: 8px 8px 0; }
.sidebar-footer button, .sidebar-footer a { padding: 0; border: 0; color: #77858a; background: transparent; font-size: 8px; text-align: left; text-decoration: none; cursor: pointer; }
.sidebar-footer button { display: flex; align-items: center; gap: 6px; }
.sidebar-footer svg { width: 13px; height: 13px; }
.sidebar-footer button:hover, .sidebar-footer a:hover { color: #dfe5e7; }
.main-shell { min-height: 100vh; display: flex; flex-direction: column; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 40; top: 0; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(15px); }
.topbar-left, .topbar-actions, .breadcrumb, .period-button, .account-button { display: flex; align-items: center; }
.breadcrumb { gap: 5px; color: var(--subtle); font-size: 9px; }
.breadcrumb svg { width: 12px; height: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar-actions { gap: 6px; }
.period-button, .account-button { height: 33px; gap: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 9px; cursor: pointer; }
.period-button svg, .account-button svg { width: 14px; height: 14px; }
.account-button span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: 9px; font-weight: 800; }
.account-button strong { font-size: 9px; }
.icon-button { position: relative; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.icon-button:hover { background: var(--surface-2); }
.icon-button svg { width: 15px; height: 15px; }
.icon-button.small { width: 30px; height: 30px; }
.notification-button b { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--red); font-size: 7px; }
.mobile-menu { display: none; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid var(--line); background: #fff; }
.content-area { flex: 1; padding: 22px 24px 32px; }
.app-page { display: none; }
.app-page.active { display: block; animation: pageIn .28s var(--ease) both; }
.page-heading { min-height: 74px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading h1 { margin: 1px 0 5px; font-size: 25px; line-height: 1.3; }
.page-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.eyebrow { color: var(--red); font-size: 8px; font-weight: 800; }
.heading-actions { display: flex; align-items: center; gap: 7px; padding-top: 7px; }
.primary-button, .secondary-button { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 13px; border-radius: 6px; font-size: 9px; font-weight: 700; cursor: pointer; }
.primary-button { border: 1px solid var(--ink); color: #fff; background: var(--ink); }
.primary-button:hover { background: #363e42; }
.secondary-button { border: 1px solid var(--line); background: #fff; }
.secondary-button:hover { border-color: #b7c0c3; background: #fafbfb; }
.primary-button svg, .secondary-button svg { width: 14px; height: 14px; }
.secondary-button.compact { min-height: 31px; padding: 0 10px; }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 8px; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.text-button svg { width: 12px; height: 12px; }
.prototype-banner { min-height: 47px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 10px; margin-bottom: 14px; padding: 8px 12px; border-left: 3px solid var(--blue); color: #42545d; background: var(--blue-soft); }
.prototype-banner > svg { width: 17px; height: 17px; }
.prototype-banner > span { display: grid; gap: 2px; }
.prototype-banner strong { font-size: 9px; }
.prototype-banner small { color: #6f8088; font-size: 8px; }
.prototype-banner button { padding: 6px 8px; border: 1px solid #b8c7cf; border-radius: 5px; color: #526972; background: transparent; font-size: 8px; cursor: pointer; }
.panel { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.panel-header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel-header > div { display: grid; gap: 2px; }
.panel-header span { color: var(--subtle); font-size: 7px; font-weight: 800; }
.panel-header h2 { margin: 0; font-size: 13px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 12px; }
.kpi-card { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.kpi-card header, .kpi-card footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.kpi-card header span { color: var(--muted); font-size: 9px; }
.kpi-card header svg { width: 16px; height: 16px; color: #879296; }
.kpi-card > strong { font-size: 27px; }
.kpi-card footer { justify-content: flex-start; color: var(--subtle); font-size: 7px; }
.kpi-card footer b { color: var(--ink-2); font-size: 8px; }
.kpi-card footer b.up { color: var(--green); }
.kpi-card footer b.warning { color: var(--amber); }
.kpi-card footer b.danger-text { color: var(--red); }
.kpi-card.risk-card { border-top: 3px solid var(--red); padding-top: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .55fr); gap: 12px; margin-bottom: 12px; }
.close-progress { display: grid; grid-template-columns: 165px 1fr; align-items: center; gap: 12px; padding: 15px; }
.progress-ring { width: 132px; height: 132px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: conic-gradient(var(--green) 0 72%, #e8ecec 72%); }
.progress-ring::after { content: ""; width: 100px; height: 100px; grid-area: 1/1; border-radius: 50%; background: #fff; }
.progress-ring span { z-index: 2; grid-area: 1/1; display: grid; justify-items: center; gap: 2px; }
.progress-ring strong { font-size: 22px; }
.progress-ring small { color: var(--muted); font-size: 7px; }
.close-stages { display: grid; }
.close-stages button { min-height: 43px; display: grid; grid-template-columns: 25px 1fr 32px; align-items: center; gap: 8px; padding: 5px 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.close-stages button:last-child { border-bottom: 0; }
.close-stages button > i, .close-stages button > svg { width: 23px; height: 23px; display: grid; place-items: center; padding: 5px; border: 1px solid var(--line); border-radius: 50%; color: #9ba3a6; }
.close-stages button.done > svg { color: #fff; border-color: var(--green); background: var(--green); }
.close-stages button.current > svg { color: var(--amber); border-color: #e7c99e; background: var(--amber-soft); }
.close-stages button span { display: grid; gap: 2px; }
.close-stages strong { font-size: 9px; }
.close-stages small { color: var(--muted); font-size: 7px; }
.close-stages b { color: var(--muted); font-size: 8px; text-align: right; }
.deadline-panel .panel-header > svg { color: var(--red); }
.deadline-hero { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.deadline-hero > span { color: var(--muted); font-size: 8px; }
.deadline-hero > strong { display: block; margin: 3px 0; font-size: 34px; }
.deadline-hero strong small { margin-left: 3px; font-size: 10px; }
.deadline-hero p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.deadline-list { padding: 10px 15px 13px; }
.deadline-list p { display: grid; grid-template-columns: 13px 1fr; gap: 8px; min-height: 37px; margin: 0; }
.deadline-list i { position: relative; width: 8px; height: 8px; margin-top: 5px; border: 2px solid #c5cccf; border-radius: 50%; background: #fff; }
.deadline-list p:not(:last-child) i::after { content: ""; position: absolute; left: 1px; top: 8px; width: 2px; height: 27px; background: #e0e5e6; }
.deadline-list i.done { border-color: var(--green); background: var(--green); }
.deadline-list i.current { border-color: var(--red); background: var(--red); }
.deadline-list span { display: grid; gap: 2px; }
.deadline-list b { font-size: 8px; }
.deadline-list small { color: var(--muted); font-size: 7px; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr) minmax(220px, .55fr); gap: 12px; }
.segmented { display: flex; padding: 2px; background: var(--surface-2); }
.segmented button { padding: 4px 7px; border: 0; color: var(--muted); background: transparent; font-size: 7px; cursor: pointer; }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chart-summary { display: flex; gap: 26px; padding: 12px 16px 0; }
.chart-summary p { display: grid; gap: 2px; margin: 0; }
.chart-summary span { color: var(--muted); font-size: 7px; }
.chart-summary strong { font-size: 11px; }
.bar-chart { height: 120px; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 17px; padding: 15px 22px 0; background-image: linear-gradient(to top, transparent 24%, #eef1f1 25%, transparent 26%, transparent 49%, #eef1f1 50%, transparent 51%, transparent 74%, #eef1f1 75%, transparent 76%); }
.bar-chart div { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; }
.bar-chart i { width: 35%; min-height: 4px; background: #aebcc1; transition: height .45s var(--ease); }
.bar-chart i:last-child { background: var(--red); }
.chart-labels { display: flex; justify-content: space-around; padding: 7px 12px 12px; color: var(--subtle); font-size: 7px; }
.task-list { padding: 4px 13px 10px; }
.task-item { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; min-height: 50px; border-bottom: 1px solid var(--line); cursor: pointer; }
.task-item:last-child { border-bottom: 0; }
.task-item > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--blue); background: var(--blue-soft); }
.task-item.urgent > span { color: var(--red); background: var(--red-soft); }
.task-item svg { width: 14px; height: 14px; }
.task-item > div { min-width: 0; display: grid; gap: 3px; }
.task-item b, .task-item small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.task-item b { font-size: 8px; }
.task-item small { color: var(--muted); font-size: 7px; }
.task-item em { color: var(--subtle); font-size: 7px; font-style: normal; }
.risk-donut { width: 112px; height: 112px; display: grid; place-items: center; margin: 14px auto 4px; border-radius: 50%; background: conic-gradient(var(--red) 0 28.5%, var(--amber) 28.5% 71.5%, #79998e 71.5%); }
.risk-donut::after { content: ""; width: 78px; height: 78px; grid-area: 1/1; border-radius: 50%; background: #fff; }
.risk-donut span { z-index: 2; grid-area: 1/1; display: grid; justify-items: center; }
.risk-donut strong { font-size: 22px; }
.risk-donut small { color: var(--muted); font-size: 7px; }
.risk-distribution ul, .category-panel ul { list-style: none; margin: 0; padding: 9px 17px 14px; }
.risk-distribution li, .category-panel li { min-height: 27px; display: flex; align-items: center; justify-content: space-between; font-size: 8px; }
.risk-distribution li span, .category-panel li span, .legend span { display: flex; align-items: center; gap: 6px; }
.risk-distribution i, .category-panel i, .legend i { width: 7px; height: 7px; display: inline-block; }
.risk-distribution i.high { background: var(--red); }
.risk-distribution i.medium { background: var(--amber); }
.risk-distribution i.low { background: #79998e; }
.summary-strip, .filing-overview, .archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.summary-strip > div, .filing-overview > div { display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 3px; min-height: 72px; padding: 12px 15px; border-right: 1px solid var(--line); }
.summary-strip > div:last-child, .filing-overview > div:last-child { border-right: 0; }
.summary-strip span, .filing-overview span { grid-column: 1/-1; color: var(--muted); font-size: 8px; }
.summary-strip strong, .filing-overview strong { font-size: 17px; }
.summary-strip small, .filing-overview small { color: var(--subtle); font-size: 7px; }
.table-panel { overflow: hidden; }
.table-toolbar { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.table-toolbar.simple { justify-content: space-between; }
.search-box { min-width: 260px; height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.search-box svg { width: 13px; height: 13px; color: var(--subtle); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 8px; }
.filter-row { display: flex; gap: 4px; }
.filter-button { height: 28px; padding: 0 9px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; font-size: 8px; cursor: pointer; }
.filter-button.active { border-color: var(--line); color: var(--ink); background: var(--surface-2); }
.table-toolbar > .secondary-button:last-child { margin-left: auto; }
.data-table { min-width: 910px; overflow-x: auto; }
.table-head, .table-row { display: grid; align-items: center; gap: 10px; min-height: 54px; padding: 7px 13px; border-bottom: 1px solid var(--line); }
.invoice-table .table-head, .invoice-table .table-row { grid-template-columns: 28px minmax(170px,1.4fr) minmax(130px,1fr) 90px 80px 95px 68px; }
.risk-table .table-head, .risk-table .table-row { grid-template-columns: minmax(210px,1.6fr) minmax(140px,1fr) 70px 85px 80px 75px 65px; }
.table-head { min-height: 39px; color: var(--muted); background: #f7f8f8; font-size: 7px; }
.table-row { font-size: 8px; }
.table-row:hover { background: #fafbfb; }
.table-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.invoice-info, .risk-info { display: grid; gap: 3px; }
.invoice-info b, .risk-info b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 8px; }
.invoice-info small, .risk-info small { color: var(--muted); font-size: 7px; }
.status-pill { width: max-content; display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 4px; color: var(--muted); background: var(--surface-2); font-size: 7px; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #94a0a4; }
.status-pill.success { color: var(--green); background: var(--green-soft); }
.status-pill.success::before { background: var(--green); }
.status-pill.warning { color: var(--amber); background: var(--amber-soft); }
.status-pill.warning::before { background: var(--amber); }
.status-pill.danger { color: var(--red); background: var(--red-soft); }
.status-pill.danger::before { background: var(--red); }
.row-action { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 7px; cursor: pointer; }
.expense-tabs { display: flex; gap: 3px; margin-bottom: 11px; border-bottom: 1px solid var(--line); }
.expense-tabs button { min-height: 37px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 8px; cursor: pointer; }
.expense-tabs button.active { color: var(--ink); border-bottom-color: var(--red); font-weight: 700; }
.expense-tabs b { min-width: 16px; display: inline-block; margin-left: 4px; padding: 2px 4px; border-radius: 7px; background: #e7ebec; font-size: 7px; }
.expense-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 12px; }
.expense-list-panel { overflow: hidden; }
.expense-list { min-height: 440px; }
.expense-item { display: grid; grid-template-columns: 44px minmax(190px,1.4fr) 100px 105px 85px 80px 65px; align-items: center; gap: 10px; min-height: 66px; padding: 8px 13px; border-bottom: 1px solid var(--line); font-size: 8px; cursor: pointer; }
.expense-item:hover { background: #fafbfb; }
.expense-item > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.expense-item > div { min-width: 0; display: grid; gap: 3px; }
.expense-item b, .expense-item small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.expense-item small { color: var(--muted); font-size: 7px; }
.expense-item em { color: var(--red); font-style: normal; font-weight: 700; }
.expense-policy-card { align-self: start; padding-bottom: 12px; }
.expense-policy-card > header { display: grid; grid-template-columns: 37px 1fr; align-items: center; gap: 9px; padding: 14px; border-bottom: 1px solid var(--line); }
.expense-policy-card header > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-soft); }
.expense-policy-card header svg { width: 17px; height: 17px; }
.expense-policy-card header > div { display: grid; gap: 3px; }
.expense-policy-card header b { font-size: 9px; }
.expense-policy-card header small { color: var(--muted); font-size: 7px; }
.expense-policy-card dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; border-bottom: 1px solid var(--line); }
.expense-policy-card dl div { display: grid; justify-items: center; gap: 3px; padding: 12px 3px; border-right: 1px solid var(--line); }
.expense-policy-card dl div:last-child { border-right: 0; }
.expense-policy-card dt { color: var(--muted); font-size: 7px; }
.expense-policy-card dd { margin: 0; font-size: 11px; font-weight: 800; }
.expense-policy-card h3 { margin: 13px 14px 6px; font-size: 9px; }
.expense-policy-card > p { display: grid; grid-template-columns: 18px 1fr; gap: 7px; margin: 0; padding: 8px 14px; }
.expense-policy-card > p svg { width: 14px; height: 14px; color: var(--amber); }
.expense-policy-card p span { display: grid; gap: 2px; }
.expense-policy-card p b { font-size: 8px; }
.expense-policy-card p small { color: var(--muted); font-size: 7px; }

/* 一秒互联公司 www.yimiaonet.com：费用报账桌面端比例优化，避免宽屏下列表过长、规则卡过窄。 */
@media (min-width: 941px) {
  .app-page[data-page="expenses"] .page-heading h1 { font-size: 28px; }
  .app-page[data-page="expenses"] .page-heading p { max-width: 820px; font-size: 12px; }
  .app-page[data-page="expenses"] .eyebrow { font-size: 9px; }
  .app-page[data-page="expenses"] .heading-actions { gap: 10px; padding-top: 4px; }
  .app-page[data-page="expenses"] .heading-actions button { min-height: 39px; padding: 0 15px; font-size: 10px; }
  .app-page[data-page="expenses"] .expense-tabs { gap: 6px; margin-bottom: 14px; }
  .app-page[data-page="expenses"] .expense-tabs button { min-height: 42px; padding: 0 16px; font-size: 10px; }
  .app-page[data-page="expenses"] .expense-tabs b { min-width: 18px; padding: 3px 5px; font-size: 8px; }
  .app-page[data-page="expenses"] .expense-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
  .app-page[data-page="expenses"] .expense-list-panel .table-toolbar { min-height: 64px; padding: 12px 16px; }
  .app-page[data-page="expenses"] .expense-list-panel .search-box { min-width: 300px; height: 38px; padding: 0 11px; }
  .app-page[data-page="expenses"] .expense-list-panel .search-box input { font-size: 10px; }
  .app-page[data-page="expenses"] .expense-list-panel .icon-button { width: 38px; height: 38px; }
  .app-page[data-page="expenses"] .expense-item { grid-template-columns: 46px minmax(220px,1.55fr) 112px 110px 95px 92px 70px; gap: 14px; min-height: 78px; padding: 12px 16px; font-size: 10px; }
  .app-page[data-page="expenses"] .expense-item > span:first-child { width: 42px; height: 42px; border-radius: 8px; font-size: 11px; }
  .app-page[data-page="expenses"] .expense-item > div { gap: 5px; }
  .app-page[data-page="expenses"] .expense-item small { font-size: 8px; }
  .app-page[data-page="expenses"] .expense-policy-card { padding-bottom: 16px; }
  .app-page[data-page="expenses"] .expense-policy-card > header { grid-template-columns: 42px 1fr; gap: 11px; padding: 17px; }
  .app-page[data-page="expenses"] .expense-policy-card header > span { width: 40px; height: 40px; }
  .app-page[data-page="expenses"] .expense-policy-card header b { font-size: 10px; }
  .app-page[data-page="expenses"] .expense-policy-card header small { font-size: 8px; }
  .app-page[data-page="expenses"] .expense-policy-card dl div { padding: 14px 4px; }
  .app-page[data-page="expenses"] .expense-policy-card dt { font-size: 8px; }
  .app-page[data-page="expenses"] .expense-policy-card dd { font-size: 13px; }
  .app-page[data-page="expenses"] .expense-policy-card h3 { margin: 16px 17px 8px; font-size: 10px; }
  .app-page[data-page="expenses"] .expense-policy-card > p { grid-template-columns: 20px 1fr; gap: 9px; padding: 10px 17px; }
  .app-page[data-page="expenses"] .expense-policy-card p b { font-size: 9px; }
  .app-page[data-page="expenses"] .expense-policy-card p small { font-size: 8px; }
}
.approval-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 12px; }
.approval-kpis article { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.approval-kpis span { color: var(--muted); font-size: 8px; }
.approval-kpis strong { font-size: 20px; }
.approval-kpis small { color: var(--subtle); font-size: 7px; }
.approval-board { display: grid; grid-template-columns: minmax(250px,1fr) minmax(250px,1fr) 250px; gap: 12px; align-items: start; }
.approval-column { min-height: 450px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: #e9eded; }
.approval-column > header { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 9px; font-size: 8px; }
.approval-column > header span { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.approval-column > header i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.approval-column > header i.urgent { background: var(--red); }
.approval-column > header b { min-width: 18px; padding: 2px 5px; border-radius: 8px; background: #d7dddd; text-align: center; font-size: 7px; }
.approval-card { margin-bottom: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 4px 12px rgba(20,28,32,.04); cursor: pointer; }
.approval-card header { display: flex; justify-content: space-between; gap: 8px; }
.approval-card header span { display: grid; gap: 3px; min-width: 0; }
.approval-card header b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; }
.approval-card header small { color: var(--muted); font-size: 7px; }
.approval-card header em { height: max-content; padding: 3px 5px; border-radius: 4px; color: var(--red); background: var(--red-soft); font-size: 7px; font-style: normal; }
.approval-card > strong { display: block; margin: 11px 0 8px; font-size: 17px; }
.approval-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approval-card dl div { display: grid; gap: 2px; }
.approval-card dt { color: var(--muted); font-size: 7px; }
.approval-card dd { margin: 0; font-size: 8px; font-weight: 700; }
.approval-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.approval-card footer span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 7px; }
.approval-card footer span i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: 7px; font-style: normal; }
.approval-card footer button { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 7px; cursor: pointer; }
.approval-guide { min-height: 306px; padding: 18px; border-radius: 7px; color: #e8edef; background: var(--ink); }
.approval-guide > svg { width: 28px; height: 28px; padding: 6px; border: 1px solid #596267; border-radius: 7px; }
.approval-guide h2 { margin: 18px 0 7px; font-size: 14px; }
.approval-guide p { margin: 0; color: #aab5b9; font-size: 8px; line-height: 1.7; }
.approval-guide ul { margin: 14px 0; padding: 12px 0 12px 17px; border-top: 1px solid #3a4347; border-bottom: 1px solid #3a4347; color: #c8d0d3; font-size: 8px; line-height: 2; }
.approval-guide button { width: 100%; height: 34px; border: 1px solid #657177; border-radius: 5px; color: #fff; background: transparent; font-size: 8px; cursor: pointer; }
.approval-guide small { display: block; margin-top: 8px; color: #78868b; font-size: 7px; text-align: center; }
.filing-layout { display: grid; grid-template-columns: minmax(0,1fr) 282px; gap: 12px; }
.filing-main { overflow: hidden; }
.status-chip { padding: 5px 7px; border-radius: 4px; font-size: 7px; }
.status-chip.in-progress { color: var(--amber); background: var(--amber-soft); }
.filing-task-list { padding: 3px 14px 9px; }
.filing-task { display: grid; grid-template-columns: 36px minmax(160px,1.1fr) 110px 95px 90px 70px; align-items: center; gap: 10px; min-height: 62px; border-bottom: 1px solid var(--line); font-size: 8px; }
.filing-task:last-child { border-bottom: 0; }
.filing-task > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-soft); }
.filing-task > span:first-child svg { width: 16px; height: 16px; }
.filing-task > div { display: grid; gap: 3px; }
.filing-task b { font-size: 9px; }
.filing-task small { color: var(--muted); font-size: 7px; }
.filing-task > span:not(:first-child) { color: var(--muted); }
.filing-task button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 7px; cursor: pointer; }
.filing-readiness { align-self: start; }
.readiness-score { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; padding: 18px 10px 14px; }
.readiness-score strong { font-size: 38px; }
.readiness-score span { color: var(--muted); font-size: 10px; }
.readiness-score small { grid-column: 1/-1; color: var(--green); font-size: 8px; text-align: center; }
.readiness-bars { padding: 0 16px 12px; }
.readiness-bars p { display: grid; grid-template-columns: 1fr 32px; gap: 4px 8px; margin: 0 0 11px; }
.readiness-bars span { grid-column: 1/-1; color: var(--muted); font-size: 7px; }
.readiness-bars b { height: 4px; overflow: hidden; background: #e8ecec; }
.readiness-bars b i { height: 100%; display: block; background: var(--green); }
.readiness-bars em { color: var(--muted); font-size: 7px; font-style: normal; text-align: right; }
.readiness-note { display: grid; grid-template-columns: 20px 1fr; gap: 7px; margin: 0 13px 13px; padding: 10px; color: #735331; background: var(--amber-soft); }
.readiness-note svg { width: 16px; height: 16px; color: var(--amber); }
.readiness-note p { display: grid; gap: 3px; margin: 0; }
.readiness-note b { font-size: 8px; }
.readiness-note span { font-size: 7px; line-height: 1.5; }
.risk-hero { display: grid; grid-template-columns: 155px 1fr 190px; align-items: center; min-height: 145px; margin-bottom: 12px; padding: 15px 20px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.risk-hero > div:first-child { display: grid; justify-items: start; gap: 3px; }
.risk-hero > div:first-child span { color: var(--muted); font-size: 8px; }
.risk-hero > div:first-child strong { font-size: 42px; }
.risk-hero > div:first-child small { color: var(--green); font-size: 7px; }
.health-chart { height: 105px; padding: 0 24px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.health-chart svg { width: 100%; height: 78px; overflow: visible; }
.health-area { fill: rgba(51,121,99,.12); }
.health-line { fill: none; stroke: var(--green); stroke-width: 3; vector-effect: non-scaling-stroke; }
.health-chart footer { display: flex; justify-content: space-between; color: var(--subtle); font-size: 7px; }
.risk-hero-summary { padding-left: 22px; }
.risk-hero-summary p { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 8px; }
.risk-hero-summary p:last-child { border-bottom: 0; }
.risk-hero-summary b { font-size: 12px; }
.risk-hero-summary b.high { color: var(--red); }
.risk-hero-summary b.medium { color: var(--amber); }
.risk-hero-summary b.low { color: var(--green); }
.archive-search { height: 45px; display: grid; grid-template-columns: 23px 1fr auto; align-items: center; gap: 6px; margin-bottom: 11px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.archive-search svg { width: 15px; height: 15px; color: var(--subtle); }
.archive-search input { border: 0; outline: 0; background: transparent; font-size: 9px; }
.archive-search button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 8px; cursor: pointer; }
.archive-grid { gap: 0; }
.archive-stat { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 9px; min-height: 70px; padding: 11px 15px; border-right: 1px solid var(--line); }
.archive-stat:last-child { border-right: 0; }
.archive-stat > svg { width: 34px; height: 34px; padding: 8px; border-radius: 7px; color: var(--blue); background: var(--blue-soft); }
.archive-stat > span { display: grid; gap: 2px; }
.archive-stat b { font-size: 15px; }
.archive-stat small { color: var(--muted); font-size: 7px; }
.archive-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 12px; }
.archive-batches { overflow: hidden; }
.archive-batch { display: grid; grid-template-columns: 42px minmax(180px,1.2fr) 100px 95px 85px 75px; align-items: center; gap: 10px; min-height: 66px; padding: 8px 15px; border-bottom: 1px solid var(--line); font-size: 8px; }
.archive-batch > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-soft); }
.archive-batch > span:first-child svg { width: 17px; height: 17px; }
.archive-batch > div { display: grid; gap: 3px; }
.archive-batch b { font-size: 9px; }
.archive-batch small, .archive-batch > span { color: var(--muted); font-size: 7px; }
.archive-batch button { padding: 6px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 7px; cursor: pointer; }
.integrity-ring { width: 136px; height: 136px; display: grid; place-items: center; margin: 18px auto 8px; border-radius: 50%; background: conic-gradient(var(--green) 0 98.4%, #e7ecea 98.4%); }
.integrity-ring::after { content: ""; width: 104px; height: 104px; grid-area: 1/1; border-radius: 50%; background: #fff; }
.integrity-ring span { z-index: 2; grid-area: 1/1; display: grid; justify-items: center; }
.integrity-ring strong { font-size: 18px; }
.integrity-ring small { color: var(--muted); font-size: 7px; }
.archive-integrity ul { list-style: none; margin: 0; padding: 8px 17px 15px; }
.archive-integrity li { display: grid; grid-template-columns: 18px 1fr; gap: 7px; min-height: 39px; align-items: center; }
.archive-integrity li > svg { width: 14px; height: 14px; color: var(--green); }
.archive-integrity li.warning > svg { color: var(--amber); }
.archive-integrity li span { display: flex; justify-content: space-between; gap: 8px; }
.archive-integrity li b { font-size: 8px; }
.archive-integrity li small { color: var(--muted); font-size: 7px; }
.report-filters { display: flex; gap: 7px; margin-bottom: 11px; }
.report-filters button { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 8px; cursor: pointer; }
.report-filters svg { width: 13px; height: 13px; }
.report-grid { display: grid; grid-template-columns: minmax(0,1.6fr) 280px; gap: 12px; margin-bottom: 12px; }
.report-main { min-width: 0; }
.legend { display: flex; gap: 10px; color: var(--muted); font-size: 7px; }
.legend i.travel, .category-panel i.travel { background: #596f7b; }
.legend i.business, .category-panel i.business { background: var(--red); }
.legend i.office, .category-panel i.office { background: #759a8d; }
.legend i.other, .category-panel i.other { background: #c1a174; }
.stacked-chart { height: 225px; display: grid; grid-template-columns: repeat(8,1fr); align-items: end; gap: 26px; padding: 25px 32px 0; background-image: linear-gradient(to top, transparent 24%, #eef1f1 25%, transparent 26%, transparent 49%, #eef1f1 50%, transparent 51%, transparent 74%, #eef1f1 75%, transparent 76%); }
.stacked-chart > div { display: flex; height: 100%; flex-direction: column-reverse; justify-content: flex-start; }
.stacked-chart i { display: block; min-height: 3px; }
.stacked-chart .travel { background: #596f7b; }
.stacked-chart .business { background: var(--red); }
.stacked-chart .office { background: #759a8d; }
.stacked-chart .other { background: #c1a174; }
.category-donut { width: 155px; height: 155px; display: grid; place-items: center; margin: 20px auto 4px; border-radius: 50%; background: conic-gradient(#596f7b 0 34.8%, var(--red) 34.8% 58.3%, #759a8d 58.3% 80%, #c1a174 80%); }
.category-donut::after { content: ""; width: 111px; height: 111px; grid-area: 1/1; border-radius: 50%; background: #fff; }
.category-donut span { z-index: 2; grid-area: 1/1; display: grid; justify-items: center; }
.category-donut strong { font-size: 18px; }
.category-donut small { color: var(--muted); font-size: 7px; }
.report-lower { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.6fr); gap: 12px; }
.ranking-table { padding: 4px 14px 10px; }
.ranking-head, .ranking-table p { display: grid; grid-template-columns: 1.1fr 100px 150px 100px 65px; align-items: center; gap: 10px; min-height: 42px; margin: 0; border-bottom: 1px solid var(--line); font-size: 8px; }
.ranking-head { min-height: 32px; color: var(--muted); font-size: 7px; }
.ranking-table p > span:nth-child(3) { display: grid; grid-template-columns: 1fr 30px; align-items: center; gap: 5px; }
.ranking-table p > span:nth-child(3) i { height: 4px; display: block; background: var(--green); }
.ranking-table em { color: var(--red); font-style: normal; }
.ai-insight { padding: 20px; color: #e9eeee; background: var(--ink); border-color: var(--ink); }
.ai-insight > span { display: flex; align-items: center; gap: 6px; color: #aeb9bd; font-size: 8px; }
.ai-insight > span svg { width: 15px; height: 15px; color: #e0b57a; }
.ai-insight h2 { margin: 21px 0 10px; font-size: 15px; line-height: 1.55; }
.ai-insight p { margin: 0; color: #9fadb2; font-size: 8px; line-height: 1.7; }
.ai-insight button { display: flex; align-items: center; gap: 5px; margin-top: 19px; padding: 0; border: 0; color: #fff; background: transparent; font-size: 8px; cursor: pointer; }
.ai-insight button svg { width: 13px; height: 13px; }
.settings-layout { display: grid; grid-template-columns: 190px 1fr; gap: 12px; }
.settings-menu { display: grid; align-content: start; gap: 3px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.settings-menu button { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 8px; cursor: pointer; }
.settings-menu button.active { color: var(--ink); background: var(--surface-2); font-weight: 700; }
.settings-menu svg { width: 15px; height: 15px; }
.settings-content { min-height: 470px; overflow: hidden; }
.settings-section-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.settings-section-header div { display: grid; gap: 3px; }
.settings-section-header h2 { margin: 0; font-size: 13px; }
.settings-section-header p { margin: 0; color: var(--muted); font-size: 7px; }
.entity-row { display: grid; grid-template-columns: 40px minmax(160px,1.3fr) 130px 110px 90px 68px; align-items: center; gap: 10px; min-height: 65px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 8px; }
.entity-row > span:first-child { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--ink); font-weight: 800; }
.entity-row > div { display: grid; gap: 3px; }
.entity-row b { font-size: 9px; }
.entity-row small, .entity-row > span { color: var(--muted); font-size: 7px; }
.entity-row button { padding: 6px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 7px; cursor: pointer; }
.site-footer { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; border-top: 1px solid var(--line); color: var(--subtle); background: #fff; font-size: 7px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.assistant-fab { position: fixed; z-index: 60; right: 22px; bottom: 24px; height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #343c40; border-radius: 7px; color: #fff; background: var(--ink); box-shadow: 0 12px 30px rgba(20,28,32,.24); font-size: 8px; cursor: pointer; }
.assistant-fab svg { width: 16px; height: 16px; }
.drawer-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(18,24,27,.44); opacity: 0; pointer-events: none; transition: .24s ease; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.assistant-drawer, .detail-drawer { position: fixed; z-index: 80; top: 0; right: 0; width: min(460px,100vw); height: 100vh; display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 45px rgba(17,24,28,.18); transform: translateX(103%); transition: transform .3s var(--ease); }
.assistant-drawer.open, .detail-drawer.open { transform: none; }
.assistant-drawer > header, .detail-drawer > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.assistant-drawer > header > div { display: flex; align-items: center; gap: 9px; }
.assistant-logo { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--ink); }
.assistant-logo svg { width: 17px; height: 17px; }
.assistant-drawer header span:last-child { display: grid; gap: 3px; }
.assistant-drawer header strong { font-size: 11px; }
.assistant-drawer header small { color: var(--muted); font-size: 7px; }
.assistant-body { flex: 1; overflow-y: auto; padding: 16px; background: #f6f7f7; }
.assistant-message, .user-message { display: grid; grid-template-columns: 28px 1fr; gap: 8px; margin-bottom: 12px; }
.assistant-message > span, .user-message > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: var(--ink); font-size: 7px; font-weight: 800; }
.assistant-message p, .user-message p { margin: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 3px 7px 7px 7px; background: #fff; font-size: 8px; line-height: 1.75; }
.user-message { grid-template-columns: 1fr 28px; }
.user-message > span { grid-column: 2; background: var(--red); }
.user-message p { grid-column: 1; grid-row: 1; border-radius: 7px 3px 7px 7px; background: var(--red-soft); }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 15px 36px; }
.quick-prompts button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; font-size: 7px; cursor: pointer; }
.assistant-drawer > footer { padding: 11px 14px; border-top: 1px solid var(--line); }
.assistant-drawer footer label { min-height: 43px; display: grid; grid-template-columns: 1fr 34px; align-items: end; gap: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; }
.assistant-drawer textarea { min-height: 27px; max-height: 100px; resize: none; border: 0; outline: 0; font-size: 8px; }
.assistant-drawer footer button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: #fff; background: var(--ink); cursor: pointer; }
.assistant-drawer footer button svg { width: 14px; height: 14px; }
.assistant-drawer footer > small { display: block; margin-top: 6px; color: var(--subtle); font-size: 7px; text-align: center; }
.detail-drawer { width: min(520px,100vw); }
.detail-drawer > header { align-items: flex-start; }
.detail-drawer > header > div { display: grid; gap: 3px; }
.detail-drawer header span { color: var(--red); font-size: 7px; font-weight: 800; }
.detail-drawer h2 { margin: 0; font-size: 18px; }
.detail-drawer header p { margin: 0; color: var(--muted); font-size: 8px; }
.detail-body { flex: 1; overflow-y: auto; padding: 17px; }
.detail-drawer > footer { display: flex; gap: 7px; padding: 12px 17px; border-top: 1px solid var(--line); }
.detail-drawer > footer button { flex: 1; }
.detail-summary { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 13px; border: 1px solid var(--line); }
.detail-summary div { display: grid; gap: 3px; padding: 10px; border-right: 1px solid var(--line); }
.detail-summary div:last-child { border-right: 0; }
.detail-summary span { color: var(--muted); font-size: 7px; }
.detail-summary b { font-size: 10px; }
.detail-section { margin-bottom: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; }
.detail-section h3 { margin: 0 0 10px; font-size: 10px; }
.detail-section dl { margin: 0; }
.detail-section dl div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; min-height: 31px; align-items: center; border-bottom: 1px solid var(--line); }
.detail-section dl div:last-child { border-bottom: 0; }
.detail-section dt { color: var(--muted); font-size: 7px; }
.detail-section dd { margin: 0; font-size: 8px; }
.process-timeline { display: grid; gap: 0; }
.process-timeline p { position: relative; display: grid; grid-template-columns: 13px 1fr auto; gap: 8px; min-height: 47px; margin: 0; }
.process-timeline p > i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.process-timeline p:not(:last-child) > i::after { content: ""; position: absolute; left: 3px; top: 13px; width: 2px; height: 31px; background: var(--line); }
.process-timeline p > span { display: grid; gap: 3px; }
.process-timeline b { font-size: 8px; }
.process-timeline small, .process-timeline time { color: var(--muted); font-size: 7px; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(18,24,27,.48); backdrop-filter: blur(3px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(620px,100%); max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: var(--shadow); animation: modalIn .24s var(--ease) both; }
.modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal > header > div { display: grid; gap: 3px; }
.modal header span { color: var(--red); font-size: 7px; font-weight: 800; }
.modal h2 { margin: 0; font-size: 17px; }
.modal-body { overflow-y: auto; padding: 17px 18px; }
.modal > footer { display: flex; justify-content: flex-end; gap: 7px; padding: 11px 18px; border-top: 1px solid var(--line); }
.modal-copy { margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.75; }
.modal-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 8px; line-height: 1.9; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 5px; }
.form-field.full { grid-column: 1/-1; }
.form-field span { font-size: 8px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 36px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 5px; outline: 0; background: #fff; font-size: 8px; }
.form-field textarea { min-height: 70px; resize: vertical; }
.upload-zone { min-height: 135px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed #aeb8bc; border-radius: 6px; color: var(--muted); background: #f7f8f8; cursor: pointer; }
.upload-zone.dragging { border-color: var(--red); background: var(--red-soft); }
.upload-zone svg { width: 27px; height: 27px; }
.upload-zone b { color: var(--ink); font-size: 9px; }
.upload-zone small { font-size: 7px; }
.check-list { display: grid; gap: 7px; }
.check-list label { min-height: 37px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 8px; }
.check-list input { width: 15px; height: 15px; accent-color: var(--green); }
.check-list small { color: var(--muted); font-size: 7px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 26px; display: flex; align-items: center; gap: 7px; max-width: calc(100vw - 30px); padding: 9px 12px; border-radius: 6px; color: #fff; background: rgba(32,38,41,.95); box-shadow: var(--shadow); font-size: 8px; opacity: 0; transform: translate(-50%,20px); pointer-events: none; transition: .24s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast svg { width: 15px; height: 15px; color: #78c6aa; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(15px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 1180px) {
  :root { --sidebar: 218px; }
  .lower-grid { grid-template-columns: 1fr 1fr; }
  .risk-distribution { grid-column: 1/-1; }
  .risk-distribution .risk-donut { margin: 12px 25px; float: left; }
  .risk-distribution ul { display: grid; grid-template-columns: repeat(3,1fr); padding-top: 32px; }
  .approval-board { grid-template-columns: 1fr 1fr; }
  .approval-guide { grid-column: 1/-1; min-height: 230px; }
}
@media (max-width: 940px) {
  :root { --sidebar: 254px; }
  .sidebar { transform: translateX(-103%); transition: transform .26s var(--ease); }
  .sidebar.open { transform: none; box-shadow: 20px 0 50px rgba(10,18,22,.24); }
  .main-shell { margin-left: 0; }
  .mobile-menu { display: grid; }
  .topbar-left { gap: 8px; }
  .kpi-grid, .summary-strip, .filing-overview, .archive-grid, .approval-kpis { grid-template-columns: repeat(2,1fr); }
  .summary-strip > div:nth-child(2), .filing-overview > div:nth-child(2), .archive-stat:nth-child(2), .approval-kpis article:nth-child(2) { border-right: 0; }
  .summary-strip > div:nth-child(-n+2), .filing-overview > div:nth-child(-n+2), .archive-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dashboard-grid, .expense-layout, .filing-layout, .archive-layout, .report-grid, .report-lower { grid-template-columns: 1fr; }
  .expense-policy-card, .filing-readiness, .archive-integrity { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-menu { grid-template-columns: repeat(5,1fr); overflow-x: auto; }
  .settings-menu button { justify-content: center; white-space: nowrap; }
}
@media (max-width: 680px) {
  .topbar { height: 55px; padding: 0 11px; }
  .breadcrumb span, .breadcrumb svg, .account-button strong, .account-button > svg, .period-button span { display: none; }
  .content-area { padding: 15px 11px 24px; }
  .page-heading { min-height: 0; flex-direction: column; gap: 10px; }
  .page-heading h1 { font-size: 21px; }
  .heading-actions { width: 100%; padding-top: 0; }
  .heading-actions button { flex: 1; }
  .prototype-banner { grid-template-columns: 22px 1fr; }
  .prototype-banner button { grid-column: 2; justify-self: start; }
  .kpi-grid, .summary-strip, .filing-overview, .archive-grid, .approval-kpis { grid-template-columns: 1fr 1fr; }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
  .risk-distribution { grid-column: auto; }
  .close-progress { grid-template-columns: 1fr; }
  .progress-ring { width: 108px; height: 108px; }
  .progress-ring::after { width: 82px; height: 82px; }
  .chart-summary { gap: 12px; overflow-x: auto; }
  .bar-chart { gap: 10px; padding-left: 15px; padding-right: 15px; }
  .table-toolbar { align-items: stretch; flex-wrap: wrap; }
  .search-box { min-width: 100%; }
  .table-toolbar > .secondary-button:last-child { margin-left: 0; }
  .approval-board { grid-template-columns: 1fr; }
  .approval-guide { grid-column: auto; }
  .risk-hero { grid-template-columns: 1fr; gap: 14px; }
  .health-chart { border: 0; padding: 0; }
  .risk-hero-summary { padding: 0; }
  .report-filters { overflow-x: auto; }
  .report-filters button { flex: none; }
  .stacked-chart { gap: 13px; padding-left: 18px; padding-right: 18px; }
  .ranking-table { overflow-x: auto; }
  .ranking-head, .ranking-table p { min-width: 650px; }
  .settings-menu { grid-template-columns: repeat(5,150px); }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 10px 12px; }
  .assistant-fab { right: 12px; bottom: 15px; width: 42px; padding: 0; justify-content: center; }
  .assistant-fab span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 一秒互联公司 www.yimiaonet.com：桌面端文字可读性优化，统一提升信息层级。 */
@media (min-width: 941px) {
  .brand strong { font-size: 16px; }
  .brand small { font-size: 8px; }
  .tenant-card strong { font-size: 11px; }
  .tenant-card small { font-size: 9px; }
  .main-nav p { margin-top: 19px; font-size: 9px; }
  .main-nav button { height: 40px; font-size: 11px; }
  .main-nav em { min-width: 20px; height: 20px; font-size: 9px; }
  .sidebar-status > div { font-size: 9px; }
  .sidebar-status p { font-size: 9px; }
  .sidebar-status > small { font-size: 8px; }
  .sidebar-footer button, .sidebar-footer a { font-size: 9px; }
  .breadcrumb { font-size: 11px; }
  .period-button, .account-button { font-size: 11px; }
  .account-button strong { font-size: 11px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading p { font-size: 12px; line-height: 1.7; }
  .eyebrow { font-size: 10px; }
  .primary-button, .secondary-button { min-height: 39px; font-size: 11px; }
  .secondary-button.compact { min-height: 35px; font-size: 10px; }
  .prototype-banner strong { font-size: 10px; }
  .prototype-banner small { font-size: 9px; }
  .panel-header h2 { font-size: 15px; }
  .panel-header span { font-size: 8px; }
  .summary-strip span, .filing-overview span { font-size: 9px; }
  .summary-strip strong, .filing-overview strong { font-size: 19px; }
  .summary-strip small, .filing-overview small { font-size: 8px; }
  .table-head { font-size: 8px; }
  .table-row { font-size: 10px; }
  .invoice-info b, .risk-info b { font-size: 10px; }
  .invoice-info small, .risk-info small { font-size: 8px; }
  .status-pill { font-size: 9px; }
  .row-action { font-size: 9px; }
  .settings-menu button { font-size: 10px; }
  .settings-section-header h2 { font-size: 15px; }
  .settings-section-header p { font-size: 8px; }
  .entity-row { font-size: 10px; }
  .entity-row b { font-size: 11px; }
  .entity-row small, .entity-row > span { font-size: 8px; }
  .entity-row button { font-size: 9px; }
  .site-footer { font-size: 8px; }
  .assistant-fab { font-size: 10px; }
  .assistant-drawer header strong { font-size: 13px; }
  .assistant-drawer header small { font-size: 8px; }
  .assistant-message p, .user-message p { font-size: 10px; }
  .quick-prompts button { font-size: 9px; }
  .assistant-drawer textarea { font-size: 10px; }
  .assistant-drawer footer > small { font-size: 8px; }
  .detail-drawer header span { font-size: 8px; }
  .detail-drawer h2 { font-size: 20px; }
  .detail-drawer header p { font-size: 9px; }
  .detail-summary span { font-size: 8px; }
  .detail-summary b { font-size: 12px; }
  .detail-section h3 { font-size: 12px; }
  .detail-section dt { font-size: 8px; }
  .detail-section dd { font-size: 10px; }
  .process-timeline b { font-size: 10px; }
  .process-timeline small, .process-timeline time { font-size: 8px; }
  .check-list label { font-size: 10px; }
  .check-list small { font-size: 8px; }
  .toast { font-size: 10px; }
  .app-page[data-page="expenses"] .page-heading h1 { font-size: 30px; }
  .app-page[data-page="expenses"] .page-heading p { font-size: 13px; }
  .app-page[data-page="expenses"] .expense-tabs button { font-size: 11px; }
  .app-page[data-page="expenses"] .expense-tabs b { font-size: 9px; }
  .app-page[data-page="expenses"] .expense-item { font-size: 11px; }
  .app-page[data-page="expenses"] .expense-item small { font-size: 9px; }
  .app-page[data-page="expenses"] .expense-policy-card header b { font-size: 11px; }
  .app-page[data-page="expenses"] .expense-policy-card header small { font-size: 9px; }
  .app-page[data-page="expenses"] .expense-policy-card dt { font-size: 9px; }
  .app-page[data-page="expenses"] .expense-policy-card dd { font-size: 14px; }
  .app-page[data-page="expenses"] .expense-policy-card h3 { font-size: 11px; }
  .app-page[data-page="expenses"] .expense-policy-card p b { font-size: 10px; }
  .app-page[data-page="expenses"] .expense-policy-card p small { font-size: 9px; }
}

/* 一秒互联公司 www.yimiaonet.com：宽屏端统一放大全部工作台模块，保持正式系统的可读比例。 */
@media (min-width: 1600px) {
  :root { --sidebar: 286px; }
  .sidebar { padding: 24px 18px 18px; }
  .brand { gap: 13px; padding: 4px 9px 22px; }
  .brand-icon { width: 46px; height: 46px; }
  .brand-icon svg { width: 23px; height: 23px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 10px; }
  .tenant-card { grid-template-columns: 44px 1fr 30px; gap: 11px; min-height: 74px; padding: 12px; }
  .tenant-logo { width: 42px; height: 42px; font-size: 15px; }
  .tenant-card strong { font-size: 13px; }
  .tenant-card small { font-size: 10px; }
  .main-nav { margin-top: 17px; }
  .main-nav p { margin: 22px 11px 9px; font-size: 11px; }
  .main-nav button { height: 50px; grid-template-columns: 29px 1fr auto; gap: 10px; padding: 0 13px; font-size: 14px; }
  .main-nav button svg { width: 20px; height: 20px; }
  .main-nav em { min-width: 22px; height: 22px; font-size: 11px; }
  .sidebar-status { padding: 18px 11px; }
  .sidebar-status > div, .sidebar-status p { font-size: 11px; }
  .sidebar-status > small { font-size: 10px; }
  .sidebar-footer { gap: 10px; padding-top: 11px; }
  .sidebar-footer button, .sidebar-footer a { font-size: 11px; }

  .topbar { height: 74px; padding: 0 34px; }
  .breadcrumb { font-size: 12px; }
  .topbar-actions { gap: 9px; }
  .period-button, .account-button { height: 44px; padding: 0 14px; font-size: 13px; }
  .account-button span { width: 32px; height: 32px; font-size: 12px; }
  .account-button strong { font-size: 13px; }
  .icon-button { width: 44px; height: 44px; }
  .content-area { padding: 34px 36px 48px; }
  .page-heading { min-height: 104px; margin-bottom: 22px; }
  .page-heading h1 { margin-top: 4px; font-size: 36px; }
  .page-heading p { max-width: 920px; font-size: 15px; }
  .eyebrow { font-size: 12px; }
  .heading-actions { gap: 12px; padding-top: 8px; }
  .primary-button, .secondary-button, .app-page[data-page="expenses"] .heading-actions button { min-height: 46px; gap: 8px; padding: 0 18px; font-size: 13px; }
  .primary-button svg, .secondary-button svg { width: 18px; height: 18px; }
  .secondary-button.compact { min-height: 42px; padding: 0 14px; font-size: 12px; }

  .prototype-banner { min-height: 64px; grid-template-columns: 34px 1fr auto; gap: 14px; margin-bottom: 20px; padding: 12px 17px; }
  .prototype-banner strong { font-size: 13px; }
  .prototype-banner small { font-size: 11px; }
  .prototype-banner button { font-size: 11px; }
  .panel-header { min-height: 72px; padding: 18px 22px; }
  .panel-header h2 { font-size: 19px; }
  .panel-header span { font-size: 11px; }
  .kpi-grid { gap: 18px; margin-bottom: 19px; }
  .kpi-card { min-height: 158px; padding: 20px 21px; }
  .kpi-card header span { font-size: 13px; }
  .kpi-card header svg { width: 21px; height: 21px; }
  .kpi-card > strong { font-size: 36px; }
  .kpi-card footer { font-size: 11px; }
  .kpi-card footer b { font-size: 12px; }
  .dashboard-grid, .lower-grid, .expense-layout, .approval-board, .filing-layout, .archive-layout, .report-grid, .report-lower { gap: 20px; }
  .dashboard-grid, .lower-grid, .report-grid { margin-bottom: 20px; }

  .close-progress { grid-template-columns: 195px 1fr; gap: 18px; padding: 21px; }
  .progress-ring { width: 154px; height: 154px; }
  .progress-ring::after { width: 116px; height: 116px; }
  .progress-ring strong { font-size: 27px; }
  .progress-ring small { font-size: 9px; }
  .close-stages button { min-height: 53px; grid-template-columns: 31px 1fr 38px; gap: 11px; padding: 7px 9px; }
  .close-stages button > i, .close-stages button > svg { width: 28px; height: 28px; }
  .close-stages strong { font-size: 11px; }
  .close-stages small, .close-stages b { font-size: 9px; }
  .deadline-hero { padding: 17px 20px; }
  .deadline-hero > span, .deadline-hero p { font-size: 10px; }
  .deadline-hero > strong { font-size: 41px; }
  .deadline-list { padding: 13px 19px 17px; }
  .deadline-list p { min-height: 46px; }
  .deadline-list b { font-size: 10px; }
  .deadline-list small { font-size: 9px; }
  .chart-summary { gap: 34px; padding: 16px 20px 0; }
  .chart-summary span { font-size: 9px; }
  .chart-summary strong { font-size: 14px; }
  .bar-chart { height: 156px; padding: 20px 27px 0; }
  .chart-labels { padding: 9px 15px 15px; font-size: 9px; }
  .task-list { padding: 6px 17px 13px; }
  .task-item { grid-template-columns: 37px 1fr auto; gap: 11px; min-height: 63px; }
  .task-item > span { width: 34px; height: 34px; }
  .task-item b { font-size: 10px; }
  .task-item small, .task-item em { font-size: 9px; }
  .risk-donut { width: 138px; height: 138px; margin-top: 18px; }
  .risk-donut::after { width: 96px; height: 96px; }
  .risk-distribution li, .category-panel li { min-height: 34px; font-size: 10px; }

  .summary-strip, .filing-overview, .archive-grid { margin-bottom: 18px; }
  .summary-strip > div, .filing-overview > div { min-height: 100px; padding: 18px 21px; }
  .summary-strip span, .filing-overview span { font-size: 12px; }
  .summary-strip strong, .filing-overview strong { font-size: 27px; }
  .summary-strip small, .filing-overview small { font-size: 11px; }
  .table-toolbar { min-height: 72px; padding: 14px 19px; }
  .search-box { min-width: 340px; height: 44px; padding: 0 13px; }
  .search-box input { font-size: 13px; }
  .filter-button { height: 39px; padding: 0 13px; font-size: 12px; }
  .table-head { min-height: 50px; font-size: 11px; }
  .table-row { min-height: 74px; padding: 11px 19px; font-size: 13px; }
  .invoice-info b, .risk-info b { font-size: 13px; }
  .invoice-info small, .risk-info small { font-size: 11px; }
  .status-pill, .row-action { font-size: 12px; }

  .app-page[data-page="expenses"] .page-heading h1 { font-size: 36px; }
  .app-page[data-page="expenses"] .page-heading p { font-size: 15px; }
  .app-page[data-page="expenses"] .expense-tabs { gap: 10px; margin-bottom: 19px; }
  .app-page[data-page="expenses"] .expense-tabs button { min-height: 52px; padding: 0 21px; font-size: 14px; }
  .app-page[data-page="expenses"] .expense-tabs b { font-size: 11px; }
  .app-page[data-page="expenses"] .expense-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .app-page[data-page="expenses"] .expense-list-panel .table-toolbar { min-height: 74px; padding: 15px 19px; }
  .app-page[data-page="expenses"] .expense-list-panel .search-box { min-width: 350px; height: 44px; }
  .app-page[data-page="expenses"] .expense-list-panel .search-box input { font-size: 13px; }
  .app-page[data-page="expenses"] .expense-item { grid-template-columns: 54px minmax(180px,1.55fr) 96px 100px 88px 82px 70px; gap: 16px; min-height: 96px; padding: 15px 19px; font-size: 14px; }
  .app-page[data-page="expenses"] .expense-item > span:first-child { width: 48px; height: 48px; font-size: 15px; }
  .app-page[data-page="expenses"] .expense-item small { font-size: 12px; }
  .app-page[data-page="expenses"] .expense-policy-card > header { grid-template-columns: 50px 1fr; gap: 13px; padding: 22px; }
  .app-page[data-page="expenses"] .expense-policy-card header > span { width: 48px; height: 48px; }
  .app-page[data-page="expenses"] .expense-policy-card header b { font-size: 15px; }
  .app-page[data-page="expenses"] .expense-policy-card header small { font-size: 12px; }
  .app-page[data-page="expenses"] .expense-policy-card dl div { padding: 19px 5px; }
  .app-page[data-page="expenses"] .expense-policy-card dt { font-size: 12px; }
  .app-page[data-page="expenses"] .expense-policy-card dd { font-size: 20px; }
  .app-page[data-page="expenses"] .expense-policy-card h3 { margin: 21px 22px 11px; font-size: 15px; }
  .app-page[data-page="expenses"] .expense-policy-card > p { padding: 14px 22px; }
  .app-page[data-page="expenses"] .expense-policy-card p b { font-size: 13px; }
  .app-page[data-page="expenses"] .expense-policy-card p small { font-size: 12px; }

  .approval-kpis { gap: 15px; margin-bottom: 17px; }
  .approval-kpis article { min-height: 112px; gap: 8px; padding: 18px 20px; }
  .approval-kpis span { font-size: 12px; }
  .approval-kpis strong { font-size: 30px; }
  .approval-kpis small { font-size: 11px; }
  .approval-column { min-height: 555px; padding: 17px; }
  .approval-column > header { padding: 0 4px 14px; font-size: 12px; }
  .approval-card { margin-bottom: 14px; padding: 18px; }
  .approval-card header b { font-size: 14px; }
  .approval-card header small, .approval-card header em { font-size: 11px; }
  .approval-card > strong { margin: 15px 0 12px; font-size: 25px; }
  .approval-card dt, .approval-card footer span { font-size: 11px; }
  .approval-card dd, .approval-card footer button { font-size: 12px; }
  .approval-guide { min-height: 380px; padding: 23px; }
  .approval-guide h2 { font-size: 18px; }
  .approval-guide p, .approval-guide ul, .approval-guide button { font-size: 10px; }

  .filing-layout { grid-template-columns: minmax(0,1fr) 330px; }
  .filing-task { min-height: 86px; padding: 10px 4px; font-size: 13px; }
  .filing-task > span:first-child { width: 46px; height: 46px; }
  .filing-task b { font-size: 14px; }
  .filing-task small, .filing-task button, .status-chip { font-size: 11px; }
  .readiness-score { padding: 23px 12px 18px; }
  .readiness-score strong { font-size: 48px; }
  .readiness-bars span, .readiness-bars em, .readiness-note span { font-size: 9px; }
  .readiness-note b { font-size: 10px; }

  .risk-hero { grid-template-columns: 190px 1fr 230px; min-height: 180px; margin-bottom: 17px; padding: 20px 25px; }
  .risk-hero > div:first-child span, .risk-hero-summary p { font-size: 10px; }
  .risk-hero > div:first-child strong { font-size: 52px; }
  .risk-hero > div:first-child small, .health-chart footer { font-size: 9px; }
  .health-chart { height: 130px; padding: 0 30px; }
  .health-chart svg { height: 98px; }
  .risk-hero-summary b { font-size: 15px; }

  .archive-search { height: 56px; margin-bottom: 16px; padding: 0 17px; }
  .archive-search input { font-size: 11px; }
  .archive-search button { font-size: 10px; }
  .archive-stat { grid-template-columns: 49px 1fr; min-height: 100px; padding: 17px 21px; }
  .archive-stat > svg { width: 46px; height: 46px; }
  .archive-stat b { font-size: 22px; }
  .archive-stat small { font-size: 11px; }
  .archive-layout { grid-template-columns: minmax(0,1fr) 330px; }
  .archive-batch { min-height: 88px; padding: 12px 19px; font-size: 13px; }
  .archive-batch > span:first-child { width: 48px; height: 48px; }
  .archive-batch b { font-size: 14px; }
  .archive-batch small, .archive-batch > span, .archive-batch button { font-size: 11px; }
  .integrity-ring { width: 160px; height: 160px; }
  .integrity-ring::after { width: 122px; height: 122px; }
  .archive-integrity li { min-height: 48px; }
  .archive-integrity li b { font-size: 10px; }
  .archive-integrity li small { font-size: 9px; }

  .report-filters { gap: 10px; margin-bottom: 16px; }
  .report-filters button { height: 39px; padding: 0 12px; font-size: 10px; }
  .report-grid { grid-template-columns: minmax(0,1.6fr) 330px; }
  .legend { font-size: 9px; }
  .stacked-chart { height: 270px; gap: 31px; padding: 31px 38px 0; }
  .category-donut { width: 180px; height: 180px; }
  .category-donut::after { width: 130px; height: 130px; }
  .ranking-head, .ranking-table p { min-height: 52px; font-size: 10px; }
  .ranking-head { min-height: 40px; font-size: 9px; }
  .ai-insight { padding: 25px; }
  .ai-insight h2 { font-size: 18px; }
  .ai-insight p, .ai-insight button { font-size: 10px; }

  .settings-layout { grid-template-columns: 225px 1fr; gap: 18px; }
  .settings-menu { padding: 10px; }
  .settings-menu button { min-height: 52px; padding: 0 14px; font-size: 13px; }
  .settings-section-header { padding: 21px 23px; }
  .settings-section-header h2 { font-size: 19px; }
  .settings-section-header p { font-size: 12px; }
  .entity-row { min-height: 86px; padding: 12px 22px; font-size: 13px; }
  .entity-row > span:first-child { width: 48px; height: 48px; }
  .entity-row b { font-size: 14px; }
  .entity-row small, .entity-row > span, .entity-row button { font-size: 11px; }

  .site-footer { min-height: 58px; padding: 0 36px; font-size: 11px; }
  .assistant-fab { right: 30px; bottom: 31px; height: 52px; padding: 0 18px; font-size: 13px; }
  .assistant-drawer, .detail-drawer { width: min(560px,100vw); }
  .assistant-drawer > header, .detail-drawer > header { min-height: 82px; padding: 17px 21px; }
  .assistant-body, .detail-body { padding: 21px; }
  .assistant-message p, .user-message p { font-size: 13px; }
  .detail-drawer h2 { font-size: 23px; }
  .detail-summary b { font-size: 14px; }
  .detail-section h3 { font-size: 13px; }
  .detail-section dd, .process-timeline b { font-size: 11px; }
}

/* 一秒互联公司 www.yimiaonet.com：普通桌面端同步放大模块，避免1440宽度下界面像缩略图。 */
@media (min-width: 1200px) and (max-width: 1599px) {
  :root { --sidebar: 250px; }
  .sidebar { padding: 20px 15px 16px; }
  .brand-icon { width: 40px; height: 40px; }
  .brand small { font-size: 9px; }
  .tenant-card { min-height: 64px; padding: 10px; }
  .tenant-card strong { font-size: 12px; }
  .tenant-card small { font-size: 10px; }
  .main-nav p { font-size: 10px; }
  .main-nav button { height: 46px; font-size: 13px; }
  .main-nav button svg { width: 18px; height: 18px; }
  .sidebar-status > div, .sidebar-status p, .sidebar-footer button, .sidebar-footer a { font-size: 10px; }
  .sidebar-status > small { font-size: 9px; }

  .topbar { height: 66px; padding: 0 26px; }
  .period-button, .account-button { height: 40px; font-size: 12px; }
  .account-button strong { font-size: 12px; }
  .icon-button { width: 40px; height: 40px; }
  .content-area { padding: 28px 28px 40px; }
  .page-heading { min-height: 92px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 33px; }
  .page-heading p { font-size: 14px; }
  .eyebrow { font-size: 11px; }
  .primary-button, .secondary-button, .app-page[data-page="expenses"] .heading-actions button { min-height: 43px; font-size: 12px; }
  .prototype-banner { min-height: 58px; padding: 11px 14px; }
  .prototype-banner strong { font-size: 12px; }
  .prototype-banner small, .prototype-banner button { font-size: 10px; }
  .panel-header { min-height: 64px; padding: 15px 18px; }
  .panel-header h2 { font-size: 17px; }
  .panel-header span { font-size: 10px; }
  .kpi-card { min-height: 138px; padding: 17px 18px; }
  .kpi-card header span { font-size: 12px; }
  .kpi-card > strong { font-size: 31px; }
  .kpi-card footer, .kpi-card footer b { font-size: 10px; }

  .summary-strip > div, .filing-overview > div { min-height: 88px; padding: 15px 17px; }
  .summary-strip span, .filing-overview span { font-size: 11px; }
  .summary-strip strong, .filing-overview strong { font-size: 23px; }
  .summary-strip small, .filing-overview small { font-size: 10px; }
  .table-toolbar { min-height: 64px; padding: 12px 15px; }
  .search-box { height: 40px; }
  .search-box input { font-size: 12px; }
  .table-head { min-height: 45px; font-size: 10px; }
  .table-row { min-height: 68px; padding: 9px 15px; font-size: 12px; }
  .invoice-info b, .risk-info b { font-size: 12px; }
  .invoice-info small, .risk-info small { font-size: 10px; }
  .status-pill, .row-action { font-size: 11px; }

  .app-page[data-page="expenses"] .page-heading h1 { font-size: 33px; }
  .app-page[data-page="expenses"] .page-heading p { font-size: 14px; }
  .app-page[data-page="expenses"] .expense-tabs button { min-height: 47px; padding: 0 17px; font-size: 13px; }
  .app-page[data-page="expenses"] .expense-tabs b { font-size: 10px; }
  .app-page[data-page="expenses"] .expense-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
  .app-page[data-page="expenses"] .expense-list-panel .table-toolbar { min-height: 66px; }
  .app-page[data-page="expenses"] .expense-list-panel .search-box { min-width: 280px; height: 40px; }
  .app-page[data-page="expenses"] .expense-list-panel .search-box input { font-size: 12px; }
  .app-page[data-page="expenses"] .expense-item { grid-template-columns: 48px minmax(150px,1.5fr) 78px 82px 74px 70px 62px; gap: 10px; min-height: 88px; padding: 13px 16px; font-size: 13px; }
  .app-page[data-page="expenses"] .expense-item > span:first-child { width: 44px; height: 44px; font-size: 13px; }
  .app-page[data-page="expenses"] .expense-item small { font-size: 11px; }
  .app-page[data-page="expenses"] .expense-policy-card > header { grid-template-columns: 44px 1fr; gap: 10px; padding: 18px; }
  .app-page[data-page="expenses"] .expense-policy-card header > span { width: 42px; height: 42px; }
  .app-page[data-page="expenses"] .expense-policy-card header b { font-size: 13px; }
  .app-page[data-page="expenses"] .expense-policy-card header small { font-size: 11px; }
  .app-page[data-page="expenses"] .expense-policy-card dt { font-size: 10px; }
  .app-page[data-page="expenses"] .expense-policy-card dd { font-size: 17px; }
  .app-page[data-page="expenses"] .expense-policy-card h3 { font-size: 13px; }
  .app-page[data-page="expenses"] .expense-policy-card p b { font-size: 12px; }
  .app-page[data-page="expenses"] .expense-policy-card p small { font-size: 10px; }

  .approval-kpis article { min-height: 96px; padding: 15px 17px; }
  .approval-kpis span { font-size: 11px; }
  .approval-kpis strong { font-size: 25px; }
  .approval-kpis small { font-size: 10px; }
  .approval-card { padding: 15px; }
  .approval-card header b { font-size: 13px; }
  .approval-card header small, .approval-card header em, .approval-card dt, .approval-card footer span { font-size: 10px; }
  .approval-card dd, .approval-card footer button { font-size: 11px; }
  .filing-task, .archive-batch, .entity-row { min-height: 76px; font-size: 12px; }
  .filing-task b, .archive-batch b, .entity-row b { font-size: 13px; }
  .filing-task small, .filing-task button, .status-chip, .archive-batch small, .archive-batch > span, .archive-batch button, .entity-row small, .entity-row > span, .entity-row button { font-size: 10px; }
  .settings-menu button { min-height: 46px; font-size: 12px; }
  .settings-section-header h2 { font-size: 17px; }
  .settings-section-header p { font-size: 10px; }
  .site-footer { min-height: 52px; padding: 0 28px; font-size: 10px; }
  .assistant-fab { height: 48px; font-size: 12px; }
}

/* 一秒互联公司 www.yimiaonet.com：手机端提高文字、按钮和卡片比例，保证触控与阅读体验。 */
@media (max-width: 680px) {
  .topbar { height: 62px; padding: 0 12px; }
  .mobile-menu, .period-button, .account-button, .icon-button { min-width: 40px; height: 40px; }
  .content-area { padding: 18px 14px 30px; }
  .page-heading { gap: 12px; margin-bottom: 17px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { font-size: 13px; line-height: 1.65; }
  .eyebrow { font-size: 10px; }
  .heading-actions { gap: 8px; }
  .heading-actions button, .primary-button, .secondary-button { min-height: 42px; padding: 0 12px; font-size: 12px; }
  .prototype-banner { min-height: 70px; gap: 10px; padding: 12px; }
  .prototype-banner strong { font-size: 12px; }
  .prototype-banner small { font-size: 11px; line-height: 1.6; }
  .prototype-banner button { font-size: 10px; }
  .kpi-grid { gap: 10px; }
  .kpi-card { min-height: 138px; padding: 16px; }
  .kpi-card header span { font-size: 12px; }
  .kpi-card header svg { width: 18px; height: 18px; }
  .kpi-card > strong { font-size: 30px; }
  .kpi-card footer, .kpi-card footer b { font-size: 10px; line-height: 1.5; }
  .panel-header { min-height: 62px; padding: 14px 15px; }
  .panel-header h2 { font-size: 17px; }
  .panel-header span { font-size: 10px; }
  .close-progress { padding: 17px; }
  .close-stages strong { font-size: 12px; }
  .close-stages small, .close-stages b { font-size: 10px; }
  .summary-strip > div, .filing-overview > div, .archive-stat { min-height: 92px; padding: 14px; }
  .summary-strip span, .filing-overview span { font-size: 11px; }
  .summary-strip strong, .filing-overview strong { font-size: 22px; }
  .summary-strip small, .filing-overview small, .archive-stat small { font-size: 10px; }
  .table-toolbar { min-height: 62px; padding: 11px; }
  .search-box { height: 42px; }
  .search-box input { font-size: 12px; }
  .table-row { min-height: 72px; font-size: 12px; }
  .invoice-info b, .risk-info b { font-size: 12px; }
  .invoice-info small, .risk-info small { font-size: 10px; }
  .status-pill, .row-action { font-size: 10px; }
  .expense-tabs { overflow-x: auto; }
  .expense-tabs { scrollbar-width: none; }
  .expense-tabs::-webkit-scrollbar { display: none; }
  .expense-tabs button { min-height: 46px; flex: none; padding: 0 15px; font-size: 12px; }
  .app-page[data-page="expenses"] .expense-list-panel .table-toolbar { min-height: 112px; }
  .app-page[data-page="expenses"] .expense-list-panel .search-box { min-width: 100%; }
  .app-page[data-page="expenses"] .expense-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "avatar info amount"
      "avatar type status"
      "avatar date action";
    gap: 7px 11px;
    min-height: 122px;
    padding: 14px 12px;
    font-size: 12px;
  }
  .app-page[data-page="expenses"] .expense-item > span:first-child { grid-area: avatar; width: 44px; height: 44px; align-self: start; font-size: 13px; }
  .app-page[data-page="expenses"] .expense-item > div { grid-area: info; gap: 4px; }
  .app-page[data-page="expenses"] .expense-item > div b { font-size: 13px; }
  .app-page[data-page="expenses"] .expense-item small { font-size: 10px; }
  .app-page[data-page="expenses"] .expense-item > span:nth-child(3) { grid-area: type; color: var(--muted); }
  .app-page[data-page="expenses"] .expense-item > strong { grid-area: amount; justify-self: end; font-size: 14px; }
  .app-page[data-page="expenses"] .expense-item > span:nth-child(5) { grid-area: date; color: var(--muted); font-size: 10px; }
  .app-page[data-page="expenses"] .expense-item > em { grid-area: status; justify-self: end; }
  .app-page[data-page="expenses"] .expense-item > button { grid-area: action; justify-self: end; min-width: 58px; min-height: 30px; font-size: 10px; }
  .approval-kpis article { min-height: 96px; padding: 14px; }
  .approval-kpis span { font-size: 11px; }
  .approval-kpis strong { font-size: 25px; }
  .approval-kpis small { font-size: 10px; }
  .approval-card { padding: 15px; }
  .approval-card header b { font-size: 13px; }
  .approval-card header small, .approval-card header em, .approval-card dt, .approval-card footer span { font-size: 10px; }
  .approval-card dd, .approval-card footer button { font-size: 11px; }
  .filing-task, .archive-batch, .entity-row { min-height: 78px; font-size: 12px; }
  .filing-task b, .archive-batch b, .entity-row b { font-size: 13px; }
  .filing-task small, .filing-task button, .status-chip, .archive-batch small, .archive-batch > span, .archive-batch button, .entity-row small, .entity-row > span, .entity-row button { font-size: 10px; }
  .settings-menu button { min-height: 46px; font-size: 12px; }
  .settings-section-header h2 { font-size: 17px; }
  .settings-section-header p { font-size: 11px; }
  .site-footer { min-height: 64px; padding: 12px 14px; font-size: 10px; line-height: 1.6; }
  .assistant-fab { width: 46px; height: 46px; }
  .assistant-message p, .user-message p { font-size: 12px; }
}
