.mdl.section-page {
  display: grid;
  grid-column: 2;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: calc(100vh - var(--mb-header-h));
  background: #f8f9f9;
}

.section-page__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 5vw, 70px) clamp(28px, 5vw, 76px) 30px;
  border-bottom: 1px solid var(--mb-line);
  background: #ffffff;
}

.section-page__kicker {
  margin: 0 0 10px;
  color: var(--mb-accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.section-page__head h1 {
  margin: 0;
  color: var(--mb-ink);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
}

.section-page__head p:last-child {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--mb-muted);
  font-size: 16px;
  line-height: 1.5;
}

.section-page__user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--mb-line);
  border-radius: 4px;
  color: var(--mb-ink);
  background: #ffffff;
  font-size: 14px;
  font-weight: 650;
}

.section-page__user-link svg { width: 18px; height: 18px; color: var(--mb-accent-strong); }
.section-explorer, .section-feed { padding: clamp(26px, 4vw, 58px) clamp(28px, 5vw, 76px); }

.section-explorer__toolbar { display: flex; gap: 10px; max-width: 760px; }
.section-explorer__search { display: flex; flex: 1; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--mb-line-strong); border-radius: 4px; background: #ffffff; }
.section-explorer__search svg { width: 20px; height: 20px; color: var(--mb-muted); }
.section-explorer__search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--mb-ink); background: transparent; }
.section-explorer__clear { display: grid; place-items: center; width: 48px; min-width: 48px; height: 48px; padding: 0; border: 1px solid var(--mb-line); border-radius: 4px; color: var(--mb-muted); background: #ffffff; cursor: pointer; }
.section-explorer__clear:hover, .section-explorer__clear:focus-visible { color: var(--mb-accent-strong); border-color: var(--mb-accent-strong); outline: none; }
.section-explorer__clear svg { width: 20px; height: 20px; }

.section-explorer__empty, .section-feed__empty { display: grid; justify-items: start; gap: 12px; max-width: 760px; margin-top: 22px; padding: 32px; border: 1px solid var(--mb-line); border-radius: 6px; background: #ffffff; box-shadow: 0 12px 32px rgba(18, 27, 36, 0.05); }
.section-explorer__empty > svg, .section-feed__empty > svg { width: 28px; height: 28px; color: var(--mb-accent-strong); }
.section-explorer__empty h2, .section-feed__empty h2 { margin: 0; font-size: 20px; font-weight: 700; }
.section-explorer__empty p, .section-feed__empty p { margin: 0; color: var(--mb-muted); line-height: 1.5; }
.section-feed { background: #f8f9f9; }

.section-db { display: grid; gap: 22px; }
.section-db__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.section-db__stats > div { display: grid; gap: 6px; min-width: 0; padding: 16px; border: 1px solid var(--mb-line); border-radius: 6px; background: #ffffff; box-shadow: 0 10px 26px rgba(18, 27, 36, 0.04); }
.section-db__stats span { color: var(--mb-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.section-db__stats strong { min-width: 0; overflow-wrap: anywhere; color: var(--mb-ink); font-size: 18px; line-height: 1.16; }
.section-db__stats small { min-width: 0; overflow-wrap: anywhere; color: var(--mb-muted); font-size: 12px; line-height: 1.35; }
.section-db__split { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: 18px; align-items: start; }
.section-db__panel { min-width: 0; }
.section-db__panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.section-db__panel-head h2 { margin: 0; color: var(--mb-ink); font-size: 18px; line-height: 1.2; }
.section-db__panel-head span { color: var(--mb-muted); font-size: 13px; font-weight: 650; }
.section-db__tables, .section-db__items { display: grid; gap: 10px; }
.section-db__table, .section-db__item { min-width: 0; border: 1px solid var(--mb-line); border-radius: 6px; background: #ffffff; box-shadow: 0 10px 26px rgba(18, 27, 36, 0.04); }
.section-db__table { display: grid; gap: 7px; padding: 14px; }
.section-db__table strong { min-width: 0; overflow-wrap: anywhere; color: var(--mb-ink); font-size: 14px; line-height: 1.25; }
.section-db__table span, .section-db__table small { color: var(--mb-muted); font-size: 12px; line-height: 1.3; }
.section-db__item { display: grid; gap: 10px; padding: 16px; }
.section-db__item-id { justify-self: start; max-width: 100%; overflow-wrap: anywhere; color: var(--mb-accent-strong); font-size: 12px; font-weight: 800; line-height: 1.25; }
.section-db__item h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--mb-ink); font-size: 18px; line-height: 1.25; }
.section-db__item-meta { margin: 0; color: var(--mb-muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.section-db__item dl { display: grid; gap: 8px; margin: 0; }
.section-db__item dl div { display: grid; grid-template-columns: minmax(96px, 0.34fr) minmax(0, 1fr); gap: 10px; padding-top: 8px; border-top: 1px solid var(--mb-line); }
.section-db__item dt { min-width: 0; overflow-wrap: anywhere; color: var(--mb-muted); font-size: 12px; font-weight: 700; line-height: 1.35; }
.section-db__item dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--mb-ink); font-size: 13px; line-height: 1.4; }
.section-db__empty { margin: 0; color: var(--mb-muted); font-size: 14px; }

.profile-page { padding: clamp(28px, 5vw, 68px) clamp(28px, 5vw, 76px); }
.profile-hero { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: center; max-width: 900px; padding-bottom: 34px; border-bottom: 1px solid var(--mb-line); }
.profile-avatar { display: grid; place-items: center; width: 112px; height: 112px; overflow: hidden; border: 1px solid rgba(121, 211, 208, 0.45); border-radius: 50%; color: #10212a; background: #a7f1eb; font-size: 32px; font-weight: 700; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-kicker { margin: 0 0 8px; color: var(--mb-accent-strong); font-size: 13px; font-weight: 700; }
.profile-hero h1 { margin: 0; font-size: 34px; line-height: 1.08; }
.profile-about { max-width: 680px; margin: 10px 0 0; color: var(--mb-muted); line-height: 1.5; white-space: pre-wrap; }
.profile-widgets { margin-top: 38px; }
.profile-widgets__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.profile-widgets__head h2 { margin: 0; font-size: 22px; }
.profile-widgets__head p { margin: 0; color: var(--mb-muted); font-size: 14px; }
.profile-widgets__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.profile-widget { display: grid; min-height: 142px; padding: 20px; border: 1px solid var(--mb-line); border-radius: 6px; background: #ffffff; box-shadow: 0 12px 28px rgba(18, 27, 36, 0.05); }
.profile-widget span { color: var(--mb-accent-strong); font-size: 12px; font-weight: 700; }
.profile-widget strong { align-self: center; font-size: 18px; }
.profile-widget small { color: var(--mb-muted); font-size: 13px; }
.profile-settings { max-width: 900px; margin-top: 38px; border: 1px solid var(--mb-line); border-radius: 6px; background: #ffffff; }
.profile-settings summary { padding: 17px 20px; color: var(--mb-ink); font-weight: 700; cursor: pointer; }
.profile-settings__form { display: grid; gap: 18px; padding: 4px 20px 22px; border-top: 1px solid var(--mb-line); }
.profile-settings label { display: grid; gap: 8px; color: var(--mb-muted); font-size: 14px; font-weight: 650; }
.profile-settings input, .profile-settings textarea { width: 100%; border: 1px solid var(--mb-line-strong); border-radius: 4px; padding: 11px 12px; color: var(--mb-ink); background: #ffffff; resize: vertical; }
.profile-settings input:focus, .profile-settings textarea:focus { border-color: var(--mb-accent-strong); outline: 3px solid rgba(121, 211, 208, 0.22); }
.profile-settings__checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.profile-settings__checks label { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border: 1px solid var(--mb-line); border-radius: 4px; color: var(--mb-ink); font-weight: 600; }
.profile-settings__checks input { width: 16px; height: 16px; padding: 0; accent-color: var(--mb-accent-strong); }
.profile-settings button { justify-self: start; min-height: 44px; padding: 0 18px; border: 0; border-radius: 4px; color: #0f2528; background: var(--mb-accent); font-weight: 700; cursor: pointer; }
.profile-settings button:hover, .profile-settings button:focus-visible { background: #a0edeb; outline: none; }
.profile-saved { margin: 0 0 20px; color: #127773; font-weight: 650; }

@media (max-width: 900px) {
  .section-page__head { padding: 28px 24px 24px; }
  .section-page__head h1 { font-size: 28px; }
  .section-page__user-link span { display: none; }
  .section-explorer, .section-feed { padding: 24px; }
  .section-db__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-db__split { grid-template-columns: 1fr; }
  .profile-page { padding: 28px 24px; }
  .profile-hero { grid-template-columns: 78px minmax(0, 1fr); gap: 16px; }
  .profile-avatar { width: 78px; height: 78px; font-size: 23px; }
  .profile-hero h1 { font-size: 28px; }
}
