:root {
  --bg: #fbfbfd;
  --ink: #101116;
  --muted: #626775;
  --faint: #9aa0ad;
  --line: #e7e9f0;
  --line-dark: #d9dce7;
  --surface: #ffffff;
  --soft: #f6f7fb;
  --coral: #ff5c4a;
  --pink: #ff6da8;
  --blue: #3979ff;
  --sky: #69d4ff;
  --mint: #24c99a;
  --green: #7adf85;
  --violet: #9a67ff;
  --yellow: #ffc64a;
  --shadow: 0 28px 80px rgba(32, 39, 61, 0.12);
  --soft-shadow: 0 16px 42px rgba(32, 39, 61, 0.09);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding-top: 98px;
}

.topbar {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  width: min(1500px, calc(100% - 24px));
  min-height: 72px;
  border: 1px solid rgba(231, 233, 240, 0.86);
  border-radius: 24px;
  padding: 0 18px 0 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 52px rgba(32, 39, 61, 0.12);
  backdrop-filter: blur(22px) saturate(1.08);
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 45%),
    url("./assets/talent-forge-brand.png") center / 152% auto no-repeat;
  box-shadow: 0 10px 28px rgba(255, 92, 74, 0.27);
  transform: rotate(-6deg);
}

.dialog-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 18px;
}

h1 {
  overflow: hidden;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tabs,
.post-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(231, 233, 240, 0.82);
  border-radius: 999px;
  padding: 4px;
  background: #f7f8fc;
}

.tab,
.post-nav-link,
.post-nav-current {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.tab svg {
  width: 21px;
  height: 21px;
  padding: 4px;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  stroke-width: 2.4;
  box-sizing: content-box;
}

.tab:nth-child(2) svg {
  background: linear-gradient(135deg, var(--blue), var(--sky));
}

.tab:nth-child(3) svg {
  background: linear-gradient(135deg, var(--mint), var(--violet));
}

.tab::after {
  display: none;
}

.tab.is-active,
.post-nav-current {
  color: #101116;
  background: white;
  box-shadow: 0 8px 20px rgba(32, 39, 61, 0.1);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.icon-button,
.avatar-button,
.auth-link {
  display: inline-grid;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.auth-link {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.icon-button.light {
  border: 1px solid var(--line);
  background: white;
}

.avatar-button {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(231, 233, 240, 0.9);
  border-radius: 16px;
  color: white;
  background:
    url("./assets/talent-forge-brand.png") center / 170% auto no-repeat,
    linear-gradient(135deg, #bcd7ff, var(--violet));
  font-size: 0;
  box-shadow: 0 12px 28px rgba(72, 88, 171, 0.16);
}

.avatar-button:hover,
.avatar-button[aria-expanded="true"] {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(72, 88, 171, 0.22);
}

.account-menu-wrap {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(32, 39, 61, 0.16);
}

.account-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: white;
  transform: rotate(45deg);
}

.account-menu-head {
  display: grid;
  gap: 3px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  padding: 10px 10px 12px;
}

.account-menu-head span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.account-menu-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.account-menu a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 12px;
  padding: 0 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.account-menu a:hover {
  background: #f7f8fc;
}

.activity-menu-wrap {
  position: relative;
}

.activity-button {
  position: relative;
  border: 1px solid var(--line);
  background: white;
}

.activity-button:hover,
.activity-button[aria-expanded="true"] {
  color: #d4412e;
  background: #fff7f5;
}

.activity-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  padding: 0 5px;
  color: white;
  background: var(--coral);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.activity-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(32, 39, 61, 0.16);
}

.activity-menu-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.activity-menu-head span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.activity-menu-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.activity-list {
  display: grid;
  max-height: 380px;
  overflow: auto;
  padding: 8px;
}

.activity-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  border-radius: 14px;
  padding: 10px;
}

.activity-item:hover {
  background: #f7f8fc;
}

.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--pink));
}

.activity-item strong,
.activity-empty strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.activity-item p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.activity-item span,
.activity-empty span {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 850;
}

.activity-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  text-align: center;
}

