:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #fff;
  --surface-alt: #f4f4f5;
  --text: #212124;
  --muted: #6b6b73;
  --border: #e9e9ec;
  --accent: #db283b;
  --accent-hover: #bd1d2e;
  --accent-soft: #fcedef;
  --focus: #315ed0;
  --rail: #f7f7f8;
  --radius: 12px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141416;
  --surface: #19191c;
  --surface-alt: #232326;
  --text: #eeeef0;
  --muted: #a0a0a8;
  --border: #2d2d32;
  --accent: #ff6576;
  --accent-hover: #ff8795;
  --accent-soft: #342126;
  --focus: #96b4ff;
  --rail: #1c1c20;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  color: inherit;
}
a:hover {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
button svg,
a svg {
  flex-shrink: 0;
}
img {
  max-width: 100%;
  object-fit: cover;
}
svg.icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin-bottom: 0;
}
h2 {
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 17px;
}
p {
  margin-bottom: 16px;
}
form {
  margin: 0;
}
small {
  font-size: 12px;
}
strong {
  font-weight: 650;
}
button {
  border: 0;
  background: none;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
label {
  font-size: 14px;
  font-weight: 550;
}
label input,
label textarea,
label select {
  margin-top: 7px;
}
time {
  font-size: 12px;
  color: var(--muted);
}
.app-shell {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 750px) minmax(220px, 260px);
  min-height: 100dvh;
  gap: 32px;
  padding: 0 24px;
}
.sidebar {
  position: sticky;
  overflow-y: auto;
  top: 0;
  height: 100dvh;
  padding: 34px 0 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1;
}
.brand img {
  border-radius: 10px;
}
.brand-dot {
  color: var(--accent);
  margin-left: -8px;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand-name {
  white-space: nowrap;
}
.brand-name .brand-dot {
  margin-left: 0;
}
.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 32px;
}
.main-nav a {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 550;
  transition: background 0.15s;
}
.main-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.main-nav a:hover {
  background: var(--surface-alt);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  line-height: 1.45;
}
.button.primary {
  background: var(--accent);
  color: #fff;
}
.button.primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
:root[data-theme="dark"] .button.primary {
  color: #1a1316;
}
.button.secondary {
  background: var(--surface);
  border-color: var(--border);
}
.compose-button {
  margin-top: 25px;
  width: 100%;
  min-height: 47px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 42px;
}
.theme-button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 8px;
  margin-bottom: 12px;
  font-size: 13px;
}
.sidebar-bottom > .button {
  width: 100%;
}
.small-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  font-size: 10px;
  color: var(--muted);
  margin: 23px 4px 8px;
}
.small-links button,
.mobile-footer button {
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
}
.small-links button:hover,
.mobile-footer button:hover {
  color: var(--accent);
}
.cookie-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 25;
  width: min(520px, calc(100vw - 48px));
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .16);
}
.cookie-consent[hidden] {
  display: none;
}
.cookie-consent p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.cookie-consent p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.cookie-consent-actions .button {
  min-width: 88px;
}
.copyright {
  font-size: 10px;
  color: var(--muted);
  margin: 0 4px;
}
.main-content {
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-width: 0;
  min-height: 100dvh;
}
.page-header {
  min-height: 80px;
  padding: 24px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 0 0 8px;
}
.page-header .eyebrow {
  color: var(--accent);
}
.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover {
  background: var(--surface-alt);
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 30px;
  padding: 0 26px;
}
.tabs a {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0 15px;
  position: relative;
}
.tabs .active {
  font-weight: 650;
  color: var(--text);
}
.tabs .active:after {
  content: "";
  height: 3px;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--accent);
  border-radius: 3px;
}
.composer-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.composer-link > span:nth-child(2) {
  flex: 1;
}
.avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 650;
  color: var(--muted);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
}
.person {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  max-width: 100%;
}
.person > span:last-child {
  min-width: 0;
}
.person strong {
  font-size: 14px;
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.person small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.feed-label {
  display: flex;
  justify-content: space-between;
  padding: 17px 26px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1px;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.feed-label span + span {
  letter-spacing: 0;
  font-weight: 400;
}
.post-card {
  padding: 24px 26px 17px;
  border-bottom: 1px solid var(--border);
}
.post-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.post-menu {
  position: relative;
}
.post-menu summary {
  cursor: pointer;
  list-style: none;
  line-height: 1;
}
.post-menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 30px;
  min-width: 170px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.menu-panel a,
.menu-panel button {
  padding: 9px;
  display: block;
  font-size: 12px;
  text-align: left;
  width: 100%;
  white-space: nowrap;
}
.menu-panel a:hover,
.menu-panel button:hover {
  background: var(--surface-alt);
  border-radius: 5px;
}
.post-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.post-text a {
  color: var(--accent);
}
.post-media {
  display: grid;
  gap: 3px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.post-media img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: var(--surface-alt);
  display: block;
}
.post-media.multi {
  grid-template-columns: 1fr 1fr;
}
.post-media.multi img {
  height: 260px;
  object-fit: cover;
}
.post-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--muted);
  min-height: 44px;
}
.action svg {
  width: 20px;
  height: 20px;
}
.action.selected {
  color: var(--accent);
}
.action.selected svg {
  fill: var(--accent-soft);
}
.save-action {
  margin-left: auto;
}
.right-rail {
  padding: 34px 0;
  min-width: 0;
}
.rail-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}
.rail-search input {
  padding: 0;
  border: 0;
  outline-offset: 2px;
  font-size: 12px;
  background: none;
}
.rail-search .icon {
  width: 17px;
  height: 17px;
}
.rail-section {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.rail-section h2 {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}
.rail-section p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}
.inline-link .icon {
  width: 16px;
  height: 16px;
}
.section-heading h2 {
  font-size: 13px;
  letter-spacing: 0;
  margin-bottom: 11px;
}
.topic-list {
  display: flex;
  flex-direction: column;
}
.topic-list a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
}
.topic-list .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.join-card {
  margin: 28px 26px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.join-card p {
  color: var(--muted);
  font-size: 13px;
}
.join-card .button {
  font-size: 12px;
}
.page-padding {
  padding: 0 26px 32px;
}
.intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.back-link {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.empty-state {
  padding: 55px 28px;
  text-align: center;
  color: var(--muted);
}
.empty-state > .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
}
.empty-state h2,
.empty-state h1 {
  color: var(--text);
  font-size: 21px;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 13px;
}
.status-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pagination {
  display: flex;
  margin: 24px 26px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.comments-section {
  padding: 25px 26px;
}
.comments-section h2 {
  font-size: 16px;
}
.comments-section h2 span {
  margin-left: 5px;
  font-size: 13px;
}
.comment-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 26px;
}
.comment {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.comment .post-text {
  margin: 12px 0 8px 54px;
  font-size: 13px;
}
.comment-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 54px;
  font-size: 11px;
  color: var(--muted);
}
.reply {
  width: 100%;
  font-size: 12px;
}
.reply summary {
  cursor: pointer;
}
.reply form {
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin-top: 14px;
}
.muted,
.field-note,
.empty-copy {
  color: var(--muted);
}
.empty-copy {
  font-size: 13px;
  text-align: center;
  padding: 22px;
}
.field-note {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}
.field-note a {
  color: var(--accent);
}
.text-button {
  padding: 0;
  font-size: 12px;
  line-height: 1.6;
}
.danger {
  color: var(--accent);
}
.inline-notice {
  font-size: 13px;
  color: var(--muted);
}
.inline-notice a {
  color: var(--accent);
}
.notice {
  margin: 16px 24px;
  padding: 13px 16px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  border-radius: 8px;
}
.search-form {
  display: flex;
  gap: 10px;
  margin: 5px 0 27px;
}
.search-form input {
  flex: 1;
  min-width: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips a,
.tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface-alt);
  font-size: 11px;
}
.person-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.stack-form .button {
  align-self: flex-start;
}
.stack-form label {
  display: block;
}
.stack-form textarea {
  display: block;
}
.upload-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.image-previews {
  display: flex;
  gap: 8px;
  overflow: auto;
}
.image-previews img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
}
.profile-header {
  padding: 15px 26px 28px;
}
.profile-person .avatar {
  width: 74px;
  height: 74px;
  font-size: 24px;
}
.profile-person .person strong {
  font-size: 21px;
}
.profile-person .person small {
  font-size: 13px;
}
.bio {
  white-space: pre-wrap;
  font-size: 14px;
  margin-top: 23px;
  overflow-wrap: anywhere;
}
.profile-counts {
  display: flex;
  gap: 22px;
  font-size: 12px;
  margin: 20px 0;
  color: var(--muted);
}
.profile-counts strong {
  color: var(--text);
}
.profile-buttons {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.branch-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: block;
}
.branch-card > img {
  width: 100%;
  height: 150px;
  display: block;
}
.branch-placeholder {
  height: 125px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.branch-placeholder .icon {
  width: 38px;
  height: 38px;
}
.branch-card > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  font-size: 13px;
}
.branch-card .icon {
  width: 18px;
  height: 18px;
}
.course-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.course-card h2 {
  font-size: 18px;
  margin: 14px 0;
}
.course-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 9px 0;
}
.course-card p .icon {
  width: 15px;
  height: 15px;
  margin-right: 6px;
}
.course-card .inline-link {
  margin-top: 9px;
}
.course-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.course-notice {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  padding: 23px;
  border: 1px solid var(--border);
  background: var(--rail);
  border-radius: 12px;
}
.course-notice > .small-icon {
  flex-shrink: 0;
}
.course-notice h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.course-notice p {
  font-size: 12px;
  color: var(--muted);
}
.course-notice .field-note {
  font-size: 10px;
  margin-top: 13px;
}
.course-facts {
  margin: 0 0 30px;
}
.course-facts > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.course-facts dt {
  color: var(--muted);
}
.course-facts dd {
  margin: 0;
}
.stack-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.stack-links a {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.login-panel {
  max-width: 440px;
  padding: 20px 26px 60px;
  margin: auto;
  text-align: center;
}
.login-panel > img {
  border-radius: 15px;
  margin-bottom: 27px;
}
.login-panel h1 {
  font-size: 30px;
  margin: 12px 0 18px;
  line-height: 1.3;
}
.login-panel > p {
  font-size: 13px;
  color: var(--muted);
}
.login-panel .stack-form {
  margin: 28px 0 20px;
}
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  text-align: left;
  line-height: 1.8;
  font-weight: 400;
}
.checkbox-label input {
  margin: 5px 0 0;
}
.checkbox-label a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.provider-button {
  min-height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}
