@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lato-400.ttf") format("truetype");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lato-700.ttf") format("truetype");
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-500.ttf") format("truetype");
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-700.ttf") format("truetype");
}

:root {
  --sidebar-width: 238px;
  --header-height: 64px;
  --color-sidebar: #f5f5f5;
  --color-background: #f5f5f5;
  --color-surface: #ffffff;
  --color-border: #dcdedc;
  --color-text: #2f2f2f;
  --color-muted: #696969;
  --color-primary: #016043;
  --color-selected: #e6efeb;
  --color-accent: #016043;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font: 14px/1.5 "Lato", Arial, sans-serif;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

.workspace-shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.workspace-sidebar {
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 19px 20px 20px;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
}
.brand { display: block; width: 176px; text-decoration: none; }
.brand-logo { display: block; width: 170px; max-width: 100%; height: auto; }
.brand-wordmark { display: block; margin-top: 8px; color: var(--color-primary); font: 500 14px/1.4 "Ubuntu", sans-serif; letter-spacing: .5px; }
.workspace-navigation { display: grid; gap: 0; margin-top: 32px; }
.navigation-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 22px;
  border-radius: 4px;
  text-decoration: none;
}
.navigation-link.is-selected { color: var(--color-primary); background: var(--color-selected); }
.navigation-link.is-selected::before {
  position: absolute;
  top: 11px;
  left: 8px;
  width: 2px;
  height: 14px;
  background: var(--color-accent);
  content: "";
}
.sidebar-identity { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-border); line-height: 14px; }
.workspace-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.workspace-header {
  display: flex;
  flex: 0 0 var(--header-height);
  align-items: center;
  height: var(--header-height);
  padding: 0 28px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  background: var(--color-surface);
}
.workspace-content { display: flex; flex: 1; min-width: 0; padding: 16px 20px; }
.workspace-content-stack { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.workspace-header { gap: 10px; flex-wrap: wrap; }
.workspace-header a { text-decoration: none; }
.breadcrumb-divider { color: var(--color-muted); }
.workspace-notice { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: 4px; background: var(--color-selected); }
.workspace-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 24px 22px 41px 24px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-background);
}
.workspace-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.workspace-panel-heading h1 { margin: 0; color: var(--color-primary); font-family: "Ubuntu", sans-serif; font-size: 26px; font-weight: 600; line-height: 26px; }
.create-workspace-button {
  flex: 0 0 auto;
  width: 156px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-surface);
  background: var(--color-primary);
  font: inherit;
  opacity: 1;
  cursor: not-allowed;
}
.workspace-introduction { margin: 16px 0 0; color: var(--color-muted); }
.workspace-surface {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 320px;
  margin-top: 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
}
.workspace-empty-state { margin: auto; padding: 24px; text-align: center; }
.workspace-icon {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  color: var(--color-muted);
  background: var(--color-selected);
}
.workspace-grid-icon { display: grid; grid-template-columns: repeat(2, 8px); gap: 3px; }
.workspace-grid-icon span { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 1px; }
.workspace-empty-state h2 { margin: 12px 0 0; font-size: 17px; font-weight: 600; line-height: 24px; }
.workspace-empty-state p { margin: 12px 0 0; color: var(--color-muted); }
.workspace-list { padding: 24px; }
.workspace-row { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--color-border); border-radius: 4px; }
.workspace-row-text { min-width: 0; }
.workspace-row-link { text-decoration: none; }
.workspace-row-link:hover { border-color: var(--color-accent); background: var(--color-background); }
.row-arrow { margin-left: auto; font-size: 24px; color: var(--color-muted); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 16px; border: 1px solid var(--color-primary); border-radius: 4px; font: inherit; text-decoration: none; cursor: pointer; }
.primary-button { color: var(--color-surface); background: var(--color-primary); }
.secondary-button { color: var(--color-primary); background: var(--color-surface); }
.text-link { color: var(--color-primary); text-underline-offset: 3px; }
.app-list { display: grid; gap: 12px; }
.app-card { border: 1px solid var(--color-border); border-radius: 4px; }
.app-summary { display: flex; align-items: center; gap: 16px; padding: 16px; list-style: none; cursor: pointer; }
.app-summary::-webkit-details-marker { display: none; }
.app-summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.app-summary-text { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.app-summary-text strong { font-size: 17px; font-weight: 600; line-height: 24px; }
.app-summary-text > span { color: var(--color-muted); }
.app-icon { font-size: 19px; font-weight: 600; color: var(--color-primary); }
.app-chevron { margin-left: auto; font-size: 24px; color: var(--color-muted); }
.app-card[open] .app-chevron { transform: rotate(90deg); }
.app-details { padding: 20px; border-top: 1px solid var(--color-border); }
.app-address { display: grid; gap: 6px; margin: 0 0 20px; overflow-wrap: anywhere; }
.app-address > span { color: var(--color-muted); }
.app-launch { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; }
.app-launch .app-address { min-width: 0; margin: 0; }
.app-description-form, .new-app-form { display: grid; gap: 8px; }
.new-app-form { width: 100%; max-width: 660px; padding: 24px; }
.new-app-form label:not(:first-child) { margin-top: 12px; }
textarea, input[type="text"] { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 4px; color: var(--color-text); background: var(--color-surface); font: inherit; }
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-errors { margin: 0; color: #9d2525; }
.app-page-content { padding: 32px; max-width: 760px; }
.app-page-content p { overflow-wrap: anywhere; }
.app-page-content h2 { font-size: 19px; font-weight: 600; }
.home-customer-logo { display: block; width: 240px; max-width: 100%; height: auto; }
.vendor-confidential { margin: 12px 0 0; color: var(--color-muted); }
.financial-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 12px; }
.financial-filters input[type="month"] { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 4px; font: inherit; }
.financial-source-note { color: var(--color-muted); font-size: 12px; line-height: 1.5; margin: 12px 0; }
.financial-scroll { max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--color-border); border-radius: 4px; }
.financial-paper { box-sizing: border-box; min-width: 800px; max-width: 1060px; padding: 48px 40px; margin: 0 auto; color: #000; font-family: Arial, sans-serif; }
.financial-company { text-align: center; font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.financial-title { text-align: center; font-size: 20px; margin: 0 0 12px; font-weight: 700; }
.financial-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; line-height: 1.25; }
.financial-label-column { width: 52%; }
.financial-amount-column { width: 24%; }
.income-paper .financial-label-column { width: 46%; }
.income-paper .financial-amount-column { width: 18%; }
.financial-table thead th { font-weight: 700; text-align: center; padding: 0 8px 28px; vertical-align: bottom; }
.financial-ytd, .financial-period, .financial-fiscal, .financial-fiscal-end { display: block; }
.financial-period { font-size: 14px; margin-bottom: 8px; }
.financial-fiscal { font-size: 12px; margin-bottom: 6px; }
.financial-fiscal-end { font-size: 9px; }
.financial-table tbody th { text-align: left; font-weight: 400; }
.financial-table td { text-align: right; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.financial-accounting { display: flex; justify-content: flex-end; gap: 8px; min-height: 14px; }
.financial-currency { margin-right: auto; }
.financial-detail th { padding: 3px 4px 3px 80px; overflow-wrap: anywhere; }
.income-paper .financial-detail th { padding-left: 24px; }
.financial-table .financial-section th { font-size: 16px; font-weight: 700; padding: 20px 0 6px 40px; }
.income-paper .financial-table .financial-section th { padding: 16px 0 6px; color: #000; }
.financial-table .financial-major th { font-size: 18px; font-weight: 700; padding: 8px 0 4px; }
.financial-assets th { color: #4472c4; }
.financial-liabilities th { color: #f00; }
.financial-table .financial-subtotal th, .financial-table .financial-grand th { text-align: right; font-weight: 700; padding: 5px 4px; }
.financial-subtotal .financial-accounting { border-top: 1px solid #000; border-bottom: 2px solid #000; padding: 4px 0 2px; font-weight: 700; }
.financial-grand .financial-accounting { border-bottom: 3px double #000; padding: 4px 0 2px; font-weight: 700; }
.financial-table .financial-grand th { font-size: 16px; }
.income-paper .financial-subtotal .financial-accounting { border-bottom: 0; }
.balance-paper .financial-period { margin-top: 32px; margin-bottom: 0; }
.financial-reconciled { color: #245a35; font-size: 12px; }
@media print {
  .workspace-sidebar, .workspace-header, .skip-link, .financial-filters, .financial-source-note, .workspace-panel-heading, .financial-reconciled { display: none; }
  .workspace-content, .workspace-panel { padding: 0; border: 0; }
  .financial-scroll { overflow: visible; border: 0; }
  .financial-paper { padding: 0; min-width: 0; max-width: none; }
  .financial-table thead { display: table-header-group; }
  .financial-table tr { break-inside: avoid; }
}
.vendor-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.vendor-pagination p { margin: 0; }
.vendor-pagination nav { display: flex; gap: 12px; }
.vendor-table-scroll { width: 100%; overflow: auto; max-height: 65vh; border: 1px solid var(--color-border); border-radius: 4px; background: var(--color-surface); }
.vendor-table { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.vendor-table th, .vendor-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.vendor-table th { position: sticky; top: 0; z-index: 1; background: var(--color-sidebar); white-space: nowrap; }
.vendor-table td { min-width: 120px; max-width: 360px; overflow-wrap: anywhere; white-space: pre-wrap; }
.vendor-null { color: var(--color-muted); font-style: italic; }
.app-page-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.app-page-content > .text-link { display: inline-block; margin-top: 20px; }
.workspace-row h2 { margin: 0; overflow-wrap: anywhere; font-size: 17px; font-weight: 600; line-height: 24px; }
.workspace-row p { margin: 4px 0 0; color: var(--color-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 1; top: -60px; left: 250px; padding: 8px 16px; color: var(--color-primary); background: var(--color-surface); }
.skip-link:focus { top: 12px; }

@media (max-width: 640px) {
  .workspace-shell { flex-direction: column; }
  .workspace-sidebar { flex-basis: auto; width: auto; min-height: 0; padding: 16px; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .workspace-navigation { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
  .sidebar-identity { margin-top: 16px; padding-top: 12px; }
  .workspace-header { padding: 0 20px; }
  .workspace-content { padding: 12px; }
  .workspace-panel { padding: 20px 16px; }
  .workspace-panel-heading { flex-wrap: wrap; }
  .workspace-list { padding: 12px; }
  .workspace-row { padding: 12px; gap: 12px; }
  .skip-link { left: 16px; }
}

.wip-panel { padding: 24px; }
.wip-parameters { margin-top: 24px; border: 1px solid var(--color-border); border-radius: 6px; background: white; }
.wip-parameters summary { padding: 12px 16px; cursor: pointer; font-weight: 600; }
.wip-parameters summary span { margin-left: 16px; color: var(--color-muted); font-weight: 400; }
.wip-parameters summary:focus-visible, .wip-table-scroll:focus-visible, select:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.wip-parameters form { padding: 4px 16px 16px; }
.wip-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 12px 0; }
.wip-filter-grid label { display: block; margin-bottom: 6px; }
.wip-filter-grid select, .wip-filter-grid input[type="month"] { width: 100%; min-height: 40px; padding: 8px; font: inherit; background: white; color: var(--color-text); border: 1px solid var(--color-border); border-radius: 4px; }
.wip-filter-grid .wip-checkbox { display: flex; align-items: center; gap: 8px; }
.wip-parameters fieldset { border: 1px solid var(--color-border); border-radius: 4px; margin: 16px 0; }
.wip-parameters .form-actions span { color: var(--color-muted); }
.wip-report { margin-top: 20px; padding: 20px; border: 1px solid var(--color-border); border-radius: 6px; background: white; }
.wip-report-heading h2 { margin: 0; text-align: center; font-size: 22px; line-height: 30px; }
.wip-report-heading > p { margin: 6px 0 18px; text-align: center; }
.wip-report-heading > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.wip-table-scroll { overflow-x: auto; }
.wip-table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.wip-table th, .wip-table td { padding: 9px 8px; text-align: right; }
.wip-table thead { border-top: 1px solid var(--color-text); border-bottom: 1px solid var(--color-text); }
.wip-table thead th:first-child, .wip-table thead th:nth-child(2), .wip-table tfoot th { text-align: left; }
.wip-table thead tr:first-child th:nth-child(2) { min-width: 200px; }
.wip-table .wip-unavailable { padding: 64px 20px; text-align: center; color: var(--color-muted); }
.wip-unavailable strong { color: var(--color-text); font-size: 16px; }
.wip-unavailable p { margin: 10px 0 0; }
.wip-table tfoot { border-top: 1px solid var(--color-text); border-bottom: 3px double var(--color-text); }
.wip-table tbody td:first-child, .wip-table tbody td:nth-child(2), .wip-subtotal th { text-align: left; }
.wip-table tbody td:first-child { white-space: nowrap; }
.wip-subtotal { border-top: 1px solid var(--color-text); border-bottom: 1px solid var(--color-text); font-weight: 600; }
.wip-save-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.wip-save-button { background: #187337; color: white; border: 1px solid #125b2b; border-radius: 6px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.wip-save-button:disabled { opacity: .55; cursor: not-allowed; }
.wip-save-bar [role="status"] { flex: 1 1 280px; }
.wip-export-button { margin-left: auto; white-space: nowrap; }
.wip-export-button[hidden] { display: none; }
.wip-table tr.wip-changed > td { background: #daa520; color: #171308; }
.wip-table td[data-amount] { position: relative; }
.wip-edit-value { appearance: none; display: block; box-sizing: border-box; width: 100%; border: 0; background: transparent; color: inherit; padding: 0; margin: 0; font: inherit; line-height: inherit; text-align: right; cursor: text; }
.wip-edit-value:focus-visible { outline: 2px solid #187337; outline-offset: 3px; }
.wip-editing .wip-edit-value { visibility: hidden; }
.wip-table input.wip-inline-input { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); box-sizing: border-box; width: calc(100% - 16px); min-width: 0; padding: 3px 5px; border: 2px solid #187337; border-radius: 3px; background: white; color: #171308; font: inherit; text-align: right; }
.wip-inline-input[aria-invalid="true"] { border-color: #a21d22; }
.wip-inline-input[hidden], .wip-edit-value[hidden] { display: none; }
@media (max-width: 640px) { .wip-panel, .wip-report { padding: 16px; } .wip-parameters summary span { display: block; margin: 6px 0 0; } }

/* JH Kelly: Lato body, Ubuntu headings, green/white and restrained square edges. */
.workspace-sidebar { border-top: 5px solid var(--color-primary); }
.workspace-header { font-family: "Ubuntu", sans-serif; font-weight: 500; }
.navigation-link { border-radius: 0; font-family: "Ubuntu", sans-serif; font-weight: 500; }
.navigation-link:hover { color: var(--color-primary); background: var(--color-selected); }
.navigation-link.is-selected::before { top: 0; bottom: 0; left: 0; width: 3px; height: auto; }
.workspace-empty-state h2, .app-page-content h2, .app-summary-text strong { font-family: "Ubuntu", sans-serif; color: var(--color-primary); }
.primary-button, .secondary-button, .create-workspace-button { border-radius: 0; font-family: "Ubuntu", sans-serif; font-weight: 500; }
.primary-button:hover { color: var(--color-primary); background: var(--color-surface); }
.secondary-button:hover { background: var(--color-selected); }
.primary-button, .secondary-button, .navigation-link { transition: background-color .15s, color .15s; }
.sign-in-page { min-height: 100vh; min-height: 100dvh; border-top: 6px solid var(--color-primary); display: grid; place-items: center; padding: 28px 20px; }
.sign-in-card { width: 100%; max-width: 460px; padding: 44px; border: 1px solid var(--color-border); background: var(--color-surface); }
.sign-in-logo { display: block; width: 200px; max-width: 100%; height: auto; margin-bottom: 32px; }
.sign-in-card h1 { margin: 0 0 12px; font: 700 30px/1.2 "Ubuntu", sans-serif; color: var(--color-primary); }
.sign-in-card p { margin: 0 0 24px; color: var(--color-muted); }
.sign-in-card .primary-button { width: 100%; min-height: 46px; }
@media (max-width: 640px) {
  .workspace-navigation { grid-template-columns: repeat(3, 1fr); }
  .navigation-link { padding: 10px 12px; }
  .brand-logo { width: 145px; }
  .workspace-panel-heading h1 { font-size: 23px; }
  .sign-in-card { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary-button, .secondary-button, .navigation-link { transition: none; }
}

/* JH Kelly navigation tree: compact hierarchy, native disclosure controls. */
.workspace-sidebar { padding: 20px 12px 18px; }
.brand { margin: 0 8px; }
.sidebar-company { display: flex; align-items: center; gap: 9px; margin: 18px 0 12px; padding: 8px; color: var(--color-primary); text-decoration: none; border-bottom: 1px solid var(--color-border); }
.company-chevron { margin-left: auto; }
.sidebar-icon { flex: 0 0 16px; width: 16px; height: 16px; }
.workspace-navigation { display: block; margin-top: 0; font-size: 13px; }
.sidebar-branch { min-width: 0; }
.workspace-navigation > .sidebar-branch { margin-bottom: 15px; }
.sidebar-heading { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 4px; list-style: none; cursor: pointer; border-radius: 3px; }
.sidebar-heading::-webkit-details-marker { display: none; }
.workspace-navigation > .sidebar-branch > .sidebar-heading { color: var(--color-primary); font-weight: 700; }
.sidebar-heading:hover, .navigation-link[href]:hover { background: var(--color-selected); }
.sidebar-heading:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.sidebar-chevron { width: 5px; height: 5px; flex: 0 0 5px; margin: 0 3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); }
.sidebar-branch[open] > .sidebar-heading .sidebar-chevron { transform: rotate(45deg); }
.sidebar-children { margin-left: 12px; padding-left: 10px; border-left: 1px solid #d7e3dd; }
.workspace-navigation .navigation-link { min-height: 29px; padding: 5px 8px; line-height: 1.4; overflow-wrap: anywhere; }
.workspace-navigation .navigation-link.is-selected { font-weight: 700; }
.workspace-navigation .navigation-link.is-selected::before { top: 5px; bottom: 5px; left: -2px; height: auto; width: 3px; }
.is-unavailable { color: #737b76; cursor: not-allowed; }
.sidebar-identity { margin: auto 8px 0; color: var(--color-muted); font-size: 12px; }
@media (min-width: 641px) {
  .workspace-sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 640px) {
  .workspace-navigation { display: block; max-height: 42dvh; overflow-y: auto; margin-top: 4px; border-bottom: 1px solid var(--color-border); }
  .workspace-navigation > .sidebar-branch { margin-bottom: 6px; }
  .sidebar-company { margin: 10px 0 4px; }
  .sidebar-identity { padding-top: 10px; border-top: 0; }
}

.connections-panel { background: var(--color-background); }
.connection-list { margin-top: 28px; max-width: 860px; }
.connection-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 2px 4px #01432f0a; overflow: hidden; }
.connection-card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px 8px; }
.connection-provider { display: flex; align-items: center; gap: 12px; }
.connection-provider-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; background: var(--color-selected); color: var(--color-primary); border-radius: 7px; font: 700 20px "Ubuntu", sans-serif; }
.connection-provider h2 { margin: 0; color: var(--color-primary); font: 500 19px/1.3 "Ubuntu", sans-serif; }
.connection-provider p { margin: 3px 0 0; color: var(--color-muted); font-size: 12px; }
.connection-refresh { min-height: 32px; padding: 5px 16px; font-size: 12px; white-space: nowrap; }
.connection-metadata { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto; align-items: end; gap: 16px; padding: 6px 22px 16px; }
.connection-label, .connection-table thead th { color: var(--color-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .45px; font-weight: 400; }
.connection-metadata p { margin: 4px 0 0; font-size: 12px; }
.connection-status { white-space: nowrap; }
.connection-status span { margin-right: 5px; }
.connection-status--connected { color: var(--color-primary); }
.connection-status--unavailable, .connection-status--not_configured { color: #8a520b; }
.connection-table-wrap { padding: 0 22px; border-top: 1px solid var(--color-border); }
.connection-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.connection-table th, .connection-table td { padding: 7px 12px 7px 0; vertical-align: top; }
.connection-table thead th { padding-top: 12px; }
.connection-table tbody th { font-weight: 400; width: 27%; }
.connection-table td:nth-child(2) { width: 20%; }
.connection-table td:last-child { color: var(--color-muted); padding-right: 0; }
.connection-access { display: inline-block; padding: 2px 10px; border-radius: 4px; text-align: center; min-width: 64px; white-space: nowrap; font-size: 11px; }
.connection-access--read { color: var(--color-primary); background: var(--color-selected); }
.connection-access--write { color: #854d0e; background: #fff3dc; }
.connection-access--disabled { color: var(--color-muted); background: #f0f1f0; }
.connection-footnote, .connection-message { margin: 12px 22px 18px; color: var(--color-muted); font-size: 12px; }
.connection-message { color: #8a520b; }
@media (max-width: 900px) { .connection-metadata { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .connection-card-top { align-items: flex-start; flex-wrap: wrap; padding: 16px 12px 8px; }
  .connection-metadata { padding: 6px 12px 16px; gap: 12px; }
  .connection-table-wrap { padding: 0 12px; }
  .connection-table th, .connection-table td { padding-right: 7px; overflow-wrap: anywhere; }
  .connection-access { padding: 2px 5px; min-width: 0; white-space: normal; }
  .connection-footnote, .connection-message { margin-left: 12px; margin-right: 12px; }
}

/* Personal workspace overview and shared profile controls. */
.profile-menu { margin: 14px 4px 0; padding: 0 4px; }
.profile-toggle { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 32px; color: var(--color-primary); cursor: pointer; font-size: 12px; list-style: none; }
.profile-toggle::-webkit-details-marker { display: none; }
.profile-toggle .sidebar-icon { width: 22px; height: 22px; flex-basis: 22px; }
.profile-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.profile-content { display: grid; gap: 5px; margin-top: 6px; padding: 12px 8px; background: var(--color-selected); border-radius: 4px; overflow-wrap: anywhere; font-size: 12px; }
.profile-content span { color: var(--color-muted); }
.profile-signout { margin-top: 6px; width: 100%; font-size: 12px; }
.overview-eyebrow { margin: 0 0 6px; color: var(--color-muted); font-size: 12px; }
.overview-workspace { color: var(--color-primary); padding: 5px 12px; border: 1px solid var(--color-border); border-radius: 4px; font-size: 12px; }
.overview-introduction { margin: 16px 0 26px; color: var(--color-muted); }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.overview-section { min-width: 0; padding: 22px; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 6px; }
.overview-section-heading { display: flex; align-items: center; gap: 10px; }
.overview-section-heading h2 { margin: 0; color: var(--color-primary); font: 500 19px/1.3 "Ubuntu", sans-serif; }
.overview-section-icon { display: grid; place-items: center; background: var(--color-selected); color: var(--color-primary); width: 34px; height: 34px; border-radius: 5px; flex: 0 0 34px; }
.overview-section-note { min-height: 42px; margin: 14px 0; color: var(--color-muted); font-size: 13px; }
.overview-create { width: 100%; }
.overview-items { display: grid; margin-top: 22px; }
.overview-item { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--color-border); text-decoration: none; overflow-wrap: anywhere; }
.overview-item strong { color: var(--color-primary); }
.overview-item span { color: var(--color-muted); font-size: 12px; }
.overview-item .overview-item-time { font-size: 11px; }
.overview-item:hover strong { text-decoration: underline; }
.overview-empty { padding: 24px 0; color: var(--color-muted); font-size: 13px; }
.overview-empty strong { color: var(--color-text); font-weight: 400; }
.overview-empty p { margin-bottom: 0; }
.overview-footnote { margin-top: 22px; color: var(--color-muted); font-size: 12px; }
.draft-description { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .overview-grid { grid-template-columns: 1fr; } .overview-section-note { min-height: 0; } }
.micron-source { display: grid; grid-template-columns: minmax(100px, 180px) minmax(0, 1fr); gap: 10px 20px; margin: 24px 0; }
.micron-source dt { color: var(--color-muted); }
.micron-source dd { margin: 0; overflow-wrap: anywhere; }
.per-diem-phase { white-space: pre; font-size: 13px; }
.per-diem-count { margin-top: 28px; color: var(--color-muted); font-size: 12px; }
.per-diem-employees { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.per-diem-employee { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-top: 1px solid var(--color-border); }
.per-diem-name { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.per-diem-name strong { color: var(--color-primary); }
.per-diem-name span, .per-diem-status { color: var(--color-muted); font-size: 12px; }
.per-diem-action { display: flex; align-items: center; gap: 14px; }
.per-diem-action form { margin: 0; }
.per-diem-action button:disabled { cursor: not-allowed; opacity: .65; }
@media (max-width: 640px) { .per-diem-employee { flex-wrap: wrap; } .per-diem-action { width: 100%; justify-content: space-between; flex-wrap: wrap; } }
