:root {
  --v2-cream: #fdebdb;
  --v2-sand: #f4df8c;
  --v2-orange: #e97132;
  --v2-orange-dark: #b95322;
  --v2-ink: #1f1f1f;
  --v2-brown: #8a6f52;
  --v2-canvas: #f8f2eb;
  --v2-surface: #fffdfa;
  --v2-surface-soft: #fff8f2;
  --v2-line: rgba(93, 72, 50, 0.16);
  --v2-line-strong: rgba(93, 72, 50, 0.25);
  --v2-shadow: 0 18px 46px rgba(78, 55, 35, 0.08);
  --v2-shadow-soft: 0 8px 22px rgba(78, 55, 35, 0.055);
  --v2-radius-xl: 24px;
  --v2-radius-lg: 20px;
  --v2-radius-md: 14px;
  --v2-sidebar: 224px;
  --v2-topbar: 78px;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

html {
  background: var(--v2-canvas);
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  background: var(--v2-canvas);
  color: var(--v2-ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
.brand,
.app-brand {
  font-family: var(--font-display);
}

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

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(233, 113, 50, 0.26);
  outline-offset: 2px;
}

.shell {
  width: min(100% - 48px, 1220px);
  max-width: 1220px;
  margin-inline: auto;
}

.icon {
  width: 20px;
  height: 20px;
}

.eyebrow,
.card-kicker {
  margin-bottom: 8px;
  color: var(--v2-orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button .icon {
  width: 16px;
  height: 16px;
}

.button--primary {
  background: var(--v2-orange);
  color: white;
  box-shadow: 0 9px 22px rgba(233, 113, 50, 0.22);
}

.button--primary:hover {
  background: var(--v2-orange-dark);
}

.button--secondary,
.button--ghost {
  border-color: rgba(233, 113, 50, 0.38);
  background: transparent;
  color: var(--v2-orange-dark);
}

.button--secondary:hover,
.button--ghost:hover {
  background: rgba(253, 235, 219, 0.72);
}

.button--dark {
  background: var(--v2-ink);
  color: white;
  box-shadow: 0 9px 22px rgba(31, 31, 31, 0.15);
}

.button--wide {
  width: 100%;
}

.button--compact {
  min-height: 36px;
  padding-inline: 13px;
  font-size: 11px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--v2-orange-dark);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.text-link .icon {
  width: 15px;
}

/* Public shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: 78px;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(255, 253, 250, 0.9);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--v2-ink);
  text-decoration: none;
}

.brand__mark,
.app-brand__mark {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--v2-orange);
  color: white;
}

.brand__mark::after,
.app-brand__mark::after {
  position: absolute;
  inset: 5px -5px -5px 5px;
  z-index: -1;
  border-radius: inherit;
  background: var(--v2-sand);
  content: "";
}

.brand__mark .icon,
.app-brand__mark .icon {
  width: 19px;
  height: 19px;
}

.brand__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.site-nav a {
  position: relative;
  padding: 10px 9px;
  border-radius: 10px;
  color: #57514b;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.site-nav a:hover {
  background: rgba(253, 235, 219, 0.7);
  color: var(--v2-ink);
}

.site-nav a[aria-current="page"] {
  background: rgba(244, 223, 140, 0.45);
  color: var(--v2-orange-dark);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  inset: auto 10px -12px;
  height: 2px;
  border-radius: 99px;
  background: var(--v2-orange);
  content: "";
}

.site-actions {
  justify-self: end;
}

.account-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--v2-ink);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.account-link .icon {
  width: 16px;
  color: var(--v2-orange);
}

.nav-toggle {
  display: none;
}

/* Public home */
.home-dashboard {
  min-height: calc(100vh - 78px);
  padding: 28px 0 46px;
  background:
    radial-gradient(circle at 83% 14%, rgba(244, 223, 140, 0.3), transparent 24%),
    var(--v2-canvas);
}

.home-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}

.home-welcome > div:first-child {
  max-width: 750px;
}

.home-welcome h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.home-welcome > div:first-child > p:last-child {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--v2-brown);
  font-size: 13px;
  line-height: 1.6;
}

.home-welcome__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.home-dashboard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  align-items: start;
  gap: 20px;
}

.home-dashboard__main {
  min-width: 0;
}

.club-focus {
  position: relative;
  min-height: 330px;
  display: flex;
  overflow: hidden;
  border-radius: var(--v2-radius-xl);
  background: var(--v2-ink);
  color: white;
  isolation: isolate;
  box-shadow: 0 19px 38px rgba(31, 31, 31, 0.17);
}

.club-focus::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(233, 113, 50, 0.22), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.035) 35px);
  content: "";
}

.club-focus__content {
  position: relative;
  z-index: 2;
  width: 61%;
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.club-focus__module {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  font-weight: 650;
}

.club-focus h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.club-focus > img {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: -7%;
  width: 58%;
  height: 112%;
  object-fit: contain;
  object-position: center right;
  filter: saturate(0.92) contrast(1.05);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 26%);
  mask-image: linear-gradient(to right, transparent 0%, black 26%);
}

.club-focus__progress {
  width: min(100%, 350px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 8px 12px;
  margin-top: auto;
}

.club-focus__progress > span {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.club-focus__progress > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  line-height: 1.35;
}

.focus-progress {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.focus-progress i {
  width: 68%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--v2-sand);
  animation: progress-in 900ms 180ms both ease-out;
}

.club-focus__next {
  width: min(100%, 380px);
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: white;
  text-decoration: none;
}

.club-focus__next > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.club-focus__next small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.club-focus__next b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-focus__next > .icon {
  width: 16px;
  transition: transform 160ms ease;
}

.club-focus__next:hover > .icon {
  transform: translateX(4px);
}

.club-focus__play {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--v2-orange);
}

.club-focus__play .icon {
  width: 17px;
}

.home-summary {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 14px;
  margin-top: 14px;
}

.summary-panel,
.workspace-list,
.rail-card,
.public-news-list,
.panel,
.hero-card,
.workspace-block,
.broadcast-form,
.broadcast-preview {
  border: 1px solid var(--v2-line);
  background: rgba(255, 253, 250, 0.86);
  box-shadow: var(--v2-shadow-soft);
}

.summary-panel {
  min-height: 154px;
  padding: 18px 20px;
  border-radius: var(--v2-radius-lg);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--v2-orange-dark);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.section-heading a .icon {
  width: 13px;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.summary-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 9px;
  padding: 0 13px;
  border-right: 1px solid var(--v2-line);
}

.summary-stat:first-child {
  padding-left: 0;
}

.summary-stat:last-child {
  padding-right: 0;
  border-right: 0;
}

.summary-stat__icon {
  width: 34px;
  height: 34px;
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 11px;
  background: rgba(253, 235, 219, 0.9);
  color: var(--v2-orange-dark);
}

.summary-stat:nth-child(2) .summary-stat__icon {
  background: rgba(244, 223, 140, 0.52);
  color: #745d1f;
}

.summary-stat:nth-child(3) .summary-stat__icon {
  background: rgba(233, 113, 50, 0.1);
}

.summary-stat__icon .icon {
  width: 17px;
}

.summary-stat b {
  overflow: hidden;
  font-size: 20px;
  letter-spacing: -0.05em;
  line-height: 1;
  text-overflow: ellipsis;
}

.summary-stat small {
  overflow: hidden;
  color: var(--v2-brown);
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.rhythm-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 20px 0 10px;
}

.rhythm-row span {
  position: relative;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--v2-line-strong);
  border-radius: 50%;
  color: var(--v2-brown);
  font-size: 9px;
  font-weight: 750;
}

.rhythm-row span::after {
  position: absolute;
  left: calc(100% + 5px);
  width: calc(100% + 11px);
  height: 1px;
  background: var(--v2-line);
  content: "";
}

.rhythm-row span:last-child::after {
  display: none;
}

.rhythm-row span.is-active {
  border-color: var(--v2-sand);
  background: var(--v2-sand);
  color: var(--v2-ink);
}

.summary-panel--rhythm > p {
  margin: 0;
  color: var(--v2-brown);
  font-size: 9px;
  line-height: 1.45;
}

.workspace-list {
  margin-top: 14px;
  padding: 16px 18px 8px;
  border-radius: var(--v2-radius-lg);
}

.workspace-rows {
  margin-top: 8px;
}

