:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-soft: #fff8fb;
  --line: #eadfe7;
  --line-dark: #d8c8d1;
  --text: #28333c;
  --muted: #6f7882;
  --teal: #6f8f86;
  --teal-dark: #4f746b;
  --blue: #5f8fb6;
  --rose: #d06d88;
  --warning-bg: #fff8ed;
  --warning-line: #efd0a8;
  --green: #76a276;
  --lavender: #8a7bb4;
  --pink-soft: #fdeaf0;
  --sky-soft: #e7f3ff;
  --mint-soft: #e8f4ee;
  --shadow: 0 14px 34px rgba(89, 71, 83, 0.08);
  --radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, #fff8fb 0, var(--bg) 320px),
    var(--bg);
  color: var(--text);
  margin: 0;
}

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

button {
  cursor: pointer;
}

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

.forum-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 2px 10px rgba(89, 71, 83, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 400px minmax(280px, 1fr) auto;
  margin: 0 auto;
  max-width: 1240px;
  padding: 10px 20px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: 78px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  width: 390px;
}

.brand-mark,
.avatar {
  align-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

.brand-mark {
  height: 42px;
  width: 42px;
}

.auth-logo-mark {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(89, 71, 83, 0.08);
  display: block;
  flex: 0 0 auto;
  height: 54px;
  object-fit: contain;
  padding: 5px;
  width: 54px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.header-search {
  display: flex;
  min-width: 0;
}

.header-search input {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius) 0 0 var(--radius);
  min-height: 40px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

.header-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  min-height: 38px;
  padding: 0 14px;
}

.header-search button {
  background: var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #fff;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.inline-form {
  margin: 0;
}

.user-pill {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
  white-space: nowrap;
}

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

.secondary-button {
  background: #f1e9ee;
  color: var(--teal-dark);
}

.text-center {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.full {
  width: 100%;
}

.forum-nav {
  background: #5f7f78;
  color: #fff;
}

.forum-nav {
  display: flex;
  gap: 2px;
  justify-content: center;
  padding: 0 20px;
}

.forum-nav a {
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
}

.forum-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.forum-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 18px 20px 34px;
}

.flash-message {
  background: var(--mint-soft);
  border: 1px solid #c9dfd2;
  border-radius: var(--radius);
  color: #285c38;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.breadcrumbs {
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 8px;
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--blue);
}

.forum-notice {
  align-items: flex-start;
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  line-height: 1.45;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.forum-notice strong {
  color: #9a5632;
  min-width: max-content;
}

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

.main-column,
.sidebar {
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.welcome-panel {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

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

h1 {
  font-size: 28px;
  line-height: 1.16;
  margin-bottom: 7px;
}

.welcome-panel p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.forum-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 90px);
  margin: 0;
}

.forum-stats div {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}

.forum-stats dt {
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 800;
}

.forum-stats dd {
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 0;
}

.panel-header {
  align-items: center;
  background: linear-gradient(#fffafd, #f8f0f5);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 50px;
  padding: 12px 14px;
}

.panel-header h2 {
  font-size: 18px;
  margin: 0;
}

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

.panel-header.small {
  min-height: 44px;
}

.panel-header.small h2 {
  font-size: 16px;
}

.controls-header {
  gap: 14px;
}

.topic-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sort-filter label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
}

.controls-header select {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  min-height: 36px;
  padding: 0 10px;
}

.board-list,
.topic-list,
.activity-list,
.doctor-list,
.cabinet-box {
  display: grid;
}

.board-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 44px minmax(0, 1fr) 88px 88px minmax(160px, 230px);
  padding: 14px;
}

.board-row:last-child,
.topic-row:last-child {
  border-bottom: 0;
}

