:root {
  --bg: #0d0d0e;
  --panel: #151516;
  --panel-2: #1b1b1d;
  --line: rgba(255,255,255,.09);
  --text: #f4f4f4;
  --muted: #9d9da3;
  --orange: #ff641f;
  --orange-2: #ff9a3d;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 460px at 68% -140px, rgba(255,93,23,.19), transparent 70%),
    radial-gradient(700px 360px at 0 -100px, rgba(255,154,61,.08), transparent 68%),
    var(--bg);
  font-family: Inter, Pretendard, "Noto Sans KR", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(13,13,14,.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--orange-2), var(--orange));
  box-shadow: 0 8px 22px rgba(255,100,31,.22);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 8px;
  height: 9px;
  background: #fff;
  border-radius: 7px 7px 2px 2px;
}
.brand-mark::before { left: 9px; transform: rotate(-24deg); }
.brand-mark::after { right: 9px; transform: rotate(24deg); }
.brand-mark span {
  width: 17px;
  height: 13px;
  background: #fff;
  border-radius: 9px 9px 7px 7px;
  transform: translateY(4px);
}
.brand-copy { display: grid; line-height: 1.05; gap: 4px; }
.brand-copy strong { font-size: 15px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: 9px; }
.top-actions { display: flex; align-items: center; gap: 10px; }

