@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DM_Sans/dm-sans-latin-400-normal.woff2') format('woff2'),
       url('/fonts/DM_Sans/dm-sans-latin-400-normal.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DM_Sans/dm-sans-latin-500-normal.woff2') format('woff2'),
       url('/fonts/DM_Sans/dm-sans-latin-500-normal.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DM_Sans/dm-sans-latin-600-normal.woff2') format('woff2'),
       url('/fonts/DM_Sans/dm-sans-latin-600-normal.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DM_Sans/dm-sans-latin-700-normal.woff2') format('woff2'),
       url('/fonts/DM_Sans/dm-sans-latin-700-normal.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* aSynapse | Gestio – base, layout, toolbar, forms, tables, modals (light theme) */
:root {
  --bg: #f3f5f8;
  --bg-elevated: #ffffff;
  --bg-input: #f0f3f6;
  --border: #e2e8ef;
  --border-strong: #cdd6e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #2b7fff;
  --primary-hover: #1a6ff2;
  --primary-soft: rgba(43, 127, 255, 0.12);
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --success: #059669;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --ease: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 3.5rem;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(43, 127, 255, 0.08), transparent 55%),
    radial-gradient(900px 420px at 88% 0%, rgba(15, 23, 42, 0.04), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.app { display: flex; flex-direction: column; min-height: 100vh; }
.app-body { display: flex; flex: 1; overflow: hidden; }
.main { flex: 1; overflow: auto; padding: 1.5rem; }

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  gap: 1rem;
}
.toolbar-brand { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.toolbar-nav { display: flex; align-items: center; gap: 0.5rem; }
.toolbar-nav a {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
}
.toolbar-nav a:hover { color: var(--text); background: var(--bg-input); }
.toolbar-nav a.active { color: var(--primary); }

/* User menu — above page sticky toolbars and tables (modals stay at z-100+) */
header.sticky {
  z-index: 40;
}
.user-menu-wrap,
#user-menu-wrap {
  position: relative;
  z-index: 50;
}
#user-menu-drop {
  z-index: 60;
}
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.user-menu-btn:hover { background: var(--bg-input); }
.user-menu-drop {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.4rem;
  min-width: 12rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: none;
  overflow: hidden;
}
.user-menu-drop.open { display: block; }
.user-menu-drop hr { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; }
.user-menu-drop a, .user-menu-drop button {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.user-menu-drop a:hover, .user-menu-drop button:hover { background: var(--bg-input); }

/* Sidebar (when logged in) */
.sidebar {
  width: 12rem;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 1rem 0;
}
.sidebar a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
}
.sidebar a:hover { color: var(--text); background: var(--bg-input); }
.sidebar a.active { color: var(--primary); }
.sidebar-section { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); padding: 0.75rem 1rem 0.25rem; }

/* Auth layout (centered card) */
.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 28rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) {
  .auth-card {
    padding: 2rem;
  }
}
.auth-card h1 { margin: 0 0 1.5rem; font-size: 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft) !important;
}
.form-group textarea { min-height: 4rem; resize: vertical; }
.form-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Flat form controls — no drop shadow on inputs, selects, or search wrappers */
input,
select,
textarea {
  box-shadow: none !important;
}

.relative.rounded-md.shadow-sm:has(input),
.relative.rounded-md.shadow-sm:has(select),
.relative.rounded-md.shadow-sm:has(textarea) {
  box-shadow: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.05rem;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--bg-input); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.875rem; }

/* Page title */
.page-title { margin: 0 0 1rem; font-size: 1.25rem; }

/* Data table */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th, table.data-table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.data-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
}
table.data-table th.sortable { cursor: pointer; }
table.data-table th.sortable:hover { color: var(--text); }
table.data-table th .sort-icon { opacity: 0.5; margin-left: 0.25rem; }
table.data-table th.sorted-asc .sort-icon::after { content: ' ↑'; opacity: 1; }
table.data-table th.sorted-desc .sort-icon::after { content: ' ↓'; opacity: 1; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: rgba(43, 127, 255, 0.04); }
table.data-table .actions { white-space: nowrap; }
table.data-table .actions .btn { margin-right: 0.25rem; }

