/* Denario workspace. Loaded after the legacy page styles. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/ibm-plex-sans-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --header-bg: #164b3c;
  --header-bg-2: #164b3c;
  --sidebar-bg: #164b3c;
  --page-bg: #f3f6f5;
  --primary-green: #164b3c;
  --secondary-green: #54786b;
  --soft-green: #edf4f0;
  --border: #dae3df;
  --text-primary: #182c29;
  --text-secondary: #647471;
  --success: #256748;
  --warning: #a76419;
  --danger: #a83631;
  --alert-orange: #a76419;
  --muted: #f6f8f7;
  --workspace-radius: 10px;
  --workspace-focus: #286e58;
}

html {
  scroll-padding-top: 90px;
}

html,
body {
  min-width: 0;
  font-family: "IBM Plex Sans", "Segoe UI", "Noto Sans", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  font-size: 0.875rem;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--workspace-focus) !important;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  background: #fff;
  color: var(--primary-green);
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Institutional identity and persistent navigation. */
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 232px;
  height: 100vh;
  height: 100dvh;
  padding: 24px 16px 18px;
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  background: var(--sidebar-bg);
  color: #f3f8f5;
  scrollbar-color: #729687 var(--sidebar-bg);
  scrollbar-width: thin;
}

.sidebar-header {
  height: auto;
  min-height: 45px;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 6px;
}

.workspace-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: inherit;
}

.brand-mark {
  display: block;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  color: currentColor;
}

.brand-name {
  display: block;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.brand-caption {
  display: block;
  margin-top: 4px;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.015em;
}

.sidebar .brand-caption {
  color: #c4d8ce;
}

.sidebar .brand-mark {
  color: #dcece2;
}

.sidebar .brand-mark path {
  stroke: #164b3c;
}

.sidebar .workspace-section-title {
  margin: 4px 11px -12px;
  color: #c4d8ce;
  font-size: 0.6875rem;
  font-weight: 400;
}

.menu-search {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 0 11px;
  border: 1px solid #537869;
  border-radius: 6px;
  background: #235744;
  color: #e9f1ec;
}

.menu-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.menu-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.8125rem;
}

.menu-search input::placeholder {
  color: #c7d9cf;
  opacity: 1;
}

.menu-search-empty {
  margin: 0 11px;
  color: #dceae2;
  font-size: 0.8125rem;
}

.nav {
  gap: 4px;
  margin-top: 5px;
}

.nav a,
.nav-parent {
  height: auto;
  min-height: 42px;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 6px;
  color: #dceae2;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
}

.nav a:hover,
.nav-parent:hover,
.nav-parent:focus-visible,
.nav-group.is-open .nav-parent {
  background: #285d49;
  color: #fff;
}

.nav a.active,
.nav .nav-submenu a.active {
  background: #dcece2;
  color: #164b3c;
  font-weight: 600;
}

.sidebar :focus-visible {
  outline-color: #e0efe6 !important;
}

.nav a.active:focus-visible {
  outline-color: #fff !important;
}

