:root {
  --page-bg: #f0642f;
  --page-bg-soft: #fffaf2;
  --surface: rgba(255, 250, 242, 0.88);
  --surface-strong: #fffdf8;
  --surface-accent: #f4e3cc;
  --text: #2d241d;
  --muted: #786757;
  --border: rgba(123, 92, 61, 0.18);
  --border-strong: rgba(123, 92, 61, 0.3);
  --primary: #d06b2f;
  --primary-strong: #b84f17;
  --primary-soft: #f9dfc8;
  --danger: #bf3f34;
  --danger-soft: #f7d5d0;
  --link: #185a72;
  --shadow: 0 24px 60px rgba(120, 84, 48, 0.12);
  --shadow-soft: 0 12px 28px rgba(120, 84, 48, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--page-bg);
  font-family: "Space Grotesk", "Avenir Next", "PingFang SC", sans-serif;
}

.page {
  position: relative;
  padding: 36px 28px 0;
}

.page-app {
  max-width: 1240px;
  margin: 0 auto;
}

.page-forum {
  max-width: 1180px;
  margin: 0 auto;
}

.page-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-home {
  width: min(1120px, 100%);
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  margin: auto 0;
}

.site-home-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.site-home-entry-btn {
  min-height: 44px;
  padding: 0 20px;
}

.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(380px, 480px);
  gap: 26px;
  align-items: stretch;
  flex: 1 0 auto;
  margin: auto 0;
}

.auth-shell-login {
  grid-template-columns: minmax(380px, 480px);
  justify-content: center;
}

.auth-aside {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 20px 10px 20px 6px;
}

.site-home-aside {
  max-width: 620px;
  padding-top: 0;
  padding-bottom: 0;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(243, 190, 107, 0.22), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(80, 141, 153, 0.18), transparent 32%),
    radial-gradient(circle at 48% 88%, rgba(208, 107, 47, 0.14), transparent 28%),
    linear-gradient(180deg, #fffaf2 0%, #f4efe6 52%, #efe5d7 100%);
  z-index: -1;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.96;
}

h2 {
  font-size: 1.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--primary-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  padding: 18px 16px 28px;
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer span {
  opacity: 0.7;
}

.site-footer .footer-sep {
  opacity: 0.3;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--primary);
}

.card {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 238, 0.88));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.auth-card {
  width: 100%;
  min-height: 100%;
  padding: 32px 30px 28px;
}

.auth-card-login {
  min-height: 0;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #f1c88f, #5f9ea0);
}

.auth-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.auth-lead {
  max-width: 520px;
  font-size: 1rem;
}

.auth-visual {
  position: relative;
  min-height: 250px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.75), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(244, 227, 204, 0.74));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.auth-grid {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
}

.auth-grid span {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(123, 92, 61, 0.08);
}

.auth-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(208, 107, 47, 0.36);
}

.auth-orbit-a {
  width: 220px;
  height: 220px;
  left: -20px;
  top: 12px;
}

.auth-orbit-b {
  width: 180px;
  height: 180px;
  right: 24px;
  bottom: -18px;
  border-color: rgba(24, 90, 114, 0.28);
}

.auth-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.auth-chip-a {
  left: 28px;
  top: 28px;
}

.auth-chip-b {
  right: 34px;
  top: 68px;
}

.auth-chip-c {
  left: 96px;
  bottom: 34px;
}

.auth-points {
  display: grid;
  gap: 12px;
}

.auth-point {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
}

.auth-point strong {
  font-size: 0.95rem;
}

.auth-point span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.app-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 6px 4px 4px;
}

