:root {
  --fb-paper: #F4F0E8;
  --fb-card: #FFFCF7;
  --fb-ink: #1C1917;
  --fb-muted: #5C564E;
  --fb-line: #E4DDD2;
  --fb-crimson: #9E2A2B;
  --fb-oxblood: #6E1C1E;
  --fb-brass: #A68543;
  --fb-available: #1F6B4A;
  --fb-reserve: #8A6A2F;
  --fb-restricted: #8A5A00;
  --fb-restricted-wash: #F8EFD9;
  --fb-danger: #9B2C2C;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--fb-paper);
  color: var(--fb-ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--fb-oxblood); }
.top.shell { border-bottom: 3px solid var(--fb-brass); }
nav a[aria-current="page"] { color: var(--fb-oxblood); font-weight: 600; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--fb-line);
  background: var(--fb-card);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; font-weight: 600; letter-spacing: 0.04em; }
.brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 0; }
.top nav { display: flex; gap: 16px; align-items: center; }
.top nav a { text-decoration: none; color: var(--fb-ink); }
main { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; }
.card { background: var(--fb-card); border: 1px solid var(--fb-line); border-radius: 12px; padding: 24px; }
h1 { font-size: 28px; font-weight: 600; letter-spacing: 0.02em; margin: 0 0 8px; }
h2 { font-size: 13px; letter-spacing: 0.12em; font-weight: 600; margin: 28px 0 10px; }
.lede, .note { color: var(--fb-muted); }
label { display: block; font-size: 14px; margin: 14px 0 6px; }
input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--fb-line);
  border-radius: 8px;
  background: white;
  color: var(--fb-ink);
  font: inherit;
}
.row { display: flex; gap: 16px; }
.row > * { flex: 1; }
button, .button {
  display: inline-block;
  margin-top: 18px;
  background: var(--fb-ink);
  color: var(--fb-paper);
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button.danger { background: var(--fb-danger); }
button.linkish, form.inline { display: inline; margin: 0; }
form.inline button { margin: 0; background: transparent; color: var(--fb-ink); padding: 0; font-weight: 400; }
.alert { background: #F8E6E6; color: var(--fb-danger); padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.status { background: #E7F2EC; color: var(--fb-available); padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--fb-line); vertical-align: top; }
.tag { font-size: 12px; font-weight: 600; }
.tag.available { color: var(--fb-available); }
.tag.board_reserve { color: var(--fb-reserve); }
.tag.restricted { color: var(--fb-restricted); background: var(--fb-restricted-wash); padding: 2px 6px; border-radius: 4px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.check input { width: auto; }
code { font-family: "IBM Plex Sans", "Segoe UI", sans-serif; word-break: break-all; }
.lockup { width: min(100%, 520px); height: auto; margin-bottom: 16px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
body.desktop { min-height: 100vh; display: flex; flex-direction: column; background: #E6E1D8; }
body.desktop main { max-width: none; margin: 0; padding: 12px 16px 32px; }
.menubar { display: flex; align-items: center; gap: 8px; background: var(--fb-card); border-bottom: 3px solid var(--fb-brass); padding: 0 12px; }
.menubar .brand img { width: 32px; height: 32px; }
.menubar nav { display: flex; flex-wrap: wrap; gap: 2px; }
.menubar details { position: relative; }
.menubar summary { list-style: none; cursor: pointer; padding: 10px 8px; font-weight: 600; }
.menubar summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; z-index: 4; min-width: 220px; background: var(--fb-card); border: 1px solid var(--fb-line); padding: 8px 12px; }
.menu-panel a { display: block; padding: 6px 0; text-decoration: none; color: var(--fb-ink); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 4px 12px; background: var(--fb-card); border-bottom: 1px solid var(--fb-line); }
.toolbar-search { display: flex; align-items: center; gap: 8px; margin: 0; }
.toolbar-search label { margin: 0; font-size: 13px; }
.toolbar-search input { width: 220px; margin: 0; padding: 4px 8px; }
.toolbar-home { display: inline-flex; align-items: center; gap: 6px; color: var(--fb-ink); text-decoration: none; font-weight: 600; }
.toolbar-home .ico { width: 16px; height: 16px; }
.workspace { flex: 1; display: flex; align-items: stretch; min-height: calc(100vh - 92px); }
.shortcuts { width: 196px; flex: 0 0 196px; background: var(--fb-ink); color: #fff; padding: 8px 0 24px; }
.shortcuts a { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; color: #fff; text-decoration: none; font-size: 13px; }
.shortcuts a span { white-space: nowrap; }
.shortcuts .ico { width: 18px; height: 18px; flex: 0 0 18px; }
.shortcuts a[aria-current="page"] { background: #3A342F; box-shadow: inset 3px 0 0 var(--fb-brass); font-weight: 600; }
.shortcuts a:focus-visible { outline: 2px solid var(--fb-paper); outline-offset: -2px; }
.shortcuts h2 { margin: 16px 12px 4px; color: #C8C0B4; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.sheet-tabs { display: flex; gap: 2px; padding: 0 0 0 4px; }
.sheet-tabs a { background: #D9D3C8; color: var(--fb-ink); text-decoration: none; padding: 6px 14px; border: 1px solid var(--fb-line); border-bottom: 0; }
.sheet-tabs a[aria-current="page"] { background: #fff; font-weight: 600; }
.sheet, .flow-board { background: transparent; }
.flow-board { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "vendors company" "customers banking" "employees banking"; gap: 8px; margin-top: 8px; }
.band { background: #fff; border: 1px solid #D5CFC4; padding: 8px 12px 14px; }
.band.vendors { grid-area: vendors; }
.band.company { grid-area: company; }
.band.customers { grid-area: customers; }
.band.banking { grid-area: banking; }
.band.employees { grid-area: employees; }
.band h2 { text-align: center; color: var(--fb-muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin: 2px 0 10px; }
.flow-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.flow-item { display: flex; flex-direction: column; align-items: center; width: 96px; gap: 4px; color: var(--fb-ink); text-decoration: none; text-align: center; font-size: 12px; line-height: 1.2; }
.flow-item .ico { width: 28px; height: 28px; }
.flow-item:focus-visible { outline: 2px solid var(--fb-ink); }
.flow-arrow { width: 28px; height: 2px; margin-top: 14px; background: var(--fb-ink); position: relative; flex: 0 0 28px; }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--fb-ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow-arrow.out { width: 42px; flex-basis: 42px; }
.org-line { margin: 0 0 8px; color: var(--fb-muted); }
.center-split { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 420px; background: #fff; border: 1px solid var(--fb-line); }
.center-list { border-right: 1px solid var(--fb-line); padding: 16px; background: var(--fb-paper); }
.center-list h1 { font-size: 18px; }
.center-list a { display: block; padding: 8px 0; color: var(--fb-ink); text-decoration: none; }
.center-list a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--fb-brass); padding-left: 8px; }
.center-detail { padding: 24px; }
.sheet { background: #fff; border: 1px solid #D5CFC4; padding: 24px; margin-top: 8px; }
