:root {
  --bg: #f4eadc;
  --bg-2: #eadcc8;
  --card: #fffaf1;
  --line: #e0cfb6;
  --text: #3d2418;
  --muted: #7a5c48;
  --accent: #c44a32;
  --accent-2: #d45d42;
  --ok: #3f6b46;
  --warn: #b45309;
  --ink: #2a1810;
  --shadow: 0 22px 50px rgba(61,36,24,.14);
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(244,234,220,.86);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; gap: 22px; align-items: center; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fffaf1; text-decoration: none; border: 0; cursor: pointer;
  padding: 11px 16px; border-radius: 12px; font-weight: 650; font-size: 14px;
  font-family: Georgia, serif;
}
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.hero {
  position: relative; min-height: 86vh; display: grid; align-items: end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero-bg:after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,234,220,.15) 0%, rgba(244,234,220,.4) 45%, rgba(244,234,220,.96) 100%);
}
.hero-copy { position: relative; padding: 0 0 72px; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; margin: 0 0 12px; font-family: ui-sans-serif, system-ui, sans-serif; }
h1 { font-size: clamp(42px, 7vw, 86px); line-height: .95; letter-spacing: -.04em; margin: 0 0 18px; color: var(--ink); }
.lede { max-width: 640px; color: #5a3c2c; font-size: 18px; margin: 0 0 28px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.section { padding: 80px 0; }
h2 { font-size: 34px; letter-spacing: -.03em; margin: 0 0 14px; color: var(--ink); }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.grid { display: grid; gap: 18px; }
.grid.3 { grid-template-columns: repeat(3, 1fr); }
.grid.2 { grid-template-columns: 1.1fr .9fr; }
.card {
  background: linear-gradient(180deg, #fffaf1, #f7eedf);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.legal { padding: 48px 0 90px; }
.legal h1 { font-size: 42px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin-top: 28px; }
.legal p, .legal li { color: #5c4030; }
.notice {
  background: #f8e8c8; border: 1px solid #e0c48a; color: #7a4a12;
  padding: 14px 16px; border-radius: 12px; margin: 18px 0 28px;
}
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; margin-right: 14px; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 12px; color: var(--muted); margin-right: 8px; font-family: ui-sans-serif, system-ui, sans-serif; }

.hub-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; background: var(--bg); }
.side { background: #3d2418; border-right: 1px solid #2a1810; padding: 18px 12px; color: #f4eadc; }
.side .brand { color: #f4eadc; }
.side a, .side button.navbtn {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: #d8c4ae;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit; text-decoration: none;
}
.side button.navbtn.active, .side a.active { background: #5a3626; color: #fffaf1; }
.main { padding: 22px 26px 60px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.badge { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-family: ui-sans-serif, system-ui, sans-serif; }
.badge.on { background: #e4f0e2; color: var(--ok); }
.badge.off { background: #f8e0d8; color: #b42318; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(900px 500px at 20% 0%, #f8e8c8, transparent 60%), var(--bg); }
.login-card { width: min(420px, 100%); }
input, select {
  width: 100%; background: #fffaf1; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 11px 12px; font: inherit; margin: 0 0 12px;
}
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.hidden { display: none !important; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi .card b { font-size: 22px; display: block; margin-top: 4px; color: var(--ink); }
@media (max-width: 880px) {
  .grid.3, .grid.2, .kpi, .hub-shell { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { min-height: 72vh; }
}