.hero-copy {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu-slot {
  display: inline-flex;
}

.user-menu {
  position: relative;
  display: inline-flex;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  min-width: 168px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 0.88rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, transform 140ms ease;
}

.user-menu-trigger {
  min-width: 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.user-menu-trigger,
.user-menu-trigger * {
  cursor: pointer;
}

.user-menu-trigger::-webkit-details-marker {
  display: none;
}

.user-menu-trigger:hover,
.user-menu-trigger:focus-visible,
.user-menu[open] .user-menu-trigger {
  border-color: rgba(24, 90, 114, 0.28);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(120, 84, 48, 0.14);
}

.user-menu-trigger:focus-visible {
  outline: none;
}

.user-menu-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.9;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23786757' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 16.2a6.2 6.2 0 0 0-12 0'/%3E%3Ccircle cx='10' cy='6.6' r='3.1'/%3E%3C/svg%3E");
}

.user-menu-arrow {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.88;
  transition: transform 0.15s ease;
}

.user-menu[open] .user-menu-arrow {
  transform: rotate(225deg) translateY(-1px);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: max(100%, 192px);
  min-width: 0;
  overflow: hidden;
  padding: 6px 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow-soft);
  z-index: 18;
}

.user-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.user-menu-list-item {
  margin: 0;
}

.user-menu-item {
  width: 100%;
  min-height: 44px;
  padding: 0 16px 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  justify-content: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.user-menu-item:hover {
  transform: none;
  background: rgba(24, 90, 114, 0.08);
  border-color: transparent;
}

.app-main {
  display: grid;
  gap: 22px;
  margin-top: 26px;
  flex: 1 0 auto;
  align-items: start;
}

/* ── Upload Bar ── */
.upload-bar {
  position: relative;
  overflow: hidden;
}

.upload-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.upload-bar-left {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.upload-bar-left h2 {
  margin: 0;
}

.upload-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.panel-heading,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 20px;
}

.mode-btn {
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: none;
}

.mode-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: #fffaf2;
}

.mode-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.mode-btn-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.auth-mode-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.auth-wechat-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.auth-wechat-entry::before,
.auth-wechat-entry::after {
  content: "";
  flex: 1 1 auto;
  min-width: 0;
  border-top: 1px solid rgba(123, 92, 61, 0.16);
}

.auth-wechat-btn {
  position: relative;
  width: 40px;
  height: 40px;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(123, 92, 61, 0.18);
  background: #fff;
  color: #07c160;
  box-shadow: 0 2px 6px rgba(120, 84, 48, 0.04);
}

.auth-wechat-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(45, 36, 29, 0.94);
  color: #fffaf2;
  font-size: 0.76rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.auth-wechat-btn:hover:not(:disabled) {
  border-color: rgba(123, 92, 61, 0.28);
  background: #fff;
  box-shadow: 0 6px 14px rgba(120, 84, 48, 0.08);
}

.auth-wechat-btn:hover::after,
.auth-wechat-btn:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.auth-wechat-btn.is-unconfigured {
  color: var(--muted);
  border-color: var(--border);
  opacity: 0.82;
}

.auth-wechat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.auth-wechat-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.upload-bar .result,
.upload-bar .error {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin-top: 10px;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.84rem;
}

.upload-bar #uploadSubmitBtn {
  margin: 0;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 28px;
  font-size: 0.92rem;
  border-radius: 12px;
}

.upload-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.upload-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.upload-consent span {
  color: var(--text);
}

.upload-consent a {
  color: inherit;
  text-decoration: none;
}

