:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040a12;
  --surface: #0c1929;
  --surface-raised: #102238;
  --surface-soft: #122840;
  --line: rgba(151, 181, 216, 0.16);
  --line-strong: rgba(151, 181, 216, 0.28);
  --text: #f5f8fc;
  --muted: #9bacc0;
  --muted-strong: #c6d1de;
  --accent: #42a5ff;
  --accent-strong: #1d8df2;
  --accent-soft: rgba(66, 165, 255, 0.12);
  --success: #37c990;
  --success-soft: rgba(55, 201, 144, 0.12);
  --warning: #f4b85b;
  --danger: #ff7b86;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -8%, rgba(35, 118, 193, 0.24), transparent 34rem),
    linear-gradient(180deg, #081522 0, var(--bg) 28rem, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

button,
select {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(92, 184, 255, 0.75);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 23, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner,
.intro-shell,
.topic-strip-inner,
.support-layout,
.footer-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(99, 178, 255, 0.35);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(39, 143, 241, 0.22), rgba(29, 77, 124, 0.08));
}

.brand-mark img {
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.text-link {
  margin-right: 0.25rem;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover {
  color: var(--text);
}

.button,
.icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.65rem 0.95rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  border-color: rgba(87, 176, 255, 0.56);
  background: linear-gradient(180deg, #258fef, #1479d3);
  box-shadow: 0 8px 22px rgba(20, 121, 211, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #35a0ff, #1b83df);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(17, 37, 59, 0.82);
}

.button-secondary:hover:not(:disabled),
.button-ghost:hover:not(:disabled) {
  border-color: rgba(96, 177, 247, 0.45);
  background: rgba(24, 53, 83, 0.92);
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted-strong);
}

.button-small {
  min-height: 34px;
  padding: 0.48rem 0.7rem;
  font-size: 0.78rem;
}

.icon-button {
  width: 42px;
  flex: 0 0 42px;
  padding: 0;
  border-color: var(--line);
  background: rgba(13, 29, 47, 0.8);
  color: var(--muted-strong);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: #66788c;
  box-shadow: 0 0 0 3px rgba(102, 120, 140, 0.12);
}

.wallet-button.is-connected .status-dot,
.composer-wallet.is-connected .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(55, 201, 144, 0.14);
}

.intro-shell {
  min-height: 272px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(380px, 1.16fr);
  gap: 4.5rem;
  align-items: center;
  padding-block: 3.25rem 2.9rem;
}

.eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  color: #74bcfa;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.45rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.intro-copy p {
  max-width: 520px;
  margin: 1rem 0 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.65;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(121, 181, 234, 0.32);
  border-radius: 13px;
  background: rgba(11, 27, 45, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.23), inset 0 1px rgba(255, 255, 255, 0.02);
}

.search-wrap:focus-within {
  border-color: rgba(72, 169, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(49, 148, 237, 0.1), 0 20px 50px rgba(0, 0, 0, 0.23);
}

.search-wrap > svg {
  width: 21px;
  height: 21px;
  margin-left: 1.05rem;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 2;
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  height: 61px;
  border: 0;
  outline: 0;
  padding: 0 3.25rem 0 0.8rem;
  background: transparent;
  color: var(--text);
  font-size: 0.94rem;
}

.search-wrap input::placeholder {
  color: #718399;
}

.search-shortcut {
  position: absolute;
  right: 1rem;
  border: 1px solid var(--line-strong);
  border-bottom-color: rgba(151, 181, 216, 0.38);
  border-radius: 5px;
  padding: 0.15rem 0.38rem;
  background: #0b1726;
  color: var(--muted);
  font: 700 0.72rem var(--font);
}

.clear-search {
  position: absolute;
  right: 0.55rem;
  width: 34px;
  min-height: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 0;
  background: transparent;
}

.topic-strip {
  border-block: 1px solid var(--line);
  background: rgba(5, 13, 22, 0.66);
}

.topic-strip-inner {
  min-height: 67px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.topic-strip-inner::-webkit-scrollbar {
  display: none;
}

.topic-chip {
  min-height: 34px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.47rem 0.72rem;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 720;
}

.topic-chip:hover,
.topic-chip.is-active {
  border-color: rgba(78, 169, 247, 0.48);
  background: var(--accent-soft);
  color: #d9edff;
}

.topic-chip .topic-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--chip-color, var(--accent));
}

.support-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.25rem;
  padding-block: 2rem 4rem;
}

.support-sidebar {
  min-width: 0;
}

.sidebar-section {
  padding: 0.3rem 0 1.35rem;
}

.sidebar-section + .sidebar-section {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
}

.sidebar-label {
  margin: 0 0 0.65rem 0.7rem;
  color: #687b91;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.category-nav {
  display: grid;
  gap: 0.18rem;
}

.category-link {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0.52rem 0.7rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 680;
  text-align: left;
}

.category-link:hover,
.category-link.is-active {
  background: rgba(82, 163, 235, 0.09);
  color: var(--text);
}

.category-link.is-active {
  box-shadow: inset 2px 0 var(--accent);
}

.category-link .topic-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--chip-color, #607890);
}

