/* 최소 CSS. Claude Design 결과가 오면 교체한다. */
:root { --ink: #111; --muted: #666; --line: #ddd; --accent: #1a1a1a; --bg: #fafaf7; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
.top { display: flex; gap: 1rem; align-items: baseline; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.tagline { color: var(--muted); font-size: .9rem; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.foot { max-width: 44rem; margin: 0 auto; padding: 1rem 1.25rem 3rem; color: var(--muted); font-size: .8rem; }
h1 { font-size: 1.6rem; line-height: 1.3; }
.sub, .hint { color: var(--muted); }
textarea { width: 100%; padding: .75rem; font: inherit; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.primary { display: inline-block; padding: .7rem 1.2rem; font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; }
.error { color: #b00020; }
.definition { border: 1px solid var(--line); background: #fff; padding: 1rem; border-radius: 8px; }
.definition h2 { margin: 0 0 .25rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.elements { list-style: none; margin: .9rem 0 0; padding: .75rem 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: .45rem .9rem; }
.element { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); }
.element .lamp { width: 10px; height: 10px; border-radius: 50%; background: #d9d9d4; box-shadow: inset 0 0 0 1px #c7c7c0; transition: background .4s, box-shadow .4s; }
.element.partial .lamp { background: #f2c14e; box-shadow: 0 0 0 2px rgba(242,193,78,.25); }
.element.partial { color: #7a5b00; }
.element.confirmed .lamp { background: #2f9e6b; box-shadow: 0 0 6px 1px rgba(47,158,107,.55); }
.element.confirmed { color: var(--ink); font-weight: 600; animation: lit .6s ease-out; }
.element.count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes lit { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .element.confirmed { animation: none; } }
.progress { color: var(--muted); font-size: .85rem; }
.prev-answer { color: var(--muted); font-size: .95rem; }
.prev-answer .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; margin-right: .5rem; }
.investigator { font-size: 1.15rem; padding: 1rem 0; }
.speaker-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.investigator .speaker { font-size: .8rem; color: var(--muted); font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.avatar.small { width: 24px; height: 24px; margin-top: .15rem; }
.history { margin: .5rem 0 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.history summary { cursor: pointer; padding: .6rem .9rem; font-size: .85rem; color: var(--muted); }
.history ol { list-style: none; margin: 0; padding: 0 .9rem .6rem; display: grid; gap: .8rem; }
.history .turn { display: flex; gap: .6rem; font-size: .92rem; }
.history .turn.founder { padding-left: 2.1rem; color: var(--ink-2, #333); }
.history .who { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.history .investigator { font-size: .92rem; padding: 0; }
.answer { display: grid; gap: .5rem; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: flex; }
.thinking { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.thinking .elapsed { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: var(--line); } }
.answer[data-loading] textarea, .answer[data-loading] button, .intake[data-loading] textarea, .intake[data-loading] button { opacity: .5; }
.intake .thinking { margin-top: .75rem; }
.paywall { border: 1px solid var(--line); background: #fff; padding: 1.25rem; border-radius: 8px; }
.paywall .later { margin-left: 1rem; color: var(--muted); font-size: .85rem; }
.result { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; }
.feedback {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.feedback fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
}
.feedback legend {
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.feedback label {
  font-size: 0.95rem;
}
.feedback-done {
  color: var(--muted);
}