.workspace-row {
  display: grid;
  grid-template-columns: 44px minmax(160px, 230px) minmax(80px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 0;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-ink);
  text-decoration: none;
}

.workspace-row:last-child {
  border-bottom: 0;
}

.workspace-row__icon {
  width: 44px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--v2-orange);
  color: white;
  transition: transform 160ms ease;
}

.workspace-row__icon--2 {
  background: var(--v2-sand);
  color: #69521a;
}

.workspace-row__icon--3 {
  background: var(--v2-ink);
}

.workspace-row__icon--4 {
  background: var(--v2-cream);
  color: var(--v2-orange-dark);
}

.workspace-row:hover .workspace-row__icon {
  transform: rotate(-3deg) scale(1.04);
}

.workspace-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.workspace-row b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-row small {
  overflow: hidden;
  color: var(--v2-brown);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-row > i {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(138, 111, 82, 0.14);
}

.workspace-row > i::after {
  width: 64%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--v2-orange);
  content: "";
}

.workspace-row:nth-child(2) > i::after { width: 48%; background: #c49d31; }
.workspace-row:nth-child(3) > i::after { width: 76%; background: var(--v2-ink); }
.workspace-row:nth-child(4) > i::after { width: 36%; }

.workspace-row > .icon {
  width: 15px;
  transition: transform 160ms ease;
}

.workspace-row:hover > .icon {
  transform: translateX(3px);
}

.home-dashboard__rail {
  display: grid;
  gap: 14px;
}

.rail-card {
  padding: 19px;
  border-radius: var(--v2-radius-lg);
}

.rail-events {
  margin-top: 8px;
}

.rail-event {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-ink);
  text-decoration: none;
}

.rail-event:last-child {
  border-bottom: 0;
}

.rail-event > span:first-child,
.rail-empty > span,
.cabinet-next > span:first-child {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(233, 113, 50, 0.18);
  border-radius: 11px;
  background: rgba(253, 235, 219, 0.72);
  color: var(--v2-orange-dark);
}

.rail-event > span:nth-child(2),
.cabinet-next > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rail-event small,
.cabinet-next small {
  color: var(--v2-orange-dark);
  font-size: 8px;
  font-weight: 750;
}

.rail-event b,
.cabinet-next b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-event em,
.cabinet-next em {
  overflow: hidden;
  color: var(--v2-brown);
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-event > .icon,
.cabinet-next > .icon {
  width: 14px;
}

.rail-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 24px 4px 14px;
  text-align: center;
}

.rail-empty b {
  font-size: 11px;
}

.rail-empty p {
  margin: 0;
  color: var(--v2-brown);
  font-size: 9px;
}

.mentor-profile {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--v2-cream);
  color: var(--v2-orange-dark);
  font-size: 11px;
  font-weight: 800;
}

.mentor-profile .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.55);
}

.mentor-profile > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mentor-profile b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentor-profile small {
  color: var(--v2-brown);
  font-size: 9px;
  line-height: 1.35;
}

.rail-card--entry {
  position: relative;
  overflow: hidden;
  border-color: rgba(233, 113, 50, 0.2);
  background: var(--v2-sand);
}

.rail-card--entry::after {
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border: 28px solid rgba(233, 113, 50, 0.15);
  border-radius: 50%;
  content: "";
}

.rail-card--entry > * {
  position: relative;
  z-index: 1;
}

.rail-card__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--v2-orange);
  color: white;
  box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.54);
}

.rail-card--entry h3 {
  margin-bottom: 6px;
  font-size: 15px;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.rail-card--entry p {
  color: #6b542e;
  font-size: 9px;
  line-height: 1.5;
}

.public-news-band {
  padding: 68px 0 74px;
  background: var(--v2-cream);
}

.public-news-band__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(48px, 8vw, 110px);
}

.public-news-band h2 {
  max-width: 420px;
  margin-bottom: 22px;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.public-news-list {
  padding: 8px 20px;
  border-radius: var(--v2-radius-lg);
}

.public-news-list > a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-ink);
  text-decoration: none;
}

.public-news-list > a:last-child {
  border-bottom: 0;
}

.public-news-list > a > span {
  color: var(--v2-orange-dark);
  font-size: 11px;
  font-weight: 800;
}

.public-news-list b {
  font-size: 12px;
}

.public-news-list p {
  margin: 3px 0 0;
  color: var(--v2-brown);
  font-size: 10px;
  line-height: 1.45;
}

.public-news-list .icon {
  width: 15px;
}

/* Public inner pages */
.section,
.page-hero,
.section--cabinet,
.workspace-section {
  padding-block: 30px;
}

.section--tight {
  padding-top: 0;
  padding-bottom: 30px;
}

.page-hero {
  padding-top: 48px;
}

.page-hero__grid {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 56px;
}

.page-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(36px, 4.8vw, 58px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.page-hero .lead {
  max-width: 760px;
  margin: 17px 0 0;
  color: var(--v2-brown);
  font-size: 14px;
  line-height: 1.65;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--v2-radius-lg);
}

.hero-card--accent {
  border-color: rgba(233, 113, 50, 0.24);
  background: var(--v2-sand);
}

.hero-card--soft {
  background: rgba(255, 253, 250, 0.82);
}

.hero-card__label {
  margin-bottom: 8px;
  color: var(--v2-orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin-bottom: 4px;
  font-size: 34px;
  letter-spacing: -0.06em;
}

.hero-card p {
  margin-bottom: 0;
  color: #63584e;
  font-size: 11px;
  line-height: 1.6;
}

.hero-card p + .button {
  margin-top: 16px;
}

.public-grid,
.cards-grid,
.panel__split,
.editor-columns,
.admin-grid {
  display: grid;
  gap: 14px;
}

.public-grid--wide {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
}

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

.cards-grid--fit {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.panel {
  padding: 22px;
  border-radius: var(--v2-radius-lg);
}

.panel--compact {
  min-height: 190px;
  padding: 20px;
}

.panel h2,
.panel h3 {
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.panel h2 { font-size: 20px; }
.panel h3 { font-size: 15px; }

.panel p {
  color: #5f554c;
  font-size: 11px;
  line-height: 1.65;
}

.panel a:not(.button) {
  color: var(--v2-orange-dark);
}

.icon-badge {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 12px;
  background: var(--v2-cream);
  color: var(--v2-orange-dark);
  font-size: 17px;
  font-weight: 800;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.timeline__item {
  position: relative;
  display: block;
  min-height: 62px;
  padding: 13px 0 13px 36px;
  border-bottom: 1px solid var(--v2-line);
}

.timeline__item:last-child {
  border-bottom: 0;
}

.timeline__item::before {
  position: absolute;
  top: 18px;
  left: 3px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--v2-surface);
  border-radius: 50%;
  background: var(--v2-orange);
  box-shadow: 0 0 0 1px var(--v2-orange);
  content: "";
}

.timeline__item::after {
  position: absolute;
  top: 32px;
  bottom: -15px;
  left: 8px;
  width: 1px;
  background: var(--v2-line-strong);
  content: "";
}

.timeline__item:last-child::after {
  display: none;
}

.timeline__item p {
  margin: 0;
}

.tag-cloud,
.checkbox-grid--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-chip {
  padding: 7px 10px;
  border: 1px solid rgba(233, 113, 50, 0.2);
  border-radius: 999px;
  background: rgba(253, 235, 219, 0.68);
  color: var(--v2-brown);
  font-size: 10px;
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--v2-line);
  background: var(--v2-surface);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: start;
  gap: 48px;
}

.footer-brand {
  display: flex;
  gap: 14px;
}

.brand__mark--footer::after {
  display: none;
}

.site-footer__title {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
}

.site-footer__text {
  margin: 0;
  color: var(--v2-brown);
  font-size: 10px;
}

.site-footer__links,
.footer-contact {
  display: grid;
  gap: 7px;
}

.site-footer__links a,
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--v2-brown);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.footer-contact .icon {
  width: 14px;
  color: var(--v2-orange);
}

/* Member shell */
.has-member-shell {
  background: var(--v2-canvas);
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: var(--v2-sidebar);
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--v2-line);
  background: rgba(255, 253, 250, 0.96);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--v2-ink);
  text-decoration: none;
}

