:root {
  color-scheme: light;
  --ink: #1b2821;
  --muted: #6d7a71;
  --line: #e5eae4;
  --paper: #ffffff;
  --canvas: #f4f6f2;
  --accent: #b7e86d;
  --accent-dark: #24392c;
  --navy: #24392c;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #97c85b;
  outline-offset: 2px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 48px 0 32px;
}

.brand { margin: 0 0 26px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(29px, 7vw, 42px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
h1 span { color: var(--accent-dark); }
.intro { margin: 12px 0 0; color: var(--muted); line-height: 1.5; }

.panel {
  padding: clamp(20px, 6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(28, 50, 36, .07);
}

.mode-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--canvas);
}
.mode-button {
  flex: 1;
  border: 0;
  border-radius: 9px;
  padding: 11px 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mode-button.active {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(28, 50, 36, .08);
}

h2 { margin: 0 0 20px; font-size: 23px; }
h3 { margin: 0 0 12px; font-size: 15px; }
form { display: grid; gap: 10px; }
label { margin-top: 6px; font-size: 13px; font-weight: 700; }
input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}
input:focus {
  outline: 3px solid rgba(151, 200, 91, .22);
  border-color: var(--accent);
}
.primary, .secondary {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.primary {
  margin-top: 12px;
  background: var(--accent);
  color: #20301e;
}
.primary:hover { background: #c8ef91; }
.secondary {
  padding: 0 16px;
  background: var(--canvas);
  color: var(--navy);
}
.optional { color: var(--muted); font-weight: 400; }
.hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.message { min-height: 22px; margin: 14px 0 0; color: #236546; font-size: 14px; }
.message.error { color: #a22e2e; }
.hidden { display: none !important; }

.app-mode .shell { width: 100%; max-width: none; margin: 0; padding: 0; }
.app-mode > .shell > .brand,
.app-mode > .shell > footer,
.app-mode > footer { display: none; }
.app-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 235px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px; border-right: 1px solid var(--line); background: var(--paper); }
.app-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px; }
.app-lion { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 13px; background: #f4e5bf; font-size: 22px; }
.app-brand b { display: block; font-size: 12px; line-height: 1.3; }
.app-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.nav-label { padding: 0 10px 8px; color: #98a19a; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.app-nav {
  display: grid;
  gap: 4px;
}
.app-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #536158;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.app-tab:hover, .app-tab.active { background: #edf5e7; color: #24372a; }
.app-ico { width: 18px; flex: none; text-align: center; font-size: 15px; }
.sidebar-footer { margin-top: auto; }
.leo-card { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f8f8f3; font-size: 10px; }
.leo-card p { margin: 5px 0 0; color: var(--muted); }
.sidebar-user { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 5px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-size: 10px; text-align: left; cursor: pointer; }
.sidebar-user:hover .sidebar-user-copy b { color: var(--accent-dark); }
.sidebar-user b, .sidebar-user small { display: block; }
.sidebar-user-copy { min-width: 0; }
.sidebar-user small { margin-top: 3px; color: var(--muted); }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #dceacb; font-size: 10px; font-weight: 800; }
.app-main { min-width: 0; padding: 20px clamp(15px, 4vw, 48px) 55px; }
.app-topbar { max-width: 1160px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 auto 22px; }
.crumb { color: var(--muted); font-size: 10px; }
.crumb b { color: var(--ink); }
.app-content { max-width: 1160px; margin: 0 auto; }
.app-content > .message { margin-top: 0; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.city-label, .top-action { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.top-action { cursor: pointer; }
.top-action:hover { background: #f8faf6; }
.home-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 17px; padding: 25px; border-radius: 22px; background: #24392c; color: white; }
.hero-eyebrow { margin: 0; color: #9acb66; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.home-hero h1 { max-width: 530px; margin: 7px 0; color: white; font-size: clamp(25px, 3.4vw, 31px); line-height: 1.08; letter-spacing: -.04em; }
.hero-copy { margin: 0; color: #d2dfd1; font-size: 11px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.hero-primary, .hero-secondary { min-height: 38px; padding: 9px 13px; border: 0; border-radius: 10px; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.hero-primary { background: var(--accent); color: #20301e; }
.hero-primary:hover { background: #c8ef91; }
.hero-secondary { background: white; color: var(--ink); }
.hero-stat { min-width: 115px; padding: 13px; border: 1px solid #ffffff2c; border-radius: 13px; background: #ffffff12; }
.hero-stat b { display: block; font-size: 23px; }
.hero-stat small { color: #d5ded4; font-size: 8px; }
.search-wrap { display: block; max-width: 340px; margin: 0; }
.search-wrap input { min-height: 38px; padding: 9px 11px; border-radius: 10px; font-size: 10px; }
.event-filters { display: flex; align-items: center; gap: 6px; overflow-x: auto; margin: 12px 0 18px; padding-bottom: 5px; }
.filter-chip { flex: none; min-height: 31px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #59665c; font: inherit; font-size: 9px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.filter-chip.active { border-color: #25392c; background: #25392c; color: white; }
.date-filter { width: 145px; min-height: 31px; padding: 5px 8px; border-radius: 9px; font-size: 9px; }
.home-events-heading { margin: 18px 0 12px; }
.home-events-heading h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.04em; }
.home-events-heading p { font-size: 11px; }
.event-create-disclosure { margin-bottom: 12px; }
.event-create-disclosure > summary { display: none; }
.place-create-disclosure > summary, .union-create-disclosure > summary { display: none; }
.place-create-disclosure, .union-create-disclosure { margin-top: 14px; }
.places-search { margin-top: 4px; }
.event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
.event-card-featured { display: block; overflow: hidden; padding: 0; border-radius: 16px; box-shadow: 0 10px 32px #1c32240c; }
.event-cover { position: relative; height: 105px; padding: 10px; background: linear-gradient(135deg, #dbe9d3, #97b789); }
.event-cover.snow { background: linear-gradient(135deg, #d9e9ef, #9cbac6); }
.event-cover.ice { background: linear-gradient(135deg, #e1f1ec, #91c2b7); }
.event-badge { display: inline-flex; padding: 5px 7px; border-radius: 20px; background: #ffffffdc; color: var(--ink); font-size: 8px; font-weight: 850; }
.event-illustration { position: absolute; right: 14px; bottom: 5px; font-size: 35px; }
.event-card-content { display: grid; gap: 8px; padding: 12px; }
.event-card-content h4 { margin: 0; font-size: 12px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.event-meta span { padding: 4px 6px; border-radius: 7px; background: #f4f6f1; color: #59675a; font-size: 8px; }
.event-card-content > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.event-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; padding-top: 9px; border-top: 1px solid var(--line); }
.event-card-footer .profile-link { margin-right: auto; font-size: 9px; }
.event-card-footer .small { min-height: 30px; padding: 0 8px; font-size: 8px; }
.event-card.filtered-out { display: none; }
.event-filter-empty { grid-column: 1 / -1; }
.home-lower-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; margin-top: 14px; }
.home-teaser { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 32px #1c32240c; }
.teaser-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.teaser-heading h3 { margin: 0; font-size: 11px; }
.text-action { padding: 4px; border: 0; background: transparent; color: var(--accent-dark); font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.teaser-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #eff1ed; }
.teaser-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: none; border-radius: 11px; background: #eef4e9; font-size: 18px; }
.teaser-row b, .teaser-row small { display: block; }
.teaser-row b { font-size: 9px; }
.teaser-row small, .teaser-empty { color: var(--muted); font-size: 8px; }
.teaser-empty { margin: 0; padding: 8px 0; }
.service-note { margin: 12px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9f4; color: var(--muted); font-size: 9px; line-height: 1.5; }
.service-note b { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.app-view { padding: 4px 0 0; }
.app-view.hidden { display: none; }
.section-intro { margin: 12px 0 18px; }
.section-intro-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-intro h3 { margin: 0; font-size: 20px; }
.section-intro p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.create-disclosure { border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.create-disclosure summary { padding: 14px 16px; color: var(--navy); font-weight: 750; cursor: pointer; }
.create-disclosure[open] summary { border-bottom: 1px solid var(--line); }
.create-disclosure > form { margin: 14px; }
.create-disclosure .event-form { margin: 0; }
.empty-state { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); line-height: 1.5; }
.app-view > .subsection:first-of-type { margin-top: 18px; }
.app-view h3 { margin-top: 0; }
.details {
  display: grid;
  grid-template-columns: minmax(110px, .65fr) 1fr;
  gap: 12px;
  margin: 24px 0;
}
.details dt { color: var(--muted); font-size: 14px; }
.details dd { margin: 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }

.verification {
  display: flex;
  gap: 12px;
  padding: 15px;
  border: 1px solid #f0e0bf;
  border-radius: 12px;
  background: #fff7e8;
}
.status-dot { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--accent); }
.verification p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.permission-box { margin-top: 22px; }
.permission-box ul { margin: 0; padding-left: 20px; color: #39483d; line-height: 1.8; }
footer { margin: 20px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 420px) {
  .shell { padding-top: 32px; }
  .details { grid-template-columns: 1fr; gap: 5px; }
  .details dd { margin-bottom: 9px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 920px); padding-top: 24px; }
  .panel { padding: 18px; }
  .app-layout { display: block; }
  .app-sidebar { position: fixed; inset: auto 0 0; z-index: 10; display: block; width: 100%; height: auto; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); }
  .app-brand, .nav-label, .sidebar-footer { display: none; }
  .app-nav { display: flex; justify-content: space-around; gap: 1px; overflow-x: auto; }
  .app-tab { display: grid; flex: 1; justify-items: center; gap: 1px; min-height: 44px; padding: 5px 2px; font-size: 7px; text-align: center; }
  .app-ico { font-size: 14px; }
  .app-main { padding: 12px 10px 82px; }
  .app-topbar { margin-bottom: 14px; }
  .app-topbar .crumb { font-size: 8px; }
  .top-actions { gap: 3px; }
  .city-label, .top-action { min-height: 30px; padding: 6px; font-size: 8px; }
  .home-hero { padding: 18px; }
  .home-hero h1 { font-size: 26px; }
  .hero-stat { display: none; }
  .hero-actions > button { flex: 1; }
  .search-wrap { max-width: none; }
  .event-grid { grid-template-columns: 1fr; }
  .home-lower-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { max-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-columns { grid-template-columns: 1fr; }
  .profile-hero { align-items: flex-start; flex-wrap: wrap; }
  .profile-hero-actions { width: 100%; margin-left: 0; }
  .profile-hero-actions > button { flex: 1; }
  .home-events-heading h3 { font-size: 23px; }
  .event-create-disclosure { margin-bottom: 10px; }
  .section-intro h3 { font-size: 18px; }
  .section-intro-action { align-items: flex-start; flex-direction: column; }
  .event-card { padding: 13px; }
}

textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}
textarea:focus { outline: 3px solid rgba(151, 200, 91, .22); border-color: var(--accent); }
.workspace { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.workspace > h2 { margin-bottom: 18px; }
.event-form { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.event-form h3 { margin-bottom: 4px; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.date-grid > div { display: grid; gap: 8px; }
.check-row { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.check-row input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--accent-dark); }
.subsection { margin-top: 26px; }
.card-list { display: grid; gap: 11px; }
.event-card { display: grid; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.event-card h4 { margin: 0; font-size: 16px; }
.event-card p { margin: 0; line-height: 1.45; }
.card-meta { color: var(--muted); font-size: 13px; }
.event-card.compact { padding: 13px 15px; }
.event-card.compact p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.small { justify-self: start; min-height: 38px; padding: 0 13px; font-size: 13px; }
.small:disabled { cursor: default; opacity: .65; }
.application-list { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.application-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

.chat-panel { display: grid; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.chat-panel h4 { margin: 0; }
.chat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-toolbar p { margin: 0; }
.chat-messages { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.chat-message { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.chat-message:last-child { padding-bottom: 0; border-bottom: 0; }
.chat-message strong { font-size: 13px; }
.chat-message time { color: var(--muted); font-size: 11px; }
.chat-message p { grid-column: 1 / -1; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
.chat-form .primary { margin: 0; }
@media (max-width: 420px) { .chat-form { grid-template-columns: 1fr; } }

select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.resource-panel { display: grid; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.resource-panel > h4 { margin: 0; }
.resource-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.resource-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.resource-form { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.resource-form .small { justify-self: start; }

.event-focused { outline: 3px solid var(--accent); box-shadow: 0 0 0 6px rgba(151, 200, 91, .16); }

.profile-link { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
.resource-feature-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 32px #1c32240c; }
.resource-cover { position: relative; height: 120px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, #dbe9d3, #98b687); color: white; font-size: 45px; }
.resource-cover-snow { background: linear-gradient(135deg, #d9e9ef, #9cbac6); }
.resource-cover-ice { background: linear-gradient(135deg, #e1f1ec, #91c2b7); }
.resource-cover.union-cover { background: linear-gradient(135deg, #e9e1c5, #bca669); }
.resource-cover small { position: absolute; right: 8px; bottom: 8px; max-width: 80%; overflow: hidden; padding: 5px 7px; border-radius: 15px; background: #ffffffeb; color: var(--ink); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.resource-card-content { display: grid; gap: 8px; padding: 12px; }
.resource-card-content h4 { margin: 0; font-size: 12px; }
.resource-card-content p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.resource-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.resource-tags span { padding: 4px 6px; border-radius: 7px; background: #f4f6f1; color: #59675a; font-size: 8px; }
.resource-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 12px 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.resource-card-actions .small { min-height: 30px; font-size: 8px; }
.chat-workspace { min-height: 340px; }
.chat-layout { min-height: 430px; display: grid; grid-template-columns: minmax(210px, 28%) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 32px #1c32240c; }
.chat-list { overflow-y: auto; border-right: 1px solid var(--line); background: white; }
.chat-list-heading { padding: 12px; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 850; }
.chat-entry { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px; border: 0; border-bottom: 1px solid #f0f2ee; background: white; color: inherit; text-align: left; cursor: pointer; }
.chat-entry:hover, .chat-entry.active { background: #edf5e7; }
.chat-entry-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #dceacb; }
.chat-entry b, .chat-entry small { display: block; }
.chat-entry b { font-size: 9px; }
.chat-entry small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.chat-main { min-width: 0; display: flex; flex-direction: column; }
.chat-main-header { min-height: 51px; display: flex; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.chat-main-header b, .chat-main-header small { display: block; }
.chat-main-header b { font-size: 9px; }
.chat-main-header small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.chat-thread { min-height: 0; flex: 1; background: #fafbf8; }
.chat-thread .chat-panel { height: 100%; min-height: 370px; display: flex; flex-direction: column; margin: 0; padding: 10px; border: 0; }
.chat-thread .chat-panel > h4 { display: none; }
.chat-thread .chat-messages { min-height: 170px; max-height: none; flex: 1; }
.profile-hero { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 18px; border-radius: 17px; background: #24392c; color: white; }
.profile-avatar { width: 55px; height: 55px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #d9eaba; color: var(--ink); font-size: 15px; font-weight: 850; }
.profile-identity { min-width: 0; }
.profile-identity h3 { margin: 0; color: white; font-size: 20px; }
.profile-identity p { margin: 3px 0 6px; color: #d4dfd3; font-size: 9px; }
.profile-role { display: inline-flex; padding: 4px 7px; border-radius: 20px; background: #ffffff24; color: white; font-size: 8px; }
.profile-hero-actions { display: flex; gap: 6px; margin-left: auto; }
.profile-columns { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.profile-column { min-width: 0; display: grid; align-content: start; gap: 12px; }
.profile-panel { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 32px #1c32240c; }
.profile-panel h3 { margin: 0 0 10px; font-size: 11px; }
.profile-panel .details { margin: 0; }
.profile-panel .resource-form { padding: 0; border: 0; }
.profile-panel.verification, .profile-panel.permission-box { margin: 0; }
.profile-panel .card-list { gap: 8px; }
.profile-hero .top-action { background: white; }
#public-profile-panel { margin-top: 18px; }
#public-profile-panel h2 { margin: 8px 0; }
#public-profile-panel > p { line-height: 1.5; }

@media (max-width: 620px) {
  .app-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; }
  .sidebar-footer { display: block; margin: 0; }
  .leo-card { display: none; }
  .sidebar-user { width: auto; min-height: 44px; flex-direction: column; justify-content: center; gap: 2px; margin: 0; padding: 2px 6px; border: 0; text-align: center; }
  .user-avatar { width: 24px; height: 24px; font-size: 8px; }
  .sidebar-user b { max-width: 66px; overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-user small { display: none; }
  .resource-grid { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { max-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-columns { grid-template-columns: 1fr; }
  .profile-hero { align-items: flex-start; flex-wrap: wrap; }
  .profile-hero-actions { width: 100%; margin-left: 0; }
  .profile-hero-actions > button { flex: 1; }
}