main {
  padding: 32px;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.answer-home {
  display: grid;
  grid-template-columns: minmax(420px, 560px) minmax(520px, 1fr);
  gap: 40px;
  align-items: start;
}

.post-page .topic-search-panel,
.post-page .topic-shelf {
  display: none;
}

.post-page .answer-home {
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  gap: 36px;
}

.topic-search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(360px, 0.66fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
}

.topic-search-panel.is-searching {
  border-radius: 22px;
  padding: 18px;
  background: rgba(251, 252, 255, 0.88);
}

.topic-search-panel h2 {
  margin-top: 4px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 950;
}

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

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

.topic-search-main .search-label {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.topic-search-main input {
  min-height: 58px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 850;
}

.topic-search-main .secondary-button,
.topic-search-main .ghost-button {
  min-height: 58px;
  border-radius: 18px;
  white-space: nowrap;
}

.composer-panel {
  position: sticky;
  top: 118px;
  min-width: 0;
}

.prompt-art {
  position: absolute;
  z-index: 3;
  right: 34px;
  top: 34px;
  width: 122px;
  height: 70px;
  pointer-events: none;
}

.photo-card {
  position: absolute;
  width: 52px;
  height: 48px;
  border: 3px solid white;
  border-bottom-width: 10px;
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(39, 45, 71, 0.18);
}

.photo-card.one {
  left: 0;
  top: 18px;
  background: url("./assets/idea-rain.png") center / cover no-repeat;
  transform: rotate(-12deg);
}

.photo-card.two {
  left: 36px;
  top: 4px;
  background: url("./assets/idea-lonely.png") center / cover no-repeat;
  transform: rotate(8deg);
}

.photo-card.three {
  left: 72px;
  top: 14px;
  background: url("./assets/idea-shotengai.png") center / cover no-repeat;
  transform: rotate(6deg);
}

.current-topic {
  position: relative;
  min-height: 226px;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  padding: 42px 34px 58px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.54) 42%, rgba(255, 255, 255, 0.08) 100%),
    radial-gradient(circle at 82% 10%, rgba(94, 211, 255, 0.72), transparent 30%),
    radial-gradient(circle at 4% 12%, rgba(255, 198, 74, 0.58), transparent 25%),
    linear-gradient(135deg, #ffe0b9 0%, #ff7c79 42%, #a6d9ff 100%);
  background-size: cover;
  background-position: center;
}

.post-page .current-topic {
  display: grid;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  padding: 0;
  background: white;
}

.post-page .current-topic::before,
.post-page .current-topic::after {
  display: none;
}

.topic-visual {
  min-height: 248px;
  aspect-ratio: 1280 / 670;
  background:
    linear-gradient(135deg, #ffe0b9 0%, #ff7c79 42%, #a6d9ff 100%);
  background-position: center;
  background-size: cover;
}

.topic-copy-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  width: 100%;
  min-height: 0;
  border-top: 1px solid var(--line);
  padding: 24px 28px 26px;
  background: white;
  box-shadow: none;
}

.post-page .current-topic .topic-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 0 12px;
  color: #20232d;
  background: #f4f6fb;
  font-size: 12px;
  font-weight: 950;
  box-shadow: none;
}

.post-page .current-topic h3 {
  max-width: min(100%, 720px);
  padding-right: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  color: #101116;
  text-shadow: none;
  text-wrap: balance;
}

.post-page .current-topic p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 12px;
  max-width: 720px;
  color: #343844;
  font-weight: 850;
  line-height: 1.72;
  text-shadow: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-page .topic-hero-tags {
  margin-top: 20px;
}

.topic-detail-trigger {
  min-height: 40px;
  margin-top: 18px;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 13px;
}

.post-page .prompt-art {
  right: 26px;
  top: 26px;
  transform: scale(0.86);
  transform-origin: top right;
}

.answer-page .app-shell {
  max-width: 1680px;
}

.answer-page main {
  padding-top: 38px;
}

.answer-page .topic-search-panel {
  display: grid;
}

.answer-page .topic-shelf {
  display: block;
}

.answer-page .composer-panel {
  display: grid;
  position: sticky;
  top: 104px;
  align-self: start;
}

.answer-page .current-topic {
  min-height: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: white;
  box-shadow: 0 18px 46px rgba(39, 45, 71, 0.08);
}

.answer-page .current-topic::before,
.answer-page .current-topic::after {
  display: none;
}

.answer-page .answer-form {
  border-radius: 0 0 24px 24px;
  box-shadow: 0 24px 70px rgba(39, 45, 71, 0.12);
}

.answer-page .answer-home {
  align-items: start;
}

.current-topic::before {
  content: "";
  position: absolute;
  inset: 24px auto auto 24px;
  width: 94px;
  height: 60px;
  border-radius: 22px 0 22px 0;
  background: white;
}

.current-topic::after {
  content: "";
  position: absolute;
  right: 52px;
  bottom: 34px;
  width: 120px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(12px);
}

.current-topic > * {
  position: relative;
  z-index: 1;
}

.topic-meta,
.card-topic,
.talent-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.current-topic .topic-meta {
  color: var(--ink);
  margin-bottom: 24px;
}

.current-topic h3 {
  max-width: min(100%, 520px);
  padding-right: 138px;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.16;
  letter-spacing: 0;
}

