/* Staff portal. Scoped to avoid changing the public church website. */
.office-root {
  --office-ink: #142637;
  --office-muted: #647384;
  --office-blue: #315bd6;
  --office-line: #e1e6ed;
  --office-paper: #f5f7fa;
  --office-radius: 14px;
  color: var(--office-ink);
  background: var(--office-paper);
  font-family: Inter, 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 80vh;
  padding-bottom: 28px;
  overflow-wrap: anywhere;
}
.office-root *, .office-root *::before, .office-root *::after { box-sizing: border-box; }
.office-root h1, .office-root h2, .office-root h3 { font-family: inherit; margin: 0; letter-spacing: -.035em; font-style: normal; font-weight: 650; color: inherit; }
.office-root p { margin: 0; }
.office-root button, .office-root input, .office-root select, .office-root textarea { font: inherit; }
.office-root button { cursor: pointer; }
.office-root button:disabled { cursor: wait; opacity: .55; }
.office-root [hidden] { display: none !important; }
.office-root :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #315bd680; outline-offset: 4px; }
.office-root [tabindex="-1"]:focus { outline: none; }
.office-icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.office-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.office-kicker { font-size: .75rem; font-weight: 750; letter-spacing: .14em; color: var(--office-blue); margin: 0 0 8px; }
.office-btn { border: 1px solid #d3dbe6; border-radius: 8px; background: white; color: var(--office-ink); min-height: 44px; padding: 10px 16px; font-size: .875rem !important; font-weight: 600 !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.35; text-align: center; transition: background .16s, border-color .16s, box-shadow .16s; white-space: nowrap; }
.office-btn:hover { background: #f5f7fc; border-color: #acbbd1; }
.office-btn-primary { background: var(--office-blue); border-color: var(--office-blue); color: white; }
.office-btn-primary:hover { background: #244bc2; border-color: #244bc2; box-shadow: 0 5px 14px #315bd620; }
.office-btn-small { padding: 8px 13px; min-height: 38px; }
.office-btn-full { width: 100%; }
.office-link { padding: 4px 0; background: none; border: 0; color: var(--office-blue); font-weight: 600 !important; font-size: .875rem !important; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .16s; }
.office-link:hover { text-decoration-color: currentColor; }
.office-icon-button { width: 42px; height: 42px; border: 1px solid var(--office-line); border-radius: 50%; display: grid; place-items: center; color: var(--office-muted); background: white; flex: 0 0 auto; }
.office-icon-button:hover { color: var(--office-ink); background: var(--office-paper); }
.office-preview-note { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; background: #edf2ff; color: #3a4e82; padding: 11px max(4vw, 20px); font-size: .875rem; border-bottom: 1px solid #dbe4ff; }
.office-preview-note strong { font-weight: 700; }
.office-layout { max-width: 1640px; margin: auto; display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 950px; }
.office-sidebar { background: #fff; border-right: 1px solid var(--office-line); display: flex; flex-direction: column; }
.office-sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 30px 25px; }
.office-brand-monogram { background: var(--office-blue); color: #fff; width: 42px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 1.4rem; font-family: Georgia, serif; font-style: italic; }
.office-sidebar-brand strong { display: block; font-size: 1.08rem; letter-spacing: .13em; line-height: 1.2; }
.office-sidebar-brand span:not(.office-brand-monogram) { color: var(--office-muted); display: block; font-size: .875rem; margin-top: 4px; }
.office-sidebar nav { padding: 0 16px 22px; }
.office-nav-group { margin: 8px 0 23px; }
.office-nav-group h2 { color: #758395; font-size: .75rem; font-weight: 700; letter-spacing: .04em; margin: 0 0 7px 12px; }
.office-nav-item { display: flex; gap: 12px; align-items: center; width: 100%; border: 0; background: none; border-radius: 8px; color: #596b7d; text-align: left; padding: 10px 12px; font-size: .875rem !important; font-weight: 500; min-height: 44px; margin: 2px 0; transition: background .15s, color .15s; }
.office-nav-item:hover { background: #f4f6fa; color: var(--office-ink); }
.office-nav-item[aria-current="page"] { background: #edf2ff; color: #2b54ce; font-weight: 650; }
.office-nav-item[aria-current="page"] .office-icon { stroke-width: 1.9; }
.office-sidebar-bottom { display: flex; gap: 11px; margin: auto 20px 20px; padding-top: 20px; border-top: 1px solid var(--office-line); align-items: center; }
.office-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #eaf0f7; color: #516981; font-size: .75rem; font-weight: 700; flex: 0 0 auto; }
.office-sidebar-bottom strong, .office-sidebar-bottom span:not(.office-avatar) { display: block; font-size: .875rem; }
.office-sidebar-bottom strong { font-weight: 650; line-height: 1.35; }
.office-sidebar-bottom span:not(.office-avatar) { font-size: .75rem; color: var(--office-muted); margin-top: 4px; }
.office-main { padding: 0 clamp(20px, 3vw, 48px) 48px; min-width: 0; }
.office-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 83px; gap: 20px; border-bottom: 1px solid var(--office-line); font-size: .875rem; color: #7a8797; }
.office-topbar > div { display: flex; align-items: center; gap: 24px; }
.office-page-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 35px 0 27px; }
.office-page-head h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.2; margin-bottom: 10px; }
.office-page-head #office-view-caption { color: var(--office-muted); font-size: .9375rem; max-width: 650px; }
.office-date { font-size: .875rem; color: var(--office-muted); white-space: nowrap; padding-bottom: 5px; }
.office-notification, .office-success { border: 1px solid #cde5db; color: #286049; background: #f1faf5; padding: 12px 16px; border-radius: 8px; font-size: .875rem; margin: 0 0 20px; }
.office-error, .office-form-error, .office-list-error { color: #8b343c; background: #fff4f4; border: 1px solid #f0ced2; border-radius: 8px; padding: 14px 16px; font-size: .9375rem; margin: 0 0 20px; }
.office-error p { margin: 6px 0 14px; }
.office-loading { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 240px; color: var(--office-muted); font-size: .9375rem; }
.office-spinner { width: 20px; height: 20px; border: 2px solid #d6e0ee; border-top-color: var(--office-blue); border-radius: 50%; animation: office-spin .7s linear infinite; }
@keyframes office-spin { to { transform: rotate(360deg); } }
.office-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 25px; }
.office-metric { position: relative; padding: 24px 20px 20px; background: white; border: 1px solid var(--office-line); border-radius: var(--office-radius); text-align: left; transition: border-color .18s, box-shadow .18s; }
.office-metric:hover { border-color: #b7c6df; box-shadow: 0 6px 16px #192b4010; }
.office-metric-icon { display: inline-grid; place-items: center; background: #f1f4fb; color: #5e7cb8; width: 37px; height: 37px; border-radius: 9px; margin-bottom: 16px; }
.office-metric-label { display: block; font-size: .875rem; font-weight: 500; color: var(--office-muted); }
.office-metric strong { display: block; font-size: 2rem; font-weight: 650; letter-spacing: -.05em; line-height: 1.3; margin: 5px 0 2px; color: var(--office-ink); }
.office-metric small { color: #8190a2; font-size: .75rem; }
.office-card { background: white; border: 1px solid var(--office-line); border-radius: var(--office-radius); padding: 26px; }
.office-card-heading { margin-bottom: 21px; }
.office-card-heading h2 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 5px; }
.office-card-heading p { color: var(--office-muted); font-size: .875rem; }
.office-dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.office-shortcuts { display: grid; }
.office-shortcut { display: flex; align-items: center; gap: 15px; padding: 17px 0; border: 0; border-top: 1px solid #edf0f5; background: none; text-align: left; color: var(--office-ink); }
.office-shortcut:hover strong { color: var(--office-blue); }
.office-shortcut strong { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: 3px; }
.office-shortcut small { display: block; font-size: .875rem; color: var(--office-muted); line-height: 1.5; }
.office-icon-tile { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #f1f5ff; color: #5776bc; flex: 0 0 auto; }
.office-overview-list > button { background: transparent; border: 0; width: 100%; color: #5c6b7a; display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; padding: 10px 0; border-top: 1px solid #edf0f5; text-align: left; }
.office-overview-list > button:hover { color: var(--office-blue); }
.office-overview-list > button strong { font-size: .875rem; color: var(--office-ink); font-weight: 650; }
.office-finance-summary { margin-top: 24px; }
.office-finance-summary > div:last-child { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.office-finance-summary > div > span { color: var(--office-muted); font-size: .875rem; }
.office-finance-summary strong { display: block; font-size: 1.6rem; font-weight: 600; color: var(--office-ink); letter-spacing: -.04em; margin-top: 6px; }
.office-records { min-width: 0; }
.office-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.office-search { display: flex; align-items: center; flex: 1 1 220px; min-width: 170px; max-width: 350px; position: relative; color: #8190a0; }
.office-search > .office-icon { position: absolute; left: 14px; width: 18px; height: 18px; pointer-events: none; }
.office-search input { width: 100%; border: 1px solid #d7dfe8; border-radius: 8px; height: 45px; padding: 10px 15px 10px 42px; background: white; color: var(--office-ink); font-size: .875rem; }
.office-search input::placeholder { color: #85909d; opacity: 1; }
.office-filter select, .office-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23647384' fill='none' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 16px; }
.office-filter select { border: 1px solid #d7dfe8; border-radius: 8px; background-color: white; height: 45px; padding: 10px 38px 10px 14px; color: #586b7f; font-size: .875rem; }
.office-toolbar-actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.office-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--office-line); border-radius: 11px; background: white; }
.office-table { width: 100%; min-width: 670px; border-collapse: collapse; font-size: .875rem; text-align: left; table-layout: auto; color: #5a6a7a; }
.office-table thead { background: #f9fafc; color: #738195; }
.office-table th { padding: 16px 19px; font-size: .75rem; font-weight: 650; white-space: nowrap; border-bottom: 1px solid var(--office-line); }
.office-table td { padding: 18px 19px; vertical-align: middle; border-bottom: 1px solid #edf0f4; max-width: 290px; }
.office-table tr:last-child td { border-bottom: 0; }
.office-table tbody tr:hover { background: #fcfdff; }
.office-table td:first-child { min-width: 130px; }
.office-table code { display: inline-block; max-width: 200px; font-family: ui-monospace, monospace; font-size: .75rem; overflow-wrap: anywhere; }
.office-cell-text { display: block; font-size: .875rem; line-height: 1.5; }
.office-cell-primary { color: var(--office-ink); font-weight: 600; }
.office-cell-sub { display: block; color: #8490a0; font-size: .75rem; }
.office-row-actions { white-space: nowrap; text-align: right; }
.office-text-button { background: none; border: 0; padding: 8px; color: var(--office-blue); font-size: .875rem !important; font-weight: 600 !important; border-radius: 5px; }
.office-text-button:hover { background: #eef3ff; }
.office-delete { color: #8c5360; }
.office-delete:hover { background: #fff0f2; color: #a73548; }
.office-protected { color: #8592a2; font-size: .75rem; }
.office-badge { display: inline-flex; align-items: center; font-size: .75rem; border-radius: 5px; color: #677586; padding: 4px 9px; background: #f0f3f6; white-space: nowrap; line-height: 1.5; }
.office-badge-green { color: #2b6a53; background: #edf7f0; }
.office-badge-blue { color: #4969b0; background: #edf2ff; }
.office-translations { display: inline-flex; gap: 5px; }
.office-translations span { border: 1px solid #e5e9ef; border-radius: 4px; padding: 2px 5px; color: #9ba6b4; font-size: .6875rem; font-weight: 600; background: #fafbfc; }
.office-translations .is-available { border-color: #d5e1f9; background: #f0f4ff; color: #5e78aa; }
.office-amount { color: var(--office-ink); font-weight: 600; white-space: nowrap; }
.office-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 17px; color: #78879a; font-size: .75rem; }
.office-pagination > div { display: flex; align-items: center; gap: 14px; }
.office-pagination button:disabled { cursor: default; }
.office-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; background: white; border: 1px solid var(--office-line); border-radius: var(--office-radius); padding: 32px; text-align: center; }
.office-empty .office-icon-tile { margin-bottom: 16px; width: 48px; height: 48px; }
.office-empty h2 { font-size: 1.25rem; margin-bottom: 8px; }
.office-empty p { color: var(--office-muted); font-size: .9375rem; margin-bottom: 22px; }
.office-dialog { color: var(--office-ink); font-family: inherit; background: white; border: 1px solid #e2e7ee; border-radius: 18px; width: min(810px, calc(100% - 32px)); max-height: calc(100dvh - 44px); padding: 0; box-shadow: 0 25px 90px #10243e40; overflow: hidden; }
.office-dialog::backdrop { background: #14263766; backdrop-filter: blur(3px); }
.office-editor { display: flex; flex-direction: column; max-height: calc(100dvh - 46px); }
.office-dialog-head { flex: 0 0 auto; padding: 24px 28px 20px; border-bottom: 1px solid var(--office-line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.office-dialog-head h2 { font-size: 1.4rem; line-height: 1.3; }
.office-dialog-head .office-kicker { font-size: .6875rem; }
.office-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 12px; }
.office-editor-help { color: var(--office-muted); font-size: .875rem; margin-bottom: 26px !important; }
.office-dialog-actions { flex: 0 0 auto; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--office-line); background: #fafbfd; padding: 18px 28px; }
.office-fieldset { margin: 0 0 27px; padding: 0; border: 0; min-inline-size: 0; }
.office-fieldset legend { font-size: 1rem; font-weight: 650; margin: 0 0 15px; padding: 0; }
.office-fieldset-note { font-size: .875rem; color: #7d8b9c; margin: -8px 0 15px !important; }
.office-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.office-field { display: flex; flex-direction: column; gap: 8px; color: #526275; font-size: .875rem; font-weight: 500; min-width: 0; }
.office-field-wide { grid-column: 1 / -1; }
.office-field input, .office-field select, .office-field textarea { border: 1px solid #ccd6e2; border-radius: 7px; padding: 11px 12px; font-size: 1rem; color: var(--office-ink); width: 100%; min-width: 0; background-color: white; box-shadow: 0 1px 2px #14263704; }
.office-field select { padding-right: 38px; }
.office-field textarea { resize: vertical; line-height: 1.65; min-height: 115px; }
.office-field input[aria-invalid], .office-field textarea[aria-invalid] { border-color: #b45060; }
.office-field small { font-size: .75rem; font-weight: 400; line-height: 1.5; color: #7f8d9d; }
.office-required { color: #935663; }
.office-check { min-height: 55px; display: flex; align-items: flex-start; gap: 12px; background: #f7f9fc; border: 1px solid #e4e9f0; border-radius: 9px; padding: 16px; grid-column: 1 / -1; font-size: .875rem; font-weight: 600; color: var(--office-ink); }
.office-check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--office-blue); flex-shrink: 0; }
.office-check small { display: block; margin-top: 3px; color: #7a8899; font-size: .875rem; line-height: 1.5; font-weight: 400; }
.office-settings { max-width: 940px; }
.office-settings-intro { color: var(--office-muted); font-size: .9375rem; margin-bottom: 22px !important; }
.office-settings-section { background: white; border: 1px solid var(--office-line); border-radius: 11px; margin-bottom: 16px; overflow: hidden; }
.office-settings-section > summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; font-size: 1rem; font-weight: 650; }
.office-settings-section > summary::-webkit-details-marker { display: none; }
.office-summary-chevron { width: 8px; height: 8px; border-right: 1.5px solid #6f8093; border-bottom: 1.5px solid #6f8093; transform: rotate(45deg); margin: 0 6px 5px 12px; transition: transform .15s; }
.office-settings-section[open] .office-summary-chevron { transform: rotate(225deg); margin-bottom: 0; }
.office-settings-section[open] > summary { border-bottom: 1px solid var(--office-line); }
.office-settings-section > div { padding: 24px 24px 0; }
.office-settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 20px 0; }
.office-settings-actions > span { font-size: .875rem; color: var(--office-muted); }
.office-password-card { max-width: 550px; padding: 30px; }
.office-password-card > h2 { font-size: 1.3rem; margin: 20px 0 8px; }
.office-password-card > p { font-size: .9375rem; color: var(--office-muted); margin-bottom: 24px; }
.office-table-note { color: var(--office-muted); font-size: .875rem; margin-top: 16px !important; }
.office-auth { max-width: 1180px; margin: auto; padding: 75px 30px; display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; gap: clamp(45px, 8vw, 120px); }
.office-auth-intro { padding: 50px 0 25px; }
.office-auth-intro h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.1; letter-spacing: -.055em; margin: 18px 0 25px; font-weight: 600; }
.office-auth-intro > p { color: #687b8e; font-size: 1.06rem; max-width: 350px; }
.office-auth-note { display: flex; align-items: center; gap: 12px; color: #7b8b9e; font-size: .875rem; max-width: 340px; padding: 30px 0; margin-top: 30px; border-top: 1px solid #d9e1ec; }
.office-auth-note .office-icon { color: #7b94b6; }
.office-auth-back { margin-top: 5px; }
.office-auth-panel { background: white; border: 1px solid #e1e7ee; box-shadow: 0 15px 50px #17376008; border-radius: 18px; padding: clamp(26px, 4vw, 48px); }
.office-auth-heading .office-icon-tile { width: 48px; height: 48px; margin-bottom: 22px; }
.office-auth-heading h2 { font-size: 1.65rem; line-height: 1.35; margin-bottom: 8px; }
.office-auth-heading p { color: #7a8b9c; font-size: .9375rem; margin-bottom: 26px; }
.office-auth-form { display: grid; gap: 20px; }
.office-auth-form .office-btn { margin-top: 5px; }
.office-callout { color: #5e7394; background: #f2f6ff; border: 1px solid #e3ebfc; border-radius: 10px; padding: 17px 19px; margin: 0 0 25px; }
.office-callout strong { display: block; color: #4a6596; font-size: .875rem; margin-bottom: 5px; }
.office-callout p { font-size: .875rem; line-height: 1.6; }
.office-auth-church { padding-top: 28px; margin-top: 28px !important; border-top: 1px solid var(--office-line); color: #8995a5; font-size: .75rem; line-height: 1.75; }
.office-setup { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--office-line); }
.office-setup summary { font-size: .875rem; cursor: pointer; color: #617b9f; }
.office-setup > p { font-size: .875rem; color: var(--office-muted); margin: 15px 0; }
@media (max-width: 1180px) {
  .office-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .office-sidebar-brand { padding-inline: 20px; }
  .office-main { padding-inline: 24px; }
  .office-metrics { gap: 12px; }
  .office-metric { padding: 20px 16px; }
  .office-dashboard-grid { grid-template-columns: 1fr; }
  .office-overview-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .office-overview-list .office-card-heading { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .office-layout { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
  .office-sidebar { min-width: 0; max-width: 100%; border-right: 0; border-bottom: 1px solid var(--office-line); background: #fff; }
  .office-sidebar-brand, .office-sidebar-bottom { display: none; }
  .office-sidebar nav { position: relative; display: flex; width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 10px 16px; gap: 6px; }
  .office-nav-group { display: flex; flex: 0 0 auto; margin: 0; gap: 6px; }
  .office-nav-group h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .office-nav-item { width: auto; padding: 10px 12px; white-space: nowrap; gap: 7px; }
  .office-nav-item .office-icon { width: 18px; height: 18px; }
  .office-main { max-width: 100%; padding-inline: 22px; }
  .office-topbar { min-height: 66px; }
  .office-page-head { padding-top: 28px; }
  .office-auth { gap: 40px; padding-top: 45px; }
  .office-auth-intro h1 { font-size: 2.7rem; }
}
@media (max-width: 620px) {
  .office-auth { grid-template-columns: 1fr; gap: 22px; padding: 30px 20px; }
  .office-auth-intro { padding: 0; }
  .office-auth-intro h1 { font-size: 2.3rem; margin: 12px 0 16px; }
  .office-auth-intro h1 br { display: none; }
  .office-auth-intro > p { max-width: none; font-size: .9375rem; }
  .office-auth-note { display: none; }
  .office-auth-back { margin-top: 16px; }
  .office-auth-panel { padding: 25px; }
  .office-preview-note { font-size: .875rem; padding: 12px 20px; }
  .office-main { padding-inline: 18px; }
  .office-topbar { gap: 12px; }
  .office-topbar > span { display: none; }
  .office-topbar > div { width: 100%; justify-content: space-between; }
  .office-date { display: none; }
  .office-page-head h1 { font-size: 1.85rem; }
  .office-page-head #office-view-caption { font-size: .875rem; }
  .office-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .office-metric { padding: 18px; }
  .office-metric strong { font-size: 1.8rem; }
  .office-metric-label { min-height: 38px; line-height: 1.4; }
  .office-card { padding: 22px; }
  .office-dashboard-grid { gap: 18px; }
  .office-overview-list { grid-template-columns: 1fr; }
  .office-overview-list .office-card-heading { grid-column: auto; }
  .office-finance-summary > div:last-child { grid-template-columns: 1fr; gap: 22px; }
  .office-finance-summary > div:last-child > span { padding-bottom: 18px; border-bottom: 1px solid var(--office-line); }
  .office-finance-summary > div:last-child > span:last-child { border: 0; padding: 0; }
  .office-search { max-width: none; flex-basis: 100%; }
  .office-filter { flex: 1 1 auto; }
  .office-filter select { width: 100%; }
  .office-toolbar-actions { width: 100%; justify-content: flex-end; margin-top: 3px; }
  .office-toolbar-actions .office-btn { flex: 1; }
  .office-table { min-width: 640px; }
  .office-table td, .office-table th { padding: 15px; }
  .office-pagination { gap: 14px; }
  .office-pagination > div { margin-left: auto; }
  .office-dialog { width: calc(100% - 16px); border-radius: 14px; max-height: calc(100dvh - 16px); }
  .office-editor { max-height: calc(100dvh - 18px); }
  .office-dialog-head { padding: 20px; }
  .office-dialog-head h2 { font-size: 1.25rem; }
  .office-dialog-body { padding: 20px; }
  .office-fields { grid-template-columns: 1fr; gap: 17px; }
  .office-field-wide { grid-column: auto; }
  .office-dialog-actions { padding: 16px 20px; }
  .office-dialog-actions .office-btn-primary { flex: 1; }
  .office-settings-section > summary { padding: 19px; }
  .office-settings-section > div { padding: 20px 19px 0; }
  .office-settings-actions { flex-direction: column; align-items: stretch; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .office-root *, .office-root *::before, .office-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Keep task labels, dates and record statuses readable. */
.office-table-scroll { position: relative; }
.office-table th, .office-badge, .office-protected, .office-pagination, .office-cell-sub, .office-date, .office-metric-label { font-size: .875rem; }
#office-view-title { scroll-margin-top: 110px; }
