/* line 4, app/assets/stylesheets/writing_diagnostic.scss */
body.wd {
  --blue: #0755ce;
  --deep: #062765;
  --ink: #14223a;
  --muted: #5b6b84;
  --pale: #edf5ff;
  --soft: #f6f9fe;
  --line: #dce5f1;
  --red: #e5383b;
  --red-text: #c62828;
  --accent: #e7a427;
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

/* line 11, app/assets/stylesheets/writing_diagnostic.scss */
body.wd *, body.wd *::before, body.wd *::after {
  box-sizing: border-box;
}

/* line 12, app/assets/stylesheets/writing_diagnostic.scss */
body.wd button, body.wd input, body.wd select, body.wd textarea {
  font: inherit;
}

/* line 13, app/assets/stylesheets/writing_diagnostic.scss */
body.wd :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* line 14, app/assets/stylesheets/writing_diagnostic.scss */
body.wd [tabindex="-1"]:focus {
  outline: none;
}

/* line 15, app/assets/stylesheets/writing_diagnostic.scss */
body.wd [hidden] {
  display: none !important;
}

/* line 17, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffee;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e9eef6;
}

/* line 18, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .top-in {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  min-height: 56px;
}

/* line 20, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .logo {
  font-weight: 900;
  color: var(--deep);
  font-size: 18px;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-decoration: none;
}

/* line 21, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .logo i {
  color: var(--accent);
  font-style: normal;
}

/* line 22, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .logo span {
  font-weight: 800;
}

/* line 23, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .lang {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--deep);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* line 24, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .timer {
  display: none;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 20px;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}

/* line 25, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .timer.on {
  display: flex;
}

/* line 26, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .timer.warn {
  color: var(--red);
}

/* line 27, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .timer small {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* line 29, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px));
}

/* line 30, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .steps {
  display: flex;
  gap: 6px;
  margin: 4px 0 16px;
}

/* line 31, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .steps i {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: #dfe7f3;
}

/* line 32, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .steps i.on {
  background: var(--blue);
}

/* line 33, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .stepnum {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 6px;
}

/* line 34, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: 0 10px 30px #0b2a5f0d;
}

/* line 35, app/assets/stylesheets/writing_diagnostic.scss */
body.wd h1 {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -.03em;
  margin: 0 0 8px;
}

/* line 36, app/assets/stylesheets/writing_diagnostic.scss */
body.wd h2 {
  font-size: 19px;
  margin: 0 0 6px;
}

/* line 37, app/assets/stylesheets/writing_diagnostic.scss */
body.wd p {
  margin: 0 0 12px;
}

/* line 38, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .muted {
  color: var(--muted);
}

/* line 39, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .small {
  font-size: 14px;
}

/* line 40, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .center {
  text-align: center;
}

/* line 42, app/assets/stylesheets/writing_diagnostic.scss */
body.wd label.f {
  display: block;
  margin: 14px 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--deep);
}

/* line 43, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .f input, body.wd .f select, body.wd .f textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  font-size: 16px;
  padding: 12px;
  border: 1px solid #cbd8e9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

/* line 44, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 420px) {
  /* line 45, app/assets/stylesheets/writing_diagnostic.scss */
  body.wd .row2 {
    grid-template-columns: 1fr;
    gap: 0 10px;
  }
}

/* line 47, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* line 48, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .btn-p {
  background: var(--blue);
  color: #fff;
}

/* line 49, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .btn-p:disabled {
  background: #9fb6dc;
  cursor: not-allowed;
}

/* line 50, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .btn-o {
  background: #fff;
  color: var(--deep);
  border-color: #c9d7ec;
}

/* line 51, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .btns {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

/* line 52, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .linkbtn {
  background: none;
  border: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 0;
  min-height: 44px;
  text-decoration: underline;
}

/* line 53, app/assets/stylesheets/writing_diagnostic.scss */
body.wd a.linkbtn {
  display: inline-flex;
  align-items: center;
}

/* line 55, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #eef3fb;
  border-radius: 12px;
  padding: 4px;
  margin: 14px 0 4px;
}

/* line 56, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

/* line 57, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .tabs button[aria-pressed="true"] {
  background: #fff;
  color: var(--deep);
  box-shadow: 0 2px 8px #0b2a5f14;
}

/* line 59, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .pin {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}

/* line 60, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .pin input {
  width: 56px;
  height: 62px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  border: 1.5px solid #cbd8e9;
  border-radius: 12px;
  background: #fff;
  -webkit-text-security: disc;
}

/* line 62, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .pinmask {
  -webkit-text-security: disc;
  letter-spacing: .3em;
}

/* line 63, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .pinlabel {
  font-weight: 700;
  font-size: 14px;
  color: var(--deep);
  margin: 14px 0 0;
}

/* line 64, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .err {
  color: var(--red-text);
  font-weight: 700;
  font-size: 14px;
  margin: 8px 0 0;
}

/* line 65, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .ok {
  color: #0f7b4a;
  font-weight: 700;
  font-size: 14px;
}

/* line 66, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* line 68, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .choice {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

/* line 69, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .opt {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
}

/* line 70, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .opt:hover {
  border-color: var(--blue);
}

/* line 71, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .opt b {
  display: block;
  font-size: 18px;
  color: var(--deep);
  margin-bottom: 4px;
}

/* line 72, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .opt span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

/* line 73, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .opt .go {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  margin-top: 8px;
}

/* line 74, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .opt.main {
  border-color: var(--blue);
  background: #f7fbff;
}

/* line 75, app/assets/stylesheets/writing_diagnostic.scss */
body.wd ul.rules {
  padding-left: 20px;
  margin: 10px 0 14px;
}

