@font-face {
  font-family: "Paperlogy";
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-5Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Paperlogy";
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-7Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

:root{
  /* Align with other Edu Tools generators: white + mint */
  --bg0:#ffffff;
  --bg1:#f4fffb;
  --card:#ffffff;
  --ink:#111827;
  --muted:#5b6b86;
  --line: rgba(17,24,39,0.10);
  --soft: rgba(17,24,39,0.04);

  --mint: rgba(22,160,133,0.10);
  --brand:#16a085;
  --brand-dark:#0f7f6a;

  --ok:#22c55e;
  --danger:#ef4444;
  --shadow: 0 18px 46px rgba(17, 43, 68, 0.10);
  --r16:16px;
  --r20:20px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Paperlogy", "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(22, 160, 133, 0.10) 0%, rgba(22, 160, 133, 0) 42%),
    radial-gradient(circle at 88% 10%, rgba(15, 138, 115, 0.08) 0%, rgba(15, 138, 115, 0) 46%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

/* Sidebar nav (category linking like other Edu Tools) */
.sidebar{
  position: fixed;
  inset: 0 auto 0 0;
  width: 320px;
  max-width: calc(100% - 60px);
  background:
    radial-gradient(420px 280px at 20% 0%, rgba(233, 246, 228, 0.85), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #ffffff, #fbfbfb);
  border-right: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 22px 54px rgba(0,0,0,0.16);
  transform: translateX(-110%);
  transition: transform 180ms ease;
  z-index: 30;
  padding: 14px;
}
.sidebar.isOpen{ transform: translateX(0); }
.sideHead{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.sideBrand{ display:flex; align-items:center; gap: 10px; text-decoration:none; }
.iconBtn{
  border: 1px solid rgba(17,24,39,0.10);
  background: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
  box-shadow: 0 10px 26px rgba(17,24,39,0.10);
}
.sideNav{ margin-top: 14px; display:grid; gap: 6px; }
.sideKicker{ font-size: 12px; font-weight: 900; color: rgba(15,23,42,0.62); margin: 6px 0; }
.sideItem{
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration:none;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(15,23,42,0.02);
  font-weight: 800;
  display:flex;
  justify-content:space-between;
  gap: 10px;
}
.sideItem.isActive{ background: rgba(22,160,133,0.10); border-color: rgba(22,160,133,0.22); }
.sideNote{ margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.scrim{ position: fixed; inset: 0; background: rgba(15,23,42,0.28); opacity:0; pointer-events:none; transition: opacity 180ms ease; z-index: 25; }
.scrim.isOn{ opacity:1; pointer-events:auto; }

.top{
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(17,24,39,0.10);
}
.top-inner{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  gap: 14px;
  align-items:flex-start;
}

.brand{ display:flex; gap:10px; align-items:center; text-decoration:none; margin-top: 2px; }
.brandText{ display:flex; flex-direction:column; line-height:1.05; }
.brandTitle{ font-weight: 900; letter-spacing: 0.08em; font-size: 12px; color: rgba(15,23,42,0.72); }
.brandSub{ font-size: 12px; color: var(--muted); margin-top: 4px; }

.hero{ min-width:0; flex:1; }
.title{ margin:0; font-size: 20px; letter-spacing:-0.02em; }
.subtitle{ margin:6px 0 0; color: var(--muted); font-size: 13px; line-height:1.45; }
.privacy{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(22,160,133,0.20);
  background: rgba(22,160,133,0.06);
  color: rgba(17,24,39,0.84);
  font-size: 12px;
  line-height: 1.45;
}

.page{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 18px 16px 32px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r20);
  box-shadow: var(--shadow);
  padding: 16px;
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 980px){
  .grid2{ grid-template-columns: 1fr; }
}

.cardHead{ display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-bottom: 10px; }
.h2{ margin:0; font-size: 16px; }

.row{ display:flex; gap: 12px; flex-wrap:wrap; }
.field{ display:grid; gap: 6px; min-width: 220px; }
.label{ font-weight: 800; font-size: 12px; color: rgba(15,23,42,0.78); }
.hint{ color: var(--muted); font-size: 12px; line-height: 1.45; }
.muted{ color: var(--muted); font-size: 13px; }

.input,.select,textarea{
  width: 100%;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.9);
}
.input:focus,.select:focus,textarea:focus{
  outline: none;
  border-color: rgba(37,99,235,0.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.14);
}

.btns{ display:flex; gap: 10px; align-items:center; }
.btn{
  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(22,160,133,0.16), rgba(22,160,133,0.08));
  font-weight: 900;
  cursor: pointer;
}
.btn.ghost{ background: transparent; }
.btn:disabled{ opacity: 0.55; cursor: not-allowed; }

.status{ margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(37,99,235,0.06); border: 1px solid rgba(37,99,235,0.12); display:none; }
.status.show{ display:block; }
.status.is-error{ background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.16); }

.tableWrap{ overflow:auto; border: 1px solid rgba(15,23,42,0.10); border-radius: 16px; }
.table{ width:100%; border-collapse: collapse; font-size: 13px; }
.table th,.table td{ padding: 10px 10px; border-bottom: 1px solid rgba(15,23,42,0.08); text-align:left; vertical-align: top; }
.table th{ background: rgba(15,23,42,0.03); color: rgba(15,23,42,0.68); font-weight: 800; }

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: min(92vw, 560px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.show{ opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* Collapsible usage guide */
details.help{
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,.75);
  border-radius: 16px;
  padding: 12px 14px;
}
details.help summary{
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.help summary::-webkit-details-marker{display:none;}
details.help summary::after{
  content:"▾";
  color: var(--muted);
  font-weight: 900;
  transition: transform 140ms ease;
}
details.help[open] summary::after{ transform: rotate(180deg); }
.helpSteps{ margin-top: 10px; display: grid; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.footer{ margin-top: 22px; text-align:center; color: var(--muted); }
.footerTitle{ font-weight: 900; letter-spacing: 0.08em; font-size: 12px; color: rgba(15,23,42,0.72); }
.footerCopy{ margin-top: 10px; font-size: 12px; }