/* Table toolbar (filters + add) */
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.table-toolbar .search { flex: 1; min-width: 12rem; }
.table-toolbar .search input { width: 100%; max-width: 20rem; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal {
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.modal.modal-lg { max-width: 36rem; }
.modal h2 { margin: 0 0 1rem; font-size: 1.125rem; }
.modal .form-actions { margin-bottom: 0; }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-error { background: rgba(224,36,36,0.12); border: 1px solid var(--danger); color: #b91c1c; }
.alert-success { background: rgba(0,186,124,0.12); border: 1px solid var(--success); color: #047857; }
.alert-info { background: var(--primary-soft); border: 1px solid var(--primary); color: #1d4ed8; }

/* Dashboard */
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; }
.dashboard-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.dashboard-card h3 { margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.dashboard-card .value { font-size: 1.5rem; font-weight: 700; }

/* Utilities */
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.hidden { display: none !important; }

/* Tax report — collapsible document sections */
.tax-report-details > summary {
  list-style: none;
}
.tax-report-details > summary::-webkit-details-marker {
  display: none;
}
.tax-report-details[open] .tax-report-chevron {
  transform: rotate(180deg);
}
.tax-report-details:not([open]) .tax-report-detail-body {
  display: none;
}
.tax-report-section-table {
  table-layout: fixed;
  width: 100%;
}
.tax-report-section-table .tax-report-col-num {
  width: 6.75rem;
}
.tax-report-section-table--purchase .tax-report-col-num {
  width: 6.25rem;
}
.tax-report-section-table--purchase .tax-report-col-pct {
  width: 4.5rem;
}
.tax-report-section-table--special .tax-report-col-amount {
  width: 7rem;
}

/* Combobox dropdown search (panel markup is built in baseApp.js) */
[data-combobox-panel]:not(.hidden) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
[data-combobox-search-wrap] {
  flex-shrink: 0;
  padding: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
}
[data-combobox-search] {
  display: block;
  width: 100%;
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
}
[data-combobox-search]::placeholder {
  color: #9ca3af;
}
[data-combobox-search]:focus {
  outline: none;
  border-color: #2dd4bf;
  box-shadow: 0 0 0 1px #2dd4bf;
}
[data-combobox-list] {
  overflow: auto;
  min-height: 0;
}

/* Dashboard — chart toolbar */
.dash-page-intro {
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .dash-page-intro {
    margin-bottom: 1.5rem;
  }
}
.dash-page-intro h1 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
@media (min-width: 640px) {
  .dash-page-intro h1 {
    font-size: 1.5rem;
  }
}
.dash-page-intro .dash-welcome {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.dash-nav-tabs {
  border-radius: 999px !important;
  border-color: var(--border) !important;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dash-nav-tabs [data-dash-tab] {
  transition: background var(--ease), color var(--ease);
}
.dash-nav-tabs [data-dash-tab].bg-blue-500 {
  background: var(--primary) !important;
}

.dash-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.15rem 1.15rem 1.25rem;
  margin-bottom: 1.15rem;
}
@media (min-width: 640px) {
  .dash-section {
    padding: 1.35rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
  }
}
.dash-section > h2,
.dash-section .dash-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.dash-chart-canvas-wrap {
  position: relative;
  height: 280px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 48%);
  border: 1px solid var(--border);
  padding: 0.5rem 0.35rem 0.25rem;
}

.dash-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.dash-chart-amount-period {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .dash-chart-amount-period {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}
.dash-chart-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
}
.dash-chart-filter-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Dashboard — two columns below chart (stacked on mobile) */
.dash-chart-summary {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.dash-chart-summary.hidden {
  display: none;
}
.dash-summary-columns {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .dash-summary-columns {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}
.dash-summary-col {
  flex: 1 1 0;
  min-width: 0;
}
.dash-summary-title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.dash-summary-table-wrap {
  overflow-x: auto;
}
.dash-summary-table {
  width: 100%;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}
.dash-summary-table thead {
  background: #f8fafc;
}
.dash-summary-th {
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.dash-summary-td {
  padding: 0.55rem 0.75rem;
  color: #374151;
  border-top: 1px solid #f1f5f9;
}
.dash-summary-table tbody tr:first-child .dash-summary-td,
.dash-summary-table tfoot tr:first-child .dash-summary-td {
  border-top: none;
}
.dash-summary-total-row,
.dash-summary-table tfoot tr {
  background: #f8fafc;
}
.dash-summary-table tfoot .dash-summary-td {
  font-weight: 600;
  color: var(--text);
}
.dash-summary-table .text-right { text-align: right; }
.dash-summary-table .text-left { text-align: left; }
.dash-summary-table .font-semibold { font-weight: 600; }
.dash-summary-table .tabular-nums { font-variant-numeric: tabular-nums; }

/* Data / classifications tiles */
.dash-nav-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease), background var(--ease);
  cursor: pointer;
}
@media (min-width: 640px) {
  .dash-nav-card {
    padding: 1.25rem 1.35rem;
  }
}
.dash-nav-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: #fff;
}
.dash-nav-card .dash-nav-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
}
.dash-nav-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}
.dash-nav-card .dash-nav-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
@media (min-width: 640px) {
  .dash-nav-card .dash-nav-card-value {
    font-size: 1.5rem;
  }
}
.dash-nav-card .dash-nav-card-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--primary);
}
.dash-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .dash-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .dash-nav-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Save buttons — visible border on all primary save actions */
button[data-i18n="common.save"],
button.btn-save {
  border: 1px solid #2563eb;
}
button[data-i18n="common.save"]:hover,
button.btn-save:hover {
  border-color: #1d4ed8;
}
button[data-i18n="common.save"].border-r,
button.btn-save.border-r {
  border-right-color: #e5e7eb;
}
button[data-i18n="common.save"].bg-teal-500 {
  border-color: #0d9488;
}
button[data-i18n="common.save"].bg-teal-500:hover {
  border-color: #0f766e;
}

/* Toolbar / icon button tooltips — rendered via #app-tooltip-portal (body-level) */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}
.tooltip-wrap > .tooltip-content {
  /* Source text only; portal shows the visible tip above overflow containers */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

#app-tooltip-portal {
  position: fixed;
  z-index: 80;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  padding: 0.35rem 0.6rem;
  border-radius: 0.375rem;
  background: #1c2938;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.08);
}
#app-tooltip-portal::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1c2938;
}
#app-tooltip-portal.is-visible {
  opacity: 1;
  visibility: visible;
}
#app-tooltip-portal.is-below {
  transform: translate(-50%, 0);
}
#app-tooltip-portal.is-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1c2938;
}