.board-icon {
  align-items: center;
  background: var(--mint-soft);
  border-radius: var(--radius);
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.board-row:nth-child(2n) .board-icon {
  background: var(--sky-soft);
  color: #416f95;
}

.board-row:nth-child(3n) .board-icon {
  background: var(--pink-soft);
  color: #a94f6a;
}

.board-title,
.topic-title {
  color: #245c82;
  font-weight: 800;
}

.board-description,
.last-post,
.topic-excerpt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
}

.count-cell {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.count-cell strong {
  color: var(--text);
  display: block;
  font-size: 18px;
}

.topic-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) 80px 80px minmax(150px, 210px);
  padding: 13px 14px;
}

.topic-status {
  border-radius: 50%;
  height: 13px;
  margin: 5px auto 0;
  width: 13px;
}

.topic-status.hot {
  background: var(--rose);
}

.topic-status.doctor {
  background: var(--green);
}

.topic-status.normal {
  background: var(--blue);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.badge {
  background: #f6f0f4;
  border: 1px solid #eadde6;
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
}

.badge.danger {
  background: #fff0f2;
  border-color: #f1c9d0;
  color: #9f3347;
}

.badge.editorial {
  background: #f2efff;
  border-color: #ddd7f6;
  color: var(--lavender);
}

.doctor-moderation-panel {
  background: #fff8f9;
  border: 1px solid #edcbd2;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
}

.doctor-moderation-panel strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.doctor-moderation-panel span,
.moderation-note {
  color: var(--muted);
  font-size: 13px;
}

.moderation-inline-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.moderation-inline-form input {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.danger-button {
  background: #a54657;
  border: 1px solid #a54657;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 12px;
}

.danger-button.outline {
  background: #fff;
  color: #9f3347;
}

.last-post strong {
  color: var(--text);
  display: block;
}

.profile-head {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-profile {
  padding: 14px;
}

.mini-profile .avatar {
  height: 44px;
  width: 44px;
}

.profile-head strong,
.profile-head small {
  display: block;
}

.profile-head small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.mini-profile button + button {
  margin-top: 8px;
}

.compact-panel {
  box-shadow: none;
}

.activity-item,
.doctor-item,
.cabinet-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.activity-item:last-child,
.doctor-item:last-child,
.cabinet-item:last-child {
  border-bottom: 0;
}

.activity-item a {
  color: #245c82;
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.activity-item span,
.doctor-item span,
.cabinet-item span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.doctor-item {
  align-items: center;
  display: flex;
  gap: 10px;
}

.doctor-item .avatar {
  flex: 0 0 auto;
  height: 38px;
  width: 38px;
}

.doctor-item strong {
  display: block;
  font-size: 14px;
}

.cabinet-tabs {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
  padding: 12px 14px 0;
}

.cabinet-tab {
  background: #f6f0f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-weight: 800;
  min-height: 34px;
}

.cabinet-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.cabinet-link {
  align-items: center;
  background: #f6f0f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
}

.cabinet-link.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.inline-action {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.topic-detail {
  display: grid;
}

.topic-detail-header {
  background: linear-gradient(#fffafd, #f8f0f5);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.topic-detail-header h1,
.doctor-profile h1,
.cabinet-page h1,
.controls-header h1 {
  font-size: 26px;
  line-height: 1.18;
  margin: 6px 0;
}

.topic-meta {
  color: var(--muted);
  font-size: 13px;
}

.medical-alert {
  background: #fff4f0;
  border-bottom: 1px solid #efc5bb;
  color: #74413a;
  display: grid;
  gap: 5px;
  line-height: 1.45;
  padding: 12px 16px;
}

.medical-alert strong {
  color: #9f3347;
}

.topic-email-panel {
  align-items: end;
  background: #f6fbf8;
  border: 1px solid #cfe3d7;
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) auto;
  margin: 14px 16px;
  padding: 14px;
}

.topic-email-panel strong,
.topic-email-panel span {
  display: block;
}

.topic-email-panel span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 3px;
}

.topic-email-panel label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.topic-email-panel input {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--text);
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.post-card {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 130px;
}

.post-author {
  background: var(--panel-soft);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 16px 12px;
  text-align: center;
}

.post-author .avatar {
  height: 48px;
  width: 48px;
}

.post-author strong,
.doctor-name {
  color: var(--text);
  font-weight: 800;
}

.post-author span:not(.avatar):not(.badge) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.muted-avatar {
  background: #78908c;
}

.post-body {
  line-height: 1.58;
  padding: 18px;
}

.post-body h2,
.reply-box h2,
.profile-grid h2,
.panel-subsection h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.post-body p {
  margin-bottom: 0;
}

.doctor-answer {
  background: #fffafd;
}

.answer-actions,
.reply-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.reply-box {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.reply-box textarea {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  min-height: 120px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.doctor-profile {
  padding: 0;
}

.doctor-profile-head {
  align-items: center;
  background: linear-gradient(#fffafd, #f8f0f5);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  padding: 18px;
}

.big-avatar {
  flex: 0 0 auto;
  font-size: 24px;
  height: 72px;
  width: 72px;
}

.doctor-avatar-photo,
.doctor-mini-photo {
  border-radius: 50%;
  object-fit: cover;
}

.doctor-avatar-photo {
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
  height: 96px;
  width: 96px;
}

.doctor-mini-photo {
  flex: 0 0 auto;
  height: 54px;
  width: 54px;
}

.doctor-profile-head p {
  color: var(--muted);
  margin: 0;
}

.profile-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 260px;
  padding: 18px;
}

.profile-grid p {
  color: var(--muted);
  line-height: 1.58;
}

.booking-box {
  align-self: start;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.booking-box strong {
  font-size: 22px;
}

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

.focus-list {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 18px;
}

.focus-list span {
  background: var(--mint-soft);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
}

.doctor-directory {
  display: grid;
  gap: 0;
}

.doctor-card {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  padding: 16px;
}

.doctor-card:last-child {
  border-bottom: 0;
}

.doctor-card .avatar {
  flex: 0 0 auto;
  height: 48px;
  width: 48px;
}

.doctor-card strong,
.doctor-card span {
  display: block;
}

.doctor-card strong {
  color: #245c82;
}

.doctor-card span span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.cabinet-hero {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.cabinet-hero p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 680px;
}

.eyebrow {
  color: var(--rose);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.cabinet-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.cabinet-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card {
  background: var(--mint-soft);
  border: 1px solid #cfe3d7;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.summary-card strong,
.summary-card span {
  display: block;
}

.summary-card strong {
  color: var(--teal-dark);
  font-size: 26px;
  line-height: 1;
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-top: 6px;
}

.summary-card.accent-pink {
  background: var(--pink-soft);
  border-color: #f0ccd7;
}

.summary-card.accent-sky {
  background: var(--sky-soft);
  border-color: #c9dff3;
}

.patient-dashboard {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.profile-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.profile-form label,
.doctor-profile-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.profile-form input,
.doctor-profile-form input,
.doctor-profile-form textarea {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--text);
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.doctor-profile-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doctor-profile-form textarea {
  line-height: 1.45;
  min-height: 120px;
  resize: vertical;
}

.quick-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.quick-action {
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.quick-action:hover {
  border-color: var(--rose);
}

.quick-action strong {
  color: var(--teal-dark);
}

.quick-action span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.patient-question-list {
  display: grid;
}

.notification-pill {
  background: var(--pink-soft);
  border: 1px solid #f0ccd7;
  border-radius: 999px;
  color: #a94f6a !important;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.doctor-live-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px;
}

.doctor-notice {
  background: var(--sky-soft);
  border-bottom: 1px solid #c9dff3;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.doctor-notice strong {
  color: #416f95;
}

.doctor-notice span {
  color: var(--muted);
  line-height: 1.4;
}

.doctor-question-list {
  display: grid;
}

.doctor-question-card {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 120px;
  padding: 14px 0;
}

.doctor-question-card:first-child {
  padding-top: 0;
}

.doctor-question-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.doctor-question-card .topic-title {
  display: inline-block;
  font-size: 17px;
  margin-top: 8px;
}

.doctor-question-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 6px 0;
}

.patient-question {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 150px;
  padding: 16px;
}

.patient-question:last-child {
  border-bottom: 0;
}

.patient-question .topic-title {
  display: inline-block;
  font-size: 17px;
  margin-top: 8px;
}

.patient-question p {
  color: var(--muted);
  line-height: 1.45;
  margin: 6px 0 0;
}

.patient-question blockquote {
  background: var(--mint-soft);
  border-left: 4px solid var(--teal);
  color: var(--text);
  line-height: 1.45;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.patient-question aside {
  align-content: start;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 8px;
}

.patient-question aside strong {
  color: var(--text);
}

.empty-state {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px;
}

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

.cabinet-item-link:hover strong {
  color: var(--blue);
}

.cabinet-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.cabinet-tile {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.cabinet-tile strong {
  font-size: 17px;
}

.cabinet-tile p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.panel-subsection {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.moderation-list {
  display: grid;
}

.moderation-card {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 280px;
  padding: 16px;
}

.moderation-card:last-child {
  border-bottom: 0;
}

.moderation-card h2 {
  font-size: 18px;
  margin: 8px 0;
}

.moderation-card h2 a {
  color: #245c82;
}

.moderation-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.moderation-form {
  display: grid;
  gap: 10px;
}

.moderation-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 5px;
}

.moderation-form input,
.moderation-form select {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  min-height: 36px;
  padding: 7px 9px;
}

.admin-layout {
  display: grid;
  gap: 16px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-create-form,
.admin-filter {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 80px 150px minmax(160px, 1fr) minmax(220px, 1.4fr) 90px 110px auto;
  padding: 14px;
}

.admin-filter {
  grid-template-columns: 220px auto;
}

.admin-create-form label,
.admin-filter label,
.admin-board-row label,
.admin-topic-controls label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.admin-create-form input,
.admin-create-form select,
.admin-filter select,
.admin-board-row input,
.admin-topic-controls input,
.admin-topic-controls select {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  min-height: 36px;
  padding: 7px 9px;
  width: 100%;
}

.admin-board-list,
.admin-topic-list {
  display: grid;
}

.admin-board-row {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 80px minmax(180px, 1fr) minmax(260px, 1.6fr) 90px 110px auto;
  padding: 14px;
}

.admin-board-row:last-child,
.admin-topic-card:last-child {
  border-bottom: 0;
}

.admin-topic-card {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 340px;
  padding: 16px;
}

.admin-topic-main h2 {
  font-size: 18px;
  margin: 8px 0;
}

.admin-topic-main h2 a {
  color: #245c82;
}

.admin-topic-main p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 8px;
}

.admin-topic-controls {
  display: grid;
  gap: 10px;
}

.admin-checks {
  display: grid;
  gap: 5px;
}

.forum-footer {
  background: var(--teal-dark);
  color: #dce9e6;
  display: flex;
  font-size: 13px;
  gap: 14px;
  justify-content: center;
  padding: 18px;
}

.forum-footer span:first-child {
  color: #fff;
  font-weight: 800;
}

.modal {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: min(560px, calc(100vw - 28px));
  padding: 0;
}

.modal::backdrop {
  background: rgba(63, 58, 70, 0.48);
}

.modal-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  position: relative;
}

.modal-card h3 {
  font-size: 22px;
  margin: 0 36px 4px 0;
}

.modal-card label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.modal-card textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-shell {
  display: grid;
  justify-items: center;
  padding: 34px 0 60px;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  max-width: 460px;
  padding: 24px;
  width: 100%;
}

.wide-auth-card {
  max-width: 760px;
}

.auth-head {
  align-items: center;
  display: flex;
  gap: 14px;
}

.auth-head h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.auth-head p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.compact-auth-form {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.email-code-request {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.auth-divider {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 10px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

.two-column-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-wide {
  grid-column: 1 / -1;
}

.auth-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.auth-form input,
.auth-form textarea {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--text);
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.auth-form textarea {
  min-height: 110px;
  resize: vertical;
}

.auth-row,
.auth-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.auth-row a,
.auth-links a {
  color: #245c82;
  font-size: 13px;
  font-weight: 800;
}

.auth-note {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.45;
  padding: 12px;
}

.auth-note.danger {
  background: #fff4f4;
  border-color: #efc7c7;
  color: #8b3f3f;
}

.auth-title-row {
  align-items: center;
  display: flex;
  gap: 14px;
}

.auth-title-row h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.auth-title-row p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.auth-logo {
  align-items: center;
  background: var(--mint-soft);
  border: 1px solid #cfe3d7;
  border-radius: 50%;
  color: var(--teal-dark);
  display: inline-flex;
  flex: 0 0 54px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.auth-success-note {
  background: #edf8f1;
  border: 1px solid #c9ead3;
  border-radius: var(--radius);
  color: #276644;
  line-height: 1.45;
  padding: 12px;
}

.guest-email-card {
  max-width: 560px;
}

.guest-topic-summary,
.guest-email-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.45;
  padding: 12px;
}

.guest-topic-summary {
  background: var(--panel-soft);
  display: grid;
  gap: 3px;
}

.guest-topic-summary span,
.guest-topic-summary small,
.guest-email-note {
  color: var(--muted);
}

.checkbox-row {
  align-items: center;
  display: flex !important;
  flex-direction: row;
}

.checkbox-row input {
  width: auto;
}

.close-button {
  align-items: center;
  background: #f6f0f4;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  display: inline-flex;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
}

.ask-layout {
  display: grid;
  gap: 18px;
}

.ask-hero {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 330px;
  padding: 22px;
}

.ask-hero h1 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.ask-hero p,
.ask-status span {
  color: var(--muted);
  line-height: 1.58;
}

.ask-status {
  background: #f6fbf8;
  border: 1px solid #d8e9de;
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.ask-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.ask-form {
  display: grid;
  gap: 18px;
}

.ask-step {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}

.ask-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ask-step-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.ask-step-head > span {
  align-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 30px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.ask-step-head h2 {
  font-size: 20px;
  margin-bottom: 3px;
}

.ask-step-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.ask-board-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ask-board-card {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.ask-board-card:has(input:checked) {
  background: #f6fbf8;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(111, 143, 134, 0.14);
}

.ask-board-card input {
  position: absolute;
  opacity: 0;
}

.ask-board-card strong,
.ask-board-card small {
  display: block;
}

.ask-board-card small {
  color: var(--muted);
  line-height: 1.35;
}

.ask-form label:not(.checkbox-row) {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.ask-form input[type="text"],
.ask-form input[type="email"],
.ask-form textarea {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--text);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.ask-form textarea {
  min-height: 180px;
  resize: vertical;
}

.ask-submit-step {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.ask-submit-step span {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.ask-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.ask-alert {
  display: grid;
  gap: 8px;
}

.ask-checklist {
  color: var(--muted);
  display: grid;
  gap: 9px;
  line-height: 1.4;
  margin: 0;
  padding-left: 18px;
}

.doctor-board-create,
.doctor-board-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 86px minmax(0, 1fr) minmax(0, 1.35fr) 86px auto auto;
}

.doctor-board-create {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 12px;
}

.doctor-board-list {
  display: grid;
  gap: 10px;
}

.doctor-board-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.doctor-board-create label,
.doctor-board-row label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.doctor-board-create input,
.doctor-board-row input {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.landing-layout {
  display: grid;
  gap: 18px;
}

.landing-hero {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 330px;
  padding: 20px;
}

.landing-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 9px;
}

.landing-copy h1 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.landing-copy p,
.landing-doctor p {
  color: var(--muted);
  line-height: 1.58;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.landing-doctor {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.doctor-live-status {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  display: flex;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
}

.doctor-live-status strong {
  font-size: 13px;
}

.doctor-live-status.is-online {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.live-dot {
  background: #35a853;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(53, 168, 83, 0.12);
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.doctor-live-status.is-online .live-dot {
  background: #35a853;
  box-shadow: 0 0 0 4px rgba(53, 168, 83, 0.12);
}

.landing-doctor .avatar {
  height: 48px;
  width: 48px;
}

.doctor-card-name {
  color: var(--text);
  display: block;
  font-weight: 800;
  line-height: 1.2;
}

.doctor-card-name:hover {
  color: var(--teal-dark);
}

.landing-doctor-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.landing-doctor-stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 6px;
  text-align: center;
}

.landing-doctor-stats dt {
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 800;
}

.online-stat {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.online-stat.is-updating {
  border-color: #b6d8bc;
  box-shadow: 0 0 0 3px rgba(118, 162, 118, 0.14);
  transform: translateY(-1px);
}

.online-metric {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: center;
}

.online-live-badge {
  background: #dff3e4;
  border: 1px solid #bfe0c6;
  border-radius: 999px;
  color: #2d7a41;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 6px;
  text-transform: uppercase;
}

.landing-doctor-stats dd {
  color: var(--muted);
  font-size: 11px;
  margin: 2px 0 0;
}

.doctor-rating-strip,
.doctor-rating-inline {
  align-items: center;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doctor-rating-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
}

.doctor-rating-strip strong {
  color: var(--teal-dark);
  font-size: 18px;
}

.doctor-rating-strip small,
.doctor-rating-inline small {
  color: var(--muted);
  font-size: 12px;
}

.doctor-rating-inline {
  margin-top: 10px;
}

.rating-stars {
  color: #d69b3a;
  font-weight: 800;
  letter-spacing: 1px;
}

.landing-section {
  padding: 0;
}

.plain-header {
  background: linear-gradient(#fffafd, #f8f0f5);
}

.landing-feature-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-feature {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding: 16px;
}

.landing-feature:last-child {
  border-right: 0;
}

.landing-feature strong,
.landing-board strong,
.landing-topic strong {
  color: var(--text);
  line-height: 1.35;
}

.landing-feature span,
.landing-board small,
.landing-topic span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.landing-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.landing-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-board {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 92px;
  padding: 14px;
}

.landing-board:nth-child(2n) {
  border-right: 0;
}

.landing-board:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.landing-board small {
  display: block;
  margin-top: 4px;
}

.landing-topic-list {
  display: grid;
}

.landing-topic {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 13px 14px;
}

.landing-topic:last-child {
  border-bottom: 0;
}

.landing-focus {
  border-top: 0;
}

.doctor-landing {
  display: grid;
  gap: 18px;
}

.doctor-landing-hero {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  padding: 22px;
}

.doctor-hero-copy h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.doctor-hero-copy > p {
  color: var(--muted);
  line-height: 1.55;
}

.doctor-hero-text {
  margin-top: 14px;
  max-width: 760px;
}

.doctor-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: auto;
  object-fit: cover;
  width: 100%;
}

.doctor-landing-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doctor-info-section {
  overflow: hidden;
}

.doctor-text-block {
  color: var(--muted);
  line-height: 1.62;
  padding: 16px;
}

.certificate-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px;
}

.certificate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  cursor: zoom-in;
  display: grid;
  gap: 8px;
  font: inherit;
  overflow: hidden;
  padding-bottom: 12px;
  text-align: left;
}

.certificate-card img {
  aspect-ratio: 4 / 3;
  background: #f8f4f7;
  object-fit: cover;
  width: 100%;
}

.certificate-card strong,
.certificate-card span {
  padding: 0 12px;
}

.certificate-card strong {
  color: var(--text);
  line-height: 1.3;
}

.certificate-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.compact-certificates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reviews-summary {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  padding: 14px 16px;
}

.reviews-summary strong {
  color: var(--teal-dark);
  font-size: 24px;
}

.reviews-summary span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.review-list {
  display: grid;
}

.review-card {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding: 14px 16px;
}

.review-card:last-child {
  border-bottom: 0;
}

.review-card div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.review-card div span,
.review-card p {
  color: var(--muted);
}

.review-card p {
  line-height: 1.5;
  margin: 0;
}

.review-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.review-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.review-form select,
.review-form textarea {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--text);
  min-height: 40px;
  padding: 8px 10px;
}

.review-form textarea {
  min-height: 96px;
  resize: vertical;
}

.review-gate {
  background: var(--panel-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
  padding: 14px 16px;
}

.image-lightbox {
  background: transparent;
  border: 0;
  max-height: 94vh;
  max-width: min(1120px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

.image-lightbox::backdrop {
  background: rgba(40, 51, 60, 0.62);
}

.image-lightbox-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(40, 51, 60, 0.24);
  display: grid;
  gap: 10px;
  max-height: 94vh;
  overflow: auto;
  padding: 14px;
  position: relative;
}

.image-lightbox-card img {
  border-radius: var(--radius);
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 82vh;
  max-width: 100%;
  object-fit: contain;
}

.image-lightbox-card strong {
  color: var(--text);
  display: block;
  padding-right: 46px;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand-logo {
    height: 66px;
    width: 330px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .forum-layout,
  .landing-hero,
  .landing-grid,
  .ask-hero,
  .ask-grid,
  .doctor-landing-hero,
  .doctor-landing-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .forum-shell {
    padding: 12px 10px 24px;
  }

  .header-inner {
    gap: 10px;
    padding: 12px 10px;
  }

  .header-actions {
    grid-column: 1 / -1;
  }

  .header-actions button {
    flex: 1;
  }

  .forum-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 10px;
  }

  .welcome-panel,
  .cabinet-hero,
  .forum-notice {
    display: block;
  }

  .landing-copy h1 {
    font-size: 28px;
  }

  .landing-feature-grid,
  .landing-board-grid,
  .ask-board-grid,
  .certificate-grid,
  .compact-certificates {
    grid-template-columns: 1fr;
  }

  .landing-feature,
  .landing-board {
    border-right: 0;
  }

  .landing-board:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .landing-board:last-child {
    border-bottom: 0;
  }

  .cabinet-actions {
    margin-top: 14px;
  }

  .forum-stats {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
  }

  .board-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .topic-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .count-cell,
  .board-row .last-post,
  .topic-row .last-post {
    display: none;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .controls-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topic-toolbar {
    justify-content: stretch;
  }

  .sort-filter,
  .sort-filter select,
  .topic-toolbar .primary-button {
    width: 100%;
  }

  .topic-detail-header,
  .doctor-profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-email-panel {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-author {
    align-items: center;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    display: flex;
    justify-content: flex-start;
    text-align: left;
  }

  .profile-grid,
  .patient-dashboard,
  .cabinet-grid,
  .cabinet-summary,
  .doctor-live-grid,
  .ask-submit-step,
  .doctor-board-create,
  .doctor-board-row,
  .moderation-card,
  .admin-topic-card,
  .admin-create-form,
  .admin-board-row {
    grid-template-columns: 1fr;
  }

  .patient-question {
    grid-template-columns: 1fr;
  }

  .doctor-question-card {
    grid-template-columns: 1fr;
  }

  .admin-filter {
    grid-template-columns: 1fr;
  }

  .moderation-inline-form {
    grid-template-columns: 1fr;
  }

  .two-column-form,
  .profile-form,
  .doctor-profile-form {
    grid-template-columns: 1fr;
  }

  .page-tabs {
    padding: 0;
  }
}

@media (max-width: 460px) {
  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    height: 54px;
    width: 270px;
  }

  .forum-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
  }
}
