* { margin: 0; padding: 0; box-sizing: border-box; }

html { zoom: 1.1; }

.svg-sprite { display: none; }
.hidden { display: none !important; }
.no-scroll { overflow: hidden; }
.share-copy-field { position: fixed; left: -10000px; top: 0; }

.acct-wrap { position: relative; }
.acct-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; }
.account-mobile-link { display: none; }
.acct-menu { right: 0; top: calc(100% + 6px); width: min(360px, calc(100vw - 24px)); }
.acct-menu form { margin: 0; }
.acct-menu .account-menu-profile { display: flex; align-items: center; gap: 13px; padding: 10px 11px; }
.account-menu-profile > span:last-child { display: grid; gap: 3px; }
.account-menu-profile > span:last-child > a { width: auto; min-height: 0; padding: 0; background: none; }
.acct-menu .account-menu-avatar { position: relative; width: 72px; min-width: 72px; padding: 0; background: none; }
.account-menu-avatar-plus { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid var(--s1); border-radius: 50%; background: var(--pink); color: white; font-size: 16px; font-weight: 700; }
.account-menu-profile small { color: var(--text-3); }
.account-menu-balance { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-block: 1px solid var(--border); }
.account-menu-balance > span { display: grid; margin-right: auto; }
.account-menu-balance small { color: var(--text-3); }
.acct-menu .account-menu-balance button { width: auto; padding: 5px; }
.acct-menu .account-menu-topup { width: auto; padding: 6px 9px; background: var(--green-soft); color: var(--ok-text); }
.account-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding-block: 5px; }
.account-menu-grid form { display: flex; }
.acct-menu .account-menu-grid a, .acct-menu .account-menu-grid button { min-height: 38px; background: var(--s2); }
.notification-wrap { position: relative; }
.notification-menu { right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); }
.notification-menu form { margin: 0; }
.notification-menu-title, .notification-menu-empty {
  display: block;
  padding: 8px 11px;
  color: var(--text-2);
  font-size: 12px;
}
.notification-menu-item { flex-direction: column; align-items: flex-start !important; gap: 2px; }
.notification-menu-item small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.notification-menu-unread { border-left: 2px solid var(--pink) !important; }
.notification-menu-all { justify-content: center; color: var(--blue) !important; }

.flash-wrap {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
}
.flash {
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13px;
  border: 1px solid var(--border-2);
  background: var(--s3);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  animation: mh-fade-up var(--dur) var(--ease-out) both;
}
.flash-success { background: var(--green-soft); border-color: transparent; color: var(--ok-text); }
.flash-error { background: var(--danger-soft); border-color: transparent; color: var(--danger-text); }
.flash-info { background: var(--blue-soft); border-color: transparent; color: var(--blue); }

.design-index-title { font-size: 20px; margin: 8px 0 4px; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 4px; }
.design-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.design-tile:hover { border-color: var(--border-2); background: var(--s3); }
.design-tile-go { color: var(--text-3); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: break-word;
}
body > main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.ico {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ico-14 { width: 14px; height: 14px; }
.ico-18 { width: 18px; height: 18px; }
.emoji {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: -3px;
}
.ico.acc { color: var(--pink); }
.ico-ext { margin-left: auto; width: 12px; height: 12px; color: var(--text-3); }

.strip { display: flex; gap: 3px; }
.strip i { width: 14px; height: 14px; border-radius: 3px; display: block; }
.strip i:nth-child(1) { background: var(--pink); }
.strip i:nth-child(2) { background: var(--violet); }
.strip i:nth-child(3) { background: var(--green); }
.strip i:nth-child(4) { background: var(--amber); }

.card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 14px 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--r-chip);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
}
.chip.on {
  background: var(--pink-soft);
  color: var(--pink);
  border-color: transparent;
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: var(--r);
  font-weight: 500;
}
.badge.acc { background: var(--pink-soft); color: var(--pink); }
.badge.adult { background: var(--pink-soft); color: var(--pink); }
.badge.ok { background: var(--green-soft); color: var(--ok-text); }
.badge.warn { background: var(--amber-soft); color: var(--warn-text); }
.badge.danger { background: var(--danger-soft); color: var(--danger-text); }
.badge.reputation-badge { background: var(--blue-soft); color: var(--blue); }
.badge.reputation-badge.reputation-grey { background: var(--s3); color: var(--text-3); }
.badge.reputation-badge.reputation-green { background: var(--green-soft); color: var(--ok-text); }
.badge.reputation-badge.reputation-blue { background: var(--blue-soft); color: var(--blue); }
.badge.reputation-badge.reputation-violet { background: var(--violet-soft); color: var(--violet); }
.badge.reputation-badge.reputation-amber { background: var(--amber-soft); color: var(--warn-text); }
.badge.reputation-badge.reputation-pink { background: var(--pink-soft); color: var(--pink); }
.badge.reputation-badge.reputation-neutral { background: var(--s3); color: var(--text-2); }

