:root {
  font-family:"Microsoft YaHei","PingFang SC",Inter,sans-serif;
  font-size:14px;
  line-height:1.6;
  color:#1e3029;
  background:#f8f9f5;
  font-synthesis:none;
  --green:#146044;
  --forest:#123d33;
  --ink:#1e3029;
  --muted:#68766e;
  --line:#e2e5de;
  --soft:#e9f0e1
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.kb-tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); }
.kb-tabs button { padding:10px 14px; border-bottom:2px solid transparent; font-size:13px; }
.kb-tabs [aria-selected="true"] { color:var(--green); border-color:var(--green); font-weight:600; }
.kb-chat-layout { display:grid; grid-template-columns:230px minmax(0,1fr); border:1px solid var(--line); background:white; min-height:540px; height:calc(100dvh - 235px); max-height:900px; }
.kb-conversations { min-width:0; overflow:auto; border-right:1px solid var(--line); background:#fafcfb; }
.kb-list-head { display:flex; align-items:center; justify-content:space-between; padding:14px; }
.kb-list-head h2 { font-size:14px; margin:0; }
.kb-session { display:flex; align-items:center; margin:3px 8px; border-radius:6px; }
.kb-session.active { background:var(--soft); }
.kb-session > button:first-child { flex:1; min-width:0; padding:12px 8px; text-align:left; }
.kb-session strong { font-size:13px; font-weight:500; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kb-session small { display:block; margin-top:6px; font-size:13px; color:var(--muted); }
.kb-session .icon-button { flex-shrink:0; width:28px; }
.kb-conversation { display:flex; flex-direction:column; min-width:0; min-height:0; }
.kb-messages { flex:1; overflow:auto; padding:24px; scroll-behavior:smooth; }
.kb-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:260px; color:var(--muted); }
.kb-empty h2 { font-size:23px; font-weight:500; color:var(--green); }
.kb-message { padding:0 0 26px; max-width:100%; }
.kb-message-label { font-size:13px; font-weight:600; color:var(--muted); margin-bottom:8px; }
.kb-message-content { font-size:14px; line-height:1.9; overflow-wrap:anywhere; }
.kb-message-content h3 { font-size:15px; margin:12px 0 5px; }
.kb-message-content pre { background:#f3f5f4; padding:12px; overflow:auto; white-space:pre-wrap; }
.kb-message-content code { font-size:14px; background:#f3f5f4; }
.kb-user .kb-message-content { border-left:3px solid #b6d3c5; padding-left:12px; }
.kb-list-line { padding-left:8px; }
.kb-references { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; max-height:150px; overflow:auto; }
.kb-reference { display:inline-flex; gap:5px; align-items:center; padding:5px 8px; font-size:13px; max-width:100%; overflow-wrap:anywhere; background:#f0f5f2; border-radius:4px; text-align:left; }
.kb-reference .icon { width:14px; height:14px; flex-shrink:0; }
.kb-composer { border-top:1px solid var(--line); padding:14px 18px; }
.kb-composer textarea { display:block; width:100%; resize:vertical; min-height:70px; max-height:160px; border:1px solid var(--line); border-radius:6px; padding:10px; font-size:14px; }
.kb-composer-bottom { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-top:9px; }
.kb-composer-bottom small { color:#64766d; font-size:14px; line-height:1.7; max-width:80%; }
.kb-composer-bottom button { flex-shrink:0; }
.kb-readonly { padding:15px; text-align:center; border-top:1px solid var(--line); font-size:14px; color:var(--muted); }
.kb-pagination { display:flex; align-items:center; justify-content:center; gap:8px; padding:12px; font-size:14px; }
.kb-source-section { background:white; border-top:1px solid var(--line); }
.kb-source-actions { padding:16px 0; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.kb-source-actions h2 { font-size:16px; margin:0; }
.kb-source-actions h2 small { font-size:14px; color:var(--muted); }
.kb-source-actions > div { display:flex; flex-wrap:wrap; gap:8px; }
.kb-source-meta,.kb-source-error { display:block; margin-top:7px; font-size:13px; line-height:1.6; }
.kb-source-meta { color:var(--muted); }
.kb-source-error { color:#a13d39; max-width:240px; overflow-wrap:anywhere; }
.kb-role-field { border:1px solid var(--line); padding:12px; margin-bottom:18px; display:flex; flex-wrap:wrap; gap:14px; font-size:14px; }
.kb-role-field input { width:auto; }
.kb-role-field label { display:flex; align-items:center; gap:5px; }
@media(max-width:750px) {
  .kb-chat-layout { grid-template-columns:minmax(0,1fr); height:auto; max-height:none; }
  .kb-conversations { border-right:0; border-bottom:1px solid var(--line); max-height:175px; }
  .kb-list-head { padding:8px 12px; }
  .kb-conversations nav { display:flex; overflow-x:auto; }
  .kb-session { flex:0 0 180px; }
  .kb-conversations .kb-pagination { padding:3px; }
  .kb-conversation { min-height:450px; height:calc(100dvh - 280px); }
  .kb-messages { padding:16px; }
  .kb-composer { padding:10px; }
  .kb-tabs { flex-wrap:wrap; }
  .kb-tabs button { padding:8px 9px; font-size:14px; }
  .kb-source-actions { align-items:flex-start; flex-direction:column; }
}
.document-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.document-sidebar .panel-head { border-bottom: 1px solid var(--line); }
.document-categories { padding: 10px; }
.document-category { border-radius: 8px; margin-bottom: 5px; }
.document-category.active { background: var(--soft); }
.document-category > button:first-child {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px 10px;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
.document-category span { overflow-wrap: anywhere; }
.document-category small { display: block; margin-top: 8px; font-size: 10px; line-height: 1.8; }
.document-edit { margin: 0 10px 12px 42px; }
.document-file-title { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.document-content { min-width: 0; }
.document-actions { display: flex; align-items: center; gap: 15px; }
.document-search { padding: 0 22px 20px; }
.document-video { width: 100%; max-height: 60vh; display: block; background: #10251a; border-radius: 8px; }
#document-upload-progress { width: 100%; margin-top: 12px; accent-color: var(--green); }
[hidden] { display: none !important; }
@media (max-width: 1050px) {
  .document-layout { grid-template-columns: 1fr; }
  .document-categories { display: flex; flex-wrap: wrap; gap: 5px; }
  .document-category { flex: 1 1 180px; }
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  outline-offset:4px
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.55;
  cursor:wait
}
button,a {
  touch-action:manipulation
}
button {
  border:0;
  background:none;
  color:inherit
}
a {
  color:var(--green);
  text-decoration:none
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:30px;
  letter-spacing:-1px
}
h2 {
  font-size:17px
}
h3 {
  font-size:15px
}
small,.muted {
  color:var(--muted)
}
small {
  font-size:14px
}
.icon {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:middle;
  flex:none
}
.loading {
  padding:60px;
  text-align:center
}
.shell {
  display:flex;
  min-height:100vh
}
.sidebar {
  width:220px;
  overflow-y:auto;
  position:fixed;
  inset:0 auto 0 0;
  background:#fff;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  padding:30px 12px 20px
}
.sidebar > * { flex-shrink:0; }
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 14px
}
.brandmark {
  background:var(--green);
  width:37px;
  height:37px;
  display:grid;
  place-items:center;
  color:#fff;
  border-radius:12px
}
.brandmark .icon {
  width:25px;
  height:25px
}
.brand strong {
  font-size:23px;
  letter-spacing:3px
}
.brand small {
  display:block;
  letter-spacing:1px;
  font-size:14px;
  margin-top:4px
}
.nav-label {
  font-size:14px;
  letter-spacing:2px;
  color:#9aa79f;
  margin:39px 16px 14px
}
.nav {
  display:flex;
  flex-direction:column;
  gap:7px
}
.nav button {
  display:flex;
  align-items:center;
  gap:13px;
  padding:13px 15px;
  text-align:left;
  border-radius:8px;
  font-size:14px;
  color:#77867c
}
.nav button.active {
  background:var(--soft);
  color:var(--green);
  font-weight:600
}
.nav button:hover {
  background:#f3f7f4
}
.nav-count {
  margin-left:auto;
  font-size:14px;
  padding:2px 6px;
  border-radius:5px;
  background:#d8e8df;
  color:var(--green)
}
.side-bottom {
  margin-top:auto
}
.side-note {
  margin:25px 10px;
  padding:16px;
  border-radius:10px;
  background:#f6f8f6;
  font-size:14px;
  line-height:1.9;
  color:#849189
}
.profile {
  display:flex;
  align-items:center;
  gap:10px;
  border-top:1px solid var(--line);
  padding:20px 9px 0
}
.avatar {
  width:35px;
  height:35px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e5eee7;
  color:#58745e;
  font-weight:600;
  font-size:14px;
  flex:none
}
.profile-text {
  flex:1;
  min-width:0
}
.profile-text strong {
  display:block;
  font-size:14px;
  margin-bottom:4px
}
.profile-text small {
  font-size:14px
}
.main {
  margin-left:220px;
  flex:1;
  min-width:0
}
.topbar {
  height:80px;
  border-bottom:1px solid var(--line);
  padding:0 42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff
}
.breadcrumb {
  font-size:14px;
  color:#8a978f
}
.breadcrumb strong {
  color:#42574a;
  font-weight:500
}
.top-actions {
  display:flex;
  align-items:center;
  gap:22px;
  font-size:14px;
  color:#7e8e82
}
.environment {
  display:flex;
  align-items:center;
  gap:6px
}
.dot {
  width:6px;
  height:6px;
  display:inline-block;
  border-radius:50%;
  background:#4b9774
}
.icon-button {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:1px solid var(--line);
  border-radius:7px
}
.content {
  max-width:1510px;
  margin:auto;
  padding:35px 42px 40px
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:28px
}
.eyebrow {
  color:#8b9a90;
  font-size:13px;
  letter-spacing:1.5px;
  margin-bottom:8px
}
.subtitle {
  font-size:14px;
  color:#87968b;
  margin-top:10px;
  line-height:1.8
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:11px 17px;
  border-radius:7px;
  background:var(--green);
  color:white;
  font-size:14px;
  font-weight:500;
  white-space:nowrap
}
.button.secondary {
  background:#fff;
  color:#4b6254;
  border:1px solid #dce5de
}
.button.danger {
  background:#af4b43
}
.button .icon {
  width:15px;
  height:15px
}
.button.small {
  padding:8px 12px;
  font-size:13px
}
.button:hover {
  filter:brightness(.96)
}
.welcome {
  background:#eaf1e9;
  border:1px solid #dfe9dd;
  border-radius:12px;
  padding:27px 31px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px
}
.welcome h2 {
  font-size:22px;
  line-height:1.5;
  letter-spacing:-.5px
}
.welcome p {
  font-size:14px;
  color:#7d917e;
  line-height:1.9;
  margin-top:9px
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:17px;
  margin-bottom:27px
}
.metric {
  padding:21px 22px;
  background:white;
  border:1px solid var(--line);
  border-radius:10px
}
.metric-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
  color:#7b8e80
}
.metric-icon {
  width:32px;
  height:32px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:#edf5ef;
  color:#4e8264
}
.metric-icon.orange {
  background:#fcf2e6;
  color:#c69554
}
.metric-icon.blue {
  background:#eef2fb;
  color:#7c90b3
}
.metric-icon.purple {
  background:#f3eff8;
  color:#a491b3
}
.metric-number {
  font-size:32px;
  font-weight:600;
  letter-spacing:-1px;
  margin:12px 0 10px;
  color:#294336
}
.metric-number span {
  font-size:14px;
  font-weight:400;
  margin-left:5px;
  color:#9aa69d;
  letter-spacing:0
}
.metric-foot {
  font-size:14px;
  color:#68766e
}
.metric-foot b {
  color:#5e8a6a;
  font-weight:400
}
.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);
  gap:22px;
  align-items:start
}
.panel {
  border:1px solid var(--line);
  border-radius:12px;
  background:white;
  overflow:hidden;
  margin-bottom:22px
}
.panel-head {
  padding:22px 23px 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.panel-head h2 {
  font-size:14px
}
.panel-head small {
  display:block;
  font-size:14px;
  margin-top:7px
}
.text-link {
  font-size:13px;
  color:#879b8c;
  display:inline-flex;
  align-items:center;
  gap:5px
}
.tabs {
  display:flex;
  gap:22px;
  padding:0 24px;
  border-bottom:1px solid var(--line);
  overflow:auto
}
.tabs button {
  padding:12px 0;
  font-size:14px;
  color:#8b998f;
  white-space:nowrap;
  border-bottom:2px solid transparent
}
.tabs button.active {
  color:var(--green);
  border-bottom-color:var(--green);
  font-weight:600
}
.tab-count {
  font-size:14px;
  margin-left:5px;
  background:#eff4f0;
  border-radius:4px;
  padding:1px 5px
}
.table-scroll {
  overflow:auto
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:14px
}
th {
  font-size:14px;
  font-weight:400;
  color:#68766e;
  background:#fafcf9;
  padding:12px 22px;
  white-space:nowrap
}
td {
  padding:18px 22px;
  border-top:1px solid #f0f4ef;
  white-space:nowrap;
  color:#687e6d
}
td.title-cell {
  white-space:normal;
  min-width:180px;
  max-width:360px;
  color:#354e3c;
  font-weight:500
}
.title-cell small {
  display:block;
  font-size:14px;
  font-weight:400;
  margin-top:7px;
  color:#68766e
}
.row-button {
  text-align:left;
  padding:0;
  font-weight:500;
  line-height:1.7
}
.row-button:hover {
  color:var(--green);
  text-decoration:underline
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border-radius:5px;
  font-size:14px;
  white-space:nowrap;
  background:#f0f3f0;
  color:#859285
}
.badge.pending,.badge.review,.badge.high,.badge.open {
  background:#fff0ce;
  color:#8c5b0b
}
.badge.confirmed,.badge.done,.badge.resolved,.badge.paid {
  background:#eaf4eb;
  color:#2e6740
}
.badge.approved,.badge.doing,.badge.processing {
  background:#edf2fb;
  color:#3e6091
}
.badge.rejected {
  background:#fbeeea;
  color:#a44435
}
.badge.low {
  background:#f0f4f1;
  color:#8b9c90
}
.progress {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:#8a998d
}
.progress-track {
  width:66px;
  height:4px;
  background:#edf1ed;
  border-radius:4px;
  overflow:hidden
}
.progress-fill {
  height:100%;
  background:#68967a;
  border-radius:4px
}
.person {
  display:flex;
  align-items:center;
  gap:8px
}
.person .avatar {
  width:25px;
  height:25px;
  font-size:12px;
  background:#f0eae1;
  color:#a68c69
}
.right-list {
  padding:0 22px
}
.compact-item {
  padding:16px 0;
  display:flex;
  gap:12px;
  align-items:flex-start;
  border-top:1px solid #f0f4ef
}
.item-icon {
  width:33px;
  height:35px;
  border-radius:7px;
  display:grid;
  place-items:center;
  color:#91a582;
  background:#f0f5eb;
  flex:none
}
.item-icon .icon {
  width:16px;
  height:16px
}
.item-content {
  flex:1;
  min-width:0
}
.item-content h3 {
  font-size:14px;
  font-weight:500;
  line-height:1.6
}
.item-content p {
  font-size:14px;
  color:#68766e;
  margin-top:7px;
  line-height:1.8
}
.amount {
  font-size:13px;
  font-weight:600;
  color:#4b6350;
  white-space:nowrap
}
.quick-actions {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding:5px 16px 21px;
  gap:8px
}
.quick {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:#758c7b;
  padding:13px 0
}
.quick:hover {
  background:#f5f8f4;
  border-radius:8px
}
.quick-icon {
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
  background:#eff5f0;
  border-radius:12px;
  color:#669178
}
.footer {
  font-size:14px;
  color:#a1aca3;
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-top:17px
}
.toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  flex-wrap:wrap
}
.search {
  position:relative;
  min-width:220px
}
.search input {
  padding-left:34px;
  background:#f8faf8
}
.search .icon {
  position:absolute;
  left:11px;
  top:11px;
  width:16px;
  height:16px;
  color:#8a9c90
}
input,select,textarea {
  width:100%;
  padding:11px 12px;
  border:1px solid #dfe7e0;
  border-radius:6px;
  background:#fff;
  color:#354b3b;
  font-size:14px
}
textarea {
  min-height:100px;
  resize:vertical;
  line-height:1.8
}
input:focus,select:focus,textarea:focus {
  outline:2px solid #a4c6b0;
  outline-offset:1px
}
input[type=checkbox] {
  width:auto;
  accent-color:var(--green)
}
.filter-select {
  width:auto;
  min-width:130px
}
.expense-toolbar .expense-filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  flex:1
}
.expense-filter {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:#61786c;
  font-size:14px;
  cursor:pointer;
  white-space:nowrap
}
.expense-filter span {
  border-radius:4px;
  padding:1px 5px;
  background:#f0f5f2;
  font-size:13px
}
.expense-filter:hover,.expense-filter.active {
  color:var(--green);
  border-color:#bad7c8;
  background:#ecf5ef
}
.expense-filter:focus-visible {
  outline:2px solid #a4c6b0;
  outline-offset:2px
}
@media(max-width:700px) {
  .expense-toolbar .expense-filters {
    flex-basis:100%;
    order:3
  }
}
.empty {
  text-align:center;
  padding:45px 20px;
  color:#94a295;
  font-size:13px;
  line-height:2
}
.help-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  padding:22px
}
.help-card {
  border:1px solid var(--line);
  border-radius:10px;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:14px
}
.help-card h3 {
  line-height:1.8;
  font-size:14px
}
.help-card p {
  font-size:14px;
  color:#8a998e;
  line-height:1.9;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.help-card-bottom {
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
  color:#9aa89d
}
.help-card .row-button {
  font-size:14px
}
.row-between {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.role-chip {
  display:inline-block;
  background:#edf4ee;
  color:#62856c;
  font-size:14px;
  padding:4px 7px;
  border-radius:4px;
  margin:2px
}
.login-page {
  min-height:100vh;
  display:grid;
  grid-template-columns:1.05fr 1fr;
  background:white
}
.login-story {
  background:#eaf1e9;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:10%;
  position:relative
}
.login-story .brand {
  padding:0;
  position:absolute;
  top:50px;
  left:10%
}
.login-story h1 {
  font-size:43px;
  line-height:1.65;
  letter-spacing:-1.5px;
  margin-top:40px
}
.login-story>p {
  font-size:14px;
  line-height:2.1;
  color:#7e9380;
  margin-top:24px;
  max-width:330px
}
.login-story .welcome-art {
  margin:45px 0 0 20px;
  transform:scale(1.4);
  transform-origin:left top
}
.login-form-wrap {
  padding:60px;
  display:flex;
  align-items:center;
  justify-content:center
}
.login-form {
  width:100%;
  max-width:360px
}
.login-form h2 {
  font-size:26px;
  margin-bottom:10px
}
.login-form>p {
  font-size:14px;
  color:#8a988e;
  line-height:1.8;
  margin-bottom:29px
}
.field {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:18px
}
.field>label,.field-label {
  font-size:14px;
  color:#5e7565
}
.field-help {
  font-size:14px;
  color:#6b776d;
  line-height:1.8
}
.field-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.form-error {
  font-size:14px;
  color:#b65f4f;
  background:#fff4ef;
  border-radius:6px;
  padding:12px;
  margin-bottom:15px;
  line-height:1.8
}
.form-error:empty {
  display:none
}
.login-form .button {
  width:100%;
  padding:13px
}
.demo-box {
  background:#f7f9f5;
  border:1px solid var(--line);
  border-radius:8px;
  padding:15px;
  margin-top:25px;
  font-size:13px;
  line-height:2;
  color:#819381
}
.demo-accounts {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:9px
}
.demo-accounts button {
  border:1px solid #dae5d8;
  border-radius:5px;
  padding:4px 9px;
  font-size:14px;
  background:#fff
}
.demo-accounts button:hover {
  border-color:var(--green);
  color:var(--green)
}
dialog {
  width:min(650px,calc(100% - 28px));
  max-height:90vh;
  padding:0;
  border:1px solid var(--line);
  border-radius:13px;
  color:#324c3a;
  box-shadow:0 30px 100px #163d3026
}
dialog::backdrop {
  background:#142e255e;
  backdrop-filter:blur(3px)
}
.modal-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 27px;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:#fff;
  z-index:1
}
.modal-head h2 {
  font-size:17px
}
.modal-body {
  padding:25px 27px
}
.modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  border-top:1px solid var(--line);
  padding:18px 27px
}
.detail-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin:22px 0
}
.detail-grid dt {
  font-size:13px;
  color:#6b776d;
  margin-bottom:8px
}
.detail-grid dd {
  margin:0;
  font-size:13px
}
.detail-description {
  font-size:13px;
  line-height:2;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:#f7faf6;
  padding:17px;
  border-radius:7px;
  margin:15px 0 23px
}
.section-title {
  font-size:14px;
  font-weight:600;
  margin:24px 0 14px
}
.timeline {
  border-left:1px solid #dce8dd;
  margin:15px 0 20px 5px;
  padding-left:20px
}
.timeline-item {
  position:relative;
  font-size:14px;
  margin-bottom:22px
}
.timeline-item:before {
  content:"";
  width:7px;
  height:7px;
  background:#8ab19a;
  border:3px solid white;
  border-radius:50%;
  position:absolute;
  left:-27px;
  top:0
}
.timeline-item p {
  line-height:1.9;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin-top:7px;
  color:#6f8475
}
.timeline-item small {
  font-size:14px
}
.attachment {
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid var(--line);
  padding:12px;
  border-radius:6px;
  margin-bottom:8px;
  font-size:14px;
  overflow-wrap:anywhere
}
.attachment small {
  margin-left:auto;
  white-space:nowrap;
  font-size:14px
}
.inline-form {
  padding:20px;
  background:#f7faf6;
  border:1px solid var(--line);
  border-radius:8px;
  margin-top:22px
}
.inline-form h3 {
  font-size:13px;
  margin-bottom:18px
}
.inline-form .button {
  margin-top:5px
}
.checks {
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  padding:8px 0
}
.checks label {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px
}
.range-row {
  display:flex;
  gap:15px;
  align-items:center
}
.range-row input {
  padding:0;
  accent-color:var(--green)
}
.range-row output {
  font-size:14px;
  min-width:40px;
  color:var(--green)
}
#toast {
  position:fixed;
  bottom:28px;
  left:50%;
  transform:translate(-50%,20px);
  background:#254c39;
  color:white;
  padding:13px 24px;
  border-radius:8px;
  font-size:14px;
  z-index:10;
  opacity:0;
  pointer-events:none;
  transition:.2s;
  max-width:90vw
}
#toast.visible {
  opacity:1;
  transform:translate(-50%,0)
}
.mobile-menu {
  display:none
}
.file-list {
  font-size:13px;
  line-height:1.9;
  color:#839588;
  margin-top:8px
}
.account-summary {
  display:flex;
  gap:15px;
  align-items:center;
  margin-bottom:24px
}
.account-summary .avatar {
  width:50px;
  height:50px;
  font-size:17px
}
.notice {
  padding:12px 15px;
  background:#fff8e9;
  color:#806226;
  font-size:13px;
  line-height:1.9;
  border-radius:6px;
  margin:15px 0
}
.activity-list {
  padding:0 23px 10px
}
.activity-item {
  display:flex;
  justify-content:space-between;
  gap:15px;
  font-size:13px;
  color:#718775;
  padding:16px 0;
  border-top:1px solid var(--line)
}
.brand strong {
  font-size:20px;
  letter-spacing:1px;
  white-space:nowrap
}
.brand small {
  font-size:14px;
  letter-spacing:2px
}
.sidebar .brand {
  padding:0 7px;
  gap:9px
}
.sidebar .brandmark {
  width:32px;
  height:32px;
  border-radius:9px
}
@media(min-width:1550px) {
  .content {
    padding-top:42px
  }
  .welcome {
    padding-top:34px;
    padding-bottom:34px
  }
  .metric {
    padding:25px
  }
  .panel-head {
    padding-top:25px;
    padding-bottom:20px
  }
}
@media(max-width:1200px) {
  .sidebar {
    width:204px;
    padding-left:13px;
    padding-right:13px
  }
  .main {
    margin-left:204px
  }
  .topbar {
    padding:0 26px
  }
  .content {
    padding:28px 26px
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);
    gap:16px
  }
  td,th {
    padding-left:15px;
    padding-right:15px
  }
  .metric {
    padding:18px
  }
  .help-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .top-actions {
    gap:15px
  }
  .welcome-art {
    margin-right:0
  }
}
@media(max-width:960px) {
  .dashboard-grid {
    grid-template-columns:1fr
  }
  .metrics {
    gap:12px
  }
  .metric {
    padding:17px 14px
  }
  .metric-top {
    font-size:13px
  }
  .metric-icon {
    width:27px;
    height:27px
  }
  .metric-number {
    font-size:27px
  }
  .welcome {
    padding:23px
  }
  .help-grid {
    padding:16px
  }
  .login-form-wrap {
    padding:35px
  }
  .login-story h1 {
    font-size:32px
  }
  .footer {
    flex-direction:column;
    gap:8px
  }
  .top-actions .date {
    display:none
  }
}
@media(max-width:700px) {
  .sidebar {
    transform:translateX(-100%);
    z-index:5;
    width:230px;
    transition:transform .2s;
    box-shadow:10px 0 40px #233f381a
  }
  .sidebar.open {
    transform:translateX(0)
  }
  .main {
    margin-left:0
  }
  .topbar {
    height:62px;
    padding:0 18px
  }
  .mobile-menu {
    display:block;
    margin-right:10px
  }
  .breadcrumb {
    display:flex;
    align-items:center;
    font-size:13px
  }
  .top-actions {
    gap:10px
  }
  .content {
    padding:25px 17px
  }
  .page-heading {
    align-items:flex-start;
    margin-bottom:22px
  }
  h1 {
    font-size:23px
  }
  .page-heading .button {
    padding:10px 12px;
    font-size:13px
  }
  .subtitle {
    font-size:13px
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:11px;
    margin-bottom:21px
  }
  .welcome h2 {
    font-size:18px
  }
  .welcome p {
    font-size:13px
  }
  .welcome-art {
    width:90px;
    transform:scale(.8);
    transform-origin:right center;
    margin-left:-15px
  }
  .welcome {
    padding:21px 18px
  }
  .panel-head {
    padding:20px 18px 15px
  }
  .right-list {
    padding:0 18px
  }
  .help-grid {
    grid-template-columns:1fr
  }
  .login-page {
    display:block
  }
  .login-story {
    min-height:240px;
    padding:75px 28px 25px
  }
  .login-story .brand {
    top:25px;
    left:28px
  }
  .login-story h1 {
    font-size:25px;
    margin:0
  }
  .login-story>p {
    margin-top:10px;
    font-size:14px
  }
  .login-story .welcome-art {
    display:none
  }
  .login-form-wrap {
    padding:35px 28px
  }
  .login-form {
    max-width:420px
  }
  .modal-body {
    padding:22px 20px
  }
  .modal-head {
    padding:20px
  }
  .modal-actions {
    padding:17px 20px
  }
  .field-row {
    gap:12px
  }
  .search {
    min-width:0;
    flex:1
  }
  .toolbar {
    padding:15px
  }
  .tabs {
    padding:0 18px;
    gap:20px
  }
  .environment {
    font-size:14px
  }
  .footer {
    margin-top:10px
  }
  .detail-grid {
    gap:15px
  }
  .metric-foot {
    font-size:12px
  }
}

.password-control { position:relative; width:100%; }
.password-control input { padding-right:64px; width:100%; }
.password-toggle { position:absolute; right:7px; top:50%; transform:translateY(-50%); padding:8px 10px; border-radius:5px; color:var(--green); font-size:14px; font-weight:600; }
.password-toggle:hover { background:var(--soft); }
.password-toggle:focus-visible { outline:2px solid var(--green); outline-offset:1px; }

.receipt-cell { min-width:92px; }
.receipt-actions { display:flex; gap:14px; align-items:center; white-space:nowrap; }
.receipt-cell .receipt-actions { margin-top:7px; }
.receipt-filename { display:flex; align-items:center; gap:8px; min-width:0; overflow-wrap:anywhere; }
.attachment .receipt-actions { flex-shrink:0; margin-left:auto; }
#receipt-modal { width:min(1100px,calc(100vw - 32px)); max-width:1100px; }
.receipt-body { padding:20px; }
.receipt-file-list { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.receipt-file { display:flex; align-items:center; gap:14px; padding:9px 12px; border:1px solid var(--line); border-radius:6px; max-width:100%; }
.receipt-file.active { background:var(--soft); border-color:#a5cbbb; }
.receipt-file > button { display:flex; align-items:center; gap:7px; text-align:left; min-width:0; }
.receipt-file > button span { overflow-wrap:anywhere; }
.receipt-file > a { flex-shrink:0; }
.receipt-viewer { background:#f1f4f2; border:1px solid var(--line); border-radius:8px; min-height:200px; display:flex; justify-content:center; align-items:center; }
.receipt-viewer img { display:block; max-width:100%; max-height:65vh; object-fit:contain; }
.receipt-viewer iframe { display:block; width:100%; height:65vh; border:0; background:white; }
.receipt-viewer-footer { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-top:14px; font-size:14px; }
.receipt-viewer-footer span { min-width:0; overflow-wrap:anywhere; }
.receipt-viewer-footer a { flex-shrink:0; }
@media(max-width:700px) {
  .receipt-body { padding:14px; }
  .receipt-filename { flex-wrap:wrap; }
  .attachment { gap:12px; }
  .receipt-viewer img { max-height:58vh; }
  .receipt-file { width:100%; justify-content:space-between; }
}

/* Shared forest-and-ivory workspace. */
.sidebar { background:var(--forest); color:#f4f2df; border-right:0; }
.sidebar .brand { padding:0 10px; gap:12px; }
.sidebar .brandmark { background:transparent; color:#f4e9bf; border:2px solid #f4e9bf; border-radius:7px; }
.sidebar .brand strong { font-size:22px; letter-spacing:1px; }
.sidebar .brand small { color:#e0e5da; font-size:12px; letter-spacing:3px; }
.sidebar .nav-label { color:#b6c9bf; font-size:12px; letter-spacing:1px; margin:32px 16px 12px; }
.nav button { color:#f0f3e8; padding:14px 16px; font-size:16px; gap:16px; min-height:50px; }
.nav button:hover { background:#ffffff12; }
.nav button.active { background:#e9f0db; color:#123d33; }
.nav .icon { width:22px; height:22px; }
.nav-count { background:#ffffff1f; color:#f7edca; font-size:12px; }
.nav button.active .nav-count { background:#d2e2c9; color:var(--forest); }
.profile { border-color:#ffffff35; margin:30px 10px 0; padding:20px 0 0; }
.profile-text strong { color:#f5f4e9; font-size:15px; }
.profile-text small { color:#c6d7cb; font-size:12px; }
.profile .avatar { background:#f5eac6; color:var(--forest); width:40px; height:40px; }
.profile .icon-button { border-color:#ffffff35; color:#e3ebde; }
.main { position:relative; display:flex; flex-direction:column; }
.topbar { display:none; }
.breadcrumb { display:none; }
.top-actions { color:#526054; }
.top-actions .environment { display:none; }
.top-actions { font-size:12px; gap:16px; flex-shrink:0; white-space:nowrap; }
.top-actions .icon-button { border-color:var(--line); color:inherit; }
.content { display:flex; flex-direction:column; flex:1; width:100%; margin:0 auto; padding:24px 24px 28px; max-width:1700px; }
.content > * { flex-shrink:0; }
.page-heading { margin-bottom:24px; align-items:center; min-height:44px; }
.page-heading > div:first-child { flex:1; min-width:0; }
.page-heading > .button { flex-shrink:0; }
.page-heading .subtitle { max-width:530px; }
.page-heading h1 { font-size:30px; letter-spacing:0; color:#172b23; }
.subtitle { color:#667268; font-size:14px; line-height:1.8; margin-top:6px; }
.eyebrow { font-size:12px; color:#667268; }
.button { min-height:44px; border-radius:8px; padding:11px 20px; font-size:14px; font-weight:600; }
.button.secondary { background:#fff; border-color:#9ba69b; color:#39483e; }
.button.small { min-height:38px; }
.icon-button { min-width:36px; height:36px; }
.text-link { font-size:13px; color:var(--green); min-height:32px; }
.row-button { font-size:15px; font-weight:600; }
.welcome { background:none; border:0; padding:0; display:block; margin:4px 0 24px; }
.welcome h2 { font-size:26px; color:var(--ink); }
.welcome p { margin-top:5px; color:#667268; font-size:15px; }
.welcome .eyebrow { display:none; }
.metrics { gap:0; border:1px solid var(--line); border-radius:12px; background:#fff; padding:20px 0; margin-bottom:20px; }
.metric { position:relative; display:grid; grid-template-columns:1fr auto; align-items:center; column-gap:10px; border:0; border-radius:0; background:none; padding:0 20px 0 66px; min-width:0; }
.metric + .metric { border-left:1px solid var(--line); }
.metric-top { color:#4e5c52; font-size:14px; gap:10px; }
.metric-icon { position:absolute; top:8px; left:20px; width:34px; height:34px; border-radius:50%; background:#eaf1df; color:#357344; }
.metric-icon.orange,.quick-icon.orange { background:#fff2d9; color:#94610b; }
.metric-number { color:var(--forest); font-size:30px; font-weight:700; letter-spacing:-.6px; margin:0; overflow-wrap:anywhere; }
.metric-number span { font-size:14px; color:#526054; }
.metric-foot { grid-column:1/-1; font-size:12px; color:#6d786e; line-height:1.6; margin-top:5px; }
.expense-metrics { grid-template-columns:1fr 1fr 1.3fr; }
.dashboard-grid { grid-template-columns:minmax(0,2.1fr) minmax(270px,1fr); gap:20px; }
.panel { border-radius:12px; background:#fff; margin-bottom:20px; }
.panel-head { padding:20px 22px 16px; }
.panel-head h2 { font-size:20px; font-weight:700; color:var(--ink); }
.panel-head h2 small { display:inline; font-size:14px; font-weight:400; margin-left:6px; }
.panel-head small { font-size:12px; color:#69766b; }
.compact-item { align-items:center; padding:17px 0; }
.item-content h3 { font-size:15px; }
.item-content p { font-size:12px; margin-top:4px; color:#68766e; }
.amount { font-size:16px; font-weight:700; color:var(--forest); font-variant-numeric:tabular-nums; }
.quick-actions { display:flex; flex-direction:column; gap:10px; padding:0 18px 20px; }
.quick { flex-direction:row; padding:13px 14px; border:1px solid var(--line); border-radius:9px; gap:14px; font-size:16px; font-weight:600; color:var(--ink); }
.quick > .icon:last-child { margin-left:auto; width:16px; }
.quick-icon { border-radius:50%; width:36px; height:36px; background:#edf3e4; color:var(--green); }
table { font-size:14px; }
th { font-size:13px; color:#5b685d; background:#f5f6f0; padding:14px 18px; }
td { padding:18px; color:#394b40; border-color:#e8ebe3; }
td.amount { text-align:right; }
.title-cell small { font-size:12px; color:#68766e; }
.badge { font-size:12px; font-weight:500; padding:4px 9px; border-radius:6px; }
.badge.withdrawn { background:#eeefea; color:#606d61; }
.role-chip { font-size:12px; color:#315e40; }
.toolbar { padding:18px; gap:12px; }
.search input { background:#fcfcfa; }
input,select,textarea { font-size:14px; color:#263c2f; border-color:#cbd2c8; border-radius:7px; min-height:44px; }
textarea { line-height:1.8; min-height:100px; }
.field>label,.field-label { font-size:14px; color:#405043; }
.field-help { font-size:12px; color:#657265; }
.field { margin-bottom:22px; }
.notice { font-size:13px; color:#806226; background:#fcf6e8; line-height:1.8; }
.form-error { font-size:13px; color:#9f352a; }
.detail-grid dt { font-size:13px; color:#68766e; margin-bottom:5px; }
.detail-grid dd { font-size:15px; overflow-wrap:anywhere; }
.detail-description { background:none; padding:0; font-size:14px; color:#34463a; }
.section-title { font-size:14px; margin:24px 0 12px; color:#536052; }
.inline-form { background:#fafbf7; padding:20px; }
.inline-form h3 { font-size:16px; }
.timeline-item,.timeline-item small { font-size:13px; }
.progress { font-size:12px; color:#526252; }
.progress-track { width:80px; height:6px; background:#e5e8df; }
.progress-fill { background:#3b884d; }
.help-card p { font-size:14px; color:#617060; }
.help-card-bottom { font-size:12px; }
.footer { font-size:12px; color:#6b796e; margin-top:auto; padding-top:12px; }
.empty { color:#667568; }
.nav-scrim { position:fixed; inset:0; background:#102e2559; z-index:4; }
html:has(dialog[open]) { overflow:hidden; }
dialog { color:var(--ink); background:#fff; max-height:92dvh; }
.modal-head { padding:20px 24px; }
.modal-head h2 { font-size:20px; }
.modal-body { padding:24px; }
.modal-actions { padding:18px 24px; background:#fff; }
.attachment { padding:12px; font-size:14px; background:#fafbf8; }
.attachment small { font-size:12px; }
.receipt-actions .text-link { min-height:36px; }
.login-story { background:var(--forest); color:#f7f4e8; padding:10%; }
.login-story .brandmark { background:transparent; border:2px solid #f1e3b7; color:#f1e3b7; border-radius:8px; }
.login-story .brand small,.login-story .eyebrow { color:#d3e0cf; }
.login-message h1 { font-size:38px; line-height:1.7; letter-spacing:0; margin:20px 0; }
.login-message p { font-size:16px; color:#d3e0cf; line-height:2; }
.login-caption { position:absolute; bottom:44px; color:#c5d6c3; }
.login-form { max-width:390px; }
.login-form>p { font-size:14px; color:#69766a; }
.demo-box { font-size:13px; color:#53674f; }
.demo-accounts button { font-size:13px; min-height:36px; }

/* Master/detail reimbursement and project workspaces. */
.expense-workspace { display:grid; grid-template-columns:minmax(320px,.9fr) minmax(0,1.65fr); align-items:stretch; }
.expense-master { min-width:0; border-right:1px solid var(--line); }
.expense-records table { table-layout:fixed; }
.expense-records td { white-space:normal; }
.expense-records .row-button { overflow-wrap:anywhere; }
.expense-master .toolbar { display:grid; grid-template-columns:minmax(0,1fr) 110px; align-items:stretch; gap:12px; }
.expense-master .expense-filters { grid-column:1/-1; grid-row:2; }
.expense-master .search { min-width:0; width:100%; }
.expense-master .filter-select { width:100%; min-width:0; }
.expense-filters { flex-wrap:wrap; }
.expense-filter { font-size:13px; flex:1; justify-content:center; padding:8px 9px; }
.expense-filter span { font-size:12px; }
.expense-records td { padding:16px; vertical-align:top; }
.expense-records .title-cell { min-width:0; max-width:none; }
.expense-records .row-button { font-size:16px; }
.expense-records .title-cell small { display:block; line-height:1.7; margin-top:5px; }
@media(min-width:1100px) { .expense-records .title-cell > small:last-child { display:none; } }
.record-status { display:block; margin-top:8px; }
.record-amount { text-align:right; width:110px; }
.record-amount > small { display:block; font-size:12px; margin-top:10px; }
.record-amount .receipt-cell { min-width:0; margin-top:8px; }
.record-amount .receipt-actions { justify-content:flex-end; gap:10px; }
.record-amount .amount { font-size:16px; }
tr.selected { background:#edf2e5; }
.expense-records tr.selected .title-cell { box-shadow:inset 4px 0 #287245; }
.expense-detail { min-width:0; }
.expense-body { padding:24px; }
.expense-detail-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:22px; }
.expense-detail-heading h2 { font-size:25px; line-height:1.5; overflow-wrap:anywhere; margin-bottom:6px; }
.expense-detail-heading small { display:inline-block; font-size:12px; margin-right:10px; }
.expense-value { font-size:30px; line-height:1.5; color:var(--forest); white-space:nowrap; letter-spacing:-.6px; }
.expense-steps { list-style:none; padding:0; display:flex; margin:0 0 20px; border-bottom:1px solid var(--line); padding-bottom:20px; }
.expense-steps li { display:flex; flex:1; min-width:0; flex-direction:column; align-items:center; gap:7px; text-align:center; position:relative; font-size:13px; color:#69736a; }
.expense-steps li::before { content:""; position:absolute; top:15px; right:50%; width:100%; border-top:1px dashed #c5ccc1; }
.expense-steps li:first-child::before { display:none; }
.expense-steps li.complete::before,.expense-steps li.current::before { border-top:1px solid #4a7e45; }
.step-mark { display:grid; place-items:center; width:30px; height:30px; border:1px solid #bdc7b8; border-radius:50%; background:#fff; z-index:1; }
.step-mark .icon { width:16px; height:16px; }
.expense-steps .complete .step-mark { background:#347b3d; border-color:#347b3d; color:#fff; }
.expense-steps .current { color:#245d37; }
.expense-steps .current .step-mark { color:#245d37; border:2px solid #347b3d; }
.expense-steps .failed .step-mark { background:#fce9e3; color:#a44435; border-color:#e5b3a8; }
.expense-steps small { font-size:12px; color:#6f776b; }
.expense-body .detail-grid { padding-bottom:18px; border-bottom:1px solid var(--line); margin:0; gap:14px 20px; }
.expense-body .detail-grid > div { display:grid; grid-template-columns:82px minmax(0,1fr); gap:8px; align-items:baseline; }
.expense-body .detail-grid dt { margin:0; font-size:14px; }
.expense-body .detail-grid dd { font-size:16px; }
.expense-section .detail-description { font-size:15px; }
.expense-section { display:grid; grid-template-columns:82px minmax(0,1fr); gap:8px; padding:18px 0; border-bottom:1px solid var(--line); }
.expense-section .section-title { margin:0; font-weight:500; }
.expense-section .detail-description { margin:0; }
.expense-section .section-title small { display:block; color:#6d786e; margin-top:6px; font-size:12px; }
.expense-section .attachment { margin:0 0 8px; padding:8px 10px; }
.expense-section .attachment:last-child { margin:0; }
.approval-form { border:0; padding:18px 0 0; margin-top:auto; border-radius:0; background:#fff; }
.approval-form h3 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.approval-form .field { display:grid; grid-template-columns:82px minmax(0,1fr); gap:8px; }
.approval-form .field > label { margin:0; }
.approval-form textarea { min-height:82px; }
.approval-form .field { margin-bottom:18px; }
.approval-actions { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:14px; background:#fff; padding-top:14px; border-top:1px solid var(--line); }
.approval-actions > div { display:flex; justify-content:flex-end; gap:12px; }
.approval-actions small { font-size:12px; color:#6d776c; }
.approval-actions .button { margin:0; }
.project-workspace { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr); gap:20px; align-items:stretch; }
.project-records th,.project-records td { padding:18px 14px; font-size:16px; }
.project-records td:first-child { white-space:normal; min-width:140px; font-weight:600; }
.project-records .amount { font-size:20px; }
.project-records tr.selected td:first-child { box-shadow:inset 4px 0 #287245; }
.project-editor { display:flex; flex-direction:column; }
.project-editor form { display:flex; flex-direction:column; min-height:500px; flex:1; }
.project-editor .checks input { min-height:20px; width:20px; height:20px; }
.project-editor .checks label { display:flex; align-items:center; gap:10px; font-size:16px; }
.project-editor .notice { background:#f5f6f1; color:#607060; }
.project-editor .modal-actions { margin-top:auto; }
.project-total { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px; margin:0 22px; background:#f0f3e7; border-radius:8px; }
.project-total small { display:block; font-size:12px; color:#697465; }
.project-total strong { color:var(--forest); font-size:25px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.document-category small,.kb-source-meta { font-size:12px; color:#657462; }
.kb-message-content { font-size:15px; }
.kb-composer-bottom small { font-size:12px; color:#5e6e60; }
.kb-source-actions { padding:18px; }
.kb-role-field { font-size:14px; }
.kb-session strong { font-size:14px; }
.kb-session small { font-size:12px; }
.kb-list-head h2 { font-size:16px; }
.kb-source-actions h2 { font-size:20px; }
.kb-chat-layout { border-radius:12px; overflow:hidden; }
.kb-conversations { background:#f7f9f2; }
.kb-composer textarea { font-size:15px; }
.kb-tabs button { font-size:14px; }
@media(min-width:1100px) {
  .project-workspace > .panel { min-height:calc(100dvh - 160px); margin-bottom:0; }
  .page-heading:has(+ .expense-metrics) .subtitle { display:none; }
  .expense-workspace { height:calc(100dvh - 250px); min-height:620px; overflow:hidden; }
  .expense-master,.expense-detail { overflow:auto; }
  .expense-master .toolbar { position:sticky; top:0; background:#fff; z-index:1; }
  .expense-body { display:flex; flex-direction:column; min-height:100%; }
}
@media(max-width:1250px) and (min-width:1100px) {
  .content { padding:24px 20px; }
  .expense-workspace { grid-template-columns:310px minmax(0,1fr); }
  .expense-body { padding:22px; }
  .expense-detail-heading { flex-direction:column; gap:8px; }
  .metric { padding-left:18px; }
  .metric-icon { display:none; }
  .top-actions .date { display:none; }
  .expense-body .detail-grid > div { grid-template-columns:1fr; gap:3px; }
  .project-workspace { grid-template-columns:minmax(0,1fr) 320px; gap:14px; }
  .project-records th,.project-records td { padding:14px 8px; font-size:13px; }
}
@media(max-width:1099px) {
  .topbar { display:flex; flex-shrink:0; height:50px; padding:0 24px; background:var(--forest); color:#fff; }
  .page-heading > .top-actions { position:absolute; top:7px; right:24px; }
  .breadcrumb { display:flex; align-items:center; color:#edf1e7; }
  .breadcrumb strong,.top-actions { color:#edf1e7; }
  .top-actions .icon-button { border-color:#ffffff35; }
  .metric { padding-left:20px; }
  .metric-icon { display:none; }
  .expense-workspace { display:block; }
  .expense-master { border-right:0; }
  .expense-detail,.project-editor { display:none; }
  .project-workspace { display:block; }
  .expense-master .toolbar { display:flex; flex-direction:row; flex-wrap:wrap; }
  .expense-master .search { flex:1; min-width:200px; }
  .expense-master .filter-select { width:auto; }
  .expense-master .expense-filters { order:3; flex-basis:100%; }
  .expense-filter { flex:0 1 auto; }
  .dashboard-grid { grid-template-columns:minmax(0,1fr); }
  .expense-records .record-amount { width:145px; }
}
@media(max-width:700px) {
  .sidebar { width:240px; z-index:5; padding-top:24px; visibility:hidden; }
  .sidebar.open { visibility:visible; }
  .main { margin-left:0; }
  .topbar { height:60px; padding:0 16px; }
  .page-heading > .top-actions { top:12px; right:16px; }
  .breadcrumb { font-size:13px; }
  .top-actions .environment { display:none; }
  .content { padding:22px 16px 28px; }
  .page-heading { gap:12px; align-items:flex-start; margin-bottom:20px; }
  .page-heading h1 { font-size:26px; }
  .page-heading .button { padding:10px 12px; min-height:44px; font-size:13px; white-space:nowrap; }
  .subtitle { font-size:13px; }
  .welcome { margin:0 0 20px; }
  .welcome h2 { font-size:22px; }
  .welcome p { font-size:14px; }
  .metrics { padding:0; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metric { display:block; padding:16px 14px; }
  .expense-metrics .metric:last-child { grid-column:1/-1; }
  .metric + .metric { border-left:0; }
  .metric:nth-child(even) { border-left:1px solid var(--line); }
  .metric:nth-child(n+3) { border-top:1px solid var(--line); }
  .metric-top { font-size:12px; }
  .metric-icon { width:26px; height:26px; }
  .metric-icon .icon { width:16px; height:16px; }
  .metric-number { font-size:25px; }
  .metric-foot { font-size:12px; }
  .panel-head { padding:18px; }
  .panel-head h2 { font-size:18px; }
  .compact-item { flex-wrap:wrap; gap:9px; }
  .compact-item .item-content { flex-basis:55%; }
  .compact-item .amount { font-size:15px; }
  .right-list { padding:0 16px; }
  .quick { min-height:54px; }
  .expense-master .search { min-width:0; }
  .expense-master .toolbar { padding:14px; gap:10px; }
  .expense-master .filter-select { width:108px; min-width:0; font-size:12px; padding-left:8px; }
  .expense-master .expense-filters { order:3; }
  .expense-filter { flex:1; font-size:12px; padding:8px; min-height:40px; }
  .expense-filter span { padding:1px 4px; }
  .expense-records td { padding:18px 14px; }
  .expense-records .record-amount { width:108px; }
  .expense-records .row-button { font-size:16px; }
  .expense-records .amount { font-size:17px; }
  .expense-records .receipt-actions { gap:12px; }
  .receipt-actions .text-link { min-height:44px; }
  .project-records table,.project-records tbody { display:block; width:100%; }
  .project-records thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .project-records tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:18px; border-top:1px solid var(--line); }
  .project-records td { padding:0; border:0; min-width:0; }
  .project-records td:first-child { font-size:16px; grid-column:1/-1; min-width:0; }
  .project-records td:nth-child(2) { grid-column:1; font-size:14px; }
  .project-records td:nth-child(2)::before { content:"负责人 "; color:#68766e; }
  .project-records td.amount { grid-column:2; grid-row:2; font-size:20px; }
  .project-records td:last-child { text-align:right; }
  .project-records tr.selected { background:transparent; }
  .project-records td[colspan] { grid-column:1/-1; white-space:normal; }
  dialog { max-height:94dvh; }
  .expense-dialog { width:100vw; max-width:none; height:100dvh; max-height:none; margin:0; border:0; border-radius:0; }
  .expense-dialog .modal-head { background:var(--forest); color:#fff; padding:10px 16px; }
  .expense-dialog .modal-head .icon-button { color:#fff; border-color:#ffffff35; }
  .expense-body { padding:22px 16px; }
  .expense-detail-heading { gap:12px; align-items:flex-start; flex-wrap:wrap; margin-bottom:16px; }
  .expense-dialog .expense-body { padding:16px; }
  .expense-dialog .expense-steps { padding-bottom:14px; margin-bottom:14px; }
  .expense-dialog .expense-steps li { gap:4px; }
  .expense-dialog .expense-steps .step-mark { width:26px; height:26px; }
  .expense-dialog .expense-steps li::before { top:13px; }
  .expense-detail-heading h2 { font-size:20px; }
  .expense-value { font-size:28px; }
  .expense-steps strong { font-size:12px; }
  .expense-steps small { font-size:11px; }
  .expense-body .detail-grid { gap:10px 14px; padding-bottom:14px; }
  .expense-body .detail-grid dd { font-size:14px; }
  .expense-body .detail-grid dt { font-size:13px; }
  .expense-body .detail-grid > div { display:block; }
  .expense-body .detail-grid dt { margin-bottom:5px; }
  .expense-section { display:block; padding:12px 0; }
  .expense-section .section-title { margin-bottom:8px; }
  .expense-section .section-title small { display:inline; margin-left:6px; }
  .approval-form .field { display:block; }
  .approval-form .field > label { margin-bottom:8px; }
  .expense-body .attachment { flex-wrap:nowrap; gap:8px; padding:6px 10px; }
  .expense-body .receipt-filename { flex:1; min-width:0; font-size:13px; gap:6px; }
  .expense-body .receipt-filename small { display:none; }
  .expense-body .receipt-filename .icon { flex-shrink:0; }
  .expense-body .receipt-actions { margin-left:auto; gap:12px; }
  .approval-form { background:#fff; padding-top:14px; }
  .expense-dialog .approval-form { padding-bottom:118px; }
  .expense-dialog .approval-actions { position:fixed; bottom:0; left:0; right:0; padding:12px 16px max(14px,env(safe-area-inset-bottom)); z-index:2; gap:8px; flex-direction:column; align-items:stretch; box-shadow:0 -4px 18px #123d3308; }
  .approval-actions > div { display:grid; grid-template-columns:1fr 1fr; }
  .approval-actions small { font-size:12px; }
  .field-row { grid-template-columns:1fr; gap:0; }
  .modal-body { padding:22px 18px; }
  .modal-actions { padding:16px 18px; }
  .checks label { min-height:40px; font-size:14px; }
  .login-story { min-height:280px; padding:95px 28px 30px; }
  .login-message h1 { font-size:25px; margin:12px 0; }
  .login-message p { font-size:14px; }
  .login-caption { display:none; }
  .document-category { flex-basis:100%; }
  .document-category > button:first-child { font-size:14px; }
  .document-category small { font-size:12px; }
  .kb-tabs { width:100%; overflow:auto; }
  .kb-tabs button { white-space:nowrap; padding:10px; }
  .kb-source-actions { flex-direction:column; align-items:flex-start; }
  .kb-composer-bottom { align-items:flex-end; }
  .kb-composer-bottom small { max-width:70%; font-size:12px; }
  .footer { font-size:11px; line-height:1.8; }
  #toast { bottom:24px; z-index:12; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; }
}

.home-tabs { display:inline-flex; margin:0 22px 10px; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.home-tabs button { padding:9px 18px; min-height:42px; color:#59685b; font-size:14px; }
.home-tabs button[aria-pressed="true"] { background:var(--soft); color:var(--forest); font-weight:600; }
.home-tabs span { background:#f6f8f1; padding:1px 7px; border-radius:4px; margin-left:5px; }
.home-dashboard .compact-item { padding:12px 0; }
.home-dashboard .item-content h3 { font-size:16px; }
.home-dashboard td { padding:12px 18px; }
.home-dashboard .panel-head { padding-bottom:14px; }
@media(min-width:1100px) {
  .home-dashboard { grid-template-columns:minmax(0,2.1fr) minmax(270px,1fr); }
  .home-dashboard .right-list .badge { white-space:nowrap; }
}
@media(max-width:700px) {
  .home-tabs { display:flex; margin:0 16px 8px; }
  .home-tabs button { flex:1; padding:10px; }
}

.home-dashboard td .badge { margin-top:4px; }
@media(min-width:1100px) {
  .home-dashboard > div:last-child { display:flex; flex-direction:column; }
  .home-dashboard > div:last-child > .panel:last-child { flex:1; }
  .home-dashboard td { padding:12px 18px; font-size:14px; }
  .home-dashboard .title-cell { min-width:150px; }
  .home-dashboard .progress { display:inline-flex; }
}

@media(min-width:1100px) {
  .content:has(.home-dashboard) .metrics { padding:12px 0; }
  .content:has(.home-dashboard) .welcome { margin-bottom:18px; }
  .home-dashboard .compact-item { padding:8px 0; }
  .home-dashboard .panel-head { padding-top:16px; padding-bottom:12px; }
  .home-dashboard .row-button { font-size:16px; }
}
@media(max-width:700px) {
  .expense-dialog .expense-detail-heading h2 { font-size:18px; }
  .expense-dialog .expense-detail-heading { margin-bottom:12px; }
  .expense-dialog .expense-steps { margin-bottom:10px; padding-bottom:10px; }
  .expense-dialog .expense-section .detail-description { font-size:14px; line-height:1.7; }
  .expense-dialog .expense-section { padding:10px 0; }
  .expense-dialog .expense-body .detail-grid { gap:8px 14px; padding-bottom:12px; }
}

.rejection-notice { padding:16px; margin:0 0 20px; background:#fff1ec; border:1px solid #efd1c7; border-radius:8px; }
.rejection-notice h3 { font-size:15px; color:#963e2d; margin-bottom:6px; }
.rejection-notice p { white-space:pre-wrap; overflow-wrap:anywhere; color:#763e32; line-height:1.8; }
.rejection-notice small { display:block; margin-top:8px; color:#7b5b51; font-size:12px; }
.resubmit-help { display:block; margin:0 0 20px; }
.expense-resubmit { margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.expense-resubmit p { color:var(--muted); margin-bottom:12px; }
.retained-receipts { margin:0 0 22px; padding:14px; border:1px solid var(--line); border-radius:8px; min-width:0; }
.retained-receipts legend { padding:0 5px; }
.retained-receipt { display:flex; align-items:center; gap:10px; min-height:44px; overflow-wrap:anywhere; }
.retained-receipt input { flex-shrink:0; min-height:20px; width:20px; height:20px; }
.retained-receipt span { min-width:0; }
.retained-receipt small { display:block; font-size:12px; }
.expense-history { border-top:1px solid var(--line); margin-top:20px; padding-top:16px; }
.expense-history summary { cursor:pointer; color:var(--green); padding:6px 0; }
.expense-history article { padding:14px 0; }
.expense-history .rejection-notice { margin:10px 0; }
.website-navigation { margin-bottom:24px; }
.expense-category-actions { display:flex; justify-content:flex-end; margin:-8px 0 18px; }
.expense-category-list { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 24px; }
.expense-category-list > .row-between { width:100%; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); }
.expense-category-list > .row-between > span { min-width:0; overflow-wrap:anywhere; }
.expense-category-list > .row-between > div { display:flex; gap:16px; flex-shrink:0; }
.weekly-filters { display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding:4px 24px 22px; }
.weekly-filter { display:flex; flex-direction:column; gap:7px; font-size:13px; color:var(--muted); min-width:150px; }
.weekly-filter small { font-size:11px; }
.weekly-tabs { display:flex; gap:6px; }
.weekly-tabs button { padding:8px 12px; border-radius:7px; }
.weekly-tabs button[aria-pressed="true"] { background:var(--soft); color:var(--green); font-weight:600; }
.weekly-pagination { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:12px; padding:20px 24px; font-size:13px; color:var(--muted); }
.weekly-updated { display:block; margin-top:6px; color:var(--green); font-size:12px; }
.weekly-mobile { display:none; }
.weekly-desktop td > small { display:block; color:var(--muted); margin-top:5px; }
.weekly-form-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:22px; }
.weekly-times { display:flex; flex-wrap:wrap; gap:8px 20px; margin:14px 0; color:var(--muted); }
.weekly-section { padding:18px 0; border-bottom:1px solid var(--line); }
.weekly-section h3 { font-size:15px; margin-bottom:8px; }
.weekly-section .detail-description { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.weekly-detail .timeline p { white-space:pre-wrap; overflow-wrap:anywhere; }
.weekly-detail .section-title { overflow-wrap:anywhere; }
.weekly-form-actions .button { white-space:normal; }
.password-book-hint { padding:0 24px; color:var(--muted); font-size:13px; line-height:1.8; }
.password-book-search { padding:18px 24px; max-width:540px; }
.password-book-search label { display:block; font-size:13px; margin-bottom:8px; color:var(--muted); }
.password-book-search input { width:100%; }
.password-book-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:0 24px 24px; }
.password-book-card { border:1px solid var(--line); border-radius:12px; padding:20px; min-width:0; }
.password-book-card h3 { margin:16px 0 10px; font-size:16px; overflow-wrap:anywhere; }
.password-book-owner, .password-book-bottom small { color:var(--muted); font-size:12px; }
.password-book-owner { overflow-wrap:anywhere; }
.password-book-bottom { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:10px; border-top:1px solid var(--line); padding-top:14px; margin-top:18px; }
.password-book-detail h3 { overflow-wrap:anywhere; }
.password-book-detail .detail-description { line-height:1.8; }
.password-book-detail .detail-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.password-book-delete { margin-top:24px; border-top:1px solid var(--line); padding-top:18px; }
.password-book-delete summary { cursor:pointer; font-size:13px; color:#a34435; }
.password-book-delete .field-help { margin:12px 0; }
@media(max-width:1099px) { .password-book-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
  .password-book-grid { grid-template-columns:minmax(0,1fr); padding:0 16px 16px; }
  .password-book-hint { padding:0 16px; }
  .password-book-search { padding:16px; }
  .password-book-detail .row-between { gap:12px; align-items:flex-start; }
}
@media(max-width:700px) {
  .weekly-desktop { display:none; }
  .weekly-mobile { display:block; }
  .weekly-panel .panel-head { align-items:flex-start; gap:12px; flex-wrap:wrap; }
  .weekly-filters { padding:0 16px 18px; gap:12px; }
  .weekly-filter { min-width:0; flex:1 1 140px; }
  .weekly-filter input, .weekly-filter select { width:100%; min-width:0; }
  .weekly-card { padding:18px 16px; border-top:1px solid var(--line); overflow-wrap:anywhere; }
  .weekly-card h3 { font-size:14px; margin:12px 0; }
  .weekly-card p { font-size:12px; color:var(--muted); margin-bottom:6px; }
  .weekly-card > .text-link { margin-top:10px; }
  .weekly-pagination { padding:16px; gap:8px; }
  .weekly-form-actions { flex-wrap:wrap; }
}
.kb-category-filter { display:flex; align-items:center; gap:12px; padding:0 20px 18px; }
.kb-category-filter select { width:min(280px,70%); }
.kb-category-list { margin:16px 0; }
.kb-category-list > div { display:flex; align-items:center; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); }
.kb-category-list strong { flex:1; min-width:0; overflow-wrap:anywhere; }
.website-navigation-heading { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.website-navigation-heading h2 { font-size:15px; color:var(--ink); }
.website-navigation-heading > span { font-size:12px; color:var(--muted); }
.website-navigation-heading { flex-wrap:wrap; }
.website-navigation-heading .text-link { display:inline-flex; align-items:center; gap:5px; }
.website-navigation-heading .text-link .icon { width:15px; height:15px; }
.website-category-tabs { display:flex; gap:8px; overflow-x:auto; padding-bottom:12px; }
.website-category-tabs button { flex-shrink:0; padding:6px 14px; border-radius:7px; font-size:13px; color:var(--muted); }
.website-category-tabs button[aria-pressed="true"] { background:var(--soft); color:var(--green); font-weight:600; }
.website-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:12px; }
.website-slot { display:flex; align-items:center; min-width:0; min-height:68px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.website-slot > a { display:flex; align-items:center; gap:10px; padding:14px 0 14px 14px; flex:1; min-width:0; color:var(--ink); }
.website-slot:has(a:hover) { border-color:var(--green); background:#f4f8ef; }
.website-mark { display:grid; place-items:center; width:30px; height:30px; flex-shrink:0; border-radius:9px; background:var(--soft); color:var(--green); font-weight:600; }
.website-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.website-edit { display:grid; place-items:center; flex-shrink:0; width:30px; height:44px; color:var(--muted); border-radius:6px; }
.website-edit .icon { width:15px; height:15px; }
.website-edit:hover { color:var(--green); background:var(--soft); }
.website-add { justify-content:center; gap:8px; border-style:dashed; color:var(--muted); font-size:13px; }
.website-add:hover { border-color:var(--green); color:var(--green); background:#f4f8ef; }
.website-add .icon { width:18px; height:18px; }
@media(max-width:1099px) {
  .website-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .website-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .page-heading:has(.kb-tabs) { flex-wrap:wrap; }
  .page-heading:has(.kb-tabs) > div:first-child { flex-basis:100%; }
  .website-slot { min-height:60px; }
  .website-slot > a { padding-left:10px; gap:8px; }
  .website-navigation-heading { flex-wrap:wrap; gap:6px 12px; }
}

.settlement-status { display:block; margin:8px 0; color:var(--green); font-size:12px; }
.badge.advanced { background:#fff2d6; color:#97600f; }

.expense-section.settlement-record { display:block; }
.settlement-record h3 { margin-bottom:14px; font-size:15px; }
.settlement-record .detail-description { margin-top:12px; }