.app-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.app-brand strong,
.app-brand small {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.app-brand small {
  color: var(--v2-orange-dark);
}

.app-nav {
  display: grid;
  gap: 7px;
  margin-top: 48px;
}

.app-nav__label {
  margin: 0 10px 5px;
  color: #a08770;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-nav__label--spaced {
  margin-top: 18px;
}

.app-nav > a {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 13px;
  color: #5c554f;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.app-nav > a:hover {
  background: rgba(253, 235, 219, 0.54);
  color: var(--v2-ink);
  transform: translateX(2px);
}

.app-nav > a[aria-current="page"] {
  background: rgba(253, 235, 219, 0.66);
  color: var(--v2-orange-dark);
}

.app-nav__icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.app-nav__icon .icon {
  width: 18px;
}

.app-nav > a[aria-current="page"] .app-nav__icon {
  color: white;
}

.app-nav > a[aria-current="page"] .app-nav__icon::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 10px;
  background: var(--v2-orange);
  box-shadow: 5px 5px 0 var(--v2-sand);
  content: "";
}

.nav-badge {
  min-width: 18px;
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 99px;
  background: var(--v2-orange);
  color: white;
  font-size: 8px;
  font-weight: 800;
}

.app-sidebar__foot {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.app-sidebar__foot a,
.app-sidebar__foot button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--v2-brown);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.app-sidebar__foot a:hover,
.app-sidebar__foot button:hover {
  background: rgba(253, 235, 219, 0.62);
}

.app-sidebar__foot .icon {
  width: 15px;
}

.app-stage {
  min-height: 100vh;
  margin-left: var(--v2-sidebar);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--v2-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 30px;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(248, 242, 235, 0.9);
  backdrop-filter: blur(16px);
}

.app-topbar__eyebrow {
  margin: 0 0 2px;
  color: var(--v2-brown);
  font-size: 8px;
  font-weight: 700;
}

.app-topbar > div:first-child strong {
  font-size: 18px;
  letter-spacing: -0.035em;
}

.app-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-action {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 13px;
  background: rgba(255, 253, 250, 0.7);
  color: var(--v2-ink);
}

.topbar-action .icon {
  width: 18px;
}

.topbar-action .nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
}

.profile-chip {
  min-width: 185px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: 14px;
  color: var(--v2-ink);
  text-decoration: none;
}

.profile-chip:hover {
  background: rgba(255, 253, 250, 0.72);
}

.profile-chip > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profile-chip strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
}

.profile-chip small {
  color: var(--v2-brown);
  font-size: 8px;
}

.profile-chip > .icon {
  width: 14px;
}

.avatar--small {
  width: 38px;
  height: 38px;
}

.app-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.has-member-shell .shell {
  width: min(100% - 60px, 1380px);
  max-width: 1380px;
}

.has-member-shell .section--cabinet,
.has-member-shell .workspace-section {
  padding: 27px 0 40px;
}

.cabinet-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.cabinet-welcome h1 {
  margin: 0 0 4px;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.cabinet-welcome p {
  margin: 0;
  color: var(--v2-brown);
  font-size: 11px;
}

.cabinet-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: stretch;
  gap: 20px;
}

.cabinet-focus {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: var(--v2-radius-xl);
  background: var(--v2-ink);
  color: white;
  box-shadow: 0 18px 36px rgba(31, 31, 31, 0.16);
}

.cabinet-focus::after {
  position: absolute;
  inset: auto -60px -100px auto;
  width: 320px;
  height: 320px;
  border: 55px solid rgba(244, 223, 140, 0.22);
  border-radius: 50%;
  content: "";
}

.cabinet-focus__content {
  position: relative;
  z-index: 2;
  width: 62%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 24px;
}

.cabinet-focus__module {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 650;
}

.cabinet-focus h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.cabinet-focus__content > p:nth-of-type(2) {
  max-width: 520px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.55;
}

.cabinet-focus__metrics {
  display: flex;
  gap: 28px;
  margin-top: auto;
}

.cabinet-focus__metrics span {
  display: grid;
  gap: 2px;
}

.cabinet-focus__metrics b {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.cabinet-focus__metrics small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
}

.cabinet-focus__action {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  text-decoration: none;
}

.cabinet-focus__action > span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--v2-orange);
}

.cabinet-focus__action > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.cabinet-focus__action small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
}

.cabinet-focus__action b {
  font-size: 10px;
}

.cabinet-focus__action > .icon {
  width: 14px;
}

.cabinet-focus__glyph {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: 24%;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  border: 18px solid var(--v2-sand);
  border-radius: 42px;
  background: var(--v2-orange);
  color: white;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 1;
  transform: rotate(-7deg);
  box-shadow: 18px 18px 0 rgba(244, 223, 140, 0.18);
}

.cabinet-rail {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
}

.cabinet-rail__card {
  padding: 18px 19px;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  background: rgba(255, 253, 250, 0.86);
  box-shadow: var(--v2-shadow-soft);
}

.cabinet-next {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  color: var(--v2-ink);
  text-decoration: none;
}

.cabinet-mail-stat {
  display: grid;
  grid-template-columns: 38px auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 12px 0;
}

.cabinet-mail-stat > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(244, 223, 140, 0.52);
  color: #745d1f;
}

.cabinet-mail-stat strong {
  font-size: 25px;
  letter-spacing: -0.05em;
}

.cabinet-mail-stat p {
  margin: 0;
  color: var(--v2-brown);
  font-size: 8px;
  line-height: 1.25;
}

.cabinet-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
  padding: 18px 20px;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  background: rgba(255, 253, 250, 0.82);
  box-shadow: var(--v2-shadow-soft);
}

.cabinet-overview article {
  display: grid;
  grid-template-columns: 36px auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-right: 1px solid var(--v2-line);
}

.cabinet-overview article:first-child { padding-left: 0; }
.cabinet-overview article:last-child { padding-right: 0; border-right: 0; }

.cabinet-overview article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--v2-cream);
  color: var(--v2-orange-dark);
}

.cabinet-overview article:nth-child(2) > span { background: rgba(244, 223, 140, 0.56); color: #70591b; }
.cabinet-overview article:nth-child(3) > span { background: rgba(31, 31, 31, 0.08); color: var(--v2-ink); }
.cabinet-overview b { font-size: 21px; letter-spacing: -0.05em; }
.cabinet-overview small { color: var(--v2-brown); font-size: 8px; line-height: 1.2; }

.cabinet-layout,
.cabinet-main {
  display: block;
}

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

.cabinet-main > .panel {
  grid-column: 1 / -1;
  scroll-margin-top: calc(var(--v2-topbar) + 18px);
}

.cabinet-main > #profile,
.cabinet-main > #messages {
  grid-column: auto;
}

.cabinet-main .panel {
  padding: 21px;
  border-radius: var(--v2-radius-lg);
}

.has-member-shell .panel h2 {
  font-size: 20px;
  line-height: 1.2;
}

.has-member-shell .panel h3 {
  font-size: 15px;
  line-height: 1.25;
}

.panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.status-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(244, 223, 140, 0.56);
  color: #665118;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.metric-card {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--v2-line);
  border-radius: 13px;
  background: var(--v2-surface-soft);
}

.metric-card strong {
  overflow: hidden;
  font-size: 19px;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
}

.metric-card span {
  color: var(--v2-brown);
  font-size: 8px;
  line-height: 1.3;
}

.panel__split {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.78fr);
}

.panel__split--center {
  align-items: center;
}

/* Forms and working content */
.input,
.input-prefix,
.auth-form input,
.auth-form textarea,
.auth-form select,
.chat-composer textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--v2-line-strong);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.88);
  color: var(--v2-ink);
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.input {
  padding: 10px 12px;
}

.input:focus,
.input-prefix:focus-within,
.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus,
.chat-composer textarea:focus {
  border-color: var(--v2-orange);
  background: white;
  box-shadow: 0 0 0 4px rgba(233, 113, 50, 0.09);
}

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

.input-prefix {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.input-prefix b {
  padding-left: 13px;
  color: var(--v2-orange-dark);
}

.input-prefix input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px 10px 4px;
  border: 0;
  background: transparent;
  outline: 0;
}

.form-stack,
.auth-form,
.broadcast-form,
.editor-form {
  display: grid;
  gap: 14px;
}

.form-stack label,
.auth-form label,
.broadcast-form > label,
.profile-email-form label,
.form-columns label {
  display: grid;
  gap: 6px;
}

.form-stack label > span,
.auth-form label > span:first-child,
.broadcast-form label > span,
.profile-email-form label > span,
.field-label {
  color: #4f4740;
  font-size: 10px;
  font-weight: 750;
}

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