.upload-consent a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.content-section {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.form,
.form-stack {
  display: grid;
  gap: 14px;
}

.turnstile-slot {
  width: 100%;
  min-height: 68px;
}

.turnstile-slot[hidden] {
  display: none;
}

.setup-header {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(244, 227, 204, 0.45);
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select,
input[type="file"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

input[type="file"] {
  padding: 11px 14px;
}

textarea {
  min-height: 140px;
  padding: 14px;
  resize: vertical;
}

select {
  padding: 0 14px;
}

input:focus {
  outline: none;
  border-color: rgba(208, 107, 47, 0.5);
  box-shadow: 0 0 0 4px rgba(208, 107, 47, 0.12);
}

textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(208, 107, 47, 0.5);
  box-shadow: 0 0 0 4px rgba(208, 107, 47, 0.12);
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.code-input-wrap {
  min-width: 0;
}

button,
a.link-button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff8f1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease, border-color 140ms ease;
  box-shadow: 0 10px 22px rgba(208, 107, 47, 0.24);
}

button:hover,
a.link-button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

button.ghost,
a.link-button.ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

button.danger {
  background: #c05a4f;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(170, 75, 65, 0.2);
}

button.danger:hover {
  background: #ab4a40;
}

.error,
.result,
.tip {
  min-height: 20px;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.error:empty,
.result:empty,
.tip:empty {
  display: none;
}

.error {
  color: #9d2f25;
  background: rgba(247, 213, 208, 0.72);
}

.result {
  color: #185a72;
  background: rgba(208, 234, 240, 0.68);
}

.tip {
  margin-top: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  gap: 22px;
}

/* ── Skeleton Card ── */
@keyframes skeleton-shimmer {
  0% { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 238, 0.88));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.skeleton-card .card-thumbnail {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.skeleton-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(90deg, rgba(120,103,87,0.06) 25%, rgba(120,103,87,0.1) 50%, rgba(120,103,87,0.06) 75%);
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.skeleton-card .card-body {
  flex-shrink: 0;
  min-width: 0;
  padding: 10px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-card .card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.skeleton-name {
  width: 55%;
  height: 16px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(120,103,87,0.08) 25%, rgba(120,103,87,0.14) 50%, rgba(120,103,87,0.08) 75%);
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.skeleton-badge {
  width: 42px;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(120,103,87,0.06) 25%, rgba(120,103,87,0.1) 50%, rgba(120,103,87,0.06) 75%);
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.skeleton-meta {
  height: 12px;
  width: 40%;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(120,103,87,0.06) 25%, rgba(120,103,87,0.1) 50%, rgba(120,103,87,0.06) 75%);
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.skeleton-more {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(120,103,87,0.06) 25%, rgba(120,103,87,0.1) 50%, rgba(120,103,87,0.06) 75%);
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.card-empty {
  padding: 40px 8px;
  text-align: center;
  grid-column: 1 / -1;
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1199px) and (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 899px) and (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Prototype Card ── */
.prototype-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 238, 0.88));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  position: relative;
}

.prototype-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(120, 84, 48, 0.16);
  border-color: rgba(208, 107, 47, 0.2);
}

/* ── Card Thumbnail ── */
.card-thumbnail {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
}

.thumb-screenshot {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.thumb-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: none;
  background: linear-gradient(180deg, #faf7f2 0%, #f3ede4 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
}

.thumb-browser {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.thumb-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: rgba(120, 103, 87, 0.06);
  border-bottom: 1px solid rgba(120, 103, 87, 0.08);
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background: #e8a09a; }
.dot-yellow { background: #e8d09a; }
.dot-green  { background: #a0d4a8; }

.thumb-browser-url {
  flex: 1;
  min-width: 0;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.7);
  font-size: 0.62rem;
  color: rgba(120, 103, 87, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.thumb-browser-body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(244,227,204,0.15) 100%);
}

.thumb-wireframe {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.wf-block {
  display: block;
  border-radius: 4px;
  background: rgba(120, 103, 87, 0.08);
}

.wf-header {
  height: 12px;
  width: 55%;
}

.wf-hero {
  flex: 1;
  min-height: 36px;
  background:
    linear-gradient(135deg, rgba(120,103,87,0.07) 0%, rgba(120,103,87,0.03) 100%);
  border-radius: 6px;
  border: 1px dashed rgba(120, 103, 87, 0.1);
}

.wf-row {
  display: flex;
  gap: 8px;
}

.wf-card {
  flex: 1;
  height: 24px;
  border-radius: 4px;
  background: rgba(120, 103, 87, 0.06);
}

/* ── Card Views Overlay ── */
.card-views-overlay {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #8a6d3b;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(120, 84, 48, 0.12);
  z-index: 1;
}

/* ── Card Body ── */
.card-body {
  flex-shrink: 0;
  min-width: 0;
  padding: 10px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.card-row-top {
  min-height: 22px;
}

.card-row-bottom {
  min-height: 18px;
}

.card-name-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: default;
  flex: 1;
  min-width: 0;
}

.card-name {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* ── Status Badge ── */
.card-status-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  gap: 5px;
}

.card-status-badge.is-approved {
  display: none;
}

.card-status-badge.is-pending {
  background: rgba(147, 197, 228, 0.18);
  border: 1px solid rgba(100, 160, 200, 0.3);
  color: #3a7ca5;
}

.card-status-badge.is-pending::before {
  content: "●";
  font-size: 0.45em;
  line-height: 1;
  color: rgba(100, 160, 200, 0.7);
}

.card-status-badge.is-rejected,
.card-status-badge.is-failed {
  background: rgba(232, 208, 154, 0.22);
  border: 1px solid rgba(200, 175, 100, 0.3);
  color: #8a6d2b;
  transition: background 0.15s, border-color 0.15s;
}

.card-status-badge.is-rejected {
  background: var(--danger-soft);
  border-color: rgba(191, 63, 52, 0.22);
  color: var(--danger);
  cursor: default;
}

.card-status-badge.is-failed {
  cursor: pointer;
}

.card-status-badge.is-failed:hover {
  background: rgba(232, 208, 154, 0.36);
  border-color: rgba(200, 175, 100, 0.5);
}

.card-status-badge.is-rejected::before,
.card-status-badge.is-failed::before {
  content: "●";
  font-size: 0.45em;
  line-height: 1;
  color: rgba(200, 175, 100, 0.7);
}

.card-status-badge.is-rejected::before {
  color: rgba(191, 63, 52, 0.56);
}

.card-status-badge.is-failed.is-reviewing {
  opacity: 0.5;
  cursor: default;
}

/* ── Card Time ── */
.card-time {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Card More Button ── */
.card-copy-link-btn {
  height: 30px;
  min-height: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--primary);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--primary);
  box-shadow: none;
  padding: 0 14px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.card-copy-link-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.card-copy-link-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.card-more-btn {
  width: 34px;
  height: 30px;
  min-height: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  background: transparent;
  border-radius: 14px;
  cursor: pointer;
  color: var(--primary);
  box-shadow: none;
  padding: 0;
}

.card-more-btn svg {
  display: block;
}

/* ── Card More Wrapper ── */
.card-more-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Card More Dropdown ── */
.card-more-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  min-width: 110px;
  background: #f7f5f2;
  border: none;
  border-radius: 10px;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(120, 84, 48, 0.12);
}

.card-more-dropdown button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  min-height: 0;
}

.card-more-dropdown button:hover {
  background: #fff;
  box-shadow: none;
  transform: none;
}

.card-more-dropdown .more-delete {
  color: #a0403b;
}

/* ── Card Link ── */
.card-link {
  display: none;
}

/* ── Card Actions (hidden, replaced by more menu) ── */
.card-actions {
  display: none;
}

/* ── Rename Form (shared) ── */
.retry-review-btn {
  display: inline;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid rgba(208, 107, 47, 0.3);
  border-radius: 10px;
  background: rgba(208, 107, 47, 0.08);
  color: #d06b2f;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  vertical-align: baseline;
  min-height: 0;
  box-shadow: none;
}
.retry-review-btn:hover {
  background: rgba(208, 107, 47, 0.16);
  border-color: rgba(208, 107, 47, 0.5);
}
.retry-review-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.forum-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 6px 4px 4px;
}

.forum-hero-actions-only {
  justify-content: flex-end;
  align-items: center;
}

.forum-hero-copy {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.forum-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.forum-shell {
  margin-top: 26px;
  flex: 1 0 auto;
}

.forum-panel {
  position: relative;
  overflow: hidden;
}

.forum-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #f1c88f, #5f9ea0);
}

.forum-panel-inner {
  display: grid;
  gap: 18px;
}

.forum-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.forum-tabs {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.forum-toolbar-compose {
  justify-self: end;
}

.forum-tab {
  min-width: 116px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: none;
}

.forum-tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #fffaf2;
}

.forum-compose-modal-open {
  overflow: hidden;
}

.forum-compose-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 24px;
}

.forum-compose-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(20, 17, 13, 0.42);
}

.forum-compose-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
}

