@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --panel: #ffffff;
  --text: #1f1b16;
  --ink: #1f1b16;
  --muted: #6c645a;
  --line: #d8dee8;
  --border: #d8dee8;
  --border-active: #028f80;
  --accent: #028f80;
  --accent-strong: #028f80;
  --accent-2: #028f80;
  --accent-hover: #027569;
  --accent-gradient-top: #1fa898;
  --accent-soft: #e5f6f4;
  --shadow: none;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --rect-bg: linear-gradient(90deg, #fcfaf8 0%, #ffffff 100%);
  --card-bg: linear-gradient(90deg, #fcfaf8 0%, #ffffff 100%);
  --card-bg-reverse: linear-gradient(270deg, #fcfaf8 0%, #ffffff 100%);
  --wt-bg: var(--bg);
  --wt-surface: var(--surface);
  --wt-border: var(--border);
  --wt-text: var(--text);
  --wt-muted: var(--muted);
  --wt-accent: var(--accent);
  --wt-accent-hover: var(--accent-hover);
  --wt-radius: var(--radius-lg);
  --wt-shadow: var(--shadow);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(44vh, 420px);
  background-image: url("/books/assets/background.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.96;
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.wetalk-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 24px 28px;
  overflow: visible;
}

.wetalk-body-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(520px, 760px) minmax(260px, 340px);
  justify-content: space-between;
  gap: 28px;
  align-items: start;
}

.wetalk-body-grid-admin {
  grid-template-columns: minmax(240px, 320px) minmax(620px, 940px);
  justify-content: center;
}

.wetalk-right-rail {
  padding-right: 0;
  padding-top: 0;
  align-self: start;
  margin-right: -24px;
  min-height: calc(100vh - 86px);
}

.wetalk-right-rail-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: fixed;
  top: 86px;
  left: var(--wetalk-right-rail-left, auto);
  width: var(--wetalk-right-rail-width, 320px);
  height: calc(100vh - 86px);
  padding-bottom: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 100, 90, 0.45) transparent;
}

.wetalk-main {
  min-width: 0;
  height: auto;
  overflow: visible;
  padding-right: 0;
}

.wetalk-main-target {
  position: static;
  top: auto;
  align-self: start;
  height: auto;
  overflow: visible;
  padding-top: 0;
}

.wetalk-main-target #wetalk-content {
  height: auto;
  min-height: 0;
}

#wetalk-content > .wetalk-post:first-child {
  margin-top: 18px;
}

#wetalk-content > .wetalk-composer-trigger:first-child {
  margin-top: 0;
}

#wetalk-content > .wetalk-composer:first-child {
  margin-top: 18px;
}

#wetalk-content > .wetalk-target-header:first-child {
  margin-top: 0;
}

#wetalk-content > .wetalk-profile:first-child {
  margin-top: 18px;
}

.wetalk-catalog-header {
  min-height: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
}

.wetalk-sidebar {
  align-self: start;
}

.wetalk-right-rail {
  padding-right: 0;
  padding-top: 0;
}

.wetalk-sidebar {
  align-self: start;
  min-height: calc(100vh - 86px);
}

