:root {
  --bg: #f7f0ec;
  --card: #ffffff;
  --ink: #2a1a0a;
  --ink-soft: #3a2a1a;
  --muted: #a09080;
  --red: #8d0606;
  --red-deep: #6d1818;
  --teal: #068d8d;
  --border: rgba(139,32,32,0.12);
  --border-strong: rgba(139,32,32,0.22);
  --stripe-odd: #f9f2f1;
  --stripe-even: #f2e0df;
  --serif: Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); }
.wrap { max-width: 920px; margin: 0 auto; padding: 1.5rem; }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.topbar h1 { font-size: 1.4rem; margin: 0; font-weight: 400; letter-spacing: -0.3px; }
.topbar nav a {
  color: var(--red); margin-left: 1.1rem; text-decoration: none;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.topbar nav a:hover { color: var(--teal); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem;
}
.card h2 {
  margin: 0 0 1rem; font-size: 0.95rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--sans);
}

.filters { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.filters label { flex: 1; min-width: 130px; margin: 0; font-family: var(--sans);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.filter-submit { flex: 0 0 auto; }
.range-note { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin: 0.75rem 0 0; }

table { width: 100%; border-collapse: collapse; border-radius: 6px; overflow: hidden; margin: 0; font-family: var(--sans); }
tr:nth-child(odd) { background: var(--stripe-odd); }
tr:nth-child(even) { background: var(--stripe-even); }
th { background: var(--card); text-align: left; padding: 0.5rem; color: var(--muted);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
td { padding: 0.45rem 0.5rem; font-size: 0.88rem; color: var(--ink-soft); vertical-align: top; }
a { color: var(--red); }
a:hover { color: var(--teal); }

input, select, textarea {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 8px;
  color: var(--ink); font-size: 1rem; font-family: var(--serif);
}

.btn-primary, .btn-secondary, .btn-danger {
  font-family: var(--serif); font-size: 0.9rem; padding: 0.6rem 1.1rem;
  border-radius: 8px; border: none; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--teal); }
.btn-secondary { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-secondary:hover { color: var(--teal); border-color: var(--teal); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }

label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.9rem; font-family: var(--sans); }

.error { color: var(--red); font-family: var(--sans); }

.login-page { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-card { width: 300px; }
.login-card h1 { font-size: 1.3rem; text-align: center; font-weight: 400; }

.actions-cell { white-space: nowrap; }
.actions-cell a { margin-right: 0.6rem; font-size: 0.85rem; }

canvas { max-width: 100%; }

/* ===== suite additions ===== */
.topbar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.brand-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; display: block; }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--red); font-size: 1.2rem; line-height: 1;
  width: 2.4rem; height: 2.4rem; border-radius: 8px; cursor: pointer;
}

.suite-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; }
.suite-nav a {
  font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--red); text-decoration: none;
  padding: 0.4rem 0.7rem; border: 1px solid var(--border); border-radius: 6px;
  background: transparent; white-space: nowrap;
}
.suite-nav a:hover,
.suite-nav a:focus { color: #fff; background: var(--teal); border-color: var(--teal); outline: none; }
.suite-nav a.active { color: #fff; background: var(--red); border-color: var(--red); }
.suite-nav a:visited { color: var(--red); }
.suite-nav a.active:visited { color: #fff; }

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .suite-nav { display: none; width: 100%; margin-left: 0; flex-direction: column; }
  .suite-nav.open { display: flex; }
  .suite-nav a { text-align: center; }
}


/* progress bar */
.progress-wrap { background: #efe6e0; border-radius: 999px; height: 16px; overflow: hidden; margin: 0.75rem 0; }
.progress-fill { height: 100%; background: var(--red); border-radius: 999px; transition: width .4s ease; }
.big-number { font-size: 3rem; font-weight: 400; font-family: var(--serif); color: var(--red); line-height: 1; }
.big-sub { font-family: var(--sans); color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* values list */
.values { list-style: none; padding: 0; margin: 0; }
.values li {
  font-family: var(--serif); font-size: 1rem; color: var(--ink-soft);
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
}
.values li:last-child { border-bottom: none; }
.values li::before { content: '— '; color: var(--red); }

/* generic helpers */
.row-flex { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.row-flex > * { flex: 1; min-width: 140px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.pw-output {
  font-family: ui-monospace, Menlo, monospace; font-size: 1.4rem; letter-spacing: 0.04em;
  background: var(--bg); border: 1px dashed var(--border-strong); border-radius: 8px;
  padding: 0.75rem 1rem; word-break: break-all; color: var(--ink);
}
.muted-note { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.bm-folder { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 1rem 0 0.3rem; }
.bm-item { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.bm-item a { font-family: var(--serif); }
.inline-form { display: inline; }
