:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: #d8d8df;
  --blue: #006edb;
  --blue-dark: #004f9f;
  --mint: #0f9f8f;
  --coral: #e75d4a;
  --gold: #b88724;
  --panel: rgba(255, 255, 255, 0.82);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  background: #fff;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 252, 0.74);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.brand,
.nav-menu {
  display: flex;
  align-items: center;
}

.brand {
  gap: 8px;
  font-weight: 700;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), #64748b);
}

.nav-menu {
  gap: 26px;
  color: #3f3f46;
}

.nav-menu a {
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 9px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 6px 0;
}

.section-snap {
  min-height: calc(100vh - 48px);
  padding: 72px max(24px, calc((100vw - 1120px) / 2));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 56px;
  background:
    radial-gradient(circle at 82% 18%, rgba(15, 159, 143, 0.16), transparent 32%),
    linear-gradient(180deg, #fbfbfd 0%, #f2f4f8 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 520px;
  color: #424247;
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn,
.download-btn,
.card-actions a,
.card-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 18px;
  cursor: pointer;
}

.btn.primary,
.download-btn {
  color: #fff;
  background: var(--blue);
}

.btn.primary:hover,
.download-btn:hover {
  background: var(--blue-dark);
}

.btn.ghost,
.card-actions a,
.card-actions button {
  color: var(--blue);
  background: transparent;
}

.btn.ghost {
  border-color: rgba(0, 110, 219, 0.35);
}

.hero-device {
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
}

.download-unavailable,
.download-btn.unavailable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(133, 146, 166, 0.35);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(133, 146, 166, 0.1);
  font-weight: 700;
  cursor: not-allowed;
}

.hero-toolkit-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: #0b0b0c;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.hero-toolkit-visual img {
  width: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
}

.hero-toolkit-visual figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #fff;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(14px);
}

.hero-toolkit-visual figcaption span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.device-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #202938;
}

.device-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff6159;
}

.device-bar span:nth-child(2) {
  background: #ffbd2e;
}

.device-bar span:nth-child(3) {
  background: #28c840;
}

.device-screen {
  position: relative;
  min-height: 478px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(0, 110, 219, 0.38), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(231, 93, 74, 0.28), transparent 32%),
    #111827;
}

.signal-line {
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(255, 255, 255, 0.16) 22% 23%, transparent 23% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 1px, transparent 1px, transparent 24px);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.signal-grid span,
.terminal-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}

.signal-grid span {
  height: 92px;
}

.terminal-card {
  position: absolute;
  right: 42px;
  bottom: 42px;
  width: min(340px, calc(100% - 84px));
  color: #fff;
  padding: 22px;
  backdrop-filter: blur(18px);
}

.terminal-card p {
  color: rgba(255, 255, 255, 0.72);
}

.terminal-card small {
  color: #8de6d9;
}

.showcase {
  background: #fff;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head.compact p:last-child {
  color: var(--muted);
  font-size: 17px;
}

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

.program-card {
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  background: var(--soft);
}

.program-card.featured {
  grid-row: span 2;
}

.program-visual {
  position: relative;
  height: 230px;
  min-height: 230px;
  padding: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8ebf0, #f8f8fa);
}

.program-visual img {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid rgba(30, 41, 59, 0.12);
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 14px 30px rgba(30, 41, 59, 0.14);
}

.visual-finder {
  background:
    linear-gradient(135deg, transparent 18%, rgba(255,255,255,0.78) 18% 31%, transparent 31%),
    radial-gradient(circle at 68% 28%, rgba(0, 110, 219, 0.75), transparent 17%),
    linear-gradient(150deg, #dbeafe, #f8fafc 48%, #a7f3d0);
}

.visual-clip {
  position: relative;
  height: 320px;
  min-height: 320px;
  padding: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #e9e7ff, #f7f8fc 58%, #dff7f3);
}

.visual-clip img {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid rgba(30, 41, 59, 0.12);
  border-radius: 10px;
  object-fit: cover;
  object-position: left top;
  box-shadow: 0 18px 34px rgba(30, 41, 59, 0.16);
}

.program-screen-label {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 37, 84, 0.78);
  box-shadow: 0 6px 20px rgba(23, 37, 84, 0.2);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
}