.profile-email-form {
  align-items: end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--v2-line);
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  border: 0;
}

.check-chip {
  position: relative;
  padding: 0;
  border: 0;
}

.check-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-chip span {
  display: block;
  padding: 7px 10px;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: var(--v2-surface-soft);
  color: var(--v2-brown);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.check-chip input:checked + span {
  border-color: rgba(233, 113, 50, 0.34);
  background: var(--v2-sand);
  color: var(--v2-ink);
}

.check-chip input:focus-visible + span {
  outline: 3px solid rgba(233, 113, 50, 0.25);
  outline-offset: 2px;
}

.stack-card,
.message-card {
  padding: 14px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: var(--v2-surface-soft);
}

.stack-card--soft {
  background: rgba(253, 235, 219, 0.4);
}

.stack-card p,
.message-card p {
  margin-bottom: 4px;
}

/* Coauthoring */
.has-member-shell .page-hero,
.has-member-shell .section--tight {
  padding-inline: 30px;
}

.has-member-shell .page-hero > .shell,
.has-member-shell .section--tight > .shell {
  width: min(100%, 1380px);
}

.has-member-shell .page-hero__grid {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}

.has-member-shell .page-hero h1 {
  font-size: clamp(30px, 3.4vw, 47px);
}

.has-member-shell .hero-card {
  padding: 19px;
  box-shadow: none;
}

.ordered-list--compact {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #594c40;
  font-size: 9px;
  line-height: 1.45;
}

.coauthor-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: 18px;
}

.coauthor-layout:has(.coauthor-aside[hidden]) {
  grid-template-columns: 1fr;
}

.coauthor-aside {
  position: sticky;
  top: calc(var(--v2-topbar) + 20px);
  max-height: calc(100vh - var(--v2-topbar) - 40px);
  overflow-y: auto;
}

.coauthor-aside[hidden] {
  display: none !important;
}

.coauthor-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.coauthor-board__toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 2px;
}

.coauthor-board__toolbar h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.045em;
}

.search-field {
  min-width: 250px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--v2-line-strong);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.84);
  color: var(--v2-brown);
}

.search-field .icon {
  width: 16px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--v2-ink);
  font-size: 10px;
  outline: 0;
}

.coauthor-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.coauthor-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--v2-orange);
  content: "";
}

.coauthor-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.coauthor-card__head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.response-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(244, 223, 140, 0.52);
  color: #665118;
  font-size: 8px;
  font-weight: 800;
}

.coauthor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--v2-brown);
  font-size: 8px;
}

.coauthor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--v2-line);
}

.response-panel {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 120;
  width: min(calc(100% - 32px), 620px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  background: var(--v2-surface);
  box-shadow: 0 28px 90px rgba(31, 31, 31, 0.24);
  transform: translate(-50%, -50%);
}

.response-panel[hidden] {
  display: none !important;
}

/* Messenger */
.app-page--messenger {
  height: calc(100vh - var(--v2-topbar));
  display: flex;
  flex-direction: column;
  padding: 24px 30px 26px;
  overflow: hidden;
}

.messenger-page-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.messenger-page-head h1 {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 38px);
  letter-spacing: -0.055em;
}

.messenger-page-head > div > p:last-child {
  margin: 5px 0 0;
  color: var(--v2-brown);
  font-size: 10px;
}

.messenger-open {
  display: flex;
  align-items: center;
  gap: 8px;
}

.messenger-workspace {
  min-height: 0;
  display: grid;
  flex: 1;
  grid-template-columns: 312px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
}

.conversation-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--v2-line);
  background: var(--v2-surface);
}

.conversation-pane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 17px 11px;
}

.conversation-pane__head strong,
.conversation-pane__head small {
  display: block;
}

.conversation-pane__head strong {
  font-size: 14px;
  letter-spacing: -0.035em;
}

.conversation-pane__head small {
  margin-top: 2px;
  color: var(--v2-brown);
  font-size: 8px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 11px;
  background: rgba(253, 235, 219, 0.68);
  color: var(--v2-orange-dark);
  cursor: pointer;
}

.icon-button .icon {
  width: 16px;
}

.conversation-filter {
  min-width: 0;
  margin: 0 13px 10px;
  background: var(--v2-surface-soft);
}

.conversation-list__items {
  min-height: 0;
  flex: 1;
  padding: 0 7px 12px;
  overflow-y: auto;
}

.conversation-link {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 13px;
  color: var(--v2-ink);
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease;
}

.conversation-link:hover {
  background: var(--v2-surface-soft);
  transform: translateX(2px);
}

.conversation-link.is-active {
  background: rgba(244, 223, 140, 0.42);
}

.conversation-link.is-active::before {
  position: absolute;
  inset: 11px auto 11px 0;
  width: 3px;
  border-radius: 99px;
  background: var(--v2-orange);
  content: "";
}

.conversation-link__content {
  min-width: 0;
}

.conversation-link__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.conversation-link__top strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-link__top time {
  color: var(--v2-brown);
  font-size: 8px;
}

.conversation-link__preview {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--v2-brown);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-empty,
.empty-chat {
  display: grid;
  align-self: center;
  justify-items: center;
  gap: 6px;
  margin: auto;
  padding: 28px 20px;
  color: var(--v2-brown);
  text-align: center;
}

.conversation-empty p,
.empty-chat p {
  margin: 0;
  font-size: 10px;
}

.conversation-empty small {
  max-width: 210px;
  font-size: 8px;
}

.chat-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(253, 235, 219, 0.32), rgba(255, 253, 250, 0.74)),
    radial-gradient(circle at 1px 1px, rgba(138, 111, 82, 0.12) 1px, transparent 0);
  background-size: auto, 22px 22px;
}

.chat-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 17px;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(255, 253, 250, 0.88);
}

.chat-header__identity {
  min-width: 0;
  flex: 1;
}

.chat-header__identity h2 {
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header__identity p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--v2-brown);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header__status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--v2-brown);
  font-size: 8px;
}

.chat-header__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v2-orange);
}

.chat-back {
  display: none;
}

.chat-thread {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 20px clamp(18px, 3vw, 42px);
  overflow-y: auto;
  scroll-behavior: smooth;
}

.thread-date {
  position: sticky;
  top: 0;
  z-index: 2;
  align-self: center;
  padding: 4px 9px;
  border: 1px solid var(--v2-line);
  border-radius: 99px;
  background: rgba(255, 253, 250, 0.9);
  color: var(--v2-brown);
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.bubble {
  width: fit-content;
  max-width: min(68%, 680px);
  padding: 10px 12px 7px;
  border: 1px solid var(--v2-line);
  border-radius: 7px 16px 16px 16px;
  background: var(--v2-surface);
  box-shadow: 0 4px 12px rgba(78, 55, 35, 0.05);
}

.bubble--own {
  align-self: flex-end;
  border-color: rgba(233, 113, 50, 0.24);
  border-radius: 16px 7px 16px 16px;
  background: #f6e2a1;
}

.bubble__subject {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
}

.bubble > p {
  margin: 0;
  color: var(--v2-ink);
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.5;
}

.bubble__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
  color: var(--v2-brown);
  font-size: 8px;
}

.bubble__foot .icon {
  width: 11px;
  height: 11px;
  color: var(--v2-orange-dark);
}

.empty-chat__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--v2-sand);
  color: var(--v2-orange-dark);
  box-shadow: 5px 5px 0 rgba(233, 113, 50, 0.14);
}

.empty-chat h2,
.empty-chat h3 {
  margin: 5px 0 0;
  color: var(--v2-ink);
}

.chat-composer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 9px;
  padding: 12px 17px 25px;
  border-top: 1px solid var(--v2-line);
  background: rgba(255, 253, 250, 0.92);
}

.chat-composer textarea {
  min-height: 44px;
  max-height: 140px;
  display: block;
  resize: none;
  padding: 11px 14px;
  font-size: 10px;
  line-height: 1.45;
}

.chat-send {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--v2-orange);
  color: white;
  box-shadow: 0 7px 16px rgba(233, 113, 50, 0.24);
  cursor: pointer;
}

.chat-send .icon {
  width: 18px;
}

.composer-hint {
  position: absolute;
  right: 70px;
  bottom: 6px;
  margin: 0;
  color: var(--v2-brown);
  font-size: 8px;
}

