:root {
  color-scheme: light;
  --primary-pink: #c43758;
  --soft-pink: #F3E4E7;
  --coffee-brown: #9A715A;
  --light-latte: #F0E4DC;
  --logo-coffee: #A87458;
  --button-coffee: #8B5E45;
  --button-border-radius: 9px;
  --hero-coffee: #B98568;
  --dark-coffee-accent: #6F4E3D;
  --cream: #FFF9F6;
  --body-text: #62544D;
  --ink: var(--body-text);
  --muted: var(--body-text);
  --line: var(--soft-pink);
  --canvas: var(--cream);
  --accent: var(--coffee-brown);
  --accent-dark: var(--dark-coffee-accent);
  --accent-pale: var(--light-latte);
  --caramel: var(--coffee-brown);
  --watermelon-pink: var(--primary-pink);
  --watermelon-pink-dark: var(--primary-pink);
  --watermelon-pink-pale: var(--soft-pink);
  --white: var(--cream);
  font-family: "BIZ UDPGothic", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}


* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body.home-page {
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 18%, rgb(243 228 231 / 15%), transparent 30rem),
    radial-gradient(circle at 92% 48%, rgb(243 228 231 / 20%), transparent 34rem),
    radial-gradient(circle at 38% 88%, rgb(243 228 231 / 18%), transparent 32rem),
    linear-gradient(180deg, #FFF9F6 0%, #FFF9F6 48%, #FFF9F6 100%);
  background-attachment: fixed;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  height: 52px;
  align-items: center;
  gap: 36px;
  padding: 0 max(32px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #F3E4E7;
  background: rgb(255 249 246 / 97%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #FFF9F6;
  background: linear-gradient(145deg, #9A715A, #9A715A);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -1px;
  box-shadow: 0 4px 9px rgb(154 113 90 / 22%);
}

.header-searches {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.search-box {
  display: flex;
  width: min(320px, 24vw);
  flex: 1 1 0;
  max-width: 320px;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 10px;
  border: 1px solid #F3E4E7;
  border-radius: 9px;
  background: #FFF9F6;
  color: #62544D;
}

.search-box:focus-within {
  border-color: #9A715A;
  background: #FFF9F6;
  box-shadow: 0 0 0 3px rgb(154 113 90 / 12%);
}

.search-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1.7px solid #62544D;
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.7px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: #62544D;
  content: "";
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-box input::placeholder {
  color: #62544D;
}

.search-box kbd {
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid #F3E4E7;
  border-radius: 4px;
  background: #FFF9F6;
  color: #62544D;
  font: 10px "BIZ UDPGothic", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}

.header-actions {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-help-menu {
  position: relative;
  flex: 0 0 auto;
}

.header-help-trigger {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--dark-coffee-accent);
  cursor: pointer;
  list-style: none;
  transition: background .18s ease, color .18s ease;
}

.header-help-trigger::-webkit-details-marker {
  display: none;
}

.header-help-trigger::marker {
  content: "";
}

.header-help-trigger:hover,
.header-help-menu[open] .header-help-trigger {
  background: var(--soft-pink);
  color: var(--primary-pink);
}

.header-help-trigger svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-help-dropdown {
  position: absolute;
  z-index: 20;
  top: calc(100% + 16px);
  right: 0;
  width: min(280px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgb(196 55 88 / 28%);
  border-radius: 17px;
  background: var(--cream);
  box-shadow: 0 12px 30px rgb(98 84 77 / 16%);
}

.header-help-dropdown a {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 11px;
  padding: 8px 9px;
  border-radius: 10px;
  color: var(--dark-coffee-accent);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.header-help-dropdown a:hover,
.header-help-dropdown a:focus-visible {
  background: var(--soft-pink);
  color: var(--primary-pink);
}

.header-help-dropdown a > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-help-dropdown a > span {
  display: grid;
  gap: 3px;
}

.header-help-dropdown strong {
  font-size: 13px;
}

.header-help-dropdown small {
  color: #8A756B;
  font-size: 10px;
}

.help-page {
  max-width: 760px;
}

.help-guide-page {
  max-width: 1040px;
}

.help-page-card {
  margin-top: 12px;
}

.help-page-card .section-kicker {
  margin-bottom: 8px;
}

.help-page-card > .bilingual-heading {
  margin-bottom: 14px;
}

.help-page-message {
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--soft-pink);
  border-radius: 10px;
  background: rgb(243 228 231 / 35%);
  color: var(--body-text);
  line-height: 1.9;
}

.help-guide-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--soft-pink);
}

.help-guide-section h2 {
  margin: 0 0 12px;
  color: var(--dark-coffee-accent);
  font-size: 19px;
  line-height: 1.5;
}

.help-guide-section h3 {
  margin: 18px 0 8px;
  color: var(--primary-pink);
  font-size: 15px;
}

.help-guide-section p,
.help-guide-section li {
  color: var(--body-text);
  font-size: 13px;
  line-height: 1.85;
}

.help-guide-section p {
  margin: 0 0 10px;
}

.help-guide-section ol,
.help-guide-section ul {
  margin: 8px 0 12px;
  padding-left: 1.5em;
}

.help-guide-section li + li {
  margin-top: 5px;
}

.help-guide-section strong {
  color: var(--dark-coffee-accent);
}

.help-guide-section .help-guide-note {
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--coffee-brown);
  border-radius: 0 8px 8px 0;
  background: var(--light-latte);
}

.help-permission-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--soft-pink);
  border-radius: 10px;
}

.help-permission-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--cream);
  color: var(--body-text);
  font-size: 12px;
  line-height: 1.65;
}

.help-permission-table th,
.help-permission-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft-pink);
  text-align: left;
  vertical-align: middle;
}

.help-permission-table thead th {
  background: var(--soft-pink);
  color: var(--dark-coffee-accent);
  font-weight: 700;
}

.help-permission-table tbody th {
  min-width: 250px;
  font-weight: 600;
}

.help-permission-table td:not(:first-child),
.help-permission-table thead th:not(:first-child) {
  width: 190px;
  text-align: center;
}

.help-permission-table tbody tr:last-child th,
.help-permission-table tbody tr:last-child td {
  border-bottom: 0;
}

.header-account-menu {
  position: relative;
}

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
}

.header-user::-webkit-details-marker {
  display: none;
}

.header-account-dropdown {
  position: absolute;
  z-index: 10;
  top: calc(100% + 12px);
  left: 50%;
  width: 180px;
  transform: translateX(-50%);
  padding: 6px;
  border: 1px solid #F3E4E7;
  border-radius: 10px;
  background: #FFF9F6;
  box-shadow: 0 8px 24px rgb(154 113 90 / 18%);
}

.header-account-dropdown a,
.header-account-dropdown button {
  display: flex;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9A715A;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.header-account-dropdown a:hover,
.header-account-dropdown button:hover {
  background: #FFF9F6;
  color: #62544D;
}

.header-account-dropdown form {
  margin: 0;
}

.header-approval-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: #9A715A;
  color: #FFF9F6;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.bilingual-heading .heading-english {
  margin-left: .28em;
  color: inherit;
  font: inherit;
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
}

.workflow-screen .bilingual-heading {
  color: #c43758;
}

.form-input.is-readonly {
  border-color: #F3E4E7;
  background: #FFF9F6;
  color: #62544D;
  cursor: not-allowed;
}

.action-icon-only {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #62544D;
  cursor: pointer;
  text-decoration: none;
}

.action-icon-only:hover {
  background: #FFF9F6;
  color: #9A715A;
}

.action-icon-only.is-delete {
  color: #c43758;
}

.action-icon-only.is-delete:hover {
  background: #F3E4E7;
  color: #c43758;
}

.action-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.account-details {
  margin: 14px 0 0;
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 12px;
}

.account-details > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.account-details > div + div {
  border-top: 1px solid var(--line);
}

.account-details dt {
  color: var(--muted);
  font-size: 11px;
}

.account-details dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-form > h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.account-form > .account-email-label {
  margin-top: 9px;
}

.account-form input[type="email"] {
  font-family: Consolas, "Courier New", monospace;
}

.account-form > .account-password-heading {
  margin-top: 22px;
}

.account-form .account-details {
  margin-bottom: 9px;
}

.account-saved {
  margin-bottom: 13px;
  padding: 8px 10px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 13px;
}

.admin-table-screen {
  max-width: none;
}

.page-shell-admin-table {
  width: 100vw;
  max-width: none;
}

.page-shell.page-shell-admin-table {
  width: 100vw;
}

.admin-table-scroll {
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.admin-content-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

.admin-content-table th,
.admin-content-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-content-table th {
  position: sticky;
  top: 0;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 12px;
  white-space: nowrap;
}

.admin-content-table td {
  font-size: 12px;
  line-height: 1.6;
}

.admin-content-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-content-table th:nth-child(1),
.admin-content-table td:nth-child(1) {
  width: 40%;
  overflow-wrap: anywhere;
}

.admin-content-table th:nth-child(2),
.admin-content-table td:nth-child(2) {
  width: 12%;
  overflow-wrap: anywhere;
}

.admin-content-table th:nth-child(3),
.admin-content-table td:nth-child(3) {
  width: 10%;
  overflow-wrap: anywhere;
}

.admin-content-table th:nth-child(4),
.admin-content-table td:nth-child(4) {
  width: 8%;
}

.admin-content-table th:nth-child(5),
.admin-content-table td:nth-child(5) {
  width: 18%;
  overflow-wrap: anywhere;
}

.admin-content-table th:nth-child(6),
.admin-content-table td:nth-child(6) {
  width: 12%;
}

.admin-table-sort {
  color: inherit;
  text-decoration: none;
}

.admin-table-sort:hover {
  color: var(--accent-dark);
}

.admin-content-table textarea {
  display: block;
  width: 100%;
  min-height: 60px;
  resize: vertical;
  padding: 6px 8px;
  border: 1px solid #F3E4E7;
  border-radius: 7px;
  background: #FFF9F6;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
}

.admin-inline-edit .admin-action-button {
  margin-top: 6px;
}

.admin-content-table .admin-action-button {
  min-width: 0;
  padding: 6px 6px;
  white-space: nowrap;
}

.admin-content-table form:not(.admin-inline-edit) {
  margin: 0;
}

.admin-content-table td a {
  color: var(--accent-dark);
}

.admin-answer-table th:nth-child(1),
.admin-answer-table td:nth-child(1) {
  width: 34%;
}

.admin-answer-table th:nth-child(2),
.admin-answer-table td:nth-child(2) {
  width: 22%;
}

.admin-answer-table th:nth-child(3),
.admin-answer-table td:nth-child(3) {
  width: 10%;
}

.admin-answer-table th:nth-child(4),
.admin-answer-table td:nth-child(4) {
  width: 8%;
}

.admin-answer-table th:nth-child(5),
.admin-answer-table td:nth-child(5) {
  width: 14%;
}

.admin-answer-table th:nth-child(6),
.admin-answer-table td:nth-child(6) {
  width: 12%;
}

.admin-table-pagination {
  flex-wrap: wrap;
}

.admin-table-pagination a {
  text-decoration: none;
}

.admin-table-pagination [aria-disabled="true"] {
  color: #62544D;
  cursor: default;
  pointer-events: none;
}

.admin-table-page-count {
  margin: 6px 0 15px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.admin-question-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
}

.admin-multi-filter {
  position: relative;
}

.admin-multi-filter > summary {
  min-height: 38px;
  padding: 7px 22px 7px 8px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  background: #FFF9F6;
  color: #9A715A;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
  white-space: nowrap;
}

.admin-multi-filter > summary::-webkit-details-marker {
  display: none;
}

.admin-multi-filter > summary::after {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
}

.admin-multi-filter[open] > summary::after {
  transform: translateY(3px) rotate(225deg);
}

.admin-multi-filter-options {
  position: absolute;
  z-index: 6;
  top: calc(100% + 5px);
  left: 0;
  display: grid;
  width: max-content;
  min-width: 220px;
  max-width: min(340px, 88vw);
  max-height: 300px;
  overflow-y: auto;
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 8px 24px rgb(98 84 77 / 14%);
}

.admin-multi-filter-options label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 6px;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
}

.admin-multi-filter-options label:hover {
  background: #FFF9F6;
}

.admin-multi-filter-options input {
  margin: 2px 0 0;
  accent-color: var(--accent-dark);
}

.admin-filter-clear {
  color: var(--muted);
  font-size: 12px;
}

