:root {
  --ink: #253044;
  --muted: #7a8190;
  --line: #ebe7f6;
  --paper: #ffffff;
  --wash: #fbf8ff;
  --purple: #5335C5;
  --purple-dark: #4628B8;
  --pink: #f84b87;
  --blue: #0f7ce7;
  --teal: #13a7a6;
  --choice-a: #ff4f73;
  --choice-a-dark: #e83d63;
  --choice-b: #159ce8;
  --choice-b-dark: #087fd0;
  --yellow: #ffc018;
  --danger: #d83a52;
  --success: #21a67a;
  --shadow: 0 16px 38px rgba(66, 48, 116, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fbf8ff;
  scrollbar-gutter: stable;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fbf8ff;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(229, 211, 255, 0.86), transparent 30%),
    radial-gradient(circle at 100% 8%, rgba(246, 214, 255, 0.74), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fbf8ff 42%, #f4edff 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

#app {
  position: relative;
  z-index: 1;
}

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

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 16px 100px;
}

.hero {
  position: relative;
  padding: 12px 0 18px;
  text-align: center;
}

.logo {
  width: min(280px, 72vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 10px rgba(157, 140, 159, 0.10));
}

.top-action {
  position: absolute;
  right: 8px;
  top: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(40, 33, 80, 0.12);
}

.top-action::before {
  content: "";
  position: absolute;
  inset: 11px 13px 10px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 8px 8px;
}

.top-action::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 8px;
  width: 8px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.tabs-shell {
  position: sticky;
  top: 0;
  z-index: 9;
  box-sizing: border-box;
  margin: 8px calc(50% - 50vw) 18px;
  padding-inline: max(8px, calc((100vw - 390px) / 2 + 8px));
  border-bottom: 1px solid rgba(157, 140, 159, 0.18);
  background: transparent;
  box-shadow: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.tabs {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 6px 8px 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-inline: 40px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-scroll-indicator {
  position: absolute;
  top: 0;
  bottom: 1px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  color: rgba(83, 53, 197, 0.72);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 140ms ease;
  pointer-events: none;
}

.tab-scroll-indicator.is-left {
  left: 0;
  justify-items: start;
  padding-left: 7px;
  background: linear-gradient(90deg, rgba(251, 248, 255, 1), rgba(251, 248, 255, 0.9) 48%, rgba(251, 248, 255, 0));
}

.tab-scroll-indicator.is-right {
  right: 0;
  justify-items: end;
  padding-right: 7px;
  background: linear-gradient(270deg, rgba(251, 248, 255, 1), rgba(251, 248, 255, 0.9) 48%, rgba(251, 248, 255, 0));
}

.tabs-shell.can-scroll-left .tab-scroll-indicator.is-left,
.tabs-shell.can-scroll-right .tab-scroll-indicator.is-right {
  opacity: 1;
}

.tabs-shell::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 78px;
  background:
    linear-gradient(180deg, rgba(251, 248, 255, 0.98), rgba(243, 232, 255, 0.98));
  border-bottom: 1px solid rgba(157, 140, 159, 0.14);
  box-shadow: 0 10px 20px rgba(157, 140, 159, 0.10);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

body.tabs-stuck .tabs-shell::before {
  opacity: 1;
}

body.tabs-stuck .tabs-shell {
  border-bottom-color: rgba(157, 140, 159, 0.24);
}

.tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 64px;
  border: 0;
  background: transparent;
  color: #3d414d;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 10px 12px;
  min-width: 64px;
  white-space: nowrap;
}

.tab.is-active {
  color: var(--purple);
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--purple);
}

.tab-icon {
  width: 24px;
  height: 24px;
  color: currentColor;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.tab-icon.is-image {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: currentColor;
  padding: 0;
  -webkit-mask: var(--tab-icon-url) center / contain no-repeat;
  mask: var(--tab-icon-url) center / contain no-repeat;
}

.tab-icon.is-image img {
  opacity: 0;
}

.tab[data-category="fashion"] {
  gap: 4px;
}

.tab[data-category="fashion"] .tab-icon.is-image {
  width: 38px;
  height: 38px;
  margin-bottom: -2px;
  -webkit-mask-size: 112% 112%;
  mask-size: 112% 112%;
}

.tab-icon svg,
.tab-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tab span:last-child,
.nav-button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab span:last-child {
  font-size: 10.5px;
  letter-spacing: 0;
}

.home-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: -6px 0 12px;
}

