:root {
  --bg: #dedbd9;
  --surface: #fff;
  --surface-soft: #f7f6f5;
  --line: #eeeae7;
  --line-strong: #ded8d3;
  --text: #171513;
  --muted: #77736e;
  --soft: #aaa5a0;
  --coral: #ed6547;
  --coral-dark: #c94f38;
  --coral-soft: #fff0eb;
  --amber: #e6a13c;
  --amber-soft: #fff4dd;
  --green: #607b62;
  --green-soft: #eef5eb;
  --radius: 26px;
  --shadow: 0 24px 70px rgba(20, 20, 20, .1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0, rgba(237, 101, 71, .13), transparent 25%),
    radial-gradient(circle at 85% 5%, rgba(255, 255, 255, .72), transparent 24%),
    var(--bg);
  font: 15px/1.48 Inter, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
select {
  padding-right: 38px !important;
  border-color: var(--line-strong);
  color: var(--text);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #77736e 50%),
    linear-gradient(135deg, #77736e 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
select:hover {
  border-color: #cfc7c1;
  background-color: #fcfbfa;
}
select:focus-visible {
  border-color: #ed9c89;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(237,101,71,.13);
}
select:disabled {
  cursor: not-allowed;
  opacity: .62;
}
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #f5aa99; outline-offset: 3px; }

.shell {
  width: min(1500px, calc(100% - 64px));
  min-height: calc(100vh - 68px);
  margin: 34px auto;
  overflow: hidden;
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: 220px minmax(280px, 680px) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 34px 14px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 750; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; color: #fff; background: #111; font-size: 16px;
}
.search {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 17px;
  border-radius: 999px; color: var(--muted); background: var(--surface-soft);
}
.search img { width: 18px; height: 18px; opacity: .65; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.avatar {
  display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px;
  overflow: hidden; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #efc0ae, #8f4a3e); font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 0 17px; border: 1px solid transparent;
  border-radius: 999px; background: var(--surface-soft); cursor: pointer;
}
.button.primary { color: #fff; background: var(--coral); }
.button.outline { border-color: var(--line-strong); background: #fff; }
.button.small { min-height: 34px; padding-inline: 13px; font-size: 13px; }
.button:hover { transform: translateY(-1px); }

.main-nav {
  display: flex; justify-content: center; gap: 6px; padding: 8px 34px 19px;
  border-bottom: 1px solid var(--line);
}
.main-nav a { padding: 11px 17px; border-radius: 999px; color: #57524e; }
.main-nav a.active { color: #111; background: #f2f1f0; }

.ui-header-demo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.ui-header-demo .topbar { grid-template-columns: 190px minmax(240px, 1fr) auto; padding: 18px 20px; }
.ui-header-demo .brand-mark { width: 40px; height: 40px; }
.ui-header-demo .search { height: 44px; }
.ui-header-demo .main-nav { padding: 2px 20px 15px; }
.ui-header-demo-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.home-mobile-header,
.home-mobile-menu-layer { display: none; }

.layout {
  display: grid; grid-template-columns: 220px minmax(600px, 1fr) 340px;
  gap: 26px; padding: 24px 34px 38px;
}
.layout > *, .feed, .content-card, .post-main, .review-main, .video-copy { min-width: 0; max-width: 100%; }
.sidebar, .rightbar { align-self: start; }
.panel, .card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.panel { padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel-title { margin: 0 0 15px; font-size: 17px; }
.side-menu { display: grid; gap: 5px; }
.side-link {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px;
  border-radius: 999px; color: var(--muted);
}
.side-link img { width: 17px; height: 17px; opacity: .68; }
.side-link.active { color: #111; background: #f2f1f0; font-weight: 650; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.page-title { margin: 0; font-size: 32px; line-height: 1.1; letter-spacing: -.035em; }
.muted { color: var(--muted); }
.micro { color: var(--soft); font-size: 12px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.page-head .chips {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff;
}
.chip.active { color: var(--coral); border-color: #f6c6bb; background: var(--coral-soft); }

.feed { display: grid; gap: 16px; }
.content-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: 25px;
  background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.content-card:hover { transform: translateY(-2px); border-color: #d8cec8; box-shadow: 0 16px 38px rgba(40,28,22,.07); }
.content-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.content-meta .avatar { width: 38px; height: 38px; }
.content-meta strong { color: var(--text); }
.tag { padding: 5px 9px; border-radius: 999px; color: var(--coral-dark); background: var(--coral-soft); font-size: 12px; }
.tag.amber { color: #8b6117; background: var(--amber-soft); }
.tag.dark { color: #fff; background: #171513; }
.content-card h2 { margin: 19px 0 9px; font-size: 24px; line-height: 1.16; letter-spacing: -.025em; }
.content-card h2, .excerpt, .note, .fact, .right-item { overflow-wrap: anywhere; }
.excerpt { margin: 0; color: #504b47; }
.actions { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.action { display: inline-flex; align-items: center; gap: 5px; }
.action img { width: 16px; height: 16px; opacity: .65; }
.read-link { margin-left: auto; color: var(--coral); font-weight: 650; }

.post-card { display: grid; grid-template-columns: 190px minmax(0, 1fr) 155px; min-height: 266px; }
.post-media { min-height: 266px; background: #ddd center / cover no-repeat; }
.post-main { padding: 23px; border-right: 1px solid var(--line); }
.post-stats { display: grid; align-content: center; gap: 9px; padding: 15px; background: var(--surface-soft); }
.stat-box { padding: 10px 11px; border-radius: 14px; background: #fff; }
.stat-box strong { display: block; font-size: 18px; }
.stat-box span { color: var(--muted); font-size: 10px; }

.review-card { display: grid; grid-template-columns: 195px minmax(0, 1fr); }
.review-side { padding: 19px; border-right: 1px solid var(--line); background: var(--surface-soft); }
.author-line { display: flex; align-items: center; gap: 9px; }
.author-line .avatar { width: 38px; height: 38px; }
.score { margin: 17px 0; padding: 16px; border-radius: 18px; background: #fff; text-align: center; }
.score strong { display: block; color: #956919; font-size: 37px; line-height: 1; }
.score span { color: var(--muted); font-size: 11px; }
.facts { display: grid; gap: 7px; font-size: 12px; }
.fact { padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.fact small { display: block; color: var(--muted); }
.review-main { min-width: 0; padding: 23px; }
.review-title { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.review-title h2 { margin: 0; }
.review-content { display: grid; grid-template-columns: minmax(0, 1fr) 205px; gap: 18px; margin-top: 15px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-top: 13px; }
.gallery img { width: 100%; height: 96px; border-radius: 13px; object-fit: cover; }
.ratings { display: grid; align-content: start; gap: 9px; }
.rating-line { display: flex; justify-content: space-between; font-size: 12px; }
.bar { height: 7px; margin-top: 4px; overflow: hidden; border-radius: 999px; background: var(--line); }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--amber); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.note { padding: 12px 13px; border-radius: 14px; background: var(--surface-soft); font-size: 12px; }
.note strong { display: block; margin-bottom: 3px; }
.note.good strong { color: var(--green); }
.note.bad strong { color: var(--coral); }
.card-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

.video-card { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 310px; }
.video-media { position: relative; min-height: 310px; background: #181716 center / cover no-repeat; }
.video-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); }
.play {
  position: absolute; z-index: 1; inset: 50% auto auto 50%; display: grid; place-items: center;
  width: 64px; height: 64px; border: 0; border-radius: 50%; color: #fff; background: var(--coral);
  transform: translate(-50%,-50%); font-size: 23px; cursor: pointer;
}
.duration { position: absolute; z-index: 1; right: 14px; bottom: 14px; padding: 5px 8px; border-radius: 8px; color: #fff; background: rgba(0,0,0,.7); font-size: 11px; }
.video-copy { display: flex; flex-direction: column; padding: 23px; }
.video-copy .actions { margin-top: auto; padding-top: 18px; }

.right-list { display: grid; gap: 0; }
.right-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.right-item:last-child { border-bottom: 0; }
.right-item strong { display: block; margin-bottom: 3px; }
.activity { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 6px 0; }
.activity-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #fff; box-shadow: 0 8px 22px rgba(20,20,20,.05); }
.activity-icon img { width: 16px; height: 16px; }
.activity strong { color: var(--coral); }

.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 23px; }
.page-number { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; }
.page-number.active { color: #fff; border-color: var(--coral); background: var(--coral); }

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, 190px));
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
}
.catalog-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 13px;
  background: #fff;
}
.catalog-search img { width: 17px; height: 17px; opacity: .62; }
.catalog-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.catalog-select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #514c48;
  background: #fff;
}
.choices.catalog-select-choice {
  width: auto;
  min-width: 190px;
  margin: 0;
  overflow: visible;
  font-size: 14px;
}
.choices.catalog-select-choice .choices__inner {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: #514c48;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.choices.catalog-select-choice:hover .choices__inner {
  border-color: #cfc7c1;
  background: #fcfbfa;
}
.choices.catalog-select-choice.is-focused .choices__inner,
.choices.catalog-select-choice.is-open .choices__inner {
  border-color: #ed9c89;
  box-shadow: 0 0 0 3px rgba(237,101,71,.13);
}
.choices.catalog-select-choice[data-type*="select-one"]::after {
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border: 0;
  border-right: 1.8px solid #77736e;
  border-bottom: 1.8px solid #77736e;
  transform: rotate(45deg);
  transition: transform .18s ease, margin-top .18s ease;
}
.choices.catalog-select-choice[data-type*="select-one"].is-open::after {
  margin-top: -2px;
  transform: rotate(225deg);
}
.choices.catalog-select-choice .choices__list--single { padding: 0; }
.choices.catalog-select-choice .choices__list--dropdown {
  z-index: 20;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(38,28,23,.15);
}
.choices.catalog-select-choice .choices__list--dropdown .choices__list {
  max-height: 240px;
  padding: 6px;
}
.choices.catalog-select-choice .choices__item--choice {
  padding: 10px 12px;
  border-radius: 9px;
  color: #514c48;
  font-size: 14px;
}
.choices.catalog-select-choice .choices__item--choice.is-highlighted {
  color: var(--coral-dark);
  background: var(--coral-soft);
}
.choices.catalog-select-choice .choices__item--choice.is-selected::after {
  content: "✓";
  float: right;
  color: var(--coral);
  font-weight: 800;
}
.catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
}
.catalog-summary strong { color: var(--text); }
.review-list { display: grid; gap: 15px; }
.review-card.compact .review-main { padding-bottom: 19px; }
.review-card.compact .gallery img { height: 88px; }
.review-card.compact .proscons { margin-top: 13px; }

.publication-list { display: grid; gap: 15px; }
.publication-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 235px;
}
.publication-cover {
  position: relative;
  min-height: 235px;
  background: #ddd center / cover no-repeat;
}
.publication-cover.video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.38));
}
.publication-cover .play {
  width: 56px;
  height: 56px;
  font-size: 20px;
}
.publication-cover .duration { right: 11px; bottom: 11px; }
.publication-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
}
.publication-copy h2 {
  margin: 18px 0 9px;
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: -.025em;
}
.publication-copy .actions { margin-top: auto; padding-top: 16px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.topic { padding: 5px 9px; border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 11px; }

.sort-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sort-card {
  display: grid;
  grid-template-rows: 190px auto;
  overflow: hidden;
}
.sort-cover {
  position: relative;
  background: #ddd center / cover no-repeat;
}
.sort-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.38));
}
.sort-cover-badges {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.sort-cover-badges span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20,20,20,.7);
  font-size: 11px;
}
.sort-card-body { padding: 18px; }
.sort-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.sort-card h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.sort-score { flex: 0 0 auto; color: var(--amber); font-weight: 700; }
.sort-description { margin: 9px 0 13px; color: #504b47; }
.sort-properties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px;
}
.sort-property {
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 11px;
}
.sort-property small { display: block; color: var(--muted); }
.sort-card-footer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.sort-card-footer .read-link { margin-left: auto; }
.alphabet {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.alphabet a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}
.alphabet a.active { color: #fff; border-color: var(--coral); background: var(--coral); }

.sort-hero {
  overflow: hidden;
}
.sort-hero-copy { padding: 28px; }
.sort-hero-copy h1 { margin: 8px 0 10px; font-size: 40px; line-height: 1.05; letter-spacing: -.04em; }
.sort-hero-rating { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.sort-hero-rating strong { color: #956919; font-size: 32px; }
.sort-hero-rating span { color: var(--muted); }
.sort-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-top: 17px;
}
.sort-fact-box { padding: 11px 12px; border-radius: 13px; background: var(--surface-soft); }
.sort-fact-box small { display: block; color: var(--muted); }
.sort-sections { display: grid; gap: 17px; margin-top: 17px; }
.section-card { padding: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.section-head h2 { margin: 0; font-size: 24px; }
.review-form-card { padding: 24px; }
#add-review {
  border-color: #353433;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 194, 41, .1), transparent 28%),
    linear-gradient(145deg, #292827 0%, #1d1c1b 100%);
  color: #fff;
  box-shadow: 0 22px 55px rgba(25, 22, 20, .18);
}
#add-review .muted,
#add-review .micro,
#add-review .field,
#add-review .rating-input label { color: #bdb8b3; }
#add-review .input {
  color: #f8f6f4;
  border-color: #4a4744;
  background: #343230;
}
#add-review .input::placeholder { color: #908b86; }
#add-review .region-picker-trigger {
  color: #f8f6f4;
  border-color: #4a4744;
  background: #343230;
}
#add-review .region-popup { color: var(--text); }
#add-review .region-popup .region-search { background: var(--surface-soft); }
#add-review .region-popup .region-search input { color: var(--text); }
#add-review .rating-input { background: #343230; }
#add-review .star-value { color: #f5f1ed; }
#add-review .upload-box {
  color: #aaa49f;
  border-color: #55514e;
  background: #302e2c;
}
#add-review .upload-box strong { color: #fff !important; }
#add-review .button:not(.primary) { color: #eeeae6; background: #3b3937; }
#add-review .login-prompt { color: #d4cfca; background: #33312f; }
.review-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-form-grid .wide { grid-column: 1 / -1; }
.rating-inputs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.rating-input { padding: 12px; border-radius: 14px; background: var(--surface-soft); }
.rating-input label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.rating-input select { width: 100%; border: 0; background: transparent; font-weight: 650; }
.rating-input.invalid { outline: 1px solid var(--coral); background: var(--coral-soft); }
.star-picker { display: flex; gap: 3px; }
.star-picker button {
  width: 28px;
  height: 31px;
  padding: 0;
  border: 0;
  color: #d6d0ca;
  background: transparent;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 0 currentColor;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.star-picker button:hover { transform: translateY(-1px); }
.star-picker button.filled {
  color: #ffc229;
  text-shadow: 0 1px 0 #e6a20d, 0 0 8px rgba(255, 194, 41, .22);
}
.star-picker button:focus-visible { border-radius: 6px; outline: 3px solid #f5c775; outline-offset: 1px; }
.star-value { margin-top: 5px; color: var(--text); font-size: 12px; font-weight: 650; }
.star-error { margin-top: 4px; color: var(--coral-dark); font-size: 11px; }
.upload-box {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-soft);
}
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 15px; }
.growing-details {
  margin-top: 14px;
  border: 1px solid #4a4744;
  border-radius: 18px;
  overflow: hidden;
  background: #252321;
}
.growing-details-toggle {
  width: 100%;
  min-height: 76px;
  padding: 16px 18px;
  border: 0;
  color: #fff;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  cursor: pointer;
}
.growing-details-toggle:hover { background: rgba(255,255,255,.035); }
.growing-details-toggle:focus-visible { outline: 3px solid #f5c775; outline-offset: -3px; }
.growing-details-toggle strong,
.growing-details-toggle small { display: block; }
.growing-details-toggle strong { font-size: 16px; }
.growing-details-toggle small { margin-top: 4px; color: #aaa49f; font-size: 12px; }
.growing-details-meta { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.growing-details-count {
  padding: 6px 10px;
  border-radius: 999px;
  color: #f5d58a;
  background: rgba(255,194,41,.1);
  font-size: 11px;
  font-weight: 700;
}
.growing-details-chevron {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #514d48;
  border-radius: 50%;
  color: #d8d2cc;
  background: rgba(255,255,255,.035);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.growing-details-chevron svg { width: 18px; height: 18px; }
.growing-details-chevron path {
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.growing-details-toggle:hover .growing-details-chevron {
  border-color: #716a63;
  color: #fff;
  background: rgba(255,255,255,.07);
}
.growing-details.is-open .growing-details-chevron { transform: rotate(180deg); }
.growing-details-body { padding: 0 18px 20px; border-top: 1px solid #403d3a; }
.growing-details-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}
.growing-details-intro p { margin: 4px 0 0; color: #aaa49f; font-size: 12px; }
.growing-details-skip {
  padding: 0;
  border: 0;
  color: #f5c775;
  background: transparent;
  font-weight: 650;
  cursor: pointer;
}
.growing-details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.detail-field {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #47433f;
  border-radius: 14px;
  color: #c9c3bd;
  background: #302e2c;
}
.detail-field.wide { grid-column: 1 / -1; }
.detail-field > span:first-child,
.detail-field legend { display: block; margin-bottom: 9px; color: #c9c3bd; font-size: 12px; font-weight: 650; }
.detail-field legend { padding: 0 4px; }
.detail-field legend small { color: #8f8983; font-weight: 500; }
.detail-field .input { width: 100%; }
.conditional-detail-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #47433f;
  color: #c9c3bd;
  font-size: 12px;
  font-weight: 650;
}
.conditional-detail-field[hidden] { display: none; }
.choice-chips,
.check-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.choice-chips label,
.check-chips label { position: relative; cursor: pointer; }
.choice-chips input,
.check-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.choice-chips span,
.check-chips span {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #5a5550;
  border-radius: 999px;
  color: #ddd8d3;
  background: #393633;
  font-size: 12px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.choice-chips input:checked + span,
.check-chips input:checked + span {
  border-color: #ffc229;
  color: #fff;
  background: rgba(255,194,41,.16);
}
.choice-chips input:focus-visible + span,
.check-chips input:focus-visible + span { outline: 3px solid #f5c775; outline-offset: 2px; }
.check-chips span::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-right: 7px;
  border: 1px solid #817a73;
  border-radius: 4px;
}
.check-chips input:checked + span::before {
  border-color: #ffc229;
  background: #ffc229;
  box-shadow: inset 0 0 0 3px #393633;
}
.input-with-select { display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 8px; }
.input-with-select select { appearance: none; }
.input-suffix { position: relative; display: block; }
.input-suffix .input { padding-right: 102px; }
.input-suffix strong {
  position: absolute;
  top: 50%;
  right: 13px;
  color: #f5d58a;
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-bottom: 14px;
}
.search-page-form .input { min-height: 50px; border-radius: 999px; padding-inline: 18px; }
.search-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.search-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
}
.search-tab.active { color: var(--coral); border-color: #f6c6bb; background: var(--coral-soft); }
.search-results { display: grid; gap: 11px; }
.search-result-card { display: grid; grid-template-columns: 110px minmax(0,1fr); overflow: hidden; }
.search-result-media { min-height: 130px; background: var(--surface-soft) center / cover no-repeat; }
.search-result-media.icon { display: grid; place-items: center; color: #956919; background: var(--amber-soft); font-size: 36px; font-weight: 700; }
.search-result-copy { min-width: 0; padding: 17px 18px; }
.search-result-copy h2 { margin: 8px 0 6px; font-size: 21px; line-height: 1.2; }
.search-result-copy p { margin: 0; color: #514c48; }
.search-result-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 11px; }
.search-mark { color: var(--coral-dark); background: var(--coral-soft); }

.auth-page {
  display: grid;
  place-items: center;
  min-height: 680px;
  padding: 40px 20px 55px;
  background:
    radial-gradient(circle at 15% 15%, rgba(237,101,71,.12), transparent 25%),
    radial-gradient(circle at 85% 25%, rgba(230,161,60,.1), transparent 24%),
    #fff;
}
.auth-card {
  width: min(480px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 60px rgba(35,25,21,.08);
}
.auth-card h1 { margin: 0 0 9px; font-size: 31px; line-height: 1.12; letter-spacing: -.035em; text-align: center; }
.auth-card > .muted { text-align: center; }
.social-buttons { display: grid; gap: 10px; margin: 24px 0 18px; }
.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}
.social-button:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: 0 8px 22px rgba(20,20,20,.05); }
.social-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; font-weight: 800; }
.social-icon.vk { background: #2787f5; }
.social-icon.ya { color: #fff; background: #fc3f1d; }
.auth-note { padding: 13px 14px; border-radius: 14px; color: var(--muted); background: var(--surface-soft); font-size: 12px; text-align: center; }
.auth-terms { margin: 16px 0 0; color: var(--soft); font-size: 11px; text-align: center; }
.auth-states { width: min(720px,100%); margin-top: 18px; }
.auth-state-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.auth-state { min-height: 130px; padding: 16px; border-radius: 17px; background: var(--surface-soft); }
.auth-state strong { display: block; margin-bottom: 5px; }
.auth-state.error { color: #8e4434; background: var(--coral-soft); }
.auth-state.success { color: var(--green); background: var(--green-soft); }
.spinner {
  width: 25px;
  height: 25px;
  margin-top: 12px;
  border: 3px solid var(--line);
  border-top-color: var(--coral);
  border-radius: 50%;
}

.profile-hero { max-width: 100%; overflow: hidden; }
.profile-cover {
  height: 180px;
  background:
    linear-gradient(135deg, rgba(237,101,71,.2), rgba(230,161,60,.15)),
    url("../../images/upload/thumb-3.webp") center / cover no-repeat;
}
.profile-main {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 0 25px 24px;
}
.profile-avatar {
  width: 110px;
  height: 110px;
  margin-top: -48px;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--surface-soft);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name h1 { margin: 0 0 5px; font-size: 31px; letter-spacing: -.035em; }
.profile-name,
.profile-description,
.publication-copy,
.contact-item {
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.profile-description { margin: 12px 0 0; color: #4e4945; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  margin-top: 16px;
}
.profile-stat { padding: 13px; border-radius: 15px; background: var(--surface-soft); text-align: center; }
.profile-stat strong { display: block; font-size: 21px; }
.profile-stat span { color: var(--muted); font-size: 11px; }
.profile-tabs {
  display: flex;
  gap: 7px;
  margin: 16px 0;
  overflow-x: auto;
  padding-bottom: 3px;
}
.profile-tab { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; }
.profile-tab.active { color: var(--coral); border-color: #f6c6bb; background: var(--coral-soft); }
.profile-content { display: grid; gap: 14px; }
.profile-state { padding: 22px; }
.contact-list { display: grid; gap: 8px; }
.contact-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.account-person { display: flex; align-items: center; gap: 13px; min-width: 0; }
.account-person .avatar { width: 58px; height: 58px; }
.account-person h1 { margin: 0 0 3px; font-size: 30px; line-height: 1.1; }
.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.account-stat { padding: 18px; }
.account-stat strong { display: block; margin-bottom: 3px; font-size: 27px; line-height: 1; }
.account-stat span { color: var(--muted); font-size: 12px; }
.account-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.account-tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
}
.account-tab.active { color: var(--coral); border-color: #f6c6bb; background: var(--coral-soft); }
.notification-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}
.side-link .notification-badge { margin-left: auto; }
.attention-summary { margin-bottom: 14px; border-color: #f5c6ba; background: linear-gradient(135deg, #fff, #fff7f4); }
.attention-summary h2 { display: flex; align-items: center; gap: 8px; }
.attention-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.attention-list a { display: grid; gap: 3px; padding: 13px; border-radius: 15px; background: #fff; }
.attention-list span { color: var(--muted); font-size: 12px; }
.activity-section { scroll-margin-top: 18px; }
.activity-filters {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.activity-filter {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}
.activity-filter.active { color: var(--coral-dark); border-color: #f5c6ba; background: var(--coral-soft); }
.activity-list { display: grid; gap: 10px; }
.activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.activity-item.unread { border-color: #f3b7a8; background: #fffaf8; }
.activity-item.unread::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}
.activity-item .avatar { width: 44px; height: 44px; font-size: 12px; }
.activity-copy { min-width: 0; }
.activity-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; }
.activity-meta time { color: var(--muted); }
.status-bullet { padding: 4px 8px; border-radius: 999px; color: var(--coral-dark); background: var(--coral-soft); font-size: 10px; font-weight: 700; }
.status-bullet.reply { color: var(--green); background: var(--green-soft); }
.activity-copy p { margin: 8px 0 7px; overflow-wrap: anywhere; }
.activity-source { color: var(--coral-dark); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.activity-actions { display: flex; align-items: center; gap: 7px; }
.read-label { color: var(--green); font-size: 12px; font-weight: 700; white-space: nowrap; }
.activity-empty { display: grid; gap: 4px; margin-top: 10px; padding: 28px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); text-align: center; }
.activity-empty strong { color: var(--text); }
.activity-likes-note { display: grid; gap: 3px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface-soft); }
.activity-likes-note span { color: var(--muted); font-size: 12px; }
.account-section { padding: 22px; }
.account-section + .account-section { margin-top: 14px; }
.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.account-section-head h2 { margin: 0; font-size: 21px; }
.manage-list { display: grid; gap: 10px; }
.manage-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.account-section#publications .manage-item {
  grid-template-columns: minmax(0, 1fr) auto;
}
.manage-thumb {
  width: 92px;
  height: 72px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--surface-soft);
}
.manage-copy { min-width: 0; }
.manage-copy strong { display: block; margin-bottom: 5px; line-height: 1.25; overflow-wrap: anywhere; }
.manage-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.manage-actions { display: flex; align-items: center; gap: 7px; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.status.published { color: var(--green); background: var(--green-soft); }
.status.pending { color: #8a641e; background: var(--amber-soft); }
.status.draft { color: var(--muted); background: var(--surface-soft); }
.status.rejected { color: var(--coral-dark); background: var(--coral-soft); }
.account-note {
  padding: 15px 17px;
  border-radius: 17px;
  color: #6f5320;
  background: var(--amber-soft);
}
.account-note.error { color: #8e4434; background: var(--coral-soft); }
.account-avatar-edit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 15px;
  border-radius: 18px;
  background: var(--surface-soft);
}
.account-avatar-preview {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}
.account-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar-edit p { margin: 3px 0 9px; }
.account-avatar-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.region-picker { position: relative; min-width: 0; }
.region-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}
.region-popup {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(40, 28, 22, .16);
}
.region-popup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.region-popup-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-soft); cursor: pointer; }
.region-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-soft);
}
.region-search img { width: 17px; opacity: .6; }
.region-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.region-options { display: grid; gap: 3px; max-height: 260px; margin-top: 9px; overflow-y: auto; }
.region-options button {
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.region-options button:hover,
.region-options button:focus-visible { background: var(--surface-soft); }
.region-options button[aria-selected="true"] { color: var(--coral-dark); background: var(--coral-soft); font-weight: 700; }
.region-empty { padding: 24px 10px 12px; color: var(--muted); text-align: center; }

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.editor-card { padding: 24px; }
.editor-card + .editor-card { margin-top: 14px; }
.editor-card h2 { margin: 0 0 17px; font-size: 21px; }
.type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.type-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}
.type-option.active { border-color: #f2ad9d; background: var(--coral-soft); }
.type-option input { accent-color: var(--coral); }
.editor-fields { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 650; }
.field small { color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: 0;
  background: #fff;
}
.field input, .field select { height: 46px; padding: 0 13px; }
.field textarea { min-height: 112px; padding: 12px 13px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: #efa38f; box-shadow: 0 0 0 3px var(--coral-soft); }
.field.invalid input,
.field.invalid textarea { border-color: var(--coral); background: #fffaf8; }
.field-error { color: var(--coral-dark); font-size: 12px; }
.editor-toolbar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--surface-soft);
}
.editor-tool {
  flex: 0 0 auto;
  min-width: 34px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.editor-body { border-radius: 0 0 14px 14px !important; }
.upload-box.compact { min-height: 130px; }
.file-preview {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.file-preview img { width: 86px; height: 62px; border-radius: 10px; object-fit: cover; }
.file-preview strong { display: block; overflow-wrap: anywhere; }
.editor-side { display: grid; gap: 14px; }
.editor-side .panel { padding: 18px; }
.editor-checklist { display: grid; gap: 10px; }
.editor-check { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13px; }
.editor-check.done { color: var(--green); }
.editor-check::before { content: "○"; color: var(--soft); font-weight: 800; }
.editor-check.done::before { content: "✓"; color: var(--green); }
.editor-submit { display: grid; gap: 8px; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumbs a:hover { color: var(--coral); }
.article-card { padding: 25px; }
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-author .avatar { width: 44px; height: 44px; }
.article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 22px;
  align-items: start;
}
.article-head h1 {
  margin: 22px 0 11px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.article-score {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 24px;
  background: var(--amber-soft);
  text-align: center;
}
.article-score strong { display: block; color: #956919; font-size: 38px; line-height: 1; }
.article-score span { color: #8b6117; font-size: 11px; }
.article-facts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.article-fact { padding: 7px 10px; border-radius: 999px; color: #625d59; background: var(--surface-soft); font-size: 12px; }
.article-text { color: #413c38; font-size: 16px; line-height: 1.65; }
.article-text p { margin: 0 0 15px; }
.article-text h2 { margin: 28px 0 11px; color: var(--text); font-size: 24px; line-height: 1.22; }
.article-text h3 { margin: 23px 0 9px; color: var(--text); font-size: 19px; }
.article-text ul, .article-text ol { margin: 0 0 18px; padding-left: 22px; }
.article-text li + li { margin-top: 7px; }
.article-lead { color: #37322f; font-size: 18px; line-height: 1.58; }
.article-hero {
  width: 100%;
  max-height: 430px;
  margin: 21px 0;
  border-radius: 22px;
  object-fit: cover;
}
.article-callout {
  margin: 20px 0;
  padding: 18px 19px;
  border-left: 4px solid var(--coral);
  border-radius: 0 16px 16px 0;
  background: var(--coral-soft);
}
.article-callout strong { display: block; margin-bottom: 5px; color: var(--coral-dark); }
.article-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}
.check-item { padding: 14px; border-radius: 15px; background: var(--surface-soft); }
.check-item strong { display: block; margin-bottom: 4px; }
.author-box {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 13px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border-radius: 19px;
  background: var(--surface-soft);
}
.author-box .avatar { width: 58px; height: 58px; }
.video-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 21px 0;
  border-radius: 22px;
  background: #171513;
}
.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-player-poster {
  position: absolute;
  inset: 0;
  background: #171513 center / cover no-repeat;
}
.video-player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.5));
}
.video-player .play {
  width: 76px;
  height: 76px;
  font-size: 27px;
}
.video-player-meta {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 7px;
  color: #fff;
  font-size: 11px;
}
.video-player-meta span { padding: 6px 9px; border-radius: 9px; background: rgba(0,0,0,.67); }
.video-states { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin: 18px 0; }
.video-state { min-height: 120px; padding: 15px; border-radius: 16px; background: var(--surface-soft); }
.video-state strong { display: block; margin-bottom: 5px; }
.video-state.loading strong { color: #706b66; }
.video-state.error { color: #8e4434; background: var(--coral-soft); }
.video-state.unavailable { color: #765817; background: var(--amber-soft); }
.progress {
  height: 7px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.progress i { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--coral); }
.article-gallery {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 9px;
  margin: 22px 0;
}
.article-gallery a { min-width: 0; }
.article-gallery img { width: 100%; height: 210px; border-radius: 18px; object-fit: cover; }
.article-ratings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0;
}
.article-rating { padding: 13px; border-radius: 15px; background: var(--surface-soft); }
.article-rating .rating-line { margin-bottom: 6px; }
.article-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 18px; }
.article-proscons .note { padding: 17px; font-size: 14px; }
.article-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.like-button { min-width: 92px; }
.like-button img { width: 17px; height: 17px; }
.sort-reference { padding: 18px; background: var(--surface-soft); }
.sort-reference-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sort-reference h3 { margin: 0 0 5px; }

.comments-section { margin-top: 18px; padding: 25px; }
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.comments-head h2 { margin: 0; font-size: 23px; }
.comment-form {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
}
.comment-form .avatar { width: 42px; height: 42px; }
.comment-form textarea {
  min-height: 72px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  resize: vertical;
}
.comment-list, .comment-children { list-style: none; margin: 0; padding: 0; }
.comment-list { margin-top: 22px; }
.comment-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.comment-item .avatar { width: 42px; height: 42px; }
.comment-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.comment-meta time { margin-left: auto; color: var(--soft); font-size: 11px; }
.comment-text { margin: 8px 0 10px; color: #47423e; overflow-wrap: anywhere; }
.comment-controls { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.comment-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #625d59;
  background: var(--surface-soft);
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.comment-control:hover {
  transform: translateY(-1px);
  color: var(--coral-dark);
  border-color: #f1c5bb;
  background: var(--coral-soft);
}
.comment-control.active {
  color: #fff;
  border-color: var(--coral);
  background: var(--coral);
}
.comment-control img { width: 14px; height: 14px; opacity: .65; }
.comment-control.active img { filter: brightness(0) invert(1); opacity: 1; }
.comment-children { margin-left: 52px; }
.comment-children .comment-item { border-bottom-style: dashed; }
.login-prompt {
  padding: 17px;
  border-radius: 17px;
  color: #6d5149;
  background: var(--coral-soft);
  text-align: center;
}

.ui-section { padding: 26px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.ui-section + .ui-section { margin-top: 18px; }
.ui-section h2 { margin: 0 0 18px; }
.swatches { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.swatch { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.swatch-color { height: 70px; }
.swatch-label { padding: 9px; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; }
textarea.input { min-height: 110px; padding-block: 12px; resize: vertical; }
.alert { padding: 13px 15px; border-radius: 14px; }
.alert.error { color: #a23f2d; background: var(--coral-soft); }
.alert.success { color: var(--green); background: var(--green-soft); }
.empty { padding: 34px; border: 1px dashed var(--line-strong); border-radius: 20px; color: var(--muted); text-align: center; }

.footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; margin: 0 34px; padding: 27px 0 34px; border-top: 1px solid var(--line); color: var(--muted); }
.footer strong { display: block; margin-bottom: 8px; color: var(--text); }

@media (max-width: 1500px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .rightbar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .rightbar .panel {
    margin: 0;
  }
}

@media (max-width: 1180px) {
  .shell { width: calc(100% - 30px); margin: 15px auto; }
  .layout { grid-template-columns: 190px minmax(0,1fr); }
  .post-card { grid-template-columns: 165px minmax(0,1fr); }
  .post-stats { grid-column: 1 / -1; grid-template-columns: repeat(3,1fr) auto; }
  .review-content { grid-template-columns: 1fr; }
  .ratings { grid-template-columns: 1fr 1fr; padding: 13px; border-radius: 15px; background: var(--surface-soft); }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { background: #fff; }
  .shell { width: 100%; margin: 0; border-radius: 0; box-shadow: none; }
  .topbar { grid-template-columns: 1fr auto; gap: 12px; padding: 13px 14px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 38px; height: 38px; }
  .search { grid-column: 1 / -1; grid-row: 2; height: 44px; }
  .top-actions .button.outline { display: none; }
  .top-actions { min-width: 0; }
  .main-nav { justify-content: flex-start; overflow-x: auto; padding: 8px 14px 12px; }
  .main-nav a { flex: 0 0 auto; padding: 9px 13px; }
  .layout { display: block; padding: 16px 14px 28px; }
  .sidebar { display: none; }
  .rightbar { display: grid; grid-template-columns: 1fr; margin-top: 18px; }
  .page-head { display: block; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-top: 13px; padding-bottom: 3px; }
  .chips,
  .account-tabs,
  .search-tabs {
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar,
  .account-tabs::-webkit-scrollbar,
  .search-tabs::-webkit-scrollbar {
    display: none;
  }
  .chip { flex: 0 0 auto; }
  .post-card, .review-card, .video-card { grid-template-columns: 1fr; }
  main, .feed, .rightbar { width: 100%; min-width: 0; }
  .post-media, .video-media { min-height: 230px; }
  .post-main { padding: 20px; border-right: 0; }
  .post-stats { grid-template-columns: 1fr 1fr; }
  .post-stats .button { grid-column: 1 / -1; }
  .review-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(3,1fr); }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .catalog-search { grid-column: 1 / -1; }
  .search-result-card { grid-template-columns: 90px minmax(0,1fr); }
  .article-ratings { grid-template-columns: 1fr 1fr; }
  .sort-grid { grid-template-columns: 1fr; }
  .rating-inputs { grid-template-columns: 1fr 1fr; }
  .publication-row { grid-template-columns: 1fr; }
  .publication-cover { min-height: 230px; }
  .publication-copy { padding: 20px; }
  .publication-copy h2 { font-size: 22px; }
  .account-head { align-items: flex-start; flex-direction: column; }
  .account-grid { grid-template-columns: 1fr 1fr; }
  .attention-list { grid-template-columns: 1fr; }
  .activity-item { grid-template-columns: 44px minmax(0, 1fr); }
  .activity-actions { grid-column: 2; flex-wrap: wrap; }
  .manage-item { grid-template-columns: 74px minmax(0, 1fr); align-items: start; }
  .manage-thumb { width: 74px; height: 64px; }
  .manage-actions { grid-column: 2; flex-wrap: wrap; }
  .account-section#publications .manage-actions { grid-column: auto; }
  .editor-side { grid-template-columns: 1fr; }
  .review-main, .video-copy { padding: 20px; }
  .review-title { display: block; }
  .review-title .tag { display: inline-flex; margin-top: 9px; }
  .gallery { grid-template-columns: 1.5fr 1fr; grid-template-rows: 105px 78px; }
  .gallery img { height: 100%; }
  .gallery img:first-child { grid-row: 1 / 3; }
  .proscons, .form-grid { grid-template-columns: 1fr; }
  .content-card h2 { font-size: 22px; }
  .footer { grid-template-columns: 1fr; margin: 0 14px; }
  .swatches { grid-template-columns: repeat(2,1fr); }

  .home-mobile-header-page {
    padding-top: calc(78px + env(safe-area-inset-top));
  }
  .home-mobile-header-page.home-mobile-menu-open { overflow: hidden; }
  .home-mobile-header-page > .shell > .topbar,
  .home-mobile-header-page > .shell > .main-nav { display: none; }
  .home-mobile-header-page .home-mobile-header {
    position: fixed;
    z-index: 100;
    top: calc(10px + env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    display: block;
  }
  .home-mobile-bar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 58px;
    padding: 7px;
    border: 1px solid rgba(222,216,211,.9);
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 34px rgba(32,24,20,.14);
    backdrop-filter: blur(16px);
  }
  .home-mobile-icon-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    color: #37322f;
    background: transparent;
    cursor: pointer;
  }
  .home-mobile-activity-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 1px rgba(201,79,56,.14);
  }
  .home-mobile-icon-button:hover { background: var(--surface-soft); }
  .home-mobile-icon-button svg {
    width: 22px;
    height: 22px;
  }
  .home-mobile-icon-button svg path,
  .home-mobile-icon-button svg circle {
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .home-mobile-profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
  }
  .home-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-size: 17px;
    font-weight: 750;
  }
  .home-mobile-brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background: #171513;
    font-size: 13px;
  }
  .home-mobile-actions { display: flex; align-items: center; }
  .home-mobile-search {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    min-height: 52px;
    padding: 6px 7px 6px 15px;
    border: 1px solid rgba(222,216,211,.94);
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 12px 34px rgba(32,24,20,.13);
  }
  .home-mobile-search svg {
    width: 19px;
    height: 19px;
    color: var(--muted);
  }
  .home-mobile-search svg path,
  .home-mobile-search svg circle {
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }
  .home-mobile-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
  }
  .home-mobile-search button {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: var(--coral);
    font-weight: 650;
    cursor: pointer;
  }
  .home-mobile-header-page .home-mobile-menu-layer {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: block;
  }
  .home-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(23,21,19,.42);
    backdrop-filter: blur(3px);
  }
  .home-mobile-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: min(88vw, 350px);
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 0 26px 26px 0;
    background: #fff;
    box-shadow: 18px 0 50px rgba(22,17,14,.18);
  }
  .home-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 2px 2px 17px;
    border-bottom: 1px solid var(--line);
  }
  .home-mobile-drawer-nav {
    display: grid;
    gap: 5px;
    padding: 16px 0;
  }
  .home-mobile-drawer-nav a {
    display: grid;
    gap: 1px;
    padding: 11px 13px;
    border-radius: 15px;
  }
  .home-mobile-drawer-nav a span { font-weight: 700; }
  .home-mobile-drawer-nav a small { color: var(--muted); }
  .home-mobile-drawer-nav a.active {
    color: var(--coral-dark);
    background: var(--coral-soft);
  }
  .home-mobile-drawer-account {
    margin-top: auto;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface-soft);
  }
  .home-mobile-drawer-account p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
  }
  .home-mobile-drawer-account .button { width: 100%; }

  .ui-header-demo .topbar,
  .ui-header-demo .main-nav { display: flex; }
  .ui-header-demo .topbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
  }
  .ui-header-demo .brand { font-size: 17px; }
  .ui-header-demo .search {
    order: 3;
    width: 100%;
  }
  .ui-header-demo .top-actions { margin-left: auto; }
  .ui-header-demo .top-actions .button { display: none; }
  .ui-header-demo .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 14px 14px;
  }
}

@media (max-width: 650px) {
  .article-checklist {
    grid-template-columns: 1fr;
  }
  .video-states {
    grid-template-columns: 1fr;
  }
  .author-box {
    grid-template-columns: 50px minmax(0, 1fr);
  }
  .author-box .avatar {
    width: 50px;
    height: 50px;
  }
  .author-box .button {
    grid-column: 1 / -1;
  }
  .article-actions {
    flex-wrap: wrap;
  }
  .article-actions .button:last-child {
    width: 100%;
  }
  .comment-form {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }
  .comment-form .avatar {
    width: 38px;
    height: 38px;
  }
  .comment-form .button {
    grid-column: 2;
    justify-self: end;
  }
  .search-page-form {
    grid-template-columns: 1fr;
  }
  .search-page-form .button {
    width: 100%;
  }
  .auth-state-grid {
    grid-template-columns: 1fr;
  }
  .profile-main {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 19px 20px;
    text-align: center;
  }
  .profile-avatar {
    width: 90px;
    height: 90px;
    margin: -42px auto 0;
  }
  .profile-meta {
    justify-content: center;
  }
  .profile-main > .button {
    width: 100%;
  }
  .profile-content .actions {
    flex-wrap: wrap;
  }
  .profile-content .read-link {
    width: 100%;
    margin-left: 0;
  }
  .contact-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 550px) {
  .article-author {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
  }
  .article-author .tag {
    grid-column: 2;
    justify-self: start;
  }
  .comments-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .comments-head .catalog-select {
    width: 100% !important;
  }
  .account-grid { grid-template-columns: 1fr; }
  .account-section { padding: 18px; }
  .account-section-head { align-items: flex-start; flex-direction: column; }
  .activity-item { grid-template-columns: 38px minmax(0, 1fr); padding: 13px; }
  .activity-item .avatar { width: 38px; height: 38px; }
  .activity-actions { grid-column: 1 / -1; }
  .activity-actions .button { flex: 1 1 auto; }
  .manage-item { grid-template-columns: 1fr; }
  .manage-thumb { width: 100%; height: 150px; }
  .manage-actions { grid-column: auto; }
  .account-section#publications .manage-item { grid-template-columns: 1fr; }
  .account-avatar-edit { align-items: flex-start; flex-direction: column; }
  .region-popup { position: fixed; top: 50%; right: 14px; left: 14px; width: auto; transform: translateY(-50%); }
  .region-options { max-height: 52vh; }
  .type-switch { grid-template-columns: 1fr; }
  .editor-card { padding: 18px; }
  .file-preview { grid-template-columns: 62px minmax(0, 1fr); }
  .file-preview img { width: 62px; height: 52px; }
  .file-preview .button { grid-column: 1 / -1; }
  .account-section .form-actions { align-items: stretch; flex-direction: column; }
  .account-section .form-actions .button { width: 100%; }
}

@media (max-width: 430px) {
  .top-actions .button.primary { max-width: 112px; padding-inline: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .facts, .ratings { grid-template-columns: 1fr; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-search { grid-column: auto; }
  .catalog-summary { align-items: flex-start; flex-direction: column; }
  .search-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .search-tab { flex: 0 0 auto; }
  .search-result-card { grid-template-columns: 1fr; }
  .search-result-media { min-height: 180px; }
  .search-result-media.icon { min-height: 105px; }
  .auth-page { min-height: auto; padding: 28px 14px 40px; }
  .auth-card { padding: 24px 19px; border-radius: 24px; }
  .profile-cover { height: 135px; }
  .profile-avatar { width: 88px; height: 88px; margin: -42px auto 0; }
  .profile-name h1 { font-size: 27px; line-height: 1.1; }
  .profile-stats { grid-template-columns: 1fr; }
  .sort-properties { grid-template-columns: 1fr; }
  .sort-hero-copy { padding: 20px; }
  .sort-hero-copy h1 { font-size: 33px; }
  .sort-fact-grid, .review-form-grid, .rating-inputs, .growing-details-grid { grid-template-columns: 1fr; }
  .review-form-grid .wide { grid-column: auto; }
  .detail-field.wide { grid-column: auto; }
  .growing-details-toggle { align-items: flex-start; padding: 15px; }
  .growing-details-meta { align-items: flex-end; flex-direction: column-reverse; gap: 2px; }
  .growing-details-body { padding: 0 12px 14px; }
  .growing-details-intro { flex-direction: column; }
  .input-with-select { grid-template-columns: minmax(0,1fr) 105px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-card, .review-form-card { padding: 19px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .article-card, .comments-section { padding: 19px; }
  .article-head { grid-template-columns: 1fr; }
  .article-head h1 { margin-top: 18px; font-size: 29px; }
  .article-score { min-height: auto; padding: 15px; }
  .article-gallery { grid-template-columns: 1.5fr 1fr; grid-template-rows: 150px 105px; }
  .article-gallery img { height: 100%; }
  .article-gallery a:first-child { grid-row: 1 / 3; }
  .article-ratings, .article-proscons { grid-template-columns: 1fr; }
  .comment-children { margin-left: 25px; }
  .comment-meta time { width: 100%; margin-left: 0; }
  .actions { flex-wrap: wrap; }
  .read-link { width: 100%; margin-left: 0; text-align: left; overflow-wrap: anywhere; }
}
