:root {
  font-family: "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
  color: #193c43;
  background: #f8f6f0;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --ink: #193c43;
  --dark: #183d43;
  --mint: #b6e6cf;
  --mint-strong: #7ec6a9;
  --yellow: #f7c95a;
  --soft: #f8f6f0;
  --muted: #7a8c8d;
  --line: #e0e5e0;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }
.portal-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 25px; letter-spacing: -1px; font-weight: 1000; white-space: nowrap; }
.portal-brand-mark { width: 43px; height: 43px; background: var(--mint); border: 2px solid #193c43; box-shadow: 3px 4px 0 #193c43; color: #16353a; display: grid; place-items: center; font-size: 20px; letter-spacing: -2px; transform: rotate(-7deg); border-radius: 13px; }
.brand-highlight { color: #78bda0; }
.brand-dot { color: #e8a46d; }
.eyebrow { color: #638f81; font-size: 12px; letter-spacing: 2px; font-weight: 1000; display: flex; align-items: center; gap: 10px; }
.eyebrow.light { color: #a6d9c5; }
.tiny-star { font-size: 24px; color: #f7ca5e; line-height: .8; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -1.5px; }
h1 { font-size: clamp(55px, 6vw, 94px); line-height: 1.04; }
h2 { font-size: clamp(32px, 4vw, 53px); line-height: 1.1; }
.portal-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; font-weight: 1000; border-radius: 12px; border: 2px solid transparent; transition: transform .2s, background .2s; text-decoration: none; }
.portal-button:hover:not(:disabled) { transform: translateY(-2px); }
.portal-button.primary { background: var(--yellow); color: var(--ink); border-color: #e3b94f; box-shadow: 3px 4px 0 #d1a744; }
.portal-button.primary:hover { background: #ffd777; }
.portal-button.secondary { border-color: #cbdcd3; background: #edf7f1; color: var(--ink); }
.portal-button.full-width { width: 100%; }
.stacked-form { display: flex; flex-direction: column; }
.stacked-form label { font-size: 13px; font-weight: 1000; margin-bottom: 8px; }
.stacked-form input { width: 100%; border: 2px solid #e0e7e3; background: #fbfcfb; border-radius: 11px; padding: 14px 15px; outline: none; color: var(--ink); font-size: 15px; margin-bottom: 19px; }
.stacked-form input:focus { border-color: var(--mint-strong); box-shadow: 0 0 0 3px #b6e6cf87; }
.stacked-form .portal-button { margin-top: 6px; }
.form-message { font-size: 13px; color: #aa614f; line-height: 1.45; min-height: 1.3em; margin: 10px 0 0; font-weight: 800; }
.form-message.success { color: #378463; }
.fine-print { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 15px 0 0; }

/* The only public page: sign-in (or private, one-time owner setup). */
.portal-login-page { background: var(--dark); }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1fr) minmax(420px, .92fr); }
.login-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #183e43; color: #fff; min-height: 100vh; padding: 42px clamp(32px, 6vw, 110px) 32px; }
.login-intro::before { content: ""; position: absolute; width: 580px; height: 580px; border: 2px solid #4b7775; border-radius: 50%; right: -320px; bottom: -280px; box-shadow: 0 0 0 110px #22534e66, 0 0 0 220px #2c665a40; pointer-events: none; }
.login-intro::after { content: "✳"; position: absolute; font-size: 150px; line-height: 1; color: #80c4a688; right: 12%; top: 19%; transform: rotate(12deg); pointer-events: none; }
.login-intro .portal-brand { position: relative; z-index: 1; }
.login-intro .portal-brand-mark { box-shadow: 3px 4px 0 #10272a; }
.login-intro .brand-highlight { color: #a3e1c6; }
.brand-large { font-size: 28px; }
.login-foot { font-size: 11px; color: #7ea8a6; font-weight: 800; }
.intro-content { position: relative; z-index: 1; padding: 55px 0; max-width: 580px; }
.intro-content h1 { margin: 20px 0 25px; font-weight: 1000; }
.intro-content h1 em { font-style: normal; color: var(--mint); }
.intro-content p { color: #b2cbc4; max-width: 430px; font-size: 19px; line-height: 1.7; }
.login-signature { display: inline-flex; align-items: center; gap: 14px; margin-top: 45px; color: #f4d47e; font-size: 13px; font-weight: 1000; letter-spacing: .3px; }
.login-signature span { font-size: 26px; }
.login-panel-wrap { background: #f8f6f0; display: flex; align-items: center; justify-content: center; padding: 45px 35px; }
.login-panel { width: min(100%, 470px); background: #fff; border: 1px solid #e1e5df; padding: clamp(25px,4vw,51px); border-radius: 25px; box-shadow: 0 24px 60px #0f2a3012; }
.login-panel-mark { width: 60px; height: 60px; background: #e2f3e9; display: grid; place-items: center; font-size: 36px; border-radius: 18px; color: #56957b; margin-bottom: 23px; }
.login-panel h2 { margin: 14px 0 14px; font-size: 40px; }
.panel-description { color: #80918e; line-height: 1.6; font-size: 14px; margin-bottom: 28px; }
.panel-separator { height: 1px; background: #e8ece7; margin: 24px 0; }
.login-help { display: flex; gap: 13px; align-items: start; }
.small-lock { width: 34px; height: 34px; background: #edf4ee; border-radius: 10px; display: grid; place-items: center; font-size: 23px; flex: 0 0 auto; }
.login-help p { margin: 0; font-size: 12px; color: #899b94; line-height: 1.5; }

/* Authenticated dashboard. */
.portal-hub-page { background: #f9f7f1; }
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.hub-header, .hub-main, .hub-footer { width: min(100% - 64px, 1260px); margin-left: auto; margin-right: auto; }
.hub-header { height: 90px; display: flex; align-items: center; gap: 35px; border-bottom: 1px solid var(--line); }
.hub-nav { margin: 0 auto; display: flex; align-items: center; gap: 30px; }
.hub-nav a, .hub-nav button { border: 0; padding: 11px 0; background: transparent; font-size: 13px; font-weight: 900; text-decoration: none; color: #708681; white-space: nowrap; }
.hub-nav a:hover, .hub-nav button:hover, .hub-nav a.active { color: var(--ink); }
.hub-nav a.active { box-shadow: inset 0 -2px var(--ink); }
.hub-account { display: flex; gap: 9px; align-items: center; white-space: nowrap; }
.account-avatar { border-radius: 50%; width: 35px; height: 35px; background: #c7e9d9; display: grid; place-items: center; font-size: 16px; font-weight: 1000; }
.hub-account > span:nth-child(2) { font-size: 13px; font-weight: 1000; }
.hub-account button { border: 0; border-radius: 9px; padding: 9px 11px; background: #eaf0e9; color: #4b7064; font-size: 12px; font-weight: 900; margin-left: 6px; }
.hub-main { flex: 1; padding: 44px 0 65px; }
.hub-welcome { position: relative; overflow: hidden; border-radius: 24px; background: var(--dark); color: white; padding: 52px 55px 48px; min-height: 275px; }
.hub-welcome .eyebrow { color: #9bd7bd; }
.hub-welcome h1 { position: relative; z-index: 1; margin: 23px 0 12px; font-size: clamp(44px,5vw,72px); }
.hub-welcome p { position: relative; z-index: 1; max-width: 560px; color: #b6d4ca; font-size: 17px; line-height: 1.65; margin-bottom: 0; }
.hub-welcome .wave { display: inline-block; transform: rotate(-13deg); font-size: .72em; }
.welcome-decor { position: absolute; border: 3px solid #6caf94; opacity: .35; border-radius: 30px; transform: rotate(18deg); }
.decor-one { width: 300px; height: 250px; right: 100px; top: -110px; }
.decor-two { width: 280px; height: 280px; right: -80px; bottom: -175px; border-radius: 50%; box-shadow: 0 0 0 50px #7fc1a245; }
.module-section { padding: 53px 0 20px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 27px; }
.section-title > div > span { display: block; font-size: 11px; font-weight: 1000; letter-spacing: 1.6px; color: #8ca69a; }
.section-title h2 { margin: 12px 0 0; font-size: clamp(32px,4vw,46px); }
.section-title p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 13px 0 0; }
.section-count { padding: 10px 13px; background: #e8f1e8; border-radius: 40px; font-size: 10px; letter-spacing: 1px; font-weight: 1000; color: #5e9680; white-space: nowrap; }
.module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.module-card { display: flex; flex-direction: column; border-radius: 21px; background: #fff; border: 1px solid #e2e6df; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.module-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px #153d4015; }
.module-illustration { position: relative; height: 245px; background: #b9e2cd; display: grid; place-items: center; overflow: hidden; }
.module-illustration::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: #f3c8ad; right: -105px; bottom: -180px; }
.label-pill { position: absolute; left: 21px; top: 21px; border-radius: 30px; padding: 9px 14px; background: #fffdf5; color: #42675b; font-size: 11px; font-weight: 1000; letter-spacing: 1.3px; z-index: 2; }
.mini-board { display: grid; grid-template-columns: repeat(3,58px); grid-template-rows: repeat(2,72px); gap: 10px; transform: rotate(-7deg); z-index: 1; }
.mini-person { display: grid; place-items: center; background: #fef7dd; border: 3px solid #1c4349; box-shadow: 3px 4px 0 #27525255; border-radius: 9px; font-size: 37px; line-height: 1; }
.mini-person.two, .mini-person.six { background: #e9c4d3; }
.mini-person.three { background: #f6d08a; }
.mini-person.four { background: #c1dbe4; }
.mini-person.five { background: #f6ac91; font-size: 40px; font-weight: 1000; transform: perspective(100px) rotateX(25deg); }
.illustration-bubble { position: absolute; bottom: 28px; right: 24px; z-index: 2; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 1000; font-size: 12px; transform: rotate(7deg); box-shadow: 3px 3px 0 var(--ink); }
.module-info { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding: 27px 29px 29px; }
.module-eyebrow { font-size: 10px; font-weight: 1000; letter-spacing: 1.6px; color: #719e87; }
.module-info h3 { font-size: 28px; margin: 7px 0 9px; letter-spacing: -1px; }
.module-info p { color: var(--muted); line-height: 1.55; font-size: 14px; margin: 0; max-width: 385px; }
.module-arrow { display: grid; place-items: center; width: 43px; height: 43px; background: var(--yellow); border-radius: 12px; font-size: 24px; font-weight: 1000; flex: 0 0 auto; }
.upcoming-card { min-height: 422px; border: 2px dashed #cfdad1; padding: 58px 35px; justify-content: center; align-items: center; text-align: center; background: #f2f6ed; }
.upcoming-icon { width: 73px; height: 73px; background: #e0ecdb; color: #7ea98d; display: grid; place-items: center; font-size: 37px; border-radius: 21px; margin-bottom: 23px; }
.upcoming-card h3 { font-size: 27px; max-width: 350px; margin: 10px 0; }
.upcoming-card p { max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.coming-soon { border: 1px solid #a9c9ac; color: #78a27e; padding: 9px 13px; border-radius: 30px; font-weight: 1000; font-size: 10px; letter-spacing: 1.2px; margin-top: 8px; }
.members-panel { padding: 58px 0 24px; border-top: 1px solid var(--line); margin-top: 52px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0,1.15fr); gap: 20px; align-items: start; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 29px; }
.admin-card h3 { font-size: 22px; margin-bottom: 22px; }
.user-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-list-heading > span { font-size: 12px; color: var(--muted); font-weight: 900; }
.users-list { display: flex; flex-direction: column; gap: 11px; }
.user-row { padding: 14px 0; border-top: 1px solid #ecf0e9; display: flex; align-items: center; gap: 12px; }
.user-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: #e0efe6; font-weight: 1000; }
.user-data { min-width: 0; flex: 1; }
.user-data strong { display: block; font-size: 14px; }
.user-data span { color: #8ba09a; font-size: 11px; }
.user-actions { display: flex; gap: 6px; }
.user-actions button { border: 1px solid #d6e2d8; background: #f2f7ef; border-radius: 9px; font-size: 11px; padding: 7px 9px; color: #577b6a; font-weight: 900; }
.user-actions button.destructive { background: #fff2ed; color: #b66c53; border-color: #f1d3c5; }
.user-row.disabled { opacity: .55; }
.profile-panel { margin-top: 42px; }
.profile-panel details { border-radius: 15px; border: 1px solid #e1e6df; padding: 18px 22px; background: #fff; max-width: 470px; }
.profile-panel summary { font-size: 14px; font-weight: 900; cursor: pointer; }
.profile-form { padding-top: 25px; }
.hub-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 30px; color: #9aa9a2; border-top: 1px solid var(--line); font-size: 12px; font-weight: 900; }
.hub-footer strong { color: var(--ink); font-size: 17px; }
.hub-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%,30px); opacity: 0; pointer-events: none; transition: .2s; background: var(--dark); color: #fff; padding: 13px 19px; border-radius: 12px; font-size: 13px; font-weight: 900; box-shadow: 0 10px 35px #102c3033; z-index: 10; }
.hub-toast.visible { opacity: 1; transform: translate(-50%,0); }
:focus-visible { outline: 3px solid #f1b847; outline-offset: 3px; }
@media (max-width: 1050px) {
  .login-layout { grid-template-columns: minmax(0,1fr) minmax(380px,1fr); }
  .login-intro { padding-left: 50px; padding-right: 40px; }
  .hub-header { gap: 18px; }
  .hub-nav { gap: 16px; }
  .hub-account > span:nth-child(2) { display: none; }
}
@media (max-width: 740px) {
  .login-layout { display: flex; flex-direction: column; min-height: 100vh; }
  .login-intro { min-height: auto; padding: 24px 25px 28px; }
  .login-intro::before, .login-intro::after, .login-signature, .login-foot { display: none; }
  .intro-content { padding: 40px 0 0; }
  .intro-content h1 { font-size: 53px; margin: 14px 0 14px; }
  .intro-content p { font-size: 14px; line-height: 1.5; margin: 0; }
  .login-panel-wrap { flex: 1; padding: 22px 17px 34px; }
  .login-panel { padding: 28px 24px; border-radius: 20px; }
  .login-panel h2 { font-size: 34px; }
  .login-panel-mark { display: none; }
  .hub-header, .hub-main, .hub-footer { width: min(100% - 30px,1260px); }
  .hub-header { height: auto; min-height: 85px; gap: 10px; flex-wrap: wrap; padding: 14px 0; }
  .portal-brand { font-size: 21px; }
  .portal-brand-mark { width: 37px; height: 37px; font-size: 17px; }
  .hub-account { margin-left: auto; }
  .hub-nav { width: 100%; order: 3; justify-content: center; padding-top: 5px; }
  .hub-main { padding: 27px 0 45px; }
  .hub-welcome { padding: 33px 25px; min-height: 230px; }
  .hub-welcome h1 { font-size: 43px; }
  .hub-welcome p { font-size: 14px; }
  .module-section { padding-top: 39px; }
  .module-grid, .admin-layout { grid-template-columns: 1fr; }
  .module-illustration { height: 195px; }
  .mini-board { transform: rotate(-7deg) scale(.83); }
  .upcoming-card { min-height: 300px; padding: 40px 25px; }
  .section-title { flex-wrap: wrap; }
  .user-row { flex-wrap: wrap; }
  .user-actions { flex-basis: 100%; padding-left: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
