/* Dayne Holdings — shared stylesheet (public marketing site + internal portal)
   Palette, type, and section-marker system are intentionally distinct from
   any other firm site on this server — see README.md to retune colors. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --ink: #142822;
  --ink-soft: #24443a;
  --paper: #f8f4ea;
  --paper-dim: #eee5d0;
  --paper-soft: #fbf8f2;
  --gold: #c9a35d;
  --gold-bright: #d9b877;
  --gold-deep: #7c6229;
  --slate: #55534a;
  --cream-text: #ece6d6;
  --line: rgba(20, 40, 34, 0.16);
  --line-invert: rgba(248, 244, 234, 0.2);
  --good: #2f6f4e;
  --bad: #b23a2e;
  --max-w: 1120px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Courier New', Courier, monospace;
  --shadow: 0 20px 40px -24px rgba(20, 40, 34, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--slate); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-solid {
  background: var(--gold);
  color: var(--ink);
}
.btn-solid:hover { background: var(--gold-bright); transform: translateY(-1px); }

.btn-outline {
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }

.on-paper.btn-outline { border-color: var(--ink); color: var(--ink); }
.on-paper.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-text {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: inherit; text-decoration: underline; padding: 0; font-size: inherit;
}

/* ---------- Admin bar (public pages, admin-only) ---------- */
.admin-bar { background: var(--gold-deep); color: var(--paper); font-size: 0.85rem; }
.admin-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 1.75rem;
}
.admin-bar a { color: var(--paper); font-weight: 600; border-bottom: 1px solid rgba(248, 244, 234, 0.5); }
.admin-bar a:hover { border-color: var(--paper); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-invert);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  flex-shrink: 0;
  white-space: nowrap;
}
.brand .logo-img { height: 48px; width: auto; display: block; }
.brand .portal-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-transform: uppercase;
  border-left: 1px solid var(--line-invert);
  padding-left: 0.7rem;
}

.nav-right { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; row-gap: 0.5rem; justify-content: flex-end; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: nowrap; }
.nav-links a {
  color: var(--cream-text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.nav-meta { display: flex; align-items: center; gap: 1.1rem; padding-left: 1.1rem; border-left: 1px solid var(--line-invert); }
.nav-meta > * { white-space: nowrap; }
.nav-username { color: var(--cream-text); font-size: 0.85rem; opacity: 0.85; }
.nav-meta a, .nav-meta .btn-text { color: var(--cream-text); font-size: 0.85rem; }
.nav-meta a:hover, .nav-meta .btn-text:hover { color: var(--gold-bright); }
.nav-portal-link {
  border: 1px solid var(--gold);
  color: var(--gold-bright) !important;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  font-weight: 600 !important;
  font-size: 0.85rem;
}
.nav-portal-link:hover { background: var(--gold); color: var(--ink) !important; }
.badge-demo {
  background: var(--bad); color: #fff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; padding: 0.2rem 0.5rem; border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line-invert);
    transition: max-height 0.25s ease;
  }
  .nav-right.open { max-height: 520px; overflow-y: auto; }
  .nav-links, .nav-meta {
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .nav-links a, .nav-meta a, .nav-meta .btn-text, .nav-username, .nav-portal-link {
    width: 100%;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid var(--line-invert);
    border-radius: 0;
    box-sizing: border-box;
  }
  .nav-meta { padding-left: 0; border-left: none; border-top: 1px solid var(--line-invert); }
}

/* The portal header carries more nav items than the public site's, so it
   needs to drop to the hamburger menu at a wider viewport — otherwise items
   run out of room and wrap mid-row instead of collapsing cleanly. */
@media (max-width: 1400px) {
  .portal-header .nav-toggle { display: flex; }
  .portal-header .nav-right {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; border-bottom: 1px solid var(--line-invert);
    transition: max-height 0.25s ease;
  }
  .portal-header .nav-right.open { max-height: 640px; overflow-y: auto; }
  .portal-header .nav-links, .portal-header .nav-meta {
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .portal-header .nav-links a, .portal-header .nav-meta a, .portal-header .nav-meta .btn-text,
  .portal-header .nav-username {
    width: 100%; padding: 1rem 1.75rem; border-bottom: 1px solid var(--line-invert);
    border-radius: 0; box-sizing: border-box;
  }
  .portal-header .nav-meta { padding-left: 0; border-left: none; border-top: 1px solid var(--line-invert); }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--cream-text);
  padding: 6rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '$';
  position: absolute;
  font-family: var(--serif);
  font-size: 14rem;
  font-weight: 700;
  color: var(--paper);
  opacity: 0.035;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero::before { top: -2rem; left: -2rem; }
.hero::after { bottom: -4.5rem; right: -2rem; }
.hero .container { position: relative; z-index: 1; }
.hero .container { max-width: 780px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.4rem;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--gold-bright); }
.hero h1 { color: var(--paper); }
.hero .lede {
  font-size: 1.15rem;
  color: var(--cream-text);
  max-width: 60ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.page-banner {
  background: var(--ink);
  color: var(--cream-text);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '$';
  position: absolute;
  top: -3rem; right: -1.5rem;
  font-family: var(--serif);
  font-size: 11rem;
  font-weight: 700;
  color: var(--paper);
  opacity: 0.035;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .container { max-width: 780px; }
.page-banner h1 { color: var(--paper); margin-bottom: 0.5rem; }
.page-banner .lede { color: var(--cream-text); max-width: 60ch; margin: 0; }

/* ---------- Section system ---------- */
.section { padding: 5rem 0; }
.section-dim { background: var(--paper-dim); }
.section-ink { background: var(--ink); color: var(--cream-text); }
.section-ink p { color: var(--cream-text); }
.section-ink h2 { color: var(--paper); }

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}
.section-ink .section-label { color: var(--gold-bright); }
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-ink .section-label::after { background: var(--line-invert); }

.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 1.9rem 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0.9rem; font-size: 0.95rem; }
.card .card-link { font-size: 0.85rem; font-weight: 600; color: var(--gold-deep); }
.card .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-dim);
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.9rem;
}