.visual-screen {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(0, 110, 219, 0.72)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.24) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 26px);
}

.program-copy {
  padding: 24px;
}

.program-copy h3 {
  font-size: 22px;
}

.program-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.tag {
  color: var(--blue) !important;
  font-size: 13px;
  font-weight: 700;
}

.downloads {
  background: #f5f5f7;
}

.download-toolbar {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 22px;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow-x: auto;
}

.chip {
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 9px 15px;
  cursor: pointer;
}

.chip.active {
  color: #fff;
  background: var(--ink);
}

.download-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
}

.download-row[hidden] {
  display: none;
}

.download-row h3 {
  margin: 8px 0 4px;
}

.download-row h3 small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.inline-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.platform-page {
  min-height: calc(100vh - 48px);
  padding: 80px max(24px, calc((100vw - 1120px) / 2));
  background:
    radial-gradient(circle at 78% 16%, rgba(0, 110, 219, 0.11), transparent 30%),
    linear-gradient(180deg, #fbfbfd 0%, #f1f3f7 100%);
}

.platform-hero {
  max-width: 820px;
  margin-bottom: 42px;
}

.platform-hero h1 {
  font-size: clamp(48px, 8vw, 84px);
}

.platform-hero > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

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

.platform-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.07);
}

.platform-card.available {
  color: #fff;
  background: linear-gradient(145deg, #111827, #1f2937);
}

.platform-card h2 {
  margin: 26px 0 14px;
  font-size: 38px;
}

.platform-card p {
  flex: 1;
  color: var(--muted);
  line-height: 1.65;
}

.platform-card.available p {
  color: rgba(255, 255, 255, 0.72);
}

.platform-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #4b5563;
  background: #eceef2;
  font-size: 12px;
  font-weight: 800;
}

.platform-card.available .platform-status {
  color: #0c4a3f;
  background: #a7f3d0;
}

.platform-back {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.download-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.os-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.os-badge.windows {
  background: var(--blue);
}

.os-badge.macos {
  background: var(--ink);
}

.os-badge.linux {
  background: var(--mint);
}

.lab-note {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 42px;
  background: #101114;
  color: #fff;
}

.note-copy p:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  line-height: 1.6;
}

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

.review-strip article {
  min-height: 240px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.review-strip span {
  color: #8de6d9;
  font-weight: 800;
}

.review-strip p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.board {
  background: #fff;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.board-form,
.feedback-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.06);
}

.board-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

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

.board-form span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.board-form input,
.board-form select,
.board-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfd;
}

.board-form textarea {
  resize: vertical;
}

.btn.full {
  width: 100%;
}

.feedback-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.feedback-card {
  padding: 18px;
}

.feedback-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feedback-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.feedback-card p {
  color: var(--muted);
  line-height: 1.55;
}

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

.type-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--coral);
}

.type-pill[data-type="요청"] {
  background: var(--blue);
}

.type-pill[data-type="리뷰"] {
  background: var(--gold);
}

.type-pill[data-type="공지사항"] {
  background: var(--blue-dark);
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - 1120px) / 2));
  color: #6e6e73;
  background: #f5f5f7;
  font-size: 13px;
}

.footer p {
  margin-bottom: 0;
}

.business-info {
  display: flex;
  gap: 6px 16px;
  margin-top: 10px;
  font-style: normal;
  line-height: 1.6;
  flex-wrap: wrap;
}

.business-info a,
.footer-links a {
  text-underline-offset: 3px;
}

.business-info a:hover,
.footer-links a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(780px, calc(100vh - 32px));
  border: 0;
  border-radius: 20px;
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.detail-header {
  padding: 42px 76px 34px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #172554, #006edb 58%, #0f9f8f);
}

.detail-header .eyebrow {
  color: #a7f3d0;
}

.detail-header h2 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 56px);
}

.detail-description {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.65;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 34px;
  padding: 36px 42px;
}

.detail-label {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-layout h3 {
  margin-bottom: 22px;
  font-size: 22px;
}

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

.usage-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px;
  border: 1px solid #e7e9ef;
  border-radius: 12px;
  background: #fbfbfd;
}

