@font-face { font-family: 'Gotham Pro'; src: url('/fonts/gothampro_light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/fonts/gothampro_lightitalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/fonts/gothampro.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/fonts/gothampro_italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/fonts/gothampro_medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/fonts/gothampro_mediumitalic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/fonts/gothampro_bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/fonts/gothampro_bolditalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/fonts/gothampro_black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/fonts/gothampro_blackitalic.ttf') format('truetype'); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --card-alt: #f6f6f8;
  --ink: #15151a;
  --ink-soft: #8b8b93;
  --line: #ebebef;
  --star: #f2a93b;
  --danger: #c1543a;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Gotham Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* На широких экранах (ПК) приложение остаётся мобильной колонкой по центру,
   а не растягивается/не уезжает вбок — фон вокруг просто пустой. */
body {
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 104px;
  position: relative;
  background: var(--bg);
  overflow-x: hidden;
  flex: none;
}

.icon-svg { display: block; flex: none; }
.star-on { color: var(--star); }
.star-off { color: var(--line); }
.stars-row { display: inline-flex; gap: 1px; vertical-align: middle; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 8px;
}

.topbar h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.topbar .sub {
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 2px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(20,20,25,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  flex: none;
}

.icon-btn.on-photo { background: rgba(255,255,255,0.92); }
.icon-btn.filled { background: var(--ink); color: #fff; }

.back-btn { width: 38px; height: 38px; }

.section { padding: 10px 18px; }

.section h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: var(--ink);
}

/* ---------- Главный экран ---------- */

.mh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
}

.mh-greet-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 2px; }
.mh-greet-title { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }

.mh-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  background: var(--card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  overflow: hidden;
}
.mh-avatar img { width: 100%; height: 100%; object-fit: cover; }

.mh-search-row { display: flex; gap: 10px; padding: 0 18px 16px; }

.search-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-alt);
  border-radius: 999px;
  padding: 13px 16px;
  color: var(--ink-soft);
}

.search-pill input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  width: 100%;
  color: var(--ink);
}

.mh-filter-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-alt);
  color: var(--ink-soft);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}

.pill-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 18px 20px;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
}
.pill-row::-webkit-scrollbar { display: none; }

.pill {
  flex: none;
  background: var(--card-alt);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.pill.active { background: var(--ink); color: #fff; }

/* Плитки категорий на главной — переносятся по строкам, никогда не обрезаются по ширине. */
.cat-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.cat-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--card-alt);
  border-radius: 999px;
  padding: 7px 12px 7px 7px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.cat-chip-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  flex: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 18px 12px;
}
.section-head h2 { font-size: 18px; font-weight: 900; margin: 0; letter-spacing: -0.01em; }
.section-head .see-all { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; cursor: pointer; }

/* Большая карточка-герой (как Travelexa) */
.hero-card {
  margin: 0 18px 18px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  background-size: cover;
  background-position: center;
  background-color: var(--card-alt);
  color: var(--ink-soft);
}

.hero-card .hero-save {
  position: absolute;
  top: 14px;
  right: 14px;
}

.hero-card .hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(10,10,14,0.82) 10%, rgba(10,10,14,0));
  color: #fff;
}

.hero-card .hero-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.hero-card .hero-name { font-size: 20px; font-weight: 900; margin-bottom: 10px; }

.hero-card .hero-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 700;
  flex: none;
}

.rating-rows { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.rating-row-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.rating-row-item svg { flex: none; color: var(--ink-soft); }
.rating-row-item svg.star-on { color: var(--star); }
.rating-row-label { flex: 1; }
.rating-row-item b { color: var(--ink); font-weight: 800; }

.hero-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 999px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.hero-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}

/* Полоска погоды */
.weather-strip {
  margin: 0 18px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-alt);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--ink);
}

