:root {
  color-scheme: light;
  --bg: #f6f7f5;
  --panel: #ffffff;
  --panel-soft: #f9faf8;
  --text: #1d2520;
  --muted: #66736c;
  --line: #dfe5df;
  --accent: #16795b;
  --accent-strong: #0f6148;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(20, 34, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 72px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 245, 0.92);
  backdrop-filter: blur(12px);
}

.brand,
.user-menu,
.search,
.profile-head,
.hero-row,
.section-heading,
.form-title,
.actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
}

.search {
  gap: 8px;
  justify-self: center;
  width: min(720px, 100%);
}

.search input,
.search select,
.post-form input,
.post-form select,
.post-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.search input,
.search select {
  height: 42px;
  padding: 0 12px;
}

.search input:focus,
.search select:focus,
.post-form input:focus,
.post-form select:focus,
.post-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 121, 91, 0.12);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.google-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
}

.google-button {
  background: #fff;
}

.google-g {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #d8ded8;
  color: #4285f4;
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  background: #fff;
}

.button.full {
  width: 100%;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.user-menu {
  justify-content: end;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.login-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 121, 91, 0.12);
}

.avatar-fallback {
  display: inline-grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  place-items: center;
  background: #dce8e1;
  color: var(--accent-strong);
  font-weight: 800;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.hero-row {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
}

h3 {
  margin-bottom: 2px;
  font-size: 16px;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.feed {
  min-width: 0;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading span {
  color: var(--muted);
  font-size: 14px;
}

.profile-card,
.side-panel,
.form-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 20px;
}

.profile-card + .profile-card {
  margin-top: 14px;
}

.profile-head {
  gap: 12px;
}

.profile-head > div {
  min-width: 0;
  flex: 1;
}

.profile-head span {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5f2ec;
  color: var(--accent-strong) !important;
  font-size: 12px !important;
  font-weight: 800;
}

.intro {
  margin: 16px 0;
  color: #2b352f;
  white-space: pre-wrap;
}

.contact-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-line span {
  color: var(--muted);
  font-size: 13px;
}

.contact-line strong {
  overflow-wrap: anywhere;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.side-panel label,
.post-form label {
  display: block;
  margin: 16px 0 8px;
  color: #344139;
  font-size: 14px;
  font-weight: 750;
}

.mock-textarea,
.mock-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
}

.mock-textarea {
  min-height: 118px;
  padding: 12px;
}

.mock-input {
  min-height: 42px;
  padding: 10px 12px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-bottom: 18px;
}

.form-shell {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.form-card {
  padding: 28px;
}

.form-title {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.post-form textarea {
  min-height: 280px;
  padding: 14px;
  resize: vertical;
}

.post-form input,
.post-form select {
  height: 46px;
  padding: 0 12px;
}

.two-columns {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.counter,
.hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.hint {
  text-align: left;
}

.actions {
  justify-content: flex-end;
  margin-top: 22px;
}

.delete-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.danger-button {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 750;
  cursor: pointer;
}

.errors {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #f3b7af;
  border-radius: 8px;
  background: #fff4f2;
  color: var(--danger);
}

.errors p {
  margin: 0;
}

.empty-state {
  padding: 48px;
  text-align: center;
}

.empty-state.compact {
  padding: 36px;
}

.empty-state p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 14px 20px;
  }

  .search {
    justify-self: stretch;
    min-width: 0;
  }

  .shell,
  .form-shell {
    width: min(100% - 32px, 760px);
  }

  .hero-row,
  .layout,
  .two-columns {
    grid-template-columns: 1fr;
    display: grid;
  }

  h1 {
    font-size: 30px;
  }

  .side-panel {
    position: static;
  }
}