.wetalk-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: fixed;
  top: 86px;
  left: var(--wetalk-sidebar-left, 24px);
  width: var(--wetalk-sidebar-width, 320px);
  height: calc(100vh - 86px);
  padding-top: 36px;
  box-sizing: border-box;
  overflow: hidden;
  padding-right: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brandLink {
  color: inherit;
  text-decoration: none;
  min-width: 0;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.wetalk-myread-wrap {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.brandLogo {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.brandText {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.title {
  min-width: 0;
  color: var(--accent);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1;
}

.brandSubtitle {
  min-width: 0;
  color: #586273;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 14px;
  position: static;
  min-width: 0;
}

.headerLinks {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  justify-content: center;
}

.wetalk-myread-wrap {
  display: flex;
  justify-content: flex-end;
}

.headerLinks {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  justify-content: center;
}

.wetalk-discussion-actions {
  flex-wrap: wrap;
  justify-content: center;
}

.wetalk-mobile-feed-heading {
  display: none;
}

.wetalk-header-button {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.wetalk-header-button:hover {
  border-color: var(--border-active);
  background: var(--rect-bg);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 143, 128, 0.2);
}

.wetalk-header-button.active {
  border-color: var(--border-active);
  background: var(--rect-bg);
  color: var(--ink);
}

.wetalk-header-button-myread {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  margin-left: auto;
}

.wetalk-header-button-myread:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
}

.headerMenuToggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--rect-bg);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.headerMenuToggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.wetalk-mobile-topbar,
.wetalk-mobile-tabbar,
.wetalk-mobile-discussed,
.wetalk-mobile-sheet-backdrop {
  display: none;
}

.searchForm {
  position: relative;
  display: flex;
  align-items: center;
}

.searchInput {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--rect-bg);
  color: var(--ink);
  font-size: 15px;
  padding: 0 44px 0 16px;
  outline: none;
}

.searchInput:focus {
  border-color: var(--border-active);
}

.searchPlaceholder {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.searchInput:focus + .searchPlaceholder,
.searchInput:not(:placeholder-shown) + .searchPlaceholder {
  opacity: 0;
}

.searchBtn {
  position: absolute;
  right: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.searchBtn .icon {
  width: 18px;
  height: 18px;
}

.searchBtn .icon-clear {
  display: none;
}

.wetalk-side-nav {
  display: grid;
  gap: 8px;
}

.wetalk-sidebar-intro {
  margin: 0 0 12px 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.wetalk-sidebar-note {
  margin: 8px 4px 0;
}

.wetalk-sidebar-note-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 18px;
}

.wetalk-sidebar-note-text {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.5;
}

.wetalk-sidebar-note-text-signed-out {
  color: var(--ink);
}

.wetalk-side-heading {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wetalk-side-search {
  margin-bottom: 8px;
}

.wetalk-side-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.wetalk-side-link:hover,
.wetalk-side-link.active {
  border-color: var(--border-active);
  background: var(--rect-bg);
  color: var(--accent);
}

.wetalk-sidebar-auth {
  margin-top: -12px;
  padding-top: 0;
}

.wetalk-sidebar-auth-button {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-inline: 18px;
  text-align: center;
}

.wetalk-sidebar-user-menu {
  margin-top: auto;
  padding-top: 10px;
  padding-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.wetalk-sidebar-account {
  position: relative;
}

.wetalk-sidebar-account-button {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.wetalk-sidebar-account-button:hover,
.wetalk-sidebar-account-button.open {
  border-color: var(--accent);
}

.wetalk-sidebar-account-avatar {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wetalk-sidebar-account-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wetalk-sidebar-account-avatar-fallback {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.wetalk-sidebar-account-menu {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  z-index: 30;
}

.wetalk-sidebar-account-menu.open {
  display: block;
}

.wetalk-sidebar-account-menu-head {
  padding: 12px 14px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wetalk-sidebar-account-menu-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wetalk-sidebar-account-menu a,
.wetalk-sidebar-account-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  background: none;
  border: 0;
  cursor: pointer;
}

.wetalk-sidebar-account-menu a:hover,
.wetalk-sidebar-account-menu button:hover {
  background: #f5f3f0;
}

.wetalk-sidebar-account-signout {
  color: #c0392b;
  border-top: 1px solid var(--border) !important;
}

.wetalk-main {
  min-width: 0;
  height: auto;
  overflow: visible;
  padding-right: 0;
}

.wetalk-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  position: sticky;
  top: 86px;
  z-index: 20;
  background: #ffffff;
  box-shadow: none;
}

.wetalk-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(24px, 3.2vw, 37px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.wetalk-eyebrow,
.wetalk-rail-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wetalk-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wt-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-active);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.wt-btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.wt-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 143, 128, 0.2);
}

.wt-btn-outline:hover {
  background: var(--rect-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 143, 128, 0.2);
}

.wt-btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
}

.wt-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.wetalk-post,
.wetalk-comment-composer,
.wetalk-comment,
.wetalk-composer,
.wetalk-profile,
.wetalk-rail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.wetalk-post {
  padding: 18px;
  margin-bottom: 14px;
}

.wetalk-post-list > .wetalk-post:nth-child(even),
.wetalk-target-posts > .wetalk-post:nth-child(even),
.wetalk-profile-posts-list > .wetalk-post:nth-child(even),
.catalogWeBuzzFeedInner > .wetalk-post:nth-child(even) {
  background: var(--card-bg-reverse);
}

.wetalk-post:hover {
  border-color: var(--border-active);
}

.wetalk-admin-reports {
  display: grid;
  gap: 16px;
  padding-bottom: 36px;
}

.wetalk-admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.wetalk-admin-head h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.05;
}

.wetalk-admin-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.wetalk-admin-list {
  display: grid;
  gap: 14px;
}

.wetalk-admin-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
}

.wetalk-admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.wetalk-admin-tab small {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.74;
}

.wetalk-admin-tab.is-active {
  background: var(--accent);
  color: #fff;
}

.wetalk-admin-editorial {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.wetalk-admin-editorial-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.wetalk-admin-editorial-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.wetalk-admin-editorial-form {
  display: grid;
  gap: 10px;
}

.wetalk-admin-editorial-target {
  display: grid;
  gap: 10px;
}

.wetalk-admin-editorial-field {
  display: grid;
  gap: 5px;
  margin: 0;
  min-width: 0;
}

.wetalk-admin-editorial-field > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wetalk-admin-editorial-field .wetalk-field {
  margin-bottom: 0;
}

.wetalk-admin-editorial-results {
  display: grid;
  gap: 6px;
}

.wetalk-admin-editorial-result,
.wetalk-admin-editorial-selected-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--ink);
  text-align: left;
}

.wetalk-admin-editorial-result {
  cursor: pointer;
}

.wetalk-admin-editorial-result:hover,
.wetalk-admin-editorial-result:focus-visible {
  border-color: var(--border-active);
  outline: none;
}

.wetalk-admin-editorial-result-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(60, 146, 132, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.wetalk-admin-editorial-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wetalk-admin-editorial-result-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wetalk-admin-editorial-result-text strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wetalk-admin-editorial-result-text small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wetalk-admin-editorial-search-note {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wetalk-admin-editorial-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wetalk-admin-editorial-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.wetalk-admin-report {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
}

.wetalk-admin-report:nth-child(even) {
  background: var(--card-bg-reverse);
}

.wetalk-admin-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wetalk-admin-report-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.wetalk-admin-report-head time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.wetalk-admin-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
}

.wetalk-admin-meta-row strong {
  color: var(--ink);
}

.wetalk-admin-meta-row code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.wetalk-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wetalk-admin-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.wetalk-admin-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.wetalk-admin-muted {
  color: var(--muted);
}

.wetalk-admin-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}

.wetalk-admin-profile-chip img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.wetalk-admin-profile-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wetalk-admin-discussion {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wetalk-admin-discussion span {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
}

.wetalk-admin-discussion a {
  font-size: 14px;
  font-weight: 700;
}

.wetalk-admin-content {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(229, 246, 244, 0.62);
}

.wetalk-admin-content strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wetalk-admin-content p,
.wetalk-admin-content blockquote {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.wetalk-admin-content blockquote {
  padding-left: 12px;
  border-left: 2px solid var(--border-active);
  color: var(--muted);
}

.wetalk-admin-content-missing {
  border-left-color: #b24a3b;
  background: #fff4f1;
}

.wetalk-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wetalk-admin-actions .wt-btn {
  white-space: normal;
  text-align: center;
}

.wetalk-admin-danger {
  border-color: #b24a3b;
  background: #b24a3b;
}

.wetalk-admin-danger:hover {
  border-color: #963628;
  background: #963628;
  box-shadow: 0 8px 20px rgba(178, 74, 59, 0.18);
}

.wetalk-admin-danger-outline {
  border-color: #b24a3b;
  color: #9a3f32;
}

.wetalk-admin-danger-outline:hover {
  background: #fff4f1;
  box-shadow: 0 8px 20px rgba(178, 74, 59, 0.14);
}

.wetalk-admin-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.wetalk-admin-status-error,
.wetalk-admin-access {
  color: #9a3f32;
}

@media (max-width: 720px) {
  .wetalk-admin-head,
  .wetalk-admin-report-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wetalk-admin-head h1 {
    font-size: 28px;
  }

  .wetalk-admin-tabs {
    width: 100%;
  }

  .wetalk-admin-tab {
    flex: 1 1 auto;
    justify-content: center;
  }

  .wetalk-admin-editorial-result,
  .wetalk-admin-editorial-selected-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .wetalk-admin-editorial-selected-card .wetalk-link-button {
    grid-column: 2;
    justify-self: start;
  }

  .wetalk-admin-count,
  .wetalk-admin-report-head time {
    flex: 0 1 auto;
  }

  .wetalk-admin-actions .wt-btn {
    flex: 1 1 100%;
  }
}

.wetalk-post-header,
.wetalk-comment-meta,
.wetalk-post-actions,
.wetalk-comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wetalk-post-header {
  margin-bottom: 10px;
}

.wetalk-post-avatar,
.wetalk-comment-avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--rect-bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.wetalk-post-avatar {
  width: 32px;
  height: 32px;
}

.wetalk-comment-avatar {
  width: 28px;
  height: 28px;
}

.wetalk-post-author,
.wetalk-comment-meta strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.wetalk-post-time,
.wetalk-comment-meta span {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.wetalk-post-target {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--rect-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.wetalk-editorial-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 9px;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.wetalk-editorial-author {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.wetalk-post-title {
  margin-bottom: 7px;
  color: var(--ink);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.12;
}

.wetalk-post-title a {
  color: inherit;
}

.wetalk-post-title a:hover {
  color: var(--accent);
}

.wetalk-post-body,
.wetalk-comment-body {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
}

.wetalk-post-quote {
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  margin: 12px 0;
  background: var(--rect-bg);
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

.wetalk-post-actions,
.wetalk-comment-actions {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.wetalk-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wetalk-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.wetalk-comments {
  margin-top: 26px;
}

.wetalk-comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wetalk-comments-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 28px;
}

.wetalk-comments-head span,
.wetalk-inline-status {
  color: var(--muted);
  font-size: 13px;
}

.catalogWeBuzzComposerStatus {
  margin-top: 8px;
}

.wetalk-comment-composer,
.wetalk-comment {
  padding: 14px;
  margin-bottom: 12px;
}

.wetalk-comment-login {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}

.wetalk-comment-body {
  white-space: pre-wrap;
}

.wetalk-replies {
  margin-top: 12px;
  margin-left: 28px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

.wetalk-reply {
  box-shadow: none;
}

.wetalk-reply-composer {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.wetalk-post-modal-open {
  overflow: hidden;
}

.wetalk-post-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.72);
}

.wetalk-post-modal {
  position: relative;
  width: min(820px, calc(100vw - 96px));
  max-width: 820px;
  height: min(86vh, 820px);
  border-radius: 18px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(20, 32, 47, 0.14);
  overflow: hidden;
}

.wetalk-post-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0 72px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.wetalk-post-modal-context {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.wetalk-post-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #e4e6eb;
  color: #1c1e21;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.wetalk-post-modal-close:hover {
  background: #d8dade;
}

.wetalk-post-modal-main {
  height: calc(100% - 72px);
}

.wetalk-post-modal-scroll {
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
}

.wetalk-post-modal-story {
  min-width: 0;
  background: #ffffff;
}

.wetalk-post-modal-story-inner {
  padding: 22px 24px 16px;
}

.wetalk-post-modal-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.wetalk-post-modal-date {
  color: var(--muted);
  font-size: 13px;
}

.wetalk-post-modal-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.12;
}

.wetalk-post-modal-body {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.58;
  white-space: pre-wrap;
}

.wetalk-post-modal-quote {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: var(--rect-bg);
  color: var(--muted);
  font-size: 16px;
  font-style: italic;
}

.wetalk-post-modal-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.wetalk-comments-modal {
  margin-top: 0;
  padding: 0 24px 20px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.wetalk-comment-list-modal {
  padding: 14px 0 8px;
  margin-top: 0;
}

.wetalk-comment-composer-modal,
.wetalk-comment-login.wetalk-comment-composer-modal {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-bottom: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px 14px 14px;
  background: #ffffff;
  box-shadow: 0 -4px 12px rgba(20, 32, 47, 0.03);
}

.wetalk-comment-modal-card {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 14px;
}

.wetalk-comment-modal-card .wetalk-comment-body {
  padding: 11px 14px;
  border-radius: 18px;
  background: #f0f2f5;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.55;
}

.wetalk-comment-modal-card .wetalk-comment-meta {
  margin-bottom: 8px;
}

.wetalk-comment-modal-card .wetalk-comment-meta span {
  margin-left: 0;
  font-size: 12px;
}

.wetalk-comment-modal-card .wetalk-comment-actions {
  margin-top: 6px;
  padding-left: 38px;
  font-size: 12px;
}

.wetalk-comment-modal-card.wetalk-reply .wetalk-comment-body {
  background: #eef2f6;
}

.wetalk-user-hover-card {
  position: fixed;
  z-index: 1300;
  width: 300px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.wetalk-user-hover-card.visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.wetalk-user-hover-card-body {
  border: 1px solid rgba(216, 222, 232, 0.95);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(20, 32, 47, 0.18);
  padding: 16px;
}

.wetalk-user-hover-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wetalk-user-hover-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.wetalk-user-hover-name {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.wetalk-user-hover-meta {
  color: var(--muted);
  font-size: 13px;
}

.wetalk-user-hover-bio {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.wetalk-user-hover-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wetalk-user-hover-social-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(2, 143, 128, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.wetalk-user-hover-social-chip:hover {
  background: rgba(2, 143, 128, 0.16);
  color: var(--accent-hover);
}

.wetalk-target-header,
.wetalk-composer,
.wetalk-profile {
  padding: 20px 18px;
  margin-bottom: 20px;
}

.wetalk-composer-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wetalk-composer-trigger:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(24, 62, 59, 0.08);
}

.wetalk-composer-trigger-avatar,
.wetalk-compose-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--rect-bg);
  flex-shrink: 0;
}

.wetalk-composer-trigger-placeholder {
  color: var(--muted);
  font-size: 16px;
  text-align: left;
}

.wetalk-target-header-line {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.wetalk-target-header-line:first-child {
  color: var(--accent);
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 0;
}

.wetalk-target-header-name {
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 16px;
}

.wetalk-target-header {
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.wetalk-target-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  box-sizing: border-box;
  padding-top: 18px;
  padding-bottom: 4px;
  margin-bottom: 0;
}

.wetalk-target-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wetalk-target-header-compose-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wetalk-target-header-compose-card:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(24, 62, 59, 0.08);
}

.wetalk-target-header-compose-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.wetalk-target-header-compose-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  text-align: left;
}

.wetalk-target-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wetalk-target-header-link:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(24, 62, 59, 0.08);
}

.wetalk-target-layout {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}

.wetalk-target-sticky {
  flex: 0 0 auto;
  padding-bottom: 4px;
  position: sticky;
  top: 86px;
  background: #ffffff;
  z-index: 3;
}

.wetalk-target-sticky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.wetalk-target-posts {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding-top: 18px;
  padding-bottom: 24px;
}

.wetalk-target-sticky .wetalk-composer-trigger {
  margin-bottom: 0;
}

.wetalk-composer-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.wetalk-field,
.wetalk-modal-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  outline: none;
  background: var(--rect-bg);
  color: var(--ink);
  font-size: 15px;
}

.wetalk-field:focus,
.wetalk-modal-input:focus {
  border-color: var(--border-active);
}

.wetalk-field-textarea {
  min-height: 108px;
  resize: vertical;
}

.wetalk-profile {
  text-align: center;
}

.wetalk-profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.wetalk-profile-nickname {
  color: var(--ink);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

.wetalk-profile-bio {
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 12px;
}

.wetalk-profile-stats,
.wetalk-profile-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.wetalk-profile-stat {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  padding: 0;
  text-align: center;
}

.wetalk-profile-stat span {
  display: block;
}

.wetalk-profile-stat strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.wetalk-profile-stat-button {
  cursor: pointer;
}

.wetalk-profile-stat-button:hover,
.wetalk-profile-stat-button:hover strong {
  color: var(--accent);
}

.wetalk-profile-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.wetalk-profile-posts-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.wetalk-profile-posts-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--rect-bg);
  flex: 0 0 auto;
}

.wetalk-profile-posts-title {
  min-width: 0;
}

.wetalk-profile-posts-title h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.12;
}

.wetalk-profile-posts-title a {
  display: inline-flex;
  margin-top: 5px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.wetalk-profile-posts-more {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}

.wetalk-profile-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.wetalk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.72);
}

.wetalk-modal {
  width: min(90vw, 430px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: var(--surface);
}

.wetalk-profile-modal {
  width: min(92vw, 540px);
  max-width: 540px;
  max-height: min(82vh, 740px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wetalk-profile-modal-copy {
  margin: 0 0 16px;
  color: var(--wt-muted);
  font-size: 14px;
}

.wetalk-profile-modal-section-label {
  font-size: 13px;
  margin: 0 0 8px;
}

.wetalk-profile-modal-error {
  font-size: 12px;
  color: #e03131;
  margin: 0 0 10px;
  display: none;
}

.wetalk-modal-links {
  margin-bottom: 16px;
  text-align: left;
}

.wetalk-modal-links-label {
  margin: 0 0 8px;
  color: var(--wt-muted);
  font-size: 13px;
}

.wetalk-compose-modal {
  width: min(92vw, 560px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(20, 32, 47, 0.16);
  overflow: hidden;
}

.wetalk-compose-modal-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0 68px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.wetalk-compose-modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.wetalk-compose-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #e4e6eb;
  color: #1c1e21;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.wetalk-compose-modal-body {
  padding: 18px 20px 20px;
}

.wetalk-compose-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.wetalk-compose-user-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.wetalk-compose-textarea {
  min-height: 200px;
}

.wetalk-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.wetalk-modal h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 30px;
}

.wetalk-favorites-modal {
  width: min(92vw, 430px);
  max-height: min(82vh, 620px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wetalk-favorites-modal-head {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 64px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.wetalk-favorites-modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
}

.wetalk-favorites-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #e4e6eb;
  color: #1c1e21;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.wetalk-favorites-modal-body {
  overflow-y: auto;
  padding: 14px;
}

.wetalk-favorites-list {
  display: grid;
  gap: 8px;
}

.wetalk-favorites-profile {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--rect-bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.wetalk-favorites-profile:hover {
  color: var(--accent);
}

.wetalk-favorites-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
  flex: 0 0 auto;
}

.wetalk-favorites-empty,
.wetalk-favorites-error {
  border-radius: 10px;
  padding: 16px;
  background: var(--rect-bg);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.wetalk-favorites-error {
  color: #c0392b;
}

.wetalk-profile-avatar-edit {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.wetalk-profile-avatar-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wetalk-profile-avatar-preview {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--rect-bg);
  object-fit: cover;
}

.wetalk-profile-avatar-preview-row strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.wetalk-profile-avatar-preview-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.wetalk-profile-avatar-upload-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wetalk-profile-avatar-upload-button {
  position: relative;
  overflow: hidden;
}

.wetalk-profile-avatar-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.wetalk-profile-avatar-upload-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wetalk-profile-avatar-upload-error {
  color: #9a3f32;
}

.wetalk-avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.wetalk-avatar-grid-wrap {
  max-height: min(32vh, 300px);
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 16px;
  padding-right: 4px;
}

.wetalk-avatar-option {
  width: 48px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
}

.wetalk-avatar-option:hover,
.wetalk-avatar-option.selected {
  border-color: var(--border-active);
}

@media (max-width: 720px) {
  .wetalk-modal-backdrop,
  .wetalk-post-modal-backdrop {
    padding: 16px;
    align-items: flex-start;
  }

  .wetalk-profile-modal {
    width: min(100%, 520px);
    max-height: calc(100vh - 32px);
    margin-top: 8px;
  }

  .wetalk-avatar-grid-wrap {
    max-height: min(30vh, 250px);
  }
}

.wetalk-main {
  min-width: 0;
  height: auto;
  overflow: visible;
  padding-right: 0;
  padding-top: 36px;
}

.wetalk-main.wetalk-main-target {
  position: static;
  top: auto;
  align-self: start;
  height: auto;
  overflow: visible;
  padding-top: 0;
}

.wetalk-main.wetalk-main-target #wetalk-content {
  height: auto;
  min-height: 0;
}

.wetalk-right-rail > .wetalk-rail-card:last-child {
  margin-top: 0;
}

.wetalk-right-rail > .wetalk-rail-card:last-child {
  margin-top: 0;
}

.wetalk-right-rail-inner::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.wetalk-right-rail-inner:hover::-webkit-scrollbar {
  width: 8px;
}

.wetalk-right-rail-inner::-webkit-scrollbar-track,
.wetalk-right-rail-inner:hover::-webkit-scrollbar-track {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.wetalk-right-rail-inner::-webkit-scrollbar-thumb {
  border: 0;
  border-radius: 999px;
  background: rgba(108, 100, 90, 0.45);
}

.wetalk-rail-card {
  padding: 18px;
}

.wetalk-right-rail-inner > .wetalk-rail-card:first-child {
  margin-top: 36px;
}

.wetalk-rail-panel {
  margin-top: 0;
}

.wetalk-rail-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  box-sizing: border-box;
  margin-bottom: 0;
  padding-right: 14px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ffffff;
  padding-top: 18px;
  padding-bottom: 14px;
}

.wetalk-rail-panel-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.wetalk-rail-panel-kicker {
  margin: 0;
}

.wetalk-rail-switches {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wetalk-rail-switch {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 14px;
}

.wetalk-rail-card-grid {
  display: grid;
  gap: 18px;
  padding-right: 14px;
  padding-top: 18px;
}

.wetalk-most-discussed-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

.wetalk-most-discussed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(24, 62, 59, 0.12);
}

.wetalk-most-discussed-title {
  font-weight: 700;
  line-height: 1.18;
}

.wetalk-most-discussed-meta {
  color: var(--muted);
  font-size: 13px;
}

.wetalk-trending-link {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
}

.wetalk-trending-link:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.wetalk-trending-link span {
  font-weight: 700;
  line-height: 1.18;
}

.wetalk-trending-link small {
  color: var(--muted);
  font-size: 13px;
}

.wetalk-trending-link:hover span {
  color: var(--accent);
}

.wetalk-loading,
.wetalk-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 15px;
}

.wetalk-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .wetalk-body-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wetalk-body-grid-admin {
    grid-template-columns: 1fr;
  }

  .wetalk-admin-grid {
    grid-template-columns: 1fr;
  }

  .wetalk-admin-editorial-target {
    grid-template-columns: 1fr;
  }

  .wetalk-main-target {
    height: auto;
    overflow: visible;
  }

  .wetalk-main-target #wetalk-content,
  .wetalk-target-layout,
  .wetalk-target-posts {
    height: auto;
    min-height: 0;
  }

  .wetalk-target-posts {
    overflow: visible;
    padding-bottom: 0;
  }

  .wetalk-sidebar,
  .wetalk-right-rail {
    position: static;
  }

  .wetalk-sidebar {
    position: static;
    min-height: 0;
  }

  .wetalk-sidebar-inner {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    min-height: 0;
    height: auto;
    padding-top: 0;
    gap: 18px;
    padding-right: 0;
  }

  .wetalk-side-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .wetalk-side-link {
    flex: 0 0 auto;
  }

  .wetalk-right-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    overflow: visible;
    padding-right: 0;
    margin-right: 0;
  }

  .wetalk-rail-panel {
    margin-top: 0;
  }

  .wetalk-catalog-header {
    align-items: flex-start;
  }

  .headerActions {
    position: static;
    transform: none;
    align-items: flex-start;
    flex-direction: column;
  }

  .wetalk-discussion-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wetalk-shell {
    padding: 18px 14px 40px;
  }

  .wetalk-catalog-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions";
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
    border-bottom: none;
    position: static;
  }

  .brandLink {
    grid-area: brand;
    position: static;
    transform: none;
  }

  .headerActions {
    grid-area: actions;
    display: contents;
  }

  .headerMenuToggle {
    display: inline-flex;
    grid-area: actions;
    justify-self: end;
  }

  .headerLinks {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    flex-direction: column;
    width: 100%;
    padding: 12px 0 0;
    background: var(--bg);
    z-index: 60;
  }

  .headerLinks.open {
    display: flex;
  }

  .wetalk-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .wetalk-topbar h1 {
    font-size: 34px;
  }

  .wetalk-post-title {
    font-size: 15px;
  }

  .wetalk-right-rail {
    grid-template-columns: 1fr;
  }

  .wetalk-rail-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 840px), (min-width: 761px) and (max-width: 1024px) and (orientation: portrait), (max-width: 980px) and (max-height: 560px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    background: #f0f2f5;
  }

  body::before {
    display: none;
  }

  body.wetalk-mobile-sheet-open {
    overflow: hidden;
  }

  .wetalk-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0 0 calc(72px + env(safe-area-inset-bottom));
    overflow: clip;
  }

  .wetalk-catalog-header,
  .wetalk-sidebar,
  .wetalk-right-rail {
    display: none !important;
  }

  .wetalk-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    min-height: calc(56px + env(safe-area-inset-top));
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: env(safe-area-inset-top) 12px 8px;
    border-bottom: 1px solid #d8dee8;
    background: #ffffff;
  }

  .wetalk-mobile-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
  }

  .wetalk-mobile-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .wetalk-mobile-brand-text {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
  }

  .wetalk-mobile-brand-title {
    min-width: 0;
    color: var(--accent);
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
  }

  .wetalk-mobile-brand-subtitle {
    color: #596579;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  .wetalk-mobile-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .wetalk-mobile-icon-button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #e4e6eb;
    color: #1c1e21;
    padding: 0;
    overflow: hidden;
  }

  .wetalk-mobile-icon-button svg,
  .wetalk-mobile-tab svg,
  .wetalk-mobile-tab-icon,
  .wetalk-mobile-search-form .searchBtn svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  .wetalk-mobile-tab-icon {
    flex: 0 0 auto;
    object-fit: contain;
    opacity: 0.64;
    filter: none;
  }

  .wetalk-mobile-tab.active .wetalk-mobile-tab-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(1033%) hue-rotate(140deg) brightness(93%) contrast(98%);
  }

  .wetalk-mobile-icon-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .wetalk-mobile-icon-button-fallback::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }

  .wetalk-mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid #d8dee8;
    background: #ffffff;
    box-shadow: 0 -2px 12px rgba(20, 32, 47, 0.08);
  }

  .wetalk-mobile-tab {
    min-width: 0;
    min-height: 52px;
    display: grid;
    grid-template-rows: 24px 12px;
    align-content: center;
    justify-items: center;
    justify-content: center;
    row-gap: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #606770;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    padding: 0 2px;
  }

  .wetalk-mobile-tab svg,
  .wetalk-mobile-tab-icon {
    align-self: center;
    justify-self: center;
  }

  .wetalk-mobile-tab svg {
    width: 24px;
    height: 24px;
  }

  .wetalk-mobile-tab-icon {
    width: auto;
    height: 24px;
    max-width: 34px;
  }

  .wetalk-mobile-tab span {
    align-self: start;
    display: block;
    line-height: 12px;
  }

  .wetalk-mobile-tab.active {
    color: var(--accent);
  }

  .wetalk-body-grid {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .wetalk-main,
  .wetalk-main.wetalk-main-target {
    width: 100%;
    min-width: 0;
    padding: 8px 0 0;
    overflow: visible;
  }

  #wetalk-content {
    width: 100%;
    min-width: 0;
  }

  .wetalk-mobile-discussed {
    display: block;
    margin: 0 0 8px;
    border-top: 1px solid #d8dee8;
    border-bottom: 1px solid #d8dee8;
    background: #ffffff;
  }

  .wetalk-mobile-discussed .wetalk-rail-panel {
    margin: 0;
  }

  .wetalk-mobile-discussed .wetalk-rail-panel-head {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 12px 14px 10px;
    background: #ffffff;
  }

  .wetalk-mobile-discussed .wetalk-rail-panel-head::after {
    display: none;
  }

  .wetalk-mobile-discussed .wetalk-rail-kicker {
    margin: 0;
    color: #65676b;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .wetalk-mobile-discussed .wetalk-rail-switches {
    gap: 6px;
  }

  .wetalk-mobile-discussed .wetalk-rail-switch {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .wetalk-mobile-discussed .wetalk-rail-card-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 14px;
    padding: 0 0 14px;
    scrollbar-width: none;
  }

  .wetalk-mobile-discussed .wetalk-rail-card-grid::before,
  .wetalk-mobile-discussed .wetalk-rail-card-grid::after {
    content: "";
    flex: 0 0 14px;
  }

  .wetalk-mobile-discussed .wetalk-rail-card-grid::-webkit-scrollbar {
    display: none;
  }

  .wetalk-mobile-discussed .wetalk-most-discussed-card {
    flex: 0 0 auto;
    width: fit-content;
    min-width: min(46vw, 180px);
    max-width: min(72vw, 340px);
    scroll-snap-align: start;
    min-height: 76px;
    padding: 14px;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: none;
  }

  .wetalk-mobile-discussed .wetalk-most-discussed-card:hover {
    transform: none;
    box-shadow: none;
  }

  .wetalk-mobile-discussed .wetalk-empty {
    padding: 12px 14px 16px;
  }

  .wetalk-mobile-feed-heading {
    display: block;
    margin: 0;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #d8dee8;
    background: #ffffff;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
  }

  .wetalk-composer-trigger {
    min-height: 62px;
    margin: 0 0 8px;
    padding: 12px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .wetalk-composer-trigger:hover {
    transform: none;
    box-shadow: none;
  }

  .wetalk-composer-trigger-avatar,
  .wetalk-compose-user-avatar {
    width: 40px;
    height: 40px;
  }

  .wetalk-composer-trigger-placeholder {
    font-size: 15px;
  }

  .wetalk-post,
  .wetalk-comment-composer,
  .wetalk-comment,
  .wetalk-profile,
  .wetalk-empty,
  .wetalk-loading {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .wetalk-post {
    padding: 13px 14px 12px;
    margin: 0 0 8px;
    border: 0;
    border-radius: 12px;
    background: var(--card-bg);
  }

  .wetalk-post:hover {
    border-color: transparent;
  }

  .wetalk-post-header {
    margin-bottom: 8px;
  }

  .wetalk-post-avatar {
    width: 36px;
    height: 36px;
  }

  .wetalk-post-author {
    font-size: 15px;
  }

  .wetalk-post-time {
    font-size: 12px;
  }

  .wetalk-post-target {
    max-width: 100%;
    margin-bottom: 8px;
    overflow: hidden;
    color: var(--accent);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wetalk-post-title {
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.18;
  }

  .wetalk-post-body,
  .wetalk-comment-body {
    font-size: 15px;
    line-height: 1.5;
  }

  .wetalk-post-quote {
    margin: 10px 0;
    padding: 10px 12px;
    font-size: 14px;
  }

  .wetalk-post-actions,
  .wetalk-comment-actions {
    margin-top: 11px;
    padding-top: 9px;
    border-top: 1px solid #eef0f3;
    font-size: 13px;
  }

  .wetalk-comments {
    margin-top: 8px;
  }

  .wetalk-comments-head {
    padding: 14px;
    margin: 0;
    background: #ffffff;
  }

  .wetalk-comments-head h2 {
    font-size: 22px;
  }

  .wetalk-comment-composer,
  .wetalk-comment {
    padding: 12px 14px;
    margin: 0 0 8px;
  }

  .wetalk-replies {
    margin-left: 12px;
    padding-left: 10px;
  }

  .wetalk-user-hover-card {
    display: none !important;
  }

  .wetalk-target-sticky {
    position: sticky;
    top: calc(56px + env(safe-area-inset-top));
    z-index: 50;
    padding: 10px 14px 12px;
    border-bottom: 1px solid #d8dee8;
    background: #ffffff;
  }

  .wetalk-target-sticky::after {
    display: none;
  }

  .wetalk-target-header-top {
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
  }

  .wetalk-target-header-line:first-child {
    width: 100%;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .wetalk-target-header-name {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.12;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .wetalk-target-header-actions {
    width: 100%;
    gap: 8px;
    margin-top: 4px;
  }

  .wetalk-target-header-compose-card {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f0f2f5;
  }

  .wetalk-target-header-compose-card:hover,
  .wetalk-target-header-link:hover {
    transform: none;
    box-shadow: none;
  }

  .wetalk-target-header-compose-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wetalk-target-header-link {
    min-height: 38px;
    padding: 0 12px;
  }

  .wetalk-target-posts {
    padding: 8px 0 0;
  }

  .wetalk-profile {
    padding: 20px 14px;
    margin: 0 0 8px;
  }

  .wetalk-profile-stats,
  .wetalk-profile-links {
    gap: 12px;
  }

  .wetalk-profile-posts-head {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 14px;
    margin: 0 0 8px;
  }

  .wetalk-profile-posts-avatar {
    width: 48px;
    height: 48px;
  }

  .wetalk-profile-posts-title h1 {
    font-size: 21px;
  }

  .wetalk-mobile-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.36);
  }

  .wetalk-mobile-sheet {
    width: 100%;
    max-height: min(86dvh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 18px 18px 0 0;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 -16px 40px rgba(20, 32, 47, 0.2);
  }

  .wetalk-mobile-sheet-head {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 58px;
    border-bottom: 1px solid #d8dee8;
    position: relative;
  }

  .wetalk-mobile-sheet-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
  }

  .wetalk-mobile-sheet-title-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent);
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
  }

  .wetalk-mobile-sheet-title-brand img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .wetalk-mobile-sheet-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #e4e6eb;
    color: #1c1e21;
    font-size: 30px;
    line-height: 1;
  }

  .wetalk-mobile-sheet-body {
    overflow-y: auto;
    padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
  }

  .wetalk-mobile-search-form {
    margin-bottom: 14px;
  }

  .wetalk-mobile-search-form .searchInput {
    height: 46px;
    border-radius: 999px;
    background: #f0f2f5;
  }

  .wetalk-mobile-search-form .searchInput:focus + .searchPlaceholder {
    opacity: 1;
  }

  .wetalk-mobile-search-form .searchInput:not(:placeholder-shown) + .searchPlaceholder {
    opacity: 0;
  }

  .wetalk-mobile-sheet-links,
  .wetalk-mobile-sheet-section {
    display: grid;
    gap: 8px;
  }

  .wetalk-mobile-sheet-section + .wetalk-mobile-sheet-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef0f3;
  }

  .wetalk-mobile-sheet-section h3 {
    margin: 0 0 2px;
    color: #65676b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .wetalk-mobile-sheet-links a,
  .wetalk-mobile-sheet-section a,
  .wetalk-mobile-sheet-section button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 10px;
    background: #f7f8fa;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    padding: 0 14px;
  }

  .wetalk-mobile-sheet-section .wetalk-mobile-sheet-danger {
    color: #c0392b;
  }

  .wetalk-modal-backdrop,
  .wetalk-post-modal-backdrop {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #ffffff;
  }

  .wetalk-compose-modal,
  .wetalk-post-modal {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .wetalk-compose-modal-head,
  .wetalk-post-modal-header {
    min-height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 56px 0;
    flex: 0 0 auto;
  }

  .wetalk-compose-modal-head h2,
  .wetalk-post-modal-context {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wetalk-compose-close,
  .wetalk-post-modal-close {
    top: calc(8px + env(safe-area-inset-top));
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .wetalk-compose-modal-body,
  .wetalk-post-modal-main {
    min-height: 0;
    flex: 1 1 auto;
  }

  .wetalk-compose-modal-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  }

  .wetalk-compose-textarea {
    min-height: 38dvh;
    flex: 1 1 auto;
  }

  .wetalk-compose-actions {
    position: sticky;
    bottom: 0;
    margin-top: 10px;
    padding-top: 10px;
    background: #ffffff;
  }

  .wetalk-post-modal-scroll {
    height: 100%;
    background: #f0f2f5;
  }

  .wetalk-post-modal-story-inner {
    padding: 14px;
    background: #ffffff;
  }

  .wetalk-post-modal-title {
    font-size: 22px;
  }

  .wetalk-post-modal-body {
    font-size: 16px;
    line-height: 1.52;
  }

  .wetalk-comments-modal {
    padding: 0 0 12px;
    border-top: 0;
    background: #f0f2f5;
  }

  .wetalk-comment-list-modal {
    padding: 8px 0 0;
  }

  .wetalk-comment-composer-modal,
  .wetalk-comment-login.wetalk-comment-composer-modal {
    bottom: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

@media (max-width: 980px) and (max-height: 560px) {
  .wetalk-shell {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .wetalk-mobile-topbar {
    min-height: calc(48px + env(safe-area-inset-top));
    padding-bottom: 6px;
  }

  .wetalk-mobile-brand-logo {
    width: 30px;
    height: 30px;
  }

  .wetalk-mobile-brand-title {
    font-size: 23px;
  }

  .wetalk-mobile-icon-button {
    width: 36px;
    height: 36px;
  }

  .wetalk-mobile-tabbar {
    min-height: calc(54px + env(safe-area-inset-bottom));
    padding-top: 3px;
    padding-bottom: calc(3px + env(safe-area-inset-bottom));
  }

  .wetalk-mobile-tab {
    min-height: 48px;
    grid-template-rows: 22px 11px;
    row-gap: 3px;
    font-size: 10px;
  }

  .wetalk-mobile-tab svg,
  .wetalk-mobile-tab-icon {
    height: 22px;
  }

  .wetalk-mobile-tab svg {
    width: 22px;
  }

  .wetalk-mobile-tab-icon {
    width: auto;
    max-width: 32px;
  }

  .wetalk-mobile-tab span {
    line-height: 11px;
  }

  .wetalk-main,
  .wetalk-main.wetalk-main-target {
    padding-top: 6px;
  }

  .wetalk-mobile-discussed .wetalk-rail-panel-head {
    padding: 8px 14px 6px;
  }

  .wetalk-mobile-discussed .wetalk-rail-switch {
    min-height: 30px;
    padding: 0 11px;
  }

  .wetalk-mobile-discussed .wetalk-rail-card-grid {
    padding-bottom: 10px;
  }

  .wetalk-mobile-discussed .wetalk-most-discussed-card {
    min-height: 62px;
    padding: 10px 14px;
  }

  .wetalk-most-discussed-title {
    line-height: 1.12;
  }

  .wetalk-post {
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .wetalk-target-sticky {
    top: calc(48px + env(safe-area-inset-top));
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .wetalk-target-header-name {
    -webkit-line-clamp: 1;
  }
}