.location-card {
  margin: 0 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.location-card .location-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--ink-soft);
}
.location-card .location-info { flex: 1; min-width: 0; }
.location-card .location-label { font-size: 11px; color: var(--ink-soft); }
.location-card .location-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-card .location-edit-btn {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--card-alt);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.location-row {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
}
.location-row-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.location-row-city { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.location-row.is-child { margin-left: 18px; padding: 10px 14px; border-style: dashed; }
.location-row.is-child .location-row-name { font-size: 13px; font-weight: 600; }
.form-hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; }
.weather-strip .temp { font-weight: 900; font-size: 15px; }
.weather-strip .meta { font-size: 12px; color: var(--ink-soft); }

.place-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px 12px;
}

.place-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  border: 1px solid var(--line);
}

.map-jump-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.place-card .thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  flex: none;
  overflow: hidden;
}
.place-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.place-card .body { min-width: 0; flex: 1; }

.place-card .name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-card .desc {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.4;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--card-alt);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 20px;
  font-size: 14px;
}

/* ---------- Детальный экран места ---------- */

.place-hero {
  height: 280px;
  background-size: cover;
  background-position: center;
  background-color: var(--card-alt);
  position: relative;
}

.place-hero .hero-top-row {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
}

.place-panel {
  background: #fff;
  border-radius: 26px 26px 0 0;
  margin-top: -26px;
  position: relative;
  padding: 20px 18px 4px;
}

.place-panel .title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.place-panel h2 { font-size: 21px; margin: 0; font-weight: 900; letter-spacing: -0.01em; }

.place-panel .category-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 14px;
}

.price-pill {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  margin-left: 4px;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 160px;
  margin-bottom: 12px;
  background: var(--card-alt);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.map-hero {
  position: relative;
  margin: 0 18px;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-alt);
  box-shadow: 0 10px 30px rgba(20,20,25,0.12);
}
.map-hero iframe { width: 100%; height: 100%; border: 0; }
.map-hero-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(20,20,25,0.14);
  pointer-events: none;
}

.desc-block {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 4px;
  white-space: pre-wrap;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 0 14px;
  cursor: pointer;
  text-decoration: underline;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 16px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.similar-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 18px 8px;
  scrollbar-width: none;
}
.similar-scroll::-webkit-scrollbar { display: none; }

.similar-card {
  flex: none;
  width: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.similar-card .thumb {
  height: 110px;
  background-size: cover;
  background-position: center;
  background-color: var(--card-alt);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.similar-card .thumb .fav-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; }

.place-card .fav-btn { width: 32px; height: 32px; box-shadow: none; background: var(--card-alt); }

.similar-card .info { padding: 10px 12px 12px; }
.similar-card .name {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.similar-card .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.similar-card .meta-row > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.similar-card .meta-row > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
}

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.review-card-imported { background: var(--card-alt); border-style: dashed; }
.review-card-expert { border: 1.5px solid var(--ink); }
.expert-review-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.review-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-alt);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-author-info { flex: 1; min-width: 0; }
.review-author-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 1px;
}
.review-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.review-card .author { font-weight: 700; font-size: 13.5px; }

.review-card .text {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.4;
}

.spent-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--card-alt);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 6px;
}

.review-mini-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--card-alt);
  border: none;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn.secondary {
  background: var(--card-alt);
  color: var(--ink);
  border: none;
}

.btn.accent { background: var(--ink); }

/* Таббар — капсула из отдельных круглых кнопок (как на референсе) */
.tabbar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  background: var(--card-alt);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  box-shadow: 0 14px 30px rgba(10,10,15,0.16);
  z-index: 40;
}

.tabbar .tab {
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabbar .tab .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink-soft);
  box-shadow: 0 1px 4px rgba(10,10,15,0.08);
}

.tabbar .tab .tab-label { display: none; }

.tabbar .tab.active .icon { background: var(--ink); color: #fff; box-shadow: none; }

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,20,0.45);
  display: flex;
  align-items: flex-end;
  z-index: 50;
}

.sheet {
  background: #fff;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 26px 26px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 88vh;
  overflow-y: auto;
}

.sheet h3 { margin: 0 0 14px; font-size: 18px; }

.form-field { margin-bottom: 12px; }
.form-field label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 5px;
  font-weight: 600;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.form-field textarea { min-height: 90px; resize: vertical; }

