:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #607080;
  --line: #d9e0e7;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --blue: #1769e0;
  --green: #0f8a66;
  --amber: #b86b00;
  --red: #b93a3a;
  --navy: #102235;
  --shadow: 0 18px 48px rgba(22, 34, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  background: var(--soft);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 166px;
}

.brand-logo {
  display: block;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  width: 166px;
}

.environment-badge {
  align-items: center;
  background: #eef5ff;
  border: 1px solid #9cc3ff;
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
}

.nav-links {
  color: #344251;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 15px;
}

.nav-toggle {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: none;
  font-weight: 800;
  min-height: 40px;
  padding: 0 14px;
}

.ghost-button,
.secondary-button,
.primary-button {
  border-radius: 8px;
  min-height: 40px;
  padding: 0 16px;
}

.ghost-button,
.secondary-button,
.admin-home-link {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.ghost-button,
.admin-home-link {
  align-items: center;
  display: inline-flex;
}

.auth-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.user-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-self: end;
}

.user-actions span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: white;
  font-weight: 800;
}

.hero {
  align-items: center;
  background: white;
  color: var(--ink);
  display: grid;
  gap: 26px;
  justify-items: center;
  min-height: 520px;
  padding: 86px 6vw 58px;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 820px;
}

.hero-logo {
  display: block;
  height: auto;
  margin-bottom: 24px;
  max-width: min(680px, 82vw);
  width: 100%;
}

.eyebrow {
  color: #0f8a66;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--green);
}

.admin-hero .eyebrow {
  color: #58d6a6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: 0;
  line-height: 1.03;
  margin-bottom: 24px;
  max-width: 820px;
}

.lead {
  color: #43515f;
  font-size: 20px;
  line-height: 1.7;
  max-width: 720px;
}

.search-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 26px;
  text-align: left;
  width: min(820px, 100%);
}

.search-form label,
.filters label,
.login-form label,
.admin-login-card label {
  color: #43515f;
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
}