/* ---------- Fact box ---------- */
.fact-box {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 1.75rem;
}
.section-ink .fact-box {
  background: rgba(248, 244, 234, 0.06);
  border-color: var(--line-invert);
}
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.section-ink .fact-row { border-color: var(--line-invert); }
.fact-row:last-child { border-bottom: none; }
.fact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.section-ink .fact-label { color: var(--cream-text); opacity: 0.75; }
.fact-value { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; text-align: right; }

/* ---------- Two-column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse .split-media { order: -1; }
@media (max-width: 820px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Holding entries (holdings.html) ---------- */
.holding-entry:not(:last-child) {
  margin-bottom: 4.5rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- Feature panel: bordered box of icon + title + description rows
   (not a card grid) — used for the Holdings at-a-glance summary and the
   Docs index. ---------- */
.feature-panel {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 0 1.9rem;
}
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
}
.feature-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.feature-row .icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: var(--gold-deep);
  margin-top: 0.2rem;
}
.feature-row-body h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
.feature-row-body p { margin: 0; font-size: 0.92rem; }
.feature-row-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-deep);
}
@media (max-width: 620px) {
  .feature-row { flex-direction: column; gap: 0.6rem; }
}

/* ---------- Docs ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
}
.docs-nav { position: sticky; top: 90px; }
.docs-nav-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 0.9rem;
}
.docs-nav ul { display: flex; flex-direction: column; gap: 0.15rem; }
.docs-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  border-left: 2px solid transparent;
}
.docs-nav a:hover { color: var(--ink); background: var(--paper-dim); }
.docs-nav a[aria-current="page"] {
  color: var(--gold-deep);
  border-color: var(--gold);
  background: var(--paper-dim);
  font-weight: 600;
}

.docs-body h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.docs-body p, .docs-body li { font-size: 0.96rem; line-height: 1.75; }
.docs-body ul, .docs-body ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.docs-body ul { list-style: disc; }
.docs-body ol { list-style: decimal; }
.docs-body li { margin-bottom: 0.5rem; color: var(--slate); }
.docs-body strong { color: var(--ink); }

.docs-callout {
  background: var(--paper-dim);
  border-left: 3px solid var(--gold);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.docs-callout p { color: var(--ink-soft); }
.docs-callout p:last-child { margin-bottom: 0; }
.docs-callout .callout-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}

.docs-example {
  background: var(--ink);
  color: var(--cream-text);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  border-radius: 2px;
  overflow-x: auto;
  line-height: 1.8;
}
.docs-example .line { white-space: pre; }
.docs-example .debit { color: var(--gold-bright); }
.docs-example .credit { color: #8fb9a8; }

.glossary-term { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.glossary-term:last-child { border-bottom: none; }
.glossary-term .term {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 0 0 0.4rem;
}
.glossary-term .def { margin: 0; font-size: 0.92rem; color: var(--slate); }

/* ---------- Values / leadership ---------- */
.value-item { padding: 0.25rem 0; }
.value-item .num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.5rem;
}
.section-ink .value-item .num { color: var(--gold-bright); }

