@font-face {
  font-family: DM Sans;
  src: url('/fonts/DMSans.ttf') format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: DM Serif Display;
  src: url('/fonts/DMSerifDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
:root {
  --cream: #f6f3ea;
  --paper: #fffefb;
  --forest: #163e35;
  --muted: #6d756c;
  --gold: #d8ad55;
  --line: #e2e4d9;
  --clay: #b96344;
  --sans: 'DM Sans',sans-serif;
  --serif: 'DM Serif Display',Georgia,serif;
  font-family: var(--sans);
  color: var(--forest);
  background: var(--cream);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b07920;
  outline-offset: 4px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
.serif {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: 38px;
  letter-spacing: -.8px;
  line-height: 1.2;
}
h2 {
  font-size: 24px;
  letter-spacing: -.3px;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.wordmark {
  font-family: var(--serif);
  font-size: 37px;
  letter-spacing: -1.4px;
  line-height: 1;
}
.wordmark span {
  color: var(--gold);
}
.skip {
  position: absolute;
  top: -100px;
  z-index: 10;
  background: white;
  padding: 16px;
}
.skip:focus {
  top: 0;
}
.initial {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 25px;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0,1fr);
  min-height: 100vh;
}
.sidebar {
  background: #eeeee3;
  border-right: 1px solid #dcdfd2;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 35px 20px 20px;
}
.brand {
  padding: 0 16px 33px;
  text-decoration: none;
}
.workspace-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 650;
}
.workspace {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 13px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 31px;
}
.workspace strong {
  font-size: 12px;
  display: block;
}
.workspace small {
  font-size: 10px;
  color: var(--muted);
}
.monogram {
  height: 35px;
  width: 35px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: var(--forest);
  color: white;
  font-family: var(--serif);
  font-size: 20px;
  flex-shrink: 0;
}
.nav-label {
  padding: 0 15px;
  margin-bottom: 10px;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #7d8376;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 15px;
  margin-bottom: 5px;
  border-radius: 7px;
  color: #5c6b5e;
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
}
.nav-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .6;
}
.nav-item:hover {
  background: #e1e6d8;
}
.nav-item.active {
  background: var(--forest);
  color: var(--paper);
}
.nav-item.active::before {
  background: var(--gold);
  border-color: var(--gold);
  opacity: 1;
}
.nav-count {
  margin-left: auto;
  background: #e6bd67;
  color: var(--forest);
  min-width: 18px;
  text-align: center;
  border-radius: 4px;
  font-size: 10px;
  padding: 1px 4px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 27px 12px 0;
}
.help-note {
  border-top: 1px solid #d6dccc;
  padding-top: 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 21px;
}
.avatar {
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  background: #dce2d2;
  font-size: 11px;
  font-weight: 650;
}
.account strong {
  font-size: 11px;
}
.account small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.account button {
  background: none;
  border: 0;
  margin-left: auto;
  color: var(--muted);
  min-width: 28px;
  min-height: 35px;
}
.main-column {
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #faf8f1;
  gap: 16px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 12px;
  color: #b1b5a5;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mode-switch {
  font-size: 11px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  max-width: 190px;
  color: var(--forest);
}
.preview-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 650;
  color: #7b5d24;
  background: #f2e8cb;
  padding: 6px 10px;
  border-radius: 5px;
}
.preview-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #b58a2c;
  border-radius: 50%;
}
.date {
  font-size: 11px;
  color: var(--muted);
}
main.content {
  padding: 37px 42px 40px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.6;
}
.page-heading .eyebrow {
  color: #829177;
  margin-bottom: 9px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 39px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--forest);
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: #e9edde;
  border-color: #c8d0be;
}
.button.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}
.button.primary:hover {
  background: #255447;
}
.button.danger {
  background: #fff9f5;
  color: #a14329;
  border-color: #e2c3b8;
}
.button.text {
  border-color: transparent;
  background: transparent;
  padding-left: 0;
}
.button.small {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 10px;
}
.arrow {
  font-size: 16px;
  font-weight: 400;
}
.preview-note {
  font-size: 10px;
  color: #7c6b45;
  margin-top: 14px;
  line-height: 1.6;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px 22px 18px;
  min-height: 145px;
  position: relative;
}
.metric.featured {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
  overflow: hidden;
}
.metric.featured::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  right: -70px;
  bottom: -90px;
  box-shadow: 0 0 0 25px #ffffff05,0 0 0 50px #ffffff04;
}
.metric-label {
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .2px;
}
.metric-value {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.3;
  margin-top: 14px;
  letter-spacing: -.7px;
}
.metric-note {
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
}
.metric.featured .metric-note {
  color: #becfc2;
}
.metric.featured .metric-label {
  color: #d0ddcf;
}
.metric-note b {
  color: #557950;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  overflow: hidden;
}
.panel-head {
  padding: 21px 23px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-head h2 {
  font-size: 21px;
}
.panel-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.panel-body {
  padding: 0 23px 23px;
}
.panel-foot {
  border-top: 1px solid var(--line);
  padding: 14px 23px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.text-link {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 10px;
  color: var(--forest);
  font-weight: 650;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.chart {
  padding: 8px 3px 0;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  height: 205px;
}
.chart-y {
  font-size: 9px;
  color: #8a9386;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 22px;
}
.chart-bars {
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  background: repeating-linear-gradient(to top,transparent 0,transparent 44px,#e9ece3 44px,#e9ece3 45px);
  padding-bottom: 22px;
  position: relative;
}
.bar {
  flex: 1;
  min-width: 0;
  border-radius: 4px 4px 0 0;
  background: #b6c5a3;
  position: relative;
  min-height: 2px;
}
.bar:nth-child(4n) {
  background: #507b5b;
}
.bar:last-child {
  background: var(--forest);
}
.bar label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: #86907f;
  white-space: nowrap;
}
.chart-legend {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #759068;
  border-radius: 2px;
}
.attention-row {
  padding: 17px 0;
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line);
}
.attention-row:first-child {
  border-top: 0;
  padding-top: 7px;
}
.attention-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f0e7cf;
  color: #8c6f35;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 18px;
}
.attention-row h3 {
  font-size: 11px;
  line-height: 1.5;
}
.attention-row p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}
.attention-row .text-link {
  margin-top: 5px;
}
.empty {
  padding: 40px 25px;
  text-align: center;
}
.empty h2 {
  font-size: 26px;
  margin-bottom: 10px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 390px;
  margin: 0 auto 20px;
}
.table-wrap {
  overflow: auto;
}
.org-card-list {
  display: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  font-weight: 600;
  color: #89917f;
  letter-spacing: .4px;
  background: #fafaf4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 23px;
}
td {
  padding: 16px 23px;
  border-bottom: 1px solid #eef0e8;
  font-size: 11px;
  color: #536451;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.org-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}
.org-cell .monogram {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 17px;
}
.org-cell strong {
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
}
.org-cell small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  border-radius: 4px;
  padding: 5px 8px;
  background: #eff2e6;
  color: #5e7752;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.gold {
  color: #927333;
  background: #f7efd9;
}
.badge.gray {
  background: #eff0eb;
  color: #727a70;
}
.badge.red {
  background: #fae8df;
  color: #a15f47;
}
.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--forest);
}
.row-link {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0;
  text-align: left;
}
.row-link:hover strong {
  text-decoration: underline;
}
.filters {
  display: flex;
  gap: 10px;
  padding: 0 23px 20px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 170px;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--paper);
  font-size: 11px;
  color: var(--forest);
}
select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--forest);
  background: var(--paper);
  font-size: 11px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 0 23px;
}
.tab {
  border: 0;
  background: none;
  padding: 13px 12px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--forest);
  border-bottom-color: var(--forest);
  font-weight: 650;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr);
  gap: 24px;
}
.form {
  padding: 23px;
  display: grid;
  gap: 22px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 11px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
  color: var(--forest);
  background: #fffefb;
  border: 1px solid #dce1d3;
  border-radius: 6px;
  min-height: 42px;
}
.field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.6;
}
.field small {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.setting-row h3 {
  font-size: 12px;
  margin-bottom: 7px;
}
.setting-row p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 360px;
}
.switch {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 23px;
  flex-shrink: 0;
}
.switch input {
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  position: absolute;
  z-index: 1;
}
.switch span {
  width: 38px;
  height: 23px;
  background: #d9dfd0;
  border-radius: 20px;
  transition: background .2s;
}
.switch span::after {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0002;
  transition: transform .2s;
}
.switch input:checked + span {
  background: var(--forest);
}
.switch input:checked + span::after {
  transform: translateX(15px);
}
.switch:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 20px;
}
.notice {
  padding: 16px 18px;
  border: 1px solid #e9d9b1;
  border-radius: 7px;
  background: #fcf6e6;
  color: #7e6738;
  font-size: 11px;
  line-height: 1.8;
}
.notice h3 {
  font-size: 12px;
  margin-bottom: 5px;
}
.notice .button {
  margin-top: 10px;
}
.note-panel {
  padding: 24px;
}
.note-panel h2 {
  font-size: 25px;
  margin-bottom: 13px;
}
.note-panel p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 15px;
}
.note-panel ul {
  padding-left: 16px;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
}
.org-detail {
  display: flex;
  align-items: center;
  gap: 18px;
}
.org-detail .monogram {
  width: 62px;
  height: 62px;
  font-size: 32px;
  border-radius: 13px;
}
.org-detail h1 {
  font-size: 32px;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 22px;
  border-top: 1px solid var(--line);
}
.request-card {
  padding: 23px;
  border-top: 1px solid var(--line);
}
.request-card:first-child {
  border-top: 0;
}
.request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.request-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 18px 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  color: #87917d;
  font-size: 9px;
  margin-top: 27px;
  padding: 0 2px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  background: var(--forest);
  color: var(--cream);
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand h1 {
  font-size: 60px;
  line-height: 1.05;
  max-width: 470px;
}
.login-brand p {
  line-height: 1.9;
  font-size: 14px;
  color: #c3cfbf;
  max-width: 340px;
  margin-top: 20px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-form > div {
  max-width: 350px;
  width: 100%;
}
.login-form h1 {
  font-size: 36px;
}
.login-form p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 13px;
}
.login-form form {
  padding: 26px 0;
}
.login-form .button {
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 95px);
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  box-shadow: 0 6px 25px #163e3526;
  font-size: 12px;
  z-index: 50;
  display: none;
  max-width: min(90vw,500px);
}
#toast.show {
  display: block;
}
#toast.error {
  background: #8e422c;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 460px;
  width: calc(100% - 36px);
  color: var(--forest);
  background: var(--paper);
  box-shadow: 0 18px 90px #163e3533;
}
dialog::backdrop {
  background: #163e3566;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 22px;
}
dialog .actions {
  justify-content: flex-end;
}
dialog .field {
  margin-bottom: 20px;
}
.error-banner {
  color: #a14329;
  background: #fae8df;
  padding: 15px;
  border-radius: 6px;
  font-size: 12px;
}
.loading {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
.mobile-menu {
  display: none;
}
@media (min-width:1500px) {
  main.content {
    padding-top: 45px;
  }
  .metric {
    min-height: 157px;
  }
  .metric-value {
    font-size: 39px;
  }
  .grid {
    grid-template-columns: minmax(0,1.8fr) minmax(290px,1fr);
  }
}
@media (max-width:1150px) {
  .shell {
    grid-template-columns: 205px minmax(0,1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar {
    padding: 0 25px;
  }
  main.content {
    padding: 30px 25px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 18px 16px;
  }
  .metric-value {
    font-size: 29px;
  }
  .grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 17px;
  }
  .date {
    display: none;
  }
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .metric-note {
    line-height: 1.5;
  }
  .page-heading h1 {
    font-size: 34px;
  }
}
@media (max-width:860px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 20px;
    display: none;
  }
  .shell.menu-open .sidebar {
    display: flex;
  }
  .brand {
    padding: 0 10px 25px;
  }
  .sidebar-foot {
    display: none;
  }
  .workspace {
    display: none;
  }
  .nav-item {
    min-height: 44px;
  }
  .topbar {
    height: 66px;
    padding: 0 20px;
  }
  .mobile-menu {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 8px;
    background: var(--paper);
    font-size: 11px;
    color: var(--forest);
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .page-heading p {
    max-width: 300px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    gap: 12px;
    line-height: 1.6;
  }
  #toast {
    left: 50%;
  }
  .login-brand {
    padding: 40px;
  }
  .login-brand h1 {
    font-size: 42px;
  }
}
@media (max-width:560px) {
  main.content {
    padding: 27px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .mode-switch {
    max-width: 140px;
    font-size: 10px;
  }
  .top-actions {
    gap: 8px;
  }
  .preview-pill {
    font-size: 9px;
    padding: 6px;
  }
  .page-heading {
    flex-direction: column;
    gap: 17px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px 15px;
    min-height: 133px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-note {
    font-size: 9px;
  }
  .panel-head {
    padding: 19px 17px;
  }
  .panel-head h2 {
    font-size: 21px;
  }
  .panel-body {
    padding-left: 17px;
    padding-right: 17px;
  }
  .panel-foot {
    padding: 14px 17px;
    gap: 14px;
    line-height: 1.6;
  }
  .filters {
    padding-left: 17px;
    padding-right: 17px;
  }
  .form {
    padding: 20px 17px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .chart-bars {
    gap: 6px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 28px;
    gap: 45px;
  }
  .login-brand h1 {
    font-size: 37px;
  }
  .login-brand > small {
    display: none;
  }
  .login-brand p {
    font-size: 12px;
  }
  .login-form {
    padding: 35px 28px;
  }
  .org-detail h1 {
    font-size: 27px;
  }
  .detail-actions {
    padding: 17px;
  }
  .footer {
    flex-direction: column;
  }
}
@media (max-width:720px) {
  .org-list-table {
    display: none;
  }
  .org-card-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0 17px 17px;
  }
  .org-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--paper);
  }
  .org-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }
  .org-card-open {
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 44px;
  }
  .org-card-open .org-cell,
  .org-card-open .org-cell > div:last-child {
    min-width: 0;
  }
  .org-card-open .org-cell strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .org-card .text-link {
    min-height: 44px;
    padding: 10px 0 10px 8px;
  }
  .org-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0;
  }
  .org-card-meta > div {
    min-width: 0;
  }
  .org-card-meta dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .35px;
  }
  .org-card-meta dd {
    margin: 0;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    transition: none!important;
    animation: none!important;
    scroll-behavior: auto!important;
  }
}
@media (max-width:560px){.topbar{height:auto;min-height:66px;padding-top:12px;padding-bottom:12px;align-items:flex-start}.mobile-menu{flex-shrink:0}.top-actions{flex-wrap:wrap;justify-content:flex-end;min-width:0}#org-select{flex-basis:100%;max-width:100%}.panel{min-width:0}}