.header-user svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.header-role {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 4px;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.header-role[title="管理者"] {
  background: var(--watermelon-pink-pale);
  color: var(--watermelon-pink-dark);
}

.notification-link {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #F3E4E7;
  border-radius: 9px;
  background: #FFF9F6;
  color: #9A715A;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}

.notification-link:hover {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.notification-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #FFF9F6;
  border-radius: 999px;
  background: var(--watermelon-pink-dark);
  color: #FFF9F6;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.notification-count[hidden] {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}

.button:active,
.vote-button:active {
  transform: translateY(1px);
}

.button-quiet {
  background: transparent;
}

.button-quiet:hover {
  background: #FFF9F6;
}

.button-primary {
  color: #FFF9F6;
  background: var(--accent-dark);
  box-shadow: 0 4px 10px rgb(154 113 90 / 18%);
}

.button-primary:hover {
  background: #62544D;
  box-shadow: 0 6px 14px rgb(154 113 90 / 23%);
}

.button-primary span {
  margin-right: 4px;
  font-size: 17px;
  vertical-align: -1px;
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.page-shell-wide {
  width: min(80vw, 1440px);
}

.welcome {
  position: relative;
  display: flex;
  min-height: 176px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-top: 21px;
  padding: 6px 46px;
  border: 1px solid #F3E4E7;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 84% 18%, rgb(233 240 227 / 78%), transparent 25%),
    radial-gradient(ellipse at 87% 15%, rgb(255 249 246 / 96%), transparent 28%),
    linear-gradient(110deg, #FFF9F6 0%, #FFF9F6 52%, #F3E4E7 100%);
}

.welcome::after {
  position: absolute;
  right: 17%;
  bottom: -117px;
  width: 280px;
  height: 210px;
  transform: rotate(-29deg);
  border: 1px solid rgb(154 113 90 / 18%);
  border-radius: 50%;
  content: "";
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: #9A715A;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.35px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--watermelon-pink);
  box-shadow: 0 0 0 4px rgb(169 95 115 / 18%);
}

.welcome h1 {
  margin: 14px 0 8px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -1.5px;
}

.welcome h1 span {
  color: var(--accent-dark);
}

.welcome-copy {
  margin: 0;
  color: #9A715A;
  font-size: 13px;
  line-height: 1.9;
}

.welcome-copy-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.welcome-notice {
  max-width: none;
  margin: 0;
  color: #9A715A;
  font-size: 11px;
  line-height: 1.9;
  white-space: nowrap;
}

.welcome-art {
  position: relative;
  z-index: 1;
  width: 190px;
  height: 150px;
  margin-right: 26px;
}

.art-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 24px;
  font-weight: 700;
}

.bubble-back {
  top: 16px;
  right: 5px;
  width: 77px;
  height: 67px;
  transform: rotate(9deg);
  border: 1px solid #F3E4E7;
  background: #FFF9F6;
  color: #c43758;
  font-size: 36px;
  box-shadow: 0 10px 28px rgb(154 113 90 / 10%);
}

.bubble-back::after {
  position: absolute;
  right: 15px;
  bottom: -8px;
  width: 17px;
  height: 17px;
  transform: rotate(45deg);
  border-right: 1px solid #F3E4E7;
  border-bottom: 1px solid #F3E4E7;
  background: #FFF9F6;
  content: "";
}

.bubble-front {
  top: 58px;
  left: 9px;
  width: 112px;
  height: 78px;
  transform: rotate(-7deg);
  border-radius: 21px;
  background: linear-gradient(140deg, #9A715A, #9A715A);
  color: #FFF9F6;
  font-size: 37px;
  box-shadow: 0 14px 24px rgb(154 113 90 / 24%);
}

.bubble-front i {
  position: absolute;
  bottom: -6px;
  left: 22px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: #9A715A;
}

.art-sparkle {
  position: absolute;
  color: var(--watermelon-pink);
}

.sparkle-one {
  top: 2px;
  left: 26px;
  font-size: 23px;
}

.sparkle-two {
  right: -3px;
  bottom: 16px;
  font-size: 20px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 21px;
  margin-top: 29px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.question-controls-sticky {
  position: sticky;
  z-index: 4;
  top: 52px;
  margin-top: -8px;
  padding-top: 8px;
  background: transparent;
}

.section-kicker {
  color: #9A715A;
  font-size: 9px;
  letter-spacing: 1.25px;
}

.section-heading h2,
.side-heading h2 {
  margin: 5px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.5px;
}

.question-total {
  color: #62544D;
  font-size: 12px;
}

.question-pagination .question-total {
  margin-left: 5px;
  white-space: nowrap;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 10px;
}

.feed-toolbar-filters {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.feed-theme-filter > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 0 10px;
  background: #FFF9F6;
  border-color: var(--line);
}

.feed-theme-filter > summary::after {
  position: static;
  flex: 0 0 auto;
  transform: translateY(-2px) rotate(45deg);
}

.feed-theme-filter[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.feed-theme-filter .admin-multi-filter-options {
  right: 0;
  left: auto;
  min-width: min(240px, 88vw);
}

.feed-theme-filter label:has(input:disabled) {
  opacity: .5;
  cursor: default;
}

.feed-category-select {
  appearance: none;
  min-width: 0;
  min-height: 38px;
  padding: 0 28px 0 8px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  background-color: #FFF9F6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23526b57' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #9A715A;
  font: inherit;
  font-size: 11px;
}

.feed-category-select:focus {
  border-color: #9A715A;
  outline: 0;
  box-shadow: 0 0 0 3px rgb(154 113 90 / 12%);
}

.feed-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid #F3E4E7;
  border-radius: 9px;
  background: #FFF9F6;
}

.feed-tab {
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #62544D;
  cursor: pointer;
  font-size: 12px;
  transition: color .18s ease, background .18s ease;
}

.feed-tab:hover {
  color: var(--accent);
}

.feed-tab.is-active {
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-weight: 600;
}

.filter-button {
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
}

.filter-button:hover {
  background: var(--accent-pale);
}

.question-list {
  display: grid;
  gap: 8px;
}

.question-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-page,
.pagination-direction {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #F3E4E7;
  border-radius: 7px;
  background: #FFF9F6;
  color: #9A715A;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.pagination-direction:disabled {
  color: #62544D;
  cursor: default;
}

.pagination-page:hover,
.pagination-direction:not(:disabled):hover {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.pagination-page.is-active {
  border-color: #9A715A;
  background: #9A715A;
  color: #FFF9F6;
  font-weight: 700;
}

.pagination-ellipsis {
  padding: 0 2px;
  color: #62544D;
  font-size: 12px;
}

.question-pagination[hidden] {
  display: none;
}

.question-section {
  scroll-margin-top: 68px;
}

.question-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  padding: 15px 16px 13px 12px;
  border: 1px solid #F3E4E7;
  border-radius: 11px;
  background: #FFF9F6;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  scroll-margin-top: 112px;
  cursor: pointer;
}

.question-card:hover {
  transform: translateY(-1px);
  border-color: #F3E4E7;
  box-shadow: 0 7px 22px rgb(98 84 77 / 9%);
}

.vote-button {
  display: flex;
  width: 48px;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  background: #FFF9F6;
  color: #62544D;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.vote-button:hover,
.vote-button.is-voted {
  border-color: #F3E4E7;
  background: #FFF9F6;
  color: var(--accent);
}

.vote-arrow {
  font-size: 18px;
  line-height: 1;
}

.vote-count {
  font-size: 12px;
  font-weight: 700;
}

.question-main {
  min-width: 0;
  cursor: pointer;
}

.question-submission-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  margin: -3px 0 7px;
  color: #62544D;
  font-size: 10px;
}

.question-submission-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #62544D;
  font-weight: 600;
}

.question-submission-author svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.question-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.question-tag {
  padding: 4px 6px;
  border-radius: 5px;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 10px;
  font-weight: 600;
}

.question-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.2px;
  line-height: 1.65;
}

.question-open {
  display: block;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.question-open:hover {
  color: var(--accent-dark);
}

.question-more-link {
  margin-left: 2px;
  color: #c43758;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.workflow-screen {
  max-width: 820px;
  margin: 26px auto 0;
}

.admin-screen {
  max-width: 900px;
}

.admin-sticky-header {
  position: sticky;
  z-index: 4;
  top: 52px;
  margin: 0 -9px;
  padding: 8px 9px 9px;
  background: var(--canvas);
}

.admin-page-heading,
.admin-section-heading,
.admin-pending-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-page-heading {
  margin-bottom: 12px;
}

.admin-page-heading h1 {
  margin: 5px 0 4px;
  color: #62544D;
  font-size: 24px;
}

.admin-page-heading > div > p:last-child {
  margin: 0;
  color: #62544D;
  font-size: 12px;
}

.admin-item-type {
  display: inline-flex;
  align-items: center;
  padding: 5px 7px;
  border-radius: 999px;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-pending-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.admin-summary-link {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid #FFF9F6;
  border-radius: 10px;
  color: #9A715A;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 9px rgb(98 84 77 / 10%);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.admin-summary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgb(98 84 77 / 16%);
}

.admin-pending-summary strong {
  color: #62544D;
  font-size: 27px;
}

.admin-summary-question {
  border-color: #9A715A;
  background: #FFF9F6;
}

.admin-summary-question:hover {
  border-color: #9A715A;
  background: #F3E4E7;
}

.admin-summary-question strong {
  color: #9A715A;
}

.admin-summary-answer {
  border-color: #9A715A;
  background: #FFF9F6;
}

.admin-summary-answer:hover {
  border-color: #9A715A;
  background: #F3E4E7;
}

.admin-summary-answer strong {
  color: #62544D;
}

.approval-demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 21px;
  padding: 9px 10px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 11px;
  line-height: 1.7;
}

.approval-demo-notice > span {
  color: var(--accent);
}

.approval-demo-notice p {
  margin: 0;
}

.admin-pending-section + .admin-pending-section {
  margin-top: 22px;
}

.admin-section-heading {
  margin-bottom: 9px;
}

.admin-section-heading h2 {
  margin: 0;
  color: #62544D;
  font-size: 18px;
}

.admin-section-heading > span {
  color: #9A715A;
  font-size: 12px;
}

.admin-filter-row {
  display: flex;
  gap: 7px;
  margin-bottom: 9px;
}

.admin-filter-search {
  display: flex;
  min-width: 0;
  min-height: 39px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  background: #FFF9F6;
  color: #62544D;
}

.admin-filter-search:focus-within,
.admin-filter-select:focus {
  border-color: #9A715A;
  outline: 0;
  box-shadow: 0 0 0 3px rgb(154 113 90 / 12%);
}

.admin-filter-search .search-icon {
  width: 13px;
  height: 13px;
}

.admin-filter-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.admin-filter-search input::placeholder {
  color: #62544D;
}

.admin-filter-select {
  min-width: 150px;
  padding: 0 22px 0 8px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  background: #FFF9F6;
  color: #9A715A;
  font: inherit;
  font-size: 11px;
}

.admin-filter-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed #F3E4E7;
  border-radius: 9px;
  color: #9A715A;
  font-size: 12px;
  text-align: center;
}

.admin-pending-list {
  display: grid;
  gap: 8px;
}

.admin-pending-card {
  position: relative;
  padding: 13px 14px;
  border: 1px solid #F3E4E7;
  border-radius: 10px;
  background: #FFF9F6;
}

.admin-pending-card.admin-question-card {
  border-color: #F3E4E7;
  border-left: 4px solid #9A715A;
  background: #FFF9F6;
}

.admin-pending-card.admin-answer-card {
  border-color: #F3E4E7;
  border-left: 4px solid #9A715A;
  background: #FFF9F6;
}

.admin-pending-card-top {
  justify-content: flex-start;
  min-height: 22px;
}

.admin-submission-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 19px;
  right: 19px;
}

.admin-nickname {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #62544D;
  font-size: 10px;
  font-weight: 600;
}

.admin-nickname svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.admin-submission-meta time {
  color: #62544D;
  font-size: 10px;
}

.admin-item-type-answer {
  background: #FFF9F6;
  color: #9A715A;
}

.admin-pending-content {
  margin: 9px 0;
  color: #62544D;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.admin-category-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.admin-category-line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

.admin-category-label {
  padding-top: 4px;
  color: #62544D;
  font-size: 10px;
  font-weight: 600;
}

.admin-category-line .detail-tags {
  gap: 5px;
  padding-top: 0;
}

.admin-interview-tag {
  background: #FFF9F6;
  color: #9A715A;
}

.admin-work-tag {
  background: #FFF9F6;
  color: #9A715A;
}

.admin-parent-question {
  margin: 9px 0 0;
  padding: 7px 8px;
  border-left: 3px solid #9A715A;
  border-radius: 0 6px 6px 0;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 11px;
  line-height: 1.7;
}

.admin-parent-question + .admin-pending-content {
  margin-top: 8px;
}

.admin-category-list + .admin-pending-content {
  margin-top: 8px;
}

.admin-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 11px;
}

.admin-card-actions form {
  margin: 0;
}

.admin-review-reject-form {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 6px;
}

.admin-review-reject-form .admin-filter-select {
  min-width: 0;
  min-height: 34px;
  flex: 1;
  padding: 0 8px;
}

.admin-action-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.admin-action-button:hover {
  transform: translateY(-1px);
}

.admin-edit-button {
  display: inline-flex;
  align-items: center;
  border-color: #F3E4E7;
  background: #FFF9F6;
  color: var(--accent-dark);
  text-decoration: none;
}

.admin-edit-button:hover {
  background: #FFF9F6;
}

.admin-approve-button {
  border-color: #9A715A;
  background: #9A715A;
  color: #FFF9F6;
}

.admin-approve-button:hover {
  border-color: #62544D;
  background: #62544D;
}

.admin-reject-button {
  border-color: #c43758;
  background: #FFF9F6;
  color: #c43758;
}

.admin-reject-button:hover {
  border-color: #c43758;
  background: #F3E4E7;
}

.admin-rejection-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border: 1px solid #F3E4E7;
  border-radius: 12px;
  background: #FFF9F6;
  color: #62544D;
  box-shadow: 0 20px 60px rgb(98 84 77 / 28%);
}

.admin-rejection-dialog::backdrop {
  background: rgb(98 84 77 / 48%);
}

.admin-rejection-dialog form {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.admin-rejection-dialog h2 {
  margin: 0;
  color: #62544D;
  font-size: 20px;
}

.admin-rejection-dialog p {
  margin: 0;
  color: #62544D;
  font-size: 13px;
  line-height: 1.7;
}

.admin-rejection-dialog label {
  color: #9A715A;
  font-size: 12px;
  font-weight: 700;
}

.admin-rejection-dialog label span {
  color: #c43758;
  font-size: 10px;
}

.admin-rejection-dialog textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 8px 9px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  color: #62544D;
  font: inherit;
  font-size: 13px;
}

.admin-rejection-dialog textarea:focus {
  border-color: #9A715A;
  outline: 0;
  box-shadow: 0 0 0 3px rgb(154 113 90 / 12%);
}

.admin-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 4px;
}

.author-rejection-notice {
  margin-bottom: 14px;
  padding: 10px 11px;
  border: 1px solid #c43758;
  border-left: 4px solid #c43758;
  border-radius: 8px;
  background: #FFF9F6;
  color: #c43758;
  font-size: 12px;
  line-height: 1.7;
}

.author-rejection-notice strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.author-rejection-notice p {
  margin: 0;
}

.notification-screen {
  max-width: 760px;
}

.notification-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 9px;
}

.notification-page-heading h1 {
  margin: 4px 0 0;
  color: #c43758;
  font-size: 26px;
}