/* line 76, app/assets/stylesheets/writing_diagnostic.scss */
body.wd ul.rules li {
  margin: 6px 0;
}

/* line 77, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  font-size: 15px;
  font-weight: 600;
}

/* line 79, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

/* line 80, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent p, body.wd .consent .check span {
  max-width: 520px;
}

/* line 81, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent p {
  margin: 0 0 4px;
  text-wrap: pretty;
}

/* line 82, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent .consent-title {
  margin: 0;
  font-weight: 700;
  color: var(--deep);
}

/* line 83, app/assets/stylesheets/writing_diagnostic.scss */
body.wd div.note.warn {
  margin: 14px 0;
  padding: 14px;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
}

/* line 84, app/assets/stylesheets/writing_diagnostic.scss */
body.wd div.note.warn p {
  margin: 0 0 8px;
  line-height: 1.55;
  font-weight: 600;
}

/* line 85, app/assets/stylesheets/writing_diagnostic.scss */
body.wd div.note.warn .btns {
  margin-top: 6px;
}

/* line 86, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent a {
  color: #4f46e5;
  text-decoration: underline;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* line 88, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  cursor: pointer;
  color: #4f46e5;
  font-weight: 600;
  list-style: none;
}

/* line 89, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent summary::-webkit-details-marker {
  display: none;
}

/* line 90, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent summary .chev {
  display: inline-block;
  transition: transform .15s;
}

/* line 91, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent details[open] summary .chev {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  /* line 92, app/assets/stylesheets/writing_diagnostic.scss */
  body.wd .consent summary .chev {
    transition: none;
  }
}

/* line 93, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent summary:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
  border-radius: 4px;
}

/* line 94, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent details p {
  margin: 0 0 8px;
}

/* line 95, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .consent .check {
  margin: 0;
  min-height: 44px;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 500;
}

/* line 96, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .check input {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
}

/* line 97, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .topic {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 10px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--deep);
  font-size: 17px;
  min-height: 56px;
}

/* line 98, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .topic:hover {
  border-color: var(--blue);
}

/* line 99, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .q {
  background: var(--pale);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--deep);
  margin: 10px 0;
  line-height: 1.55;
}

/* line 100, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .q .qtext {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
  color: var(--deep);
  margin: 0 0 4px;
  letter-spacing: 0;
}

/* line 101, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .q small {
  display: block;
  font-weight: 700;
  color: var(--blue);
  font-size: 12px;
  margin-bottom: 4px;
}

/* line 102, app/assets/stylesheets/writing_diagnostic.scss */
body.wd textarea.essay {
  width: 100%;
  min-height: 52vh;
  font-size: 16px;
  line-height: 1.7;
  padding: 14px;
  border: 1.5px solid #cbd8e9;
  border-radius: 14px;
  resize: vertical;
  background: #fff;
  color: var(--ink);
}

/* line 103, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .bar {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin: 6px 2px 0;
}

/* line 104, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .notice {
  background: #fff3f3;
  color: #a3262a;
  border: 1px solid #f4c7c8;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0;
}

/* line 105, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .review {
  white-space: pre-wrap;
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  max-height: 50vh;
  overflow: auto;
  font-size: 15px;
}

/* line 106, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .files {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

/* line 107, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .file {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}

/* line 108, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .file .nm {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* line 109, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .file button {
  border: 0;
  background: none;
  color: var(--red-text);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  padding: 0 8px;
}

/* line 110, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .drop {
  display: block;
  border: 2px dashed #b9cbe6;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
  background: #f7fbff;
}

/* line 111, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .toast {
  position: fixed;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  background: var(--deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  z-index: 50;
  box-shadow: 0 10px 30px #0006;
  max-width: calc(100% - 32px);
  text-align: center;
}

/* line 112, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .sticky-act {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffffee;
  backdrop-filter: blur(10px);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  box-shadow: 0 -8px 28px #0d286618;
  z-index: 15;
}

/* line 113, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .sticky-act .in {
  max-width: 688px;
  margin: 0 auto;
}

/* line 114, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #fff8;
  border-top-color: #fff;
  border-radius: 50%;
  animation: wd-spin 1s linear infinite;
  margin-right: 8px;
}

/* line 115, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .big-ok {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6f6ee;
  color: #0f7b4a;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  margin: 0 auto 12px;
}

/* line 116, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .modal {
  position: fixed;
  inset: 0;
  background: #06276566;
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 16px;
}

/* line 117, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .modal .box {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px #0005;
}

/* line 118, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .modal p {
  font-weight: 700;
  color: var(--deep);
  font-size: 16px;
}

/* line 119, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .modal .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

/* line 120, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .hint {
  margin: 14px 0 0;
}

/* line 121, app/assets/stylesheets/writing_diagnostic.scss */
body.wd p.note {
  margin: -8px 0 14px;
}

/* line 122, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .contact {
  margin-top: 16px;
}

/* line 123, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .card.paper {
  margin: 0 0 12px;
  padding: 16px;
}

/* line 124, app/assets/stylesheets/writing_diagnostic.scss */
body.wd .card.paper h2 {
  font-size: 17px;
}

/* line 125, app/assets/stylesheets/writing_diagnostic.scss */
body.wd hr.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

@media (min-width: 768px) {
  /* line 128, app/assets/stylesheets/writing_diagnostic.scss */
  body.wd .card {
    padding: 30px;
  }
  /* line 129, app/assets/stylesheets/writing_diagnostic.scss */
  body.wd .choice {
    grid-template-columns: 1fr 1fr;
  }
  /* line 130, app/assets/stylesheets/writing_diagnostic.scss */
  body.wd h1 {
    font-size: 28px;
  }
}

@keyframes wd-spin {
  to {
    transform: rotate(360deg);
  }
}