.btn {
  border: none;
  border-radius: var(--r);
  font-size: 12.5px;
  cursor: pointer;
  padding: 8px 16px;
}
.btn.p { background: var(--pink); color: var(--on-accent); font-weight: 600; }
.btn.o { background: transparent; border: 1px solid var(--border-2); color: var(--text); }
.btn.d { background: var(--danger-soft); color: var(--danger-text); }
.btn.g { background: var(--green-soft); color: var(--ok-text); }
.btn:disabled { opacity: 0.5; cursor: default; }

.av {
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.av.s28 { width: 28px; height: 28px; font-size: 11px; }
.av.s36 { width: 36px; height: 36px; font-size: 13px; }
.av.s64 { width: 64px; height: 64px; font-size: 22px; }
.av.s72 { width: 72px; height: 72px; font-size: 24px; }
.header-avatar-image { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.menu {
  background: var(--s3);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 5px;
  box-shadow: var(--shadow-menu);
  min-width: 210px;
  position: absolute;
  z-index: 40;
}
.menu button, .menu a {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 11px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
}
.menu button:hover, .menu a:hover { background: var(--s2); }
.menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.menu .danger { color: var(--danger-text); }
.topic-menu { position: relative; flex-shrink: 0; }
.topic-menu-toggle { width: 36px; height: 36px; border: 0; border-radius: var(--r); background: transparent; color: var(--text-2); cursor: pointer; font-weight: 700; letter-spacing: 1px; }
.topic-menu-toggle:hover { background: var(--s3); color: var(--text); }
.topic-menu .menu { top: calc(100% + 4px); right: 0; }
.topic-menu .menu form { margin: 0; }
.topic-menu .menu button:disabled { opacity: 0.55; cursor: default; }
.topic-menu-warning { color: var(--warn-text) !important; }
.topic-menu-status { display: block; padding: 3px 11px 7px; color: var(--text-3); }
.topic-menu-backdrop { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-head h2 { font-size: 15px; font-weight: 600; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.city-note { font-size: 12px; line-height: 1.5; margin-bottom: 14px; }
.field { margin-bottom: 16px; }
.city-search {
  width: 100%;
  background: var(--s2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 9px 12px;
}
.city-search::placeholder { color: var(--text-3); }
.city-picker { display: grid; gap: 6px; }
.city-picker + .city-picker { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.city-search-label {
  display: block;
  color: var(--text-2);
  font-size: 11.5px;
  margin-bottom: 6px;
}
.city-search-status { min-height: 18px; margin-top: 6px; }
.city-search-results {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 180px;
  overflow-y: auto;
  margin-top: 4px;
}
.city-search-result { width: 100%; justify-content: flex-start; gap: 8px; }
.city-search-result > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-search-result-meta { flex-shrink: 0; margin-left: auto; color: var(--text-3); font-size: 10.5px; }
.city-group-label {
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.city-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.city-opt.on::before { content: "✓ "; }
.city-selected { font-size: 12px; }
.city-selected b { color: var(--text); }
.city-filter {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--s1);
}
.city-filter .chips-lbl { margin: 0; }
.city-filter-directory { display: grid; gap: 10px; }
.city-filter-directory label { display: grid; gap: 6px; }
.city-filter-search { width: 100%; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: var(--r); background: var(--s2); color: var(--text); font: inherit; }
.city-filter-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; max-height: 240px; overflow-y: auto; }
.city-filter-option { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: var(--r); color: var(--text-2); }
.city-filter-option > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-filter-option:hover, .city-filter-option:focus-visible { background: var(--s3); color: var(--text); }
.city-filter-option:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.city-filter-country { flex-shrink: 0; margin-left: auto; color: var(--text-3); font-size: 10.5px; }
.city-filter-status { min-height: 18px; }

.city-remote-source { width: 100%; min-height: 40px; }
.remote-city-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.remote-city-picker { display: grid; gap: 6px; width: 100%; min-width: 0; }
.remote-city-clear { justify-self: start; }
.remote-city-search {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  outline: none;
  background: var(--s2);
  color: var(--text);
  font: inherit;
}
.remote-city-search:focus { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink-soft); }
.remote-city-results {
  display: grid;
  gap: 3px;
  max-height: 230px;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--s2);
}
.remote-city-results:empty { display: none; }
.remote-city-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.remote-city-option > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remote-city-option small { flex-shrink: 0; margin-left: auto; color: var(--text-3); }
.remote-city-option:hover, .remote-city-option:focus-visible { background: var(--s3); color: var(--text); }
.remote-city-option:focus-visible { outline: 2px solid var(--pink); outline-offset: -1px; }
.remote-city-status { min-height: 18px; }

.muted { color: var(--text-3); font-size: 11.5px; }
.dim { color: var(--text-2); }
.row { display: flex; align-items: center; gap: 8px; }

.counters { display: flex; gap: 12px; color: var(--text-3); font-size: 12px; }
.counters span { display: inline-flex; align-items: center; gap: 4px; }

.fire-btn {
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-chip);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fire-btn.on { background: var(--amber-soft); border-color: var(--amber); }

h1.display, h2.display { font-family: var(--font-display); font-weight: 500; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.strip-sm i { width: 9px; height: 9px; }
.logo-text { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.worlds { display: flex; gap: 14px; font-size: 12.5px; }
.world.on { color: var(--text); font-weight: 500; }
.world-disabled { color: var(--text-3); cursor: default; display: inline-flex; align-items: center; gap: 4px; }
.world-disabled small { color: var(--text-3); font-size: 9px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.site-header .city-pill { max-width: 220px; min-height: 38px; padding: 7px 14px; font-size: 13px; }
.city-pill b { color: var(--text); }
.city-pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev-d { color: var(--text-3); font-size: 10px; }
.search-box input {
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-chip);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 14px;
  width: 180px;
  min-height: 38px;
}
.search-box { display: flex; align-items: center; }
.search-submit { display: none; }
.mobile-search-toggle { display: none; }
.search-box input::placeholder { color: var(--text-3); }
.bell { background: none; border: none; color: var(--text-2); cursor: pointer; display: flex; align-items: center; }
.site-header .header-right .bell { width: 38px; height: 38px; justify-content: center; }
.site-header .header-right > .btn { min-height: 40px; padding: 9px 18px; font-size: 13px; }
.site-header .header-right .ico-18 { width: 20px; height: 20px; }
.burger { color: var(--text); }
.composer-icons .ico { color: var(--text-3); }
.tb .ico { width: 17px; height: 17px; }
.more-block summary.grp .chev { display: inline-block; margin-left: 4px; }
.more-block[open] summary.grp .chev { transform: rotate(90deg); }

.layout {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 32px 80px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.layout.layout-wide { max-width: 1120px; justify-content: center; }

.side { width: 236px; flex-shrink: 0; position: sticky; top: 73px; }
.btn-create { width: 100%; margin-bottom: 4px; }
.forum-section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  padding-block: 18px;
}
.forum-section-head > .btn { flex: 0 0 auto; white-space: nowrap; }
.side .grp {
  font-size: 10.5px;
  color: var(--text-3);
  margin: 16px 0 6px 6px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.side .it {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--r);
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
}
.side .it:hover { background: var(--s2); }
.side .it.on { background: var(--s2); color: var(--text); font-weight: 500; }
.it-icon { width: 16px; text-align: center; font-size: 13px; }
.it-icon.acc { color: var(--pink); }
.side .it .ext { margin-left: auto; font-size: 11px; color: var(--text-3); }
.side details.branch summary { list-style: none; }
.side details.branch summary::-webkit-details-marker { display: none; }
.side .chev { margin-left: auto; transition: transform 0.15s; color: var(--text-3); font-size: 12px; }
.side details[open] > summary .chev { transform: rotate(90deg); }
.side .sub {
  margin-left: 14px;
  border-left: 1px solid var(--border);
  padding-left: 9px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.side .sub a {
  padding: 5px 7px;
  font-size: 11.5px;
  color: var(--text-2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.side .sub a:hover { background: var(--s2); }
.more-block summary.grp { cursor: pointer; list-style: none; }
.more-block summary.grp::-webkit-details-marker { display: none; }

.feed { flex: 1; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.migration-guide-card { border-color: color-mix(in srgb, var(--pink) 35%, var(--border)); }
.migration-sections { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-title, .pc-preview, .pin-row { overflow-wrap: anywhere; }
.pin-row > span:first-child { min-width: 0; }

.rail { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 73px; }
.rail-card { display: flex; flex-direction: column; gap: 8px; }
.rail-title { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rail-text { font-size: 12px; line-height: 1.55; }
.rail-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pink);
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-chip);
  transition: background 0.15s ease, border-color 0.15s ease, gap 0.15s ease;
}
.rail-link:hover { background: var(--pink-soft); border-color: transparent; gap: 9px; }
.rail-link .arr { transition: transform 0.15s ease; }
.rail-link:hover .arr { transform: translateX(2px); }
.rail-link.rail-cta {
  position: relative;
  align-self: center;
  display: flex;
  width: calc(100% - 8px);
  min-height: 45px;
  margin-top: 4px;
  padding: 4px 4px 4px 14px;
  gap: 9px;
  overflow: hidden;
  color: var(--on-accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 38%),
    linear-gradient(180deg, #CB416B 0%, #C23A63 52%, #B72F58 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow:
    0 9px 24px rgba(212, 83, 126, 0.3),
    0 0 16px rgba(232, 79, 123, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(93, 10, 38, 0.2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(86, 13, 40, 0.2);
  transition:
    transform var(--dur-fast) var(--ease),
    filter var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}
.rail-link.rail-cta:hover {
  gap: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), transparent 40%),
    linear-gradient(180deg, #D14772 0%, #C84069 52%, #BD345D 100%);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 12px 30px rgba(212, 83, 126, 0.38),
    0 0 22px rgba(232, 79, 123, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(93, 10, 38, 0.16);
  filter: saturate(1.05) brightness(1.04);
  transform: translateY(-1px);
}
.rail-link.rail-cta:active {
  box-shadow:
    0 4px 13px rgba(212, 83, 126, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: none;
  transform: scale(0.985);
}
.rail-link.rail-cta:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
  box-shadow:
    0 0 0 5px var(--pink),
    0 9px 24px rgba(212, 83, 126, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.rail-cta-icon {
  width: 18px;
  height: 18px;
  color: var(--on-accent);
  filter: drop-shadow(0 1px 1px rgba(86, 13, 40, 0.2));
  stroke-width: 1.85;
}
.rail-cta-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rail-cta .arr {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  flex: 0 0 34px;
  color: var(--on-accent);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    0 3px 9px rgba(112, 18, 52, 0.14);
  transform: none;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}
.rail-cta-arrow {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
  transition: transform var(--dur-fast) var(--ease);
}
.rail-link.rail-cta:hover .arr {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.23);
  transform: none;
}
.rail-link.rail-cta:hover .rail-cta-arrow { transform: translateX(2px); }
.rail-link.rail-cta:active .rail-cta-arrow { transform: translateX(1px); }

:root[data-theme="light"] .rail-link.rail-cta {
  box-shadow:
    0 7px 18px rgba(155, 37, 78, 0.2),
    0 0 12px rgba(212, 83, 126, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(93, 10, 38, 0.18);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .rail-link.rail-cta {
    box-shadow:
      0 7px 18px rgba(155, 37, 78, 0.2),
      0 0 12px rgba(212, 83, 126, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.26),
      inset 0 -1px 0 rgba(93, 10, 38, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail-link.rail-cta:hover,
  .rail-link.rail-cta:active,
  .rail-link.rail-cta:hover .rail-cta-arrow,
  .rail-link.rail-cta:active .rail-cta-arrow { transform: none; }
}

@media (forced-colors: active) {
  .rail-link.rail-cta {
    color: LinkText;
    background: Canvas;
    border: 2px solid LinkText;
    box-shadow: none;
    forced-color-adjust: auto;
  }
  .rail-cta .arr { border-color: LinkText; background: Canvas; }
}
.rail-card .strip { margin-bottom: 2px; }
.rail-card .strip i { width: 11px; height: 11px; }

@media (max-width: 1120px) {
  .rail { display: none; }
  .feed { max-width: none; }
}
.composer { display: flex; align-items: center; gap: 10px; }
.composer input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}
.composer-link { text-decoration: none; }
.composer-expand { padding: 0; overflow: hidden; }
.composer-expand > summary { padding: 16px; cursor: pointer; list-style: none; }
.composer-expand > summary::-webkit-details-marker { display: none; }
.composer-expand[open] > summary { border-bottom: 1px solid var(--border); }
.composer-form { display: grid; gap: 13px; padding: 16px; }
.composer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.composer-field { display: grid; gap: 6px; color: var(--text-2); font-size: 12px; font-weight: 600; }
.composer-field input,
.composer-field select,
.composer-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--s2);
  color: var(--text);
  font: inherit;
}
.composer-field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.composer-actions { display: flex; justify-content: flex-end; gap: 8px; }
.composer-ph { flex: 1; min-width: 0; color: var(--text-3); font-size: 13px; }
.pc-title-link { display: block; }
.pc-title-link:hover .pc-title { color: var(--pink); }
.counter-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
.counter-link:hover { color: var(--text-2); }
.nt-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.auth-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.new-topic-card { max-width: 560px; }
.search-box input { min-width: 0; }
.composer input::placeholder { color: var(--text-3); }
.composer-icons { display: flex; gap: 8px; font-size: 15px; opacity: 0.6; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-state h2 { font-size: 18px; }
.empty-state p { max-width: 380px; font-size: 12.5px; }
.feed-feature { display: flex; flex-direction: column; gap: 8px; }
.feed-feature-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.feed-feature-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  font-size: 12px;
}
.feed-feature-row:hover { color: var(--text); }
.feed-feature-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-search { display: flex; align-items: center; gap: 8px; padding: 8px; }
.feed-search .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
}
.feed-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 7px 8px;
}
.feed-search input:focus { outline: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.bell { position: relative; }
.bell-count {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.pin-block { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pin-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.ico.amber { color: var(--amber); }
.pin-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 12.5px;
  border-top: 1px solid var(--border);
}
.pin-row:first-of-type { border-top: none; }

.postcard {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 13px 15px;
  background: var(--s1);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-nick { font-size: 12.5px; }
.pc-time { margin-left: auto; }
.pc-title { font-size: 14px; font-weight: 600; }
.pc-preview { font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.pc-city { display: inline-flex; align-items: center; gap: 4px; }

.tabbar { display: none; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--s1);
}
.site-footer-inner,
.site-footer-meta {
  width: min(100%, 1480px);
  margin-inline: auto;
  padding-inline: 32px;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2fr);
  gap: 56px;
  padding-block: 34px 28px;
}
.site-footer-brand { max-width: 360px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
}
.site-footer-brand p {
  margin: 10px 0 18px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.65;
}
.footer-create {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--pink) 55%, var(--border));
  border-radius: var(--r);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
}
.footer-create span { color: var(--pink); }
.footer-create:hover { border-color: var(--pink); background: var(--pink-soft); color: var(--text); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.footer-group { min-width: 0; }
.footer-group ul { list-style: none; }
.footer-group h2 {
  margin: 4px 0 10px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}
.footer-group a {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  color: var(--text-2);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.footer-group a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
}
.footer-group a:focus-visible,
.footer-create:focus-visible,
.footer-logo:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 11.5px;
}

@media (min-width: 761px) and (max-width: 920px) {
  .header-inner { gap: 8px; padding-inline: 14px; }
  .worlds { gap: 8px; }
  .header-right { gap: 6px; }
  .site-header .city-pill { max-width: 150px; }
  .search-box input { width: 140px; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .site-footer-brand { max-width: 560px; }
}

@media (max-width: 760px) {
  .layout { flex-direction: column; align-items: stretch; padding: 14px 16px 90px; }
  .header-inner { gap: 2px; padding: 4px 6px; }
  .burger, .bell, .acct-btn, .logo-link {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .logo-link { gap: 0; }
  .logo-text { display: none; }
  .feed, .composer, .card { min-width: 0; }
  .composer-grid { grid-template-columns: 1fr; }
  .worlds, .search-box, .theme-toggle { display: none; }
  .mobile-search-toggle { display: flex; }
  .search-box.open {
    display: flex;
    position: absolute;
    z-index: 45;
    inset: 8px 12px;
    gap: 8px;
    padding: 4px;
    background: var(--s1);
    border-radius: var(--r);
  }
  .search-box.open input { width: 100%; height: 100%; background: var(--s2); }
  .search-box.open .search-submit {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--r);
    background: var(--pink);
    color: white;
  }
  .header-right { gap: 2px; min-width: 0; }
  .site-header .header-right > .btn { min-height: 44px; padding: 7px 10px; }
  .btn, .chip, .fire-btn, .topic-action, .menu button, .menu a, .counter-link, .modal-close {
    min-height: 44px;
  }
  .fire-btn, .topic-action, .counter-link, .modal-close { min-width: 44px; justify-content: center; }
  .city-filter-option { min-height: 44px; }
  .remote-city-search, .remote-city-option { min-height: 44px; }
  .topic-menu-toggle { width: 44px; height: 44px; }
  .topic-menu.open .topic-menu-backdrop { display: block; position: fixed; inset: 0; z-index: 58; border: 0; background: var(--overlay); }
  .topic-menu .menu { position: fixed; inset: auto 0 0; z-index: 59; width: 100%; max-height: min(72vh, 560px); overflow-y: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 18px 12px max(16px, env(safe-area-inset-bottom)); }
  .topic-menu .menu::before { content: ""; display: block; width: 36px; height: 4px; margin: -8px auto 12px; border-radius: 2px; background: var(--border-2); }
  .topic-menu .menu button, .topic-menu .menu a { min-height: 48px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { min-height: 44px; }
  .account-desktop-toggle { display: none; }
  .account-mobile-link { display: flex; }
  .site-header .city-pill { display: inline-flex; width: 64px; min-width: 64px; min-height: 44px; padding: 5px 6px; justify-content: center; }
  .site-header .city-pill .chev-d { display: none; }
  .forum-section-head { align-items: flex-start; flex-direction: column; gap: 28px; padding-block: 20px; }
  .burger { display: flex; }
  .side {
    display: none;
    position: fixed;
    inset: 0;
    top: 49px;
    background: var(--bg);
    z-index: 45;
    width: 100%;
    overflow-y: auto;
    padding: 12px 16px 90px;
  }
  .side.open { display: block; }
  .side .it { min-height: 44px; }
  .side .sub a { min-height: 44px; }
  .hscroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .hscroll::-webkit-scrollbar { display: none; }
  .hscroll .chip { flex-shrink: 0; }
  .tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
    background: var(--s1);
    z-index: 50;
  }
  .site-footer-inner,
  .site-footer-meta { padding-inline: 16px; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 24px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .footer-group a, .footer-create { min-height: 44px; }
  .site-footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
  .tb {
    flex: 1;
    text-align: center;
    padding: 8px 0 10px;
    font-size: 10px;
    color: var(--text-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }
  .tb span { font-size: 15px; }
  .tb .tb-icon { position: relative; display: inline-flex; }
  .tb .tb-badge { position: absolute; top: -7px; right: -12px; min-width: 17px; height: 17px; padding-inline: 4px; border: 2px solid var(--s1); border-radius: 9px; background: var(--pink); color: white; font-size: 9px; line-height: 13px; }
  .tb.on { color: var(--pink); }
  .fab-c {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--pink);
    color: var(--on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-top: -14px;
  }
  .modal-backdrop { align-items: flex-end; }
  .modal {
    width: 100vw;
    max-width: none;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: none;
    padding-top: 10px;
  }
  .modal::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-2);
    margin: 0 auto 12px;
  }
}

@media (max-width: 400px) {
  .site-header .city-pill { max-width: 80px; }
  .site-header .city-pill .chev-d { display: none; }
}

@media (max-width: 350px) {
  .header-inner { padding-left: 12px; padding-right: 12px; }
  .logo-link .strip { display: none; }
  .site-header .city-pill { max-width: 68px; }
  .footer-links { grid-template-columns: 1fr; }
}