/* Keep rounded corners when tooltips wrap buttons inside bordered groups */
.inline-flex.rounded-lg.border:has(> .tooltip-wrap) > .tooltip-wrap:first-child > a:first-child,
.inline-flex.rounded-lg.border:has(> .tooltip-wrap) > .tooltip-wrap:first-child > button:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.inline-flex.rounded-lg.border:has(> .tooltip-wrap) > .tooltip-wrap:last-child > a:first-child,
.inline-flex.rounded-lg.border:has(> .tooltip-wrap) > .tooltip-wrap:last-child > button:first-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Help center: article left, topics right on non-mobile */
.help-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem;
  align-items: stretch;
}
.help-aside {
  width: 100%;
  flex-shrink: 0;
  order: 1 !important;
}
.help-article {
  flex: 1 1 auto;
  min-width: 0;
  order: 2 !important;
}
.help-topics-details > summary {
  list-style: none;
}
.help-topics-details > summary::-webkit-details-marker {
  display: none;
}
.help-topics-details[open] .help-topics-chevron {
  transform: rotate(180deg);
}
.help-nav {
  max-height: min(40vh, 16rem);
  overflow-y: auto;
}
@media (min-width: 640px) {
  .help-layout {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .help-article {
    order: 1 !important;
    flex: 1 1 auto !important;
  }
  .help-aside {
    order: 2 !important;
    width: 16rem !important;
    max-width: 16rem !important;
    flex: 0 0 16rem !important;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 5.5rem);
    box-shadow: none;
  }
  .help-topics-summary {
    display: none !important;
  }
  .help-topics-details {
    display: block !important;
    min-height: 0;
    flex: 1 1 auto;
  }
  .help-topics-details > .help-nav,
  .help-nav {
    display: block !important;
    max-height: none !important;
    flex: 1 1 auto;
    overflow-y: auto;
  }
}