.login-panel .notice {
  margin: 20px 0;
}
.login-panel .inline-link {
  margin-top: 24px;
}
.legal-section,
.hero-section,
.community-section,
.mission-section,
.faq-section,
.download-screen,
.contact-section {
  padding: 26px;
}
.legal-section h1 {
  margin-bottom: 25px;
}
.legal-section h2 {
  margin-top: 28px;
}
.legal-section p,
.legal-section li {
  font-size: 13px;
}
.legal-section a {
  text-decoration: underline;
}
.hero-logo {
  max-width: 80px;
}
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-button {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.purpose-grid {
  display: grid;
  gap: 20px;
}
.mission-section {
  background: var(--surface-alt);
}
.hero-lead {
  margin-top: 20px;
  font-size: 20px;
}
.faq-section article {
  padding-top: 20px;
}
.notification {
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}
.notification.unread {
  background: var(--accent-soft);
}
.notification p {
  font-size: 13px;
  margin: 12px 0 5px;
}
.mobile-header,
.mobile-nav {
  display: none;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  background: var(--surface);
  padding: 12px;
  z-index: 20;
  border: 1px solid var(--focus);
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: 9px;
  z-index: 30;
  font-size: 13px;
}

.page-hero {
  padding: 38px 36px 26px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.2;
  margin-bottom: 10px;
}
.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}
.legal-content {
  padding: 32px 36px 52px;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.legal-content h2 {
  margin: 30px 0 9px;
  font-size: 19px;
  line-height: 1.35;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p,
.legal-content li {
  color: var(--text);
}
.legal-content ol,
.legal-content ul {
  padding-left: 23px;
}
.legal-content li + li {
  margin-top: 7px;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-alt);
  font-size: .9em;
}

.hero-section,
.community-section,
.mission-section,
.faq-section {
  padding: 36px;
}
.hero-section {
  border-bottom: 1px solid var(--border);
}
.hero-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.hero-section h1 {
  font-size: 34px;
  margin-bottom: 0;
}
.hero-lead {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  margin: 14px 0;
}
.hero-copy,
.section-intro,
.mission-section p:not(.eyebrow),
.faq-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(20, 20, 25, .05);
  font-size: 13px;
  font-weight: 650;
}
.store-button:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.store-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
:root[data-theme="dark"] .store-button img {
  filter: invert(1);
}
.community-section,
.mission-section {
  border-bottom: 1px solid var(--border);
}
.community-section h2,
.mission-section h2,
.faq-section h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.purpose-grid article {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(20, 20, 25, .035);
}
.purpose-grid h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.purpose-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}
.mission-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  background: var(--surface-alt);
}
.mission-section p {
  margin-bottom: 0;
}
.faq-section article {
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.faq-section h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.faq-section p {
  margin-bottom: 0;
}

.download-panel {
  max-width: 570px;
  margin: 0 auto;
  padding: 64px 36px;
}
.download-logo {
  display: block;
  border-radius: 16px;
  margin-bottom: 22px;
}
.download-panel h1 {
  font-size: 30px;
  margin-bottom: 10px;
}
.download-panel > p {
  color: var(--muted);
  font-size: 15px;
}
.download-actions {
  display: grid;
  gap: 11px;
  margin: 28px 0 22px;
}
.download-action {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(20, 20, 25, .06);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.download-action:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(20, 20, 25, .09);
}
.download-action > img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
:root[data-theme="dark"] .download-action > img {
  filter: invert(1);
}
.download-action span {
  flex: 1;
}
.download-action strong,
.download-action small {
  display: block;
  line-height: 1.35;
}
.download-action strong {
  font-size: 15px;
}
.download-action small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.download-action > .icon {
  width: 18px;
  color: var(--muted);
}

.social-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(100%, 390px);
  min-height: 68px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(20, 20, 25, .05);
}
.social-card:hover {
  border-color: var(--accent);
  color: var(--text);
}
.social-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.social-card-text {
  min-width: 0;
  flex: 1;
}
.social-card-text strong,
.social-card-text span {
  display: block;
}
.social-card-text strong {
  font-size: 13px;
}
.social-card-text span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.social-card > .icon {
  width: 17px;
  color: var(--muted);
}

