.post-image-uploader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px;
  margin-bottom: 23px;
  gap: 12px;
  background: #f7faf9;
  border: 1px dashed rgba(15, 118, 110, 0.22);
  border-radius: 13px;
}

.post-image-upload-copy {
  display: grid;
  gap: 3px;
}

.post-image-upload-copy strong {
  font-size: 11px;
}

.post-image-upload-copy small {
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.55;
}

.post-image-file {
  position: relative;
  cursor: pointer;
}

.post-image-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.post-image-file span {
  display: inline-flex;
  min-height: 38px;
  padding: 0 13px;
  align-items: center;
  color: var(--pine);
  background: white;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 750;
}

.post-image-file:focus-within span {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.post-image-preview {
  position: relative;
  grid-column: 1 / -1;
  width: min(480px, 100%);
  overflow: hidden;
  background: #e5ebe9;
  border-radius: 11px;
}

.post-image-preview img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.post-image-preview button {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 5px 8px;
  color: white;
  background: rgba(15, 27, 23, 0.72);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 8px;
  backdrop-filter: blur(5px);
}

.post-image {
  padding: 4px 0 24px;
  margin: 0;
}

.post-image a {
  display: block;
  overflow: hidden;
  background: #eef2f1;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.post-image img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
}

.post-image figcaption {
  padding-top: 7px;
  color: var(--ink-faint);
  font-size: 8px;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  margin-top: 13px;
  gap: 7px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 9px;
  line-height: 1.65;
}

.terms-check input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--pine);
}

.terms-check a {
  color: var(--pine);
  font-weight: 700;
}

.legal-page {
  padding-top: 54px;
  padding-bottom: 90px;
}

.legal-heading {
  max-width: 760px;
  margin-inline: auto;
}

.legal-heading h1 {
  margin: 8px 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.06em;
}

.legal-heading p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.legal-document {
  max-width: 760px;
  padding: 32px;
  margin: 24px auto 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(17, 48, 43, 0.05);
}

.legal-document section + section {
  padding-top: 21px;
  margin-top: 21px;
  border-top: 1px solid var(--line-soft);
}

.legal-document h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.legal-document p {
  margin: 7px 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.legal-note {
  padding: 17px;
  margin-top: 24px;
  color: #714526;
  background: #fff5e6;
  border: 1px solid #f0d7b5;
  border-radius: 10px;
}

.legal-note strong {
  font-size: 10px;
}

.legal-note p {
  color: #826348;
}

.legal-page > .button {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.account-feedback-link {
  display: block;
  width: fit-content;
  margin-top: 13px;
  font-size: 10px;
}

.feedback-page {
  padding-top: 50px;
  padding-bottom: 90px;
}

.feedback-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 24px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.feedback-heading h1 {
  margin: 7px 0 5px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 50px);
  letter-spacing: -0.06em;
}

.feedback-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.feedback-count {
  color: var(--ink-faint);
  font-size: 9px;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  padding-top: 20px;
  gap: 18px;
}

.feedback-form-card,
.feedback-history {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(17, 48, 43, 0.045);
}

.feedback-form-card > form {
  padding-top: 17px;
}

.feedback-form-card .field textarea {
  min-height: 150px;
}

.feedback-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 19px;
  gap: 8px;
}

.feedback-type-options label {
  cursor: pointer;
}