.usage-steps li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.usage-steps strong {
  display: block;
  margin: 1px 0 4px;
  font-size: 15px;
}

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

.detail-features > ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-features > ul li {
  position: relative;
  padding-left: 22px;
  color: #424247;
  line-height: 1.5;
}

.detail-features > ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 800;
}

.detail-note {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: #eef7ff;
}

.detail-note strong {
  display: block;
  margin-bottom: 5px;
  color: #174a78;
  font-size: 13px;
}

.detail-note p {
  margin: 0;
  color: #46647e;
  font-size: 12px;
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 42px;
  border-top: 1px solid #e7e9ef;
  background: #fbfbfd;
}

@media (max-width: 1080px) and (min-width: 861px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    inset: 48px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    background: rgba(250, 250, 252, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 14px 0;
  }

  .nav-toggle {
    display: block;
  }

  .section-snap {
    min-height: auto;
    padding: 64px 20px;
  }

  .hero,
  .lab-note,
  .board-layout {
    grid-template-columns: 1fr;
  }

  .hero-device {
    min-height: 420px;
    transform: none;
  }

  .hero-toolkit-visual {
    transform: none;
  }

  .hero-toolkit-visual img {
    min-height: 380px;
  }

  .device-screen {
    min-height: 378px;
    padding: 28px;
  }

  .terminal-card {
    right: 28px;
    bottom: 28px;
    width: min(320px, calc(100% - 56px));
  }

  .program-grid,
  .platform-grid,
  .review-strip {
    grid-template-columns: 1fr;
  }

  .program-card.featured {
    grid-row: auto;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .download-row,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 46px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .download-btn,
  .card-actions a,
  .card-actions button {
    width: 100%;
  }

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

  .visual-clip {
    height: 260px;
    min-height: 260px;
    padding: 10px;
  }

  .program-screen-label {
    right: 18px;
    bottom: 18px;
  }

  .detail-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }

  .detail-header,
  .detail-layout {
    padding: 28px 22px;
  }

  .detail-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 22px;
  }
}

.nav-auth {
  min-height: 28px;
  border: 1px solid rgba(0, 110, 219, 0.25);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(0, 110, 219, 0.06);
  padding: 4px 12px;
  cursor: pointer;
}

.auth-status {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.account {
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 110, 219, 0.11), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
}

.account-layout {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: 18px;
}

.account-form {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.06);
}

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

.account-form span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.account-form input,
.account-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfd;
}

.account-form input[readonly] {
  color: #6b7280;
  background: #f1f3f5;
  cursor: default;
}

.account-form-guide {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.account-form .password-field {
  position: relative;
  display: block;
}

.account-form .password-field input {
  padding-right: 68px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 56px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #687386;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--blue);
  background: rgba(0, 110, 219, 0.08);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}


.account-form textarea {
  resize: vertical;
}

.account-form .consent-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.account-form .consent-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.account-form .consent-field span {
  font-weight: 400;
}

.account-form .consent-field a,
.policy-card a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-page {
  min-height: calc(100vh - 48px);
  padding: 72px max(24px, calc((100vw - 920px) / 2));
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}

.policy-hero {
  margin-bottom: 32px;
}

.policy-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 72px);
}

.policy-hero > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.policy-hero .policy-effective {
  margin: 10px 0 0;
  font-size: 14px;
}

.policy-back-button {
  display: flex;
  width: min(100%, 320px);
  min-width: min(100%, 280px);
  margin-right: auto;
  margin-left: auto;
  justify-content: center;
  text-align: center;
}

.policy-bottom-actions {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 28px;
}

.policy-card {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.policy-card section + section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.policy-card h2 {
  margin-bottom: 16px;
  font-size: clamp(23px, 3vw, 30px);
}

.policy-card p,
.policy-card li {
  color: #4b5563;
  line-height: 1.75;
}

.policy-card ul {
  margin: 0;
  padding-left: 22px;
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

.policy-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.policy-table th,
.policy-table td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.policy-table th {
  background: var(--soft);
}

.policy-note {
  padding: 14px 16px;
  border-radius: 10px;
  background: #eef6ff;
}

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

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.type-pill[data-type="요청"] {
  background: var(--blue);
}

.type-pill[data-type="리뷰"] {
  background: var(--gold);
}

.install-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: 48px max(24px, calc((100vw - 760px) / 2));
  background: #f5f5f7;
}

.install-page h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
}

