:root {
  color-scheme: light;
  --background: #f4f3ec;
  --surface: #fffefa;
  --ink: #19362c;
  --body: #496357;
  --green: #234d3d;
  --green-hover: #173c30;
  --line: #d9ded3;
  --muted: #ecefe7;
  --accent: #f5bd97;
  font-family: Pretendard, "Noto Sans CJK KR", "Noto Sans CJK JP", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: inherit; }
button, textarea, input { font: inherit; }
button, .file-label, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #67947e; outline-offset: 3px; }
.shell { width: min(100% - 56px, 1120px); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.12rem; font-weight: 820; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; position: relative; background: var(--green); flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border: 1.5px solid #f5fbef; width: 12px; height: 9px; border-radius: 4px 4px 4px 1px; left: 7px; top: 9px; }
.brand-mark::after { left: 14px; top: 15px; background: var(--green); }
nav, .lang { display: flex; align-items: center; gap: 24px; }
nav a, .lang a { text-decoration: none; font-size: .875rem; font-weight: 650; }
nav a:hover, footer a:hover { text-decoration: underline; }
.lang { gap: 3px; border: 1px solid var(--line); border-radius: 99px; padding: 4px; white-space: nowrap; }
.lang a { padding: 6px 10px; border-radius: 99px; color: var(--body); }
.lang a:hover, .lang [aria-current] { background: var(--green); color: #fff; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 205px; align-items: center; min-height: 250px; gap: 32px; padding: 36px 0; }
.eyebrow { font-weight: 720; font-size: .92rem; color: var(--body); margin: 0 0 14px; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.08; letter-spacing: -.055em; margin: 0; font-weight: 820; overflow-wrap: anywhere; }
.lead { margin: 18px 0 0; font-size: 1.06rem; line-height: 1.65; color: var(--body); max-width: 44rem; word-break: keep-all; overflow-wrap: anywhere; }
.hero-art { position: relative; height: 155px; }
.bubble { display: grid; place-items: center; font-family: Georgia, serif; position: absolute; width: 95px; height: 68px; border-radius: 26px; }
.bubble::after { content: ""; position: absolute; width: 17px; height: 18px; background: inherit; bottom: -5px; border-radius: 3px; }
.bubble-one { background: var(--green); color: #fffefa; left: 10px; top: 15px; transform: rotate(-13deg); font-size: 2.5rem; }
.bubble-one::after { left: 22px; transform: rotate(25deg); }
.bubble-two { background: var(--accent); right: 10px; bottom: 23px; transform: rotate(12deg); font-size: 2.5rem; font-style: italic; }
.bubble-two::after { right: 23px; transform: rotate(-25deg); }
.twinkle { color: #895326; position: absolute; right: 9px; top: 4px; font-size: 1.55rem; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 16px; }
.card { min-width: 0; padding: clamp(18px, 3vw, 29px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 19px; }
.card-head h2 { font-size: 1.25rem; font-weight: 790; margin: 0; }
.quiet { border: 1px solid var(--line); border-radius: 99px; background: var(--surface); padding: 7px 12px; color: var(--green); font-weight: 720; font-size: .875rem; }
.quiet:hover { background: var(--muted); }
.mode { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--muted); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.mode button { padding: 8px 5px; border: 1px solid transparent; border-radius: 8px; color: var(--body); background: transparent; font-weight: 680; font-size: .9375rem; }
.mode [aria-pressed="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: 0 1px 2px #19362c12; }
textarea, .context input { width: 100%; display: block; color: var(--ink); border: 1px solid #cdd7ca; background: #fcfcf7; border-radius: 12px; padding: 13px; line-height: 1.55; }
textarea { resize: vertical; min-height: 144px; }
textarea::placeholder, .context input::placeholder { color: #607268; opacity: 1; }
.count { margin: 5px 1px 12px; text-align: right; color: var(--body); font-size: .81rem; font-variant-numeric: tabular-nums; }
.context { margin: 14px 0; }
.context label { display: block; margin-bottom: 6px; font-weight: 720; font-size: .92rem; }
.context label span { color: var(--body); font-weight: 450; margin-inline-start: 4px; }
.detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; border: 0; margin: 0 0 14px; min-inline-size: 0; }
.detail legend { padding: 0; margin-bottom: 6px; font-size: .92rem; font-weight: 720; }
.detail label { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.detail label:has(:checked) { border-color: var(--green); background: var(--muted); }
.detail input { margin: 4px 0 0; flex: none; accent-color: var(--green); }
.detail strong, .detail small { display: block; }
.detail strong { font-size: .9rem; }
.detail small { font-size: .8125rem; color: var(--body); }
.consent { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; line-height: 1.45; color: var(--body); width: fit-content; cursor: pointer; }
.consent input { margin: 2px 0 0; accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.actions { display: flex; align-items: stretch; gap: 8px; margin-top: 15px; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 0; border-radius: 12px; background: var(--green); color: #fff; padding: 13px 16px; min-height: 48px; text-align: center; text-decoration: none; font-weight: 740; }
.actions .primary { flex: 1; }
.primary:hover { background: var(--green-hover); }
.primary:disabled { opacity: .78; }
.spark { display: grid; place-items: center; width: 34px; height: 34px; color: #75451f; background: #fae8d7; border-radius: 10px; }
.result-card { background: #edf0e7; display: flex; flex-direction: column; }
.feedback { display: grid; justify-items: center; place-content: center; text-align: center; min-height: 270px; flex: 1; padding: 20px 12px; background: #f6f7f0; border: 1px dashed #bdcbbc; border-radius: 17px; }
.message-mark { position: relative; border: 2px solid #426b56; border-radius: 13px 13px 13px 4px; width: 51px; height: 36px; margin-bottom: 12px; color: #426b56; font-size: 1.6rem; line-height: 1; }
.feedback h3 { margin: 8px 0; font-size: 1.05rem; }
.feedback p, .privacy-line { font-size: .9rem; line-height: 1.6; color: var(--body); margin: 0; }
.analysis-wait { width: min(100%, 24rem); margin-top: 20px; }
.analysis-track { height: 6px; border-radius: 99px; overflow: hidden; background: #dce6da; }
.analysis-track::before { content: ""; display: block; width: 34%; height: 100%; border-radius: inherit; background: #426b56; animation: travel 2s ease-in-out infinite alternate; }
.analysis-times { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 8px; color: var(--body); font-size: .875rem; text-align: start; font-variant-numeric: tabular-nums; }
@keyframes travel { to { transform: translateX(194%); } }
.waiting .message-mark { animation: breathe 1.7s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
.result { display: grid; gap: 10px; }
.result section { background: var(--surface); border-radius: 12px; padding: 14px 16px; }
.result h3 { margin: 0 0 7px; font-size: .97rem; }
.result p, .result ul { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
#summary { white-space: pre-wrap; }
.result ul { padding-inline-start: 1.25em; }
.result li + li { margin-top: 5px; }
.result section.reply { background: #f8e7d7; }
.result .result-note { padding: 10px 13px; background: #fbf3e6; border-inline-start: 3px solid #9a6939; border-radius: 8px; font-size: .875rem; color: #614729; }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.share-dialog { width: min(100% - 28px, 490px); padding: 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); }
.share-dialog::backdrop { background: #19362c80; }
.share-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.share-top h2 { margin: 0; font-size: 1.15rem; }
.share-top button { flex: none; }
.share-dialog p { margin: 12px 0; color: var(--body); font-size: .9rem; }
.share-preview { max-height: min(55vh, 580px); overflow: auto; border-radius: 10px; background: var(--background); border: 1px solid var(--line); }
.share-preview img { display: block; width: 100%; height: auto; }
.share-dialog .primary { display: flex; margin-top: 12px; }
.privacy-line { grid-column: 1 / -1; }
.privacy-line span { margin-inline-end: 4px; }
.drop { display: grid; justify-items: center; place-content: center; gap: 6px; min-height: 154px; padding: 12px; text-align: center; color: var(--body); border: 1px dashed #abbfaf; background: #f7f8f3; border-radius: 12px; font-size: .9rem; }
.drop.dragging { background: #dfe9dc; }
.drop:focus-within { outline: 3px solid #67947e; outline-offset: 3px; }
.file-label { background: var(--green); color: #fff; padding: 8px 11px; border-radius: 9px; cursor: pointer; font-weight: 700; }
.preview { margin-top: 8px; display: flex; align-items: flex-start; gap: 8px; }
.preview img { max-width: min(70%, 260px); max-height: 190px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.error { font-size: .9rem; color: #9b2f25; margin: 9px 0 0; }
.reading { max-width: 800px; }
.reading section { padding: 4px 0 12px; }
.reading h2 { font-size: 1.25rem; }
.reading p { line-height: 1.7; color: var(--body); }
.ad { margin-top: 24px; }
.adsbygoogle { display: block; }
footer.shell { margin-top: 32px; min-height: 65px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--body); font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border-width: 0; }
@media (max-width: 750px) {
  .shell { width: min(100% - 32px, 650px); }
  .top-inner { min-height: 66px; gap: 10px; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 32px 0; }
  .hero-art { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .feedback { min-height: 220px; }
}
@media (max-width: 350px) {
  .brand { gap: 6px; font-size: 1rem; }
  .brand-mark { width: 30px; height: 30px; }
  .lang a { padding-inline: 7px; }
}
footer div { display: flex; gap: 16px; }
