:root { --ink:#1a2332; --paper:#f3efe6; --card:#fffcf7; --line:#e4dccb; --brass:#8d5a2b; --sienna:#9c3b1e; --good:#1d6b45; --due:#9f1239; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Outfit, sans-serif; background: var(--paper); color: var(--ink); }
h1, .display { font-family: Fraunces, serif; font-weight: 560; letter-spacing: -0.02em; }
a { color: #7a4e24; }
:focus-visible { outline: 3px solid #8d5a2b; outline-offset: 2px; }
.with-side { min-height: 100vh; }
.office-aside { background: var(--ink); color: #e7e1d6; }
.nav-link { display: flex; align-items: center; min-height: 2.75rem; border-radius: 0.8rem; padding: 0.55rem 0.75rem; color: #e7e1d6; font-weight: 650; text-decoration: none; }
.nav-link.active, .nav-link:hover { background: rgba(255,255,255,.08); color: white; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem; }
.field { width: 100%; min-height: 2.75rem; border: 1px solid #d9d0c2; background: white; border-radius: 0.75rem; padding: 0.7rem 0.85rem; font: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; border-radius: 999px; padding: 0.65rem 1.05rem; font-weight: 700; border: 0; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--sienna); color: white; }
.btn-ink { background: var(--ink); color: #f6f1e7; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.muted { color: #5c5348; font-size: 0.92rem; }
.badge { display: inline-flex; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 700; background: #efe7da; }
.badge.backup { background: #f8e4e8; color: var(--due); }
.notice { background: #f8ead7; border-radius: 12px; padding: 12px 14px; }
.flash { border-radius: 0.9rem; padding: 0.75rem 1rem; background: #e7f6ee; color: #145c38; }
.err { background: #fde8ec; color: var(--due); padding: 0.75rem 1rem; border-radius: 0.9rem; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 0.75rem; border-bottom: 1px solid #f0e9de; }
table.data th { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: #6d6458; }
table.data th a { color: inherit; text-decoration: none; }
.bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: flex; background: #fffcf7; border-top: 1px solid var(--line); }
.bottom-nav a { flex: 1; min-height: 3.5rem; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #5c5348; text-decoration: none; }
.bottom-nav a.active { color: var(--sienna); }
.toast-stack { position: fixed; z-index: 50; right: 1rem; left: 1rem; bottom: 5rem; }
@media (max-width: 767px) {
  .office-aside { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(18rem, 86vw); transform: translateX(-105%); background: var(--ink); }
  .office-aside.open { transform: none; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; margin: 0 0 .75rem; padding: .4rem .9rem .7rem; }
  table.data td { display: flex; justify-content: space-between; gap: 1rem; border: 0; text-align: right; }
  table.data td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6d6458; }
}
@media (min-width: 768px) {
  .with-side { display: grid; grid-template-columns: 16rem 1fr; }
  .office-aside { position: sticky; top: 0; min-height: 100vh; }
  .bottom-nav, [data-nav-toggle] { display: none; }
}