.category-count {
  color: #71849a;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.sidebar-callout,
.community-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.callout-icon {
  width: 25px;
  height: 25px;
  display: grid;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid rgba(83, 172, 251, 0.32);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8dcbff;
  font-size: 0.72rem;
  font-weight: 850;
}

.sidebar-callout strong,
.community-note strong {
  display: block;
  color: var(--muted-strong);
  font-size: 0.77rem;
  line-height: 1.35;
}

.sidebar-callout p,
.community-note p {
  margin: 0.45rem 0 0;
  color: #708298;
  font-size: 0.71rem;
  line-height: 1.55;
}

.community-note svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: var(--success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.feed-panel {
  min-width: 0;
}

.feed-toolbar {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.feed-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.feed-title-row h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.count-badge {
  min-width: 25px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.19rem 0.42rem;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.feed-toolbar p {
  margin: 0.36rem 0 0;
  color: #71849a;
  font-size: 0.76rem;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-controls select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  background: #0c1929;
  color: var(--muted-strong);
  font-size: 0.75rem;
  font-weight: 650;
}

.refresh-button {
  width: 38px;
  min-height: 38px;
  height: 38px;
  flex-basis: 38px;
}

.refresh-button.is-loading svg {
  animation: rotate 0.9s linear infinite;
}

.notice {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.72rem 0.9rem;
  background: rgba(80, 156, 224, 0.08);
  color: var(--muted-strong);
  font-size: 0.78rem;
  line-height: 1.5;
}

.notice.is-error {
  border-color: rgba(255, 123, 134, 0.3);
  background: rgba(255, 123, 134, 0.08);
  color: #ffc3c8;
}

.notice.is-success {
  border-color: rgba(55, 201, 144, 0.28);
  background: rgba(55, 201, 144, 0.08);
  color: #adf0d4;
}

.feed-status {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(151, 181, 216, 0.2);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: rotate 0.8s linear infinite;
}

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

.support-feed {
  display: grid;
}

.post {
  padding: 1.35rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
}

.post:first-child {
  padding-top: 1.2rem;
}

.post-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.9rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(106, 172, 231, 0.25);
  border-radius: 10px;
  background: var(--avatar-bg, linear-gradient(135deg, #173a5d, #102339));
  color: #cdeaff;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.post-body {
  min-width: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  margin-bottom: 0.38rem;
  color: #71849a;
  font-size: 0.7rem;
}

.post-author {
  color: var(--muted-strong);
  font-weight: 750;
}

.meta-separator::before {
  content: "·";
  margin-right: 0.42rem;
  color: #52677e;
}

.post h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 1rem;
  letter-spacing: -0.018em;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.post-content {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0.52rem 0 0;
  color: #aab8c8;
  font-size: 0.83rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.post-content.is-expanded {
  display: block;
}

.expand-button {
  min-height: auto;
  border: 0;
  padding: 0.25rem 0 0;
  background: transparent;
  color: #71baff;
  font-size: 0.72rem;
  font-weight: 720;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin-top: 0.75rem;
}

.post-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.49rem;
  background: rgba(255, 255, 255, 0.02);
  color: #899bb0;
  font-size: 0.64rem;
  font-weight: 700;
}

button.post-tag:hover {
  border-color: rgba(78, 169, 247, 0.4);
  color: #b9ddfb;
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.95rem 0 0 3.75rem;
}

.post-action,
.status-pill {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.37rem 0.57rem;
  background: transparent;
  color: #8295aa;
  font-size: 0.69rem;
  font-weight: 720;
}

.post-action:hover:not(:disabled) {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
}

.post-action svg,
.status-pill svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.status-pill {
  margin-left: auto;
  border-color: rgba(244, 184, 91, 0.19);
  background: rgba(244, 184, 91, 0.07);
  color: #e8b96f;
}

.status-pill.solved {
  border-color: rgba(55, 201, 144, 0.2);
  background: var(--success-soft);
  color: #74dcb6;
}

.status-pill.pending {
  border-color: rgba(120, 160, 199, 0.2);
  background: rgba(120, 160, 199, 0.08);
  color: #a6b9cc;
}

.reply-panel {
  margin: 0.9rem 0 0 3.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 21, 35, 0.76);
}

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

.reply-list {
  padding: 0 0.95rem;
}

.reply-item {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.88rem 0;
  border-bottom: 1px solid var(--line);
}

.reply-item .author-avatar {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  font-size: 0.56rem;
}

.reply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: #70839a;
  font-size: 0.65rem;
}

.reply-content {
  margin-top: 0.35rem;
  color: #b6c3d0;
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.reply-empty,
.reply-loading {
  margin: 0;
  padding: 1rem 0;
  color: #71849a;
  font-size: 0.74rem;
  text-align: center;
}

.reply-composer {
  padding: 0.85rem;
}

.reply-composer textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  padding: 0.68rem 0.75rem;
  background: #091624;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.5;
}

.reply-composer textarea:focus {
  border-color: rgba(78, 169, 247, 0.55);
  box-shadow: 0 0 0 3px rgba(49, 148, 237, 0.08);
}

.reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.empty-state {
  min-height: 350px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 2rem;
  text-align: center;
}

.empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(76, 157, 228, 0.06);
}

.empty-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #78a8d1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.empty-state h3 {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.empty-state p {
  max-width: 350px;
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

footer {
  border-top: 1px solid var(--line);
  background: #040a12;
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #687b91;
  font-size: 0.72rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted-strong);
  font-weight: 750;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.footer-inner p {
  margin: 0;
}

.composer-dialog {
  width: min(720px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border: 1px solid rgba(111, 174, 231, 0.3);
  border-radius: 15px;
  padding: 0;
  background: #0b1828;
  color: var(--text);
  box-shadow: var(--shadow);
}

.composer-dialog::backdrop {
  background: rgba(1, 5, 10, 0.76);
  backdrop-filter: blur(5px);
}

.composer {
  padding: 1.25rem;
}

.composer-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.composer-header .eyebrow {
  margin-bottom: 0.38rem;
}

.composer-header h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.composer-wallet {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: rgba(75, 150, 217, 0.05);
}

.composer-wallet strong,
.composer-wallet span {
  display: block;
}

.composer-wallet strong {
  color: var(--muted-strong);
  font-size: 0.76rem;
}

.composer-wallet div span {
  margin-top: 0.2rem;
  color: #71849a;
  font-size: 0.66rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.05rem;
}

.field {
  position: relative;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span,
.field legend {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--muted-strong);
  font-size: 0.73rem;
  font-weight: 750;
}

.field legend span {
  display: inline;
  color: #71849a;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  padding: 0.7rem 0.75rem;
  background: #081521;
  color: var(--text);
  font-size: 0.8rem;
}

.field input,
.field select {
  height: 43px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(78, 169, 247, 0.62);
  box-shadow: 0 0 0 3px rgba(49, 148, 237, 0.08);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5e7187;
}

.field > small {
  position: absolute;
  right: 0.2rem;
  margin-top: 0.35rem;
  color: #64778c;
  font-size: 0.62rem;
}

.related-tags {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-option {
  position: relative;
}

.tag-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-option span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  background: rgba(255, 255, 255, 0.018);
  color: #8799ae;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.tag-option input:checked + span {
  border-color: rgba(78, 169, 247, 0.5);
  background: var(--accent-soft);
  color: #c4e4ff;
}

.tag-option input:focus-visible + span {
  outline: 3px solid rgba(92, 184, 255, 0.75);
  outline-offset: 3px;
}

.privacy-note {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  background: rgba(244, 184, 91, 0.065);
  color: #a99b80;
}

.privacy-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: var(--warning);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.privacy-note p {
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.5;
}

.privacy-note strong {
  color: #e0bc7e;
}

.form-status {
  min-height: 1.2rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.form-status.is-error {
  color: #ffabb2;
}

.form-status.is-success {
  color: #8ce4c2;
}

.composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  max-width: min(360px, calc(100vw - 2rem));
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: #102238;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  color: var(--muted-strong);
  font-size: 0.76rem;
  line-height: 1.45;
  animation: toast-in 180ms ease both;
}

.toast.is-error {
  border-color: rgba(255, 123, 134, 0.36);
}

.toast.is-success {
  border-color: rgba(55, 201, 144, 0.34);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 900px) {
  .intro-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
    padding-block: 2.6rem;
  }

  .support-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .support-sidebar {
    display: none;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .intro-shell,
  .topic-strip-inner,
  .support-layout,
  .footer-inner {
    width: min(100% - 1.25rem, 1180px);
  }

  .header-inner {
    min-height: 62px;
  }

  .brand-copy span,
  .desktop-only,
  .wallet-button {
    display: none;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-actions .button-primary {
    min-height: 38px;
    padding: 0.58rem 0.7rem;
    font-size: 0.76rem;
  }

  .intro-shell {
    gap: 1.3rem;
    padding-block: 2.15rem;
  }

  .intro-copy h1 {
    font-size: 2.25rem;
  }

  .intro-copy p {
    font-size: 0.88rem;
  }

  .search-wrap input {
    height: 54px;
    font-size: 0.86rem;
  }

  .topic-strip-inner {
    min-height: 58px;
  }

  .support-layout {
    padding-block: 1.25rem 2.5rem;
  }

  .feed-toolbar {
    display: grid;
  }

  .filter-controls {
    width: 100%;
  }

  .filter-controls label {
    flex: 1;
  }

  .filter-controls select {
    width: 100%;
  }

  .post {
    padding-block: 1.1rem;
  }

  .post-main {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.68rem;
  }

  .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.58rem;
  }

  .post h3 {
    font-size: 0.94rem;
  }

  .post-footer,
  .reply-panel {
    margin-left: 0;
  }

  .status-pill {
    margin-left: 0;
  }

  .footer-inner {
    min-height: 118px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .composer-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .composer {
    min-height: 100%;
    padding: 1rem;
  }

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

  .field-wide {
    grid-column: auto;
  }

  .composer-wallet {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .composer-wallet .button {
    grid-column: 2;
    justify-self: start;
  }
}

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