/* Authentication */
.auth-section {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 54px 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 223, 140, 0.42), transparent 30%),
    var(--v2-canvas);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: clamp(42px, 7vw, 94px);
}

.auth-intro {
  max-width: 620px;
}

.auth-intro__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 17px;
  background: var(--v2-orange);
  color: white;
  box-shadow: 7px 7px 0 var(--v2-sand);
}

.auth-intro h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.auth-intro > p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--v2-brown);
  font-size: 13px;
  line-height: 1.65;
}

.auth-note {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding: 15px 17px;
  border: 1px solid rgba(233, 113, 50, 0.2);
  border-radius: 15px;
  background: rgba(255, 253, 250, 0.7);
}

.auth-note strong { font-size: 10px; }
.auth-note span { color: var(--v2-brown); font-size: 9px; line-height: 1.45; }

.auth-form {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-xl);
  background: rgba(255, 253, 250, 0.94);
  box-shadow: var(--v2-shadow);
}

.auth-form header {
  margin-bottom: 4px;
}

.auth-form header h2 {
  margin-bottom: 4px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.auth-form header p,
.form-help,
.form-success {
  margin: 0;
  color: var(--v2-brown);
  font-size: 9px;
}

.form-success {
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(244, 223, 140, 0.34);
  color: #665118;
}

.auth-form__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
}

.auth-form__links a {
  color: var(--v2-orange-dark);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

/* Admin and editor */
.workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.workspace-nav {
  position: sticky;
  top: calc(var(--v2-topbar) + 20px);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 17px;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow-soft);
}

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

.workspace-nav__title > span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--v2-orange);
  color: white;
  box-shadow: 5px 5px 0 var(--v2-sand);
}

.workspace-nav__title div { display: grid; gap: 2px; }
.workspace-nav__title strong { font-size: 11px; }
.workspace-nav__title small { color: var(--v2-brown); font-size: 8px; }

.workspace-nav nav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.workspace-nav nav a,
.workspace-nav__back {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--v2-brown);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.workspace-nav nav a.is-active {
  background: rgba(244, 223, 140, 0.44);
  color: var(--v2-orange-dark);
}

.workspace-nav nav .icon,
.workspace-nav__back .icon {
  width: 15px;
}

.workspace-nav__back {
  margin-top: auto;
}

.workspace-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 8px;
}

.workspace-head h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.055em;
}

.workspace-head p,
.workspace-block__head p {
  margin: 4px 0 0;
  color: var(--v2-brown);
  font-size: 9px;
}

.broadcast-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 14px;
}

.broadcast-form,
.broadcast-preview,
.workspace-block {
  padding: 20px;
  border-radius: var(--v2-radius-lg);
}

.broadcast-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.broadcast-form legend {
  width: 100%;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 750;
}

.radio-row input {
  position: absolute;
  opacity: 0;
}

.radio-row span {
  display: block;
  padding: 7px 10px;
  border: 1px solid var(--v2-line);
  border-radius: 99px;
  background: var(--v2-surface-soft);
  color: var(--v2-brown);
  font-size: 9px;
  font-weight: 700;
}

.radio-row input:checked + span {
  border-color: rgba(233, 113, 50, 0.35);
  background: var(--v2-sand);
  color: var(--v2-ink);
}

.form-warning {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(253, 235, 219, 0.55);
}

.form-warning .icon { color: var(--v2-orange-dark); }
.form-warning p { margin: 0; color: var(--v2-brown); font-size: 8px; }

.broadcast-preview h2,
.workspace-block__head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.telegram-preview {
  min-height: 280px;
  margin-top: 14px;
  padding: 20px;
  border-radius: 17px;
  background:
    linear-gradient(rgba(253, 235, 219, 0.48), rgba(255, 253, 250, 0.7)),
    radial-gradient(circle at 1px 1px, rgba(138, 111, 82, 0.14) 1px, transparent 0);
  background-size: auto, 20px 20px;
}

.workspace-block__head {
  margin-bottom: 14px;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--v2-line);
  text-align: left;
}

.data-table th {
  color: var(--v2-brown);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.compact-list {
  display: grid;
}

.compact-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--v2-line);
}

.compact-list > div span { display: grid; gap: 2px; }
.compact-list b { font-size: 9px; }
.compact-list small,
.compact-list em { color: var(--v2-brown); font-size: 8px; font-style: normal; }

.editor-form {
  padding-bottom: 86px;
}

.editor-section {
  display: grid;
  gap: 14px;
}

.editor-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.repeater,
.repeat-row {
  display: grid;
  gap: 9px;
}

.repeat-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
  border: 1px solid var(--v2-line);
  border-radius: 13px;
  background: var(--v2-surface-soft);
}

.repeat-row--pair {
  grid-template-columns: minmax(160px, 0.65fr) minmax(220px, 1fr) auto;
}

.editor-savebar {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.92);
  box-shadow: var(--v2-shadow);
  backdrop-filter: blur(14px);
}

.flash-stack {
  position: relative;
  z-index: 90;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.app-flashes {
  position: fixed;
  top: calc(var(--v2-topbar) + 12px);
  right: 24px;
  width: min(380px, calc(100% - 32px));
  margin: 0;
}

.flash {
  padding: 12px 14px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow-soft);
  font-size: 10px;
}

.flash--success { border-color: rgba(90, 121, 58, 0.3); }
.flash--error { border-color: rgba(175, 66, 40, 0.35); }

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 440ms ease, transform 440ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes progress-in {
  from { width: 0; }
}

@media (min-width: 1181px) {
  body.page {
    width: 100%;
    min-height: 80vh;
    zoom: 1.25;
  }

  .app-stage {
    min-height: 80vh;
  }

  .app-page--messenger {
    height: calc(80vh - var(--v2-topbar));
  }

  .auth-section {
    min-height: calc(80vh - 78px);
  }

  .coauthor-aside {
    max-height: calc(80vh - var(--v2-topbar) - 40px);
  }

  .response-panel {
    max-height: calc(80vh - 40px);
  }
}

@media (max-width: 1279px) {
  :root {
    --v2-sidebar: 82px;
  }

  .site-header__inner {
    grid-template-columns: 190px minmax(0, 1fr) auto;
  }

  .site-nav a {
    padding-inline: 6px;
    font-size: 10px;
    white-space: nowrap;
  }

  .app-sidebar {
    align-items: center;
    padding-inline: 13px;
  }

  .app-brand > span:last-child,
  .app-nav__label,
  .app-nav > a > span:nth-child(2),
  .app-sidebar__foot span,
  .app-sidebar__foot a,
  .app-sidebar__foot button {
    font-size: 0;
  }

  .app-nav > a {
    justify-content: center;
    padding: 6px;
  }

  .app-nav .nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 7px;
  }

  .app-sidebar__foot a,
  .app-sidebar__foot button {
    justify-content: center;
  }

  .cabinet-dashboard {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 980px) {
  :root {
    --v2-sidebar: 0px;
    --v2-topbar: 68px;
  }

  .shell {
    width: min(100% - 36px, 1220px);
  }

  .site-header__inner {
    grid-template-columns: 1fr auto auto;
  }

  .site-nav {
    position: fixed;
    inset: 78px 18px auto;
    display: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--v2-line);
    border-radius: 16px;
    background: var(--v2-surface);
    box-shadow: var(--v2-shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
    font-size: 12px;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--v2-line);
    border-radius: 12px;
    background: var(--v2-surface);
    color: var(--v2-ink);
  }

  .home-dashboard__grid,
  .cabinet-dashboard {
    grid-template-columns: 1fr;
  }

  .home-dashboard__rail,
  .cabinet-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .home-dashboard__rail .rail-card--entry {
    grid-column: 1 / -1;
  }

  .app-sidebar {
    display: none;
  }

  .app-stage {
    margin-left: 0;
    padding-bottom: 78px;
  }

  .app-topbar {
    min-height: var(--v2-topbar);
    padding-inline: 18px;
  }

  .app-topbar__eyebrow,
  .profile-chip > span:nth-child(2),
  .profile-chip > .icon {
    display: none;
  }

  .profile-chip {
    min-width: 0;
    grid-template-columns: 38px;
    padding: 0;
  }

  .app-mobile-nav {
    position: fixed;
    inset: auto 10px 9px;
    z-index: 100;
    height: 62px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px;
    border: 1px solid var(--v2-line);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.96);
    box-shadow: 0 10px 30px rgba(78, 55, 35, 0.17);
    backdrop-filter: blur(14px);
  }

  .app-mobile-nav a {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border-radius: 13px;
    color: var(--v2-brown);
    font-size: 8px;
    font-weight: 750;
    text-decoration: none;
  }

  .app-mobile-nav a[aria-current="page"] {
    background: rgba(244, 223, 140, 0.48);
    color: var(--v2-ink);
  }

  .app-mobile-nav .icon {
    width: 18px;
    height: 18px;
  }

  .app-mobile-nav b {
    position: absolute;
    top: 1px;
    right: calc(50% - 20px);
    min-width: 16px;
    padding: 1px 4px;
    border-radius: 99px;
    background: var(--v2-orange);
    color: white;
    font-size: 7px;
  }

  .has-member-shell .shell {
    width: min(100% - 36px, 1380px);
  }

  .has-member-shell .page-hero,
  .has-member-shell .section--tight,
  .app-page--messenger {
    padding-inline: 18px;
  }

  .has-member-shell .page-hero__grid,
  .coauthor-layout,
  .workspace,
  .broadcast-layout {
    grid-template-columns: 1fr;
  }

  .coauthor-aside,
  .workspace-nav {
    position: static;
    max-height: none;
  }

  .workspace-nav {
    min-height: 0;
  }

  .workspace-nav nav {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .workspace-nav__back {
    margin-top: 16px;
  }
}