.app-footer {
  padding-top: 2.5rem;
  padding-bottom: 1.25rem;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border-top-color: var(--border) !important;
}
@media (min-width: 640px) {
  .app-footer {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
  }
}

/* —— Phase 1 visual refresh: shared chrome & common Tailwind surfaces —— */
.app-header {
  min-height: var(--header-h);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: color-mix(in srgb, #ffffff 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.app-header .app-brand {
  letter-spacing: -0.02em;
}

.app-header .app-brand-icon {
  color: var(--primary);
}

.app-main {
  padding-top: 1.35rem;
  padding-bottom: 2rem;
}
@media (min-width: 640px) {
  .app-main {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }
}

.app-lang-switch {
  border-radius: 999px !important;
  border-color: var(--border) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.app-lang-switch [data-lang-btn] {
  min-width: 2.4rem;
  transition: background var(--ease), color var(--ease);
}
.app-lang-switch [data-lang-btn].bg-blue-500 {
  background: var(--primary) !important;
}

/* Soften common page panels / tables built with Tailwind utilities */
main .bg-white.border.border-gray-200,
main .bg-white.border-gray-200 {
  border-color: var(--border) !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

main table thead tr {
  background: #f8fafc;
}

main table tbody tr {
  transition: background var(--ease);
}

/* Form controls used across Leaf pages */
main input[type="text"],
main input[type="email"],
main input[type="password"],
main input[type="number"],
main input[type="date"],
main input[type="search"],
main select,
main textarea {
  border-radius: var(--radius) !important;
  border-color: var(--border-strong) !important;
  transition: border-color var(--ease), box-shadow var(--ease);
}
main input:focus,
main select:focus,
main textarea:focus {
  border-color: var(--primary) !important;
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft) !important;
}

/* Primary actions */
main .bg-blue-500,
#help-context-more.bg-blue-500,
button.bg-blue-500,
a.bg-blue-500 {
  background-color: var(--primary) !important;
  transition: background-color var(--ease), transform var(--ease);
}
main .hover\:bg-blue-600:hover,
#help-context-more.hover\:bg-blue-600:hover,
button.hover\:bg-blue-600:hover,
a.hover\:bg-blue-600:hover {
  background-color: var(--primary-hover) !important;
}

/* Icon toolbars */
main .inline-flex.rounded-lg.overflow-hidden.border.border-gray-200 {
  border-color: var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Combobox trigger polish */
[data-combobox-inited] > button[type="button"] {
  border-radius: var(--radius) !important;
  border-color: var(--border-strong) !important;
  transition: border-color var(--ease), box-shadow var(--ease);
}
[data-combobox-inited] > button[type="button"]:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Modals / sheets — flex-center all *-modal overlays */
[id$="-modal"]:not(.hidden) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
[id$="-modal"] > div:first-child,
#help-context-backdrop {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  background: rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: blur(2px);
}
[id$="-modal"] > div:last-child {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  inset: auto !important;
  z-index: 1;
  max-height: min(90vh, 100%);
  overflow: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-color: var(--border) !important;
  animation: ui-dialog-in 180ms var(--ease) both;
}
.help-context-sheet {
  box-shadow: var(--shadow-lg);
  border-color: var(--border) !important;
  border-radius: 0;
}

/* Icon-only modal/sheet closes — no browser/system focus ring */
#help-context-close,
#about-modal-close-x,
button.modal-icon-close {
  outline: none !important;
  box-shadow: none !important;
}
#help-context-close:focus,
#help-context-close:focus-visible,
#about-modal-close-x:focus,
#about-modal-close-x:focus-visible,
button.modal-icon-close:focus,
button.modal-icon-close:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Auth page cards */
body > .flex-1 .bg-white.border.border-gray-200,
body .flex-1 .max-w-md.bg-white {
  border-color: var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md);
}

/* Page titles */
main h1 {
  letter-spacing: -0.025em;
  color: var(--text);
}

/* —— Phase 3: account / access / list+form surfaces —— */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .page-header {
    margin-bottom: 1.25rem;
  }
}
.page-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
@media (min-width: 640px) {
  .page-header h1 {
    font-size: 1.35rem;
  }
}
.page-header .page-actions {
  display: inline-flex;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.page-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.15rem;
  margin-bottom: 1.15rem;
}
@media (min-width: 640px) {
  .page-section {
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
  }
}
.page-section > h2,
.page-section .page-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}
.page-section.page-section-danger {
  border-color: #fecaca;
  background: #fffafa;
}

