.expense-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.expense-upload { border: 1px dashed #a6bce4; border-radius: 10px; background: #f6f9ff; padding: 20px; margin-bottom: 14px; }
.expense-upload input { background: white; }
.expense-upload .help { margin-bottom: 0; }
.expense-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.expense-settings > label { margin: 16px 0; }
.expense-settings pre { white-space: pre-wrap; background: #f4f7fb; padding: 14px; border-radius: 8px; }
.expense-receipt > summary { cursor: pointer; overflow-wrap: anywhere; }
.expense-pair { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 22px; margin-top: 18px; align-items: start; }
.expense-source { min-width: 0; position: sticky; top: 91px; background: #f1f4f8; padding: 12px; border: 1px solid var(--line); border-radius: 9px; text-align: center; }
.expense-source img { display: block; width: 100%; height: auto; max-height: 68vh; object-fit: contain; }
.expense-source p { margin: 6px 0 0; }
.expense-fields { border: 1px solid var(--line); border-radius: 9px; min-width: 0; margin: 0; padding: 14px; }
.expense-fields legend { padding: 0 7px; font-weight: 700; }
.expense-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.expense-more { margin: 14px 0; }
.expense-more > summary { cursor: pointer; margin-bottom: 10px; }
.expense-item, .expense-extra { display: grid; align-items: end; gap: 8px; margin-bottom: 8px; }
.expense-item { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.expense-extra { grid-template-columns: repeat(2, minmax(0,1fr)) auto; }
.expense-warnings { background: #fff6e4; color: #6c4a17; border-radius: 8px; margin: 0 0 14px; padding: 10px 12px 10px 29px; line-height: 1.65; }
.expense-confirm { margin-top: 16px; background: #edf4ff; padding: 12px; border-radius: 7px; }
.expense-download { display: inline-block; padding: 9px 13px; border: 1px solid #c8d7f1; border-radius: 8px; font-weight: 650; }
.expense-note { max-width: 340px; min-width: 150px; white-space: pre-wrap; overflow-wrap: anywhere; }
.expense-waiting { color: #6c4a17; line-height: 1.7; padding-left: 18px; }
.expense-project-toggle { display: none; }
#expense-history-search { margin-bottom: 14px; }
@media (max-width: 980px) {
  .expense-pair { grid-template-columns: 1fr; }
  .expense-source { position: static; }
}
@media (max-width: 480px) {
  .expense-file { align-items: start; flex-direction: column; }
  .expense-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  header .account .expense-project-toggle { display: block; padding: 6px 9px; }
  .layout, .layout.interactive-workspace {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100dvh - 100px);
    overflow: hidden;
  }
  .layout > .project-tools {
    display: flex;
    flex-direction: row;
    flex: 0 0 auto;
    height: 56px;
    padding: 7px 10px;
    gap: 8px;
    overflow-x: auto;
  }
  .project-tools .tool-spacer { display: none; }
  .layout > .project-sidebar { display: none; }
  .layout.expense-navigation-open > .project-sidebar {
    display: flex;
    flex: 0 0 240px;
    margin: 0 10px 8px;
    border-radius: 10px;
  }
  .expense-navigation-open .list-overview { display: none; }
  .expense-navigation-open .list-tabs { display: none; }
  .expense-navigation-open .list-search { display: none; }
  .layout > main { flex: 1 1 auto; height: auto; min-height: 0; padding: 16px 12px 32px; width: 100%; }
  .layout-toolbar { display: none; }
  .panel-title { align-items: start; gap: 12px; }
  .panel { padding: 16px; }
  .expense-receipt > summary .tag { margin-top: 6px; }
}
