:root {
  color: #1f2937;
  background: #f7f8f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f7f8f5;
}

.public-body {
  color: #172033;
  background: #f6f8f3;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  background: rgba(246, 248, 243, 0.94);
  backdrop-filter: blur(12px);
}

.public-brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #172033;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.public-brand img {
  width: 42px;
  height: 42px;
}

.public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
}

.public-nav a,
.public-footer a {
  color: #47606e;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.public-cta,
.public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.public-cta,
.public-button.primary {
  color: #ffffff;
  background: #2f6f45;
}

.public-button.ghost {
  color: #2f6f45;
  background: #ffffff;
  border: 1px solid #cfe0d5;
}

.public-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 52px 0 64px;
}

.public-hero-copy h1,
.public-page-head h1 {
  max-width: 760px;
  margin: 0;
  color: #172033;
  font-size: 56px;
  line-height: 1.08;
}

.public-hero-copy p,
.public-page-head p,
.public-section-head p,
.public-final-cta p,
.public-contact-box p,
.public-policy p {
  color: #5d7180;
  font-size: 17px;
  line-height: 1.75;
}

.public-hero-copy > p {
  max-width: 620px;
  margin: 18px 0 0;
}

.public-eyebrow {
  margin: 0 0 10px;
  color: #2f6f45;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.public-demo {
  position: relative;
  min-height: 470px;
}

.demo-phone {
  display: grid;
  gap: 14px;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #d9e6de;
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(47, 111, 69, 0.13);
}