.forum-composer {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 24px 64px rgba(58, 42, 24, 0.18);
}

.forum-composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.forum-composer-head h2 {
  margin-bottom: 6px;
}

.forum-composer-media {
  display: grid;
  gap: 12px;
}

.forum-composer-media-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.forum-composer-media-hint {
  font-size: 0.84rem;
}

.forum-composer-image-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.forum-composer-image-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.forum-composer-image-preview {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(120, 103, 87, 0.08);
}

.forum-composer-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.forum-composer-image-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.forum-composer-image-meta strong,
.forum-composer-image-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-composer-image-status {
  font-size: 0.82rem;
  font-weight: 600;
}

.forum-composer-image-status.is-uploading {
  color: var(--primary-strong);
}

.forum-composer-image-status.is-ready {
  color: #1f7a52;
}

.forum-composer-image-status.is-error {
  color: #c13f4d;
}

.forum-composer-image-remove {
  min-width: 78px;
}

.forum-composer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.forum-list {
  display: grid;
  gap: 16px;
}

.forum-empty {
  padding: 28px 8px;
  text-align: center;
}

.forum-post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.forum-post-card:hover,
.forum-post-card:focus-visible {
  border-color: rgba(214, 153, 71, 0.36);
  box-shadow: 0 18px 44px rgba(70, 49, 22, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.forum-post-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.forum-post-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.forum-post-pin,
.forum-post-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.forum-post-pin {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.forum-post-status {
  background: rgba(120, 103, 87, 0.12);
  color: var(--muted);
}

.forum-post-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.4;
}

.forum-post-title-link {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}

.forum-post-title-link:hover {
  color: var(--primary-strong);
}

.forum-post-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.forum-post-content {
  --forum-post-content-line-height: 1.72;
  color: var(--text);
  font-size: 0.95rem;
  line-height: var(--forum-post-content-line-height);
  display: block;
  display: -webkit-box;
  overflow: hidden;
  max-height: calc(1em * var(--forum-post-content-line-height) * 2);
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  word-break: break-word;
}

.forum-post-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, 84px);
  gap: 10px;
}