.page-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.15rem;
}
@media (min-width: 640px) {
  .page-form {
    padding: 1.5rem;
  }
}

/* List pages: title rhythm + table shells */
main > h1,
main h1.page-list-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text);
}
@media (min-width: 640px) {
  main > h1,
  main h1.page-list-title {
    font-size: 1.35rem;
  }
}

main .overflow-x-auto.border.border-gray-200 {
  border-color: var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
main .overflow-x-auto.border.border-gray-200.bg-white,
main .overflow-x-auto.bg-white.border {
  border-color: var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
}

main table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

main .rounded-lg.border.border-red-200.bg-red-50,
main .rounded-lg.border.border-emerald-200.bg-emerald-50,
main .rounded-lg.border.border-teal-200.bg-teal-50 {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
}

/* Form action pair (Save | Cancel) */
main .inline-flex.rounded-lg.overflow-hidden.border.border-gray-200:has(button[type="submit"]) {
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius) !important;
  border-color: var(--border) !important;
  overflow: hidden;
}

/* —— Phase 4: auth screens —— */
.auth-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 1.5rem;
  animation: auth-shell-in 280ms var(--ease) both;
}
@media (min-width: 640px) {
  .auth-shell {
    padding: 1.75rem 1.5rem 2rem;
  }
}
@keyframes auth-shell-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}
@media (min-width: 640px) {
  .auth-brand {
    margin-bottom: 1.35rem;
    font-size: 1.45rem;
  }
}
.auth-brand-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--primary);
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .auth-brand-icon {
    width: 1.55rem;
    height: 1.55rem;
  }
}

.auth-shell .auth-card {
  width: 100%;
  max-width: 28rem;
  background: color-mix(in srgb, #ffffff 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-md);
  animation: auth-card-in 320ms var(--ease) 40ms both;
}
@media (min-width: 640px) {
  .auth-shell .auth-card {
    padding: 1.85rem 1.75rem;
  }
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.auth-card-title {
  margin: 0 0 1.15rem;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--text);
}
@media (min-width: 640px) {
  .auth-card-title {
    font-size: 1.25rem;
  }
}
.auth-card-title:has(+ .auth-card-hint) {
  margin-bottom: 0.35rem;
}
.auth-card-hint {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}
@media (min-width: 640px) {
  .auth-card-hint {
    margin-bottom: 1.35rem;
  }
}

.auth-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  width: 100%;
}
@media (min-width: 640px) {
  .auth-actions {
    margin-top: 1.35rem;
    gap: 0.65rem;
  }
}
.auth-actions > button,
.auth-actions > a {
  border-radius: var(--radius) !important;
  transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
}
.auth-actions > button:active,
.auth-actions > a:active {
  transform: translateY(1px);
}

.auth-shell .auth-card input[type="text"],
.auth-shell .auth-card input[type="email"],
.auth-shell .auth-card input[type="password"],
.auth-shell .auth-card input[type="number"],
.auth-shell .auth-card select,
.auth-shell .auth-card textarea {
  border-radius: var(--radius) !important;
  border-color: var(--border-strong) !important;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.auth-shell .auth-card input:focus,
.auth-shell .auth-card select:focus,
.auth-shell .auth-card textarea:focus {
  border-color: var(--primary) !important;
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft) !important;
}

.auth-shell .auth-card .bg-blue-500,
.auth-shell .auth-card button.bg-blue-500,
.auth-shell .auth-card a.bg-blue-500 {
  background-color: var(--primary) !important;
}
.auth-shell .auth-card .hover\:bg-blue-600:hover,
.auth-shell .auth-card button.hover\:bg-blue-600:hover,
.auth-shell .auth-card a.hover\:bg-blue-600:hover {
  background-color: var(--primary-hover) !important;
}

.auth-shell .auth-card .rounded-lg.border.border-red-200.bg-red-50,
.auth-shell .auth-card .rounded-lg.border.border-emerald-200.bg-emerald-50,
.auth-shell .auth-card .rounded-lg.border.border-green-200.bg-green-50,
.auth-shell .auth-card .rounded-lg.border.border-amber-200.bg-amber-50 {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
}