.demo-photo {
  display: grid;
  place-items: center;
  height: 190px;
  color: #2f6f45;
  background: #eef8f1;
  border: 2px dashed #93c6a4;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}

.demo-line {
  height: 14px;
  background: #edf1ef;
  border-radius: 999px;
}

.demo-line.strong {
  width: 92%;
  background: #2f6f45;
}

.demo-line.short {
  width: 64%;
}

.demo-answer {
  display: grid;
  place-items: center;
  min-height: 56px;
  color: #ffffff;
  background: #172033;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}

.demo-card {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 138px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #d9e6de;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.12);
}

.demo-card span {
  color: #5d7180;
  font-size: 12px;
  font-weight: 900;
}

.demo-card strong {
  color: #2f6f45;
  font-size: 18px;
}

.card-one {
  right: 8px;
  top: 48px;
}

.card-two {
  left: 8px;
  bottom: 44px;
}

.public-section,
.public-page-head {
  padding: 74px 0;
  border-top: 1px solid #dfe8e2;
}

.public-page-head {
  max-width: 760px;
}

.public-section h2,
.public-final-cta h2,
.public-contact-box h2,
.public-policy h2 {
  margin: 0;
  color: #172033;
  font-size: 34px;
  line-height: 1.2;
}

.public-section-head {
  max-width: 680px;
  margin-bottom: 22px;
}

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

.public-feature-grid.wide,
.public-pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-feature-grid article,
.public-pricing-grid article,
.public-faq-list details,
.public-contact-box,
.public-policy {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d9e6de;
  border-radius: 8px;
}

.public-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.public-contact-form label {
  display: grid;
  gap: 7px;
}

.public-contact-form label.full,
.public-contact-form button {
  grid-column: 1 / -1;
}

.public-contact-form span {
  color: #344054;
  font-size: 14px;
  font-weight: 900;
}

.public-contact-form input,
.public-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
}

.public-contact-form input {
  min-height: 50px;
}

.public-contact-form textarea {
  resize: vertical;
}

.public-feature-grid span,
.public-pricing-grid span {
  color: #2f6f45;
  font-size: 13px;
  font-weight: 900;
}

.public-feature-grid h3,
.public-pricing-grid strong {
  display: block;
  margin: 12px 0 8px;
  color: #172033;
  font-size: 22px;
  line-height: 1.35;
}

.public-feature-grid p,
.public-pricing-grid p,
.public-faq-list p {
  margin: 0;
  color: #5d7180;
  font-size: 15px;
  line-height: 1.7;
}

.public-plan-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.public-plan-list li {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.public-plan-list li::before {
  content: "✓";
  margin-right: 7px;
  color: #2f6f45;
  font-weight: 900;
}

.public-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.public-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-steps li {
  padding: 16px 18px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #d9e6de;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
}

.public-final-cta {
  display: grid;
  justify-items: center;
  text-align: center;
}

.public-faq-list {
  display: grid;
  gap: 12px;
}

.public-faq-list summary {
  color: #172033;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.public-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid #dfe8e2;
}

.public-footer div,
.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.public-footer strong {
  color: #172033;
}

.public-footer span {
  color: #5d7180;
  font-size: 14px;
  font-weight: 700;
}

.page {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 18px 28px;
}

.hero {
  margin-bottom: 24px;
}

.home-hero {
  text-align: center;
}

.brand-logo-link {
  display: flex;
  width: min(100%, 140px);
  margin: 0 auto 16px;
  text-decoration: none;
}

.brand-logo-link img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo-link:focus-visible {
  outline: 3px solid rgba(47, 111, 69, 0.24);
  outline-offset: 4px;
  border-radius: 20px;
}

.hero.compact {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #4f7c5d;
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  margin: 14px 0 0;
  color: #667085;
  font-size: 17px;
  line-height: 1.6;
}

.user-note {
  margin: 0;
  color: #2f6f45;
  font-size: 15px;
  font-weight: 800;
}

.user-profile-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.guest-credit-box,
.guest-result-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  color: #2f6f45;
  background: #eef8f1;
  border: 1px solid #bfe2c8;
  border-radius: 8px;
}

.guest-credit-box strong {
  font-size: 15px;
}

.guest-credit-box span,
.guest-result-note {
  color: #47606e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.contact-website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.profile-edit-button {
  display: inline-flex;
  gap: 4px;
  width: auto;
  min-height: 30px;
  padding: 0 8px;
  color: #2f6f45;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.profile-edit-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.upload-form > .upload-box,
.upload-form > button {
  grid-column: 1 / -1;
}

.auth-form,
.member-form,
.admin-grid-form,
.profile-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
.member-form label,
.admin-grid-form label,
.profile-form label {
  display: grid;
  gap: 7px;
}

.auth-form span,
.member-form span,
.admin-grid-form span,
.profile-form span {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.auth-form input,
.auth-form select,
.member-form select,
.admin-grid-form input,
.admin-grid-form select,
.profile-form input,
.profile-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 16px;
}

.profile-modal {
  width: min(100%, 520px);
  max-height: min(760px, 88vh);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.profile-form {
  padding: 18px;
}

.profile-message {
  margin: 16px 18px 0;
}

.profile-password-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.profile-password-box p {
  margin: 0;
  color: #2f6f45;
  font-size: 15px;
  font-weight: 800;
}

.error-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  color: #9f1d1d;
  background: #fff1f1;
  border: 1px solid #f4c7c7;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.success-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  color: #24633a;
  background: #eef8f1;
  border: 1px solid #bfe2c8;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.toast-message {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(320px, calc(100vw - 36px));
  padding: 13px 16px;
  color: #ffffff;
  background: #1f2937;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  animation: toast-fade 3.2s ease forwards;
}

@keyframes toast-fade {
  0%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

.upload-box {
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 34px 20px;
  place-items: center;
  text-align: center;
  background: #ffffff;
  border: 2px dashed #8ab59a;
  border-radius: 8px;
  cursor: pointer;
}

.upload-preview {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.upload-preview img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #f7fbf8;
}

.upload-title {
  font-size: 24px;
  font-weight: 800;
}

.upload-help {
  color: #667085;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.42);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-box {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  padding: 26px 20px;
  place-items: center;
  text-align: center;
  background: #ffffff;
  border-radius: 8px;
}

.loading-box p,
.loading-box small {
  margin: 0;
}

.loading-box p {
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
}

.loading-box small {
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 5px solid #d7e3da;
  border-top-color: #2f6f45;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
  }
}

.option-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 88px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  cursor: pointer;
}

.option-row input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: #2f6f45;
}