@media (max-width: 760px) {
  .shell,
  .has-member-shell .shell {
    width: min(100% - 28px, 1220px);
  }

  .site-actions .account-link span {
    display: none;
  }

  .site-actions .account-link {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .home-dashboard {
    padding-top: 22px;
  }

  .home-welcome,
  .cabinet-welcome,
  .workspace-head,
  .coauthor-board__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .home-welcome,
  .cabinet-welcome,
  .workspace-head,
  .coauthor-board__toolbar {
    display: flex;
  }

  .home-welcome h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .home-welcome__actions {
    flex-wrap: wrap;
  }

  .club-focus {
    min-height: 410px;
  }

  .club-focus__content {
    width: 100%;
    padding: 24px 21px 20px;
  }

  .club-focus h2 {
    max-width: 310px;
    font-size: 29px;
  }

  .club-focus > img {
    top: 69px;
    right: -20%;
    width: 82%;
    height: 62%;
  }

  .club-focus__progress {
    width: 54%;
    margin-top: 34px;
  }

  .club-focus__next {
    width: 68%;
  }

  .home-summary,
  .home-dashboard__rail,
  .cabinet-rail,
  .public-news-band__grid,
  .page-hero__grid,
  .public-grid--wide,
  .cards-grid,
  .admin-grid,
  .editor-columns,
  .cabinet-main,
  .panel__split,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .home-dashboard__rail .rail-card--entry,
  .cabinet-main > #profile,
  .cabinet-main > #messages {
    grid-column: 1;
  }

  .summary-panel,
  .workspace-list,
  .rail-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .workspace-list {
    padding-inline: 0;
  }

  .workspace-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .workspace-row > i {
    display: none;
  }

  .public-news-band {
    padding: 52px 0;
  }

  .public-news-band__grid {
    gap: 28px;
  }

  .page-hero {
    padding-top: 36px;
  }

  .page-hero__grid {
    min-height: 0;
    gap: 22px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cabinet-welcome .button {
    display: none;
  }

  .cabinet-focus {
    min-height: 400px;
  }

  .cabinet-focus__content {
    width: 100%;
    padding: 24px 21px 20px;
  }

  .cabinet-focus__content > p:nth-of-type(2) {
    width: 62%;
  }

  .cabinet-focus__glyph {
    right: -26px;
    bottom: 92px;
    width: 142px;
    height: 142px;
    font-size: 48px;
  }

  .cabinet-focus__metrics {
    width: 64%;
    gap: 20px;
    margin-top: auto;
  }

  .cabinet-overview {
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .cabinet-overview article {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 0 9px;
    text-align: center;
  }

  .cabinet-overview small {
    display: none;
  }

  .form-row,
  .form-columns,
  .profile-email-form,
  .repeat-row--pair {
    grid-template-columns: 1fr;
  }

  .coauthor-board {
    grid-template-columns: 1fr;
  }

  .coauthor-board__toolbar .search-field {
    min-width: 0;
    width: 100%;
  }

  .app-page--messenger {
    height: calc(100dvh - var(--v2-topbar) - 72px);
    padding: 10px 10px 0;
  }

  .messenger-page-head {
    margin-bottom: 10px;
  }

  .app-page--chat-open .messenger-page-head,
  .messenger-page-head > div {
    display: none;
  }

  .messenger-open {
    width: 100%;
  }

  .messenger-open label {
    min-width: 0;
    flex: 1;
  }

  .messenger-open .search-field {
    min-width: 0;
  }

  .messenger-workspace {
    min-height: 0;
    display: block;
    border-radius: 17px;
  }

  .conversation-pane,
  .chat-pane {
    width: 100%;
    height: 100%;
  }

  .conversation-pane {
    border-right: 0;
  }

  .messenger-workspace.has-active-chat .conversation-pane,
  .messenger-workspace:not(.has-active-chat) .chat-pane {
    display: none;
  }

  .chat-back {
    display: grid;
  }

  .chat-back .icon {
    transform: rotate(180deg);
  }

  .chat-header__status {
    display: none;
  }

  .chat-thread {
    padding: 15px 10px;
  }

  .bubble {
    max-width: 88%;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) 42px;
    padding: 9px 9px 22px;
  }

  .composer-hint {
    right: 60px;
    bottom: 5px;
  }

  .auth-section {
    min-height: auto;
    padding: 38px 0;
  }

  .auth-layout {
    gap: 30px;
  }

  .auth-intro h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .auth-form {
    padding: 22px 18px;
  }

  .workspace-nav {
    display: none;
  }
}

@media (max-width: 460px) {
  .site-header__inner {
    gap: 9px;
  }

  .brand__copy strong {
    font-size: 12px;
  }

  .home-welcome__actions .button {
    flex: 1 1 auto;
  }

  .summary-panel {
    padding-inline: 0;
  }

  .summary-stat {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 5px;
    padding-inline: 8px;
    text-align: center;
  }

  .summary-stat__icon {
    grid-row: auto;
  }

  .summary-stat small {
    display: none;
  }

  .club-focus__progress {
    width: 58%;
  }

  .club-focus__next {
    width: 72%;
  }

  .panel,
  .cabinet-main .panel {
    padding: 17px 15px;
    border-radius: 16px;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .site-footer__links,
  .footer-contact {
    grid-column: 1;
  }
}

/* Research constructor */
.research-page {
  width: 100%;
  padding: 24px 28px 38px;
}

.page--projects .app-flashes {
  top: auto;
  bottom: 22px;
}

.research-page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.research-page__head h1 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.research-page__head p {
  max-width: 700px;
  margin: 7px 0 0;
  color: var(--v2-brown);
  font-size: 10px;
}

.research-new-button {
  flex: 0 0 auto;
}

.research-new-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.3fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(233, 113, 50, 0.28);
  border-radius: 17px;
  background: rgba(244, 223, 140, 0.22);
}

.research-new-panel[hidden] {
  display: none;
}

.research-new-panel h2 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: -0.035em;
}

.research-new-panel p {
  margin: 0;
  color: var(--v2-brown);
  font-size: 9px;
}

.research-new-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.research-workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(185px, 0.78fr) minmax(158px, 0.66fr) minmax(340px, 1.62fr);
  align-items: start;
  gap: 12px;
}

.research-projects,
.research-route,
.research-notebook {
  min-width: 0;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.9);
  box-shadow: 0 8px 26px rgba(78, 55, 35, 0.045);
}

.research-projects,
.research-route {
  position: sticky;
  top: calc(var(--v2-topbar) + 16px);
  max-height: calc(100vh - var(--v2-topbar) - 32px);
  overflow: hidden;
}

.research-panel-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--v2-line);
}

.research-panel-head > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.research-panel-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.035em;
}

.research-panel-head span {
  color: var(--v2-brown);
  font-size: 8px;
}

.research-panel-head .icon-button {
  width: 30px;
  height: 30px;
}

