:root {
  --ink: #102a35;
  --muted: #5d6f75;
  --paper: #f8f5ee;
  --card: #fffdf8;
  --line: #dce2dc;
  --blue: #126b78;
  --blue-dark: #0d4d58;
  --coral: #e86e55;
  --yellow: #f6c85f;
  --mint: #cee4d7;
  --shadow: 0 12px 30px rgba(20, 47, 52, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  min-height: 72px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); background: rgba(255,253,248,.92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; border-radius: 11px 11px 11px 3px; background: var(--coral); }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a { padding: 9px 11px; border-radius: 10px; font-weight: 650; font-size: .91rem; color: var(--muted); }
.main-nav a:hover, .main-nav a.active { color: var(--blue-dark); background: #e6f0ed; }
.account-link { background: var(--blue)!important; color: white!important; }
.menu-button { display: none; border: 0; background: transparent; color: var(--ink); font-size: 1.45rem; }
main { width: min(1160px, 90vw); margin: 0 auto; flex: 1; padding: 48px 0 70px; }
.site-footer { border-top: 1px solid var(--line); padding: 25px 5vw; color: var(--muted); display: flex; justify-content: space-between; font-size: .85rem; }
.hero { min-height: 440px; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--ink); color: white; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); }
.hero-copy { padding: clamp(32px, 6vw, 78px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow { text-transform: uppercase; color: var(--yellow); font-size: .76rem; letter-spacing: .13em; font-weight: 800; margin: 0 0 15px; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .98; margin: 0; letter-spacing: -.06em; max-width: 600px; }
.hero p { max-width: 510px; color: #d8e5e2; font-size: 1.08rem; line-height: 1.65; margin: 24px 0 28px; }
.hero-art { min-height: 300px; background: url("/api/asset/fa9520ef4716a6bacb69c92b89612e97?slot=clubhouse-illustration&j=joisk-asset&w=1600") center/cover no-repeat; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { border: 1px solid transparent; padding: 12px 17px; border-radius: 12px; font-weight: 750; transition: transform .15s, background .15s; display: inline-flex; justify-content: center; align-items: center; gap: 7px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: white; }
.btn-secondary { background: white; color: var(--ink); }
.btn-outline { color: var(--blue-dark); border-color: var(--blue); background: transparent; }
.btn-danger { background: #fff0ed; color: #ab3e2a; border-color: #f1c5bb; }
.btn:disabled { opacity: .56; cursor: wait; transform: none; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 25px 0 45px; }
.stat { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.stat strong { display: block; font-size: 1.7rem; color: var(--blue-dark); }
.stat span { color: var(--muted); font-size: .87rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 45px 0 20px; }
.section-heading h2, .page-title h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.05em; margin: 0; }
.section-heading p, .page-title p { color: var(--muted); line-height: 1.55; margin: 7px 0 0; }
.notice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.notice-card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 15px rgba(25,50,50,.035); }
.notice-card { padding: 22px; display: flex; flex-direction: column; min-height: 205px; }
.notice-tag { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .69rem; }
.notice-card h3 { font-size: 1.25rem; margin: 10px 0 9px; letter-spacing: -.03em; }
.notice-card p { color: var(--muted); line-height: 1.5; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-meta { margin-top: auto; padding-top: 18px; font-size: .78rem; color: #7c8d8d; }
.page-title { margin-bottom: 29px; }
.panel { padding: clamp(20px, 4vw, 33px); }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); gap: 25px; align-items: start; }
.form-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
label { font-weight: 720; font-size: .9rem; }
input, textarea { width: 100%; border: 1px solid #cbd7d2; border-radius: 10px; padding: 12px 13px; color: var(--ink); background: white; outline: none; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,107,120,.13); }
textarea { resize: vertical; min-height: 135px; line-height: 1.5; }
.help { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.message { padding: 12px 14px; border-radius: 10px; line-height: 1.4; font-size: .9rem; }
.message.success { background: #e4f3e9; color: #215f3b; }
.message.error { background: #fff0ed; color: #9d3525; }
.message.info { background: #e6f0f1; color: #18515a; }
.empty { border: 1px dashed #b8c8c2; padding: 32px 20px; border-radius: 15px; text-align: center; color: var(--muted); background: #fcfbf7; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tab { border: 0; padding: 10px 15px; border-radius: 10px; color: var(--muted); background: #edf1ed; font-weight: 750; }
.tab.active { background: var(--blue); color: white; }
.profile-card { border-left: 5px solid var(--yellow); }
.profile-name { margin: 3px 0 8px; font-size: 1.55rem; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 99px; background: #e4f0ea; color: #1d6549; font-size: .76rem; font-weight: 800; text-transform: capitalize; }
.list { display: grid; gap: 11px; }
.member-row, .admin-row { padding: 16px; border: 1px solid var(--line); border-radius: 13px; display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--card); }
.member-row h3, .admin-row h3 { margin: 0 0 4px; font-size: 1rem; }
.member-row p, .admin-row p { margin: 0; color: var(--muted); font-size: .84rem; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.admin-actions .btn { padding: 8px 10px; font-size: .8rem; }
.admin-note { padding: 18px; margin-bottom: 22px; border-radius: 14px; background: #fff7dd; color: #674b00; line-height: 1.5; }
.kicker { color: var(--coral); text-transform: uppercase; letter-spacing: .11em; font-weight: 850; font-size: .74rem; }
.loading { padding: 28px; color: var(--muted); }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 99; display: grid; gap: 10px; max-width: min(390px, calc(100vw - 36px)); }
.toast { background: var(--ink); color: white; padding: 14px 16px; border-radius: 12px; box-shadow: var(--shadow); animation: rise .25s ease-out; }
.toast.error { background: #a33e2b; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 780px) {
  .topbar { padding: 0 5vw; min-height: 64px; }
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; right: 4vw; left: 4vw; padding: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 15px; background: var(--card); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  main { width: min(92vw, 1160px); padding-top: 27px; }
  .hero, .two-column { grid-template-columns: 1fr; }
  .hero-art { min-height: 230px; order: -1; }
  .stats, .notice-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 7px; }
  .member-row, .admin-row { align-items: start; flex-direction: column; }
  .admin-actions { justify-content: start; }
}