.language-switch {
  display: flex;
  padding: 3px;
  background: #1a1a1c;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: #7d7d83;
  padding: 8px 11px;
  min-width: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  font-size: 12px;
  transition: .18s ease;
}
.lang-btn.active { color: #fff; background: #303033; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  border-radius: 11px;
  padding: 0 14px;
  border: 1px solid transparent;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:active { transform: translateY(1px); }
.button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.button.primary { background: var(--orange); }
.button.primary:hover { background: #ff752f; }
.button.ghost { background: #1d1d1f; border-color: var(--line); }
.button.ghost:hover { background: #252528; }

main { width: min(1480px, calc(100% - 48px)); margin: 0 auto; }
.intro {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(360px, .72fr);
  gap: 44px;
  align-items: end;
  padding: 52px 0 32px;
}
.eyebrow { margin: 0 0 12px; color: var(--orange-2); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(32px, 4.2vw, 58px); letter-spacing: -.05em; line-height: .98; }
.lead { margin: 16px 0 0; color: var(--muted); max-width: 720px; font-size: 13px; line-height: 1.65; }
.download-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.download-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a1a1c, #151516);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.download-card:hover { transform: translateY(-2px); border-color: rgba(255,100,31,.46); background: #1d1d1f; }
.download-lang {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 11px; font-weight: 850;
  background: rgba(255,100,31,.12);
  color: var(--orange-2);
  border: 1px solid rgba(255,100,31,.18);
}
.download-text { display: grid; gap: 3px; min-width: 0; }
.download-text b { font-size: 13px; }
.download-text small { color: var(--muted); font-size: 11px; }
.download-arrow { color: var(--muted); font-size: 19px; }

.manual-shell {
  margin-bottom: 56px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.viewer-toolbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--line);
  background: #171719;
}
.viewer-toolbar > .button { justify-self: end; }
.viewer-title { display: flex; align-items: center; gap: 9px; color: #c8c8cc; font-size: 12px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,100,31,.1); }
.page-controls { display: flex; align-items: center; gap: 7px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  color: #d6d6d8;
  background: #232326;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 18px;
}
.icon-btn:hover:not(:disabled) { background: #2d2d30; }
.icon-btn:disabled { opacity: .28; cursor: default; }
.page-counter {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  background: #202023;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.page-counter input {
  width: 38px;
  color: #fff;
  border: 0;
  outline: none;
  background: transparent;
  text-align: right;
  font-weight: 800;
  -moz-appearance: textfield;
}
.page-counter input::-webkit-outer-spin-button,
.page-counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.page-stage {
  position: relative;
  min-height: 360px;
  padding: clamp(18px, 3.5vw, 52px) clamp(48px, 6vw, 92px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px),
    #101012;
  background-size: 28px 28px;
}
.page-frame { margin: 0; max-width: 100%; position: relative; }
.page-frame img {
  display: block;
  width: min(100%, 1180px);
  max-height: 72vh;
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  background: #383838;
  user-select: none;
}
.page-frame figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: rgba(255,255,255,.65);
  background: rgba(0,0,0,.54);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 5px 8px;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.stage-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 43px;
  height: 72px;
  border: 0;
  border-radius: 13px;
  background: rgba(35,35,38,.74);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 30px;
  transition: background .18s ease, opacity .18s ease;
}
.stage-nav:hover:not(:disabled) { background: rgba(58,58,62,.9); }
.stage-nav:disabled { opacity: .16; cursor: default; }
.stage-prev { left: 14px; }
.stage-next { right: 14px; }

.thumb-area { border-top: 1px solid var(--line); background: #151517; padding: 16px 18px 19px; }
.thumb-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 11px; font-weight: 800; color: #b8b8bd; }
.hint { font-weight: 550; color: #6f6f75; }
.thumb-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 130px;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: #444 #1a1a1d;
}
.thumb {
  width: 130px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
  background: #1b1b1e;
  cursor: pointer;
  text-align: left;
  color: #a5a5aa;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.thumb:hover { transform: translateY(-1px); background: #222225; }
.thumb.active { border-color: var(--orange); box-shadow: 0 0 0 1px rgba(255,100,31,.15); }
.thumb img { display: block; width: 100%; aspect-ratio: 2600 / 1390; object-fit: cover; border-radius: 6px; background: #333; }
.thumb span { display: block; margin: 6px 2px 1px; font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

footer {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 38px;
  color: #66666b;
  display: flex;
  gap: 8px;
  font-size: 11px;
}
.footer-sep { color: #37373a; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,6,.96);
  padding: 66px 70px 28px;
}
.lightbox.open { display: flex; }
.lightbox-bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid var(--line);
  color: #9d9da3;
  font-size: 12px;
  font-weight: 700;
  background: rgba(14,14,15,.86);
  backdrop-filter: blur(14px);
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 28px 90px #000; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 54px; height: 90px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}
.lightbox-nav.left { left: 10px; }
.lightbox-nav.right { right: 10px; }
.lightbox-nav:disabled { opacity: .18; }

@media (max-width: 900px) {
  .topbar { padding: 0 16px; }
  .brand-copy small { display: none; }
  main, footer { width: min(100% - 24px, 1480px); }
  .intro { grid-template-columns: 1fr; gap: 26px; padding-top: 48px; }
  .viewer-toolbar { grid-template-columns: 1fr auto; padding-left: 14px; }
  .viewer-toolbar > .button { display: none; }
  .page-controls { justify-self: end; }
  .page-stage { padding: 22px 44px; min-height: 260px; }
  .stage-prev { left: 6px; }
  .stage-next { right: 6px; }
}

@media (max-width: 560px) {
  .topbar { height: 64px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-copy strong { font-size: 14px; }
  .download-pair { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .intro { padding-top: 36px; }
  .viewer-title { display: none; }
  .viewer-toolbar { display: flex; justify-content: center; }
  .page-stage { padding: 16px 32px; }
  .stage-nav { width: 32px; height: 58px; font-size: 24px; }
  .thumb-strip { grid-auto-columns: 104px; }
  .thumb { width: 104px; }
  .hint { display: none; }
  .lightbox { padding: 62px 34px 12px; }
  .lightbox-nav { width: 34px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}



/* 2026-09-14 simple manual layout */
body {
  background:
    radial-gradient(900px 380px at 68% -180px, rgba(255,93,23,.12), transparent 72%),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 18px;
  background: rgba(13,13,14,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.pdf-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #18181a;
  color: #cfcfd3;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.pdf-btn:hover {
  background: #232326;
  border-color: rgba(255,100,31,.34);
  color: #fff;
}
.pdf-arrow {
  color: #85858b;
  font-size: 15px;
  transform: translateY(-1px);
}

.language-switch {
  display: flex;
  padding: 2px;
  background: #18181a;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: #7d7d83;
  padding: 6px 9px;
  min-width: 38px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 750;
  font-size: 11px;
  transition: .18s ease;
}
.lang-btn.active {
  color: #fff;
  background: #2a2a2d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

main {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: 18px;
}

.manual-shell {
  margin: 0 0 38px;
}

footer {
  width: min(1480px, calc(100% - 36px));
  padding-bottom: 26px;
}

@media (max-width: 900px) {
  .topbar { height: 50px; padding: 0 12px; }
  .top-actions { gap: 7px; }
  .pdf-actions { gap: 5px; }
  .pdf-btn { height: 32px; padding: 0 9px; font-size: 10px; }
  main, footer { width: min(100% - 20px, 1480px); }
  main { padding-top: 12px; }
}

@media (max-width: 560px) {
  .topbar { height: 48px; padding: 0 9px; }
  .top-actions { gap: 6px; }
  .pdf-btn { padding: 0 8px; gap: 5px; }
  .pdf-arrow { display: none; }
  .language-switch { padding: 2px; }
  .lang-btn { min-width: 34px; padding: 5px 7px; font-size: 10px; }
  main { width: calc(100% - 12px); padding-top: 8px; }
  .manual-shell { border-radius: 14px; margin-bottom: 22px; }
  footer { width: calc(100% - 12px); }
}