.advanced-search {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.advanced-search summary {
  color: #24537f;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.advanced-search label {
  margin-top: 12px;
}

.advanced-search select,
.filters select,
.login-form input,
.admin-login-card input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.search-box {
  align-items: center;
  border: 2px solid var(--blue);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  margin-top: 10px;
  min-height: 64px;
  padding: 8px 8px 8px 18px;
}

.search-box svg {
  fill: none;
  height: 24px;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 24px;
}

.search-box input {
  border: 0;
  font-size: 18px;
  min-width: 0;
  outline: 0;
}

.search-box button,
.login-form button,
.admin-login-card button {
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  color: white;
  font-weight: 800;
  min-height: 46px;
  padding: 0 22px;
}

.search-history {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
}

.search-history > span {
  color: #43515f;
  font-size: 13px;
  font-weight: 800;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tags button {
  background: #eef5ff;
  border: 1px solid #d5e7ff;
  border-radius: 999px;
  color: #165196;
  font-size: 13px;
  min-height: 34px;
  padding: 0 12px;
}

.quick-tags button span {
  color: #607080;
  font-size: 12px;
  font-weight: 800;
  margin-right: 4px;
}

.search-history-empty {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.search-example {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}

.member-workspace,
.results-wrap,
.category-band,
.admin-section {
  padding: 72px 6vw;
}

.member-workspace {
  background: white;
  display: grid;
  gap: 18px;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-heading h2,
.member-workspace h2,
.admin-section h2 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 0;
}

.section-heading > p,
.member-workspace > div > p {
  color: var(--muted);
  margin-bottom: 4px;
}

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

.metric-grid article,
.task-board,
.filters,
.result-card,
.category-grid article,
.admin-card,
.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-visitor-table {
  margin-top: 22px;
  max-height: 420px;
  overflow: auto;
}

.admin-visitor-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-visitor-table caption {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  padding: 18px 20px;
  text-align: left;
}

.metric-grid article {
  display: grid;
  gap: 8px;
  min-height: 106px;
  padding: 20px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-grid strong {
  font-size: 28px;
}

.task-board {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  padding: 22px;
}

.task-board ul,
.admin-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.task-board li,
.admin-card li {
  line-height: 1.5;
}

.login-box {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.login-box p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.login-box button {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 800;
  min-height: 42px;
}

.layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.filters {
  padding: 20px;
  position: sticky;
  top: 92px;
}

.filters details {
  display: grid;
  gap: 18px;
}

.filters summary {
  color: #24537f;
  cursor: pointer;
  display: none;
  font-weight: 900;
}

.filters h3 {
  margin-bottom: 0;
}

.results {
  display: grid;
  gap: 14px;
}

.result-card {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 22px;
}

.result-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.result-card dl {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin: 0;
}

.result-card div {
  min-width: 0;
}

.result-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-card dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.card-actions a {
  align-items: center;
  background: #f2f6fb;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #24537f;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.result-actions {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
}

.secondary-actions summary {
  display: none;
}

.secondary-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-button,
.action-link {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #24537f;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 11px;
}

.action-button:hover,
.action-link:hover {
  background: #eaf2ff;
  border-color: #9cc3ff;
}

.premium-action {
  background: #f8f1ff;
  border-color: #d8b4fe;
  color: #6d28d9;
}

.badge {
  align-self: start;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
  white-space: nowrap;
}

.badge.valid {
  background: #e8f7f1;
  color: var(--green);
}

.badge.renew {
  background: #fff4df;
  color: var(--amber);
}

.badge.expired {
  background: #fdecec;
  color: var(--red);
}

.cert-group-card {
  display: block;
  padding: 0;
  overflow: hidden;
}

.cert-group-head {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  padding: 22px;
}

.cert-title-row {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-title-row h3 {
  font-size: 24px;
  margin: 0;
}

.cert-meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1;
}

.safety-link {
  align-items: center;
  background: #eef1f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344251;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 28px;
  padding: 5px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.radio-cert-empty,
.radio-cert-loading,
.radio-cert-hit {
  align-items: center;
  border: 1px solid #d8b4fe;
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  margin: 2px 6px 2px 0;
  padding: 7px 10px;
  width: min(100%, 520px);
}

.radio-cert-empty {
  background: #f5f0ff;
  color: #6d4b9b;
}

.radio-cert-loading {
  background: #f5f0ff;
  color: #6d4b9b;
}

.radio-cert-hit {
  background: #f5f0ff;
  color: #5b3f8c;
  justify-content: space-between;
}

.radio-cert-main {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.radio-detail-link {
  color: var(--blue);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  margin-left: auto;
  text-decoration: none;
  white-space: nowrap;
}

.radio-detail-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.radio-spinner {
  animation: radio-spin 0.8s linear infinite;
  border: 2px solid #d8b4fe;
  border-top-color: #6d28d9;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

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

.cert-meta-row .badge {
  align-items: center;
  display: inline-flex;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 10px;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.cert-group-summary {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 0;
}

.cert-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 20px 22px 8px;
}

.result-card .cert-summary-grid div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 82px;
  padding: 13px;
}

.cert-history-block {
  border: 0;
  padding: 18px 22px 22px;
}

.cert-history-block summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 12px;
}

.cert-history-table {
  overflow-x: auto;
}

.cert-history-table table {
  min-width: 860px;
}

.cert-history-table th,
.cert-history-table td {
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

.cert-history-table a {
  color: var(--blue);
  font-weight: 800;
}

.history-step {
  font-weight: 800;
  white-space: nowrap;
}

.history-note {
  color: var(--muted);
  max-width: 340px;
}

.cert-history-mobile-list {
  display: none;
}

.category-band {
  background: white;
}

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

.category-grid article {
  display: grid;
  gap: 9px;
  min-height: 132px;
  padding: 22px;
}

.category-grid strong {
  font-size: 28px;
}

.category-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.seo-band {
  background: #f7f9fc;
  padding: 72px 6vw;
}

.seo-keyword-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.seo-keyword-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.seo-keyword-grid h3 {
  color: var(--navy);
  font-size: 18px;
  margin: 0;
}

.seo-keyword-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.pricing-band {
  background: white;
  padding: 72px 6vw;
}

.seo-detail-hero {
  background: linear-gradient(110deg, #0b1f34, #24537f);
  color: white;
  padding: 72px 6vw 48px;
}

.seo-detail-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 18px;
}

.seo-detail-content {
  background: #f7f9fc;
  display: grid;
  gap: 14px;
  padding: 36px 6vw;
}

.seo-detail-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.seo-detail-card h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.seo-detail-card dl {
  display: grid;
  gap: 10px 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.seo-detail-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.seo-detail-card dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.seo-hidden-search {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

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

.plan-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.plan-grid span {
  color: #0f8a66;
  font-size: 13px;
  font-weight: 900;
}

.plan-grid h3 {
  font-size: 20px;
  margin: 8px 0 14px;
}

.plan-grid ul {
  color: #43515f;
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.empty {
  background: white;
  border: 1px dashed #b7c2cc;
  border-radius: 8px;
  color: var(--muted);
  padding: 36px;
  text-align: center;
}

.empty-lead {
  color: var(--ink);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: left;
}

.empty-lead h3 {
  font-size: 24px;
  margin: 0;
}

.empty-lead p,
.empty-lead ul {
  color: #43515f;
  margin-bottom: 0;
  max-width: 620px;
  width: 100%;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.empty-actions button,
.empty-actions a,
.radio-check-button {
  background: #eef5ff;
  border: 1px solid #b8d7ff;
  border-radius: 7px;
  color: #165196;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 12px;
}

.feedback-action {
  background: #f2fbf7;
  border-color: #a7e4c9;
  color: #08724f;
}

.floating-feedback-button {
  background: #0b6f52;
  border: 0;
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 14px 34px rgba(11, 111, 82, 0.24);
  color: white;
  font-weight: 900;
  min-height: 48px;
  padding: 0 18px;
  position: fixed;
  right: 22px;
  z-index: 20;
}

.feedback-dialog {
  max-width: 760px;
}

.policy-dialog {
  max-width: 920px;
}

.policy-modal-content {
  border-top: 1px solid var(--line);
  color: #43515f;
  display: grid;
  gap: 10px;
  line-height: 1.7;
  max-height: min(68vh, 720px);
  overflow: auto;
  padding-top: 18px;
}

.policy-modal-content h2 {
  color: var(--ink);
  font-size: 21px;
  margin: 18px 0 0;
}

.policy-modal-content h3 {
  color: var(--ink);
  font-size: 16px;
  margin: 10px 0 0;
}

.policy-modal-content p {
  margin: 0;
}

.policy-modal-content ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
}

.policy-modal-content a {
  color: var(--blue);
  font-weight: 900;
}

.policy-modal-content .policy-table {
  min-width: 680px;
}

.feedback-intro {
  color: #43515f;
  line-height: 1.6;
  margin: 0;
}

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

.feedback-form label {
  color: #43515f;
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
}

.feedback-form textarea {
  line-height: 1.5;
  resize: vertical;
}

.feedback-full {
  grid-column: span 2;
}

.feedback-form button {
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  color: white;
  font-weight: 800;
  grid-column: span 2;
  min-height: 46px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(9, 18, 29, 0.46);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 30;
}

.login-modal {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  max-height: calc(100vh - 48px);
  max-width: 920px;
  overflow: auto;
  padding: 26px;
  width: 100%;
}

.modal-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.icon-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 24px;
  height: 40px;
  line-height: 1;
  width: 40px;
}

.login-form,
.signup-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr auto;
}

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

.signup-form .company-field {
  grid-column: span 2;
}

.agreement-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-column: span 2;
  padding: 14px;
}

.checkbox-row {
  align-items: flex-start !important;
  display: flex !important;
  gap: 9px !important;
  line-height: 1.45;
}

.checkbox-row input {
  margin-top: 3px;
}

.checkbox-row a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-preview {
  border-top: 1px solid var(--line);
  color: #43515f;
  padding-top: 10px;
}

.terms-preview summary {
  color: #24537f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.terms-preview div {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.terms-preview strong {
  color: var(--ink);
  font-size: 13px;
}

.terms-preview p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 6px;
}

.auth-tabs {
  background: #f2f6fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #43515f;
  font-weight: 800;
  min-height: 40px;
}

.auth-tabs button.active {
  background: white;
  box-shadow: 0 4px 14px rgba(22, 34, 48, 0.08);
  color: var(--blue);
}

.signup-form button,
.login-form button {
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  color: white;
  font-weight: 800;
  min-height: 46px;
  padding: 0 22px;
}

.signup-form button {
  grid-column: span 2;
}

.login-modal.signup-mode {
  max-width: 654px;
  padding: 30px 34px;
}

.login-modal.signup-mode .modal-head .eyebrow,
.login-modal.signup-mode .auth-tabs,
.login-modal.signup-mode .auth-message {
  display: none;
}

.login-modal.signup-mode .modal-head {
  justify-content: center;
  position: relative;
}

.login-modal.signup-mode .modal-head h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

.login-modal.signup-mode .icon-button {
  position: absolute;
  right: 0;
  top: 0;
}

.cert-signup-form {
  color: #151d2a;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  justify-items: stretch;
  width: 100%;
}

.cert-signup-form .signup-title {
  display: none;
}

.cert-signup-form .company-field {
  grid-column: auto;
}

.signup-section {
  border: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.signup-section legend {
  color: #151d2a;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 0;
}

.signup-row {
  align-items: center;
  color: #151d2a;
  display: grid;
  font-size: 16px;
  font-weight: 800;
  gap: 18px;
  grid-template-columns: 126px minmax(0, 1fr);
  min-width: 0;
  width: 100%;
}

.signup-row > span:first-child {
  min-width: 0;
}

.signup-row input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfd5dc;
  border-radius: 0;
  color: #151d2a;
  font: inherit;
  font-weight: 500;
  min-height: 42px;
  outline: 0;
  padding: 0;
  width: 100%;
}

.signup-row input::placeholder {
  color: #8b949e;
}

.signup-row input:focus {
  border-bottom-color: #e5661d;
}

.password-field {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.password-field input {
  grid-column: 1 / -1;
  grid-row: 1;
  padding-right: 42px;
}

.field-icon-button {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  color: #828a92 !important;
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  height: 30px;
  justify-content: center;
  min-height: 30px !important;
  padding: 0 !important;
  width: 30px;
}

.field-icon-button svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.field-icon-button .eye-icon {
  display: none;
}

.field-icon-button .eye-off-icon {
  display: block;
}

.field-icon-button.is-visible .eye-icon {
  display: block;
}

.field-icon-button.is-visible .eye-off-icon {
  display: none;
}

.field-help {
  color: #e5661d;
  font-size: 13px;
  font-weight: 700;
  margin: -4px 0 0 144px;
}

.signup-type-row {
  align-items: center;
}

.signup-type-toggle {
  border: 1px solid #222;
  border-radius: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  width: 100%;
}

.signup-type-toggle button {
  background: white;
  border: 0;
  color: #151d2a;
  font-size: 16px;
  font-weight: 800;
  grid-column: auto;
  min-height: 50px;
}

.signup-type-toggle button + button {
  border-left: 1px solid #222;
}

.signup-type-toggle button.active {
  background: #3498db;
  color: white;
}

.company-type-row {
  align-items: start;
}

.company-type-row > span:first-child {
  padding-top: 8px;
}

.company-type-options {
  border-bottom: 1px solid #cfd5dc;
  display: grid;
  gap: 8px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px 0 12px;
}

.company-type-options label {
  align-items: center;
  color: #151d2a;
  display: flex;
  font-size: 15px;
  font-weight: 800;
  gap: 8px;
  min-height: 28px;
}

.company-type-options input {
  appearance: none;
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  box-sizing: border-box;
  flex: 0 0 20px;
  height: 20px;
  margin: 0;
  max-height: 20px;
  max-width: 20px;
  min-height: 20px;
  min-width: 20px;
  width: 20px;
}

.company-type-options input:checked {
  background: #3498db;
  border-color: #3498db;
  box-shadow: inset 0 0 0 4px white;
}

.cert-signup-form .agreement-box {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfd5dc;
  border-radius: 0;
  gap: 12px;
  grid-column: auto;
  padding: 0 0 12px;
}

.cert-signup-form .checkbox-row {
  align-items: center !important;
  color: #151d2a;
  display: grid !important;
  font-size: 16px;
  font-weight: 700;
  gap: 8px !important;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  line-height: 1.4;
}

.cert-signup-form .checkbox-row input {
  appearance: none;
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  height: 20px;
  margin: 0;
  width: 20px;
}

.cert-signup-form .checkbox-row input:checked {
  background: #3498db;
  border-color: #3498db;
  box-shadow: inset 0 0 0 4px white;
}

.cert-signup-form .checkbox-row b {
  color: #238be0;
}

.cert-signup-form .checkbox-row em {
  color: #8b949e;
  font-style: normal;
}

.agree-all-row {
  font-weight: 900 !important;
}

.terms-link {
  color: #6c7480 !important;
  font-size: 14px;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.age-notice {
  color: #8b949e;
  font-size: 14px;
  font-weight: 800;
  margin: 4px 0 0;
}

.cert-signup-form > #signup-submit {
  background: #d8dce2;
  border: 0;
  border-radius: 3px;
  color: #9aa1a9;
  font-size: 16px;
  font-weight: 800;
  grid-column: auto;
  min-height: 60px;
}

.cert-signup-form > #signup-submit:not(:disabled) {
  background: #3498db;
  color: white;
}

.auth-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.site-footer {
  align-items: center;
  background: #102235;
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px 6vw;
}

.site-footer p {
  color: #c8d4df;
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.site-footer a {
  color: #eaf2ff;
  font-size: 14px;
  font-weight: 800;
}

.policy-page {
  background: #f7f9fc;
  min-height: calc(100vh - 72px);
}

.mypage-page {
  background: #f7f9fc;
  min-height: calc(100vh - 72px);
  padding: 42px 6vw 72px;
}

.mypage-hero {
  display: grid;
  gap: 8px;
  margin: 0 auto 24px;
  max-width: 1040px;
}

.mypage-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 0;
}

.mypage-hero p {
  color: var(--muted);
  margin: 0;
}

.mypage-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 24px;
  max-width: 1040px;
}

.mypage-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.mypage-grid span,
.mypage-item span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.mypage-grid strong {
  font-size: 26px;
}

.mypage-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin: 0 auto 20px;
  max-width: 1040px;
  padding: 22px;
}

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

.mypage-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

.mypage-item div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mypage-item strong {
  overflow-wrap: anywhere;
}

.mypage-item p,
.mypage-item small,
.mypage-empty {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.policy-hero {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 64px 6vw 34px;
}

.policy-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 12px;
}

.policy-hero p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 760px;
}

.policy-content {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 28px auto 64px;
  max-width: 920px;
  padding: 30px;
}

.policy-content h2 {
  font-size: 22px;
  margin: 18px 0 0;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content h3 {
  font-size: 17px;
  margin: 10px 0 0;
}

.policy-content p {
  color: #43515f;
  line-height: 1.75;
  margin: 0;
}

.policy-content ol {
  color: #43515f;
  display: grid;
  gap: 7px;
  line-height: 1.7;
  margin: 0;
  padding-left: 22px;
}

.policy-content li {
  padding-left: 2px;
}

.policy-table-wrap {
  overflow-x: auto;
}

.policy-table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.policy-table th,
.policy-table td {
  border-bottom: 1px solid var(--line);
  color: #223041;
  font-size: 15px;
  line-height: 1.65;
  padding: 14px 12px;
  vertical-align: middle;
}

.policy-table th {
  background: #f8fafc;
  border-top: 2px solid #5b6470;
  font-weight: 900;
  text-align: center;
}

.policy-content a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-mode {
  background: #f6f8fb;
}

.admin-hero {
  background: var(--navy);
  color: white;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  min-height: 460px;
  padding: 86px 6vw 68px;
}

.admin-entry-card,
.admin-login-card {
  align-self: center;
  background: white;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.admin-entry-card strong {
  font-size: 22px;
}

.admin-entry-card button {
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 800;
  min-height: 44px;
}

.admin-entry-card p,
.admin-login-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-db-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-feedback-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-db-search,
.admin-feedback-filter {
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
  margin-bottom: 16px;
  padding: 16px;
}

.admin-feedback-filter {
  grid-template-columns: minmax(160px, 220px) minmax(160px, 240px) auto;
}

.admin-db-search label,
.admin-feedback-filter label {
  color: #43515f;
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
}

.admin-db-search input,
.admin-db-search select,
.admin-feedback-filter select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.admin-db-search button,
.admin-feedback-filter button {
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  color: white;
  font-weight: 800;
  min-height: 42px;
  padding: 0 18px;
}

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

.feedback-admin-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.feedback-admin-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.feedback-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 6px;
}

.feedback-admin-head h3 {
  font-size: 20px;
  margin: 0;
}

.feedback-status,
.feedback-reply-needed {
  background: #e8f7f1;
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.feedback-reply-needed {
  background: #fff4df;
  color: var(--amber);
  margin-left: 6px;
}

.feedback-content {
  color: #2c3a47;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}

.feedback-admin-detail {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.feedback-admin-detail div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.feedback-admin-detail dt,
.feedback-admin-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.feedback-admin-detail dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.feedback-admin-form {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  padding-top: 14px;
}

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

.feedback-admin-form select,
.feedback-admin-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
}

.feedback-admin-form textarea {
  line-height: 1.45;
  resize: vertical;
}

.feedback-admin-form button {
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  color: white;
  font-weight: 800;
  min-height: 40px;
  padding: 0 16px;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 0.9fr 1.1fr;
}

.admin-card {
  padding: 22px;
}

.usage-list {
  list-style: none;
  padding-left: 0 !important;
}

.usage-list li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.usage-list li:last-child {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 1040px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .admin-metrics,
  .admin-db-metrics,
  .admin-feedback-metrics,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .topbar {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding-bottom: 16px;
    padding-top: 16px;
    position: sticky;
  }

  .environment-badge {
    justify-self: start;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .public-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .topbar.nav-open .public-nav {
    display: flex;
  }

  .hero,
  .layout,
  .task-board,
  .admin-db-search,
  .admin-feedback-filter,
  .feedback-admin-form,
  .admin-hero,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 44px;
    padding-top: 44px;
  }

  .filters {
    position: static;
  }

  .filters summary {
    align-items: center;
    display: flex;
    min-height: 40px;
  }

  .filters details:not([open]) h3,
  .filters details:not([open]) label,
  .filters details:not([open]) button {
    display: none;
  }

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

  .login-form,
  .signup-form,
  .feedback-form,
  .feedback-admin-detail {
    grid-template-columns: 1fr;
  }

  .signup-form .company-field,
  .feedback-full,
  .feedback-form button,
  .agreement-box,
  .signup-form button {
    grid-column: auto;
  }

  .login-modal.signup-mode {
    max-width: min(654px, calc(100vw - 32px));
  }

  .signup-row {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .field-help {
    margin-left: 0;
  }

  .company-type-options {
    grid-template-columns: 1fr;
  }

  .cert-signup-form .checkbox-row {
    align-items: start !important;
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .terms-link {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero,
  .member-workspace,
  .results-wrap,
  .category-band,
  .seo-band,
  .pricing-band,
  .policy-hero,
  .admin-hero,
  .admin-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 38px;
  }

  .brand {
    min-width: 128px;
  }

  .brand-logo {
    height: 34px;
    width: 128px;
  }

  .hero {
    gap: 16px;
    min-height: auto;
    padding-bottom: 24px;
    padding-top: 26px;
  }

  .hero-logo {
    margin-bottom: 10px;
    max-width: min(300px, 72vw);
  }

  .lead {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 0;
  }

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

  .search-panel,
  .login-modal {
    padding: 18px;
  }

  .floating-feedback-button {
    bottom: 14px;
    font-size: 13px;
    min-height: 44px;
    padding: 0 13px;
    right: 14px;
  }

  .floating-feedback-button::before {
    content: "의견";
  }

  .floating-feedback-button {
    color: transparent;
    width: 54px;
  }

  .floating-feedback-button::before {
    color: white;
  }

  .search-box {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 60px;
    padding: 10px;
  }

  .search-box input {
    font-size: 16px;
  }

  .search-mode-row,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .search-box button {
    grid-column: 1 / -1;
    min-height: 52px;
    width: 100%;
  }

  .section-heading,
  .result-card {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .result-card dl,
  .seo-detail-card dl,
  .category-grid,
  .mypage-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .mypage-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .results-wrap {
    padding-top: 32px;
  }

  .layout {
    gap: 14px;
  }

  .filters {
    padding: 12px 14px;
  }

  .cert-group-head {
    padding: 16px;
  }

  .cert-title-row h3 {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .cert-meta-row .badge {
    font-size: 12px;
    white-space: normal;
  }

  .cert-meta-row .badge.renew,
  .cert-meta-row .badge.valid,
  .cert-meta-row .safety-link {
    display: none;
  }

  .cert-summary-grid {
    gap: 8px;
    padding: 12px 16px 6px;
  }

  .result-card .cert-summary-grid div {
    min-height: auto;
    padding: 11px;
  }

  .mobile-secondary-detail {
    display: none;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin: 12px 16px 0;
    padding-top: 12px;
  }

  .action-button,
  .action-link,
  .empty-actions button,
  .empty-actions a,
  .radio-check-button {
    justify-content: center;
    min-height: 42px;
    width: 100%;
  }

  .secondary-actions {
    display: block;
  }

  .secondary-actions summary {
    align-items: center;
    background: #f6f8fb;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #24537f;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
  }

  .secondary-action-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
  }

  .cert-history-block {
    padding: 14px 16px 16px;
  }

  .cert-history-block summary {
    background: #f6f8fb;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #24537f;
    font-size: 14px;
    margin-bottom: 0;
    min-height: 42px;
    padding: 11px 12px;
  }

  .cert-history-block[open] summary {
    margin-bottom: 10px;
  }

  .cert-history-table {
    display: none;
  }

  .cert-history-mobile-list {
    display: grid;
    gap: 8px;
  }

  .cert-history-mobile-card {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 12px;
  }

  .cert-history-mobile-card dl {
    display: grid;
    gap: 7px;
    margin: 0;
  }

  .cert-history-mobile-card div {
    display: grid;
    gap: 3px;
  }

  .cert-history-mobile-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .cert-history-mobile-card dd {
    margin: 0;
  }

  .feedback-form label:nth-of-type(2) {
    order: 1;
  }

  .feedback-form .feedback-full {
    order: 2;
  }

  .feedback-form label:nth-of-type(1) {
    order: 0;
  }

  .feedback-form label:nth-of-type(4),
  .feedback-form label:nth-of-type(5),
  .feedback-form label:nth-of-type(6) {
    order: 3;
  }

  .feedback-form button {
    order: 4;
  }

  .site-footer {
    align-items: flex-start;
    display: grid;
    padding: 24px 20px 76px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .policy-content {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin: 0;
    padding: 24px 20px 42px;
  }
}
