/* ExtensionHub database-backed request forum */
:root {
  font-family: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  color: #2a2521;
  background: #faf7f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --orange: #ff5e1a;
  --orange-dark: #e64c0c;
  --orange-soft: #fff2eb;
  --charcoal: #2a2521;
  --stone: #7c7267;
  --cream: #faf7f2;
  --paper: #ffffff;
  --line: #eee8df;
  --line-strong: #e5ddd1;
  --mint: #75d7ba;
  --shadow-soft: 0 14px 38px rgba(58, 45, 31, 0.07);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 35% 0%, rgba(255, 255, 255, 0.92), transparent 32%),
    var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

i[data-icon] > svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 94, 26, 0.24);
  outline-offset: 2px;
}

body.layer-open {
  overflow: hidden;
}

.site-header {
  height: 104px;
  border-bottom: 1px solid #ece7df;
  background: rgba(255, 255, 255, 0.93);
}

.header-inner {
  width: min(1680px, calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(255, 94, 26, 0.19);
}

.brand-mark > i {
  font-size: 28px;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-line strong {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.brand-line strong span,
.orange-text {
  color: var(--orange);
}

.brand-line small {
  padding: 4px 9px;
  border-radius: 999px;
  color: #655d53;
  background: #f3efe7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  margin-top: 5px;
  color: #8a8178;
  font-size: 12px;
}

.header-stats {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #827970;
  font-size: 14px;
}

.header-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.header-stat i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
}

.header-stat strong {
  color: var(--charcoal);
  font-size: 16px;
}

.header-stat strong.orange-text {
  color: var(--orange);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.premium-nav-button,
.home-button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4f4841;
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.premium-nav-button:hover,
.home-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 94, 26, 0.36);
  color: var(--orange-dark);
  box-shadow: 0 8px 18px rgba(58, 45, 31, 0.07);
}

.premium-nav-button i,
.home-button i {
  font-size: 17px;
}

.premium-nav-button {
  color: #9a6700;
  cursor: pointer;
}

.premium-nav-button:hover {
  color: #7c5200;
}

.upload-button {
  justify-self: end;
  min-height: 48px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 22px rgba(255, 94, 26, 0.17);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.upload-button > i,
.new-request-button > i,
.primary-button > i {
  font-size: 20px;
}

.upload-button:hover,
.new-request-button:hover,
.primary-button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.new-request-button:disabled,
.primary-button:disabled,
.support-button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.page-shell {
  width: min(1540px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 54px;
}

.breadcrumb {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #938a80;
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #766d64;
  text-decoration: none;
  transition: color 160ms ease;
}

.breadcrumb a:hover {
  color: var(--orange-dark);
}

.breadcrumb a i {
  font-size: 14px;
}

.breadcrumb > i {
  color: #b8afa5;
  font-size: 13px;
}

.breadcrumb span[aria-current="page"] {
  color: #4f4841;
}

.page-intro {
  min-height: 96px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.page-intro h1 {
  margin: 0;
  color: #302b27;
  font-size: clamp(29px, 2.05vw, 35px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.page-intro h1 span {
  color: var(--orange);
}

.page-intro p {
  margin: 9px 0 0;
  color: #8a8178;
  font-size: 18px;
  line-height: 1.55;
}

.new-request-button,
.primary-button {
  min-height: 50px;
  padding: 0 23px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 22px rgba(255, 94, 26, 0.18);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.request-board,
.side-card {
  border: 1px solid rgba(229, 221, 209, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.request-board {
  min-width: 0;
  overflow: hidden;
}

.board-toolbar {
  height: 70px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.search-box {
  width: min(340px, 44%);
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #786f66;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(255, 94, 26, 0.52);
  box-shadow: 0 0 0 4px rgba(255, 94, 26, 0.08);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--charcoal);
  background: transparent;
  font-size: 14px;
}

.search-box input::placeholder,
textarea::placeholder,
.text-input::placeholder {
  color: #7b726a;
  opacity: 1;
}

.search-box > i {
  flex: 0 0 auto;
  font-size: 21px;
}

.sort-box > i {
  flex: 0 0 auto;
  font-size: 18px;
}

.sort-box,
.per-page {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #625b54;
  background: #fff;
}

.sort-box select,
.per-page select {
  border: 0;
  outline: 0;
  appearance: none;
  color: inherit;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.request-list {
  min-height: 465px;
}

.request-row {
  min-height: 93px;
  padding: 14px 14px 14px 16px;
  display: grid;
  grid-template-columns: 60px minmax(280px, 1fr) minmax(400px, 440px) 150px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

.request-row:last-child {
  border-bottom: 0;
}

.request-row:hover {
  background: #fffaf7;
}

.request-icon {
  width: 52px;
  height: 52px;
  border: 1px solid #f0e7dc;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #776e65;
  background: #fff8f3;
}

.request-icon > i {
  font-size: 29px;
}

.request-summary {
  min-width: 0;
}

.request-title {
  max-width: 100%;
  padding: 0;
  border: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #322d29;
  background: transparent;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  cursor: pointer;
}

.request-title:hover {
  color: var(--orange);
}

.request-byline {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #746c64;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.request-summary .request-byline {
  min-width: 0;
  overflow: hidden;
}

.request-summary .request-byline span:first-of-type {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.request-byline i {
  color: #91877d;
  font-style: normal;
}

.row-data {
  display: grid;
  grid-template-columns: 76px 90px minmax(150px, 1fr) 90px;
  align-items: stretch;
}

.row-metric,
.support-count {
  min-width: 0;
  min-height: 50px;
  padding: 0 10px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #5f5851;
  text-align: center;
}

.metric-main {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.metric-main i {
  flex: 0 0 auto;
  color: #5f5851;
  font-size: 20px;
}

.row-metric strong,
.row-metric small,
.support-count strong,
.support-count small {
  display: block;
}

.row-metric strong {
  overflow: hidden;
  color: #403a35;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.row-metric small,
.support-count small {
  margin-top: 0;
  color: #716960;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.view-metric {
  flex-direction: row;
}

.latest-metric {
  align-items: center;
}

.latest-metric .metric-main {
  width: 100%;
  min-width: 0;
}

.latest-metric .metric-main strong {
  font-size: 13.5px;
}

.latest-metric small {
  width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-count {
  color: var(--orange);
}

.support-count .metric-main i,
.support-count strong {
  color: var(--orange);
}

.support-count strong {
  font-size: 14px;
  font-weight: 800;
}

.support-count small {
  color: #655d55;
}

.read-button {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(255, 94, 26, 0.48);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--orange);
  background: #fff;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.read-button > i {
  font-size: 15px;
}

.read-button:hover {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}

.side-column {
  display: grid;
  gap: 16px;
}

.side-card {
  overflow: hidden;
}

.side-card h2 {
  margin: 0;
  color: #3b3530;
  font-size: 17px;
}

.ranking-card > h2 {
  padding: 24px 24px 19px;
  border-bottom: 1px solid var(--line);
}

.ranking-item {
  width: 100%;
  min-height: 82px;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 82px;
  gap: 12px;
  align-items: center;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item:hover {
  background: #fffaf7;
}

.ranking-empty {
  margin: 0;
  padding: 30px 22px;
  color: #91887f;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
}

.rank-number {
  font-size: 18px;
  font-weight: 800;
}

.ranking-item span,
.ranking-title {
  min-width: 0;
}

.ranking-title b {
  display: -webkit-box;
  overflow: hidden;
  color: #332d29;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

.ranking-likes {
  min-height: 45px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ranking-like-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--orange);
}

.ranking-like-number i {
  color: var(--orange);
  font-size: 17px;
}

.ranking-like-number strong {
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.ranking-likes small {
  color: #5f5851;
  font-size: 11px;
  font-weight: 600;
}

.privacy-card {
  padding: 24px 22px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
}

.privacy-card > svg {
  color: #645d56;
}

.privacy-icon {
  color: #645d56;
  font-size: 34px;
}

.privacy-card p {
  margin: 10px 0 0;
  color: #6f675f;
  font-size: 12.5px;
  line-height: 1.75;
}

.pagination {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.per-page {
  height: 41px;
}

.page-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-buttons button {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #655e57;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.page-buttons button i {
  font-size: 15px;
}

.page-buttons button.active {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}

.page-buttons button:disabled {
  color: #bbb4ad;
  background: rgba(255, 255, 255, 0.62);
  cursor: default;
}

.empty-state {
  min-height: 465px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #938a81;
  text-align: center;
}

.empty-state > i {
  font-size: 34px;
}

.empty-state h2 {
  margin: 14px 0 4px;
  color: #4b4540;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 94, 26, 0.18);
  border-top-color: var(--orange);
  border-radius: 50%;
  display: inline-block;
  animation: forum-spin 700ms linear infinite;
}

.error-state > i,
.drawer-loading.error-state > i {
  color: #c3473b;
  font-size: 34px;
}

.retry-board-button {
  min-height: 40px;
  margin-top: 16px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(44, 35, 28, 0.28);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.drawer-overlay {
  display: flex;
  justify-content: flex-end;
}

.detail-drawer {
  width: min(620px, 46vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  box-shadow: -22px 0 58px rgba(49, 37, 27, 0.2);
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.drawer-overlay.is-visible .detail-drawer {
  transform: translateX(0);
}

.drawer-header {
  height: 68px;
  flex: 0 0 auto;
  padding: 0 23px 0 27px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #615a53;
  background: #fff;
  cursor: pointer;
}

.icon-button > i {
  font-size: 21px;
}

.icon-button:hover {
  color: var(--orange);
  border-color: rgba(255, 94, 26, 0.32);
  background: var(--orange-soft);
}

.drawer-scroll {
  min-height: 0;
  padding: 25px 27px 40px;
  overflow-y: auto;
}

.drawer-request {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: start;
  gap: 16px;
}

.drawer-request-icon {
  width: 60px;
  height: 60px;
  border: 1px solid #f0e3d7;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d645c;
  background: #fff4ec;
}

.drawer-request-icon > i {
  font-size: 34px;
}

.drawer-title-block h2 {
  margin: 1px 0 10px;
  color: #302a26;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.018em;
}

.drawer-title-block .request-byline {
  flex-wrap: wrap;
  white-space: normal;
}

.drawer-stats {
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.drawer-stats span {
  min-height: 28px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #837a72;
  font-size: 11.5px;
}

.drawer-stats i {
  font-size: 19px;
}

.drawer-stats span:last-child {
  border-right: 0;
}

.drawer-stats strong {
  color: #4c4540;
}

.request-detail-sections {
  padding: 24px 0 22px;
  display: grid;
  gap: 16px;
}

.request-detail-section {
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  background: #fff;
}

.request-detail-section.reason-detail {
  background: #fff9f5;
}

.detail-label {
  display: block;
  color: #c2410c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.request-detail-section p {
  margin: 9px 0 0;
  color: #4f4842;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
}

.description-section h3,
.section-heading h3 {
  margin: 0;
  color: #37312d;
  font-size: 15px;
}

.support-button {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 94, 26, 0.52);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 23px 1fr auto;
  align-items: center;
  gap: 9px;
  color: var(--orange);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: color 150ms ease, background 150ms ease;
}

.support-button > i {
  font-size: 20px;
}

.support-button b {
  min-width: 38px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
}

.support-button:hover,
.support-button.is-supported {
  color: #fff;
  background: var(--orange);
}

.support-button:hover b,
.support-button.is-supported b {
  color: var(--orange);
  background: #fff;
}

.support-button:disabled:hover {
  color: var(--orange);
  background: #fff;
}

.support-button.is-supported:disabled:hover {
  color: #fff;
  background: var(--orange);
}

.comments-section {
  margin-top: 27px;
}

.section-heading {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading span {
  color: #999188;
  font-size: 11px;
}

.comment-list {
  display: grid;
}

.comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 11px;
}

.comment > svg {
  color: #aaa198;
}

.comment > i {
  color: #aaa198;
  font-size: 34px;
}

.comment p {
  margin: 0;
  color: #5e5650;
  font-size: 12.5px;
  line-height: 1.72;
}

.comment-meta {
  margin-bottom: 5px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-meta strong {
  color: #3e3834;
}

.comment-meta span {
  color: #a09890;
  font-size: 10px;
}

.empty-comments {
  padding: 26px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #958d85;
  text-align: center;
}

.empty-comments > i {
  font-size: 29px;
}

.empty-comments p {
  margin: 0;
  font-size: 12px;
}

.comment-form {
  margin-top: 19px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.comment-form-head {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.comment-form-head > span {
  color: #a09890;
  font-size: 9.5px;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #625b54;
  font-size: 11.5px;
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.switch-control {
  width: 37px;
  height: 21px;
  padding: 3px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #d9d3cc;
  transition: background 160ms ease;
}

.switch-control::after {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 1px 4px rgba(57, 44, 32, 0.22);
  transition: transform 160ms ease;
}

.switch-row input:checked + .switch-control {
  background: var(--orange);
}

.switch-row input:checked + .switch-control::after {
  transform: translateX(16px);
}

textarea,
.text-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  color: #2d2824;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 132px;
  padding: 15px 16px;
  resize: vertical;
  line-height: 1.65;
}

.text-input {
  height: 54px;
  padding: 0 16px;
}

.compact-input {
  height: 40px;
  margin-bottom: 10px;
}

textarea:focus,
.text-input:focus {
  border-color: rgba(255, 94, 26, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 94, 26, 0.08);
}

.submit-comment {
  width: 100%;
  min-height: 45px;
  margin-top: 10px;
  font-size: 12px;
}

.closed-topic-note {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6f675f;
  background: #faf7f2;
  font-size: 12px;
  font-weight: 700;
}

.closed-topic-note > i {
  color: var(--orange);
  font-size: 19px;
}

.drawer-loading {
  min-height: 70vh;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8c837a;
  text-align: center;
}

.drawer-loading h2,
.drawer-loading p {
  margin: 0;
}

.modal-overlay {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.request-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 26px 80px rgba(49, 37, 27, 0.28);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.modal-overlay.is-visible .request-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 27px 21px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.modal-eyebrow {
  color: var(--orange);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.modal-header h2 {
  margin: 6px 0 7px;
  color: #211d1a;
  font-size: 29px;
  line-height: 1.35;
}

.modal-header p {
  margin: 0;
  color: #665e57;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.request-form {
  padding: 23px 27px 26px;
}

.icon-picker {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.icon-picker legend,
.field-label {
  width: 100%;
  color: #2d2824;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.icon-picker legend small {
  margin-left: 10px;
  color: #6f665e;
  font-size: 15px;
  font-weight: 700;
}

.icon-options {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 7px;
}

.icon-options button {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #71685f;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.icon-options button > i:first-child {
  font-size: 25px;
}

.icon-options button:hover {
  border-color: rgba(255, 94, 26, 0.42);
  color: var(--orange);
  transform: translateY(-1px);
}

.icon-options button.selected {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 0 0 3px rgba(255, 94, 26, 0.08);
}

.selected-check {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  padding: 2px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
}

.icon-options button > .selected-check {
  font-size: 12px;
}

.field-label {
  position: relative;
  margin-top: 23px;
  display: grid;
  gap: 10px;
}

.field-label > small {
  position: static;
  justify-self: end;
  color: #665e57;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.identity-box {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 94, 26, 0.22);
  border-radius: 15px;
  background: #fff8f3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.strong-switch {
  width: 100%;
  align-items: center;
  gap: 14px;
}

.strong-switch > span:last-child {
  display: grid;
  gap: 5px;
}

.strong-switch b {
  color: #211d1a;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
}

.strong-switch small {
  color: #b91c1c;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.strong-switch .switch-control {
  width: 50px;
  height: 29px;
  flex: 0 0 auto;
}

.strong-switch .switch-control::after {
  width: 23px;
  height: 23px;
}

.strong-switch input:checked + .switch-control::after {
  transform: translateX(21px);
}

.identity-help {
  margin: 15px 0 0 64px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #b91c1c;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
}

.identity-help i {
  flex: 0 0 auto;
  color: #dc2626;
  font-size: 20px;
}

.identity-name-field {
  margin: 16px 0 0 64px;
  display: grid;
  gap: 7px;
  color: #4e4640;
  font-size: 12px;
  font-weight: 700;
}

.identity-name-field .text-input {
  margin-top: 0;
  background: #fff;
}

.modal-actions {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-actions .primary-button {
  min-height: 52px;
  padding-inline: 27px;
  font-size: 15.5px;
}

.secondary-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: #6d655e;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.secondary-button:hover {
  background: #f8f4ee;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 200;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(45, 138, 99, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #216a4d;
  background: #f1fff8;
  box-shadow: 0 13px 34px rgba(37, 85, 64, 0.15);
  font-size: 12px;
  font-weight: 700;
  animation: toast-in 220ms ease both;
}

.toast > i {
  font-size: 18px;
}

.toast.is-error {
  border-color: rgba(195, 71, 59, 0.24);
  color: #983b32;
  background: #fff5f3;
  box-shadow: 0 13px 34px rgba(125, 48, 41, 0.14);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

@media (max-width: 1320px) {
  .header-inner {
    gap: 20px;
  }

  .page-shell {
    width: calc(100% - 36px);
  }

  .board-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .request-row {
    grid-template-columns: 55px minmax(220px, 1fr) 320px 132px;
    gap: 11px;
  }

  .row-data {
    grid-template-columns: 62px 70px 118px 70px;
  }

  .row-metric,
  .support-count {
    padding-inline: 5px;
  }

  .brand-subtitle {
    display: none;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-stats {
    display: none;
  }

  .board-layout {
    grid-template-columns: 1fr;
  }

  .side-column {
    grid-template-columns: 1fr 1fr;
  }

  .request-row {
    grid-template-columns: 58px minmax(250px, 1fr) 400px 140px;
  }

  .row-data {
    grid-template-columns: 72px 82px 160px 86px;
  }

  .detail-drawer {
    width: min(650px, 68vw);
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 92px;
  }

  .header-inner,
  .page-shell {
    width: calc(100% - 28px);
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .brand-line strong {
    font-size: 18px;
  }

  .brand-line small {
    display: none;
  }

  .header-actions {
    gap: 7px;
  }

  .home-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .home-button span {
    display: none;
  }

  .upload-button {
    min-height: 43px;
    padding: 0 15px;
    font-size: 12px;
  }

  .page-shell {
    padding-top: 28px;
  }

  .page-intro {
    min-height: 120px;
  }

  .page-intro h1 {
    font-size: 28px;
  }

  .page-intro p {
    max-width: 560px;
    font-size: 16px;
  }

  .request-row {
    grid-template-columns: 52px 1fr auto;
    gap: 11px;
  }

  .row-data {
    grid-column: 2 / -1;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
  }

  .read-button {
    grid-column: 3;
    grid-row: 1;
  }

  .request-icon {
    width: 48px;
    height: 48px;
  }

  .detail-drawer {
    width: min(620px, 86vw);
  }

  .icon-options {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 620px) {
  .header-inner {
    gap: 10px;
  }

  .brand-copy {
    display: none;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  .upload-button svg {
    display: none;
  }

  .page-shell {
    width: calc(100% - 20px);
    padding: 23px 0 36px;
  }

  .page-intro {
    min-height: auto;
    margin-bottom: 22px;
    display: grid;
  }

  .page-intro h1 {
    font-size: 25px;
  }

  .new-request-button {
    width: 100%;
  }

  .board-toolbar {
    height: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 142px;
    gap: 10px;
  }

  .search-box {
    width: 100%;
  }

  .request-list {
    min-height: 0;
  }

  .request-row {
    padding: 14px 12px;
    grid-template-columns: 48px 1fr;
  }

  .request-summary {
    padding-right: 3px;
  }

  .request-title {
    font-size: 15.5px;
  }

  .row-data {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .row-metric,
  .support-count {
    min-height: 52px;
    padding-inline: 6px;
  }

  .latest-metric {
    display: none;
  }

  .row-data {
    grid-template-columns: repeat(3, 1fr);
  }

  .read-button {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .identity-box {
    padding: 17px;
  }

  .identity-help,
  .identity-name-field {
    margin-left: 0;
  }

  .pagination {
    justify-content: center;
  }

  .per-page,
  .page-buttons button:nth-of-type(n+5),
  .page-buttons span {
    display: none;
  }

  .detail-drawer {
    width: 100%;
  }

  .drawer-scroll {
    padding: 20px 18px 36px;
  }

  .drawer-request {
    grid-template-columns: 51px 1fr;
    gap: 12px;
  }

  .drawer-request-icon {
    width: 50px;
    height: 50px;
  }

  .drawer-title-block h2 {
    font-size: 18px;
  }

  .drawer-stats {
    grid-template-columns: 1fr;
  }

  .drawer-stats span {
    min-height: 36px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .drawer-stats span:last-child {
    border-bottom: 0;
  }

  .comment-form-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .request-modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
  }

  .modal-header,
  .request-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .icon-picker legend small {
    display: block;
    margin: 4px 0 0;
  }
}

@media (max-width: 460px) {
  .site-header {
    height: 76px;
  }

  .header-inner {
    width: calc(100% - 16px);
    gap: 7px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .header-actions {
    gap: 5px;
  }

  .home-button {
    width: 42px;
    min-height: 42px;
  }

  .breadcrumb {
    gap: 6px;
    font-size: 11.5px;
  }

  .upload-button {
    width: 48px;
    padding: 0;
    font-size: 0;
  }

  .upload-button > i {
    display: inline-block;
    font-size: 20px;
  }

  .page-intro h1 {
    font-size: 23px;
  }

  .page-intro p {
    font-size: 15px;
    line-height: 1.6;
  }

  .board-toolbar {
    grid-template-columns: 1fr;
  }

  .sort-box {
    width: 100%;
    justify-content: space-between;
  }

  .request-byline {
    font-size: 12px;
  }

  .row-data {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-main {
    gap: 5px;
  }

  .metric-main i {
    font-size: 18px;
  }

  .row-metric strong,
  .support-count strong {
    font-size: 13.5px;
  }

  .row-metric small,
  .support-count small {
    font-size: 10.5px;
  }

  .ranking-item {
    padding-inline: 14px;
    grid-template-columns: 24px minmax(0, 1fr) 76px;
    gap: 9px;
  }

  .ranking-likes {
    padding-left: 9px;
  }

  .icon-options {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-buttons button:nth-of-type(4) {
    display: none;
  }

  .strong-switch {
    align-items: flex-start;
  }

  .strong-switch b {
    font-size: 19px;
  }

  .strong-switch small,
  .identity-help {
    font-size: 16px;
  }
}

@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;
  }
}