.sort-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 30px 5px 15px;
  border: 1px solid rgba(114, 118, 132, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 251, 0.96));
  color: #707583;
  font-size: 11px;
  font-weight: 850;
  box-shadow:
    0 10px 22px rgba(40, 34, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sort-control::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #5f6573;
  border-bottom: 2px solid #5f6573;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.sort-select {
  min-height: 24px;
  padding-left: 0;
  border: 0;
  background: transparent;
  color: #2f3545;
  font-size: 11px;
  font-weight: 900;
  outline: none;
  appearance: none;
}

.question-list {
  display: grid;
  gap: 16px;
  transition: opacity 160ms ease, transform 180ms ease;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 22px 0 8px;
  color: #9095a4;
  font-size: 11px;
  font-weight: 800;
}

.site-footer button,
.site-footer a {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 6px 2px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.question-list.is-switching {
  opacity: 0.7;
  transform: translateY(3px);
}

.question-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
  contain: content;
  transform: translateZ(0);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.question-card.is-highlighted {
  border-color: rgba(91, 47, 209, 0.32);
  box-shadow: 0 0 0 4px rgba(91, 47, 209, 0.14), var(--shadow);
}

.question-card.is-voting {
  opacity: 1;
}

.question-card.is-voting .choice {
  opacity: 1;
  filter: none;
}

.question-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.category-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--purple);
}

.category-mark svg,
.category-mark img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.question-meta {
  color: var(--purple);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 3px;
}

.question-title {
  margin: 0;
  color: #30384a;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
}

.option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin: 14px 0 16px;
  min-height: 0;
  min-width: 0;
}

.choice {
  min-height: 58px;
  border: 2px solid var(--choice-border);
  border-radius: 13px;
  color: var(--choice-text);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.45;
  padding: 13px 16px;
  box-shadow: 0 8px 14px rgba(44, 37, 95, 0.14);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: filter 160ms ease, box-shadow 160ms ease;
}

.choice:active {
  transform: none;
  filter: none;
}

.choice-a {
  background: linear-gradient(135deg, var(--choice-a), var(--choice-a-dark));
}

.choice-b {
  background: linear-gradient(135deg, var(--choice-b), var(--choice-b-dark));
}

.question-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8b8f9b;
  font-weight: 800;
  font-size: 14px;
}

.vote-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #969bab;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.vote-count strong {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.vote-unit {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.link-button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--purple);
  font-weight: 900;
  min-height: auto;
  padding: 0 0 0 12px;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: auto;
}

.link-button::before {
  content: "";
  position: absolute;
  inset: -12px 0 -12px -12px;
}

.hint-text {
  color: #8d90a0;
  font-size: 12px;
  font-weight: 900;
}

.result-option-row {
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 0;
  margin-bottom: 16px;
}

.combined-result {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.result-choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 13px 0 14px;
  background: transparent;
  color: #6f7a8a;
  box-shadow: none;
  transition: color 180ms ease;
}

.result-choice::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  border-radius: 999px;
  background: rgba(224, 229, 236, 0.58);
}

.result-choice::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--result-width, 0%);
  height: 8px;
  border-radius: 999px;
  background: #aeb7c4;
  box-shadow: 0 5px 12px rgba(44, 37, 95, 0.08);
  transform: scaleX(var(--result-scale, 1));
  transform-origin: left center;
  transition: background 180ms ease;
}

.result-option-label {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  color: currentColor;
}

.result-option-name {
  display: block;
  min-width: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: color 220ms ease, opacity 240ms ease;
}