.file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  color: var(--ink-soft);
}
.file-picker.has-file { border-style: solid; border-color: var(--ink); color: var(--ink); }
.file-picker-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.file-picker-text { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-picker-preview { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; }

.star-picker { display: flex; gap: 10px; cursor: pointer; }
.star-picker .star-off { color: var(--line); }

.pill-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.pill-tabs::-webkit-scrollbar { display: none; }

.blog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 6px;
}
.blog-top-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 2px; }
.blog-top-title { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }

.write-article-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.article-topic-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  width: fit-content;
}
.article-hero-overlay .article-topic-tag { border: none; }
.article-topic-tag.small { background: var(--card-alt); padding: 3px 9px; font-size: 10px; margin-bottom: 5px; }

.article-hero {
  height: 220px;
  border-radius: var(--radius-lg);
  margin: 8px 18px 4px;
  background-size: cover;
  background-position: center;
  background-color: var(--card-alt);
  position: relative;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  overflow: hidden;
}
.article-hero-overlay {
  width: 100%;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
}
.article-hero-title { font-size: 18px; font-weight: 800; line-height: 1.25; }
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.article-hero-meta .dot { opacity: 0.6; }

.article-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.article-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.article-list { display: flex; flex-direction: column; gap: 4px; }
.article-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.article-row:last-child { border-bottom: none; }
.article-row-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--card-alt);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.article-row-info { flex: 1; min-width: 0; }
.article-row-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-row-meta { font-size: 11.5px; color: var(--ink-soft); }

.article-author-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 8px;
}
.article-author-row .dot { opacity: 0.6; }

.article-body { padding: 16px 18px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 18px 18px;
}
.profile-hero-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--card-alt);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(20,20,25,0.1);
}
.profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-name { font-size: 19px; font-weight: 900; letter-spacing: -0.01em; }
.profile-hero-username { font-weight: 500; color: var(--ink-soft); font-size: 14px; }
.profile-hero-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  background: var(--card-alt);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.profile-actions-row {
  display: flex;
  gap: 10px;
  padding: 0 18px 20px;
}
.profile-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--card-alt);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  cursor: pointer;
  color: var(--ink);
}
.profile-action-btn span { font-size: 11.5px; font-weight: 700; text-align: center; }

.dev-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.dev-card .dev-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--card-alt);
  display: flex; align-items: center; justify-content: center;
  flex: none; color: var(--ink-soft);
}
.dev-card .dev-name { font-weight: 900; font-size: 14.5px; }
.dev-card .dev-text { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; margin: 2px 0 6px; }
.dev-card .dev-link { font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: none; }

.stats-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.stats-card .role-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card-alt); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 700; margin-bottom: 12px;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-tile { background: var(--card-alt); border-radius: var(--radius-md); padding: 12px; }
.stat-tile .num { font-size: 20px; font-weight: 900; }
.stat-tile .label { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }

.user-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.user-row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.user-row-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card-alt); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  flex: none; overflow: hidden;
}
.user-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-row-info { flex: 1; min-width: 0; }
.user-row-name { font-weight: 700; font-size: 13.5px; }
.user-row-username { color: var(--ink-soft); font-weight: 500; }
.user-row-meta { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.expert-request-badge {
  flex: none;
  display: flex; align-items: center; gap: 4px;
  background: var(--star); color: #fff;
  border-radius: 999px; padding: 4px 9px;
  font-size: 10.5px; font-weight: 700;
}
.user-row-actions { display: flex; align-items: center; gap: 8px; }
.user-row-actions select {
  flex: 1; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font-size: 13px; font-family: inherit; color: var(--ink); background: #fff;
}

.gallery-row {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 18px 16px; scrollbar-width: none;
}
.gallery-row::-webkit-scrollbar { display: none; }
.gallery-row img { width: 84px; height: 84px; border-radius: var(--radius-md); object-fit: cover; flex: none; }

.field-hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; }
.field-hint a { color: var(--ink); font-weight: 600; }

.loading, .toast {
  text-align: center;
  color: var(--ink-soft);
  padding: 20px;
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 60;
}
