:root {
  color-scheme: light dark;
  --bg: #f7f5f0;
  --card: #fff;
  --text: #111;
  --subtle: #666669;
  --divider: #e6e3db;
  --inset: #f0ede6;
  --gold: #c9a326;
  --gold-text: #6e5205;
  --gold-light: #e6c75c;
  --tab: rgba(250, 249, 246, .94);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0f; --card: #1c1c1f; --text: #fff; --subtle: #b8b8ba;
    --divider: #303033; --inset: #141416; --gold-text: #e6c75c; --tab: rgba(28, 28, 31, .94);
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e0f; --card: #1c1c1f; --text: #fff; --subtle: #b8b8ba;
  --divider: #303033; --inset: #141416; --gold-text: #e6c75c; --tab: rgba(28, 28, 31, .94);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #e6e3db; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
button:active, .press:active { opacity: .7; transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { button:hover, a:hover { filter: brightness(.92); } }
.shell { max-width: 430px; margin: auto; min-height: 100dvh; background: var(--bg); box-shadow: 0 0 40px #0002; }
#app { min-height: 100dvh; }
.demo-banner { position: sticky; top: 0; z-index: 4; padding: calc(7px + env(safe-area-inset-top)) 12px 7px; color: #101010; background: var(--gold); text-align: center; font-size: 12px; font-weight: 650; }
.screen { padding: 12px 20px calc(100px + env(safe-area-inset-bottom)); animation: appear .2s ease-out; }
@keyframes appear { from { opacity: .6; } to { opacity: 1; } }
.stack { display: flex; flex-direction: column; gap: 18px; }
.home-stack { gap: 24px; }
.topbar { display: flex; align-items: center; justify-content: center; position: relative; min-height: 44px; margin: -4px 0 8px; font-size: 17px; font-weight: 650; }
.topbar .back { position: absolute; left: -8px; }
.icon-button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--gold-text); border-radius: 12px; }
.icon { width: 22px; height: 22px; display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand strong { display: block; font-size: 17px; }
.brand small { display: block; color: var(--gold-text); font-size: 10px; letter-spacing: 1.4px; font-weight: 700; }
.brand-header { display: flex; align-items: center; justify-content: space-between; }
.circle-button { background: var(--card); color: var(--text); border-radius: 50%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; line-height: 1.08; letter-spacing: -.5px; }
h2 { font-size: 24px; line-height: 1.18; }
h3 { font-size: 17px; line-height: 1.25; }
p { line-height: 1.4; }
.muted { color: var(--subtle); font-size: 14px; }
.eyebrow { color: var(--gold-text); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; }
.intro { display: grid; gap: 8px; }
.card { background: var(--card); border: 1px solid var(--divider); border-radius: 20px; padding: 16px; box-shadow: 0 2px 8px #0000000a; }
.card-stack { display: grid; gap: 10px; }
.hero { border-radius: 22px; overflow: hidden; min-height: 270px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; color: white; background: linear-gradient(180deg,#0003,#000d), url('assets/rocksHomeMentorship.png') center / cover; }
.hero .eyebrow { color: var(--gold-light); }
.hero h2 { font-size: 28px; }
.hero p { color: #ffffffe6; font-size: 14px; }
.primary { border: 0; border-radius: 14px; min-height: 50px; padding: 0 16px; background: var(--gold); color: #101010; font-weight: 700; }
.hero .primary { align-self: flex-start; min-height: 44px; background: var(--gold-light); }
.text-button { border: 0; background: transparent; color: var(--gold-text); font-weight: 600; min-height: 44px; padding: 0; }
.quick-grid, .two-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 92px; border: 1px solid var(--divider); border-radius: 18px; background: var(--card); font-size: 13px; font-weight: 600; }
.quick .icon { color: var(--gold-text); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section { display: grid; gap: 12px; }
.row-button { width: 100%; text-align: left; display: flex; align-items: center; gap: 14px; color: var(--text); }
button.row-button { cursor: pointer; }
.row-button .copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.row-button .chevron { color: var(--gold-text); width: 16px; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; background: #c9a32622; color: var(--gold-text); display: grid; place-items: center; flex: none; }
.row-title { font-size: 17px; font-weight: 650; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 430px); z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); background: var(--tab); backdrop-filter: blur(20px); }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 50px; border: 0; background: transparent; color: var(--subtle); font-size: 10px; }
.tabbar button[aria-current="page"] { color: var(--gold-text); font-weight: 700; }
.post { display: grid; gap: 12px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #c9a32633; color: var(--gold-text); font-weight: 700; }
.post-head .copy { flex: 1; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.post-image { width: 100%; max-height: 230px; object-fit: cover; border-radius: 12px; }
.post-actions { display: flex; gap: 18px; border-top: 1px solid var(--divider); padding-top: 6px; }
.post-actions button { min-height: 44px; border: 0; background: transparent; color: var(--subtle); display: flex; gap: 6px; align-items: center; }
.post-actions button[aria-pressed="true"] { color: var(--gold-text); }
.dark-card { background: linear-gradient(135deg,#101010,#242426); color: white; border-radius: 22px; padding: 20px; }
.dark-card .muted { color: #ffffffd9; }
.dark-card .eyebrow { color: var(--gold-light); }
.segmented { display: flex; gap: 2px; background: var(--inset); border-radius: 10px; padding: 3px; }
.segmented button { flex: 1; min-width: 0; min-height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 12px; }
.segmented button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 4px #0002; font-weight: 600; }
.field { width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--divider); background: var(--card); color: var(--text); padding: 12px 14px; font-size: 16px; }
textarea.field { min-height: 120px; resize: vertical; }
.field-label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.login { padding: calc(28px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom)); }
.login-logo { margin: 0 36px; padding: 18px; height: 230px; border-radius: 28px; border: 1px solid #c9a32673; background: white; display: grid; place-items: center; }
.login-logo img { max-width: 100%; max-height: 190px; object-fit: contain; }
.center { text-align: center; }
.login-actions { display: grid; gap: 8px; }
.notice { padding: 12px; border-radius: 12px; color: var(--gold-text); background: #c9a32620; font-size: 13px; line-height: 1.4; }
.error { color: #c52b36; font-size: 14px; }
dialog { position: fixed; inset: auto 0 0; width: min(100%, 430px); max-width: none; max-height: min(90dvh, 850px); margin: 0 auto; padding: 0; border: 1px solid var(--divider); border-radius: 20px 20px 0 0; background: var(--bg); color: var(--text); overflow: auto; }
dialog::backdrop { background: #0008; }
.sheet-content { padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.sheet-grip { width: 36px; height: 5px; border-radius: 5px; background: var(--subtle); opacity: .5; margin: 0 auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head button { margin-right: -10px; }
.reader { width: 100%; max-height: 60dvh; overflow: auto; border: 1px solid var(--divider); background: #e6e3db; border-radius: 12px; }
.reader canvas { display: block; margin: auto; background: white; }
.reader-controls { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.reader-controls button { border: 1px solid var(--divider); background: var(--card); border-radius: 10px; min-width: 44px; min-height: 44px; }
.reader-controls button:disabled { opacity: .4; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 4px; }
.calendar button { min-height: 40px; border: 0; border-radius: 50%; background: transparent; }
.calendar button[aria-pressed="true"] { background: #c9a32644; }
.calendar .marked { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
#status:empty { display: none; }
#status:not(:empty) { position: fixed; z-index: 10; bottom: calc(78px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(90%, 390px); padding: 12px; border-radius: 12px; background: #242426; color: white; text-align: center; font-size: 14px; }
@media (max-width: 600px) { .shell { max-width: none; box-shadow: none; } .tabbar { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Components added to match the current native screens (2026-11 sync). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small-text { font-size: 14px; }
.tiny-text { font-size: 12px; }
.gold-text { color: var(--gold-text); }
.gold-light { color: var(--gold-light); }
.serif { font-family: Georgia, "Times New Roman", serif; }
.large { font-size: 19px; }
.center { text-align: center; }
.contain { object-fit: contain; }
.break { overflow-wrap: anywhere; }
.align-end { align-self: flex-end; }
.self-center { align-self: center; }
.left { text-align: left; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.split-start { display: flex; align-items: center; gap: 10px; }
.card.comment { display: flex; }
.cta, .pub-card, .card.section { display: flex; flex-direction: column; gap: 8px; }
.pub-card { flex-direction: row; }
.empty { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 28px 12px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.card.center .avatar.lg { margin: 0 auto; }
.icon-tile.small { width: 40px; height: 40px; border-radius: 12px; }
.icon-tile.solid { width: 42px; height: 42px; border-radius: 12px; background: var(--gold); color: #101010; }
.icon-tile.round { border-radius: 50%; }
.muted-icon, .muted-icon .icon { color: var(--subtle); }
.gold-icon { color: var(--gold-text); }
.quick-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #c9a32626; }
.quick-icon.plain { background: transparent; }
.badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d93a3a; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.bell { position: relative; }
.notification.read { opacity: .7; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--divider); flex: none; margin-top: 6px; }
.dot.unread { background: var(--gold); }
.pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--subtle); background: #8882; white-space: nowrap; }
.pill.ok { color: #1f8a3b; background: #1f8a3b22; }
.pill.gold { color: var(--gold-text); background: #c9a32626; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 10px; border-radius: 999px; border: 1px solid #c9a32673; background: #c9a3261a; color: var(--gold-text); font-size: 13px; font-weight: 600; }
button.chip { min-height: 32px; }
.mentor-card { display: grid; gap: 10px; width: 100%; text-align: left; }
.mentor-card .copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cta { align-items: flex-start; text-align: left; min-height: 130px; border-color: #c9a32673; color: var(--text); }
.champ { border-color: #c9a32673; background: linear-gradient(135deg, #c9a3261a, transparent); }
.pill-button { border-radius: 999px; }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--divider); background: var(--card); color: var(--subtle); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 16px; outline: none; }
.search-field.dark { background: #ffffff1f; border-color: transparent; color: #fffc; }
.search-field.dark input { color: #fff; }
.search-field.dark input::placeholder { color: #fffa; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.toggle-row input[type="checkbox"] { appearance: none; flex: none; width: 51px; height: 31px; border-radius: 16px; background: #7878804d; position: relative; cursor: pointer; transition: background .2s; }
.toggle-row input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px #0003; transition: transform .2s; }
.toggle-row input[type="checkbox"]:checked { background: var(--gold); }
.toggle-row input[type="checkbox"]:checked::after { transform: translateX(20px); }
.card.toggle-row { flex-direction: row; }
.consent { align-items: flex-start; }
.composer { align-items: center; border-color: #c9a32673; }
.composer-pill { flex: 1; padding: 10px 14px; border-radius: 999px; background: var(--inset); text-align: left; }
.topbar-action { position: absolute; right: -8px; }
.post.official { border-color: #c9a32673; }
.post-head .small-icon { margin: -10px -10px 0 0; color: var(--subtle); }
.post-open { display: grid; gap: 12px; border: 0; padding: 0; background: transparent; text-align: left; color: var(--text); }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.comment { align-items: flex-start; gap: 10px; }
.comment .copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.comment-bar { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: center; padding: 10px 0; background: var(--bg); }
.comment-bar .field { min-height: 44px; border-radius: 22px; }
.send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--gold); color: #101010; display: grid; place-items: center; }
.secondary { min-height: 50px; border-radius: 14px; border: 1.5px solid var(--gold); background: var(--card); color: var(--gold-text); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.primary { display: flex; align-items: center; justify-content: center; gap: 8px; }
.primary:disabled { opacity: .5; }
.primary.destructive { background: #d93a3a; color: #fff; }
.link-button { text-decoration: none; }
.text-button.danger, .danger-text { color: #d93a3a; }
.secondary.danger-text { border-color: var(--divider); }
.small-button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--gold); background: transparent; color: var(--gold-text); font-weight: 600; }
.small-button.danger-outline { border-color: #d93a3a; color: #d93a3a; }
.sheet-content .secondary { width: 100%; }
.list-card { padding: 6px 12px; gap: 0; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 44px; border: 0; background: transparent; color: var(--text); text-align: left; font-size: 15px; }
.list-row > .icon:first-child { color: var(--gold-text); }
.list-row span { flex: 1; }
.list-row > .icon:last-child { width: 16px; color: var(--subtle); }
.profile-header, .membership-header { gap: 14px; min-height: 200px; align-content: end; justify-items: start; }
.membership-header { border: 1px solid #c9a32673; }
.profile-logo { width: 56px; height: 64px; object-fit: contain; }
.profile-header .copy { display: grid; gap: 4px; }
.gold-rule { width: 100%; border: 0; border-top: 1px solid var(--gold); margin: 6px 0 0; }
.programs-hero { min-height: 220px; background-image: linear-gradient(180deg, #0004, #000c), url('assets/rocksHeroLeadership.jpg'); }
.pub-card { flex-direction: row; gap: 14px; }
.pub-cover { width: 80px; height: 110px; flex: none; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #101010, #2a2a2c); color: var(--gold-light); }
.pub-card .copy { display: grid; gap: 4px; align-content: start; }
.account-card { border-color: #c9a32673; }
.password-field { position: relative; }
.password-field .icon-button { position: absolute; right: 4px; top: 3px; color: var(--subtle); }
.explore { margin-top: -6px; }
.muted-button { color: var(--subtle); font-weight: 400; }
.big-icon .icon { width: 52px; height: 52px; }
.field.tall { min-height: 160px; }
.auth-screen { padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.card-stack.left { text-align: left; }
.text-button[data-action="add-specialty"] { min-width: 44px; padding: 0 8px; }