.current-topic p {
  max-width: 520px;
  margin-top: 16px;
  color: rgba(16, 17, 22, 0.68);
  font-size: 15px;
  line-height: 1.7;
}

.answer-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.post-page .answer-form {
  gap: 14px;
  padding: 20px;
}

.post-page textarea {
  min-height: 150px;
  font-size: 20px;
}

.post-page .signature-picker,
.post-page .seed-panel {
  padding-top: 14px;
}

.post-page .compact-disclosure {
  padding: 0;
}

.post-page .compact-disclosure[open] {
  padding: 0 14px 14px;
}

.post-page .signature-strip {
  display: none;
}

.answer-text-field {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(251, 252, 255, 0.9), rgba(255, 255, 255, 0.98)),
    white;
}

.answer-text-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.answer-text-field textarea {
  min-height: 240px;
  max-height: 520px;
  border: 0;
  border-radius: 16px;
  padding: 10px 2px 2px;
  background: transparent;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 750;
  box-shadow: none;
}

.answer-text-field textarea:focus {
  box-shadow: none;
}

.answer-text-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
}

.char-counter {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.char-counter.is-warning {
  color: #b97000;
}

.char-counter.is-danger {
  color: #c63828;
}

.brand {
  color: var(--ink);
  text-decoration: none;
}

.topic-create-page main {
  display: grid;
  gap: 26px;
}

.topic-create-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(260px, 0.38fr);
  gap: 24px;
  align-items: stretch;
  min-height: 214px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0.42) 100%),
    radial-gradient(circle at 15% 20%, rgba(255, 92, 74, 0.12), transparent 32%),
    radial-gradient(circle at 74% 18%, rgba(36, 201, 154, 0.16), transparent 30%),
    #fff;
  box-shadow: var(--soft-shadow);
}

.topic-create-hero > div:first-child {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 42px 38px;
}

.topic-create-hero h2 {
  max-width: 620px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.topic-create-hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 750;
}

.topic-create-hero-art {
  min-height: 214px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02)),
    url("./assets/topics-hero.png") center / cover no-repeat;
}

.topic-create-workspace {
  display: grid;
  grid-template-columns: minmax(420px, 0.68fr) minmax(320px, 0.32fr);
  gap: 26px;
  align-items: start;
}

.topic-create-form,
.topic-preview-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
}

.topic-create-form {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.form-section-head,
.preview-head,
.topic-create-actions,
.topic-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.form-section-head h3,
.preview-head h3 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topic-title-field input {
  min-height: 70px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
}

.topic-create-page textarea {
  min-height: 220px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.75;
}

.topic-create-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(240px, 0.64fr);
  gap: 16px;
}

.topic-image-drop {
  min-height: 148px;
  aspect-ratio: 1280 / 670;
  place-items: center;
  border: 1px dashed #cfd5e4;
  border-radius: 22px;
  padding: 24px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(57, 121, 255, 0.06), rgba(36, 201, 154, 0.08)),
    #fbfcff;
  text-align: center;
  cursor: pointer;
}

.topic-image-drop:hover {
  border-color: rgba(57, 121, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(57, 121, 255, 0.09), rgba(36, 201, 154, 0.1)),
    white;
}

.topic-image-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.topic-image-drop .drop-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: var(--blue);
  background: white;
  box-shadow: 0 12px 28px rgba(57, 121, 255, 0.14);
}

.topic-image-drop strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.topic-image-drop small {
  font-size: 12px;
  font-weight: 800;
}

.eyecatch-cropper {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: #fbfcff;
}

.cropper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cropper-head div {
  display: grid;
  gap: 3px;
}

.cropper-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cropper-head strong {
  font-size: 16px;
  font-weight: 950;
}

.crop-frame {
  position: relative;
  aspect-ratio: 1280 / 670;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background:
    linear-gradient(45deg, #f0f2f8 25%, transparent 25%),
    linear-gradient(-45deg, #f0f2f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f2f8 75%),
    linear-gradient(-45deg, transparent 75%, #f0f2f8 75%);
  background-color: #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.crop-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(16, 17, 22, 0.1);
  pointer-events: none;
}

.crop-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, object-position;
}

.crop-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.crop-controls input {
  padding: 0;
  accent-color: var(--coral);
}

.topic-helper-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.topic-helper-row .secondary-button.small {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: #103f31;
  border-color: rgba(36, 201, 154, 0.32);
  background: #ecfff8;
  font-size: 12px;
}

.topic-helper-row .muted-action {
  color: #687080;
  background: #fbfcff;
}

.title-counter,
.draft-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #687080;
}

.draft-status {
  color: #12815f;
}

.topic-create-actions {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.topic-preview-panel {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.topic-preview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}

.topic-preview-image {
  aspect-ratio: 1280 / 670;
  min-height: 0;
  background: url("./assets/topics-hero.png") center / cover no-repeat;
}

.topic-preview-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.topic-preview-body h4 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: 0;
}

.topic-preview-body p,
.preview-note p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 750;
}