.option-row strong,
.option-row small {
  display: block;
}

.option-row strong {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.4;
}

.option-row small {
  margin-top: 3px;
  color: #667085;
  font-size: 12.5px;
  line-height: 1.45;
}

button,
.back-link,
.answer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 0 20px;
  color: #ffffff;
  background: #2f6f45;
  border: 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sub-link {
  display: block;
  margin-top: 18px;
  color: #426b50;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.sub-link.inline {
  display: inline-flex;
  margin: 0;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.usage-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.usage-card span,
.usage-lines span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.usage-card strong {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.35;
}

.usage-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.usage-summary-card {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.usage-summary-card.is-primary {
  background: #eef8f1;
  border-color: #bfe2c8;
}

.usage-summary-card span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.usage-summary-card strong {
  color: #1f2937;
  font-size: 20px;
  line-height: 1.25;
}

.usage-summary-card.is-primary strong {
  color: #1f5c35;
}

.usage-summary-card p,
.usage-guide {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  white-space: normal;
}

.usage-guide {
  margin-top: 12px;
  padding: 10px 12px;
  color: #344054;
  background: #fbfcfb;
  border: 1px solid #eef1ee;
  border-radius: 8px;
}

.api-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.api-settings-form label {
  display: grid;
  gap: 7px;
}

.api-settings-form span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.api-settings-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 15px;
}

.api-settings-form button {
  min-height: 46px;
  padding: 0 18px;
  color: #ffffff;
  background: #2f6f45;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}

.usage-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.usage-budget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.usage-budget span {
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.usage-budget strong {
  color: #2f6f45;
  font-size: 13px;
}

.usage-budget-bar {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  background: #e4e7ec;
  border-radius: 999px;
}

.usage-budget-bar span,
.usage-bar span {
  display: block;
  height: 100%;
  background: #2f6f45;
  border-radius: inherit;
}

.usage-chart {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.usage-bar-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 70px;
  gap: 8px;
  align-items: center;
}

.usage-token-chart .usage-bar-row {
  grid-template-columns: 44px minmax(0, 1fr) 132px;
}

.usage-bar-row > span,
.usage-bar-row strong {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.usage-bar-row strong {
  color: #1f2937;
  text-align: right;
}

.usage-bar {
  height: 12px;
  overflow: hidden;
  background: #eef1ee;
  border-radius: 999px;
}

.usage-lines p {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid #eef1ee;
  border-radius: 8px;
}

.usage-lines strong {
  color: #2f6f45;
  font-size: 13px;
  white-space: nowrap;
}

.usage-pricing-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fbfcfb;
  border: 1px solid #eef1ee;
  border-radius: 8px;
}

.usage-pricing-note strong {
  color: #2f6f45;
  font-size: 13px;
}

.usage-pricing-note span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.usage-formula-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.usage-formula-box p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  white-space: normal;
}

.usage-table-wrap {
  width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid #eef1ee;
  border-radius: 8px;
}

.usage-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
}

.usage-table th,
.usage-table td {
  padding: 10px 9px;
  color: #344054;
  border-bottom: 1px solid #eef1ee;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.usage-table th {
  color: #667085;
  background: #f7fbf8;
}

.usage-table td:nth-child(n+4),
.usage-table th:nth-child(n+4) {
  text-align: right;
}

.usage-table tr:last-child td {
  border-bottom: 0;
}

.main-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.main-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  color: #2f6f45;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

button:focus-visible,
.upload-box:focus-within,
.back-link:focus-visible {
  outline: 3px solid rgba(47, 111, 69, 0.24);
  outline-offset: 3px;
}

.preview {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
}

.result-section {
  margin-bottom: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.result-section h2 {
  margin: 0 0 10px;
  color: #2f6f45;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.result-section p {
  margin: 0;
  color: #344054;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.point-steps {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.point-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.point-steps li + li {
  position: relative;
}

.point-steps li + li::before {
  content: "↓";
  position: absolute;
  top: -16px;
  left: 19px;
  color: #2f6f45;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: #2f6f45;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.step-text {
  min-width: 0;
  color: #344054;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.answer-hidden {
  display: grid;
  gap: 12px;
}

.answer-placeholder {
  padding: 14px;
  background: #f7fbf8;
  border: 1px dashed #8ab59a;
  border-radius: 8px;
  text-align: center;
}

.answer-button {
  min-height: 52px;
  background: #1f2937;
}

.answer-button.secondary {
  color: #2f6f45;
  background: #ffffff;
  border: 1px solid #d7e3da;
}

.concept-button {
  width: auto;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 16px;
  color: #ffffff;
  background: #2f6f45;
  border-radius: 8px;
  font-size: 15px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.44);
}

.modal-overlay[hidden] {
  display: none;
}

.concept-modal {
  width: min(100%, 480px);
  max-height: min(720px, 86vh);
  overflow: hidden;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.practice-modal {
  width: min(100%, 520px);
  max-height: min(760px, 88vh);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.modal-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e4e7ec;
}

.modal-header h2 {
  margin: 0;
  color: #2f6f45;
  font-size: 19px;
  line-height: 1.35;
}

.modal-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.modal-print {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 38px;
  padding: 0 12px;
  color: #2f6f45;
  background: #eef8f1;
  border: 1px solid #bfe2c8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.modal-print svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-close {
  width: 38px;
  min-height: 38px;
  padding: 0;
  color: #344054;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
}

.concept-body {
  max-height: calc(86vh - 72px);
  overflow-y: auto;
  padding: 18px;
  color: #344054;
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.print-practice {
  display: none;
}

.practice-modal .practice-list {
  padding: 16px;
}

.saved-message {
  margin: 14px 16px 0;
  padding: 12px 14px;
  color: #24633a;
  background: #eef8f1;
  border: 1px solid #bfe2c8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.image-modal {
  position: relative;
  width: min(100%, 860px);
  max-height: 90vh;
  padding: 46px 12px 12px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.image-modal img {
  display: block;
  width: 100%;
  max-height: calc(90vh - 58px);
  object-fit: contain;
  background: #f7fbf8;
  border-radius: 6px;
}

.image-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.answer-text {
  padding: 14px;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  font-weight: 800;
}

.answer-hidden.is-open .answer-placeholder {
  display: none;
}

.diagram-preview {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.diagram-preview img {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

.detail-diagram {
  margin-top: 14px;
}

.detail-points {
  margin-top: 16px;
}

.detail-points h3 {
  margin: 0 0 10px;
  color: #2f6f45;
  font-size: 17px;
  line-height: 1.35;
}

.detail-answer,
.history-answer {
  margin-top: 14px;
}

.history-points {
  margin-top: 12px;
}

.compact-points {
  gap: 8px;
  margin-top: 8px;
}

.compact-points li {
  grid-template-columns: 30px 1fr;
  padding: 10px;
}

.compact-points .step-number {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.compact-points .step-text {
  font-size: 15px;
}

.history-diagram {
  margin-top: 12px;
  max-width: 100%;
}

.history-list {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-bottom: 18px;
}

.history-item {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.history-summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  min-width: 0;
  cursor: pointer;
  list-style: none;
}

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

.history-thumb {
  display: block;
  width: 92px;
  height: 92px;
  overflow: hidden;
  background: #edf2ef;
  border-radius: 6px;
}

.history-thumb img {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: cover;
}

.image-preview-button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
}

.history-summary-content {
  display: grid;
  min-width: 0;
}

.history-content {
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  overflow: hidden;
  border-top: 1px solid #eef1ee;
}

.history-item:not([open]) .history-content {
  display: none;
}

.history-actions {
  display: grid;
  gap: 6px;
  align-self: center;
  justify-items: stretch;
}

.history-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 30px;
  padding: 7px 9px;
  color: #2f6f45;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.history-item[open] .history-toggle {
  color: #344054;
}

.practice-set-item[open] .history-toggle {
  color: #344054;
  font-size: 0;
}

.practice-set-item[open] .history-toggle::before {
  content: "접기";
  font-size: 12px;
}

.history-item[open] .history-toggle::before {
  content: "접기";
}

.history-item[open] .history-toggle {
  font-size: 0;
}

.history-item[open] .history-toggle::before {
  font-size: 12px;
}

.history-delete-form {
  margin: 0;
}

.history-delete-button {
  width: 100%;
  min-width: 58px;
  min-height: 30px;
  padding: 0 9px;
  color: #9f1d1d;
  background: #fff1f1;
  border: 1px solid #f4c7c7;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.history-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-title,
.history-date,
.history-label,
.history-text,
.empty-message {
  display: block;
  margin: 0;
}

.history-title {
  overflow-wrap: anywhere;
  font-weight: 800;
  word-break: break-word;
}

.history-date {
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
}

.history-label {
  margin-top: 10px;
  color: #2f6f45;
  font-size: 13px;
  font-weight: 800;
}

.history-text,
.empty-message {
  margin-top: 4px;
  color: #475467;
  font-size: 15px;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.empty-message {
  margin-bottom: 18px;
}

.compact-history {
  display: grid;
  gap: 8px;
}

.compact-history-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: inherit;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  text-decoration: none;
}

.compact-history-item span {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-history-item small {
  color: #667085;
  font-size: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 6px 0 18px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  color: #2f6f45;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.pagination span {
  color: #ffffff;
  background: #2f6f45;
  border-color: #2f6f45;
}

.admin-page {
  width: min(100%, 1120px);
}

.admin-subnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.admin-subnav button {
  min-height: 46px;
  color: #2f6f45;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}

.admin-subnav button.is-active {
  color: #ffffff;
  background: #2f6f45;
  border-color: #2f6f45;
}

.admin-grid-form {
  margin-top: 8px;
}

.seo-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.seo-settings-form label,
.seo-image-preview {
  display: grid;
  gap: 7px;
}

.seo-settings-form .wide,
.seo-settings-form button,
.seo-image-preview {
  grid-column: 1 / -1;
}

.seo-settings-form span,
.seo-image-preview span {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.seo-settings-form input,
.seo-settings-form select,
.seo-settings-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
}

.seo-settings-form textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.seo-settings-form button {
  min-height: 50px;
  color: #ffffff;
  background: #2f6f45;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
}

.seo-image-preview img {
  display: block;
  width: min(100%, 420px);
  max-height: 240px;
  object-fit: cover;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.invite-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.invite-link {
  margin: 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.member-list {
  display: grid;
  gap: 16px;
}

.contact-admin-list {
  display: grid;
  gap: 14px;
}

.contact-admin-item {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4e7ec;
}

.contact-admin-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-admin-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.contact-status-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contact-status-form select {
  min-height: 38px;
  padding: 0 10px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.contact-status-form button {
  width: auto;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.contact-admin-message {
  padding: 12px;
  background: #f7fbf8;
  border: 1px solid #eef1ee;
  border-radius: 8px;
}

.stats-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats-card-grid article {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.stats-card-grid span {
  color: #475467;
  font-size: 14px;
  font-weight: 800;
}

.stats-card-grid strong {
  min-width: 0;
  color: #061325;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.stats-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stats-two-column .result-section {
  min-height: 196px;
}

.stats-section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stats-section-head h2 {
  margin: 0;
}

.stats-section-head span {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

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

.stats-bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.34fr) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 22px;
}

.stats-bar-list.wide .stats-bar-row {
  grid-template-columns: minmax(170px, 0.34fr) minmax(160px, 1fr) auto;
}

.stats-bar-row span {
  min-width: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-bar-row i {
  position: relative;
  display: block;
  height: 11px;
  overflow: hidden;
  background: #eef1ee;
  border-radius: 999px;
}

.stats-bar-row b {
  display: block;
  height: 100%;
  min-width: 2px;
  background: #2f6f45;
  border-radius: inherit;
}

.stats-bar-row strong {
  min-width: 34px;
  color: #061325;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.ip-block-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.ip-block-form label {
  display: grid;
  gap: 7px;
}

.ip-block-form span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.ip-block-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 15px;
}

.ip-block-form button,
.stats-table button {
  width: auto;
  min-height: 40px;
  padding: 0 14px;
  color: #061325;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.ip-block-form button {
  min-height: 46px;
  color: #ffffff;
  background: #2f6f45;
  border-color: #2f6f45;
}

.stats-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.stats-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

.stats-table th,
.stats-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e4e7ec;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  vertical-align: middle;
}

.stats-table th {
  color: #475467;
  background: #fbfcfb;
  font-weight: 900;
}

.stats-table tr:last-child td {
  border-bottom: 0;
}

.stats-table small {
  color: #667085;
  font-size: 12px;
}

.stats-table form {
  margin: 0;
}

.stats-day-chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(20px, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 190px;
  padding-top: 18px;
  overflow-x: auto;
}

.stats-day-bar {
  display: grid;
  grid-template-rows: 22px 120px 38px;
  gap: 5px;
  justify-items: center;
  min-width: 24px;
}

.stats-day-bar strong {
  color: #061325;
  font-size: 11px;
  font-weight: 900;
}

.stats-day-bar span {
  align-self: end;
  width: 100%;
  min-height: 2px;
  background: #151515;
  border-radius: 6px 6px 0 0;
}

.stats-day-bar em {
  color: #475467;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  writing-mode: vertical-rl;
}

.member-item {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e7ec;
}

.member-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.member-info {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #2f6f45;
  background: #eef8f1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.practice-form {
  margin-top: 14px;
}

.practice-list-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 14px;
  color: #2f6f45;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.practice-list {
  display: grid;
  gap: 14px;
}

.practice-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.practice-question {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
  white-space: pre-wrap;
}

.practice-title {
  margin: 0;
  color: #2f6f45;
  font-size: 15px;
  font-weight: 800;
}

.practice-conditions {
  padding: 12px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
  white-space: pre-wrap;
}

.practice-set-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.practice-set-item {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.practice-set-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.practice-set-item:not([open]) .practice-set-summary {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.print-actions {
  display: none;
  gap: 6px;
  align-items: center;
}

.practice-set-print {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  padding-inline: 10px;
  color: #2f6f45;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.practice-set-item[open] .print-actions {
  display: inline-flex;
}

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

.practice-set-delete-form {
  margin: 0;
}

.practice-set-delete {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 34px;
  padding: 0 9px;
  color: #9f1d1d;
  background: #fff8f8;
  border: 1px solid #f4c7c7;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.practice-set-delete svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-set-summary::-webkit-details-marker {
  display: none;
}

.practice-set-summary strong,
.practice-set-summary small {
  display: block;
}

.practice-set-summary strong {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.45;
}

.practice-set-summary small {
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
}

.practice-set-content {
  padding: 0 14px 14px;
}

.list-view-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin: -2px 0 10px;
}

.view-toggle-button {
  display: inline-flex;
  width: 38px;
  min-height: 38px;
  padding: 0;
  color: #426b50;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.view-toggle-button.is-active {
  color: #ffffff;
  background: #2f6f45;
  border-color: #2f6f45;
}

.view-toggle-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrong-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.wrong-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.wrong-card-link {
  display: block;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.wrong-card-link img,
.wrong-card-placeholder {
  display: block;
  width: 100%;
  height: 132px;
  background: #edf2ef;
}

.wrong-card-link img {
  object-fit: cover;
}

.wrong-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f6f45;
  font-size: 14px;
  font-weight: 800;
}

.wrong-card-body {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.wrong-card .history-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.wrong-card .history-date {
  font-size: 12px;
}

.delete-form {
  margin-top: 14px;
}

.wrong-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 8px 8px;
}

.wrong-card-actions form {
  min-width: 0;
}

.wrong-card-action {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 28px;
  padding: 0 5px;
  color: #2f6f45;
  background: #ffffff;
  border: 1px solid #d7e3da;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wrong-card-action.danger {
  color: #9f1d1d;
  background: #fff8f8;
  border-color: #f4c7c7;
}

.wrong-card-action svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrong-note-grid.is-list-view {
  grid-template-columns: 1fr;
}

.wrong-note-grid.is-list-view .wrong-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
}

.wrong-note-grid.is-list-view .wrong-card-link {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.wrong-note-grid.is-list-view .wrong-card-link img,
.wrong-note-grid.is-list-view .wrong-card-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 6px;
}

.wrong-note-grid.is-list-view .wrong-card-body {
  align-content: center;
  min-width: 0;
  padding: 0;
}

.wrong-note-grid.is-list-view .wrong-card .history-title {
  -webkit-line-clamp: 2;
}

.wrong-note-grid.is-list-view .wrong-card-actions {
  align-self: end;
  padding: 0;
}

.delete-button {
  width: 100%;
  min-height: 42px;
  color: #9f1d1d;
  background: #fff1f1;
  border: 1px solid #f4c7c7;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.detail-meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.detail-meta-row .history-date {
  margin: 0;
}

.detail-meta-row form {
  flex: 0 0 auto;
}

.detail-problem {
  margin-top: 14px;
  font-weight: 800;
}

.retest-section {
  padding: 18px;
}

.retest-section > p {
  margin-bottom: 16px;
}

.retest-options {
  display: grid;
  gap: 12px;
}

.retest-option-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f7fbf8;
  border: 1px solid #d7e3da;
  border-radius: 8px;
}

.retest-option-card.advanced {
  background: #fbfcf8;
  border-color: #cbdccf;
}

.retest-option-card h3 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
}

.retest-option-card p {
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
}

.retest-option-card .practice-form {
  margin-top: 4px;
}

.retest-option-card button {
  min-height: 52px;
  font-size: 17px;
}

.retest-option-card .practice-list-link {
  min-height: 42px;
  margin-top: 0;
  background: #ffffff;
}

.practice-maker-card {
  border-color: #bfd8c9;
  box-shadow: 0 10px 24px rgba(47, 111, 69, 0.08);
}

.practice-maker-similar {
  background: #f0f8f3;
}

.practice-maker-advanced {
  background: #f3f6ff;
  border-color: #c7d2fe;
}

.practice-maker-advanced h2 {
  color: #3159a6;
}

.practice-maker-card .practice-list-link,
.practice-maker-card select {
  background: rgba(255, 255, 255, 0.82);
}

.count-form {
  display: grid;
  gap: 12px;
}

.retest-advanced-form {
  margin-top: 10px;
}

.retest-advanced-form button,
.count-form input[name="practice_mode"] + label + button {
  color: #2f6f45;
  background: #ffffff;
  border: 1px solid #8ab59a;
}

.count-form label {
  display: grid;
  gap: 7px;
}

.count-form span {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.count-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 16px;
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    background: #ffffff;
  }

  body.is-practice-printing > :not(.print-clone) {
    display: none !important;
  }

  body.is-practice-printing .print-clone,
  body.is-practice-printing .print-clone * {
    visibility: visible;
  }

  .print-practice {
    display: none;
  }

  .print-practice.is-printing {
    position: static;
    display: block;
    width: 100%;
    color: #111827;
    font-family: "Noto Sans KR", Arial, sans-serif;
  }

  .print-practice h1 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 24px;
    line-height: 1.35;
  }

  .print-meta {
    margin: -8px 0 18px;
    color: #475467;
    font-size: 13px;
  }

  .print-practice h2 {
    margin: 0 0 14px;
    color: #2f6f45;
    font-size: 20px;
    line-height: 1.35;
  }

  .print-item {
    break-inside: avoid;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #cfd8d3;
    border-radius: 8px;
  }

  .print-item h3,
  .print-item p {
    margin: 0;
  }

  .print-item h3 {
    margin-bottom: 8px;
    color: #2f6f45;
    font-size: 16px;
  }

  .print-item p,
  .print-conditions {
    color: #111827;
    font-size: 15px;
    line-height: 1.65;
    white-space: pre-wrap;
  }

  .print-title,
  .print-hint {
    font-weight: 800;
  }

  .print-conditions {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #d9e4de;
    border-radius: 6px;
  }

  .print-answer-section {
    break-before: page;
  }

  .print-practice.print-mode-questions .print-answer-section,
  .print-practice.print-mode-answers .print-question-section {
    display: none;
  }

  .print-practice.print-mode-answers .print-answer-section {
    break-before: auto;
  }
}

@media (min-width: 720px) {
  .member-item {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }

  .admin-grid-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid-form button {
    grid-column: 1 / -1;
  }

  .wrong-card img {
    height: 180px;
  }
}

@media (max-width: 820px) {
  .public-header {
    grid-template-columns: 1fr auto;
  }

  .public-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 12px;
  }

  .public-hero,
  .public-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .public-hero-copy h1,
  .public-page-head h1 {
    font-size: 42px;
  }

  .public-feature-grid,
  .public-feature-grid.wide,
  .public-pricing-grid,
  .public-contact-form {
    grid-template-columns: 1fr;
  }

  .contact-admin-head {
    grid-template-columns: 1fr;
  }

  .contact-status-form {
    align-items: stretch;
  }

  .stats-card-grid,
  .stats-two-column,
  .ip-block-form {
    grid-template-columns: 1fr;
  }

  .stats-card-grid {
    gap: 10px;
  }

  .stats-card-grid article {
    min-height: 88px;
  }

  .stats-bar-row,
  .stats-bar-list.wide .stats-bar-row {
    grid-template-columns: minmax(88px, 0.45fr) minmax(86px, 1fr) auto;
    gap: 8px;
  }

  .stats-day-chart {
    grid-template-columns: repeat(30, 24px);
  }

  .public-demo {
    min-height: 430px;
  }
}

@media (max-width: 520px) {
  .usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .api-settings-form {
    grid-template-columns: 1fr;
  }

  .seo-settings-form {
    grid-template-columns: 1fr;
  }

  .public-main,
  .public-header,
  .public-footer {
    width: min(100%, calc(100% - 28px));
  }

  .public-header {
    gap: 10px;
    min-height: auto;
    padding-top: 14px;
  }

  .public-nav {
    gap: 10px;
  }

  .public-nav a {
    font-size: 13px;
  }

  .public-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .public-hero {
    padding-top: 34px;
  }

  .public-hero-copy h1,
  .public-page-head h1 {
    font-size: 34px;
  }

  .public-section h2,
  .public-final-cta h2,
  .public-contact-box h2,
  .public-policy h2 {
    font-size: 26px;
  }

  .demo-card {
    position: static;
    width: min(100%, 360px);
    margin: 10px auto 0;
  }

  .public-demo {
    min-height: auto;
  }
}

@media (max-width: 380px) {
  .usage-summary-grid {
    grid-template-columns: 1fr;
  }

  .history-summary {
    grid-template-columns: 1fr;
  }

  .history-thumb,
  .history-thumb img {
    width: 100%;
    height: auto;
    max-height: 220px;
  }

  .history-toggle {
    width: 58px;
  }

  .history-actions {
    justify-self: start;
  }
}