.nav-icon {
  display: inline-grid;
  width: 19px;
  height: 20px;
  flex: 0 0 19px;
  place-items: center;
  opacity: 1;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-chevron {
  color: #c4d8ce;
}

.nav-submenu {
  margin-left: 20px;
  padding-left: 12px;
  border-left-color: #537869;
}

.nav-group.is-open .nav-submenu {
  max-height: 220px;
  margin-top: 7px;
  margin-bottom: 7px;
}

.nav .nav-submenu a {
  height: auto;
  min-height: 35px;
  padding: 7px 8px 7px 16px;
  border-radius: 5px;
  color: #d2e3d9;
  font-size: 0.8125rem;
}

.nav .nav-submenu a::before {
  background: #9fbdae;
}

.nav .nav-submenu a:hover,
.nav .nav-submenu a:focus-visible {
  background: #285d49;
  color: #fff;
}

.nav .nav-submenu a.active::before {
  background: var(--primary-green);
}

.nav-count {
  background: #dcece2;
  color: #164b3c;
}

.sidebar-user {
  margin-top: auto;
  padding-top: 18px;
  border-top-color: #537869;
}

.user-card {
  min-width: 0;
  margin-bottom: 5px;
  padding: 0 3px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

#sidebarUsername,
#topbarUsername {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card .avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: #dcece2;
  color: #164b3c;
}

.user-email {
  padding: 0 3px 12px;
  color: #c4d8ce;
  font-size: 0.75rem;
}

.logout-btn {
  min-height: 37px;
  height: auto;
  padding: 8px 12px;
  border: 1px solid #6b8e7d;
  border-radius: 6px;
  background: transparent;
  color: #f3f8f5;
  font-size: 0.8125rem;
  font-weight: 500;
}

.logout-btn:hover {
  background: #285d49;
}

.sidebar-footer {
  margin-top: 0;
  padding-left: 3px;
  color: #b6cfc0;
  font-size: 0.6875rem;
}

.sidebar-backdrop,
.hamburger {
  display: none;
}

.content {
  width: 100%;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: auto;
  min-height: 72px;
  gap: 20px;
  padding: 13px 30px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  box-shadow: none;
}

.topbar-left,
.topbar-right {
  min-width: 0;
}

.workspace-context {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
}

.workspace-context strong {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.workspace-environment {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #f7faf8;
  color: #526a5c;
  font-size: 0.6875rem;
  line-height: 1.4;
  white-space: nowrap;
}

.user-pill {
  min-width: 0;
  max-width: 250px;
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.topbar-right .user-pill {
  display: flex;
}

.user-pill .avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: var(--soft-green);
  color: var(--primary-green);
}

/* OFX preparation, provenance and operational summary. */
.dashboard,
.documents-view,
.office-tools-view,
.routine-monitor {
  min-width: 0;
  min-height: calc(100vh - 72px);
  padding: 28px 30px 40px;
  background: var(--page-bg);
  animation: none;
}

.hero-box,
.workspace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--workspace-radius);
  background: #fff;
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
  justify-content: flex-start;
  padding: 26px 28px;
  background: #fff;
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.eyebrow::before {
  content: none;
}

.hero-copy h1,
.documents-heading h1,
.office-tools-heading h1,
.routine-monitor-heading h1 {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.hero-copy .desc {
  max-width: 69ch;
  margin-top: 11px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.hero-actions {
  align-items: center;
  gap: 9px;
  margin-top: 23px;
}

.upload-btn,
.primary-btn,
.secondary-btn,
.filter-btn,
.document-action,
.transaction-candidate-confirm {
  min-height: 40px;
  height: auto;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: none;
}

.upload-btn {
  min-width: 176px;
  border-color: #aebfb5;
  background: #fff;
}

.upload-btn input {
  width: 100%;
  height: 100%;
}

.upload-btn:has(input:focus-visible) {
  outline: 2px solid var(--workspace-focus);
  outline-offset: 3px;
}

.primary-btn,
.transaction-candidate-confirm,
.document-action.primary {
  border-color: var(--primary-green);
  background: var(--primary-green);
  color: #fff;
}

.primary-btn:hover,
.transaction-candidate-confirm:hover,
.document-action.primary:hover,
.auth-submit:hover {
  background: #0f3c2e;
}

.secondary-btn,
.filter-btn,
.document-action {
  border-color: #c8d5cd;
  background: #fff;
  color: var(--text-primary);
}

.secondary-btn:hover,
.filter-btn:hover,
.document-action:hover,
.upload-btn:hover {
  border-color: #a4baac;
  background: #f1f6f3;
  color: var(--primary-green);
}

.automation-btn {
  border-color: #87a491;
  color: var(--primary-green);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.transaction-candidate-confirm:disabled,
.document-action:disabled,
.auth-submit:disabled {
  border-color: #d3dcd7;
  background: #e9eeeb;
  color: #64746b;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.file-status {
  margin-top: 15px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.ofx-origin-summary {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #f7f9f8;
  font-size: 0.8125rem;
}

.ofx-origin-summary dl {
  gap: 12px 25px;
}

.ofx-origin-summary dt {
  margin-bottom: 3px;
  color: var(--text-secondary);
  font-size: 0.6875rem;
}

.ofx-origin-summary dd {
  font-weight: 600;
}

.ofx-origin-inline {
  font-size: 0.8125rem;
  line-height: 1.55;
}

.automation-status,
.payroll-search-notice {
  max-width: none;
  margin-top: 13px;
  padding: 11px 13px;
  border-radius: 5px;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.automation-status {
  background: #edf4f0;
  color: #294f3f;
}

.automation-status.is-error {
  background: #fff2f0;
  color: #8f302b;
}

.payroll-search-notice,
.transaction-review-divergences {
  border-left-color: #a76419;
  background: #fff7e9;
  color: #865014;
}

.hero-visual {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
  border-left: 1px solid var(--border);
  background: #f8faf9;
}

.mini-panel {
  position: static;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mini-header,
.workspace-section-title {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
}

.mini-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0 16px;
  border-top: 1px solid var(--border);
}

.mini-grid div {
  min-width: 0;
  min-height: 49px;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.mini-grid span {
  font-size: 0.6875rem;
  letter-spacing: normal;
  text-transform: none;
}

.mini-grid strong {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}

.mini-grid div:nth-child(2) {
  grid-column: auto;
}

.mini-grid #miniTotal {
  font-size: 1rem;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.summary-card {
  min-width: 0;
  min-height: 117px;
  padding: 16px 17px;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.summary-card:last-child {
  grid-column: span 2;
}

.summary-card .label {
  min-height: 21px;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.45;
  text-transform: none;
}

.summary-card .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.summary-card .value {
  margin-top: 12px;
  font-size: clamp(1.25rem, 1.6vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.summary-card .meta {
  margin-top: 5px;
  font-size: 0.6875rem;
  line-height: 1.45;
}

.lower-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.panel,
.workflow-guide {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--workspace-radius);
  background: #fff;
  box-shadow: none;
}

.panel-head {
  min-height: 62px;
  height: auto;
  gap: 16px;
  padding: 15px 18px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.panel-title {
  min-width: 0;
}

.panel-title small {
  font-size: 0.75rem;
}

.filter-btn {
  flex-shrink: 0;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.75rem;
}

.workflow-guide {
  padding: 20px 22px;
}

.workflow-guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow-step;
}

.workflow-guide-list li {
  position: relative;
  min-width: 0;
  padding-left: 33px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.55;
  counter-increment: workflow-step;
}

.workflow-guide-list li::before {
  content: counter(workflow-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #c0d2c6;
  border-radius: 50%;
  color: var(--primary-green);
  font-size: 0.75rem;
  font-weight: 600;
}

.workflow-guide-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-weight: 600;
}

.workflow-guide-list p {
  margin: 0;
}

/* Transaction rows stay compact; their full comparison uses a separate row. */
table {
  font-variant-numeric: tabular-nums;
}

thead th {
  padding: 11px 14px;
  background: #f6f8f7;
  color: #52635d;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

tbody td {
  padding: 13px 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.transaction-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  container-type: inline-size;
}

.transaction-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.transaction-table th:nth-child(1) {
  width: 99px;
}

.transaction-table th:nth-child(3) {
  width: 144px;
}

.transaction-table th:nth-child(4) {
  width: 143px;
}

.transaction-table th:nth-child(5) {
  width: 229px;
}

.transaction-summary-row > td {
  vertical-align: top;
}

.transaction-summary-row > td:nth-child(2),
.transaction-summary-row > td:nth-child(3) {
  overflow-wrap: anywhere;
}

.transaction-summary-row > td:nth-child(4) {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.transaction-status-cell {
  min-width: 0;
}

.status-pill {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
}

.status-pill.green {
  border-color: #c9dfd0;
  background: #edf6ef;
  color: #256748;
}

.status-pill.amber {
  border-color: #ebd8b6;
  background: #fff7e9;
  color: #865014;
}

.status-pill.red {
  border-color: #edc7c2;
  background: #fff2f0;
  color: #99352e;
}

.status-pill.gray {
  border-color: #d9e2dc;
  background: #f2f5f3;
  color: #586a60;
}

.transaction-documents-link {
  margin-top: 7px;
  font-size: 0.75rem;
  font-weight: 500;
}

.transaction-review-toggle {
  max-width: 100%;
  min-height: 31px;
  margin-top: 6px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.transaction-review-row > td {
  padding: 0 18px 20px;
}

.transaction-review-heading {
  gap: 20px;
  padding: 19px 0 14px;
}

.transaction-review-heading h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.transaction-review-heading p {
  max-width: 75ch;
  font-size: 0.8125rem;
}

.transaction-review-amount strong {
  font-size: 1.0625rem;
  font-weight: 600;
}

.transaction-review-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin: 15px 0;
}

.transaction-review-card {
  padding: 17px;
  border-radius: 7px;
  line-height: 1.55;
}

.transaction-review-card:has(input:checked) {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 1px var(--primary-green);
}

.transaction-review-card-head {
  align-items: flex-start;
}

.transaction-review-rank,
.transaction-review-support {
  font-size: 0.6875rem;
  font-weight: 600;
}

.transaction-review-support {
  max-width: 100%;
  background: #f0f4f1;
  color: #586a60;
}

.transaction-review-card h4 {
  margin: 13px 0 9px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.transaction-review-card p {
  margin: 9px 0;
  font-size: 0.8125rem;
}

.transaction-review-label {
  font-weight: 500;
}

.transaction-review-divergences {
  padding: 11px 12px;
  font-size: 0.8125rem;
}

.transaction-review-panel summary {
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 600;
}

.transaction-review-selection {
  align-items: center;
  gap: 9px;
  padding-top: 14px;
}

.transaction-candidate-radio {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 0;
}

.transaction-review-selection .transaction-candidate-label,
.transaction-candidate-label,
.transaction-candidate-review-link {
  font-size: 0.8125rem;
  font-weight: 500;
}

.transaction-candidate-picker legend {
  font-size: 0.8125rem;
  font-weight: 600;
}

.transaction-candidate-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.transaction-review-footer .transaction-candidate-confirm,
.transaction-candidate-confirm {
  font-size: 0.8125rem;
}

.transaction-candidate-confirm.transaction-candidate-reject {
  border-color: #b6c9bc;
  background: #fff;
  color: var(--primary-green);
}

.transaction-manual-link {
  margin-top: 20px;
  padding-top: 17px;
  font-size: 0.8125rem;
}

.transaction-manual-link input {
  min-height: 42px;
  border-color: #bccdc2;
  border-radius: 6px;
  background: #fff;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.transaction-manual-link p,
.transaction-review-footer p {
  max-width: 80ch;
  margin: 9px 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
}

/* Document library and authenticated tools share the same surfaces. */
.documents-heading,
.office-tools-heading {
  align-items: center;
  gap: 22px;
  padding-bottom: 23px;
}

.documents-heading p,
.office-tools-heading p,
.routine-monitor-heading p {
  max-width: 78ch;
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.documents-toolbar {
  gap: 20px;
  padding: 19px 0;
}

.document-search,
.tim-base-search,
.tim-base-input,
.auth-field input {
  min-height: 42px;
  border-color: #bdcec3;
  border-radius: 6px;
  background: #fff;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.documents-list {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--workspace-radius);
  background: #fff;
}

.document-group {
  background: #fff;
}

.document-group:last-child {
  border-bottom: 0;
}

.document-group > summary {
  grid-template-columns: 86px minmax(0, 1fr) 105px 140px 90px 18px;
  gap: 16px;
  padding: 18px;
}

.document-bank-memo,
.document-file strong {
  font-weight: 600;
}

.document-file small {
  font-size: 0.75rem;
}

.document-action {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.75rem;
}

.document-classification {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: max-content minmax(190px, 320px) max-content;
  align-items: center;
  justify-content: start;
  gap: 8px 12px;
  padding: 4px 0 6px;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.document-classification label {
  font-weight: 600;
}

.document-classification select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 6px 30px 6px 10px;
  border: 1px solid #bdcec3;
  border-radius: 6px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.document-classification small {
  grid-column: 2 / -1;
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
}

#documentsFeedback {
  min-height: 0;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #c5dfd1;
  border-radius: 6px;
  background: #eef7f1;
  color: var(--primary-green);
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 1200px) {
  .document-classification { grid-column: 1 / -1; }
  .document-item > .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .document-classification {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }
  .document-classification small { grid-column: 1; }
  .document-classification button { justify-self: start; }
}

.office-tools-grid {
  gap: 20px;
}

.office-tool-card,
.tim-base-panel,
.routine-monitor-card,
.routine-monitor-section {
  border-color: var(--border);
  border-radius: var(--workspace-radius);
  background: #fff;
  box-shadow: none;
}

.office-tool-card {
  min-height: 0;
  padding: 25px;
}

.office-tool-kind {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.office-tool-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.office-tool-description {
  min-height: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.office-tool-file-input {
  min-width: 0;
  border-color: #c5d5cb;
  border-radius: 6px;
  background: #f7faf8;
  font-size: 0.8125rem;
}

.office-tool-file-input::file-selector-button {
  border-color: #c1d2c5;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
}

.office-tool-file-field,
.tim-base-field,
.tim-base-allocation legend {
  font-weight: 600;
}

.office-tool-status,
.routine-monitor-state {
  border-radius: 6px;
  font-weight: 500;
}

.tim-base-panel {
  padding: 24px;
}

.tim-base-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.tim-base-list,
.tim-base-form,
.tim-base-confirmation {
  border-color: var(--border);
  border-radius: 7px;
  background: #fafcfb;
}

.tim-base-summary,
.tim-base-confirmation-details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tim-base-summary div,
.tim-base-confirmation-details div {
  background: #f2f6f3;
}

.tim-base-table {
  min-width: 520px;
  background: #fff;
}

.tim-base-table th,
.tim-base-table td {
  font-size: 0.8125rem;
}

.tim-base-heading h2,
.routine-monitor-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.tim-base-section-heading h3,
.tim-base-form h3,
.tim-base-confirmation h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.nfse-tool-frame {
  border-radius: 7px;
}

.routine-monitor-heading {
  gap: 20px;
}

.routine-monitor-card {
  padding: 17px;
}

.routine-monitor-card strong {
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.routine-monitor-card span,
.routine-monitor-details dt,
.routine-monitor-metrics dt {
  font-size: 0.75rem;
}

.routine-monitor-section {
  padding: 22px;
}

.routine-monitor-list li,
.routine-monitor-catalog article {
  border-color: var(--border);
  border-radius: 6px;
}

.routine-monitor-details dd,
.routine-monitor-metrics dd,
.routine-monitor-catalog h3 {
  font-weight: 600;
}

.access-dialog {
  padding: 26px;
  border-radius: 12px;
  box-shadow: 0 22px 70px #123a2829;
}

.access-dialog::backdrop {
  background: #102d24a6;
}

/* Login retains the existing server-controlled provider and session gate. */
.auth-gate {
  padding: 32px 20px;
  background: var(--page-bg);
}

.auth-card {
  width: min(456px, 100%);
  padding: 36px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary-green);
  border-radius: var(--workspace-radius);
  background: #fff;
  box-shadow: 0 12px 36px #1b45310a;
}

.auth-brand,
.auth-card .workspace-brand {
  width: auto;
  margin-bottom: 32px;
  color: var(--primary-green);
}

.auth-card .brand-name {
  font-size: 1.875rem;
}

.auth-card .brand-caption {
  color: var(--text-secondary);
}

.auth-card h1 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.auth-card > p {
  margin-top: 12px;
  margin-bottom: 23px;
  font-size: 0.875rem;
  line-height: 1.65;
}

.auth-submit {
  min-height: 44px;
  height: auto;
  padding: 11px 15px;
  border: 1px solid var(--primary-green);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.auth-google-link {
  border-radius: 6px;
  font-weight: 600;
}

.auth-note {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* Adapt to the workspace width without truncating financial evidence. */
@media (min-width: 1700px) {
  .summary-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .summary-card:last-child {
    grid-column: auto;
  }

  .summary-card .value {
    font-size: 1.375rem;
  }
}

@media (max-width: 1199px) {
  .hero-box,
  .workspace-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    padding: 18px 26px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .mini-grid div {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 12px 0 0;
    border-bottom: 0;
  }

  .mini-grid strong {
    text-align: left;
  }

  .documents-heading,
  .office-tools-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .documents-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .document-summary {
    text-align: left;
  }

  .document-group > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
  }

  .tim-base-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tim-base-confirmation {
    grid-column: auto;
  }

  .routine-monitor-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .routine-monitor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 999px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: 264px;
    max-width: calc(100vw - 48px);
    height: 100vh;
    height: 100dvh;
    padding: 22px 16px 18px;
    border: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 180ms ease, visibility 180ms;
  }

  body.sidebar-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #102d2499;
  }

  body:not(.sidebar-open) .sidebar-backdrop {
    display: none;
  }

  .hamburger {
    display: inline-grid;
    width: 38px;
    height: 38px;
    min-width: 38px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--primary-green);
    line-height: 1;
  }

  .sidebar-header {
    padding: 0;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .sidebar .hamburger {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-color: #6b8e7d;
    background: transparent;
    color: #fff;
  }

  .topbar-left .hamburger {
    border-color: var(--border);
    background: #fff;
    color: var(--primary-green);
  }

  .topbar {
    gap: 16px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .dashboard,
  .documents-view,
  .office-tools-view,
  .routine-monitor {
    padding: 24px;
  }

  .office-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-guide-list {
    gap: 18px;
  }
}

@media (max-width: 679px) {
  html {
    scroll-padding-top: 84px;
  }

  .topbar {
    min-height: 66px;
    gap: 12px;
    padding: 12px 16px;
  }

  .topbar-left {
    gap: 11px;
  }

  .workspace-context {
    font-size: 0.6875rem;
  }

  .workspace-context strong {
    font-size: 0.8125rem;
  }

  .workspace-environment {
    display: none;
  }

  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 9px;
  }

  .user-pill {
    max-width: 140px;
    font-size: 0.75rem;
  }

  .dashboard,
  .documents-view,
  .office-tools-view,
  .routine-monitor {
    min-height: calc(100vh - 66px);
    padding: 18px 14px 30px;
  }

  .hero-copy {
    padding: 21px 19px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    margin-top: 20px;
  }

  .hero-actions > button,
  .hero-actions > label {
    width: 100%;
  }

  .hero-visual {
    padding: 18px 19px;
  }

  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }

  .mini-grid strong {
    font-size: 1.1875rem;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 15px;
  }

  .summary-card {
    min-height: 113px;
    padding: 14px 12px;
  }

  .summary-card .value {
    font-size: 1.1875rem;
  }

  .summary-card:nth-child(2) .value {
    font-size: 1.0625rem;
  }

  .summary-card .label {
    align-items: flex-start;
    font-size: 0.6875rem;
  }

  .summary-card .icon {
    width: 16px;
    height: 17px;
    flex-basis: 16px;
    font-size: 0.6875rem;
  }

  .panel-head {
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
  }

  .workflow-guide {
    padding: 20px;
  }

  .workflow-guide-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .documents-heading,
  .office-tools-heading {
    gap: 17px;
    padding-bottom: 20px;
  }

  .document-search {
    width: 100%;
  }

  .document-group > summary {
    padding: 16px 14px;
  }

  .document-actions {
    flex-wrap: wrap;
  }

  .office-tools-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 20px;
  }

  .office-tool-card,
  .tim-base-panel,
  .routine-monitor-section {
    padding: 19px;
  }

  .tim-base-summary,
  .tim-base-confirmation-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tim-base-heading,
  .tim-base-section-heading,
  .tim-base-confirm-actions,
  .routine-monitor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .tim-base-list,
  .tim-base-form,
  .tim-base-confirmation {
    padding: 15px;
  }

  .tim-base-search {
    max-width: none;
  }

  .routine-monitor-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .routine-monitor-details,
  .routine-monitor-metrics,
  .routine-monitor-catalog {
    grid-template-columns: minmax(0, 1fr);
  }

  .nfse-tool-frame {
    min-height: 540px;
  }

  .access-dialog {
    padding: 21px;
  }

  .auth-gate {
    padding: 24px 16px;
  }

  .auth-card {
    padding: 28px 24px;
  }
}

@media (max-width: 419px) {
  .topbar-right .user-pill {
    max-width: 110px;
  }

  .topbar-right .user-pill .avatar {
    display: none;
  }

  .summary-card:nth-child(2) .value {
    font-size: 0.9375rem;
  }

  .panel-head {
    flex-wrap: wrap;
  }

  .tim-base-summary,
  .tim-base-confirmation-details,
  .access-dialog .tim-base-confirmation-details {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container (max-width: 880px) {
  .transaction-review-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 759px) {
  .transaction-table {
    display: block;
    min-width: 0;
  }

  .transaction-summary-row {
    gap: 10px 15px;
    padding: 17px 15px;
  }

  .transaction-summary-row > td {
    padding: 0;
  }

  .transaction-mobile-label {
    margin-bottom: 3px;
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
  }

  .transaction-review-row > td {
    padding: 0 15px 18px;
  }

  .transaction-status-cell .status-pill {
    max-width: 100%;
  }
}

@container (max-width: 580px) {
  .transaction-review-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .transaction-review-heading {
    flex-direction: column;
    gap: 12px;
  }

  .transaction-review-amount {
    text-align: left;
  }

  .transaction-review-card {
    padding: 16px;
  }

  .transaction-candidate-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .transaction-candidate-actions button,
  .transaction-manual-link button {
    width: 100%;
  }
}

/* Home is an operational starting point: resume first, attention next, context aside. */
.home-view {
  min-width: 0;
  min-height: calc(100vh - 72px);
  padding: 30px 30px 42px;
  background: var(--page-bg);
  text-align: left;
}

.home-view *,
.home-view *::before,
.home-view *::after {
  box-sizing: border-box;
}

.home-heading {
  margin-bottom: 26px;
}

.home-heading h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-align: left;
}

.home-heading > p {
  max-width: 70ch;
  margin: 9px 0 0;
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  align-items: start;
  gap: 32px;
}

.home-primary,
.home-aside {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 28px;
}

.home-view h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-align: left;
}

.home-resume {
  min-width: 0;
  padding: 25px 27px 27px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-green);
  border-radius: var(--workspace-radius);
  background: #fff;
}

.home-section-label {
  margin: 0 0 11px;
  color: var(--primary-green);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
}

.home-resume h2 {
  max-width: 36ch;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.home-resume > p:not(.home-section-label) {
  max-width: 66ch;
  margin: 12px 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
}

.home-file {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.home-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
  margin: 22px 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--border);
}

.home-context > div {
  min-width: 0;
}

.home-context dt {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
}

.home-context dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.home-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 23px;
}

.home-actions > a,
.home-actions > button {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.home-muted {
  color: var(--text-primary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.home-attention {
  min-width: 0;
}

.home-attention > .home-muted {
  max-width: 68ch;
  margin: 7px 0 17px;
}

.home-attention-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.home-attention-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px 21px;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.home-attention-item > div {
  min-width: 0;
}

.home-attention-item > div > strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.home-attention-item p {
  max-width: 64ch;
  margin: 4px 0 0;
  color: var(--text-primary);
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.home-attention-count {
  color: var(--warning);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.home-attention-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 3px;
  color: var(--primary-green);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-attention-link:hover {
  text-decoration-thickness: 2px;
}

.home-aside {
  padding-left: 27px;
  border-left: 1px solid var(--border);
}

.home-status {
  min-width: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--border);
}

.home-state {
  margin: 17px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--primary-green);
  color: var(--primary-green);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.home-state.is-warning,
.home-state.is-error {
  border-left-color: var(--warning);
  color: var(--warning);
}

.home-state.is-error {
  border-left-color: var(--danger);
  color: var(--danger);
  font-weight: 600;
}

.home-state.is-success {
  border-left-color: var(--primary-green);
  color: var(--primary-green);
}

.home-status > .home-muted {
  margin: 0 0 12px;
}

.home-status time {
  display: block;
  color: var(--text-primary);
  font-size: 0.75rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.home-progress {
  height: 6px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--border);
}

.home-progress span {
  display: block;
  width: 0;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary-green);
}

.home-shortcuts {
  min-width: 0;
}

.home-shortcuts h2 {
  margin-bottom: 5px;
}

.home-shortcut {
  display: block;
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.home-shortcut strong {
  display: block;
  color: var(--primary-green);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.home-shortcut span {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.home-shortcut:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-guide {
  min-width: 0;
  margin: 0;
}

.home-guide h2 {
  margin-bottom: 19px;
}

.home-guide .workflow-guide-list {
  gap: 24px;
}

.home-guide .workflow-guide-list li {
  color: var(--text-primary);
}

.home-guide .workflow-guide-list li::before {
  border-color: var(--border);
}

/* Before an OFX is loaded, teach the next step instead of showing empty metrics. */
.home-view.is-empty .home-primary {
  gap: 25px;
}

.home-view.is-empty .home-resume {
  padding: 30px;
}

.home-view.is-empty .home-section-label,
.home-view.is-empty .home-attention {
  display: none;
}

.home-view.is-empty .home-resume h2 {
  max-width: 28ch;
  font-size: clamp(1.5rem, 2.4vw, 1.9375rem);
  line-height: 1.2;
}

.home-view.is-empty .home-resume > p {
  max-width: 58ch;
}

.home-view.is-empty .home-actions {
  gap: 10px 18px;
  margin-top: 22px;
}

.home-view.is-empty .home-actions > .primary-btn {
  min-height: 44px;
  padding: 11px 18px;
}

.home-view.is-empty .home-actions > .secondary-btn {
  width: auto;
  min-height: 40px;
  padding: 8px 2px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--primary-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-view.is-empty .home-actions > .secondary-btn:hover {
  text-decoration-thickness: 2px;
}

.home-view.is-empty .home-guide h2 {
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.home-view.is-empty .home-guide .workflow-guide-list {
  gap: 18px;
}

.home-view.is-empty .home-guide .workflow-guide-list li {
  padding-left: 31px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.home-view.is-empty .home-guide .workflow-guide-list strong {
  margin-bottom: 3px;
}

.home-view.is-empty .home-aside {
  gap: 22px;
}

.home-view.is-empty .home-status {
  padding-bottom: 18px;
}

.home-view.is-empty .home-state {
  margin-top: 13px;
}

.home-view.is-empty .home-shortcuts {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.home-view.is-empty .home-shortcuts h2 {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.home-view.is-empty .home-shortcut {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 0;
}

.home-view.is-empty .home-shortcut strong {
  font-size: 0.8125rem;
}

.home-view.is-empty .home-shortcut span {
  display: none;
}

@media (max-width: 1000px) {
  .home-view {
    padding: 25px 24px 36px;
  }

  .home-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .home-resume {
    padding: 22px;
  }

  .home-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-aside {
    padding-left: 23px;
  }

  .home-view.is-empty .home-resume {
    padding: 25px;
  }
}

@media (max-width: 720px) {
  .home-view {
    min-height: calc(100vh - 66px);
    padding: 22px 18px 34px;
  }

  .home-heading {
    margin-bottom: 21px;
  }

  .home-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .home-primary {
    gap: 24px;
  }

  .home-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 23px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .home-status {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .home-attention-item {
    gap: 10px 15px;
  }

  .home-guide .workflow-guide-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
  }

  .home-view.is-empty .home-heading {
    margin-bottom: 19px;
  }

  .home-view.is-empty .home-primary {
    gap: 21px;
  }

  .home-view.is-empty .home-guide .workflow-guide-list {
    gap: 14px;
  }
}

@media (max-width: 440px) {
  .home-view {
    padding: 19px 14px 30px;
  }

  .home-resume {
    padding: 21px 18px;
  }

  .home-context,
  .home-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-context {
    gap: 14px;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-actions > a,
  .home-actions > button {
    width: 100%;
  }

  .home-attention-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-attention-link {
    grid-column: 1 / -1;
    justify-self: start;
    padding-left: 0;
  }

  .home-aside {
    gap: 22px;
  }

  .home-status {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
  }

  .home-view.is-empty .home-resume {
    padding: 23px 19px 18px;
  }

  .home-view.is-empty .home-actions {
    align-items: flex-start;
    gap: 7px;
    margin-top: 19px;
  }

  .home-view.is-empty .home-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .home-view.is-empty .home-shortcut {
    padding: 9px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visibility is controlled by session, permissions and workflow state. */
[hidden],
.nav-filtered-out {
  display: none !important;
}