.feedback-type-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feedback-type-options label > span {
  display: grid;
  min-height: 94px;
  padding: 13px;
  align-content: start;
  gap: 3px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.feedback-type-options i {
  width: fit-content;
  padding: 2px 5px;
  color: var(--ink-faint);
  background: rgba(17, 48, 43, 0.06);
  border-radius: 4px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.feedback-type-options strong {
  font-size: 11px;
}

.feedback-type-options small {
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.5;
}

.feedback-type-options input:checked + span {
  background: #e7f6f1;
  border-color: var(--pine);
  box-shadow: inset 0 0 0 1px var(--pine);
}

.feedback-privacy {
  color: var(--ink-faint);
  font-size: 8px;
}

.feedback-list {
  display: grid;
  padding-top: 10px;
  gap: 10px;
}

.feedback-item {
  padding: 15px;
  background: #f9fbfa;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
}

.feedback-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.feedback-item-head time {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 8px;
}

.feedback-type,
.feedback-status {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 750;
}

.feedback-type-bug {
  color: #994637;
  background: #ffe8e1;
}

.feedback-type-feature {
  color: #0b625a;
  background: #dff3ee;
}

.feedback-status.status-pending {
  color: #8a6118;
  background: #fff0cc;
}

.feedback-status.status-in_progress {
  color: #315f9b;
  background: #e4eefb;
}

.feedback-status.status-resolved {
  color: #23653d;
  background: #e1f3e7;
}

.feedback-status.status-rejected {
  color: #707975;
  background: #ecefed;
}

.feedback-item h3 {
  margin: 9px 0 4px;
  font-family: var(--font-serif);
  font-size: 16px;
}

.feedback-item > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.feedback-page-url {
  display: block;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.feedback-reply {
  padding: 10px 12px;
  margin-top: 11px;
  background: #eef7f4;
  border-left: 3px solid var(--pine);
  border-radius: 6px;
}

.feedback-reply strong {
  color: var(--pine);
  font-size: 8px;
}

.feedback-reply p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.feedback-empty {
  padding: 35px 18px;
  color: var(--ink-faint);
  background: #fafcfb;
  border: 1px dashed var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 10px;
}

.feedback-filter-tabs {
  display: flex;
  padding: 18px 0;
  overflow-x: auto;
  gap: 7px;
}

.feedback-filter-tabs a {
  display: inline-flex;
  padding: 7px 11px;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  white-space: nowrap;
}

.feedback-filter-tabs a.active {
  color: white;
  background: var(--pine);
  border-color: var(--pine);
}

.feedback-filter-tabs span {
  opacity: 0.68;
  font-size: 8px;
}

.admin-feedback-list {
  display: grid;
  gap: 13px;
}

.admin-feedback-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(17, 48, 43, 0.035);
}

.admin-feedback-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-feedback-head > div {
  min-width: 0;
  flex: 1;
}

.admin-feedback-head strong {
  display: block;
  font-size: 10px;
}

.admin-feedback-head small {
  color: var(--ink-faint);
  font-size: 8px;
}

.admin-feedback-card h2 {
  margin: 14px 0 7px;
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.035em;
}

.admin-feedback-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.admin-feedback-meta {
  display: flex;
  flex-wrap: wrap;
  padding-top: 9px;
  gap: 5px 14px;
  color: var(--ink-faint);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.admin-feedback-form {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: end;
  padding-top: 15px;
  margin-top: 14px;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}

.admin-feedback-form .field {
  margin: 0;
}

.admin-feedback-form textarea {
  min-height: 82px;
}

.moderation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  margin-top: 17px;
  gap: 12px;
  color: #754117;
  background: #fff2dd;
  border: 1px solid #efd2aa;
  border-radius: 9px;
  font-size: 9px;
}

.moderation-banner span {
  color: #957457;
}

.moderation-banner a {
  margin-left: 7px;
  color: #87520d;
  font-weight: 750;
}

.report-thread {
  margin-top: 17px;
  color: var(--ink-faint);
}

.report-thread summary {
  width: fit-content;
  cursor: pointer;
  font-size: 9px;
  list-style: none;
}

.report-thread summary::-webkit-details-marker {
  display: none;
}

.report-thread summary:hover {
  color: #a44735;
}

.report-thread form {
  padding: 15px;
  margin-top: 9px;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.report-reasons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 6px;
}

.report-reasons label {
  cursor: pointer;
}

.report-reasons input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-reasons span {
  display: inline-flex;
  padding: 5px 8px;
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 8px;
}

.report-reasons input:checked + span {
  color: #a44735;
  background: #fff0eb;
  border-color: #e8ada0;
}

.report-thread textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px;
  resize: vertical;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  font-size: 10px;
}

.report-thread button {
  margin-top: 8px;
}

.report-submitted-note {
  padding: 9px 11px;
  margin-top: 16px;
  color: #8a6118;
  background: #fff6e3;
  border: 1px solid #efddb7;
  border-radius: 8px;
  font-size: 8px;
}

.admin-report-list {
  display: grid;
  padding-top: 18px;
  gap: 13px;
}

.admin-report-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(17, 48, 43, 0.035);
}

.admin-report-card.is-hidden {
  border-color: #e8c7b9;
  box-shadow: 0 12px 30px rgba(142, 69, 45, 0.06);
}

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

.admin-report-head h2 {
  margin: 7px 0 3px;
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: -0.035em;
}

.admin-report-head h2 a:hover {
  color: var(--pine);
}

.admin-report-head > div > span:last-child {
  color: var(--ink-faint);
  font-size: 8px;
}

.admin-report-head form {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-report-head button {
  padding: 6px 9px;
  color: var(--pine);
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 6px;
  cursor: pointer;
  font-size: 8px;
}

.admin-report-head button[value="keep_hidden"] {
  color: #a44735;
  background: #fff0eb;
  border-color: #f0c9bf;
}

.report-detail-list {
  display: grid;
  padding-top: 13px;
  margin-top: 13px;
  gap: 9px;
  border-top: 1px solid var(--line-soft);
}

.report-detail {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
}

.report-detail > div {
  display: grid;
  gap: 2px;
}

.report-detail strong {
  font-size: 9px;
}

.report-detail span {
  color: var(--ink-faint);
  font-size: 8px;
}

.report-detail p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.emergency-stop-page {
  display: grid;
  min-height: calc(100vh - 74px);
  padding-top: 55px;
  padding-bottom: 80px;
  place-items: center;
}

.emergency-stop-card,
.emergency-page {
  width: min(520px, 100%);
  padding: 34px;
  background: white;
  border: 1px solid #e4c8c0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(91, 40, 28, 0.1);
}

.emergency-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  color: white;
  background: #b84b36;
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(184, 75, 54, 0.18);
}

.emergency-stop-card h1,
.emergency-page h1 {
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: -0.05em;
}

.emergency-stop-card > p,
.emergency-page > p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.emergency-stop-card form {
  margin-top: 15px;
}

.emergency-stop-button {
  color: white;
  background: #a83f2c;
  border-color: #a83f2c;
}

.emergency-stop-button:hover {
  background: #8f301f;
}

.emergency-cancel {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
}

.emergency-page {
  margin: 85px auto;
  text-align: center;
}

.emergency-page .emergency-symbol {
  margin-inline: auto;
}

@media (max-width: 760px) {
  .post-image-uploader {
    grid-template-columns: 1fr;
  }

  .post-image-file span {
    width: 100%;
    justify-content: center;
  }

  .legal-page {
    padding-top: 32px;
    padding-bottom: 45px;
  }

  .legal-document {
    padding: 22px 18px;
  }

  .feedback-page {
    padding-top: 30px;
    padding-bottom: 45px;
  }

  .feedback-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .feedback-heading h1 {
    font-size: 34px;
  }

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

  .feedback-form-card,
  .feedback-history {
    padding: 18px;
  }

  .feedback-type-options {
    grid-template-columns: 1fr;
  }

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

  .moderation-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-report-head {
    flex-direction: column;
  }

  .emergency-stop-page {
    padding-top: 25px;
    padding-bottom: 40px;
  }

  .emergency-stop-card {
    padding: 25px 20px;
  }
}