.preview-note {
  display: grid;
  gap: 6px;
  border-radius: 18px;
  padding: 16px;
  background: #f7fbff;
}

.preview-note strong {
  font-size: 13px;
  font-weight: 950;
}

label {
  display: grid;
  gap: 8px;
}

label span,
.picker-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.idea-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--ink);
  background: white;
  outline: none;
}

textarea {
  min-height: 180px;
  resize: vertical;
  font-size: 21px;
  line-height: 1.55;
  font-weight: 750;
  letter-spacing: 0;
}

textarea::placeholder,
input::placeholder {
  color: #a9adba;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(57, 121, 255, 0.48);
  box-shadow: 0 0 0 6px rgba(57, 121, 255, 0.1);
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-field input {
  min-height: 46px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 750;
}

.tag-entry {
  gap: 10px;
}

.tag-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.tag-entry input {
  min-height: 52px;
  border-color: rgba(57, 121, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(238, 244, 255, 0.72), rgba(255, 255, 255, 0.96)),
    white;
  font-size: 15px;
  font-weight: 850;
}

.tag-chip-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.tag-chip-preview:empty {
  display: none;
}

.removable-tag {
  gap: 8px;
  cursor: pointer;
}

.removable-tag span {
  color: inherit;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  opacity: 0.62;
}

.removable-tag:hover span {
  opacity: 1;
}

.tool-button,
.ghost-button,
.secondary-button,
.primary-button,
.reaction-button,
.reaction-label,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 15px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.tool-button {
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 850;
}

.secondary-button {
  color: var(--ink);
  background: white;
  font-size: 13px;
  font-weight: 900;
}

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

.tool-button input {
  display: none;
}

.counter {
  margin-left: auto;
  color: var(--muted);
  font-weight: 850;
}

.file-status {
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview {
  position: relative;
  width: min(280px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcff;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
}

.upload-preview-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.upload-preview .icon-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 900;
}

.signature-picker {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.seed-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcff;
}

.compact-disclosure {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  background: #fbfcff;
}

.compact-disclosure summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.compact-disclosure summary::-webkit-details-marker {
  display: none;
}

.compact-disclosure summary::after {
  content: "+";
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
}

.compact-disclosure[open] {
  padding: 0 14px 14px;
}

.compact-disclosure[open] summary {
  padding-inline: 0;
}

.compact-disclosure[open] summary::after {
  content: "-";
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.type-chips,
.reaction-row,
.card-types,
.card-reactions,
.seed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seed-chip {
  min-height: 38px;
  border: 1px solid rgba(57, 121, 255, 0.18);
  border-radius: 999px;
  padding: 0 13px;
  color: #1f63df;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 900;
}

.seed-hint {
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.6;
}

.chip {
  min-height: 36px;
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 900;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(57, 121, 255, 0.18);
  border-radius: 999px;
  padding: 0 9px;
  color: #1f63df;
  background: rgba(238, 244, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.tag-pill:nth-child(4n + 1) {
  border-color: rgba(57, 121, 255, 0.22);
  color: #1f63df;
  background: #eef4ff;
}

.tag-pill:nth-child(4n + 2) {
  border-color: rgba(36, 201, 154, 0.26);
  color: #12815f;
  background: #ecfff8;
}

.tag-pill:nth-child(4n + 3) {
  border-color: rgba(255, 92, 74, 0.24);
  color: #d4412e;
  background: #fff0ed;
}

.tag-pill:nth-child(4n) {
  border-color: rgba(154, 103, 255, 0.24);
  color: #6d3fd2;
  background: #f2ebff;
}

.chip.is-active:nth-child(4n + 1) {
  color: #d4412e;
  border-color: rgba(255, 92, 74, 0.36);
  background: #ffe7e2;
}

.chip.is-active:nth-child(4n + 2) {
  color: #1f63df;
  border-color: rgba(57, 121, 255, 0.32);
  background: #e7efff;
}

.chip.is-active:nth-child(4n + 3) {
  color: #12866b;
  border-color: rgba(36, 201, 154, 0.32);
  background: #e1f8ef;
}

.chip.is-active:nth-child(4n) {
  color: #7946db;
  border-color: rgba(154, 103, 255, 0.32);
  background: #efe6ff;
}

.composer-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.primary-button {
  color: white;
  border: 0;
  background: linear-gradient(135deg, #11131b, #202332);
  font-weight: 950;
}

.post-button {
  min-width: 206px;
  min-height: 64px;
  border: 1px solid rgba(16, 17, 22, 0.92);
  border-radius: 18px;
  font-size: 18px;
  background: #11131b;
  box-shadow: 0 14px 30px rgba(16, 17, 22, 0.18);
}

.post-button:hover {
  background: #1b1e29;
  box-shadow: 0 16px 34px rgba(16, 17, 22, 0.22);
}

.ghost-button {
  color: var(--ink);
  background: white;
  font-weight: 900;
}

.ghost-button.small {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
}

.reaction-button {
  min-height: 52px;
  border-radius: 18px;
  color: var(--ink);
  background: white;
  font-size: 13px;
  font-weight: 900;
}

.reaction-label {
  min-height: 52px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 900;
}

.preview-reactions .reaction-label:nth-child(1) {
  color: #d4412e;
  background: #fff0ed;
}

.preview-reactions .reaction-label:nth-child(2) {
  color: #1f63df;
  background: #eef4ff;
}

.preview-reactions .reaction-label:nth-child(3) {
  color: #12866b;
  background: #edfbf5;
}

.reaction-button[data-key="spark"].is-active {
  color: #d4412e;
  background: #ffe7e2;
}

.reaction-button[data-key="steel"].is-active {
  color: #1f63df;
  background: #e7efff;
}

.reaction-button[data-key="iron"].is-active {
  color: #12866b;
  background: #e1f8ef;
}

button:hover,
.tool-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.signature-strip {
  display: grid;
  grid-template-columns: 1.1fr minmax(300px, 1fr);
  gap: 26px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signature-strip p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

.signature-score-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.signature-score-card div,
.score {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
}

.signature-score-card span,
.score span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
}

.signature-score-card strong,
.score strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.empty-signature {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-radius: 18px;
  background: #fbfcff;
  color: var(--muted);
}

.empty-signature strong {
  color: var(--ink);
  font-size: 20px;
}

.gallery-panel {
  min-width: 0;
}

.answer-page .gallery-panel {
  display: grid;
  gap: 18px;
}

.gallery-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-head h2,
.section-head h2 {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.post-page .gallery-head {
  margin-bottom: 16px;
}

.post-page .gallery-head h2 {
  font-size: clamp(28px, 2.5vw, 38px);
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.sort-control {
  display: grid;
  gap: 6px;
  min-width: 164px;
}

.sort-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.sort-control select {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 34px 0 13px;
  font-size: 13px;
  font-weight: 900;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 18px;
}

.post-page .tag-filter {
  max-height: 42px;
  overflow: hidden;
  margin: -4px 0 18px;
}

.tag-filter-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: #1f63df;
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.tag-filter-button:nth-child(4n + 1) {
  border-color: rgba(57, 121, 255, 0.18);
  background: #f7faff;
}

.tag-filter-button:nth-child(4n + 2) {
  border-color: rgba(36, 201, 154, 0.2);
  color: #12815f;
  background: #f4fffb;
}

.tag-filter-button:nth-child(4n + 3) {
  border-color: rgba(255, 92, 74, 0.2);
  color: #d4412e;
  background: #fff8f6;
}

.tag-filter-button:nth-child(4n) {
  border-color: rgba(154, 103, 255, 0.2);
  color: #6d3fd2;
  background: #faf7ff;
}

.tag-filter-button.is-active {
  border-color: rgba(255, 92, 74, 0.35);
  color: #d4412e;
  background: #fff0ed;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.idea-gallery {
  display: grid;
  gap: 18px;
}

.answer-card,
.idea-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.answer-card {
  min-height: 260px;
  padding: 16px;
}

.idea-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  min-height: 238px;
}

.answer-card.is-highlighted,
.idea-card.is-highlighted {
  border-color: rgba(255, 92, 74, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 92, 74, 0.12), var(--soft-shadow);
}

.answer-card:nth-child(6n + 1) {
  background: linear-gradient(180deg, #ffffff 0%, #fff1ee 100%);
}

.answer-card:nth-child(6n + 2) {
  margin-top: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f5ff 100%);
}

.answer-card:nth-child(6n + 3) {
  margin-top: 0;
  background: linear-gradient(180deg, #ffffff 0%, #edfff7 100%);
}

.answer-card:nth-child(6n + 4) {
  background: linear-gradient(180deg, #ffffff 0%, #f5efff 100%);
}

.answer-card:nth-child(6n + 5) {
  margin-top: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fff8de 100%);
}

.card-menu {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 950;
}

.card-delete,
.mini-delete {
  border: 1px solid rgba(198, 56, 40, 0.24);
  color: #c63828;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.card-delete {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
}

.card-visual {
  height: 150px;
  margin: -2px -2px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(135deg, #25344c, #8bd2ff);
}

.idea-card .card-visual {
  height: 100%;
  min-height: 238px;
  margin: 0;
  border-radius: 0;
}

.answer-card:nth-child(6n + 2) .card-visual {
  background:
    radial-gradient(circle at 46% 40%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(135deg, #9b7cff, #d8f0ff);
}

.answer-card:nth-child(6n + 3) .card-visual {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.75), transparent 17%),
    linear-gradient(135deg, #80dfb7, #dffbe8);
}

.answer-card:nth-child(6n + 4) .card-visual {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(135deg, #f5b65b, #ffe6a8);
}

.card-image {
  display: block;
  width: 100%;
  height: 172px;
  object-fit: cover;
  margin: -2px -2px 16px;
  border-radius: 18px;
}

.idea-card .card-image {
  height: 100%;
  min-height: 238px;
  margin: 0;
  border-radius: 0;
}

.idea-card .card-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.card-image-grid {
  position: relative;
  display: grid;
  height: 172px;
  gap: 6px;
  margin: -2px -2px 16px;
  overflow: hidden;
  border-radius: 18px;
}

.card-image-grid.count-2,
.card-image-grid.count-3,
.card-image-grid.count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-image-grid.count-3 img:first-child {
  grid-row: span 2;
}

.card-image-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.image-more {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-grid;
  min-width: 40px;
  min-height: 32px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(16, 17, 22, 0.72);
  font-size: 13px;
  font-weight: 950;
}

.card-topic {
  max-width: calc(100% - 44px);
}

.card-text {
  margin-top: 10px;
  white-space: pre-wrap;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.68;
  font-weight: 750;
  letter-spacing: 0;
}

.card-types {
  margin-top: 14px;
}

.card-types .chip {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.card-reactions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 17, 22, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.share-button {
  margin-left: auto;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.report-button {
  margin-left: 8px;
  color: var(--muted);
}

.turnstile-slot {
  min-width: 300px;
}

.profile-hero,
.profile-section,
.profile-login {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.profile-hero {
  overflow: hidden;
  margin-bottom: 24px;
}

.profile-cover {
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.5)),
    url("./assets/mypage-cover.png") center / cover no-repeat;
}

.profile-hero-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  align-items: end;
  padding: 0 28px 28px;
  margin-top: -44px;
}

.profile-avatar {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 5px solid white;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--blue));
  font-size: 26px;
  font-weight: 950;
  box-shadow: var(--soft-shadow);
}

.profile-heading h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 950;
}

.profile-email {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.profile-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcff;
}

.profile-setup-message {
  margin: -4px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.profile-main {
  display: grid;
  gap: 24px;
}

.mypage-layout {
  display: block;
}

.profile-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.profile-side {
  display: grid;
  position: sticky;
  top: 104px;
  gap: 24px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.profile-stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: white;
}

.profile-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.profile-section {
  padding: 24px;
}

.profile-ideas-section {
  min-width: 0;
}

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

.profile-answer-card .card-image {
  height: 190px;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-signature .empty-state {
  min-height: 120px;
}

.section-head.compact {
  margin-bottom: 16px;
}

.vote-list {
  display: grid;
  gap: 10px;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.vote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fbfcff;
}

.vote-item strong {
  font-size: 14px;
  font-weight: 950;
}

.vote-item p,
.vote-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fbfcff;
}

.notification-item strong {
  font-size: 14px;
  font-weight: 950;
}

.notification-item p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-item span {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 850;
}

.profile-login {
  max-width: 520px;
  margin: 80px auto;
  padding: 36px;
  text-align: center;
}

.profile-login h2 {
  font-size: 30px;
  font-weight: 950;
}

.profile-login p {
  margin: 10px 0 24px;
  color: var(--muted);
  font-weight: 800;
}

.mini-reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 8px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.mini-reaction:hover {
  background: rgba(16, 17, 22, 0.05);
}

.mini-reaction.is-disabled {
  cursor: default;
  opacity: 0.58;
}

.mini-reaction.is-disabled:hover {
  background: transparent;
}

.mini-reaction svg {
  width: 15px;
  height: 15px;
}

.mini-reaction.spark {
  color: var(--coral);
}

.mini-reaction.steel {
  color: var(--blue);
}

.mini-reaction.iron {
  color: var(--mint);
}

.topic-shelf {
  margin-top: 30px;
  padding-bottom: 8px;
}

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.shelf-head > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.topic-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.topic-search span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.topic-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.topic-filter-toggle {
  min-height: 44px;
  white-space: nowrap;
}

.topic-clear-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.topic-clear-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.topic-filter-toggle.is-active {
  border-color: rgba(57, 121, 255, 0.28);
  color: #1f63df;
  background: #eef4ff;
}

.topic-filter-panel {
  grid-column: 2;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fbfcff;
}

.topic-suggestion-panel {
  grid-column: 2;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(57, 121, 255, 0.14);
  border-radius: 18px;
  padding: 12px 14px 14px;
  background: white;
  box-shadow: 0 14px 36px rgba(39, 45, 71, 0.08);
}

.topic-suggestion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.topic-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.topic-filter-bar label {
  min-width: 0;
}

.topic-filter-bar select {
  min-height: 42px;
  border-radius: 15px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  font-size: 13px;
  font-weight: 850;
}

.topic-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.topic-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 22px;
  color: var(--muted);
  background: white;
  font-size: 14px;
  font-weight: 800;
}

.topics-browser {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.topics-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  background: white;
  box-shadow: var(--soft-shadow);
}

.topics-hero > div:first-child {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 24px 28px;
}

.topics-hero h2 {
  margin-top: 4px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  font-weight: 950;
}

.topics-hero p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 850;
}

.topics-hero .primary-button {
  margin-top: 18px;
}

.topics-hero-visual {
  min-height: 220px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    url("./assets/topics-hero.png") center / cover no-repeat;
}

.topics-browser {
  padding: 22px;
}

.topics-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
  gap: 12px;
  align-items: end;
}

.topics-toolbar input,
.topics-toolbar select {
  min-height: 48px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 850;
}

.topics-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.topics-count {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topics-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 20px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.topics-card-image {
  width: calc(100% + 40px);
  aspect-ratio: 1280 / 670;
  height: auto;
  margin: 0 -20px;
  object-fit: cover;
}

.topics-card-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.topics-card h3 {
  font-size: 23px;
  line-height: 1.28;
  font-weight: 950;
}

.topics-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.topics-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: end;
  justify-self: stretch;
  margin-top: auto;
}

.topics-card-actions .primary-button,
.topics-card-actions .ghost-button {
  min-height: 44px;
  border-radius: 15px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

.topic-detail-dialog {
  width: min(860px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  background: white;
  box-shadow: 0 34px 90px rgba(32, 39, 61, 0.26);
}

.topic-detail-dialog::backdrop {
  background: rgba(16, 17, 22, 0.34);
}

.topic-detail {
  display: grid;
  max-height: inherit;
  overflow: auto;
}

.topic-detail-image {
  width: 100%;
  aspect-ratio: 1280 / 670;
  object-fit: cover;
  background: #f4f6fb;
}

.topic-detail-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

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

.topic-detail h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  font-weight: 950;
}

.topic-detail p {
  white-space: pre-wrap;
  color: #343844;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.85;
}

.topic-detail-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.topic-button {
  position: relative;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  color: var(--ink);
  background: white;
  text-align: left;
}

.mini-delete {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
}

.topic-button.is-active {
  border-color: rgba(255, 92, 74, 0.5);
  background: #fff2ef;
}

.topic-title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.topic-tags,
.topic-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-tags {
  margin-top: 10px;
  padding-right: 58px;
}

.topic-hero-tags {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.topic-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 180px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.topic-image-field input {
  min-height: 54px;
  padding: 13px;
}

#evaluationDeck,
.talent-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--soft-shadow);
}

#evaluationDeck {
  min-height: 520px;
  padding: 24px;
}

.eval-card {
  max-width: 780px;
  margin: 0 auto;
}

.eval-progress {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.eval-card .answer-card {
  min-height: 300px;
}

.eval-card .answer-card:nth-child(n) {
  margin-top: 0;
}

.eval-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.talent-grid {
  display: grid;
  gap: 24px;
}

.talent-section {
  display: grid;
  gap: 14px;
}

.talent-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.talent-section-head h3 {
  font-size: 24px;
  font-weight: 950;
}

.talent-section-head p,
.talent-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.talent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.talent-card {
  padding: 20px;
}

.talent-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.talent-name {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.sparkline {
  display: flex;
  align-items: end;
  height: 54px;
  gap: 6px;
  margin: 10px 0 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
}

.spark-bar {
  flex: 1;
  min-width: 12px;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, var(--coral), var(--pink));
}

.signature-bars {
  display: grid;
  gap: 10px;
}

.sig-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.sig-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--blue), var(--violet));
}

.empty-state {
  display: grid;
  min-height: 250px;
  place-items: center;
  border: 1px dashed var(--line-dark);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

.empty-state.compact {
  min-height: 120px;
  border: 1px dashed var(--line-dark);
  border-radius: 18px;
  background: #fbfcff;
}

.inline-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  border-radius: 999px;
  padding: 0 14px;
  color: white;
  background: #11131b;
  text-decoration: none;
  font-weight: 900;
}

.dev-only {
  border-style: dashed;
  color: var(--muted);
  background: #fbfcff;
}

.identity-dialog {
  width: min(430px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 0;
  background: white;
  box-shadow: var(--shadow);
}

.identity-dialog::backdrop {
  background: rgba(16, 17, 22, 0.28);
}

.identity-dialog form {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.identity-dialog h2,
.identity-dialog p {
  text-align: center;
}

.identity-dialog p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.data-dialog {
  width: min(520px, calc(100% - 32px));
}

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

.import-button {
  cursor: pointer;
}

.import-button input {
  display: none;
}

.danger {
  color: #c63828;
  border-color: rgba(198, 56, 40, 0.24);
  background: #fff0ed;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: min(360px, calc(100% - 32px));
  border-radius: 16px;
  padding: 14px 16px;
  color: white;
  background: #11131b;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .app-shell {
    padding-top: 156px;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    padding: 14px;
  }

  .brand {
    justify-content: flex-start;
  }

  .tabs,
  .post-nav,
  .top-actions {
    justify-content: flex-start;
  }

  .tabs,
  .post-nav {
    max-width: 100%;
    overflow: auto;
  }

  main {
    padding: 22px;
  }

  .answer-home,
  .post-page .answer-home,
  .topic-search-panel,
  .signature-strip {
    grid-template-columns: 1fr;
  }

  .composer-panel {
    position: static;
  }

  .profile-hero-body {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .profile-form {
    grid-column: 1 / -1;
  }

  .profile-content-grid {
    grid-template-columns: 1fr;
  }

  .profile-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .topic-filter-panel,
  .topic-suggestion-panel {
    grid-column: 1;
  }

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

  .topic-list {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

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

  .topics-hero-visual {
    min-height: 190px;
  }

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

  .topic-create-hero,
  .topic-create-workspace {
    grid-template-columns: 1fr;
  }

  .topic-create-hero-art {
    min-height: 180px;
    order: -1;
  }

  .topic-preview-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding-top: 172px;
  }

  .topbar {
    top: 8px;
    width: calc(100% - 16px);
    border-radius: 20px;
  }

  h1 {
    font-size: 21px;
  }

  main {
    padding: 14px;
  }

  .tabs,
  .post-nav {
    justify-content: flex-start;
  }

  .top-actions {
    overflow: auto;
  }

  .current-topic {
    padding: 34px 24px 72px;
  }

  .current-topic h3 {
    font-size: 36px;
    padding-right: 0;
  }

  .profile-cover {
    min-height: 180px;
  }

  .profile-hero-body {
    margin-top: -34px;
    padding: 0 18px 20px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    font-size: 22px;
  }

  .prompt-art {
    display: none;
  }

  .answer-form {
    padding: 20px 16px;
  }

  textarea {
    min-height: 150px;
    font-size: 20px;
  }

  .composer-footer,
  .shelf-head,
  .signature-strip,
  .profile-stats,
  .profile-hero-body,
  .topics-hero,
  .topic-create-grid,
  .topic-form,
  .data-actions,
  .score-row,
  .signature-score-card,
  .talent-list,
  .profile-side,
  .profile-answer-grid,
  .answer-grid,
  .topics-grid,
  .topic-list {
    grid-template-columns: 1fr;
  }

  .topics-hero-visual {
    min-height: 150px;
  }

  .composer-tools,
  .composer-footer,
  .gallery-head,
  .section-head,
  .eval-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topic-search {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
  }

  .topic-search-main {
    grid-template-columns: 1fr;
  }

  .topic-search-row {
    grid-template-columns: 1fr;
  }

  .topic-filter-bar {
    grid-template-columns: 1fr;
  }

  .crop-controls {
    grid-template-columns: 1fr;
  }

  .topic-create-hero > div:first-child,
  .topic-create-form,
  .topic-preview-panel {
    padding: 18px;
  }

  .topic-create-hero h2 {
    font-size: 42px;
  }

  .topic-title-field input {
    min-height: 62px;
    font-size: 22px;
  }

  .form-section-head,
  .preview-head,
  .topic-create-actions,
  .topic-helper-row,
  .gallery-head,
  .gallery-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control {
    width: 100%;
  }

  .account-menu {
    right: auto;
    left: 0;
  }

  .account-menu::before {
    right: auto;
    left: 18px;
  }

  .activity-menu {
    right: auto;
    left: 0;
  }

  .post-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