.forum-post-image {
  display: block;
  width: 84px;
  height: 84px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.forum-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.18s ease;
}

.forum-post-image:hover img {
  transform: scale(1.02);
}

body.forum-image-preview-open {
  overflow: hidden;
}

.forum-image-preview {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.forum-image-preview-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 15, 15, 0.72);
  cursor: zoom-out;
}

.forum-image-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1080px);
  max-height: 92vh;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.forum-image-preview-close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: none;
}

.forum-image-preview-img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.forum-detail-shell {
  display: grid;
  gap: 28px;
}

.forum-detail-card,
.forum-replies-card,
.forum-reply-composer-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.forum-detail-card::before,
.forum-replies-card::before,
.forum-reply-composer-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #f1c88f, #5f9ea0);
}

.forum-detail-inner,
.forum-replies-card,
.forum-reply-composer-card {
  padding: 28px 30px;
}

.forum-reply-composer-card {
  display: grid;
  gap: 22px;
}

.forum-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.forum-detail-title-wrap {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.forum-detail-heading {
  gap: 10px;
}

.forum-detail-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.forum-detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.forum-detail-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.forum-detail-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.forum-detail-actions button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.forum-detail-actions button:hover {
  color: var(--primary-strong);
}

.forum-detail-reply-count {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  padding-top: 8px;
}

.forum-detail-divider {
  margin: 18px 0 22px;
  border-top: 1px solid rgba(120, 103, 87, 0.18);
}

.forum-detail-content {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.86;
  white-space: pre-wrap;
  word-break: break-word;
}

.forum-detail-images {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
  gap: 18px;
}

.forum-detail-image {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 0;
  border: 1px solid rgba(120, 103, 87, 0.18);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
}

.forum-detail-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.forum-detail-image:hover img {
  transform: scale(1.02);
}

.forum-replies-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.forum-replies-head h3,
.forum-reply-composer-card h3 {
  margin: 0;
  font-size: 1.9rem;
}

.forum-replies-count {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.forum-replies-list {
  display: grid;
  gap: 20px;
}

.forum-replies-empty {
  padding: 18px 4px 8px;
}

.forum-reply-item {
  padding: 24px;
  border: 1px solid rgba(240, 194, 164, 0.78);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  display: grid;
  gap: 18px;
}

.forum-reply-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.forum-reply-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.forum-reply-author strong {
  font-size: 1rem;
}

.forum-reply-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(190, 145, 102, 0.52);
  background: rgba(241, 228, 213, 0.9);
  color: #9c6335;
  font-size: 0.92rem;
  font-weight: 700;
}

.forum-reply-sequence {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.forum-reply-content {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.forum-reply-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 240px));
  gap: 12px;
}