.auth-account-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.auth-account-list > li + li {
  border-top: 1px solid var(--border);
}
.auth-account-list button,
.auth-account-list a {
  transition: background var(--ease);
}
.auth-account-list button:hover,
.auth-account-list a:hover {
  background: #f8fafc !important;
}

.auth-link {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}
.auth-link:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell,
  .auth-shell .auth-card {
    animation: none;
  }
}

/* —— Look & feel polish: buttons, alerts, density, tables, motion —— */

/* Button kit (works with existing Tailwind utility buttons) */
.ui-btn,
.auth-btn-primary,
.auth-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.ui-btn:active,
.auth-btn-primary:active,
.auth-btn-secondary:active {
  transform: translateY(1px);
}
.ui-btn-primary,
.auth-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(43, 127, 255, 0.25);
}
.ui-btn-primary:hover,
.auth-btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.ui-btn-secondary,
.auth-btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}
.ui-btn-secondary:hover,
.auth-btn-secondary:hover {
  background: var(--bg-input);
  color: var(--text);
}
.ui-btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.ui-btn-danger:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
  color: #fff;
}

/* Remap scattered secondary buttons → outlined white (match Back sample) */
main a.inline-flex.bg-gray-100.border.border-gray-200,
main button.inline-flex.bg-gray-100.border.border-gray-200,
.auth-card a.inline-flex.bg-gray-100.border.border-gray-200,
.auth-card button.inline-flex.bg-gray-100.border.border-gray-200,
#password-modal a.inline-flex.bg-gray-100,
#password-modal button.inline-flex.bg-gray-100.border,
#delete-confirm-modal button.inline-flex.bg-gray-100,
[id$="-import-modal"] button.inline-flex.bg-gray-100.border {
  background: #fff !important;
  color: var(--text) !important;
  border-color: var(--border-strong) !important;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
main a.inline-flex.bg-gray-100.border.border-gray-200:hover,
main button.inline-flex.bg-gray-100.border.border-gray-200:hover,
.auth-card a.inline-flex.bg-gray-100.border.border-gray-200:hover,
.auth-card button.inline-flex.bg-gray-100.border.border-gray-200:hover,
#password-modal button.inline-flex.bg-gray-100.border:hover,
#delete-confirm-modal button.inline-flex.bg-gray-100:hover,
[id$="-import-modal"] button.inline-flex.bg-gray-100.border:hover {
  background: var(--bg-input) !important;
}

/* Primary button shadow + hover lift */
main button.bg-blue-500,
main a.bg-blue-500,
.auth-card button.bg-blue-500,
.auth-card a.bg-blue-500 {
  box-shadow: 0 1px 2px rgba(43, 127, 255, 0.28);
}
main button.bg-blue-500:hover,
main a.bg-blue-500:hover,
.auth-card button.bg-blue-500:hover,
.auth-card a.bg-blue-500:hover {
  box-shadow: 0 4px 12px rgba(43, 127, 255, 0.28);
}

/* Auth: stacked primary + text links */
.auth-actions-stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  gap: 0.75rem;
}
.auth-actions-stack .auth-btn-primary,
.auth-actions-stack .auth-btn-secondary,
.auth-actions-stack > button[type="submit"],
.auth-actions-stack > a {
  width: 100%;
}
.auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.auth-footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 550;
  transition: color var(--ease);
}
.auth-footer-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Alerts — softer, consistent */
main .rounded-lg.border.border-red-200.bg-red-50,
.auth-card .rounded-lg.border.border-red-200.bg-red-50 {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #991b1b !important;
  box-shadow: var(--shadow-sm);
}
main .rounded-lg.border.border-emerald-200.bg-emerald-50,
main .rounded-lg.border.border-green-200.bg-green-50,
.auth-card .rounded-lg.border.border-emerald-200.bg-emerald-50,
.auth-card .rounded-lg.border.border-green-200.bg-green-50 {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
  box-shadow: var(--shadow-sm);
}
main .rounded-lg.border.border-amber-200.bg-amber-50,
.auth-card .rounded-lg.border.border-amber-200.bg-amber-50 {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #92400e !important;
  box-shadow: var(--shadow-sm);
}
main .rounded-lg.border.border-teal-200.bg-teal-50 {
  background: color-mix(in srgb, var(--primary-soft) 70%, #fff) !important;
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border)) !important;
  color: #1e40af !important;
  box-shadow: var(--shadow-sm);
}