.notification-read-all {
  padding: 7px 8px;
  border: 1px solid #F3E4E7;
  border-radius: 7px;
  background: #FFF9F6;
  color: #9A715A;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.notification-page-heading form,
.notification-list form {
  margin: 0;
}

.notification-read-all:hover {
  background: #FFF9F6;
}

.notification-list {
  display: grid;
  gap: 7px;
}

.notification-item {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #F3E4E7;
  border-radius: 10px;
  background: #FFF9F6;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}

.notification-item:hover {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.notification-item.is-unread {
  border-color: #c43758;
  background: #F3E4E7;
  box-shadow: inset 4px 0 0 #c43758;
}

.notification-item-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #FFF9F6;
  color: #62544D;
  font-size: 16px;
  font-weight: 700;
}

.notification-item-body {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.notification-item-body strong {
  color: #62544D;
  font-size: 13px;
}

.notification-audience {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 9px;
  font-weight: 700;
}

.notification-item-body > span {
  color: #62544D;
  font-size: 12px;
  line-height: 1.65;
}

.notification-item-body time {
  margin-top: 3px;
  color: #62544D;
  font-size: 10px;
}

.notification-item.is-unread .notification-item-icon {
  background: #F3E4E7;
  color: #c43758;
}

.notification-item.is-unread .notification-item-body strong {
  color: #c43758;
}

.notification-empty {
  margin: 0;
  padding: 22px 14px;
  border: 1px dashed #F3E4E7;
  border-radius: 9px;
  color: #62544D;
  font-size: 12px;
  text-align: center;
}

.detail-screen {
  width: 100%;
  max-width: none;
}

.workflow-screen[hidden] {
  display: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #9A715A;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.back-link:hover {
  color: var(--accent-dark);
}

.detail-card,
.form-card,
.answer-card {
  border: 1px solid #F3E4E7;
  border-radius: 12px;
  background: #FFF9F6;
  box-shadow: 0 6px 20px rgb(98 84 77 / 4%);
}

.detail-card {
  padding: 21px 24px 16px;
}

.detail-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.content-code {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid #E8CCD2;
  border-radius: 999px;
  background: #FFF4F4;
  color: #854D5C;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.content-code > span {
  color: #80665E;
  font-size: 9px;
  font-weight: 600;
}

.admin-content-code {
  color: #854D5C;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.detail-card h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.65;
}

.detail-author {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
}

.detail-body {
  margin-top: 17px;
  padding: 15px 0;
  border-top: 1px solid #F3E4E7;
  color: #62544D;
  font-size: 14px;
  line-height: 2;
  white-space: pre-wrap;
}

.detail-card h1.detail-body {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
}

.detail-primary-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.detail-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.detail-right-actions .answer-cta {
  margin-left: 0;
}

.detail-vote {
  width: auto;
  min-width: 42px;
  min-height: 34px;
  flex-direction: row;
  gap: 4px;
  padding: 0 8px;
}

.detail-vote .vote-arrow {
  font-size: 15px;
}

.detail-action-label {
  color: #62544D;
  font-size: 11px;
}

.answer-cta {
  margin-left: auto;
}

.answer-cta:disabled,
.answer-cta:disabled:hover {
  cursor: not-allowed;
  opacity: .65;
  box-shadow: none;
}

.answers-section {
  margin-top: 20px;
}

.answers-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 10px;
}

.answer-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.answer-sort-tabs {
  padding: 3px;
}

.answer-sort-tabs .feed-tab {
  min-height: 28px;
  padding: 0 7px;
  font-size: 10px;
}

.answers-heading h2 {
  margin: 4px 0 0;
  color: #62544D;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.5;
}

.answers-heading h2 .answer-count-number {
  margin-left: 5px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.answers-heading h2 .answer-count-unit {
  margin-left: 1px;
  color: #9A715A;
  font-size: 14px;
  font-weight: 500;
}

.button-outline {
  border: 1px solid #F3E4E7;
  background: #FFF9F6;
  color: var(--accent-dark);
}

.button-outline:hover {
  background: #FFF9F6;
}

.answer-list {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.answer-card {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  box-shadow: none;
}

.answer-card.is-edit-pending {
  border-color: #9A715A;
  background: #FFF9F6;
  box-shadow: inset 4px 0 0 #9A715A;
}

.answer-card.is-edit-pending > p {
  color: #9A715A;
}

.answer-author .author-avatar {
  background: #FFF9F6;
  color: #9A715A;
}

.answer-status {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #F3E4E7;
  color: #62544D;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
}

.answer-status[hidden] {
  display: none;
}

.answer-card > p {
  margin: 10px 0 9px;
  color: #62544D;
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.answer-helpful {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9A715A;
  cursor: pointer;
  font-size: 10px;
}

.answer-actions,
.answer-owner-actions {
  display: flex;
  align-items: center;
}

.answer-review-link {
  min-height: 32px;
  margin-left: auto;
  padding: 0 12px;
  font-size: 11px;
}

.answer-actions {
  justify-content: space-between;
  gap: 9px;
}

.answer-owner-actions {
  gap: 9px;
  margin-left: auto;
}

.answer-owner-actions form {
  margin: 0;
}

.answer-edit-link,
.answer-delete-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #62544D;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  text-decoration: none;
}

.pending-vote-placeholder {
  visibility: hidden;
}

.answer-edit-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.question-owner-actions {
  align-self: flex-end;
}

.answer-delete-button {
  color: #c43758;
}

.answer-delete-button:hover {
  color: #c43758;
  text-decoration: underline;
}

.answer-helpful:hover,
.answer-helpful[aria-pressed="true"] {
  color: var(--accent-dark);
}

.answer-vote-icon {
  font-size: 14px;
  vertical-align: -1px;
}

.no-answers {
  padding: 24px 15px;
  border: 1px dashed #F3E4E7;
  border-radius: 11px;
  background: #FFF9F6;
  text-align: center;
}

.no-answers > span {
  color: #9A715A;
  font-size: 25px;
}

.no-answers h3 {
  margin: 6px 0 5px;
  font-size: 14px;
}

.no-answers p {
  margin: 0 0 11px;
  color: #62544D;
  font-size: 12px;
}

.form-card {
  padding: 21px 24px;
}

.auth-screen {
  max-width: 520px;
}

.auth-card {
  padding: 22px 26px;
}

.form-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  outline: 0;
  background: #FFF9F6;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.form-input:focus {
  border-color: #9A715A;
  background: #FFF9F6;
  box-shadow: 0 0 0 3px rgb(154 113 90 / 12%);
}

.form-input::placeholder {
  color: #62544D;
}

.auth-password-label {
  margin-top: 14px;
}

.auth-submit {
  width: 100%;
  margin-top: 18px;
}

.auth-switch {
  margin: 16px 0 0;
  color: #9A715A;
  font-size: 12px;
  text-align: center;
}

.auth-switch a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.form-card > h1 {
  margin: 7px 0 5px;
  color: #c43758;
  font-size: 23px;
}

.workflow-screen .form-card > .section-kicker {
  color: #62544D;
}

.detail-page .answers-heading .section-kicker {
  color: #62544D;
}

.form-result {
  margin-top: 19px;
  padding: 19px;
  border: 1px solid #F3E4E7;
  border-radius: 10px;
  background: #FFF9F6;
}

.result-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #FFF9F6;
  color: #9A715A;
  font-weight: 700;
}

.form-result h2 {
  margin: 10px 0 7px;
  font-size: 17px;
}

.form-result p {
  margin: 0 0 14px;
  color: #9A715A;
  font-size: 12px;
  line-height: 1.8;
}

.form-error {
  margin: 0 0 13px;
  padding: 8px 10px;
  border: 1px solid #F3E4E7;
  border-radius: 7px;
  background: #FFF9F6;
  color: #c43758;
  font-size: 12px;
}

.form-error p {
  margin: 3px 0;
}

.form-card h2 {
  margin: 7px 0 5px;
  font-size: 23px;
}

.form-intro {
  margin: 0 0 18px;
  color: #62544D;
  font-size: 12px;
  line-height: 1.8;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: #62544D;
  font-size: 12px;
  font-weight: 700;
}

.form-label > span {
  margin-left: 6px;
  color: #62544D;
  font-size: 10px;
  font-weight: 500;
}

.form-card textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 10px 10px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  outline: 0;
  background: #FFF9F6;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.8;
}

.form-card textarea:focus {
  border-color: #9A715A;
  box-shadow: 0 0 0 3px rgb(154 113 90 / 12%);
}

.form-card textarea::placeholder {
  color: #62544D;
}

.field-hint {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  margin-top: 7px;
  color: #62544D;
  font-size: 10px;
}

.category-field {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.category-field legend {
  width: 100%;
}

.work-category-groups {
  display: grid;
  gap: 9px;
}

.work-category-group {
  display: grid;
  gap: 7px;
}

.work-category-group > strong {
  color: #9A715A;
  font-size: 11px;
}

.work-category-standalone {
  display: grid;
  gap: 7px;
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid #F3E4E7;
}

.work-category-standalone > strong {
  color: #9A715A;
  font-size: 11px;
}

.work-category-group .category-options {
  padding-left: 8px;
}

.category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-option input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.category-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.category-option span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-left: -1px;
  padding: 0 8px;
  border: 1px solid #F3E4E7;
  border-radius: 7px;
  background: #FFF9F6;
  color: #62544D;
  font-size: 11px;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.category-option:hover span {
  border-color: #F3E4E7;
}

.category-option input:checked + span {
  border-color: #F3E4E7;
  background: #FFF9F6;
  color: #62544D;
  font-weight: 600;
}

.category-option input:focus-visible + span {
  outline: 3px solid rgb(154 113 90 / 34%);
  outline-offset: 2px;
}

.category-option input:disabled + span {
  cursor: not-allowed;
  opacity: .55;
}

.category-field.is-language-locked [data-interview-lock-hint] {
  justify-content: flex-start;
  color: #9A715A;
}

.approval-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 10px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 11px;
  line-height: 1.7;
}

.approval-notice > span {
  flex: 0 0 auto;
  color: #9A715A;
}

.pending-notice {
  margin: 0 0 10px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #F3E4E7;
}

.form-actions .button-quiet {
  color: var(--accent-dark);
}

.answering-question {
  margin: 10px 0 17px;
  padding: 10px 11px;
  border-left: 3px solid #9A715A;
  border-radius: 0 7px 7px 0;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}

.new-answer-page .answering-question {
  font-size: 14px;
}

.question-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 10px;
  color: #62544D;
  font-size: 12px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #62544D;
  font-size: 10px;
}

.author-avatar {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--avatar-bg, #FFF9F6);
  color: var(--avatar-color, #9A715A);
  font-size: 10px;
  font-weight: 700;
}

.author-avatar svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.author-name {
  color: #62544D;
  font-weight: 600;
}

.meta-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #62544D;
}

.edit-meta {
  margin: 13px 0 0;
  padding: 11px 12px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  background: #FFF9F6;
}

.edit-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 5px 0;
  color: #62544D;
  font-size: 11px;
  line-height: 1.6;
}

.edit-meta-row + .edit-meta-row {
  border-top: 1px solid #F3E4E7;
}

.edit-meta-label {
  flex: 0 0 auto;
  min-width: 60px;
  color: #9A715A;
  font-weight: 700;
}

.edit-meta-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.edit-meta-value .author-avatar {
  width: 18px;
  height: 18px;
}

.edit-meta-value .author-avatar svg {
  width: 11px;
  height: 11px;
}

.edit-meta-value .author-name {
  color: #62544D;
  font-weight: 600;
}

.edit-meta-value time {
  color: #62544D;
}

.answer-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #62544D;
}

.answer-count.needs-answer {
  color: #c43758;
}

.answer-icon {
  font-size: 13px;
}

.sidebar {
  display: grid;
  align-self: stretch;
  align-content: start;
  gap: 10px;
  padding-top: 1px;
}

.side-card {
  border: 1px solid #F3E4E7;
  border-radius: 11px;
  background: #FFF9F6;
}

.category-card {
  position: sticky;
  z-index: 3;
  top: 60px;
  display: flex;
  height: 504px;
  flex-direction: column;
  padding: 5px 9px;
}

.category-card .side-heading {
  margin-bottom: 2px;
}

.category-card .side-heading h2 {
  margin: 0;
}

.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.side-heading h2 {
  font-size: 13px;
}

.side-heading-icon,
.category-clear-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: #FFF9F6;
  color: #9A715A;
  font: inherit;
  font-size: 11px;
}

.category-clear-button {
  cursor: pointer;
}

.category-clear-button:disabled {
  opacity: .55;
  cursor: default;
}

.category-list {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  gap: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #c43758 #FFF9F6;
  scrollbar-width: thin;
}

.category-list::-webkit-scrollbar {
  width: 8px;
}

.category-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #FFF9F6;
}

.category-list::-webkit-scrollbar-thumb {
  border: 2px solid #FFF9F6;
  border-radius: 999px;
  background: linear-gradient(#F3E4E7, #c43758);
}

.category-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#c43758, #c43758);
}

.category-button {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #62544D;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background .18s ease, color .18s ease;
}

.category-button:hover,
.category-button.is-active {
  background: #FFF9F6;
  color: var(--accent-dark);
}

.category-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--category-color, #9A715A);
}

.category-name {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
}

.category-count {
  color: #62544D;
  font-size: 10px;
}

.community-card {
  position: relative;
  overflow: hidden;
  padding: 15px 14px 14px;
  border-color: #F3E4E7;
  background: linear-gradient(145deg, #FFF9F6, #FFF9F6 75%);
}

.community-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 17px;
}

.community-card .section-kicker {
  color: #9A715A;
  font-size: 8px;
}

.community-card h2 {
  margin: 10px 0 6px;
  font-size: 15px;
  line-height: 1.7;
}

.community-card > p:not(.section-kicker) {
  margin: 0;
  color: #62544D;
  font-size: 11px;
  line-height: 1.8;
}

