:root { --ink: #1f2430; --muted: #646b7a; --paper: #faf8f4; --line: #e4e0d8; --accent: #2f6f5e; --accent-ink: #fff; --error: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--accent); }
.top { display: flex; align-items: center; gap: 24px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--accent); letter-spacing: -2px; }
.top nav { flex: 1; }
.top nav a { color: var(--ink); text-decoration: none; }
.button { font: inherit; border-radius: 10px; padding: 9px 18px; cursor: pointer; border: 1px solid var(--accent); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.ghost { background: #fff; color: var(--accent); }
.button.wide { display: block; width: 100%; margin: 12px 0; }
.button:disabled { opacity: .6; cursor: default; }
.account { position: relative; }
.account-trigger { display: flex; align-items: center; gap: 8px; font: inherit; background: none; border: 0; cursor: pointer; color: var(--ink); }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.menu { position: absolute; right: 0; top: 42px; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 10; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; font: inherit; color: var(--ink); background: none; border: 0; border-radius: 8px; cursor: pointer; text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--paper); }
.menu-note { padding: 8px 10px; color: var(--muted); font-size: 14px; }
main { max-width: 960px; margin: 0 auto; padding: 32px 28px 64px; }
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; }
.hero p, .muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.card span { color: var(--muted); font-size: 14px; }
.auth { max-width: 380px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.auth h1 { font-size: 24px; margin-top: 0; }
.auth label { display: block; margin: 12px 0; font-size: 14px; font-weight: 600; }
.auth input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; }
.error { color: var(--error); min-height: 1.5em; margin: 8px 0 0; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gate-overlay { position: fixed; inset: 0; background: rgba(20, 24, 33, .55); z-index: 100; }
.gate-panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(420px, 92vw); background: #fff; border-radius: 18px; padding: 32px 28px 24px; text-align: center; z-index: 101; outline: none; }
.gate-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.gate-close:hover { background: var(--paper); }
.gate-art { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.gate-pitch { font-size: 22px; font-weight: 700; line-height: 1.25; }
.gate-sub { color: var(--muted); margin: 8px 0 12px; }
.gate-foot { color: var(--muted); font-size: 14px; }
.gate-signin { color: var(--accent); font-weight: 600; cursor: pointer; }