.legal-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(82dvh, 850px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}
.legal-dialog[open] {
  display: flex;
  flex-direction: column;
}
.legal-dialog::backdrop {
  background: rgba(13, 14, 20, .6);
}
.legal-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.legal-dialog-header h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}
.legal-dialog-header .icon-button {
  flex-shrink: 0;
  font-size: 27px;
  line-height: 1;
}
.legal-dialog-body {
  overflow-y: auto;
  padding: 24px 28px;
}
.legal-dialog-body .legal-content {
  padding: 0;
}
@media (min-width: 1400px) {
  .app-shell {
    gap: 36px;
  }
}
@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 750px);
    max-width: 1020px;
    gap: 25px;
  }
  .right-rail {
    display: none;
  }
  .sidebar .brand {
    font-size: 24px;
  }
  .main-nav a {
    gap: 12px;
  }
}
@media (max-width: 700px) {
  body {
    background: var(--surface);
  }
  .app-shell {
    display: block;
    padding: 0;
  }
  .sidebar {
    display: none;
  }
  .main-content {
    border: 0;
    min-height: calc(100dvh - 64px);
    padding-bottom: 76px;
  }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
  .mobile-header .brand {
    font-size: 23px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    align-items: center;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 10;
  }
  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 38px;
  }
  .mobile-nav a:nth-child(3) {
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
  }
  .page-header {
    min-height: 76px;
    padding: 20px;
  }
  h1 {
    font-size: 23px;
  }
  .post-card {
    padding: 21px 20px 15px;
  }
  .post-text {
    font-size: 15px;
  }
  .tabs {
    padding: 0 20px;
  }
  .composer-link {
    padding: 18px 20px;
  }
  .feed-label {
    padding: 14px 20px;
  }
  .join-card {
    margin: 23px 20px;
  }
  .post-meta {
    gap: 7px;
  }
  .post-meta time {
    font-size: 10px;
  }
  .post-media.multi img {
    height: 200px;
  }
  .page-padding {
    padding: 0 20px 25px;
  }
  .comments-section {
    padding: 25px 20px;
  }
  .profile-header {
    padding: 12px 20px 26px;
  }
  .profile-counts {
    gap: 15px;
  }
  .course-notice {
    padding: 18px;
    gap: 12px;
  }
  .course-notice > .small-icon {
    display: none;
  }
  .course-facts > div {
    grid-template-columns: 100px 1fr;
    gap: 14px;
  }
  .branch-grid {
    gap: 12px;
  }
  .branch-card > img {
    height: 115px;
  }
  .branch-card > span {
    padding: 12px;
    font-size: 12px;
  }
  .branch-card .icon {
    width: 14px;
  }
  .login-panel {
    padding: 5px 24px 35px;
  }
  .login-panel h1 {
    font-size: 28px;
  }
  #toast {
    bottom: 90px;
    max-width: calc(100vw - 32px);
    width: max-content;
  }
  .notification {
    padding: 20px;
  }
  .comment-actions {
    margin-left: 0;
  }
  .comment .post-text {
    margin-left: 0;
  }
  .search-form .button {
    padding: 10px 13px;
  }
  .button {
    font-size: 12px;
  }
  .profile-person .person strong {
    font-size: 18px;
  }
  .status-page {
    min-height: 60vh;
  }
  .small-links {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

.mobile-footer,
.mobile-account-tools {
  display: none;
}

@media (max-width: 700px) {
  .cookie-consent {
    left: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    padding: 16px;
  }
  .auth-layout .cookie-consent {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .mobile-footer,
  .mobile-account-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 24px 20px;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--border);
  }
  .mobile-account-tools {
    font-size: 14px;
  }
}

