:root {
  --bg: #05080d;
  --bg-soft: #080d14;
  --panel: #0b121c;
  --panel-2: #0e1723;
  --panel-3: #101c2a;
  --line: #1b2b3d;
  --line-strong: #27435f;
  --text: #f4f8fc;
  --muted: #8fa1b4;
  --blue: #1976c9;
  --blue-bright: #2b96ee;
  --blue-deep: #0e4f8a;
  --silver: #b8c4d2;
  --danger: #e45461;
  --success: #35b97f;
  --warning: #e5b24c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 60px rgba(0,0,0,.25);
  --content: 1240px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: radial-gradient(circle at 70% 0%, rgba(25,118,201,.09), transparent 32rem), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
code { font-family: "SFMono-Regular", Consolas, monospace; color: #a9d8ff; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.topbar { position: sticky; z-index: 50; top: 0; min-height: 72px; padding: 10px max(20px, calc((100vw - var(--content))/2)); display: flex; align-items: center; justify-content: space-between; gap: 22px; background: rgba(5,8,13,.92); border-bottom: 1px solid rgba(39,67,95,.5); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.brand img { width: 45px; height: 45px; object-fit: contain; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: .98rem; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: .68rem; margin-top: 5px; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; color: var(--muted); font-size: .9rem; }
.main-nav > a:not(.button):hover { color: var(--text); }
.nav-separator { width: 1px; height: 24px; background: var(--line); }
.mobile-menu-btn { display: none; background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 42px; height: 42px; }
.inline-form { display: inline-flex; margin: 0; }
.notification-link { position: relative; }
.notification-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; background: var(--blue); color: white; font-size: .68rem; border-radius: 99px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: linear-gradient(180deg, #278add, #1767ad); border: 1px solid #3999e7; color: #fff; border-radius: 9px; font-weight: 750; letter-spacing: .01em; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.button:hover { background: linear-gradient(180deg, #3198e8, #1a70bb); }
.button.ghost { background: #0b131e; color: #cfe9ff; border-color: var(--line-strong); box-shadow: none; }
.button.small { min-height: 36px; padding: 0 13px; font-size: .82rem; }
.full-button { width: 100%; margin-top: 16px; }
.text-button { background: transparent; color: #a8c8e6; border: 0; padding: 7px 8px; cursor: pointer; }
.text-button.danger { color: #ff8791; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer { max-width: var(--content); width: calc(100% - 40px); margin: 50px auto 0; padding: 26px 0 40px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer strong { color: var(--text); }
.footer p { margin: 4px 0 0; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.section, .team-page, .page-hero { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 76px 0; }
.page-hero { padding: 76px 0 20px; }
.page-hero.compact { max-width: 900px; margin-left: max(20px, calc((100vw - var(--content))/2)); }
.page-hero h1, .page-title-row h1 { font-size: clamp(2rem, 4vw, 4.1rem); line-height: .98; letter-spacing: -.04em; margin: 8px 0 16px; }
.page-hero p, .page-title-row p { color: var(--muted); max-width: 720px; margin: 0; font-size: 1.05rem; }
.section-kicker, .eyebrow, .admin-label, .mechanical-mark { color: #61b3f4; font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.hero { width: min(var(--content), calc(100% - 40px)); min-height: calc(100svh - 72px); margin: 0 auto; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(30px, 6vw, 90px); padding: 70px 0; position: relative; overflow: hidden; }
.hero-grid-pattern { position: absolute; inset: 0; pointer-events: none; opacity: .12; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, black, transparent 74%); }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; background: rgba(10,19,30,.7); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #42b4ff; box-shadow: 0 0 14px rgba(66,180,255,.8); }
.hero h1 { font-size: clamp(3.15rem, 7vw, 6.7rem); line-height: .85; letter-spacing: -.065em; max-width: 780px; margin: 25px 0; }
.hero p { max-width: 680px; color: #aab9c8; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.language-switch { display: inline-flex; gap: 4px; margin-top: 34px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; }
.language-switch a { padding: 6px 9px; color: var(--muted); border-radius: 5px; font-weight: 800; font-size: .75rem; }
.language-switch a.active { background: var(--panel-3); color: white; }
.hero-visual { display: grid; place-items: center; }
.logo-stage { width: min(500px, 88vw); aspect-ratio: 1; display: grid; place-items: center; position: relative; background: radial-gradient(circle, rgba(25,118,201,.16), rgba(5,8,13,.15) 58%, transparent 70%); }
.hex-frame { clip-path: polygon(25% 4%, 75% 4%, 98% 50%, 75% 96%, 25% 96%, 2% 50%); border: 0; }
.logo-stage::before { content: ""; position: absolute; inset: 8%; clip-path: polygon(25% 4%, 75% 4%, 98% 50%, 75% 96%, 25% 96%, 2% 50%); border: 1px solid transparent; background: linear-gradient(135deg, #244969, #0d1b29 40%, #1976c9 85%) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }
.hero-logo { width: 63%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.mechanical-mark { position: absolute; bottom: 12%; color: #65829d; }
.split-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px,6vw,100px); align-items: start; }
.section h2 { font-size: clamp(1.8rem, 3vw, 3.3rem); line-height: 1; letter-spacing: -.035em; margin: 10px 0 18px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 580px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.feature-card { min-height: 190px; padding: 20px; background: linear-gradient(155deg, rgba(16,28,42,.95), rgba(8,14,22,.95)); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-card h3 { margin: 36px 0 5px; }
.feature-card p { color: var(--muted); margin: 0; font-size: .9rem; }
.feature-index { color: #4ea9ef; font-family: monospace; font-size: .72rem; border: 1px solid #22405a; padding: 4px 7px; border-radius: 6px; }
.school-strip { display: grid; grid-template-columns: 220px 1fr; gap: 45px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.school-logo-wrap { min-height: 220px; display: grid; place-items: center; background: radial-gradient(circle, rgba(27,105,168,.14), transparent 68%); }
.school-logo-wrap img { width: 175px; max-height: 205px; object-fit: contain; }
.school-strip p { color: var(--muted); max-width: 700px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 26px; }
.section-heading p { max-width: 430px; color: var(--muted); }
.public-member-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.public-member-card { --rank-color: var(--blue); display: flex; align-items: center; gap: 13px; min-width: 0; padding: 16px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--rank-color) 48%, var(--line)); border-left: 3px solid var(--rank-color); border-radius: var(--radius-sm); }
.public-member-card h3 { margin: 0; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.public-member-card span { color: var(--muted); font-size: .75rem; }
.avatar { flex: none; display: inline-grid; place-items: center; object-fit: cover; border-radius: 50%; border: 1px solid #284761; background: var(--panel-2); }
.avatar-sm { width: 34px; height: 34px; font-size: .68rem; }
.avatar-md { width: 46px; height: 46px; }
.avatar-lg { width: 62px; height: 62px; font-size: .9rem; }
.avatar-xl { width: 108px; height: 108px; font-size: 1.4rem; }
.avatar-fallback { background: var(--avatar-bg); color: #e9f3fa; font-weight: 850; }
.gallery-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; }
.gallery-grid figure, .gallery-placeholder { min-height: 280px; margin: 0; position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-grid figure:first-child { grid-row: span 2; min-height: 570px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-grid figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(4,8,13,.8); padding: 6px 9px; border-radius: 6px; font-size: .78rem; }
.gallery-placeholder { display: grid; place-content: center; text-align: center; color: var(--muted); }
.gallery-placeholder span { color: #3c8cc9; font-size: 2rem; font-family: monospace; }
.gallery-placeholder.technical { background: linear-gradient(135deg, #09121c, #0b1d2d); }
.sponsor-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.sponsor-card { min-height: 125px; display: grid; place-items: center; gap: 8px; padding: 18px; background: #091019; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.sponsor-card img { max-height: 64px; max-width: 160px; object-fit: contain; }
.cta-panel { padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(135deg, #0e1d2c, #071019 65%); border: 1px solid #1e4261; border-radius: 18px; }
.cta-panel p { color: var(--muted); margin: 0; }
.empty-state { padding: 28px; border: 1px dashed #29425a; background: rgba(9,16,25,.45); border-radius: 10px; color: var(--muted); text-align: center; }
.timeline { display: grid; gap: 0; max-width: 800px; }
.timeline article { display: grid; grid-template-columns: 120px 1fr; gap: 30px; border-left: 1px solid #29506f; padding: 0 0 55px 30px; position: relative; }
.timeline article::before { content:""; position:absolute; width:9px; height:9px; left:-5px; top:8px; background:var(--blue-bright); border-radius:50%; }
.timeline article > span { color: #64b2ef; font-family: monospace; }
.timeline h3 { margin: 0 0 7px; font-size: 1.4rem; }
.timeline p { margin: 0; color: var(--muted); }
.timeline .muted { opacity: .5; }
.info-panel, .panel { background: linear-gradient(160deg, rgba(15,24,36,.96), rgba(8,14,22,.98)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.large-link { font-size: clamp(1.2rem, 3vw, 2rem); color: #79c3ff; word-break: break-word; }
.social-list { display: grid; gap: 8px; }
.social-list a, .social-list span { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.prose { max-width: 800px; margin-left: max(20px, calc((100vw - var(--content))/2)); }
.prose p { color: var(--muted); }
.narrow { max-width: 760px; }
.honeypot { position: absolute !important; left: -10000px !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label, label { display: grid; gap: 6px; }
.form-grid label > span, label > span, fieldset legend { color: #a7b7c7; font-size: .78rem; font-weight: 700; }
.full { grid-column: 1 / -1; }
input, textarea, select { width: 100%; min-height: 42px; border: 1px solid #26394d; border-radius: 8px; background: #080f17; color: var(--text); padding: 9px 11px; outline: none; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #2c83c9; box-shadow: 0 0 0 3px rgba(44,131,201,.12); }
input[type="checkbox"] { width: 16px; min-height: 16px; accent-color: var(--blue-bright); }
input[type="color"] { width: 45px; min-height: 38px; padding: 3px; }
input[type="file"] { padding: 7px; }
fieldset { border: 1px solid var(--line); border-radius: 9px; padding: 13px; margin: 0; }
fieldset legend { padding: 0 7px; }
.form-actions { display: flex; justify-content: flex-end; }
.notice { padding: 14px 16px; margin-bottom: 14px; border-radius: 9px; border: 1px solid var(--line); color: #c8d8e7; background: #0a141f; }
.notice.warning { border-color: #6f5524; background: #1b160a; }
.notice.info { border-color: #24577e; background: #07182a; }
.flash-stack { position: fixed; z-index: 100; top: 82px; right: 16px; width: min(410px, calc(100% - 32px)); display: grid; gap: 8px; }
.flash { padding: 12px 14px; border: 1px solid var(--line-strong); background: #0b1722; box-shadow: var(--shadow); border-radius: 9px; }
.flash.success { border-color: #276648; }
.flash.error { border-color: #74353b; }
.flash.info { border-color: #2a5578; }
.auth-shell { width: min(1120px, calc(100% - 40px)); min-height: calc(100vh - 72px); margin: 0 auto; padding: 70px 0; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.auth-panel { max-width: 490px; }
.auth-panel h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .92; letter-spacing: -.05em; margin: 12px 0 18px; }
.auth-panel > p { color: var(--muted); margin-bottom: 26px; }
.google-button { width: 100%; gap: 10px; }
.google-button span { width: 24px; height: 24px; display: grid; place-items: center; background: white; color: #1b1b1b; border-radius: 50%; font-weight: 900; }
.demo-login-box { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); }
.demo-login-box > span { font-family: monospace; font-size: .7rem; letter-spacing: .1em; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0; }
.auth-visual { min-height: 520px; display: grid; place-items: center; position: relative; background: radial-gradient(circle, rgba(23,118,201,.16), transparent 55%); }
.auth-visual img { width: 60%; }
.auth-visual span { position: absolute; bottom: 13%; font: .72rem monospace; letter-spacing: .14em; color: #4d7392; }
.team-page { padding: 28px 0 70px; }
.team-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 38px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.team-nav a { padding: 11px 14px; color: var(--muted); font-size: .86rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.team-nav a.active, .team-nav a:hover { color: white; border-bottom-color: var(--blue-bright); }
.dashboard-hero, .profile-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px; border: 1px solid #1f3d58; border-radius: 17px; background: linear-gradient(125deg, #0c1b29, #081018 70%); }
.member-identity, .profile-header { display: flex; align-items: center; gap: 20px; }
.member-identity h1, .profile-header h1 { margin: 5px 0 9px; font-size: clamp(1.9rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.rank-tag, .dept-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 6px; font-size: .7rem; font-weight: 750; }
.rank-tag { --rank-color: #3b82f6; color: color-mix(in srgb, var(--rank-color) 75%, white); background: color-mix(in srgb, var(--rank-color) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rank-color) 46%, transparent); }
.dept-tag { color: #a9c8e2; background: #0c1823; border: 1px solid #21394e; }
.score-module { min-width: 155px; display: grid; text-align: right; }
.score-module span { color: var(--muted); font: .68rem monospace; letter-spacing: .1em; }
.score-module strong { font-size: 3.2rem; line-height: 1; color: #7ec7ff; }
.score-module small { color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 12px 0; }
.stat-card { min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; background: #09111a; border: 1px solid var(--line); border-radius: 10px; }
.stat-card span { color: var(--muted); font-size: .78rem; }
.stat-card strong { font-size: 2rem; letter-spacing: -.04em; }
.small-stat { font-size: 1.1rem !important; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-heading h2 { margin: 0; font-size: 1.05rem; }
.panel-heading a, .panel-heading > span { color: #76baf0; font-size: .78rem; }
.list-stack { display: grid; }
.list-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row small { display: block; color: var(--muted); margin-top: 2px; }
.list-row > span { color: #85c9ff; font-weight: 800; }
.list-row.clickable { margin: 0 -8px; padding: 0 8px; border-radius: 7px; }
.list-row.clickable:hover { background: #0b1722; }
.mini-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 0 0 24px; }
.page-title-row h1 { font-size: clamp(2.3rem,4vw,4rem); margin-bottom: 8px; }
.filter-bar { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 8px; padding: 10px; margin-bottom: 15px; background: #080f17; border: 1px solid var(--line); border-radius: 10px; }
.member-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.member-card { --rank-color: var(--blue); min-width: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 17px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--rank-color) 28%, var(--line)); border-left: 3px solid var(--rank-color); border-radius: 11px; }
.member-card:hover { background: #0d1824; }
.member-card h3 { margin: 0 0 6px; }
.member-card p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.member-card-score { display: grid; text-align: right; }
.member-card-score strong { font-size: 1.6rem; }
.member-card-score span { color: var(--muted); font-size: .7rem; }
.profile-header { --rank-color: var(--blue); border-left: 4px solid var(--rank-color); }
.profile-main { flex: 1; }
.profile-main p { max-width: 620px; color: var(--muted); }
.detail-list { display: grid; }
.detail-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-list span { color: var(--muted); }
.profile-edit-preview { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.profile-edit-preview div { display: grid; }
.profile-edit-preview span { color: var(--muted); }
.ranking-list { max-width: 850px; display: grid; gap: 5px; }
.ranking-row { display: grid; grid-template-columns: 54px 36px 1fr auto; align-items: center; gap: 10px; min-height: 65px; padding: 9px 13px; background: #09111a; border: 1px solid var(--line); border-radius: 8px; }
.ranking-row.is-you { border-color: #2e76aa; background: #0a1824; }
.ranking-number { color: #6e879c; font-family: monospace; }
.ranking-person { display: grid; }
.ranking-person span { color: var(--muted); font-size: .75rem; }
.ranking-score { color: #84cbff; font-size: 1.2rem; }
.notification-list { max-width: 850px; display: grid; gap: 7px; }
.notification-item { display: flex; gap: 13px; padding: 16px; background: #09121b; border: 1px solid var(--line); border-radius: 9px; }
.notification-item p { margin: 3px 0; color: var(--muted); }
.notification-item small { color: #627991; }
.notification-icon { color: var(--blue-bright); padding-top: 2px; }
.event-code-box { display: flex; align-items: end; gap: 8px; padding: 13px; margin-bottom: 17px; background: #0a1621; border: 1px solid #234565; border-radius: 10px; }
.event-code-box label { flex: 1; }
.event-code-box input { font-family: monospace; letter-spacing: .18em; text-transform: uppercase; }
.event-grid, .event-admin-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.event-card, .event-admin-card { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; }
.event-card.closed { opacity: .72; }
.event-card-top { display: flex; justify-content: space-between; gap: 8px; }
.event-card h2, .event-admin-card h2 { margin: 15px 0 7px; }
.event-card p, .event-admin-card p { color: var(--muted); min-height: 48px; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 7px; border: 1px solid #365069; border-radius: 99px; color: #a9bdd1; font: .65rem monospace; text-transform: uppercase; }
.status-pill.open, .status-pill.active, .status-pill.fixed { border-color: #2b6c50; color: #71d9a6; background: #0a1e16; }
.status-pill.closed, .status-pill.archived { color: #9da7b2; }
.status-pill.attended { border-color: #285982; color: #7bc7ff; }
.status-pill.suspended, .status-pill.open:not(.event-card .status-pill.open) { border-color: #754148; color: #ff9aa3; }
.status-pill.mentor { border-color: #5d4d80; color: #c8adff; }
.status-pill.alumni { border-color: #536373; color: #b8c4d2; }
.event-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 15px; }
.event-meta span { display: grid; color: var(--muted); font-size: .72rem; }
.event-meta strong { color: var(--text); margin-top: 3px; font-size: .86rem; }
.admin-shell { width: min(1440px, calc(100% - 30px)); margin: 0 auto; display: grid; grid-template-columns: 205px 1fr; gap: 26px; padding: 25px 0 70px; }
.admin-sidebar { position: sticky; top: 90px; height: fit-content; display: grid; gap: 2px; padding: 10px; background: #080e15; border: 1px solid var(--line); border-radius: 11px; }
.admin-label { padding: 8px 9px 12px; color: #5c89aa; }
.admin-sidebar a { padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: .82rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #0f1d2a; color: #d7edff; }
.admin-separator { color: #506274; font-size: .63rem; letter-spacing: .11em; padding: 14px 10px 5px; }
.admin-main { min-width: 0; }
.admin-stats { grid-template-columns: repeat(4,1fr); }
.admin-stats .stat-card { cursor: pointer; }
.admin-filters { grid-template-columns: 1.5fr repeat(4, .8fr) auto; }
.bulk-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 8px auto; }
.bulk-toolbar span { margin-right: auto; color: var(--muted); font-size: .8rem; }
.bulk-toolbar input { width: 130px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #080f17; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 850px; font-size: .8rem; }
.admin-table th { text-align: left; color: #70869a; font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; background: #09121b; }
.admin-table th, .admin-table td { padding: 10px 11px; border-bottom: 1px solid #172534; }
.admin-table tr:last-child td { border-bottom: 0; }
.gear-button { width: 34px; height: 34px; display: grid; place-items: center; color: #93b7d5; background: #0d1a25; border: 1px solid #263c50; border-radius: 7px; cursor: pointer; }
.compact-tags .dept-tag { padding: 2px 5px; font-size: .62rem; }
.drawer { width: min(610px, 100%); max-width: none; height: 100%; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: transparent; color: var(--text); }
.drawer::backdrop { background: rgba(0,0,0,.62); }
.drawer-panel { height: 100%; display: flex; flex-direction: column; background: #071019; border-left: 1px solid #274057; box-shadow: -25px 0 80px rgba(0,0,0,.45); }
.drawer-header { display: flex; justify-content: space-between; gap: 18px; align-items: start; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 4px 0 0; }
.drawer-header small { color: var(--muted); }
.close-drawer { width: 38px; height: 38px; border-radius: 8px; background: #0e1a25; border: 1px solid var(--line); color: white; font-size: 1.3rem; cursor: pointer; }
.drawer-body { overflow-y: auto; padding: 20px; }
.drawer-actions { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: #071019; }
.drawer.is-loading .drawer-body { opacity: .45; pointer-events: none; }
.save-state { color: var(--muted); font-size: .8rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.check-card { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #09121a; }
.check-card span { font-size: .78rem !important; }
.card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.request-card { display: grid; grid-template-columns: 120px 1fr; background: #09121b; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.request-card > img, .request-avatar { width: 120px; height: 100%; min-height: 250px; object-fit: cover; background: #102233; display: grid; place-items: center; font-size: 2rem; }
.request-body { padding: 18px; }
.request-body h2 { margin: 0; }
.request-body > p { color: var(--muted); margin-top: 3px; }
.inline-create { display: grid; grid-template-columns: 1fr auto 1.5fr 90px auto; gap: 7px; padding: 10px; background: #09111a; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; }
.settings-list { display: grid; gap: 5px; }
.settings-row { display: grid; grid-template-columns: auto minmax(160px,1fr) auto minmax(160px,1.5fr) 80px auto auto; align-items: center; gap: 8px; padding: 10px; background: #09111a; border: 1px solid var(--line); border-radius: 8px; }
.settings-row > div { display: grid; }
.settings-row small { color: var(--muted); }
.color-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 9px color-mix(in srgb, var(--dot) 55%, transparent); }
.small-input { width: 78px !important; }
.event-admin-card .panel-heading { align-items: start; }
.event-code { font: 1rem monospace; letter-spacing: .15em; color: #80caff; }
.export-fields { grid-template-columns: repeat(3,1fr); }
.content-editor { display: grid; gap: 10px; }
.sticky-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; pointer-events: none; }
.sticky-save .button { pointer-events: auto; box-shadow: 0 10px 35px rgba(0,0,0,.5); }
.gallery-admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 12px; }
.gallery-admin-grid article { overflow: hidden; background: #09111a; border: 1px solid var(--line); border-radius: 9px; }
.gallery-admin-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-admin-grid article > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px; }
.bug-list { display: grid; gap: 10px; }
.bug-card h2 { margin: 6px 0 0; }
.pre-wrap { white-space: pre-wrap; color: #bcc9d5; }
.screenshot-link { display: inline-block; margin: 12px 0; color: #75c3ff; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 420px; }
  .public-member-grid { grid-template-columns: repeat(2,1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; overflow-x: auto; border-radius: 8px; }
  .admin-sidebar a, .admin-separator, .admin-label { white-space: nowrap; }
  .admin-separator { padding: 8px 5px; }
  .admin-filters { grid-template-columns: repeat(3,1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .settings-row { grid-template-columns: auto 1fr auto 1fr; }
  .settings-row > *:nth-last-child(-n+3) { justify-self: start; }
}
@media (max-width: 820px) {
  .topbar { min-height: 64px; }
  .mobile-menu-btn { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 12px; right: 12px; padding: 12px; flex-direction: column; align-items: stretch; gap: 2px; background: #071019; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a, .main-nav form .button { width: 100%; justify-content: flex-start; padding: 10px 12px; }
  .nav-separator { width: 100%; height: 1px; margin: 4px 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 58px 0 30px; }
  .hero-visual { order: -1; }
  .logo-stage { width: min(380px, 90vw); }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 6rem); }
  .split-section, .school-strip, .auth-shell, .contact-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .school-strip { padding-top: 45px; padding-bottom: 45px; text-align: center; }
  .school-logo-wrap { min-height: 160px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid figure:first-child { grid-column: span 2; grid-row: auto; min-height: 420px; }
  .sponsor-grid { grid-template-columns: repeat(2,1fr); }
  .auth-shell { gap: 30px; }
  .auth-visual { min-height: 350px; order: -1; }
  .member-grid { grid-template-columns: 1fr; }
  .dashboard-hero, .profile-header { align-items: flex-start; flex-direction: column; }
  .score-module { text-align: left; }
  .stat-grid, .admin-stats { grid-template-columns: repeat(2,1fr); }
  .filter-bar, .admin-filters { grid-template-columns: 1fr 1fr; }
  .event-grid, .event-admin-grid { grid-template-columns: 1fr; }
  .request-card { grid-template-columns: 90px 1fr; }
  .request-card > img, .request-avatar { width: 90px; }
  .inline-create { grid-template-columns: 1fr 1fr; }
  .gallery-admin-grid { grid-template-columns: repeat(2,1fr); }
  .footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .section, .team-page, .page-hero, .hero { width: min(100% - 24px, var(--content)); }
  .section { padding: 52px 0; }
  .hero { padding-top: 35px; }
  .hero h1 { margin: 18px 0; }
  .hero-actions .button { flex: 1; }
  .hero-visual { margin: -20px 0 -45px; transform: scale(.86); }
  .section-heading, .cta-panel, .page-title-row { align-items: stretch; flex-direction: column; }
  .public-member-grid, .feature-grid, .sponsor-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure:first-child { grid-column: auto; min-height: 330px; }
  .gallery-grid figure, .gallery-placeholder { min-height: 250px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .auth-shell { width: calc(100% - 24px); padding: 40px 0; }
  .auth-visual { min-height: 290px; }
  .team-page { padding-top: 15px; }
  .team-nav { margin: 0 -2px 28px; }
  .dashboard-hero, .profile-header { padding: 18px; }
  .member-identity { align-items: flex-start; flex-direction: column; }
  .avatar-xl { width: 88px; height: 88px; }
  .stat-grid, .admin-stats { grid-template-columns: 1fr 1fr; }
  .filter-bar, .admin-filters { grid-template-columns: 1fr; }
  .member-card { grid-template-columns: auto 1fr; }
  .member-card-score { grid-column: 2; text-align: left; grid-auto-flow: column; justify-content: start; gap: 5px; align-items: baseline; }
  .ranking-row { grid-template-columns: 42px 32px 1fr auto; padding: 8px; }
  .event-code-box { align-items: stretch; flex-direction: column; }
  .event-meta { grid-template-columns: 1fr 1fr 1fr; }
  .admin-shell { width: calc(100% - 18px); padding-top: 10px; }
  .admin-sidebar { margin: 0 -2px; }
  .bulk-toolbar { align-items: stretch; flex-wrap: wrap; }
  .bulk-toolbar span { width: 100%; }
  .bulk-toolbar input { flex: 1; width: auto; }
  .drawer { width: 100%; }
  .checkbox-grid, .export-fields { grid-template-columns: 1fr; }
  .inline-create { grid-template-columns: 1fr; }
  .settings-row { grid-template-columns: 1fr 1fr; }
  .settings-row .color-dot { display: none; }
  .gallery-admin-grid { grid-template-columns: 1fr; }
  .request-card { grid-template-columns: 1fr; }
  .request-card > img, .request-avatar { width: 100%; height: 160px; min-height: 160px; }
  .footer { width: calc(100% - 24px); }
}
.nav-language { display:inline-flex; align-items:center; gap:4px; color:#58748d; font:700 .68rem monospace; }
.nav-language a { color:#8ebfe5; padding:4px; }