.leader-card { text-align: left; }
.leader-card .role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
  display: block;
}
.leader-card .name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.leader-card .name.placeholder { color: var(--slate); font-style: italic; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  text-align: left;
}
.contact-card .icon {
  width: 34px;
  height: 34px;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.contact-card .value {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}
.contact-card .value:hover { color: var(--gold-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); margin-bottom: 1.5rem; }
.cta-band .container { max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream-text);
  border-top: 1px solid var(--line-invert);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-invert);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.footer-brand { display: flex; align-items: center; margin-bottom: 1rem; }
.footer-brand .logo-img { height: 42px; width: auto; display: block; }
.footer-grid p { color: var(--cream-text); font-size: 0.92rem; max-width: 34ch; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { font-size: 0.92rem; color: var(--cream-text); }
.footer-links a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--cream-text);
  opacity: 0.7;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.eyebrow-note {
  font-size: 0.85rem;
  color: var(--slate);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin-top: 1.5rem;
}
.section-ink .eyebrow-note { color: var(--cream-text); }

/* ===========================================================================
   Portal (internal, login-required app — dashboard/transactions/reports/etc)
   =========================================================================== */

.portal-page { padding: 3.25rem 0 5rem; }
.portal-head { margin-bottom: 2.25rem; }
.portal-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem;
}
.portal-sub { color: var(--slate); font-size: 0.95rem; max-width: 62ch; margin-top: 0.5rem; }

/* Static content container — like .card but no hover-lift, for data/forms */
.panel {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}
.panel:last-child { margin-bottom: 0; }
.panel h3 { font-size: 1.05rem; margin-top: 0; margin-bottom: 1rem; }

/* Auth screens (login/register/connect/waiting) */
.auth-shell { max-width: 420px; margin: 3.5rem auto 0; padding: 0 1.75rem; }
.auth-shell.wide { max-width: 480px; }
.auth-shell .kicker { color: var(--gold-deep); justify-content: center; }
.auth-shell .kicker::before { display: none; }
.auth-shell h1 { text-align: center; margin-bottom: 0.5rem; }
.auth-shell .lede { color: var(--slate); text-align: center; max-width: none; margin-bottom: 2rem; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.75rem 0; }
.auth-divider .rule { flex: 1; height: 1px; background: var(--line); }
.auth-divider span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.auth-fine { font-size: 0.82rem; color: var(--slate); text-align: center; margin-top: 1.25rem; }

/* Flash messages */
.flash { padding: 0.85rem 1.1rem; font-size: 0.9rem; margin-bottom: 1.25rem; border-radius: 2px; border: 1px solid; }
.flash-success { background: #eaf3ee; color: var(--good); border-color: #bfe0cd; }
.flash-error { background: #fbeceb; color: var(--bad); border-color: #f1c6c2; }

/* Stat tiles */
.stat-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.5rem; }
.stat-value { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); }
.stat-value.good { color: var(--good); }
.stat-value.bad { color: var(--bad); }
.stat-note { font-size: 0.8rem; color: var(--slate); margin-top: 0.4rem; }

/* Tags/pills */
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem; border-radius: 20px; background: var(--paper-dim); color: var(--gold-deep);
}
.tag.muted { background: #ececec; color: #7a7a7a; }

/* Tables */
.panel table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.panel th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--slate); padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line);
}
.panel td { padding: 0.7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.panel tr:last-child td { border-bottom: none; }
.panel td.amount { font-family: var(--mono); text-align: right; white-space: nowrap; }
.panel td.amount.in { color: var(--good); }
.panel td.amount.out { color: var(--bad); }
.panel .total-row td { font-weight: 700; border-top: 2px solid var(--gold); border-bottom: none; }

/* Forms */
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 0.4rem;
}
.form-row input, .form-row select, .form-row textarea { width: 100%; }
.form-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }

input[type=text], input[type=password], input[type=number], input[type=email],
select, textarea {
  font-family: var(--sans); border: 1px solid var(--line); border-radius: 2px;
  padding: 0.6rem 0.7rem; font-size: 0.9rem; background: #fff; color: var(--ink);
}
textarea { resize: vertical; line-height: 1.5; }

/* Notice cards (message board) */
.notice-card { background: var(--paper-soft); border: 1px solid var(--line); padding: 1.1rem 1.25rem; margin-bottom: 0.9rem; }
.notice-card:last-child { margin-bottom: 0; }
.notice-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.6rem; }
.notice-date { font-family: var(--mono); font-size: 0.7rem; color: var(--gold-deep); text-transform: uppercase; letter-spacing: 0.05em; }
.notice-pill { background: var(--ink); color: #fff; font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 2px; font-weight: 700; }
.notice-author { font-size: 0.78rem; color: var(--slate); }
.notice-body { font-size: 0.92rem; line-height: 1.65; color: var(--ink); white-space: pre-wrap; margin: 0; }

.empty-state { color: var(--slate); font-size: 0.9rem; padding: 1.5rem 0; text-align: center; }