.research-project-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - var(--v2-topbar) - 130px);
  padding: 10px;
  overflow-y: auto;
}

.research-project-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--v2-ink);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.research-project-card:hover {
  border-color: var(--v2-line);
  background: var(--v2-surface-soft);
  transform: translateY(-1px);
}

.research-project-card.is-active {
  border-color: rgba(233, 113, 50, 0.56);
  background: rgba(253, 235, 219, 0.48);
}

.research-project-card__body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.research-project-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.research-project-card small {
  overflow: hidden;
  color: var(--v2-brown);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-progress-ring {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--v2-orange) var(--research-progress), rgba(138, 111, 82, 0.12) 0);
  color: var(--v2-brown);
  font-size: 6px;
}

.research-progress-ring::before {
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--v2-surface);
  content: "";
}

.research-project-card.is-active .research-progress-ring::before {
  background: #fff9f3;
}

.research-progress-ring > span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.research-progress-ring b {
  font-size: 9px;
}

.research-projects__foot {
  padding: 9px 12px 12px;
  border-top: 1px solid var(--v2-line);
}

.research-projects__foot p {
  margin: 0 0 6px;
  color: var(--v2-brown);
  font-size: 7px;
}

.research-line-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(138, 111, 82, 0.12);
}

.research-line-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--v2-orange);
}

.research-route ol {
  display: grid;
  margin: 0;
  padding: 10px;
  list-style: none;
}

.research-route li {
  position: relative;
}

.research-route li:not(:last-child)::after {
  position: absolute;
  top: 43px;
  bottom: -5px;
  left: 24px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(233, 113, 50, 0.42) 0 3px, transparent 3px 6px);
  content: "";
}

.research-step {
  position: relative;
  z-index: 1;
  min-height: 51px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 13px;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #6f655d;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.research-step:hover {
  background: var(--v2-surface-soft);
  color: var(--v2-ink);
  transform: translateX(2px);
}

.research-step.is-current {
  border-color: rgba(233, 113, 50, 0.18);
  background: rgba(244, 223, 140, 0.34);
  color: var(--v2-ink);
}

.research-step__number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dedbd7;
  color: white;
  font-size: 9px;
  font-weight: 800;
}

.research-step.is-current .research-step__number {
  background: var(--v2-orange);
  box-shadow: 3px 3px 0 rgba(244, 223, 140, 0.72);
}

.research-step.is-complete .research-step__number {
  background: #8aad42;
}

.research-step__number .icon {
  width: 14px;
}

.research-step strong,
.research-step small {
  display: block;
}

.research-step strong {
  font-size: 9px;
}

.research-step small {
  margin-top: 2px;
  color: var(--v2-brown);
  font-size: 7px;
}

.research-step__arrow {
  color: var(--v2-orange);
  opacity: 0;
  transition: opacity 150ms ease;
}

.research-step__arrow .icon {
  width: 12px;
}

.research-step:hover .research-step__arrow,
.research-step.is-current .research-step__arrow {
  opacity: 1;
}

.research-notebook {
  overflow: hidden;
}

.research-notebook__status {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-brown);
  font-size: 7px;
}

.research-notebook__status > span:first-child {
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-save-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.research-save-state::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8b1a9;
  content: "";
}

.research-save-state[data-state="saved"]::before {
  background: #8aad42;
}

.research-save-state[data-state="dirty"]::before,
.research-save-state[data-state="saving"]::before {
  background: var(--v2-sand);
}

.research-save-state[data-state="saving"]::before {
  animation: research-pulse 800ms ease-in-out infinite alternate;
}

.research-save-state[data-state="error"] {
  color: #a5412c;
}

.research-save-state[data-state="error"]::before {
  background: #c95b45;
}

@keyframes research-pulse {
  to { opacity: 0.28; }
}

.research-notebook__intro {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 17px 16px 12px;
}

.research-notebook__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(233, 113, 50, 0.24);
  border-radius: 12px;
  background: rgba(253, 235, 219, 0.62);
  color: var(--v2-orange-dark);
}

.research-notebook__icon .icon {
  width: 18px;
}

.research-notebook__intro h2 {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 23px);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.research-notebook__intro p {
  margin: 5px 0 0;
  color: var(--v2-brown);
  font-size: 9px;
  line-height: 1.5;
}

.research-form {
  padding: 0 16px 16px;
}

.research-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.research-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}

.research-field--primary,
.research-field:has(textarea[rows="14"]) {
  grid-column: 1 / -1;
}

.research-field__label {
  min-height: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.research-field__label strong {
  font-size: 9px;
}

.research-field__label small {
  overflow: hidden;
  color: var(--v2-brown);
  font-size: 7px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-field input,
.research-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--v2-line-strong);
  border-radius: 11px;
  background: rgba(255, 253, 250, 0.92);
  color: var(--v2-ink);
  font-size: 9px;
  line-height: 1.55;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.research-field input {
  min-height: 39px;
  padding: 0 11px;
}

.research-field textarea {
  min-height: 76px;
  max-height: 420px;
  padding: 10px 11px;
  resize: vertical;
}

.research-field--primary textarea {
  min-height: 128px;
  background:
    linear-gradient(rgba(255, 253, 250, 0.92), rgba(255, 253, 250, 0.92)),
    radial-gradient(circle at 1px 1px, rgba(138, 111, 82, 0.17) 1px, transparent 0);
  background-size: auto, 18px 18px;
}

.research-field input:focus,
.research-field textarea:focus {
  border-color: rgba(233, 113, 50, 0.72);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(233, 113, 50, 0.1);
}

.research-tip {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 9px 11px;
  border: 1px solid rgba(190, 145, 44, 0.25);
  border-radius: 11px;
  background: rgba(244, 223, 140, 0.22);
}

.research-tip > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #9b7318;
}

.research-tip .icon {
  width: 17px;
}

.research-tip p {
  margin: 0;
  color: #725d40;
  font-size: 7px;
  line-height: 1.45;
}

.research-tip strong {
  display: block;
  margin-bottom: 1px;
  color: var(--v2-ink);
  font-size: 8px;
}

.research-form__actions {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.research-form__actions .button {
  min-height: 46px;
}

.research-form__actions .button--primary {
  margin-left: auto;
}

.research-form__actions .button small {
  display: block;
  font-size: 7px;
  font-weight: 600;
  opacity: 0.82;
}

.research-form__actions .button .icon:last-child {
  margin-left: 5px;
}

.research-sources {
  margin: 0 16px 16px;
  padding-top: 15px;
  border-top: 1px solid var(--v2-line);
}

.research-sources__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.research-sources__head h3 {
  margin: 0;
  font-size: 13px;
}

.research-sources__head p {
  margin: 3px 0 0;
  color: var(--v2-brown);
  font-size: 7px;
}

.research-sources__head > span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(244, 223, 140, 0.46);
  font-size: 8px;
  font-weight: 800;
}

.research-source-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 11px;
  border: 1px dashed rgba(233, 113, 50, 0.36);
  border-radius: 13px;
  background: rgba(253, 235, 219, 0.22);
}

.research-source-form > label:not(.research-file-control) {
  display: grid;
  gap: 4px;
}

.research-source-form label > span {
  color: var(--v2-brown);
  font-size: 7px;
  font-weight: 750;
}

.research-source-form .input {
  min-height: 38px;
  font-size: 8px;
}

.research-source-form__note {
  grid-column: 1 / -1;
}

.research-file-control {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid var(--v2-line-strong);
  border-radius: 11px;
  background: var(--v2-surface);
  color: var(--v2-brown);
  cursor: pointer;
}

.research-file-control .icon {
  width: 14px;
}

.research-file-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.research-source-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.research-source-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  padding: 9px;
  border-bottom: 1px solid var(--v2-line);
}

.research-source-item__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(244, 223, 140, 0.36);
  color: var(--v2-orange-dark);
}

.research-source-item__icon .icon {
  width: 16px;
}

.research-source-item strong {
  display: block;
  font-size: 9px;
}

.research-source-item p {
  margin: 3px 0;
  color: var(--v2-brown);
  font-size: 7px;
}

.research-source-item a {
  margin-right: 10px;
  color: var(--v2-orange-dark);
  font-size: 7px;
  font-weight: 750;
  text-decoration: none;
}

.research-source-item .icon-button {
  width: 30px;
  height: 30px;
  color: #a5412c;
}

.research-source-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 16px;
  color: var(--v2-brown);
  text-align: center;
}