.feed-tabs {
  min-height: 72px;
  align-items: stretch;
}
.feed-tabs a {
  display: flex;
  align-items: center;
  padding: 20px 0;
  font-size: 15px;
}
.rail-link {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  font-size: 13px;
}
.rail-link span {
  flex: 1;
}
.rail-link > .icon {
  width: 18px;
  height: 18px;
}
.auth-layout .mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: auto;
  padding: 28px 24px;
  height: auto;
  border: 0;
  background: none;
}
.auth-layout .app-shell {
  display: block;
  max-width: 520px;
  min-height: 0;
}
.auth-layout .main-content {
  border: 0;
  min-height: 0;
  padding-bottom: 0;
  background: none;
}
.auth-layout .mobile-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 11px;
  color: var(--muted);
  border: 0;
  padding: 24px;
}
.auth-layout .login-panel {
  padding: 36px 16px 28px;
  text-align: left;
}
.auth-layout .login-panel h1 {
  font-size: 26px;
  margin: 28px 0 12px;
}
.login-panel .back-link {
  font-size: 13px;
}
.login-availability {
  border-left: 2px solid var(--border);
  padding-left: 14px;
}
.provider-button img {
  object-fit: contain;
}
.google-provider {
  background: #fff;
  border-color: #747775;
  color: #1f1f1f;
}
.apple-provider {
  background: #000;
  border-color: #000;
  color: #fff;
}
.apple-provider img {
  filter: invert(1);
}
.auth-layout .checkbox-label {
  font-size: 12px;
}
@media (max-width: 700px) {
  .feed-tabs {
    min-height: 60px;
  }
  .auth-layout .login-panel {
    padding-top: 12px;
  }
  .auth-layout .mobile-header {
    padding: 22px 24px;
  }
  .page-hero,
  .hero-section,
  .community-section,
  .mission-section,
  .faq-section {
    padding: 28px 20px;
  }
  .legal-content {
    padding: 27px 20px 42px;
  }
  .purpose-grid,
  .mission-section {
    grid-template-columns: 1fr;
  }
  .download-panel {
    padding: 42px 20px;
  }
  .legal-dialog-body {
    padding: 20px;
  }
}