.install-page p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .nav-auth {
    width: fit-content;
    margin-top: 10px;
  }
}

.login-page {
  min-height: calc(100vh - 48px);
  padding: 72px max(24px, calc((100vw - 1120px) / 2));
  background:
    radial-gradient(circle at 82% 12%, rgba(15, 159, 143, 0.14), transparent 28%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}

.login-hero {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.login-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 7vw, 76px);
}

.login-hero p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.account-page-layout {
  align-items: start;
  margin-bottom: 28px;
}

.single-form-layout {
  max-width: 560px;
  grid-template-columns: 1fr;
}

.account-link-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.account-link-text a {
  color: var(--blue);
  font-weight: 700;
}

.license-panel {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: 18px;
  align-items: start;
}

.license-panel > div:first-child {
  padding: 8px 0;
}

.license-panel > div:first-child p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.license-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.standalone-license-panel {
  margin-top: 0;
}

.license-card {
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.06);
}

.license-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.license-card p {
  margin-bottom: 6px;
  color: var(--muted);
}

.license-card code {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.admin-icon-link {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff !important;
  background: var(--ink);
  padding: 5px 12px;
  font-weight: 700;
}

.admin-page {
  min-height: calc(100vh - 48px);
  padding: 58px max(20px, calc((100vw - 1180px) / 2));
  background: #f5f5f7;
}

.admin-head {
  margin-bottom: 24px;
}

.admin-head h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 6vw, 64px);
}

.admin-head p {
  color: var(--muted);
  font-size: 18px;
}

.admin-subnav {
  display: flex;
  gap: 8px;
  margin: -6px 0 22px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

.admin-subnav a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4b5563;
  background: #fff;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}

.admin-subnav a[aria-current="page"] {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

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

.admin-stat-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  padding: 20px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, .05);
}

.admin-stat-card strong {
  color: var(--ink);
  font-size: 32px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-panel-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.admin-panel-title h2 {
  margin: 0;
}

.admin-message {
  width: fit-content;
  margin-top: 14px !important;
  border-radius: 8px;
  color: var(--ink) !important;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.admin-panel,
.admin-board-card {
  margin-bottom: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.06);
}

.admin-inline-form,
.admin-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.admin-inline-form label,
.admin-filter label {
  display: grid;
  gap: 6px;
}

.admin-inline-form span,
.admin-filter span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.admin-inline-form input,
.admin-inline-form select,
.admin-inline-form textarea,
.admin-filter input,
.admin-filter select,
.admin-table input,
.admin-board-card input,
.admin-board-card select,
.admin-board-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
  padding: 10px;
}

.admin-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  min-height: 42px;
}

.admin-check input {
  width: auto;
}

.admin-form-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.admin-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #4b5563;
  font-size: 13px;
}

.admin-table code {
  color: var(--muted);
}

