:root {
  --ink: #18332d;
  --muted: #6f7d77;
  --paper: #f5f2eb;
  --card: #fffefa;
  --line: #dddcd4;
  --green: #1f5a4d;
  --mint: #dfece6;
  --coral: #e56f51;
  --gold: #eab64c;
  --shadow: 0 14px 40px rgba(37, 54, 48, .07);
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% 0, #e6eee9 0, transparent 28rem), var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 max(24px, calc((100vw - 1120px)/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(24, 51, 45, .09); background: rgba(245, 242, 235, .78); backdrop-filter: blur(16px); }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 11px; font: 700 20px "Manrope", sans-serif; letter-spacing: -.6px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px 11px 11px 3px; display: grid; place-items: center; color: white; background: var(--green); font-size: 15px; box-shadow: inset 0 -3px 8px rgba(0,0,0,.08); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.top-actions form { margin: 0; }
.status-pill { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); padding: 8px 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.status-pill i, .calendar-state i, .connection-stat i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #72a893; margin-right: 6px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #d7c6aa; color: #31413a; font-size: 11px; font-weight: 700; }
.icon-button { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
main { max-width: 1120px; margin: 0 auto; padding: 56px 24px 26px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 10px; font-size: 10px; letter-spacing: .18em; font-weight: 700; color: #74877e; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font: 700 clamp(32px, 5vw, 48px)/1.05 "Manrope", sans-serif; letter-spacing: -2.2px; margin-bottom: 12px; }
.hero p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; font-size: 15px; }
.button { min-height: 44px; border: 0; border-radius: 12px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .18s, opacity .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: default; opacity: .55; transform: none; }
.button.primary { background: var(--green); color: white; box-shadow: 0 9px 22px rgba(31, 90, 77, .18); }
.button.secondary { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid var(--line); }
.refresh { font-size: 19px; font-weight: 400; }
.loading .refresh { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 12px; margin-bottom: 22px; }
.lower-stats { margin-top: 34px; }
.stats article { min-height: 96px; display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid rgba(74, 89, 82, .13); border-radius: 17px; background: rgba(255,254,250,.72); }
.stats strong { display: block; font: 700 25px "Manrope"; letter-spacing: -1px; }
.stats article span:not(.stat-icon) { color: var(--muted); font-size: 11px; }
.stat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: white; font-size: 17px; }
.stat-icon.coral { background: var(--coral); }.stat-icon.gold { background: var(--gold); }.stat-icon.green { background: #67a78f; }
.connection-stat { justify-content: space-between !important; background: transparent !important; border-style: dashed !important; }
.connection-stat strong { font: 600 13px "DM Sans"; margin-top: 5px; letter-spacing: 0; }
.connection-stat i { width: 9px; height: 9px; box-shadow: 0 0 0 6px #e4eee9; }
.setup-banner { display: flex; align-items: center; gap: 15px; padding: 17px 18px; border: 1px solid #d3dcd7; border-radius: 16px; background: #e9f0ec; margin-bottom: 44px; }
.setup-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--green); color: white; }
.setup-banner div:nth-child(2) { flex: 1; }
.setup-banner strong { font-size: 13px; }.setup-banner p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.section-heading h2 { font: 700 23px "Manrope"; letter-spacing: -.8px; margin: 0; }
.calendar-state { color: var(--muted); font-size: 11px; font-weight: 600; padding-bottom: 4px; }
.enrollment-list { display: grid; gap: 10px; }
.enrollment-card { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; min-height: 112px; background: var(--card); border: 1px solid rgba(60,76,69,.12); border-radius: 17px; padding: 14px 20px 14px 14px; box-shadow: 0 2px 0 rgba(24,51,45,.02); transition: border .2s, transform .2s, box-shadow .2s; }
.enrollment-card:hover { border-color: #bdcbc4; transform: translateY(-1px); box-shadow: var(--shadow); }
.enrollment-card.featured { border-left: 3px solid var(--coral); }
.enrollment-card time { border-right: 1px solid #e6e5df; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.enrollment-card time span { font-size: 9px; color: var(--coral); font-weight: 700; letter-spacing: .12em; }
.enrollment-card time strong { font: 700 28px "Manrope"; margin: 4px 0 3px; letter-spacing: -1px; }
.enrollment-card time small { color: var(--muted); text-transform: capitalize; font-size: 10px; }
.event-main { padding-left: 22px; }
.event-time { color: #5d746b; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.event-main h3 { font: 700 17px "Manrope"; margin: 5px 0 8px; letter-spacing: -.35px; }
.event-main p { margin: 0; color: var(--muted); font-size: 11px; }.separator { padding: 0 7px; color: #c1c3bf; }
.waitlist { display: inline-block; margin-left: 9px; padding: 3px 7px; border-radius: 999px; background: #fff2d5; color: #8a651f; font-weight: 700; }
.event-action { min-width: 132px; display: flex; justify-content: flex-end; }
.synced { color: #538675; background: #e8f1ed; border-radius: 999px; padding: 8px 12px; font-size: 10px; font-weight: 700; }
.calendar-button { min-height: 36px; background: white; border: 1px solid var(--line); color: var(--ink); }
.muted { color: var(--muted); font-size: 11px; }
.empty-state { text-align: center; padding: 60px; border: 1px dashed var(--line); border-radius: 18px; }.empty-state > span { font-size: 36px; }.empty-state h3 { margin: 10px 0 6px; }.empty-state p { color: var(--muted); }
.check-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
footer { display: flex; align-items: center; gap: 16px; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(24,51,45,.1); color: var(--muted); font-size: 10px; }
footer span { color: var(--ink); font-weight: 700; } footer p { margin: 0; } footer small { margin-left: auto; }
.flash { padding: 12px 15px; border-radius: 10px; background: #e6f0eb; font-size: 13px; }.flash.error { color: #8b3128; background: #f8e7e3; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: white; padding: 12px 18px; border-radius: 11px; box-shadow: var(--shadow); transition: .25s; font-size: 13px; }.toast.visible { opacity: 1; transform: translate(-50%, 0); }.toast.error { background: #8b3128; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: min(100%, 430px); padding: 44px; border-radius: 25px; border: 1px solid rgba(60,76,69,.12); background: rgba(255,254,250,.84); box-shadow: var(--shadow); }
.brand-large { margin-bottom: 42px; }.brand-large .brand-mark { width: 40px; height: 40px; }
.login-card h1 { font: 700 37px/1.05 "Manrope"; letter-spacing: -1.8px; margin-bottom: 15px; }.login-card h1 em { color: #5f8176; font-style: normal; }
.login-copy { color: var(--muted); font-size: 14px; line-height: 1.55; }
.login-form { display: grid; gap: 15px; margin-top: 28px; }.login-form label { font-size: 11px; font-weight: 700; }.login-form input { width: 100%; height: 47px; border: 1px solid var(--line); border-radius: 11px; background: white; padding: 0 13px; margin-top: 6px; color: var(--ink); outline: none; }.login-form input:focus { border-color: #7a9f91; box-shadow: 0 0 0 3px #e2ece7; }.wide { width: 100%; margin-top: 4px; }
.privacy-note { color: var(--muted); text-align: center; font-size: 10px; margin: 24px 0 0; }.privacy-note span { color: #70a18e; }
@media (max-width: 780px) {
  main { padding-top: 38px; }.status-pill, .icon-button { display: none; }.hero { align-items: stretch; flex-direction: column; }.stats { grid-template-columns: 1fr 1fr; }.setup-banner { align-items: flex-start; flex-wrap: wrap; }.setup-banner .button { margin-left: 53px; }.enrollment-card { grid-template-columns: 62px 1fr; padding-right: 14px; }.event-main { padding-left: 14px; }.event-action { grid-column: 2; justify-content: flex-start; padding: 11px 0 0 14px; }.section-heading { align-items: flex-start; gap: 16px; }.calendar-state { text-align: right; }.check-actions .button { width: 100%; } footer p { display: none; }
}
@media (max-width: 460px) {
  .topbar { height: 66px; padding-inline: 18px; } main { padding-inline: 15px; }.stats { gap: 8px; }.stats article { min-height: 82px; padding: 14px; }.stats strong { font-size: 21px; }.stat-icon { width: 34px; height: 34px; }.connection-stat { display: none !important; }.setup-banner .button { width: 100%; margin-left: 0; }.section-heading { display: block; }.calendar-state { text-align: left; margin-top: 10px; }.login-card { padding: 32px 24px; }
}
