:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182230;
  background: #f6f8fa;
  font-size: 14px;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
  --canvas: #f6f8fa;
  --surface: #fff;
  --line: #e3e8ef;
  --muted: #667085;
  --secondary: #475467;
  --text: #182230;
  --control-border: #98a2b3;
  --danger: #b42318;
  --success: #18794e;
  --warning: #9a5b00;
  --info: #245bdb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.bootstrap-loading {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: safe center;
  overflow: auto;
  padding: 24px;
  background: var(--canvas);
}
.bootstrap-loading[hidden],
.bootstrap-loading:not([data-managed]):has(+ #main > *),
.bootstrap-loading:has(noscript p) :is(#oa-startup-message, .bootstrap-loading-indicator) {
  display: none;
}
.bootstrap-loading[data-managed]:not([hidden]) + #main .auth-loading {
  visibility: hidden;
}
.bootstrap-loading-content {
  max-width: 24rem;
  text-align: center;
}
.bootstrap-loading-content img {
  display: block;
  margin: 0 auto 24px;
}
.bootstrap-loading-content p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.bootstrap-loading-indicator {
  width: 112px;
  height: 3px;
  margin: 16px auto 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line);
}
.bootstrap-loading-indicator::after {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: #c9363e;
  content: "";
  animation: bootstrap-progress 1.2s ease-in-out infinite alternate;
}
@keyframes bootstrap-progress {
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .bootstrap-loading-indicator::after {
    margin-inline: auto;
    animation: none;
  }
}
.bootstrap-loading-content button {
  min-height: 44px;
  margin-top: 20px;
  padding: 8px 16px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
}
.bootstrap-loading-content button:hover {
  border-color: #c9363e;
  color: #c9363e;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--action, #c9363e);
}
/* 点击后的程序复焦也可能匹配 :focus-visible，统一按实际输入方式隐藏外框。 */
:root[data-pointer-focus] :focus-visible {
  outline-style: none !important;
}
/* 字段只使用一层边框；任何焦点状态均不添加外圈、发光或阴影。 */
input,
textarea,
select,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--action, #c9363e);
}
input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus {
  border-color: #b42318;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
  line-height: 18px;
}
input,
select,
textarea {
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #667085;
}
input,
select,
textarea {
  border: 1px solid #98a2b3;
  border-radius: 8px;
  background: #fff;
  color: #182230;
  padding: 10px 12px;
}
input[readonly] {
  background: #f6f8fa;
  color: #475467;
}
textarea {
  resize: vertical;
  min-height: 112px;
}
button {
  border: 0;
  background: none;
}
code {
  font-size: 13px;
}
.icon {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.muted {
  color: var(--muted);
}
.danger-text {
  color: var(--danger);
}
.spacer {
  flex: 1;
}
.readable {
  max-width: 70ch;
}
.app {
  min-height: 100dvh;
  --brand: #ed4040;
  --action: #c9363e;
  --action-hover: #af2830;
  --brand-soft: #fff0f1;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: #fff;
  padding: 12px 16px;
  border: 1px solid var(--action);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #f9fafb;
  border-right: 1px solid var(--line);
  padding: 26px 16px 18px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 32px;
}
.brand img {
  object-fit: contain;
}
.brand strong {
  font-size: 21px;
  letter-spacing: -0.02em;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  color: #475467;
}
.nav-item:hover {
  background: #eef1f5;
}
.nav-item.active {
  background: var(--brand-soft);
  color: var(--action);
  font-weight: 600;
}
.nav-item small {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  border-radius: 12px;
  padding: 1px 6px;
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 24px 10px;
}
.sidebar-bottom {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
}
.sidebar-bottom strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.sidebar-bottom small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e7ecf4;
  color: #344054;
  display: grid;
  place-items: center;
  font-weight: 600;
  flex: none;
}
.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.workspace {
  margin-left: 224px;
  min-width: 0;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  position: relative;
  z-index: 20;
}
.search-box {
  width: min(448px, 50%);
  position: relative;
  display: flex;
  align-items: center;
  background: #f3f5f8;
  border-radius: 8px;
  padding: 0 12px;
  gap: 10px;
}
.search-box > .icon {
  color: #667085;
}
.search-box input {
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 0;
  font-size: 13px;
}
.search-results {
  position: absolute;
  left: 0;
  top: 44px;
  width: 100%;
  background: #fff;
  box-shadow: 0 8px 24px #1822301a;
  border-radius: 8px;
  padding: 6px;
}
.search-results button {
  padding: 12px;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 6px;
}
.search-results button:hover {
  background: var(--brand-soft);
}
.search-results p {
  padding: 14px;
  color: var(--muted);
}
.top-date {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.account-button > .icon {
  font-size: 16px;
  color: var(--muted);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: none;
}
.icon-button:hover {
  background: #eef1f5;
}
.icon-button:disabled {
  opacity: 0.45;
}
.notification-button {
  position: relative;
}
.notification-dot {
  position: absolute;
  right: 7px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.menu-toggle,
.nav-scrim,
.mobile-nav {
  display: none;
}
main {
  padding: 28px;
  max-width: 1680px;
  margin: 0 auto;
  min-height: calc(100dvh - 108px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-heading > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.page-heading > .heading-actions {
  min-width: 0;
  flex-wrap: wrap;
}
.page-heading > .heading-actions:empty {
  display: none;
}
.page-foot {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  padding: 0 28px 20px;
}
.segmented {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 8px;
  gap: 3px;
}
.segmented button {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
}
.segmented .selected {
  background: var(--action);
  color: #fff;
}
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 20px;
  transition: background 0.12s ease-out;
}
.button.primary {
  background: var(--action);
  color: #fff;
}
.button.primary:not(:disabled):hover {
  background: var(--action-hover);
}
.button.secondary {
  background: #fff;
  border: 1px solid #98a2b3;
}
.button.secondary:not(:disabled):hover {
  background: #f6f8fa;
}
.button.danger {
  background: #b42318;
  color: #fff;
}
.button.danger:not(:disabled):hover {
  background: #912018;
}
.button.text {
  color: var(--action);
  padding: 5px 16px;
  min-height: 32px;
}
.button.text:not(:disabled):hover {
  background: var(--brand-soft);
}
.button:disabled {
  /* 禁用态不响应 hover，手机触碰留下的悬停状态也不能恢复主操作颜色。 */
  background: #e9edf2;
  color: #667085;
  border-color: #d4dae2;
}
.button .icon {
  font-size: 17px;
}
loong-button.oa-action {
  max-inline-size: 100%;
}
loong-button.oa-action::part(button) {
  min-block-size: 40px;
  padding-inline: 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}
loong-button.oa-action.text::part(button) {
  min-block-size: 32px;
  color: var(--action, #c9363e);
  --loong-button-hover: var(--brand-soft, #fff0f1);
}
loong-button.oa-action[disabled]::part(button) {
  background: #e9edf2;
  border-color: #d4dae2;
  color: #667085;
  opacity: 1;
}
loong-button.oa-action::part(button):focus-visible {
  outline: 2px solid var(--loong-focus);
  outline-offset: 2px;
}
:root[data-pointer-focus] loong-button.oa-action::part(button) {
  outline: none;
}
@media (max-width: 767px) {
  loong-button.oa-action::part(button),
  loong-button.oa-action.text::part(button) {
    min-block-size: 44px;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.badge:where(:not(loong-badge)) {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}
.badge.info:where(:not(loong-badge)) {
  color: #245bdb;
  background: #eff4ff;
}
.badge.success:where(:not(loong-badge)) {
  color: #18794e;
  background: #ebf8f1;
}
.badge.warning:where(:not(loong-badge)) {
  color: #9a5b00;
  background: #fff5e3;
}
.badge.danger:where(:not(loong-badge)) {
  color: #b42318;
  background: #fef3f2;
}
.badge.neutral:where(:not(loong-badge)) {
  color: #475467;
  background: #f2f4f7;
}
loong-badge.badge {
  --loong-surface-muted: #f2f4f7;
  --loong-success-soft: #ebf8f1;
  --loong-warning-soft: #fff5e3;
  --loong-danger-soft: #fef3f2;
}
loong-badge.badge.info {
  --loong-primary: var(--info);
  --loong-primary-soft: #eff4ff;
}
loong-badge.badge::part(badge) {
  min-block-size: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}
loong-badge.badge.plain::part(badge) {
  background: transparent;
  color: inherit;
}
.count {
  background: var(--brand-soft);
  color: var(--action);
  font-size: 11px;
  border-radius: 10px;
  padding: 2px 6px;
  line-height: 16px;
}
.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.primary-column,
.support-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  overflow: visible;
}
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
}
.panel-toolbar > .muted {
  font-size: 12px;
}
.summary-strip {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 10px;
}
.summary-strip > div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid var(--line);
}
.summary-strip > div:last-child {
  border: 0;
}
.summary-strip .icon {
  font-size: 20px;
  color: #475467;
}
.summary-strip span {
  font-size: 13px;
  color: #475467;
}
.summary-strip strong {
  font-size: 23px;
  font-weight: 600;
  line-height: 28px;
}
.tabs {
  display: flex;
  align-items: stretch;
  gap: 22px;
  min-width: 0;
}
.tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
  padding: 11px 0 14px;
  border-bottom: 2px solid transparent;
}
.tabs button.selected {
  color: #182230;
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.task-panel .panel-toolbar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.task-panel .panel-toolbar > .button {
  margin-bottom: 12px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  border-bottom: 1px solid #edf0f4;
  padding: 18px 22px;
}
.task-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eff4ff;
  color: #245bdb;
  flex: none;
}
.task-icon.danger {
  background: #fff0f1;
  color: #c9363e;
}
.task-icon.neutral {
  background: #f1f4f7;
  color: #475467;
}
.task-copy {
  min-width: 0;
  flex: 1;
}
.task-copy strong {
  font-size: 13px;
  display: block;
}
.task-copy p {
  font-size: 12px;
  color: #667085;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-amount {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  min-width: 92px;
  text-align: right;
}
.task-date {
  font-size: 11px;
  min-width: 82px;
  text-align: right;
  color: #667085;
}
.task-date.danger {
  color: #b42318;
}
.list-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px;
  width: 100%;
  color: #667085;
  font-size: 12px;
}
.list-more:hover {
  color: var(--action);
  background: var(--brand-soft);
}
.project-list {
  padding: 0 22px;
}
.project-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid #edf0f4;
  text-align: left;
}
.project-row > div {
  flex: 1;
  min-width: 0;
}
.project-row strong {
  font-size: 13px;
}
.project-row p {
  font-size: 12px;
  color: #667085;
  margin-top: 5px;
}
.project-monogram {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f4f7;
  display: grid;
  place-items: center;
  color: #475467;
}
.project-row > .icon {
  font-size: 17px;
  color: #667085;
}
.timeline {
  list-style: none;
  padding: 6px 22px 8px;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 26px 22px;
}
.timeline li::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--action);
  border-radius: 50%;
  left: 0;
  top: 5px;
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  width: 1px;
  height: calc(100% - 16px);
  background: var(--line);
}
.timeline small {
  color: #667085;
  font-size: 11px;
  display: block;
  margin-bottom: 5px;
}
.timeline strong {
  display: block;
  font-size: 13px;
}
.timeline p {
  font-size: 12px;
  color: #667085;
  margin-top: 5px;
}
.timeline .icon {
  font-size: 13px;
  margin-right: 5px;
}
.timeline.compact {
  padding: 14px 0 4px;
}
.announcement {
  padding: 0 22px 20px;
}
.announcement > .icon {
  font-size: 22px;
  color: var(--action);
  margin-bottom: 12px;
}
.announcement h3 {
  font-size: 13px;
}
.announcement p {
  font-size: 12px;
  color: #667085;
  margin: 8px 0;
}
.quick-actions {
  padding: 0 2px;
}
.quick-actions > div {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.quick-actions button {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 7px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
}
.quick-actions button:hover {
  background: var(--brand-soft);
}
.simple-record {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
}
.simple-record > div {
  flex: 1;
}
.simple-record p {
  font-size: 12px;
  color: #667085;
  margin-top: 5px;
}
.approval-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.approval-inbox {
  overflow: hidden;
}
.inbox-head {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inbox-head input {
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
}
.inbox-item {
  display: flex;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 17px 18px;
  border-top: 1px solid #edf0f4;
}
.inbox-item:hover {
  background: #f6f8fa;
}
.inbox-item.selected {
  background: var(--brand-soft);
}
.inbox-item > div {
  min-width: 0;
}
.inbox-item strong {
  font-size: 13px;
}
.inbox-item p {
  font-size: 11px;
  color: #667085;
  margin: 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 192px;
}
.inbox-item small {
  color: #667085;
  font-size: 11px;
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.detail-heading p {
  font-size: 12px;
  margin-bottom: 6px;
}
.detail-heading h2 {
  font-size: 20px;
}
.detail-body {
  padding: 24px;
}
.detail-body > h3 {
  margin: 26px 0 12px;
}
.detail-body .readable {
  color: #475467;
  font-size: 13px;
}
.detail-total {
  background: #f7f9fb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-total span {
  font-size: 13px;
  color: #667085;
}
.detail-total strong {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.details-grid {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: start;
  margin: 20px 0;
  font-size: 13px;
}
.details-grid dt {
  color: #667085;
}
.details-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.attachment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 20px;
}
.attachment > .icon {
  color: #b42318;
  font-size: 25px;
}
.attachment strong {
  font-size: 12px;
}
.attachment small {
  display: block;
  color: #667085;
  font-size: 11px;
  margin-top: 5px;
}
.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.project-overview {
  margin-bottom: 24px;
  padding: 22px 24px 0;
}
.project-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  color: #667085;
  font-size: 12px;
}
.milestones {
  display: flex;
  margin: 30px 0;
  gap: 20px;
}
.milestones > div {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}
.milestones > div:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-left: 12px;
}
.milestones span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef1f5;
  color: #667085;
  font-size: 12px;
  flex: none;
}
.milestones strong {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.milestones .done span {
  background: var(--brand-soft);
  color: var(--action);
}
.table-scroll {
  overflow-x: auto;
  padding: 0 22px 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
}
th {
  text-align: left;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  background: #f7f9fb;
  padding: 14px 12px;
  white-space: nowrap;
}
td {
  padding: 18px 12px;
  border-bottom: 1px solid #edf0f4;
  white-space: nowrap;
}
td:first-child {
  min-width: 220px;
}
.table-link {
  padding: 0;
  text-align: left;
  color: #182230;
}
.table-link:hover {
  color: var(--action);
}
.risk-item {
  margin: 0 22px 18px;
}
.risk-item p {
  margin-top: 8px;
  font-size: 12px;
  color: #667085;
}
.support-column .details-grid {
  margin: 0 22px 22px;
}
.finance-summary {
  display: flex;
  gap: 24px;
  padding: 8px 24px 24px;
}
.finance-summary > div {
  flex: 1;
  display: grid;
  gap: 10px;
}
.finance-summary span {
  font-size: 12px;
  color: #667085;
}
.finance-summary strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.finance-summary + .inline-alert {
  margin: 0 24px 24px;
}
.expense-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.form-section {
  padding: 24px;
}
.form-section > h2 {
  margin-bottom: 20px;
}
.form-section > p {
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}
.field > span:first-child {
  font-weight: 500;
}
.field input,
.field select {
  height: 40px;
  width: 100%;
  font-size: 13px;
}
.field textarea {
  width: 100%;
}
.field-error {
  color: #b42318;
  font-size: 12px;
  line-height: 18px;
  margin-top: 2px;
}
[aria-invalid="true"] {
  border-color: #b42318;
}
.expense-lines {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}
.expense-line {
  display: grid;
  grid-template-columns: 22px 110px minmax(100px, 1fr) 120px 32px;
  gap: 10px;
  align-items: end;
}
.line-number {
  padding-bottom: 10px;
  color: #667085;
  font-size: 12px;
}
.expense-line > .icon-button {
  margin-bottom: 2px;
}
.money-field input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.expense-summary {
  padding: 24px;
  position: sticky;
  top: 24px;
}
.expense-summary > h2 {
  margin-bottom: 22px;
}
.expense-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  font-size: 12px;
}
.expense-summary dt {
  color: #667085;
}
.expense-summary dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.net-total {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 22px 0;
  padding: 22px 0;
  display: grid;
  gap: 10px;
}
.net-total span {
  font-size: 12px;
  color: #667085;
}
.net-total strong {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.expense-summary > p {
  font-size: 11px;
}
.upload-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  padding: 24px;
  background: #f7f9fb;
  border: 1px dashed #98a2b3;
  border-radius: 8px;
  color: #667085;
}
.upload-placeholder > .icon {
  font-size: 28px;
}
.upload-placeholder strong {
  font-size: 13px;
  font-weight: 500;
}
.upload-placeholder span {
  font-size: 11px;
}
.form-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: sticky;
  bottom: 12px;
  z-index: 10;
}
.form-actions p {
  margin-right: auto;
  color: #667085;
  font-size: 12px;
}
.component-section {
  padding: 24px;
  margin-bottom: 22px;
}
.component-section > h2 {
  margin-bottom: 8px;
}
.component-section > p {
  color: #667085;
  font-size: 13px;
  margin-bottom: 20px;
}
.demo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.alert-examples {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.inline-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 20px;
}
.inline-alert > .icon {
  margin-top: 1px;
  font-size: 18px;
}
.inline-alert strong {
  font-size: 12px;
  font-weight: 600;
}
.inline-alert p {
  font-size: 12px;
  margin-top: 3px;
  color: inherit;
}
.inline-alert.info {
  background: #eff4ff;
  color: #245bdb;
}
.inline-alert.warning {
  background: #fff5e3;
  color: #9a5b00;
}
.inline-alert.danger {
  background: #fef3f2;
  color: #b42318;
}
.inline-alert.success {
  background: #ebf8f1;
  color: #18794e;
}
.component-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-top: 26px;
}
.checkbox-label input {
  accent-color: var(--action);
  width: 16px;
  height: 16px;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  min-height: 188px;
  padding: 24px;
}
.empty-state > .icon {
  font-size: 30px;
  color: #98a2b3;
}
.empty-state strong {
  font-size: 14px;
  font-weight: 500;
}
.empty-state p {
  font-size: 12px;
  color: #667085;
  max-width: 30ch;
}
.skeleton-group {
  height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.skeleton-group span {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: #e9edf2;
  animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-group span:nth-child(2) {
  width: 80%;
}
.skeleton-group span:nth-child(3) {
  width: 60%;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
.progress-label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #667085;
  margin-top: 12px;
}
.progress-label progress {
  flex: 1;
  height: 8px;
  accent-color: var(--action);
  min-width: 0;
}
.icon-specimens {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.icon-specimens > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #f7f9fb;
  border-radius: 8px;
  padding: 18px 6px;
  min-width: 0;
}
.icon-specimens .icon {
  font-size: 24px;
  color: #344054;
}
.icon-specimens small {
  font-size: 10px;
  color: #667085;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tooltip-anchor {
  position: relative;
  display: inline-block;
}
.tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  max-width: 240px;
  width: max-content;
  white-space: normal;
  padding: 9px 12px;
  background: #182230;
  color: white;
  font-size: 12px;
  border-radius: 6px;
  z-index: 35;
  box-shadow: 0 4px 12px #18223020;
}
.theme-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.theme-layout .component-section {
  margin: 0;
}
.color-input-row {
  display: flex;
  gap: 12px;
}
.color-input-row input[type="color"] {
  width: 52px;
  padding: 4px;
  flex: none;
}
.theme-presets {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  flex-wrap: wrap;
}
.theme-preset {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
}
.theme-preset.selected {
  border-color: var(--action);
  background: var(--brand-soft);
}
.theme-preset span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.theme-preview {
  padding: 20px;
  background: #f7f9fb;
  border-radius: 8px;
  margin-top: 20px;
}
.preview-brand {
  color: var(--action);
  font-size: 12px;
  font-weight: 600;
}
.theme-preview h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}
.theme-preview > p {
  font-size: 12px;
  color: #667085;
}
.theme-preview .field {
  margin-top: 24px;
}
.overlay {
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #182230;
  padding: 0;
  width: min(480px, calc(100vw - 32px));
  max-height: 80dvh;
  box-shadow: 0 18px 70px #18223033;
  overflow: auto;
}
.overlay::backdrop {
  background: #18223066;
}
.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.overlay-header h2 {
  font-size: 17px;
}
.overlay-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
}
.overlay-body > p + p {
  margin-top: 12px;
}
.overlay-body > .field,
.overlay-body > .inline-alert {
  margin-top: 20px;
}
.overlay-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #fff;
}
.overlay.drawer {
  width: min(500px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: 12px 0 0 12px;
}
.drawer .overlay-body {
  min-height: calc(100dvh - 144px);
}
.amount-large {
  font-size: 28px;
  font-weight: 600;
  margin: 18px 0;
  font-variant-numeric: tabular-nums;
}
.request-choices {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.request-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  text-align: left;
}
.request-choice > span {
  flex: 1;
}
.request-choice:hover {
  background: var(--brand-soft);
}
.request-choice.unavailable {
  color: #667085;
  background: #f8fafb;
}
.request-choice small {
  font-size: 11px;
}
.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 12px;
  z-index: 100;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 8px 30px #18223026;
  pointer-events: auto;
  animation: toast-in 0.18s ease-out;
}
.toast > .icon {
  font-size: 22px;
  margin-top: 2px;
}
.toast.success > .icon {
  color: #18794e;
}
.toast.danger > .icon {
  color: #b42318;
}
.toast.info > .icon {
  color: #245bdb;
}
.toast.warning > .icon {
  color: #9a5b00;
}
.toast > div {
  flex: 1;
  min-width: 0;
}
.toast strong {
  font-size: 13px;
}
.toast p {
  font-size: 12px;
  color: #667085;
  margin-top: 5px;
}
.toast > .icon-button {
  height: 26px;
  min-width: 26px;
}
.toast > .icon-button > .icon {
  font-size: 17px;
}
@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .workbench-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .task-row {
    min-height: 106px;
  }
  .task-copy strong {
    font-size: 14px;
  }
}
@media (max-width: 1199px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s ease-out;
    box-shadow: 12px 0 34px #18223012;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .menu-toggle {
    display: grid;
  }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #18223066;
    z-index: 29;
  }
  .workbench-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .topbar {
    gap: 16px;
  }
  .expense-line {
    grid-template-columns: 18px 95px minmax(80px, 1fr) 108px 30px;
  }
  .expense-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .approval-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .button,
  .button.text {
    min-height: 44px;
  }
  :root {
    font-size: 15px;
    --mobile-nav-bottom-padding: max(8px, env(safe-area-inset-bottom, 0px));
    --mobile-nav-height: calc(58px + var(--mobile-nav-bottom-padding));
  }
  .topbar {
    padding: 0 16px;
    height: 60px;
    gap: 12px;
  }
  .search-box {
    flex: 1;
    width: auto;
    background: transparent;
    padding: 0;
  }
  .search-box input {
    font-size: 12px;
  }
  .top-date,
  .account-label,
  .account-button > .icon {
    display: none;
  }
  .account-button {
    padding: 0;
  }
  .topbar > .notification-button {
    display: none;
  }
  main {
    padding: 22px 16px;
    min-height: calc(100dvh - 140px);
  }
  .page-heading {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .heading-actions {
    width: 100%;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    padding: 8px 6px;
    font-size: 12px;
  }
  .workbench-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .primary-column {
    gap: 18px;
  }
  .summary-strip {
    padding: 16px 2px;
  }
  .summary-strip > div {
    flex-wrap: wrap;
    gap: 5px 8px;
  }
  .summary-strip .icon {
    display: none;
  }
  .summary-strip span {
    font-size: 11px;
  }
  .summary-strip strong {
    font-size: 21px;
  }
  .panel-toolbar {
    padding: 17px 16px 12px;
  }
  .task-panel .panel-toolbar {
    flex-wrap: wrap;
  }
  .task-panel .panel-toolbar > .button {
    margin: 0 0 14px;
    width: 100%;
    order: -1;
    min-height: 44px;
  }
  .tabs {
    gap: 22px;
    overflow-x: auto;
  }
  .tabs button {
    font-size: 12px;
    min-height: 44px;
  }
  .task-row {
    padding: 17px 16px;
    min-height: 91px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .task-icon {
    width: 34px;
    height: 34px;
  }
  .task-copy {
    flex: 1;
    min-width: 160px;
  }
  .task-copy strong {
    font-size: 14px;
  }
  .task-copy p {
    font-size: 11px;
    max-width: 220px;
  }
  .task-amount {
    display: none;
  }
  .task-date {
    display: none;
  }
  .task-row > .button {
    font-size: 0;
    gap: 0;
    min-width: 30px;
    min-height: 44px;
  }
  .task-row > .button .icon {
    font-size: 20px;
  }
  .project-list {
    padding: 0 16px;
  }
  .project-row {
    padding: 16px 0;
  }
  .project-row strong {
    font-size: 13px;
  }
  .project-row p {
    font-size: 11px;
  }
  .project-row > .icon {
    display: none;
  }
  .support-column {
    gap: 18px;
  }
  .support-column > .agenda {
    display: none;
  }
  .announcement {
    padding: 0 16px 16px;
  }
  .page-foot {
    padding: 0 16px 94px;
    font-size: 10px;
  }
  .mobile-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    min-height: var(--mobile-nav-height);
    padding: 7px 8px var(--mobile-nav-bottom-padding);
    z-index: 25;
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 50px;
    color: #667085;
    font-size: 11px;
  }
  .mobile-nav button.active {
    color: var(--action);
    font-weight: 600;
  }
  .mobile-nav .icon {
    font-size: 21px;
  }
  .approval-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .approval-inbox {
    width: 100%;
    max-height: 280px;
    overflow: auto;
  }
  .inbox-item {
    min-height: 80px;
  }
  .approval-detail {
    width: 100%;
  }
  .detail-heading,
  .detail-body {
    padding: 20px 16px;
  }
  .detail-heading h2 {
    font-size: 18px;
  }
  .detail-total {
    padding: 16px;
  }
  .detail-total strong {
    font-size: 22px;
  }
  .details-grid {
    grid-template-columns: 78px minmax(0, 1fr);
    font-size: 12px;
    gap: 14px;
  }
  .detail-actions {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .detail-actions .button {
    min-height: 44px;
  }
  .project-overview {
    padding: 18px 16px 0;
  }
  .project-meta {
    gap: 12px;
    font-size: 11px;
  }
  .milestones {
    gap: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 24px 0;
  }
  .milestones > div:not(:last-child)::after {
    display: none;
  }
  .milestones strong {
    font-size: 12px;
  }
  .table-scroll {
    padding: 0 12px 14px;
  }
  .finance-summary {
    flex-direction: column;
    padding: 20px;
  }
  .finance-summary > div {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .finance-summary strong {
    font-size: 20px;
  }
  .expense-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .expense-layout > .primary-column {
    width: 100%;
  }
  .form-section {
    padding: 20px 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .field input,
  .field select {
    min-height: 44px;
    font-size: 14px;
  }
  .expense-line {
    grid-template-columns: 18px minmax(100px, 1fr) minmax(100px, 1fr) 30px;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .expense-description {
    grid-column: 2/4;
    order: 5;
  }
  .money-field {
    grid-column: 3;
  }
  .expense-summary {
    position: static;
    width: 100%;
    padding: 20px;
  }
  .form-actions {
    bottom: 76px;
    flex-wrap: wrap;
    padding: 14px;
    width: 100%;
  }
  .form-actions p {
    flex-basis: 100%;
    font-size: 10px;
  }
  .form-actions .button {
    flex: 1;
    min-height: 44px;
  }
  .upload-placeholder {
    padding: 22px 12px;
  }
  .component-section {
    padding: 20px 16px;
  }
  .component-grid,
  .theme-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .theme-layout {
    gap: 18px;
  }
  .demo-actions {
    gap: 10px;
  }
  .demo-actions .button {
    min-height: 44px;
  }
  .icon-specimens {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .theme-presets {
    gap: 8px;
  }
  .theme-preset {
    flex: 1;
    padding: 10px 7px;
    font-size: 11px;
  }
  .theme-preset span {
    width: 14px;
    height: 14px;
  }
  .overlay {
    max-height: 85dvh;
    width: calc(100vw - 32px);
  }
  .overlay-header,
  .overlay-body {
    padding: 18px;
  }
  .overlay-footer {
    padding: 16px;
  }
  .overlay-footer .button {
    min-height: 44px;
    flex: 1;
  }
  .overlay.drawer {
    border-radius: 0;
    width: 100vw;
  }
  .toast-region {
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .overlay .toast-region {
    bottom: 20px;
  }
  .tooltip {
    left: auto;
    right: 0;
    transform: none;
    max-width: 210px;
  }
  .heading-actions > .button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 关闭的手机导航必须退出键盘可聚焦范围。 */
@media (max-width: 1199px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.is-open {
    visibility: visible;
  }
}
@media (min-width: 768px) {
  html {
    scrollbar-gutter: stable;
  }
}