.admin-mini-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.partial-refund-form {
  align-items: end;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.partial-refund-form label {
  display: grid;
  gap: 4px;
}

.partial-refund-form label span,
.refund-quote {
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.refund-quote {
  min-width: 130px;
  padding: 9px 0;
}

.refund-history {
  margin-top: 8px;
}

.refund-history summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.refund-history-item {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  border-left: 2px solid var(--line);
  padding-left: 8px;
  font-size: 12px;
}

.refund-error {
  display: block;
  color: #b42318;
}

.payment-order-link {
  color: var(--blue);
  font-weight: 700;
}

.payment-list-heading {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: baseline;
  line-height: 1.25;
  white-space: nowrap;
}

.admin-panel .payment-list-heading small {
  display: inline-block;
  flex: 0 0 auto;
  line-height: 1.5;
  vertical-align: baseline;
}

.admin-page-actions,
.payment-edit-summary,
.payment-refund-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.payment-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.payment-detail-heading {
  display: grid;
  gap: 4px;
}

.payment-detail-heading > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-detail-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.payment-detail-heading code {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.payment-detail-grid > div {
  min-width: 0;
  background: #fff;
  padding: 14px;
}

.payment-detail-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.payment-edit-summary span {
  border-radius: 8px;
  background: #f5f7fa;
  padding: 10px 12px;
}

.refund-action-panel p {
  color: var(--muted);
}

.payment-refund-form label {
  display: grid;
  gap: 5px;
}

.payment-refund-form input {
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
  padding: 10px;
}

.danger-zone {
  border-color: #f5b7bd;
  background: #fffafa;
}

@media (max-width: 860px) {
  .payment-detail-grid {
    grid-template-columns: 1fr;
  }
}

.admin-record-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-record {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
  padding: 14px;
}

.admin-record p {
  margin: 0 0 12px;
}

.admin-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.btn.danger {
  border-color: #f5b7bd;
  color: #b42332;
  background: #fff1f2;
}

.nav-menu a[aria-current="page"] {
  color: var(--blue);
  font-weight: 800;
}

.admin-panel h2 small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.accounting-workbook {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.accounting-workbook.is-selected {
  border-color: rgba(36, 99, 235, 0.45);
  background: #f8fbff;
}

.accounting-book-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.accounting-book-tabs a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfbfd;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 700;
}

.accounting-book-tabs a[aria-current="page"] {
  border-color: rgba(36, 99, 235, 0.45);
  color: var(--blue);
  background: #eef4ff;
}

.accounting-book-desc {
  margin: 12px 0 0;
  color: var(--muted);
}

.accounting-entry-form {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.accounting-wide {
  grid-column: span 2;
}

.accounting-table {
  min-width: 1180px;
}

.common-code-group.is-selected {
  border-color: rgba(36, 99, 235, 0.45);
  background: #f8fbff;
}

.accounting-app-body {
  margin: 0;
  background: #e9e9e9;
  color: #222;
  font-family: "Malgun Gothic", Arial, sans-serif;
}

.accounting-app-shell {
  display: grid;
  grid-template-columns: 154px minmax(1120px, 1fr);
  min-height: 100vh;
  border-top: 10px solid #2d2d2d;
}

.accounting-side {
  border-right: 1px dotted #9b9b9b;
  background: #f5f5f5;
}

.accounting-side-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  color: #fff;
  background: linear-gradient(#ff9d22, #f36f00);
  font-size: 12px;
  font-weight: 800;
}

.accounting-tree {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  font-size: 12px;
}

.accounting-tree a {
  display: block;
  padding: 3px 8px 3px 2px;
  color: #333;
  text-decoration: none;
}

.accounting-tree a[aria-current="page"],
.accounting-tree a:hover {
  border: 1px solid #cfcfcf;
  background: #fff;
}

.accounting-workspace {
  min-width: 0;
  background: #fff;
}

.accounting-tabbar {
  height: 44px;
  border-bottom: 1px solid #ff9d00;
  padding-left: 30px;
  background: #fff;
}

.accounting-tabbar span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 28px;
  margin-top: 14px;
  border: 1px solid #ff9d00;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  padding: 0 12px;
  color: #f36f00;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.accounting-screen-title {
  padding: 8px 32px;
  font-size: 14px;
  font-weight: 800;
}

.accounting-message {
  margin: 0 32px 8px;
  border: 1px solid #ffbd4a;
  border-radius: 3px;
  background: #fff8e6;
  padding: 7px 10px;
  color: #7a4b00;
  font-size: 12px;
}

.accounting-filterbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, auto)) minmax(230px, 1fr) minmax(190px, auto) minmax(210px, auto) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 3px 32px;
  border-top: 1px solid #f8b33c;
  border-bottom: 1px solid #f8b33c;
  background: linear-gradient(#ffd66b, #f6a619);
  font-size: 12px;
}

.accounting-filterbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.accounting-filterbar b {
  font-size: 11px;
}

.accounting-filterbar input,
.accounting-filterbar select,
.accounting-detail-form input,
.accounting-detail-form select,
.accounting-manage-form input,
.accounting-manage-form select {
  width: 100%;
  min-width: 0;
  height: 22px;
  border: 1px solid #b9b9b9;
  border-radius: 2px;
  background: #fff;
  padding: 1px 6px;
  font-size: 12px;
}

.accounting-filterbar input[type="date"],
.accounting-detail-form input[type="date"] {
  padding-right: 4px;
  font-variant-numeric: tabular-nums;
}

.accounting-small-btn,
.accounting-save-btn,
.accounting-link-btn {
  border: 1px solid #b6c5d7;
  border-radius: 3px;
  color: #0976ae;
  background: linear-gradient(#fff, #e9f4ff);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.accounting-save-btn {
  width: 100%;
  margin-top: 4px;
  border-color: #e18a00;
  color: #fff;
  background: linear-gradient(#ffb63a, #f18a00);
}

.accounting-small-btn:disabled,
.accounting-save-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.accounting-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 10px 32px;
  color: #333;
  font-size: 12px;
}

.accounting-summary-strip span {
  font-weight: 800;
}

.accounting-summary-strip a {
  margin-left: auto;
  color: #0784bd;
  font-weight: 800;
  text-decoration: none;
}

.accounting-split {
  display: grid;
  grid-template-columns: minmax(780px, 1fr) 374px;
  gap: 10px;
  padding: 0 32px 14px;
}

.accounting-grid-panel,
.accounting-detail-panel,
.accounting-management {
  border: 1px solid #d0d0d0;
  background: #efefef;
}

.accounting-detail-panel {
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.accounting-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-bottom: 1px solid #f6b135;
  color: #fff;
  background: linear-gradient(#ffc247, #f39a00);
  font-size: 12px;
  font-weight: 800;
}

.accounting-grid-wrap {
  min-height: 330px;
  overflow: auto;
  background: #e9e9e9;
}

.accounting-ledger-grid {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
}

.accounting-ledger-grid th,
.accounting-ledger-grid td {
  border: 1px solid #d9d9d9;
  padding: 5px 6px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.accounting-ledger-grid th {
  color: #0084bf;
  background: #f8f8f8;
  text-align: center;
  font-weight: 800;
}

.accounting-ledger-grid td:nth-child(8),
.accounting-ledger-grid td:nth-child(9),
.accounting-ledger-grid td:nth-child(10) {
  text-align: right;
}

.accounting-empty {
  padding: 18px;
  color: #777;
  text-align: center;
  font-size: 12px;
}

.accounting-detail-form {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  font-size: 12px;
}

.accounting-detail-form label,
.accounting-manage-form label {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-weight: 800;
}

.accounting-money-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.accounting-management {
  margin: 0 32px 14px;
  background: #fff;
}

.accounting-manage-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) auto auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  font-size: 12px;
}

.accounting-type-list {
  display: grid;
  gap: 1px;
}

.accounting-type-row {
  grid-template-columns: minmax(180px, 1.3fr) 120px 70px 80px minmax(240px, 2fr) auto;
  border-bottom: 1px solid #eee;
}

.accounting-book-edit-form {
  grid-template-columns: minmax(200px, 1.2fr) 120px 80px 80px minmax(280px, 2fr) auto;
}

.accounting-code-group-row {
  grid-template-columns: minmax(180px, 1.1fr) minmax(160px, 1.1fr) 80px 80px minmax(260px, 2fr) auto auto;
  border-bottom: 1px solid #eee;
}

.accounting-code-group-row.is-selected {
  background: #fff8e6;
}

.accounting-code-row {
  grid-template-columns: 140px minmax(180px, 1.2fr) 130px 80px 80px minmax(260px, 2fr) auto;
  border-bottom: 1px solid #eee;
}

.accounting-master-grid {
  min-width: 980px;
}

.accounting-check {
  display: flex !important;
  gap: 6px !important;
  align-items: center;
}

.accounting-check input {
  width: auto;
}

@media (max-width: 1180px) {
  .accounting-app-shell {
    grid-template-columns: 1fr;
  }

  .accounting-side {
    border-right: 0;
    border-bottom: 1px dotted #9b9b9b;
  }

  .accounting-tree {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
  }

  .accounting-filterbar,
  .accounting-split,
  .accounting-manage-form,
  .accounting-type-row {
    grid-template-columns: 1fr;
  }

  .accounting-split,
  .accounting-management,
  .accounting-message,
  .accounting-summary-strip,
  .accounting-filterbar {
    margin-left: 12px;
    margin-right: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .accounting-split {
    padding-bottom: 12px;
  }
}

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

.admin-board-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.admin-board-card h2 {
  margin: 10px 0 6px;
  font-size: 26px;
}

.admin-board-card header p,
.admin-board-message {
  color: var(--muted);
  line-height: 1.6;
}

.admin-replies {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.admin-replies h3 {
  margin: 0;
  font-size: 18px;
}

.admin-reply {
  border-left: 3px solid var(--blue);
  background: #f8fafc;
  padding: 12px;
}

.admin-reply span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-reply p {
  margin: 8px 0 0;
  color: #424247;
}

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

.payment-form {
  gap: 16px;
}

.purchase-policy-notice {
  margin: 0;
  border-radius: 10px;
  color: var(--muted);
  background: #f8fafc;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.purchase-policy-notice a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.refund-policy-formula {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  border: 1px solid #dbe5f5;
  border-radius: 12px;
  color: #243b64;
  background: #f5f8fd;
  padding: 18px;
  line-height: 1.6;
}

.refund-policy-formula span {
  color: var(--muted);
  font-size: 13px;
}

.license-extension-dialog {
  width: min(680px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  padding: 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.license-extension-dialog::backdrop {
  background: rgba(16, 24, 40, .48);
  backdrop-filter: blur(2px);
}

.license-extension-dialog form {
  display: grid;
  gap: 20px;
  padding: 28px 30px 24px;
}

.license-extension-dialog header h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.25;
}

.license-extension-dialog header p:last-child,
.license-extension-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.license-extension-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.license-extension-summary > div {
  min-width: 0;
  background: #f9fafb;
  padding: 15px;
}

.license-extension-summary dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.license-extension-summary dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.license-extension-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 600px) {
  .license-extension-dialog {
    overflow-y: auto;
  }

  .license-extension-dialog form {
    padding: 22px 20px 20px;
  }

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

.plan-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-options legend {
  margin-bottom: 8px;
  color: #50576a;
  font-size: 13px;
  font-weight: 700;
}

.plan-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.plan-option:has(input:checked) {
  border-color: #f6c500;
  box-shadow: 0 0 0 2px rgba(246, 197, 0, .14);
}

.plan-option span,
.plan-option small {
  display: block;
}

.plan-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.plan-option b {
  color: #24283b;
  white-space: nowrap;
}

.kakao-pay {
  background: #fee500;
  color: #191919;
}

.kakao-pay:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.test-payment-trigger {
  justify-self: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  color: #98a2b3;
  background: transparent;
  cursor: pointer;
}

.test-payment-trigger:hover {
  color: var(--blue);
  background: #eef6ff;
}

.test-payment-trigger:disabled {
  opacity: .4;
  cursor: wait;
}

.payment-note,
.payment-result {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted);
}

.payment-note p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.payment-result.success {
  background: #ecfdf3;
  color: #176b3a;
}

.payment-result.error {
  background: #fff1f2;
  color: #b42332;
}

.payment-history {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.payment-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}

.payment-history-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .login-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .login-nav a {
    padding: 0;
  }

  .license-panel {
    grid-template-columns: 1fr;
  }

  .admin-inline-form,
  .admin-filter,
  .admin-reply-form {
    grid-template-columns: 1fr;
  }

  .accounting-entry-form,
  .accounting-wide {
    grid-template-columns: 1fr;
    grid-column: span 1;
  }

  .admin-stat-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-panel-title {
    display: grid;
    align-items: stretch;
  }
}

.renewal-notice {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid #f2d276;
  border-radius: 12px;
  color: #67510b;
  background: #fff9df;
  line-height: 1.5;
}

.renewal-notice span,
.renewal-notice small {
  display: block;
}

.renewal-notice small {
  color: #7a6728;
}

@media (max-width: 520px) {
  .login-page {
    padding: 52px 20px;
  }

  .login-nav {
    font-size: 12px;
    gap: 10px;
  }

  .admin-stat-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