/* Empty / loading cells */
main table tbody td.text-center.text-gray-400,
main table tbody td[data-i18n="common.loading"],
main p.text-gray-400.text-center,
main p.text-sm.text-gray-400,
main p.text-sm.text-gray-500.mb-0 {
  color: var(--text-muted) !important;
}
main table tbody td.text-center.text-gray-400 {
  padding-top: 2.25rem !important;
  padding-bottom: 2.25rem !important;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}
main p.px-4.py-6.text-center {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  color: var(--text-muted) !important;
}

/* Density / form rhythm */
.page-form > .mb-4,
.page-form .grid > .min-w-0,
.auth-card form > .mb-4 {
  margin-bottom: 1rem;
}
.page-form label.block,
.auth-card label.block {
  color: #334155;
  font-weight: 550;
}
main .flex.flex-wrap.items-center.justify-between.gap-2,
main .flex.flex-wrap.items-center.justify-between.gap-2.sm\:gap-4 {
  margin-bottom: 0.85rem;
}
@media (min-width: 640px) {
  main .flex.flex-wrap.items-center.justify-between.gap-2.sm\:gap-4 {
    margin-bottom: 1rem;
  }
}

/* Tables: sticky header + sort affordance */
main .overflow-x-auto table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc !important;
  box-shadow: inset 0 -1px 0 var(--border);
}
main .overflow-x-auto table thead th a {
  color: var(--text-muted);
  transition: color var(--ease);
}
main .overflow-x-auto table thead th a:hover {
  color: var(--primary) !important;
}
main .overflow-x-auto table tbody tr {
  transition: background var(--ease);
}
main .overflow-x-auto table tbody tr:hover td {
  background: rgba(43, 127, 255, 0.035);
}

/* Icon toolbar hover polish */
main .inline-flex.rounded-lg.border.border-gray-200 > a,
main .inline-flex.rounded-lg.border.border-gray-200 > button,
main .inline-flex.rounded-lg.overflow-hidden.border.border-gray-200 > a,
main .inline-flex.rounded-lg.overflow-hidden.border.border-gray-200 > button,
.page-actions > a,
.page-actions > button,
.page-actions .tooltip-wrap > a,
.page-actions .tooltip-wrap > button {
  transition: background-color var(--ease), color var(--ease);
}
main .inline-flex.rounded-lg.border.border-gray-200 a:hover,
main .inline-flex.rounded-lg.border.border-gray-200 button:hover,
main .inline-flex.rounded-lg.overflow-hidden.border.border-gray-200 a:hover,
main .inline-flex.rounded-lg.overflow-hidden.border.border-gray-200 button:hover,
.page-actions a:hover,
.page-actions button:hover {
  background: #eef2f7 !important;
  color: var(--text) !important;
}

/* Toggle switches */
span.group.relative.inline-flex.h-6.w-11 {
  transition: background-color var(--ease);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
span.group.relative.inline-flex.h-6.w-11 span.pointer-events-none {
  transition: transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

/* Modal enter */
@keyframes ui-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes help-sheet-in {
  from { opacity: 0; transform: translateX(1rem); }
  to { opacity: 1; transform: none; }
}
.help-context-sheet {
  animation: help-sheet-in 180ms var(--ease) both;
}
@media (prefers-reduced-motion: reduce) {
  [id$="-modal"] > div:last-child,
  .help-context-sheet,
  main button.bg-blue-500,
  main a.bg-blue-500 {
    animation: none;
    transition: none;
  }
}

.page-subtitle {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
}
.page-header .page-subtitle {
  margin: 0.35rem 0 0;
}
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.import-crumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease);
}
.import-crumb a:hover {
  color: var(--primary);
}
.import-crumb .import-crumb-current {
  color: var(--text);
  font-weight: 550;
}
.page-form.import-form {
  margin-top: 0.25rem;
}
