#dc-root {
  --v-accent: #2b3bff;
  --v-wmFont: 'East Sea Dokdo', 'Black Han Sans', 'Apple SD Gothic Neo', sans-serif;
}

.tg-form { display: flex; flex-direction: column; gap: 22px; }
.tg-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tg-field label, .tg-meta {
  font-family: 'IBM Plex Mono', 'IBM Plex Sans KR', monospace;
  font-size: 14px;
  letter-spacing: .03em;
}
.tg-field input { font: inherit; font-size: 16px; max-width: 100%; min-width: 0; }
.tg-field input[type=file] { box-sizing: border-box; width: 100%; line-height: 1.7; }
.tg-field input[type=file]::file-selector-button {
  padding: 10px 14px; margin: 0 12px 8px 0; border: 1px solid #111;
  border-radius: 0; background: transparent; color: #111; font: inherit; cursor: pointer;
}
.tg-field input[type=text] {
  width: 100%; height: 48px; box-sizing: border-box; padding: 0;
  border: 0; border-bottom: 1px solid #111; border-radius: 0;
  background: transparent; color: #111;
}
.tg-field input[aria-invalid=true] { outline: 2px solid #b3261e; outline-offset: 3px; }
.tg-help { margin: 0; color: #5a5a55; font-size: 14px; line-height: 1.7; }
.tg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tg-button {
  min-height: 48px; padding: 10px 24px; border: 1px solid #111;
  border-radius: 24px; background: transparent; color: #111; font: inherit;
  font-size: 15px; line-height: 1.6; cursor: pointer;
}
.tg-button-primary { background: #111; color: #fcfcfa; }
.tg-button:disabled { cursor: wait; opacity: .65; }
.tg-preview { padding-top: 28px; border-top: 1px solid #111; scroll-margin-top: 24px; }
.tg-preview h2 { margin: 0 0 18px; font-family: 'Gowun Batang', serif; font-size: 28px; font-weight: 400; }
.tg-preview figure { margin: 0; }
.tg-preview img {
  display: block; width: 100%; max-height: 600px; object-fit: contain;
  background: #eeeeea;
}
.tg-preview figcaption {
  padding-top: 16px; font-size: 18px; white-space: pre-wrap;
  overflow-wrap: anywhere; word-break: break-word;
}
.tg-preview:focus { outline: none; }
.tg-preview:focus-visible { outline: 2px solid #2b3bff; outline-offset: 8px; }
.tg-form-area { scroll-margin-top: 24px; }
.tg-error { margin: 0; color: #b3261e; font-size: 15px; }
.tg-sample-note { margin: 0; font-size: 14px; color: #5a5a55; }
#together h1 { font-weight: 400; }
.tg-form button:focus-visible,
.tg-form input:focus-visible,
[data-act^=cheer]:focus-visible,
[data-sample-info]:focus-visible,
#tg-open:focus-visible {
  outline: 2px solid #2b3bff; outline-offset: 4px;
}
@media (max-width: 520px) {
  .tg-actions { gap: 10px; }
  .tg-button { padding-inline: 18px; }
  .tg-preview img { max-height: 440px; }
}