.text-link {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.text-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform .18s ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

.sidebar-note {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #F3E4E7;
  border-left: 4px solid #9A715A;
  border-radius: 8px;
  background: #FFF9F6;
  color: #9A715A;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}

.empty-state {
  padding: 34px 15px;
  border: 1px dashed #F3E4E7;
  border-radius: 11px;
  background: #FFF9F6;
  text-align: center;
}

.empty-state[hidden],
.filter-button[hidden] {
  display: none;
}

.empty-icon {
  color: #9A715A;
  font-size: 34px;
}

.empty-state h3 {
  margin: 7px 0 5px;
  font-size: 14px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid #F3E4E7;
  color: #62544D;
  font-size: 10px;
}

.footer-brand {
  gap: 6px;
  font-size: 15px;
}

.footer-brand .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 13px;
}

.footer-copyright {
  margin-left: auto;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  max-width: min(350px, calc(100vw - 40px));
  padding: 9px 12px;
  transform: translateY(12px);
  border: 1px solid #F3E4E7;
  border-radius: 9px;
  background: #FFF9F6;
  color: #9A715A;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 28px rgb(98 84 77 / 12%);
  transition: opacity .2s ease, transform .2s ease;
  font-size: 12px;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

:focus-visible {
  outline: 3px solid rgb(154 113 90 / 34%);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .site-header {
    gap: 16px;
    padding: 0 18px;
  }


  .page-shell {
    width: calc(100% - 40px);
  }

  .page-shell-wide {
    width: calc(100% - 40px);
  }

  .welcome {
    padding: 26px 28px;
  }

  .welcome-art {
    margin-right: 5px;
    transform: scale(.85);
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 14px;
  }

  .workflow-screen {
    max-width: 100%;
  }
}

@media (max-width: 650px) {
  .site-header {
    height: 50px;
    gap: 11px;
    padding: 0 12px;
  }

  .question-controls-sticky {
    top: 50px;
  }


  .welcome-copy-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .welcome-notice {
    max-width: none;
  }

  .category-card {
    position: static;
  }

  .admin-sticky-header {
    top: 50px;
    margin-right: -7px;
    margin-left: -7px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .brand {
    gap: 7px;
    font-size: 19px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .header-searches {
    min-width: 0;
  }

  .search-box {
    width: auto;
    min-width: 0;
    height: 37px;
    flex: 1 1 0;
    padding: 0 8px;
  }

  .search-box kbd,
  .header-actions .button-quiet {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .header-actions .button-primary {
    min-height: 35px;
    padding: 0 8px;
    font-size: 11px;
  }

  .page-shell {
    width: calc(100% - 28px);
  }

  .page-shell-wide {
    width: calc(100% - 28px);
  }

  .welcome {
    min-height: 168px;
    margin-top: 14px;
    padding: 21px 17px;
    border-radius: 13px;
  }

  .welcome h1 {
    max-width: 300px;
    margin-top: 11px;
    font-size: 25px;
  }

  .welcome-copy {
    max-width: 300px;
    font-size: 11px;
  }

  .welcome-art {
    position: absolute;
    right: -36px;
    bottom: -11px;
    opacity: .48;
    transform: scale(.68);
    transform-origin: bottom right;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: .8px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 21px;
  }

  .question-section {
    order: 1;
  }

  .sidebar {
    order: 0;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .category-card {
    grid-row: span 2;
    height: 504px;
    padding: 5px 8px;
  }

  .community-card {
    padding: 11px;
  }

  .community-card h2 {
    font-size: 13px;
  }

  .sidebar-note {
    align-self: center;
  }

  .section-heading h2 {
    font-size: 18px;
  }

  .question-card {
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 10px 10px 8px;
  }

  .vote-button {
    width: 41px;
    min-height: 54px;
  }

  .question-title {
    font-size: 13px;
  }

  .question-excerpt {
    font-size: 11px;
  }

  .detail-card,
  .form-card {
    padding: 16px 14px;
  }

  .detail-card-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }

  .detail-author {
    margin-left: auto;
  }

  .detail-card h1,
  .form-card h1,
  .form-card h2 {
    font-size: 19px;
  }

  .detail-body {
    font-size: 13px;
  }

  .detail-action-label {
    display: none;
  }

  .answer-card {
    padding: 11px;
  }

  .field-hint {
    align-items: flex-start;
    font-size: 9px;
  }

  .edit-meta {
    padding: 9px 10px;
  }

  .edit-meta-row {
    font-size: 10px;
  }

  .edit-meta-label {
    min-width: 52px;
  }

  .feed-tab {
    padding: 0 7px;
    font-size: 11px;
  }

  .feed-toolbar {
    flex-wrap: wrap;
  }

  .feed-toolbar-filters {
    flex: 1 1 auto;
  }

  .feed-category-select {
    width: 100%;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 6px 0;
    margin-top: 14px;
  }

  .site-footer > span:nth-child(2) {
    flex-basis: 100%;
    order: 1;
  }

  .footer-copyright {
    margin-left: auto;
  }
}

/* My submissions: question/answer and publication-state views. */
.my-submissions-screen {
  max-width: 980px;
}

.my-submission-type-tabs {
  margin-top: 10px;
}

.my-submission-panel {
  margin-top: 12px;
}

.my-submission-section-toolbar {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.my-submission-section-heading {
  flex: 0 1 auto;
  justify-content: flex-start;
  gap: 2px;
  margin-bottom: 0;
}

.my-submission-section-heading .my-submission-section-count {
  color: #62544D;
  font-size: 10px;
  font-weight: 500;
}

.my-submission-status-tabs {
  margin: 0 0 12px;
  border-color: #c43758;
  background: linear-gradient(135deg, #FFF9F6, #F3E4E7);
}

.my-submission-status-tabs .feed-tab {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.my-submission-status-tabs .feed-tab:hover {
  color: #c43758;
  font-weight: 700;
}

.my-submission-status-tabs .feed-tab.is-active {
  background: linear-gradient(135deg, #c43758, #c43758);
  color: #FFF9F6;
}

.my-submission-section-toolbar .my-submission-status-tabs {
  flex: 0 0 auto;
  margin: 0;
  margin-left: auto;
}

.my-submission-list {
  gap: 9px;
}

.my-submissions-screen .my-submission-question-card {
  display: block;
  padding: 15px 16px;
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.my-submissions-screen .my-submission-question-card:hover {
  border-color: #9A715A;
  box-shadow: 0 7px 22px rgb(154 113 90 / 12%);
}

.my-submission-question-card.is-pending,
.my-submission-question-card.is-unapproved,
.my-submission-answer-card.is-pending,
.my-submission-answer-card.is-unapproved {
  border-color: #62544D;
  background: #FFF9F6;
  box-shadow: inset 4px 0 0 #F3E4E7;
}

.my-submission-question-card.is-rejected,
.my-submission-answer-card.is-rejected {
  border-color: #c43758;
  background: #FFF9F6;
  box-shadow: inset 4px 0 0 #c43758;
}

.my-submission-card-top,
.my-submission-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.my-submission-card-top {
  margin-bottom: 9px;
  color: #62544D;
  font-size: 11px;
}

.my-question-status-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.my-question-answer-count {
  color: #62544D;
  font-size: 10px;
  white-space: nowrap;
}

.my-submission-card-footer {
  margin-top: 10px;
}

.my-submission-card-footer .answer-owner-actions form {
  margin: 0;
}

.my-question-card-actions {
  justify-content: flex-end;
}

.my-submission-question-card .question-title {
  margin-top: 8px;
}

.my-submission-question-card .question-title a {
  color: inherit;
  text-decoration: none;
}

.my-submission-answer-card {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.my-answer-question {
  display: flex;
  gap: 8px;
  margin: 2px 0 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #FFF9F6;
  color: #62544D;
  font-size: 12px;
  line-height: 1.7;
}

.my-answer-question > span {
  flex: 0 0 auto;
  color: #c43758;
  font-weight: 700;
}

.my-answer-question a {
  color: inherit;
  text-decoration: none;
}

.my-answer-question a:hover {
  color: #c43758;
  text-decoration: underline;
}

.my-revision-label {
  display: inline-flex;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #F3E4E7;
  color: #c43758;
  font-size: 9px;
  font-weight: 700;
}

.my-rejection-reason,
.my-submission-answer-card > p.my-rejection-reason {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgb(255 249 246 / 55%);
  color: #c43758;
  font-size: 12px;
  line-height: 1.7;
}

.my-rejection-reason strong {
  display: block;
  margin-bottom: 2px;
  color: #c43758;
}

@media (max-width: 650px) {
  .my-submission-section-toolbar {
    align-items: center;
  }

  .my-submission-card-top,
  .my-submission-card-footer {
    align-items: flex-start;
  }

  .my-answer-question {
    display: block;
  }

  .my-answer-question > span {
    display: block;
    margin-bottom: 3px;
  }
}

.admin-table-screen .admin-multi-filter > summary {
  position: relative;
  display: flex;
  align-items: center;
  border-color: #c43758;
  background: linear-gradient(135deg, #FFF9F6, #F3E4E7);
  color: #c43758;
  font-weight: 600;
}

.admin-table-screen .admin-multi-filter > summary::after {
  top: 50%;
  color: #c43758;
  transform: translateY(-50%) rotate(45deg);
}

.admin-table-screen .admin-multi-filter[open] > summary::after {
  transform: translateY(-50%) rotate(225deg);
}

.admin-table-screen .admin-multi-filter-options {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.admin-table-screen .admin-multi-filter-options label {
  color: #9A715A;
}

.admin-table-screen .admin-multi-filter-options label:hover {
  background: #F3E4E7;
}

.admin-table-screen .admin-multi-filter-options input {
  accent-color: #c43758;
}

.admin-author-filter {
  display: flex;
  min-width: 180px;
  min-height: 38px;
  align-items: center;
  border: 1px solid #c43758;
  border-radius: 8px;
  background: linear-gradient(135deg, #FFF9F6, #F3E4E7);
}

.admin-author-filter:focus-within {
  border-color: #c43758;
  box-shadow: 0 0 0 3px rgb(169 95 115 / 16%);
}

.admin-author-filter input {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #9A715A;
  font: inherit;
  font-size: 12px;
}

.admin-author-filter input::placeholder {
  color: #c43758;
}

.admin-table-screen .admin-filter-submit,
.admin-table-screen .admin-filter-submit:hover {
  min-height: 38px;
  border-color: #c43758;
  background: linear-gradient(135deg, #c43758, #c43758);
  color: #FFF9F6;
}

@media (max-width: 650px) {
  .admin-author-filter {
    flex: 1 1 180px;
  }
}

.admin-pending-answer-groups {
  gap: 12px;
}

.admin-answer-group {
  overflow: hidden;
  border: 1px solid #F3E4E7;
  border-radius: 11px;
  background: #FFF9F6;
}

.admin-answer-group-question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-bottom: 1px solid #F3E4E7;
  background: linear-gradient(135deg, #FFF9F6, #F3E4E7);
}

.admin-answer-group-question > span {
  color: #c43758;
  font-size: 11px;
  font-weight: 800;
}

.admin-answer-group-question p {
  margin: 0;
  color: #62544D;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.admin-answer-group-question small {
  color: #c43758;
  font-size: 10px;
  white-space: nowrap;
}

.admin-answer-group-list {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.admin-answer-table thead th:nth-child(1),
.admin-answer-table tbody td:nth-child(1) {
  width: 58%;
}

.admin-answer-table thead th:nth-child(2),
.admin-answer-table tbody td:nth-child(2) {
  width: 12%;
}

.admin-answer-table thead th:nth-child(3),
.admin-answer-table tbody td:nth-child(3) {
  width: 10%;
}

.admin-answer-table thead th:nth-child(4),
.admin-answer-table tbody td:nth-child(4) {
  width: 12%;
}

.admin-answer-table thead th:nth-child(5),
.admin-answer-table tbody td:nth-child(5) {
  width: 8%;
}

.admin-question-table th:nth-child(1),
.admin-question-table td:nth-child(1) {
  width: 54%;
}

.admin-question-table th:nth-child(2),
.admin-question-table td:nth-child(2) {
  width: 12%;
}

.admin-question-table th:nth-child(3),
.admin-question-table td:nth-child(3) {
  width: 10%;
}

.admin-question-table th:nth-child(4),
.admin-question-table td:nth-child(4) {
  width: 7%;
}

.admin-question-table th:nth-child(5),
.admin-question-table td:nth-child(5) {
  width: 10%;
}

.admin-question-table th:nth-child(6),
.admin-question-table td:nth-child(6) {
  width: 7%;
}

.admin-question-table th,
.admin-question-table td {
  font-size: 11px;
}

.admin-question-table .admin-content-preview {
  font-size: 11px;
  line-height: 1.65;
}

.admin-question-table th:nth-child(5),
.admin-question-table td:nth-child(5) {
  font-size: 10px;
  white-space: nowrap;
}

.admin-question-text-filter {
  min-width: 220px;
}

.admin-answer-table th,
.admin-answer-table td {
  font-size: 11px;
}

.admin-answer-table .admin-content-preview {
  font-size: 11px;
  line-height: 1.65;
}

.admin-answer-table thead th:nth-child(4),
.admin-answer-table tbody td:nth-child(4) {
  font-size: 10px;
  white-space: nowrap;
}

.admin-answer-table .admin-answer-question-text {
  font-size: 11px;
}

.admin-answer-text-filter {
  min-width: 220px;
}

.admin-table-top-actions {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 6px;
}

.admin-table-reset-link {
  padding: 4px 8px;
  border: 1px solid #c43758;
  border-radius: 7px;
  background: linear-gradient(135deg, #FFF9F6, #F3E4E7);
  color: #c43758;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.admin-table-reset-link:hover {
  border-color: #c43758;
  background: #F3E4E7;
  color: #c43758;
}

.admin-text-delete-button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #c43758;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.admin-text-delete-button:hover {
  color: #c43758;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-table-item-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.admin-table-edit-link {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.admin-table-edit-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-user-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.admin-user-searches {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  gap: 8px;
}

.admin-user-search {
  min-width: 0;
  flex: 1 1 0;
  max-width: 320px;
}

.admin-user-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #c43758;
  border-radius: 9px;
  background: #FFF9F6;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.admin-user-search input:focus {
  border-color: #c43758;
  outline: 3px solid rgb(169 95 115 / 0.12);
}

.admin-user-table th:nth-child(1),
.admin-user-table td:nth-child(1) {
  width: 20%;
  overflow-wrap: anywhere;
}

.admin-user-table th:nth-child(2),
.admin-user-table td:nth-child(2) {
  width: 14%;
}

.admin-user-table th:nth-child(3),
.admin-user-table td:nth-child(3) {
  width: 16%;
}

.admin-user-table th:nth-child(4),
.admin-user-table td:nth-child(4) {
  width: 14%;
}

.admin-user-table th:nth-child(5),
.admin-user-table td:nth-child(5) {
  width: 10%;
  white-space: nowrap;
}

.admin-user-table th:nth-child(6),
.admin-user-table td:nth-child(6) {
  width: 12%;
}

.admin-user-table th:nth-child(7),
.admin-user-table td:nth-child(7) {
  width: 14%;
}

.admin-user-table td {
  vertical-align: middle;
}

.admin-reset-user-button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #c43758;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.admin-reset-user-button:hover {
  color: #c43758;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-issue-screen .form-card {
  max-width: 760px;
  margin-inline: auto;
}

.account-role-fieldset {
  margin: 10px 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.account-role-fieldset legend {
  width: 100%;
  margin-bottom: 3px;
  padding: 0;
  color: #62544D;
  font-size: 12px;
  font-weight: 700;
}

.account-role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 38px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
}

.account-role-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}

.account-role-fieldset input {
  accent-color: var(--accent);
}

.user-role-change-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .admin-user-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-search {
    flex-basis: auto;
    max-width: none;
  }

  .admin-user-searches {
    flex-direction: column;
  }

  .admin-user-toolbar .button {
    align-self: flex-end;
  }

  .admin-table-scroll {
    overflow-x: auto;
  }

  .admin-user-table {
    min-width: 820px;
  }
}

.admin-content-preview {
  margin: 0;
  color: #62544D;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.admin-content-preview .admin-content-preview-link {
  display: block;
  color: #62544D;
  text-decoration: none;
}

.admin-content-preview .admin-content-preview-link:hover {
  color: #62544D;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-content-preview .admin-content-preview-link span {
  color: #c43758;
  font-weight: 700;
}

.admin-answer-table .admin-answer-question-text {
  color: #62544D;
  text-decoration: none;
}

.admin-question-more-link {
  margin-left: 2px;
  color: #c43758;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-question-more-link:hover {
  color: #c43758;
}

.detail-page .answer-card[id] {
  scroll-margin-top: 60px;
}

.admin-answer-table .admin-answer-question-row th {
  position: static;
  width: auto;
  padding: 9px 11px;
  border-top: 8px solid #FFF9F6;
  border-bottom-color: #F3E4E7;
  background: linear-gradient(135deg, #FFF9F6, #F3E4E7);
  white-space: normal;
}

.admin-answer-question-label {
  margin-right: 9px;
  color: #c43758;
  font-size: 11px;
  font-weight: 800;
}

.admin-answer-question-text {
  color: #62544D;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.admin-answer-question-count {
  float: right;
  margin-left: 10px;
  color: #c43758;
  font-size: 10px;
  font-weight: 600;
}

@media (max-width: 650px) {
  .admin-answer-group-question {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-answer-group-question small {
    grid-column: 2;
  }

  .admin-answer-question-count {
    float: none;
    display: block;
    margin: 3px 0 0 34px;
  }
}

.admin-screen .admin-summary-link {
  width: 100%;
  border-color: #F3E4E7;
  background: #FFF9F6;
  color: #c43758;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.admin-screen .admin-summary-link strong {
  color: #c43758;
}

.admin-screen .admin-summary-link:hover {
  border-color: #c43758;
  background: #F3E4E7;
}

.admin-screen .admin-summary-link.is-active,
.admin-screen .admin-summary-link.is-active:hover {
  border-color: #c43758;
  background: linear-gradient(135deg, #F3E4E7, #F3E4E7);
  color: #c43758;
  box-shadow: 0 5px 14px rgb(169 95 115 / 20%);
  transform: none;
}

.admin-screen .admin-summary-link.is-active strong {
  color: #c43758;
}

.admin-review-reason-field {
  min-width: 0;
  flex: 1;
}

.admin-review-reject-form {
  align-items: flex-start;
}

.admin-review-reason-field .admin-filter-select {
  width: 100%;
}

.admin-review-field-error {
  margin: 4px 0 0;
  color: #c43758;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-review-reason-field .admin-filter-select[aria-invalid="true"] {
  border-color: #c43758;
  background: #FFF9F6;
}

.detail-page .detail-body,
.detail-page .answer-card [data-answer-content] {
  color: #62544D;
}

.detail-page .answers-heading h2,
.detail-page .answers-heading h2 .answer-count-number,
.detail-page .answers-heading h2 .answer-count-unit {
  color: #c43758;
}

.detail-page .answer-sort-tabs {
  border-color: #c43758;
  background: linear-gradient(135deg, #FFF9F6, #F3E4E7);
}

.detail-page .answer-sort-tabs .feed-tab.is-active {
  background: linear-gradient(135deg, #c43758, #c43758);
  color: #FFF9F6;
}

.detail-page .answer-sort-tabs .feed-tab:not(.is-active):hover {
  color: #c43758;
  font-weight: 700;
}

@media (max-width: 390px) {
  .site-header {
    gap: 7px;
    padding: 0 8px;
  }

  .brand {
    font-size: 17px;
  }

  .search-box {
    gap: 6px;
  }

  .header-actions .button-primary {
    padding: 0 6px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-row: auto;
  }

  .sidebar-note {
    align-self: stretch;
  }

  .question-meta {
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Compact admin table controls and pink search fields. */
.admin-table-screen .admin-question-filters .admin-author-filter,
.admin-table-screen .admin-question-filters .admin-author-filter input {
  background: var(--soft-pink);
}

.admin-question-table td:last-child,
.admin-answer-table td:last-child {
  padding-right: 12px;
}

.admin-question-table .admin-table-item-actions,
.admin-answer-table .admin-table-item-actions {
  gap: 3px;
  flex-wrap: nowrap;
}

.admin-question-table .admin-table-item-actions > form,
.admin-answer-table .admin-table-item-actions > form {
  margin: 0;
}

/* Answer list: question and answer are separate columns in flat sort modes. */
.admin-answer-table thead th:nth-child(1),
.admin-answer-table tbody td:nth-child(1) {
  width: 28%;
}

.admin-answer-table thead th:nth-child(2),
.admin-answer-table tbody td:nth-child(2) {
  width: 30%;
}

.admin-answer-table thead th:nth-child(3),
.admin-answer-table tbody td:nth-child(3) {
  width: 11%;
}

.admin-answer-table thead th:nth-child(4),
.admin-answer-table tbody td:nth-child(4) {
  width: 9%;
}

.admin-answer-table thead th:nth-child(5),
.admin-answer-table tbody td:nth-child(5) {
  width: 12%;
  white-space: nowrap;
}

.admin-answer-table thead th:nth-child(6),
.admin-answer-table tbody td:nth-child(6) {
  width: 10%;
}

.admin-answer-question-preview {
  color: var(--body-text);
}

.admin-answer-group-continuation {
  color: var(--primary-pink);
  font-size: 15px;
  font-weight: 800;
}

/* User management */
.admin-new-account-button,
.admin-new-account-button:hover {
  border-color: var(--primary-pink);
  background: linear-gradient(135deg, var(--primary-pink), #A87458);
  color: var(--cream);
  box-shadow: 0 4px 11px rgb(169 95 115 / 24%);
}

.admin-user-email-link {
  color: var(--dark-coffee-accent);
  font-weight: 700;
  text-decoration-color: rgb(111 78 61 / 34%);
  text-underline-offset: 2px;
}

.admin-user-email-link:hover {
  color: var(--primary-pink);
}

.admin-user-table .admin-table-item-actions {
  gap: 8px;
  flex-wrap: nowrap;
}

.admin-user-detail-screen .form-card {
  max-width: 760px;
  margin-inline: auto;
}

.admin-user-details {
  margin: 0;
}

/* My submissions search and editing guidance. */
.my-submission-search-form {
  flex: 0 1 260px;
  margin-left: auto;
}

.my-submission-search {
  min-width: 210px;
  background: var(--soft-pink);
}

.my-submission-search input {
  background: transparent;
}

.my-submission-section-toolbar .my-submission-search-form + .my-submission-status-tabs {
  margin-left: 0;
}

.my-submission-edit-note {
  margin: -3px 0 10px;
  color: var(--body-text);
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .my-submission-section-toolbar {
    flex-wrap: wrap;
  }

  .my-submission-search-form {
    order: 3;
    flex-basis: 100%;
  }

  .my-submission-search {
    width: 100%;
  }
}

::selection {
  background: #F3E4E7;
  color: var(--ink);
}

.search-box,
.feed-category-select,
.feed-tabs,
.pagination-page,
.pagination-direction,
.feed-toolbar,
.admin-filter-search,
.admin-filter-select {
  border-color: #F3E4E7;
}

.search-box,
.feed-category-select,
.admin-filter-search,
.admin-filter-select {
  background-color: #FFF9F6;
}

.search-box:focus-within,
.feed-category-select:focus,
.admin-filter-search:focus-within,
.admin-filter-select:focus,
.form-input:focus,
.form-card textarea:focus,
.admin-rejection-dialog textarea:focus {
  border-color: #c43758;
  box-shadow: 0 0 0 3px rgb(169 95 115 / 16%);
}

.feed-tabs,
.pagination-page,
.pagination-direction,
.question-card,
.detail-card,
.form-card,
.answer-card,
.notification-item,
.notification-read-all,
.admin-pending-card,
.admin-rejection-dialog,
.side-card {
  background-color: var(--white);
}

.feed-tab.is-active,
.pagination-page.is-active {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #FFF9F6;
}

.question-card,
.detail-card,
.form-card,
.answer-card,
.notification-item,
.notification-read-all {
  border-color: var(--line);
}

.question-tag,
.admin-work-tag {
  background: var(--watermelon-pink-pale);
  color: var(--watermelon-pink-dark);
}

.vote-button:hover,
.vote-button.is-voted {
  border-color: #F3E4E7;
  background: var(--watermelon-pink-pale);
  color: var(--watermelon-pink-dark);
}

.notification-item.is-unread {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.notification-item.is-unread .notification-item-icon {
  background: var(--watermelon-pink-pale);
  color: var(--watermelon-pink-dark);
}

.admin-summary-question {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.admin-summary-question:hover {
  border-color: #9A715A;
  background: #FFF9F6;
}

.admin-summary-answer {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.admin-summary-answer:hover {
  border-color: #c43758;
  background: #F3E4E7;
}

.admin-pending-card.admin-question-card {
  border-color: #F3E4E7;
  border-left-color: #9A715A;
  background: #FFF9F6;
}

.admin-pending-card.admin-answer-card {
  border-color: #F3E4E7;
  border-left-color: #c43758;
  background: #FFF9F6;
}

.admin-work-tag {
  background: #FFF9F6;
  color: #c43758;
}

.admin-reject-button {
  border-color: #F3E4E7;
  background: #FFF9F6;
  color: #c43758;
}

.admin-reject-button:hover {
  border-color: #c43758;
  background: #F3E4E7;
}

.form-input,
.form-card textarea {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.category-option input:checked + span {
  border-color: #c43758;
  background: #FFF9F6;
  color: #c43758;
}

.category-option input:focus-visible + span,
:focus-visible {
  outline-color: rgb(169 95 115 / 42%);
}

.answering-question,
.admin-parent-question {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.approval-notice {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.form-result {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.form-error {
  border-color: #F3E4E7;
  background: #FFF9F6;
  color: #c43758;
}

.sidebar-note {
  border-color: #F3E4E7;
  border-left-color: var(--watermelon-pink);
  background: #FFF9F6;
  color: #c43758;
}

.community-card {
  border-color: #F3E4E7;
  background: linear-gradient(145deg, #FFF9F6 0%, #FFF9F6 78%);
}

.community-icon,
.side-heading-icon {
  background: #FFF9F6;
  color: #c43758;
}

.category-button:hover,
.category-button.is-active {
  background: #FFF9F6;
  color: var(--accent-dark);
}

.answer-count.needs-answer {
  color: var(--watermelon-pink-dark);
}

.button-outline:hover {
  background: #FFF9F6;
}

body {
  background: var(--canvas);
}

.site-header {
  border-bottom-color: #F3E4E7;
  background: linear-gradient(110deg, #F3E4E7 0%, #FFF9F6 52%, #F3E4E7 100%);
}

.site-footer {
  position: relative;
  isolation: isolate;
  border-top-color: #F3E4E7;
  border-top: 0;
  background: transparent;
}

.site-footer::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 1px solid #F3E4E7;
  background: linear-gradient(110deg, #F3E4E7 0%, #FFF9F6 52%, #F3E4E7 100%);
  content: "";
}

.search-box,
.feed-category-select,
.admin-filter-search,
.admin-filter-select {
  border-color: #F3E4E7;
  background-color: #FFF9F6;
}

.welcome {
  border-color: #F3E4E7;
  background:
    radial-gradient(ellipse at 79% 19%, rgb(233 240 227 / 80%), transparent 24%),
    radial-gradient(ellipse at 88% 14%, rgb(255 249 246 / 96%), transparent 29%),
    linear-gradient(110deg, #FFF9F6 0%, #FFF9F6 52%, #F3E4E7 100%);
}

.question-tag,
.admin-work-tag {
  background: #FFF9F6;
  color: #9A715A;
}

.vote-button:hover,
.vote-button.is-voted {
  border-color: #F3E4E7;
  background: #FFF9F6;
  color: var(--accent-dark);
}

.community-card {
  border-color: #F3E4E7;
  background: linear-gradient(145deg, #FFF9F6 0%, #FFF9F6 78%);
}

.community-icon,
.side-heading-icon {
  background: #FFF9F6;
  color: #9A715A;
}

.category-button:hover,
.category-button.is-active {
  background: #FFF9F6;
  color: var(--accent-dark);
}

.sidebar-note {
  border-color: #F3E4E7;
  border-left-color: #9A715A;
  background: #FFF9F6;
  color: #9A715A;
}

.brand-mark {
  background: linear-gradient(145deg, #9A715A, #9A715A);
  box-shadow: 0 4px 9px rgb(154 113 90 / 24%);
}

.button-primary,
.admin-approve-button {
  border-color: #9A715A;
  background: #9A715A;
  box-shadow: 0 4px 10px rgb(154 113 90 / 20%);
}

.button-primary:hover,
.admin-approve-button:hover {
  border-color: #9A715A;
  background: #9A715A;
}

.welcome h1 span {
  color: #9A715A;
}

.bubble-front {
  background: linear-gradient(140deg, #9A715A, #9A715A);
  box-shadow: 0 14px 24px rgb(154 113 90 / 26%);
}

.bubble-front i {
  background: #9A715A;
}

.feed-tab.is-active,
.pagination-page.is-active {
  border-color: #9A715A;
  background: #9A715A;
}

.question-tag,
.admin-work-tag {
  background: #FFF9F6;
  color: #9A715A;
}

.vote-button:hover,
.vote-button.is-voted {
  border-color: #F3E4E7;
  background: #FFF9F6;
  color: #9A715A;
}

.admin-summary-question {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.admin-summary-question:hover {
  border-color: #9A715A;
  background: #FFF9F6;
}

.admin-pending-card.admin-question-card {
  border-color: #F3E4E7;
  border-left-color: #9A715A;
  background: #FFF9F6;
}

.notification-item-icon,
.answer-author .author-avatar {
  background: #FFF9F6;
  color: #9A715A;
}

.answer-status {
  background: #F3E4E7;
  color: #9A715A;
}

.side-heading-icon,
.community-icon {
  background: #F3E4E7;
  color: #9A715A;
}

.sidebar-note {
  border-color: #F3E4E7;
  border-left-color: #9A715A;
  background: #FFF9F6;
  color: #9A715A;
}

:focus-visible {
  outline-color: rgb(154 113 90 / 52%);
}

.brand-mark {
  background: linear-gradient(145deg, #9A715A 0%, var(--caramel) 48%, #9A715A 100%);
  box-shadow: 0 4px 10px rgb(154 113 90 / 28%);
}

.button-primary,
.admin-approve-button {
  border-color: #9A715A;
  background: linear-gradient(135deg, #9A715A 0%, #9A715A 100%);
  box-shadow: 0 4px 11px rgb(154 113 90 / 23%);
}

.button-primary:hover,
.admin-approve-button:hover {
  border-color: #9A715A;
  background: linear-gradient(135deg, #9A715A 0%, #9A715A 100%);
}

.welcome {
  background:
    radial-gradient(ellipse at 79% 19%, rgb(154 113 90 / 38%), transparent 25%),
    radial-gradient(ellipse at 88% 14%, rgb(255 249 246 / 96%), transparent 29%),
    linear-gradient(110deg, #FFF9F6 0%, #FFF9F6 52%, #F3E4E7 100%);
}

.welcome h1 span {
  color: var(--accent-dark);
}

.bubble-front {
  background: linear-gradient(140deg, #9A715A 0%, var(--caramel) 46%, #9A715A 100%);
  box-shadow: 0 14px 25px rgb(154 113 90 / 28%);
}

.bubble-front i {
  background: #9A715A;
}

.feed-tab.is-active,
.pagination-page.is-active {
  border-color: #9A715A;
  background: linear-gradient(135deg, #9A715A, #9A715A);
}

.question-tag,
.admin-work-tag,
.answer-status,
.notification-item-icon,
.answer-author .author-avatar,
.side-heading-icon,
.community-icon {
  background: #F3E4E7;
  color: #9A715A;
}

.vote-button:hover,
.vote-button.is-voted {
  border-color: #F3E4E7;
  background: #F3E4E7;
  color: #9A715A;
}

.admin-summary-question {
  border-color: #F3E4E7;
  background: linear-gradient(135deg, #FFF9F6, #F3E4E7);
}

.admin-summary-question:hover {
  border-color: #9A715A;
  background: linear-gradient(135deg, #F3E4E7, #F3E4E7);
}

.admin-pending-card.admin-question-card {
  border-color: #F3E4E7;
  border-left-color: #9A715A;
  background: #FFF9F6;
}

.sidebar-note {
  border-color: #F3E4E7;
  border-left-color: #9A715A;
  background: linear-gradient(110deg, #FFF9F6, #F3E4E7);
  color: #9A715A;
}

.category-button:hover,
.category-button.is-active {
  background: #F3E4E7;
  color: #9A715A;
}

.home-page .question-card {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.home-page .question-card:hover {
  border-color: #9A715A;
  box-shadow: 0 7px 22px rgb(154 113 90 / 12%);
}

.home-page .feed-tabs,
.home-page .feed-theme-filter > summary {
  border-color: #c43758;
  background: linear-gradient(135deg, #FFF9F6, #F3E4E7);
}

.home-page .feed-tab.is-active {
  background: linear-gradient(135deg, #c43758, #c43758);
  color: #FFF9F6;
}

.home-page .feed-tab:not(.is-active):hover {
  color: #c43758;
  font-weight: 700;
}

.home-page button.vote-button {
  border-color: #F3E4E7;
  background: #FFF9F6;
  color: #9A715A;
}

.home-page button.vote-button:hover,
.home-page button.vote-button.is-voted {
  border-color: #F3E4E7;
  background: #F3E4E7;
  color: #9A715A;
}

.home-page button.vote-button .vote-arrow {
  color: #9A715A;
}

.home-page button.vote-button.is-voted .vote-arrow {
  color: #9A715A;
}

.home-page .category-card {
  border-color: #F3E4E7;
  background: linear-gradient(145deg, #FFF9F6 0%, #FFF9F6 52%, #FFF9F6 100%);
}

.home-page .category-card .category-clear-button {
  background: #F3E4E7;
  color: #c43758;
}

.home-page .category-card .category-button {
  color: #F3E4E7;
}

.home-page .category-card .category-button:hover,
.home-page .category-card .category-button.is-active {
  background: #F3E4E7;
  color: #c43758;
}

.home-page .category-card .category-dot {
  background: #c43758;
}

.home-page .category-card .category-count {
  color: #c43758;
}

.home-page .feed-tab[data-sort="unanswered"] {
  font-size: 13px;
}

.home-page .answer-count.needs-answer {
  font-size: 11px;
}

.site-header .brand > span:last-child {
  color: #c43758;
  font-weight: 800;
}

.site-header .header-role,
.site-header .header-role[title="管理者"] {
  background: #F3E4E7;
  color: #c43758;
}

.home-page .welcome h1,
.home-page .welcome h1 span,
.home-page #questions-heading,
.home-page #category-heading,
.home-page .category-clear-button,
.site-footer .footer-brand > span:last-child {
  color: #c43758;
}

.home-page .feed-theme-filter > summary {
  color: #c43758;
  font-weight: 600;
}

.home-page .feed-theme-filter input {
  accent-color: #c43758;
}

.home-page .feed-theme-filter .admin-multi-filter-options label {
  color: #9A715A;
}

.site-footer .footer-brand > span:last-child {
  font-weight: 800;
}

.home-page .question-title {
  color: #62544D;
}

.site-header .header-user {
  color: #9A715A;
  font-weight: 700;
}

.question-title,
.detail-card h1.detail-body,
.answer-card > p,
.answer-card.is-edit-pending > p,
.admin-pending-content,
.admin-parent-question,
.answering-question {
  color: #62544D;
  font-size: 14px;
}

.vote-arrow,
.answer-vote-icon {
  color: #9A715A;
}

.no-answers,
.no-answers > span,
.no-answers h3,
.no-answers p,
.empty-state,
.empty-state h1,
.empty-state h3,
.empty-state p,
.empty-icon,
.notification-empty,
.admin-filter-empty,
.answer-search-empty {
  color: #62544D;
}

.home-page .question-card.is-pending,
.home-page .question-card.is-unapproved,
.detail-page .detail-card.is-pending,
.detail-page .answer-card.is-pending,
.detail-page .answer-card.is-unapproved,
.admin-pending-card.is-pending {
  border-color: #62544D;
  background: #FFF9F6;
  box-shadow: inset 4px 0 0 #F3E4E7;
}

.home-page .question-card.is-rejected,
.detail-page .detail-card.is-rejected,
.detail-page .answer-card.is-rejected {
  border-color: #c43758;
  background: #FFF9F6;
  box-shadow: inset 4px 0 0 #c43758;
}

.home-page .question-card.is-pending:hover {
  border-color: #62544D;
  box-shadow: inset 4px 0 0 #F3E4E7, 0 7px 22px rgb(243 228 231 / 10%);
}

.pending-answer-notice {
  margin: 0;
  color: #F3E4E7;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

.admin-screen .admin-page-heading h1,
.admin-screen .admin-section-heading h2 {
  color: #c43758;
}

.answer-status.is-rejected {
  background: #F3E4E7;
  color: #c43758;
}

.answer-status.is-pending {
  background: #FFF9F6;
  color: #F3E4E7;
}

body {
  padding-bottom: 44px;
}

.site-footer {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid #F3E4E7;
  background: linear-gradient(110deg, #F3E4E7 0%, #FFF9F6 52%, #F3E4E7 100%);
}

.site-footer::before {
  display: none;
}

@media (max-width: 650px) {
  .site-footer {
    min-height: 44px;
    flex-wrap: nowrap;
    padding: 0 14px;
  }

  .site-footer > span:nth-child(2) {
    display: none;
  }
}

/* Shared final-state overrides for bilingual headings and icon actions. */
.bilingual-heading > .heading-english {
  display: inline;
  margin-left: .28em;
  color: #62544D;
  font-family: inherit;
  font-size: .48em;
  font-weight: 600;
  letter-spacing: .08em;
  vertical-align: baseline;
}

a.action-icon-only,
button.action-icon-only {
  display: inline-flex;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #62544D;
  cursor: pointer;
  text-decoration: none;
  transform: none;
}

a.action-icon-only:hover,
button.action-icon-only:hover {
  border: 0;
  background: #FFF9F6;
  color: #9A715A;
  text-decoration: none;
  transform: none;
}

a.action-icon-only.is-delete,
button.action-icon-only.is-delete {
  color: #c43758;
}

a.action-icon-only.is-delete:hover,
button.action-icon-only.is-delete:hover {
  background: #F3E4E7;
  color: #c43758;
}

.notification-screen .notification-item {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.notification-screen .notification-item:hover {
  border-color: #F3E4E7;
  background: #FFF9F6;
}

.notification-screen .notification-item.is-unread {
  border-color: #c43758;
  background: #F3E4E7;
  box-shadow: inset 4px 0 0 #c43758;
}

.notification-screen .notification-item.is-unread .notification-item-icon {
  background: #F3E4E7;
  color: #c43758;
}

.notification-screen .notification-item.is-unread .notification-item-body strong {
  color: #c43758;
}

/* Unified site palette: pink for emphasis, coffee for actions, cream for surfaces. */
body,
button,
input,
textarea,
select {
  color: var(--body-text);
}

body.home-page {
  background:
    radial-gradient(circle at 8% 18%, rgb(243 228 231 / 28%), transparent 30rem),
    radial-gradient(circle at 92% 48%, rgb(233 240 227 / 55%), transparent 34rem),
    linear-gradient(180deg, var(--cream) 0%, var(--soft-pink) 52%, var(--cream) 100%);
  background-attachment: fixed;
}

.site-header {
  border-bottom-color: var(--soft-pink);
  background: rgb(255 249 246 / 97%);
}

.search-box,
.search-box kbd,
.form-input,
.form-card textarea,
.admin-author-filter input,
.admin-user-search input {
  border-color: var(--soft-pink);
  background: var(--cream);
}

.search-box:focus-within,
.form-input:focus,
.form-card textarea:focus,
.admin-author-filter input:focus,
.admin-user-search input:focus {
  border-color: var(--coffee-brown);
  box-shadow: 0 0 0 3px rgb(154 113 90 / 18%);
}

.button-primary,
.admin-approve-button {
  border-color: var(--coffee-brown);
  background: var(--coffee-brown);
  color: var(--cream);
  box-shadow: 0 4px 11px rgb(154 113 90 / 23%);
}

.button-primary:hover,
.admin-approve-button:hover {
  border-color: var(--body-text);
  background: var(--body-text);
  color: var(--cream);
}

.button-quiet:hover,
.header-account-dropdown a:hover,
.header-account-dropdown button:hover {
  background: var(--light-latte);
  color: var(--body-text);
}

.question-card,
.detail-card,
.form-card,
.answer-card,
.notification-item,
.admin-content-table,
.admin-table-scroll {
  border-color: var(--soft-pink);
  background-color: var(--cream);
}

.home-page .question-card {
  border-color: var(--light-latte);
  background: var(--cream);
}

.home-page .question-card:hover {
  border-color: var(--coffee-brown);
}

.home-page .category-card {
  border-color: var(--primary-pink);
  background: linear-gradient(145deg, var(--cream) 0%, var(--soft-pink) 100%);
}

.home-page .category-card .category-button,
.home-page .feed-theme-filter .admin-multi-filter-options label {
  color: var(--body-text);
}

.welcome-copy,
.welcome-notice,
.form-result p,
.admin-content-table th,
.admin-content-table td,
.admin-multi-filter-options label,
.no-answers,
.empty-state,
.notification-empty {
  color: var(--body-text);
}

.section-kicker {
  color: var(--primary-pink);
}

.home-page .category-card .category-button:hover,
.home-page .category-card .category-button.is-active {
  background: var(--soft-pink);
  color: var(--primary-pink);
}

.approval-notice {
  border-color: var(--coffee-brown);
  background: var(--light-latte);
  color: var(--body-text);
}

.account-saved,
.form-result {
  border-color: #B7CBB7;
  background: #E5EEE4;
  color: #405642;
}

.form-error,
.notification-screen .notification-item.is-unread {
  border-color: var(--primary-pink);
  background: var(--soft-pink);
  color: var(--primary-pink);
}

.home-page .question-card.is-pending,
.home-page .question-card.is-unapproved,
.detail-page .detail-card.is-pending,
.detail-page .answer-card.is-pending,
.detail-page .answer-card.is-unapproved,
.admin-pending-card.is-pending {
  border-color: var(--coffee-brown);
  background: var(--light-latte);
  box-shadow: inset 4px 0 0 var(--coffee-brown);
}

.home-page .question-card.is-rejected,
.detail-page .detail-card.is-rejected,
.detail-page .answer-card.is-rejected {
  border-color: var(--primary-pink);
  background: var(--soft-pink);
  box-shadow: inset 4px 0 0 var(--primary-pink);
}

.pending-answer-notice,
.answer-status.is-pending {
  color: var(--body-text);
}

.answer-status.is-pending {
  background: var(--light-latte);
}

.answer-status.is-rejected {
  background: var(--soft-pink);
  color: var(--primary-pink);
}

.site-footer {
  border-top-color: var(--soft-pink);
  background: linear-gradient(110deg, var(--soft-pink) 0%, var(--cream) 52%, var(--light-latte) 100%);
  color: var(--body-text);
}

.detail-page .detail-card.is-approved {
  border-color: var(--light-latte);
  background: var(--cream);
  box-shadow: none;
}

.detail-page .answer-card.is-approved {
  border-color: var(--coffee-brown);
  background: var(--light-latte);
  box-shadow: inset 4px 0 0 var(--coffee-brown);
}

.detail-page .detail-card.is-pending,
.detail-page .answer-card.is-pending,
.detail-page .answer-card.is-unapproved {
  border-color: var(--body-text);
  background: var(--body-text);
  color: var(--cream);
  box-shadow: inset 4px 0 0 var(--primary-pink);
}

.detail-page .detail-card.is-pending .detail-body,
.detail-page .answer-card.is-pending [data-answer-content],
.detail-page .detail-card.is-pending .author-name,
.detail-page .answer-card.is-pending .author-name,
.detail-page .detail-card.is-pending time,
.detail-page .answer-card.is-pending time,
.detail-page .detail-card.is-pending .pending-answer-notice {
  color: var(--cream);
}

.detail-page .detail-card.is-pending .answer-status,
.detail-page .answer-card.is-pending .answer-status {
  background: var(--soft-pink);
  color: var(--primary-pink);
}

.detail-page .detail-card.is-pending .action-icon-only,
.detail-page .answer-card.is-pending .action-icon-only {
  color: var(--cream);
}

.detail-page .detail-card.is-pending .action-icon-only.is-delete,
.detail-page .answer-card.is-pending .action-icon-only.is-delete {
  color: var(--primary-pink);
}

.site-header .brand-mark,
.site-footer .brand-mark {
  background: var(--logo-coffee);
  box-shadow: 0 4px 9px rgb(168 116 88 / 28%);
}

.site-header .header-actions > .button-primary {
  border-color: var(--button-coffee);
  background: var(--button-coffee);
  box-shadow: 0 4px 11px rgb(111 78 61 / 26%);
}

.site-header .header-actions > .button-primary:hover {
  border-color: var(--dark-coffee-accent);
  background: var(--dark-coffee-accent);
}

.home-page .bubble-front {
  background: var(--hero-coffee);
  box-shadow: 0 14px 24px rgb(111 78 61 / 24%);
}

.home-page .welcome h1 span,
.site-header .header-user,
.vote-arrow,
.answer-vote-icon {
  color: var(--dark-coffee-accent);
}

/* Admin list controls */
.admin-table-screen .admin-author-filter,
.admin-table-screen .admin-author-filter input {
  background: #fff;
}

.admin-content-table .admin-table-item-actions {
  flex-flow: row nowrap;
  white-space: nowrap;
}

.admin-content-table .admin-table-item-actions > form,
.admin-content-table .admin-table-item-actions > a {
  flex: 0 0 auto;
}

/* Header account menu */
.header-account-dropdown {
  border-color: #F3E4E7;
  background: #FFF9F6;
  box-shadow: 0 8px 24px rgb(111 78 61 / 16%);
}

.header-account-dropdown a,
.header-account-dropdown button,
.header-account-dropdown a:hover,
.header-account-dropdown button:hover {
  color: var(--dark-coffee-accent);
}

.header-account-dropdown a:hover,
.header-account-dropdown button:hover {
  background: var(--light-latte);
}

/* Match the question text used on the detail page. */
.home-page .question-title,
.home-page .question-title .question-open {
  color: var(--body-text);
}

/* Table headers */
.admin-content-table thead th,
table thead th {
  border-bottom-color: rgb(169 95 115 / 24%);
  background: linear-gradient(
    110deg,
    var(--soft-pink) 0%,
    var(--cream) 48%,
    var(--light-latte) 100%
  );
  color: var(--primary-pink);
  box-shadow: inset 0 -1px 0 rgb(154 113 90 / 16%);
  font-weight: 800;
}

/* Keep filtered answer results at the same width as the full list. */
.detail-page .answers-section,
.detail-page .answer-list,
.detail-page .answer-card {
  width: 100%;
  min-width: 0;
}

.detail-page .answer-list {
  max-width: 100%;
}

/* A general user's own pending answer uses a quiet neutral treatment. */
.detail-page .answer-card.is-own-user-pending {
  border-color: #737873;
  background: #858a85;
  color: #fff;
  box-shadow: inset 4px 0 0 #737873;
}

.detail-page .answer-card.is-own-user-pending [data-answer-content],
.detail-page .answer-card.is-own-user-pending .author-name,
.detail-page .answer-card.is-own-user-pending time {
  color: #fff;
}

.detail-page .answer-card.is-own-user-pending .answer-status {
  background: #dfe2df;
  color: #62544D;
}

.detail-page .answer-card.is-own-user-pending .action-icon-only.is-delete,
.detail-page .answer-card.is-own-user-pending .action-icon-only.is-delete:hover {
  color: #fff;
}

.admin-pending-card[id^="pending-answer-"] {
  scroll-margin-top: 180px;
}

.admin-pending-card.is-review-target {
  animation: pending-review-glow 1.8s ease-out 1;
}

@keyframes pending-review-glow {
  0%,
  38% {
    filter: brightness(1.08);
    box-shadow:
      inset 4px 0 0 var(--primary-pink),
      0 0 0 5px rgb(169 95 115 / 24%),
      0 0 28px rgb(154 113 90 / 48%);
  }

  100% {
    filter: brightness(1);
    box-shadow: inset 4px 0 0 var(--coffee-brown);
  }
}

/* Site-wide validation popup */
.cute-validation-popup {
  position: fixed;
  z-index: 1000;
  display: flex;
  max-width: min(360px, calc(100vw - 24px));
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgb(169 95 115 / 48%);
  border-radius: 10px;
  background: linear-gradient(135deg, #FFF9F6, #F3E4E7 82%);
  color: var(--primary-pink);
  box-shadow: 0 8px 22px rgb(98 84 77 / 18%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cute-validation-popup::before {
  position: absolute;
  top: -7px;
  left: 18px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-top: 1px solid rgb(169 95 115 / 48%);
  border-left: 1px solid rgb(169 95 115 / 48%);
  background: #FFF9F6;
  content: "";
}

.cute-validation-popup.is-above::before {
  top: auto;
  bottom: -7px;
  transform: rotate(225deg);
}

.cute-validation-popup[hidden] {
  display: none;
}

.cute-validation-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-pink);
  color: var(--primary-pink);
  font-size: 14px;
  font-weight: 900;
}

.category-field.has-validation-error .form-label,
.form-card fieldset.has-validation-error legend {
  color: var(--primary-pink);
}

.form-input[aria-invalid="true"],
.form-card textarea[aria-invalid="true"],
.form-card select[aria-invalid="true"],
.admin-filter-select[aria-invalid="true"] {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgb(169 95 115 / 14%);
}

.category-field.has-validation-error .category-options:first-of-type {
  border-radius: 9px;
  box-shadow: 0 0 0 3px rgb(169 95 115 / 10%);
}

.form-card fieldset.has-validation-error:not(.category-field) {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgb(169 95 115 / 10%);
}

/* Keep the approval screen stable while tabs and filtered results change. */
.workflow-screen.admin-screen {
  width: min(900px, 100%);
  min-width: 0;
}

.admin-screen .admin-pending-section,
.admin-screen .admin-filter-row,
.admin-screen .admin-pending-list,
.admin-screen .admin-answer-group,
.admin-screen .admin-filter-empty {
  width: 100%;
  min-width: 0;
}

.admin-screen .admin-pending-list,
.admin-screen .admin-answer-group-list {
  grid-template-columns: minmax(0, 1fr);
}

.admin-screen .admin-filter-search,
.admin-screen .admin-filter-search input {
  background: var(--soft-pink);
}

.admin-screen .admin-filter-search {
  border-color: rgb(169 95 115 / 30%);
}

/* Notification types use recognizable, softly colored icons. */
.notification-item-icon.is-question-approved,
.notification-item-icon.is-answer-approved {
  background: var(--light-latte);
  color: var(--dark-coffee-accent);
}

.notification-item-icon.is-question-rejected,
.notification-item-icon.is-answer-rejected,
.notification-item-icon.is-question-deleted,
.notification-item-icon.is-answer-deleted {
  background: var(--soft-pink);
  color: var(--primary-pink);
}

.notification-item-icon.is-question-voted,
.notification-item-icon.is-answer-voted {
  background: #fff2c7;
  color: #9b6a18;
}

.notification-item-icon.is-new-question,
.notification-item-icon.is-new-answer,
.notification-item-icon.is-question-answered,
.notification-item-icon.is-question-edited,
.notification-item-icon.is-answer-edited {
  background: var(--light-latte);
  color: var(--dark-coffee-accent);
}

.detail-card[id^="question-"],
.detail-page .answer-card[id],
.admin-pending-card[id^="pending-question-"],
.admin-pending-card[id^="pending-answer-"] {
  scroll-margin-top: 180px;
}

.detail-card.is-notification-target,
.answer-card.is-notification-target {
  animation: notification-target-glow 1.8s ease-out 1;
}

@keyframes notification-target-glow {
  0%,
  38% {
    filter: brightness(1.04);
    box-shadow:
      0 0 0 5px rgb(169 95 115 / 24%),
      0 0 28px rgb(169 95 115 / 24%);
  }

  100% {
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-pending-card.is-review-target,
  .detail-card.is-notification-target,
  .answer-card.is-notification-target {
    animation-duration: .01ms;
  }
}

/* Final admin list overrides: keep search controls pink and actions compact. */
.admin-question-table-screen .admin-question-filters .admin-author-filter,
.admin-answer-table-screen .admin-question-filters .admin-author-filter {
  background: linear-gradient(135deg, var(--cream), var(--soft-pink));
}

.admin-question-table-screen .admin-question-filters .admin-author-filter input,
.admin-answer-table-screen .admin-question-filters .admin-author-filter input {
  background: transparent;
}

.admin-question-table td:last-child,
.admin-answer-table td:last-child {
  padding-right: 14px;
}

.admin-question-table .admin-table-item-actions,
.admin-answer-table .admin-table-item-actions {
  gap: 1px;
}

/* User management controls. */
.admin-users-screen .admin-new-account-button,
.admin-users-screen .admin-new-account-button:hover {
  border-color: var(--primary-pink);
  background: linear-gradient(135deg, var(--primary-pink), #A87458);
  color: var(--cream);
  box-shadow: 0 4px 11px rgb(169 95 115 / 28%);
}

.admin-users-screen .admin-user-search {
  border-color: var(--primary-pink);
  background: linear-gradient(135deg, var(--cream), var(--soft-pink));
}

.admin-users-screen .admin-user-search input,
.admin-users-screen .admin-user-search input:focus {
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.admin-user-table .admin-table-item-actions {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.admin-user-table .admin-table-item-actions > form {
  margin: 0;
}

.account-nationality-fieldset {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
}

.account-position-fieldset {
  margin: 0 0 15px;
  padding: 0;
  border: 0;
}

.account-position-fieldset .form-label {
  margin: 0 0 6px;
}

.account-position-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-position-options label {
  display: inline-flex;
  min-width: 92px;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cream);
  color: var(--body-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.account-position-options label:has(input:checked) {
  border-color: var(--primary-pink);
  background: var(--soft-pink);
  color: var(--primary-pink);
}

.account-position-options input {
  margin: 0;
  accent-color: var(--primary-pink);
}

.account-nationality-fieldset .form-label {
  margin: 0 0 6px;
}

.account-nationality-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-nationality-options label {
  display: inline-flex;
  min-width: 92px;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--soft-pink);
  border-radius: 9px;
  background: var(--cream);
  color: var(--body-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.account-nationality-options label:has(input:checked) {
  border-color: var(--primary-pink);
  background: var(--soft-pink);
  color: var(--primary-pink);
}

.account-nationality-options input {
  margin: 0;
  accent-color: var(--primary-pink);
}

/* Shared compact pagination and pink table headings. */
.pagination-ellipsis {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  color: var(--body-text);
  font-size: 12px;
  font-weight: 700;
}

.admin-content-table thead th,
table thead th {
  border-bottom-color: #d9b9c1;
  background: linear-gradient(180deg, #f7ecee 0%, #ead3d9 100%);
  color: var(--dark-coffee-accent);
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 -1px 0 rgb(113 81 75 / 8%);
}

/* Match the submission search to the admin question/answer search fields. */
.admin-content-table thead .admin-table-sort,
table thead .admin-table-sort {
  color: var(--dark-coffee-accent);
}

.admin-content-table thead .admin-table-sort:hover,
table thead .admin-table-sort:hover {
  color: #6F4E3D;
}

.my-submissions-screen .my-submission-search {
  border-color: var(--primary-pink);
  background: linear-gradient(135deg, var(--cream), var(--soft-pink));
}

.my-submissions-screen .my-submission-search input,
.my-submissions-screen .my-submission-search input:focus {
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

/* Admin master category management */
.workflow-screen.admin-category-screen {
  width: min(1180px, calc(100vw - 48px));
  max-width: 1180px;
}

.admin-category-screen .admin-pending-summary {
  margin-bottom: 16px;
}

.admin-category-screen .admin-pending-section {
  padding: 16px;
  border: 1px solid var(--soft-pink);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 0 8px 22px rgb(98 84 77 / 9%);
}

.master-category-create-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 110px auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgb(169 95 115 / 24%);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--soft-pink), var(--cream));
}

.master-work-category-create-form {
  grid-template-columns: minmax(180px, .75fr) minmax(220px, 1fr) 100px auto;
}

.master-category-create-form label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--body-text);
  font-size: 11px;
  font-weight: 700;
}

.master-category-create-form input,
.master-category-create-form select,
.master-category-input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--soft-pink);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--body-text);
  font: inherit;
  font-size: 12px;
}

.master-category-create-form input:focus,
.master-category-create-form select:focus,
.master-category-input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgb(169 95 115 / 12%);
}

.master-category-create-form .button {
  min-height: 36px;
  padding: 7px 17px;
}

.master-category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.master-category-search {
  width: min(420px, 100%);
}

.master-category-search input {
  width: 100%;
}

.master-category-batch-save {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--dark-coffee-accent);
  border-radius: 8px;
  background: var(--dark-coffee-accent);
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.master-category-batch-save:hover {
  background: var(--button-coffee);
}

.master-category-table th,
.master-category-table td {
  vertical-align: middle;
}

.master-category-table th:last-child,
.master-category-table td:last-child {
  text-align: center;
}

.master-category-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
}

.master-category-sort::after {
  color: var(--coffee-brown);
  content: "↕";
  font-size: 11px;
}

.master-category-table th[aria-sort="ascending"] .master-category-sort::after {
  content: "↑";
}

.master-category-table th[aria-sort="descending"] .master-category-sort::after {
  content: "↓";
}

.master-category-sort:hover {
  color: var(--dark-coffee-accent);
}

.interview-category-table th:nth-child(1),
.interview-category-table td:nth-child(1) {
  width: 48%;
}

.interview-category-table th:nth-child(2),
.interview-category-table td:nth-child(2) {
  width: 24%;
}

.interview-category-table th:nth-child(3),
.interview-category-table td:nth-child(3) {
  width: 18%;
}

.interview-category-table th:nth-child(4),
.interview-category-table td:nth-child(4) {
  width: 10%;
}

.work-category-table th:nth-child(1),
.work-category-table td:nth-child(1) {
  width: 22%;
}

.work-category-table th:nth-child(2),
.work-category-table td:nth-child(2) {
  width: 26%;
}

.work-category-table th:nth-child(3),
.work-category-table td:nth-child(3) {
  width: 10%;
}

.work-category-table th:nth-child(4),
.work-category-table td:nth-child(4) {
  width: 22%;
}

.work-category-table th:nth-child(5),
.work-category-table td:nth-child(5) {
  width: 12%;
}

.work-category-table th:nth-child(6),
.work-category-table td:nth-child(6) {
  width: 8%;
}

.master-category-order {
  max-width: 82px;
}

.master-category-type-badge,
.master-category-usage-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft-pink);
  color: var(--primary-pink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.work-category-table tr.is-parent-category td {
  background: rgb(243 228 231 / 28%);
}

.work-category-table td small {
  display: block;
  margin-top: 3px;
  color: var(--body-text);
  font-size: 10px;
}

.master-category-actions {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
}

.master-category-actions form {
  margin: 0;
}

.master-category-actions .action-icon-only {
  width: 30px;
  height: 30px;
}

.master-category-order-warning {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--primary-pink);
  border-radius: 9px;
  background: var(--soft-pink);
  color: var(--primary-pink);
  font-size: 12px;
  font-weight: 700;
}

.master-category-table tr.has-order-conflict td {
  background: rgb(243 228 231 / 48%);
}

.master-category-table tr.has-order-conflict .master-category-order {
  border-color: var(--primary-pink);
}

.master-order-conflict-label {
  display: block;
  margin-top: 2px;
  color: var(--primary-pink);
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .workflow-screen.admin-category-screen {
    width: min(100%, calc(100vw - 24px));
  }

  .master-category-create-form,
  .master-work-category-create-form {
    grid-template-columns: 1fr;
  }

  .master-category-create-form .button {
    justify-self: end;
  }

  .master-category-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .master-category-search {
    width: 100%;
  }

  .master-category-batch-save {
    align-self: flex-end;
  }

  .master-category-table {
    min-width: 720px;
  }

  .admin-category-screen .admin-table-scroll {
    overflow-x: auto;
  }
}

/* Account operation hub opened from the header nickname. */
.header-user-menu-link {
  padding: 4px 2px;
  border-radius: 8px;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.header-user-menu-link:hover {
  background: var(--soft-pink);
  color: var(--primary-pink);
}

.account-operation-screen {
  width: min(880px, calc(100% - 24px));
  margin: 22px auto 0;
}

.account-operation-shell {
  overflow: hidden;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgb(196 55 88 / 28%);
  border-radius: 19px;
  background: rgb(243 228 231 / 48%);
  box-shadow: 0 10px 28px rgb(98 84 77 / 9%);
}

.account-operation-profile {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgb(196 55 88 / 24%);
  border-radius: 15px 15px 0 0;
  border-bottom: 0;
  background: var(--cream);
}

.account-operation-avatar {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-pink);
  color: var(--dark-coffee-accent);
}

.account-operation-avatar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-operation-profile h1 {
  margin: 0 0 5px;
  color: var(--dark-coffee-accent);
  font-size: 17px;
}

.account-operation-profile p {
  margin: 0;
  color: var(--primary-pink);
  font-size: 12px;
}

.account-operation-menu {
  border-right: 1px solid rgb(196 55 88 / 24%);
  border-left: 1px solid rgb(196 55 88 / 24%);
  background: var(--cream);
}

.account-operation-featured,
.account-operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-inline: 14px;
}

.account-operation-featured {
  padding-top: 22px;
}

.account-operation-grid {
  padding-top: 10px;
  padding-bottom: 22px;
}

.account-operation-item {
  position: relative;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgb(243 228 231 / 58%);
  color: var(--dark-coffee-accent);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.account-operation-item:hover {
  transform: translateY(-2px);
  border-color: rgb(196 55 88 / 30%);
  background: var(--soft-pink);
  box-shadow: 0 7px 16px rgb(98 84 77 / 10%);
}

.account-operation-icon {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--primary-pink);
}

.account-operation-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-operation-count {
  position: absolute;
  top: 9px;
  right: 11px;
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-pink);
  color: var(--cream);
  font-size: 10px;
  font-weight: 800;
}

.account-operation-logout {
  margin: 0;
  padding: 14px;
  border: 1px solid rgb(196 55 88 / 24%);
  border-top-color: var(--soft-pink);
  border-radius: 0 0 15px 15px;
  background: var(--cream);
}

.account-operation-logout button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 2px;
  border: 0;
  background: transparent;
  color: var(--primary-pink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.account-operation-logout button:hover {
  color: var(--dark-coffee-accent);
}

.account-operation-logout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 600px) {
  .account-operation-screen {
    width: min(100%, calc(100vw - 20px));
  }

  .account-operation-shell {
    padding: 9px;
  }

  .account-operation-featured,
  .account-operation-grid {
    grid-template-columns: 1fr;
  }

  .account-operation-featured {
    padding-top: 14px;
  }

  .account-operation-grid {
    padding: 14px 10px;
  }

  .account-operation-item {
    min-height: 66px;
  }
}

/* Site-wide compact vertical rhythm: halve top/bottom spacing only. */
.site-header {
  height: 46px;
}

body {
  padding-bottom: 36px;
}

.site-footer {
  min-height: 36px;
}

@media (max-width: 650px) {
  .site-footer {
    min-height: 36px;
  }
}

.welcome {
  margin-top: 10px;
  padding-block: 3px;
}

.welcome h1 {
  margin-block: 7px 4px;
}

.content-layout {
  margin-top: 14px;
}

.section-heading {
  margin-bottom: 7px;
}

.feed-toolbar {
  margin-bottom: 5px;
}

.question-card {
  padding-block: 8px 7px;
}

.question-tags {
  margin-block: -1px 4px;
}

.question-card .question-meta {
  margin-top: 3px;
}

.question-pagination {
  margin-top: 7px;
}

.category-card {
  padding-block: 3px;
}

.workflow-screen {
  margin-top: 13px;
}

.back-link {
  margin-bottom: 6px;
  padding-block: 3px;
}

.admin-page-heading {
  margin-bottom: 6px;
}

.admin-page-heading h1 {
  margin-block: 3px 2px;
}

.admin-sticky-header {
  top: 46px;
  padding-block: 4px 5px;
}

.admin-pending-summary,
.admin-page-tabs,
.admin-question-filters,
.admin-filter-row {
  margin-bottom: 5px;
}

.admin-summary-link {
  min-height: 56px;
}

.approval-demo-notice {
  margin-bottom: 10px;
  padding-block: 5px;
}

.admin-pending-section + .admin-pending-section {
  margin-top: 11px;
}

.admin-section-heading {
  margin-bottom: 5px;
}

.admin-content-table th,
.admin-content-table td {
  padding-block: 4px;
}

.admin-table-top-actions {
  margin-block: -1px 3px;
}

.detail-card {
  padding-block: 11px 8px;
}

.confirm-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 1px solid rgb(154 113 90 / 24%);
  border-radius: 20px;
  background: var(--cream);
  color: var(--body-text);
  box-shadow: 0 22px 70px rgb(52 35 28 / 30%);
}

.confirm-dialog::backdrop {
  background: rgb(58 43 37 / 48%);
  backdrop-filter: blur(3px);
}

.confirm-dialog-card {
  padding: 25px 27px 22px;
  text-align: center;
}

.confirm-dialog h2 {
  margin: 0 0 9px;
  color: var(--dark-coffee-accent);
  font-size: 18px;
}

.confirm-dialog p {
  margin: 0;
  color: var(--body-text);
  line-height: 1.7;
  white-space: pre-line;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 21px;
}

.confirm-dialog-actions button {
  min-width: 116px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.confirm-dialog-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 13px rgb(98 84 77 / 16%);
}

.confirm-dialog-actions button:focus-visible {
  outline: 3px solid rgb(196 55 88 / 32%);
  outline-offset: 2px;
}

.confirm-dialog-cancel {
  border-color: #dfc7ba !important;
  background: #f5ebe5;
  color: var(--dark-coffee-accent);
}

.confirm-dialog-accept {
  background: linear-gradient(135deg, var(--primary-pink), var(--coffee-brown));
  color: #fff;
}

.admin-answer-table-screen .admin-question-filters {
  display: block;
}

.admin-answer-filter-selects,
.admin-answer-filter-searches {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-answer-filter-selects {
  margin-bottom: 7px;
}

.admin-answer-filter-searches .admin-author-filter {
  flex: 1 1 180px;
}

.admin-answer-filter-searches .admin-answer-text-filter {
  flex-basis: 220px;
}

.admin-answer-filter-searches .admin-filter-clear {
  flex: 0 0 auto;
  padding: 7px 3px;
}

.detail-card-header {
  margin-bottom: 8px;
}

.detail-body {
  margin-top: 9px;
  padding-block: 8px;
}

.detail-actions {
  padding-top: 6px;
}

.answers-section {
  margin-top: 10px;
}

.answers-heading {
  margin-bottom: 5px;
}

.answer-card {
  padding-block: 7px;
}

.answer-card > p,
.answer-card.is-edit-pending > p {
  margin-block: 5px;
}

.no-answers {
  padding-block: 12px;
}

.form-card,
.auth-card {
  padding-block: 11px;
}

.form-card > h1,
.form-card h2 {
  margin-block: 4px 3px;
}

.form-result {
  margin-top: 10px;
  padding-block: 10px;
}

.form-result h2 {
  margin-block: 5px 4px;
}

.form-result p {
  margin-bottom: 7px;
}

.answer-feedback-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.answer-helpful,
.answer-admin-note-toggle {
  display: inline-flex;
  min-width: 38px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 6px;
  border: 1px solid #F3E4E7;
  border-radius: 8px;
  background: #FFF9F6;
  color: #9A715A;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
}

.answer-helpful:hover,
.answer-helpful.is-voted,
.answer-admin-note-toggle:hover,
.answer-admin-note-toggle[aria-expanded="true"] {
  border-color: #c43758;
  background: #F3E4E7;
  color: #c43758;
}

.answer-helpful .answer-vote-icon {
  font-size: 13px;
}

.answer-admin-note-toggle {
  min-width: 30px;
  width: 30px;
  padding: 0;
}

.answer-admin-note-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.answer-admin-note {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid #F3E4E7;
  border-left: 3px solid #9A715A;
  border-radius: 8px;
  background: #FFF9F6;
  color: #62544D;
}

.answer-admin-note > strong {
  display: block;
  color: #9A715A;
  font-size: 12px;
}

.answer-admin-note > p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.answer-admin-note > time {
  display: block;
  color: #81736B;
  font-size: 10px;
  text-align: right;
}

.answer-admin-note-form {
  width: 100%;
  margin: 10px 0;
}

.answer-admin-note-form[hidden] {
  display: none;
}

.answer-admin-note-form > label {
  display: block;
  margin-bottom: 5px;
  color: #62544D;
  font-size: 12px;
  font-weight: 700;
}

.answer-admin-note-form > textarea {
  width: 100%;
  min-height: 76px;
  padding: 9px 10px;
  border: 1px solid #E5D4CC;
  border-radius: 8px;
  background: #FFFDFC;
  color: #3F3530;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.answer-admin-note-form > textarea:focus {
  border-color: #9A715A;
  outline: 2px solid rgb(154 113 90 / 15%);
}

.answer-admin-note-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 7px;
}

.answer-admin-note-form-actions .button {
  min-height: 32px;
  padding: 0 11px;
  font-size: 11px;
}

.form-error,
.account-saved {
  margin-bottom: 7px;
  padding-block: 4px;
}

.form-intro {
  margin-bottom: 9px;
}

.form-label {
  margin-bottom: 3px;
}

.form-input {
  min-height: 38px;
  padding-block: 4px;
}

.auth-password-label {
  margin-top: 7px;
}

.auth-submit {
  margin-top: 9px;
}

.form-card textarea {
  padding-block: 5px;
}

.field-hint {
  margin-top: 4px;
}

.category-field {
  margin-top: 9px;
}

.work-category-standalone {
  padding-top: 5px;
}

.approval-notice {
  margin-top: 8px;
  padding-block: 5px;
}

.form-actions {
  margin-top: 8px;
  padding-top: 7px;
}

.answering-question {
  margin-block: 5px 9px;
  padding-block: 5px;
}

.account-details {
  margin-top: 7px;
  padding-block: 3px;
}

.account-details > div {
  padding-block: 5px;
}

.account-form > .account-email-label {
  margin-top: 5px;
}

.account-form > .account-password-heading,
.user-email-preference-heading {
  margin-top: 11px;
}

.notification-page-heading {
  margin-block: 3px 5px;
}

.notification-item {
  padding-block: 6px;
}

.notification-empty,
.empty-state {
  padding-block: 17px;
}

.admin-category-screen .admin-pending-summary {
  margin-bottom: 8px;
}

.admin-category-screen .admin-pending-section {
  padding-block: 8px;
}

.master-category-create-form {
  margin-bottom: 7px;
  padding-block: 6px;
}

.account-operation-screen {
  margin-top: 11px;
}

.account-operation-shell {
  margin-top: 6px;
  padding-block: 7px;
}

.account-operation-profile,
.account-operation-item,
.account-operation-logout {
  padding-block: 7px;
}

.account-operation-featured {
  padding-top: 11px;
}

.account-operation-grid {
  padding-block: 11px;
}

.email-preference-fieldset {
  margin-block: 9px 5px;
  padding-block: 8px;
}

.email-preference-fieldset > label {
  min-height: 32px;
  padding-block: 4px;
}

/* The answer list uses one content column: a question row followed by answer rows. */
.admin-answer-table thead th:nth-child(1),
.admin-answer-table tbody td:nth-child(1) {
  width: 58%;
}

.admin-answer-table thead th:nth-child(2),
.admin-answer-table tbody td:nth-child(2) {
  width: 11%;
}

.admin-answer-table thead th:nth-child(3),
.admin-answer-table tbody td:nth-child(3) {
  width: 10%;
}

.admin-answer-table thead th:nth-child(4),
.admin-answer-table tbody td:nth-child(4) {
  width: 12%;
  white-space: nowrap;
}

.admin-answer-table thead th:nth-child(5),
.admin-answer-table tbody td:nth-child(5) {
  width: 9%;
}

.admin-answer-content-heading > span:first-child {
  margin-right: 10px;
}

.admin-answer-content-sort-links {
  display: inline-flex;
  gap: 8px;
  font-size: 11px;
}

/* Keep the newly added code columns compact so content columns remain readable. */
.admin-question-table thead th:nth-child(1),
.admin-question-table tbody td:nth-child(1) {
  width: 10%;
}

.admin-question-table thead th:nth-child(2),
.admin-question-table tbody td:nth-child(2) {
  width: 40%;
}

.admin-question-table thead th:nth-child(3),
.admin-question-table tbody td:nth-child(3) {
  width: 12%;
}

.admin-question-table thead th:nth-child(4),
.admin-question-table tbody td:nth-child(4) {
  width: 10%;
}

.admin-question-table thead th:nth-child(5),
.admin-question-table tbody td:nth-child(5) {
  width: 7%;
}

.admin-question-table thead th:nth-child(6),
.admin-question-table tbody td:nth-child(6) {
  width: 11%;
}

.admin-question-table thead th:nth-child(7),
.admin-question-table tbody td:nth-child(7) {
  width: 10%;
}

.admin-answer-table thead th:nth-child(1),
.admin-answer-table tbody td:nth-child(1) {
  width: 10%;
}

.admin-answer-table thead th:nth-child(2),
.admin-answer-table tbody td:nth-child(2) {
  width: 42%;
}

.admin-answer-table thead th:nth-child(3),
.admin-answer-table tbody td:nth-child(3) {
  width: 14%;
}

.admin-answer-table thead th:nth-child(4),
.admin-answer-table tbody td:nth-child(4) {
  width: 11%;
}

.admin-answer-table thead th:nth-child(5),
.admin-answer-table tbody td:nth-child(5) {
  width: 13%;
}

.admin-answer-table thead th:nth-child(6),
.admin-answer-table tbody td:nth-child(6) {
  width: 10%;
}

.admin-content-table .admin-content-code {
  padding-inline: 5px;
  font-size: 10px;
  white-space: nowrap;
}

.admin-answer-content-sort-links .admin-table-sort {
  color: var(--dark-coffee-accent);
  font-weight: 700;
}

.admin-answer-content-sort-links .admin-table-sort.is-active,
.admin-answer-content-sort-links .admin-table-sort:hover {
  color: var(--primary-pink);
}

.admin-answer-content-cell {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.admin-answer-row-label {
  flex: 0 0 auto;
  color: var(--dark-coffee-accent);
  font-size: 11px;
  font-weight: 800;
}

/* Account invitation and email notification preferences. */
.invitation-registration-screen {
  width: min(860px, calc(100% - 24px));
}

.invitation-registration-form {
  display: grid;
  gap: 9px;
}

.invitation-invalid-card {
  display: grid;
  gap: 12px;
}

.invitation-invalid-card h2,
.invitation-invalid-card p {
  margin: 0;
}

.invitation-invalid-card .button {
  justify-self: start;
}

.email-preference-fieldset {
  display: grid;
  gap: 8px;
  margin: 18px 0 10px;
  padding: 15px;
  border: 1px solid #d9b9c1;
  border-radius: 13px;
  background: linear-gradient(180deg, #fffafa 0%, #f7ecee 100%);
}

.email-preference-fieldset legend {
  padding: 0 6px;
  color: var(--dark-coffee-accent);
  font-size: 15px;
  font-weight: 800;
}

.email-preference-fieldset legend span {
  margin-left: 5px;
  color: var(--secondary-text);
  font-size: 10px;
  letter-spacing: .08em;
}

.email-preference-fieldset > p {
  margin: 0 0 3px;
  color: var(--secondary-text);
  font-size: 12px;
}

.email-preference-fieldset > label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgb(255 255 255 / 68%);
  color: var(--body-text);
  font-size: 13px;
}

.email-preference-fieldset input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary-pink);
}

.email-preference-fieldset .is-required {
  background: #ead3d9;
  color: var(--dark-coffee-accent);
  font-weight: 700;
}

.email-preference-fieldset .is-required input {
  opacity: 1;
}

.email-preference-fieldset small {
  color: var(--primary-pink);
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .email-preference-fieldset > label {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .email-preference-fieldset small {
    grid-column: 2;
  }
}

.admin-answer-content-cell .admin-content-preview {
  min-width: 0;
  flex: 1 1 auto;
}

/* Ansur interview-practice branding and corporate account forms. */
.brand-mark {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 18px 10px 18px 10px;
  letter-spacing: -.08em;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: rgb(255 249 246 / 66%);
  content: "";
}

.brand-mark::before {
  top: 6px;
  left: 6px;
  transform: rotate(-45deg);
}

.brand-mark::after {
  right: 6px;
  bottom: 6px;
  transform: rotate(45deg);
}

.brand-mark .mark-q {
  transform: rotate(-10deg) translateY(1px);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark .mark-a {
  transform: rotate(10deg) translate(1px, -2px);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  opacity: .94;
}

.site-header .brand > span:last-child {
  color: var(--primary-pink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.site-header .header-role.is-admin {
  border: 1px solid #e6c96a;
  background: #fff1b8;
  color: #9a6800;
}

.site-header .header-role.is-user {
  border: 1px solid #a9cce5;
  background: #e3f1fa;
  color: #3979a6;
}

.site-footer .footer-brand > span.brand-mark:last-child {
  width: 46px;
  height: 27px;
  border-radius: 14px 8px 14px 8px;
  color: #fff;
}

.site-footer .footer-brand .mark-q {
  font-size: 18px;
}

.site-footer .footer-brand .mark-a {
  font-size: 11px;
}

.home-page .hero-brand-mark {
  position: absolute;
  top: 32px;
  left: 21px;
  width: 140px;
  height: 88px;
  border-radius: 46px 25px 46px 25px;
  color: #fff;
  background: var(--logo-coffee);
  box-shadow: 0 16px 30px rgb(111 78 61 / 25%);
}

.home-page .hero-brand-mark::before,
.home-page .hero-brand-mark::after {
  width: 17px;
  height: 4px;
}

.home-page .hero-brand-mark::before {
  top: 17px;
  left: 20px;
}

.home-page .hero-brand-mark::after {
  right: 20px;
  bottom: 17px;
}

.home-page .hero-brand-mark .mark-q {
  font-size: 56px;
}

.home-page .hero-brand-mark .mark-a {
  font-size: 32px;
}

.corporate-email-input {
  display: flex;
  min-height: 42px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
}

.corporate-email-input:focus-within {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgb(196 55 88 / 10%);
}

.corporate-email-input .form-input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.corporate-email-input > span {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  background: #ead3d9;
  color: var(--dark-coffee-accent);
  font: 13px Consolas, "Courier New", monospace;
  font-weight: 700;
  white-space: nowrap;
}

.account-form #account-email {
  border-color: #b7aaa4;
  background: #d8ceca;
  color: #4b302c;
  font-weight: 700;
}

.user-email-preference-heading {
  margin: 22px 0 8px;
  font-size: 17px;
}

.user-email-preference-details {
  margin-top: 0;
}

@media (max-width: 600px) {
  .site-header .brand > span:last-child {
    font-size: 12px;
  }

  .corporate-email-input > span {
    padding-inline: 8px;
    font-size: 11px;
  }
}

/* Keep newly added account controls on the same compact vertical rhythm. */
.email-preference-fieldset {
  margin-block: 9px 5px;
  padding-block: 8px;
}

.email-preference-fieldset > label {
  min-height: 32px;
  padding-block: 4px;
}

.user-email-preference-heading {
  margin-block: 11px 4px;
}

/* Admin answer list: compact, even headers and row-type color cues. */
.admin-answer-table thead tr {
  height: 42px;
}

.admin-answer-table thead th {
  height: 42px;
  padding-block: 0;
  vertical-align: middle;
  background: linear-gradient(180deg, #f5e7ea 0%, #ead3d9 100%);
}

.admin-answer-content-heading {
  vertical-align: middle;
}

.admin-answer-content-heading > .admin-answer-content-sort-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 0;
}

.admin-answer-table .admin-answer-question-row > td,
.admin-answer-table .admin-answer-question-row > th {
  border-top: 5px solid var(--cream);
  border-bottom-color: #dfbec7;
  background: #f4e3e7;
}

.admin-answer-table .admin-answer-question-row > td {
  vertical-align: middle;
}

.admin-answer-table .admin-answer-question-row > th {
  padding-block: 7px;
}

.admin-answer-table .admin-answer-answer-row > td {
  background: var(--cream);
}

.admin-answer-table .admin-answer-answer-row:hover > td {
  background: #fbf2f0;
}

.admin-answer-content-cell {
  display: block;
}

/* Keep the hero border close to its text and artwork. */
.home-page .welcome {
  min-height: 118px;
}

.home-page .welcome-art {
  height: 104px;
}

.home-page .hero-brand-mark {
  top: 8px;
}

.home-page .welcome {
  border-color: #D7A79C;
  background:
    radial-gradient(ellipse at 84% 18%, rgb(111 78 61 / 20%), transparent 29%),
    linear-gradient(110deg, #F8E8E9 0%, #EBC4C8 34%, #D5A397 68%, #C08D74 100%);
}

/* Invitation completion and password reset spacing. */
.account-invitation-result {
  margin-top: 0;
}

.account-invitation-result h2 {
  margin-bottom: 15px;
}

.password-reset-screen {
  max-width: 640px;
}

/* Keep category tags and author/date on one compact row. */
.home-page .question-card-topline {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.home-page .question-card-topline .question-tags {
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow: hidden;
  margin: 0;
}

.home-page .question-card-topline .question-submission-meta {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.auth-secondary-link {
  display: flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  padding: 10px 24px;
  border: 1px solid rgb(196 55 88 / 26%);
  border-radius: 999px;
  background: linear-gradient(135deg, #F8E8E9 0%, #F3E4E7 58%, #F0E4DC 100%);
  color: var(--dark-coffee-accent);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgb(154 113 90 / 12%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.auth-secondary-link:hover {
  transform: translateY(-1px);
  border-color: rgb(196 55 88 / 42%);
  box-shadow: 0 7px 16px rgb(154 113 90 / 18%);
}

.account-request-notice {
  margin-bottom: 10px;
}

.account-exists-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid rgb(196 55 88 / 30%);
  border-radius: 16px;
  background: var(--cream);
  color: var(--body-text);
  box-shadow: 0 18px 48px rgb(98 84 77 / 24%);
}

.account-exists-dialog::backdrop {
  background: rgb(55 39 35 / 48%);
  backdrop-filter: blur(2px);
}

.account-exists-dialog h2 {
  margin: 0 0 10px;
  color: var(--dark-coffee-accent);
  font-size: 19px;
}

.account-exists-dialog p {
  margin: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.account-exists-dialog .form-actions {
  margin-top: 20px;
  padding-top: 14px;
}

.account-request-result {
  margin-top: 0;
}

/* Final form-system overrides keep page-specific rules from shrinking controls. */
.form-card,
.auth-card {
  padding: 22px 24px;
}

.form-card > .form-intro {
  margin: 0 0 16px;
  line-height: 1.75;
}

.form-card form:not([data-admin-auto-filter]) :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not(.corporate-email-input > .form-input),
  select
),
.form-card.account-form > :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  select
) {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--soft-pink);
  border-radius: 9px;
  background-color: var(--cream);
  color: var(--body-text);
  font: inherit;
  font-size: 14px;
}

.form-card.account-form > .corporate-email-input > .form-input {
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
  border-radius: 0;
}

.form-card form:not([data-admin-auto-filter]) :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  select
):focus,
.form-card.account-form > :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  select
):focus,
.form-card form:not([data-admin-auto-filter]) textarea:focus {
  border-color: var(--coffee-brown);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(154 113 90 / 18%);
}

.form-card form:not([data-admin-auto-filter]) textarea {
  min-height: 160px;
  padding: 11px 12px;
  border: 1px solid var(--soft-pink);
  border-radius: 9px;
  background-color: var(--cream);
  color: var(--body-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.75;
}

.form-card form:not([data-admin-auto-filter]) > .form-label,
.form-card.account-form > .form-label {
  margin: 0 0 6px;
  color: var(--body-text);
  font-size: 13px;
  line-height: 1.5;
}

.form-card form:not([data-admin-auto-filter]) > .form-input,
.form-card.account-form > .form-input {
  margin: 0 0 15px;
}

.form-card form:not([data-admin-auto-filter]) > .form-label.auth-password-label,
.form-card.account-form > .form-label.auth-password-label {
  margin-top: 0;
}

.form-card form:not([data-admin-auto-filter]) > .field-hint {
  margin-top: 7px;
  margin-bottom: 14px;
  font-size: 11px;
}

.form-card form:not([data-admin-auto-filter]) > .category-field,
.form-card form:not([data-admin-auto-filter]) > .account-position-fieldset,
.form-card form:not([data-admin-auto-filter]) > .account-nationality-fieldset,
.form-card form:not([data-admin-auto-filter]) > .email-preference-fieldset,
.form-card.account-form > .account-position-fieldset,
.form-card.account-form > .account-nationality-fieldset,
.form-card.account-form > .email-preference-fieldset {
  margin-top: 16px;
}

.form-card form:not([data-admin-auto-filter]) > .approval-notice {
  margin-top: 16px;
  padding: 10px 12px;
}

.form-card form:not([data-admin-auto-filter]) > .form-actions {
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
}

.form-card form:not([data-admin-auto-filter]) > .auth-submit,
.form-card.account-form > .auth-submit {
  min-height: 44px;
  margin-top: 18px;
}

.form-card form:not([data-admin-auto-filter]) > button[type="submit"],
.form-card form:not([data-admin-auto-filter]) > .form-actions > button[type="submit"],
.form-card.account-form > button[type="submit"] {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
}

.master-category-create-form input:not([type="hidden"]),
.master-category-order {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--soft-pink);
  border-radius: 9px;
  background: var(--cream);
  color: var(--body-text);
  font: inherit;
  font-size: 13px;
}

.master-category-create-form input:not([type="hidden"]):focus,
.master-category-order:focus {
  border-color: var(--coffee-brown);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(154 113 90 / 16%);
}

@media (max-width: 600px) {
  .form-card,
  .auth-card {
    padding: 18px 16px;
  }

  .form-card form:not([data-admin-auto-filter]) > .form-actions {
    flex-wrap: wrap;
  }
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
[role="button"],
.auth-secondary-link,
.action-icon-only,
.pagination-direction,
.notification-read-all,
.category-clear-button,
.category-button,
.admin-table-reset-link,
.admin-summary-link,
.account-operation-item {
  border-radius: var(--button-border-radius) !important;
}