.result-vote-count {
  display: inline;
  padding: 0;
  color: currentColor;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.result-percent {
  position: relative;
  min-width: 48px;
  color: currentColor;
  font-family: "Avenir Next", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.result-option-label.is-a {
  justify-self: stretch;
}

.result-option-label.is-b {
  justify-self: stretch;
  text-align: left;
}

.question-card.is-result-entering .combined-result {
  opacity: 0;
  transform: translateY(0);
}

.question-card.is-result-visible .combined-result {
  opacity: 1;
  transform: translateY(0);
}

.result-option-row[data-picked="A"] .result-choice-b,
.result-option-row[data-picked="B"] .result-choice-a {
  color: #6f7a8a;
}

.result-choice.is-picked {
  color: var(--category-accent-dark);
}

.result-choice.is-picked .result-vote-count {
  opacity: 0.82;
}

.result-choice.is-picked::after {
  background: linear-gradient(90deg, var(--category-accent), var(--category-accent-dark));
  box-shadow: 0 6px 14px rgba(44, 37, 95, 0.12);
}

.bottom-nav {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(calc(100vw - 36px), 360px);
  max-width: 360px;
  box-sizing: border-box;
  min-height: 69px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 14px 9px;
  border-radius: 28px;
  background: #f3eef8;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(157, 140, 159, 0.16);
  backdrop-filter: blur(8px);
  overflow: visible;
  transform: translateX(-50%) translateZ(0);
}

.nav-button {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #85848d;
  font-size: 10.5px;
  font-weight: 900;
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
}

.nav-button[data-nav="home"] {
  grid-column: 1;
}

.nav-button[data-nav="profile"] {
  grid-column: 3;
}

.nav-button.is-active {
  color: var(--purple);
}

.nav-primary {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 6px;
  width: 150px;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  color: var(--purple);
  box-shadow: none;
  font-size: 12px;
  gap: 1px;
  transform: translate(-50%, -26px);
}

.nav-button svg {
  width: 22px;
  height: 22px;
}

.nav-primary svg {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  box-shadow: 0 12px 22px rgba(83, 53, 197, 0.30);
}

.panel {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel + .panel {
  margin-top: 16px;
}

.panel h2,
.panel h3 {
  margin: 0 0 14px;
}

.field {
  position: relative;
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.field label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  color: #4d5260;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.25;
  transition: color 160ms ease;
}

.field:focus-within label {
  color: var(--purple);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(157, 140, 159, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 248, 252, 0.96));
  color: var(--ink);
  padding: 13px 15px;
  outline: none;
  box-shadow:
    0 8px 18px rgba(40, 34, 66, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f6573 50%),
    linear-gradient(135deg, #5f6573 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 248, 252, 0.96));
  background-position:
    calc(100% - 23px) 52%,
    calc(100% - 15px) 52%,
    0 0;
  background-repeat: no-repeat;
  background-size: 8px 8px, 8px 8px, 100% 100%;
  font-weight: 850;
}

.category-select:invalid {
  color: #8c91a1;
  font-weight: 650;
}

.category-select option[value=""] {
  font-weight: 650;
}

.textarea {
  min-height: 84px;
  resize: vertical;
}

.post-panel .question-textarea {
  min-height: 118px;
  line-height: 1.65;
}

.post-panel {
  margin-bottom: 88px;
}

.option-fieldset {
  gap: 10px;
}

.option-input-a,
.option-input-b {
  border-color: rgba(157, 140, 159, 0.18);
}

.option-input-a {
  border-color: rgba(228, 96, 143, 0.22);
  background: linear-gradient(180deg, rgba(255, 247, 250, 0.98), rgba(252, 235, 242, 0.94));
}

.option-input-b {
  border-color: rgba(63, 127, 211, 0.22);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(232, 242, 255, 0.94));
}

.legal-panel {
  margin-top: 6px;
}

.legal-eyebrow {
  margin: 0 0 6px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.legal-updated {
  margin: -4px 0 18px;
  color: #8d92a2;
  font-size: 12px;
  font-weight: 800;
}

.legal-body {
  display: grid;
  gap: 14px;
}

.legal-body h2 {
  margin: 8px 0 -6px;
  color: #31394c;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
}

.legal-body p {
  margin: 0;
  color: #5d6473;
  font-size: 13px;
  line-height: 1.85;
  font-weight: 650;
}

.legal-body a {
  color: var(--purple);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-actions {
  margin-top: 22px;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--purple);
  background-color: #fff;
  box-shadow:
    0 0 0 4px rgba(157, 140, 159, 0.12),
    0 12px 24px rgba(66, 48, 116, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.primary-btn,
.secondary-btn,
.success-btn,
.warning-btn,
.info-btn,
.danger-btn {
  min-height: 48px;
  border-radius: 10px;
  border: 0;
  padding: 12px 16px;
  font-weight: 850;
}

.post-submit {
  min-height: 44px;
  margin-top: 10px;
  margin-bottom: 24px;
  padding: 8px 28px;
  border-radius: 9px;
}

.primary-btn {
  color: #fff;
  background: var(--purple);
}

.secondary-btn {
  color: var(--purple);
  background: #f0eaff;
}

.success-btn {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
}

.warning-btn {
  border: 1px solid #d7dde8;
  color: #475569;
  background: #f8fafc;
}

.info-btn {
  color: #0d67bd;
  background: #e8f3ff;
}

.danger-btn {
  color: #fff;
  background: var(--danger);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-hero {
  text-align: center;
  margin: 6px 0 16px;
}

.detail-title {
  margin: 8px 0 12px;
  font-size: 24px;
  line-height: 1.45;
}

.result-bars {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.bar {
  overflow: hidden;
  background: #f1edf8;
  border-radius: 12px;
}

.bar-fill {
  min-width: 9%;
  padding: 10px 12px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.bar-a {
  background: linear-gradient(135deg, var(--choice-a), var(--choice-a-dark));
}

.bar-b {
  background: linear-gradient(135deg, var(--choice-b), var(--choice-b-dark));
}

.mini-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) 2fr 42px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #596070;
}

.mini-track {
  height: 10px;
  border-radius: 999px;
  background: #eeeaf7;
  overflow: hidden;
}

.mini-track span {
  display: block;
  height: 100%;
  background: var(--purple);
}

.admin-layout {
  display: grid;
  gap: 16px;
}

.admin-page-menu {
  position: fixed;
  z-index: 18;
  top: 14px;
  right: 16px;
}

.admin-menu-btn {
  min-height: 34px;
  border: 1px solid rgba(117, 122, 137, 0.16);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.9);
  color: #6f7481;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(44, 37, 95, 0.08);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat {
  padding: 14px;
  border-radius: 12px;
  background: #f7f3ff;
}

.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.admin-workspace {
  overflow: hidden;
  padding: 16px;
  background: #f7f4ff;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #687083;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-tab.is-active {
  color: var(--purple);
  background: #fff;
  box-shadow: 0 10px 22px rgba(66, 48, 116, 0.1);
}

.admin-tab strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: inherit;
  background: rgba(157, 140, 159, 0.12);
  font-size: 12px;
}

.admin-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.admin-section-head h3,
.admin-subsection-head h4 {
  margin: 0;
}

.admin-section-head p {
  margin: 0;
  color: #737b8d;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.admin-subsection-head {
  margin: 24px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-card-list {
  display: grid;
  gap: 14px;
}

.admin-card-list.is-muted-list {
  gap: 10px;
}

.admin-item {
  border: 1px solid rgba(157, 140, 159, 0.18);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(43, 37, 88, 0.08);
}

.admin-alert-item {
  border-left: 0;
}

.admin-alert-item.is-resolved {
  border-left-color: #cfd4df;
  background: #fbfbfd;
}

.admin-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-item h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.admin-item p {
  margin: 0 0 12px;
}

.admin-choice-row {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  color: #4f586b;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
}

.admin-choice-row span {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f2ff;
}

.admin-choice-row strong {
  color: #222d42;
  font-size: 13px;
}

.admin-id,
.admin-date {
  color: #8b92a3;
  font-size: 11px;
  font-weight: 800;
}

.risk-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f2f6;
  color: #677083;
  font-size: 12px;
  font-weight: 900;
}

.risk-dots {
  display: inline-flex;
  gap: 3px;
}

.risk-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d9dde6;
}

.risk-meter strong {
  font-size: 12px;
}

.risk-safe {
  color: #0c6c4d;
  background: #e8f8f1;
}

.risk-safe .risk-dots span.is-active {
  background: #23a26d;
}

.risk-warning {
  color: #8a5b00;
  background: #fff4d8;
}

.risk-warning .risk-dots span.is-active {
  background: #f0a516;
}

.risk-danger {
  color: #c83d52;
  background: #ffecef;
}

.risk-danger .risk-dots span.is-active {
  background: #da4056;
}

.admin-empty {
  padding: 18px;
  border: 1px dashed rgba(157, 140, 159, 0.24);
  border-radius: 14px;
  color: #737b8d;
  background: #fbf9ff;
  font-size: 14px;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0eaff;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.status-pill.muted {
  color: #747b8a;
  background: #f1f2f6;
}

.status-pill.danger {
  color: var(--danger);
  background: #ffecef;
}

.status-pill.success {
  color: #0c6c4d;
  background: #e8f8f1;
}

.status-pill.status-public {
  color: var(--purple);
  background: #f0eaff;
}

.status-pill.status-hidden {
  color: #9b5b00;
  background: #fff2d5;
}

.status-pill.status-deleted {
  color: var(--danger);
  background: #ffecef;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 480px);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: rgba(37, 48, 68, 0.94);
  box-shadow: 0 14px 28px rgba(35, 25, 74, 0.18);
}

.hidden {
  display: none !important;
}

@media (min-width: 860px) {
  .tabs-shell {
    margin-inline: -8px;
    padding-inline: 0;
  }

  .tabs {
    justify-content: center;
    overflow-x: visible;
  }

  .tab-scroll-indicator {
    display: none;
  }

  .shell {
    width: min(100%, 1120px);
    padding-inline: 28px;
  }

  .hero {
    padding-top: 20px;
  }

  .main-desktop {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
  }

  .question-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    width: min(calc(100vw - 48px), 680px);
    max-width: 680px;
  }
}