.research-source-empty .icon {
  width: 20px;
  color: var(--v2-orange);
}

.research-source-empty p {
  max-width: 300px;
  margin: 0;
  font-size: 8px;
}

.research-assembly {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(340px, 1.8fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 13px;
  padding: 14px 16px;
  border: 1px solid var(--v2-line);
  border-radius: 17px;
  background: rgba(255, 253, 250, 0.82);
}

.research-assembly h2 {
  margin: 0;
  font-size: 11px;
  letter-spacing: -0.025em;
}

.research-assembly > div > p {
  margin: 4px 0 0;
  color: var(--v2-brown);
  font-size: 7px;
}

.research-assembly ol {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-assembly li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #a19a93;
  text-align: center;
}

.research-assembly li:not(:last-child)::after {
  position: absolute;
  top: 10px;
  right: -18%;
  width: 36%;
  height: 1px;
  background: var(--v2-line-strong);
  content: "";
}

.research-assembly li > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dedbd7;
  color: white;
  font-size: 7px;
  font-weight: 800;
}

.research-assembly li.is-current > span {
  background: var(--v2-orange);
}

.research-assembly li.is-complete > span {
  background: #8aad42;
}

.research-assembly li .icon {
  width: 11px;
}

.research-assembly li small {
  font-size: 6px;
}

.research-assembly li.is-current small,
.research-assembly li.is-complete small {
  color: var(--v2-ink);
}

.research-preview {
  width: min(760px, calc(100% - 34px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 19px;
  background: var(--v2-surface);
  box-shadow: 0 28px 90px rgba(31, 31, 31, 0.22);
  color: var(--v2-ink);
}

.research-preview::backdrop {
  background: rgba(31, 31, 31, 0.36);
  backdrop-filter: blur(4px);
}

.research-preview__head,
.research-preview__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--v2-line);
}

.research-preview__head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.research-preview__head p {
  margin: 3px 0 0;
  color: var(--v2-brown);
  font-size: 8px;
}

.research-preview__head .icon-button .icon {
  transform: rotate(45deg);
}

.research-preview__content {
  max-height: calc(100vh - 190px);
  display: grid;
  gap: 0;
  padding: 4px 18px 14px;
  overflow-y: auto;
}

.research-preview__content > section {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--v2-line);
}

.research-preview__content > section > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(244, 223, 140, 0.45);
  color: var(--v2-orange-dark);
  font-size: 9px;
  font-weight: 800;
}

.research-preview h3 {
  margin: 2px 0 9px;
  font-size: 13px;
}

.research-preview h4 {
  margin: 9px 0 2px;
  color: var(--v2-brown);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.research-preview__content p {
  margin: 0;
  font-size: 9px;
  white-space: pre-wrap;
}

.research-preview__empty {
  color: var(--v2-brown);
}

.research-preview__actions {
  border-top: 1px solid var(--v2-line);
  border-bottom: 0;
  background: var(--v2-surface-soft);
}

.research-preview__actions > span {
  color: var(--v2-brown);
  font-size: 8px;
}

.research-empty-state {
  min-height: 480px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 36px;
  border: 1px dashed rgba(233, 113, 50, 0.38);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 253, 250, 0.72), rgba(255, 253, 250, 0.72)),
    radial-gradient(circle at 1px 1px, rgba(138, 111, 82, 0.13) 1px, transparent 0);
  background-size: auto, 22px 22px;
  text-align: center;
}

.research-empty-state > span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--v2-sand);
  color: var(--v2-orange-dark);
  box-shadow: 7px 7px 0 rgba(233, 113, 50, 0.12);
}

.research-empty-state > span .icon {
  width: 27px;
}

.research-empty-state h2 {
  max-width: 610px;
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.research-empty-state p {
  max-width: 560px;
  margin: 0 0 8px;
  color: var(--v2-brown);
  font-size: 10px;
}

@media (max-width: 1279px) {
  .research-page {
    padding-inline: 22px;
  }

  .research-workspace {
    grid-template-columns: minmax(175px, 0.8fr) minmax(145px, 0.66fr) minmax(330px, 1.7fr);
    gap: 10px;
  }

  .research-project-card {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .research-progress-ring {
    width: 32px;
    height: 32px;
  }

  .research-route ol,
  .research-project-list {
    padding-inline: 8px;
  }

  .research-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    padding-inline: 5px;
  }

  .research-step__number {
    width: 28px;
    height: 28px;
  }

  .research-step__arrow {
    display: none;
  }

  .research-assembly {
    grid-template-columns: minmax(155px, 0.7fr) minmax(300px, 1.7fr) auto;
    gap: 12px;
  }
}

@media (max-width: 1100px) {
  .research-page__head {
    align-items: center;
  }

  .research-workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .research-projects {
    grid-row: 1 / 3;
  }

  .research-route {
    position: static;
    grid-column: 2;
    max-height: none;
  }

  .research-route .research-panel-head {
    min-height: 44px;
  }

  .research-route ol {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }

  .research-route li {
    flex: 0 0 108px;
  }

  .research-route li::after {
    display: none;
  }

  .research-step {
    min-height: 52px;
  }

  .research-step small {
    display: none;
  }

  .research-notebook {
    grid-column: 2;
  }

  .research-assembly {
    grid-template-columns: 1fr auto;
  }

  .research-assembly ol {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .research-assembly > .button {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .research-page {
    padding: 14px 12px 92px;
  }

  .page--projects .app-flashes {
    right: 12px;
    bottom: 82px;
  }

  .research-page__head {
    display: grid;
    gap: 12px;
  }

  .research-page__head h1 {
    font-size: 31px;
  }

  .research-page__head p {
    font-size: 11px;
  }

  .research-new-button {
    width: 100%;
  }

  .research-new-panel {
    grid-template-columns: 1fr;
  }

  .research-new-panel form {
    grid-template-columns: 1fr;
  }

  .research-workspace {
    display: flex;
    flex-direction: column;
  }

  .research-projects,
  .research-route,
  .research-notebook {
    width: 100%;
  }

  .research-projects {
    position: static;
    max-height: none;
  }

  .research-project-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .research-project-card {
    flex: 0 0 min(280px, 82vw);
    scroll-snap-align: start;
  }

  .research-projects__foot {
    display: none;
  }

  .research-route {
    order: 2;
  }

  .research-route ol {
    scroll-snap-type: x proximity;
  }

  .research-route li {
    flex-basis: 120px;
    scroll-snap-align: start;
  }

  .research-notebook {
    order: 3;
  }

  .research-notebook__status {
    font-size: 9px;
  }

  .research-notebook__intro {
    padding: 18px 15px 13px;
  }

  .research-notebook__intro h2 {
    font-size: 23px;
  }

  .research-notebook__intro p,
  .research-field input,
  .research-field textarea {
    font-size: 11px;
  }

  .research-form {
    padding-inline: 14px;
  }

  .research-fields {
    grid-template-columns: 1fr;
  }

  .research-field,
  .research-field--primary,
  .research-field:has(textarea[rows="14"]) {
    grid-column: 1;
  }

  .research-field__label strong {
    font-size: 11px;
  }

  .research-field__label small {
    font-size: 9px;
  }

  .research-tip p,
  .research-tip strong {
    font-size: 9px;
  }

  .research-form__actions {
    display: grid;
  }

  .research-form__actions .button {
    width: 100%;
    margin: 0;
  }

  .research-source-form {
    grid-template-columns: 1fr;
  }

  .research-source-form__note {
    grid-column: 1;
  }

  .research-assembly {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .research-assembly ol {
    grid-column: 1;
    grid-row: auto;
    width: 560px;
    transform: scale(0.62);
    transform-origin: left center;
  }

  .research-assembly > .button {
    width: 100%;
    grid-column: 1;
    grid-row: auto;
  }

  .research-preview {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .research-preview__content {
    max-height: calc(100dvh - 190px);
  }

  .research-preview__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .research-empty-state {
    min-height: 520px;
    padding: 28px 18px;
  }

  .app-mobile-nav {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 460px) {
  .research-page__head h1 {
    font-size: 28px;
  }

  .research-notebook__intro {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .research-notebook__icon {
    width: 34px;
    height: 34px;
  }

  .research-field__label {
    align-items: start;
    flex-direction: column;
    gap: 1px;
  }

  .research-field__label small {
    white-space: normal;
  }

  .research-source-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