.forum-reply-image {
  display: block;
  width: 100%;
  max-width: 240px;
  padding: 0;
  border: 1px solid rgba(120, 103, 87, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
}

.forum-reply-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.forum-reply-image:hover img {
  transform: scale(1.02);
}

.forum-reply-time {
  color: var(--muted);
  font-size: 0.95rem;
}

.forum-reply-notice {
  margin: 16px 0 22px;
  padding: 18px 22px;
  border: 1px solid rgba(244, 166, 154, 0.72);
  border-radius: 22px;
  background: rgba(251, 229, 226, 0.92);
  color: #9f3228;
  font-size: 0.95rem;
  font-weight: 700;
}

.forum-reply-form {
  display: grid;
  gap: 20px;
}

.forum-reply-input {
  min-height: 220px;
  resize: vertical;
}

.forum-reply-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.forum-reply-counter {
  color: var(--muted);
  font-size: 0.95rem;
}

.forum-post-side {
  display: grid;
  gap: 12px;
  justify-items: end;
  width: max-content;
  max-width: 100%;
}

.forum-reply-summary {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.forum-post-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: auto;
  max-width: 100%;
  justify-content: flex-end;
}

.forum-post-actions button {
  width: auto;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.84rem;
  white-space: nowrap;
  justify-content: center;
}

.forum-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.forum-pagination-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.forum-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  padding: 18px 16px 28px;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (min-width: 940px) {
  .upload-bar-right {
    flex-shrink: 0;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 20px 16px 34px;
  }

  .site-home-topbar {
    margin-bottom: 18px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-aside {
    padding: 0;
  }

  .site-home-entry-btn {
    width: auto;
  }

  .app-hero,
  .forum-hero,
  .topbar-actions,
  .forum-hero-actions,
  .section-title {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-bar-content {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-bar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-bar-right button {
    width: 100%;
  }

  .forum-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .section-actions,
  .forum-composer-head,
  .forum-composer-actions,
  .forum-post-actions {
    justify-content: stretch;
  }

  .forum-composer-media-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .forum-composer-image-item {
    grid-template-columns: 1fr;
  }

  .user-badge,
  .topbar-actions .user-menu,
  .forum-hero-actions .user-menu,
  .topbar-actions button,
  .topbar-actions .link-button,
  .forum-hero-actions button,
  .forum-hero-actions .link-button,
  .forum-post-actions button,
  .card-actions button {
    width: 100%;
  }

  .user-menu-dropdown {
    left: 0;
    right: 0;
    width: auto;
  }

  .forum-toolbar-compose {
    margin-left: 0;
  }

  .forum-post-actions button {
    width: auto;
  }

  .mode-switch,
  .code-row {
    grid-template-columns: 1fr;
  }

  .forum-post-card {
    grid-template-columns: 1fr;
  }

  .forum-detail-head,
  .forum-replies-head,
  .forum-reply-form-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .forum-post-side {
    justify-items: stretch;
  }

  .forum-reply-summary {
    width: 100%;
    text-align: right;
  }

  .forum-post-images {
    grid-template-columns: repeat(auto-fit, 72px);
  }

  .forum-post-image {
    width: 72px;
    height: 72px;
  }

  .forum-detail-inner,
  .forum-replies-card,
  .forum-reply-composer-card {
    padding: 24px 18px;
  }

  .forum-detail-images {
    grid-template-columns: 1fr;
  }

  .forum-detail-image {
    max-width: none;
  }

  .forum-reply-images {
    grid-template-columns: 1fr;
  }

  .forum-reply-image {
    max-width: none;
  }

  .forum-reply-item {
    padding: 18px;
  }

  .forum-pagination,
  .forum-pagination-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-card {
    padding: 24px 18px 20px;
  }
}
