/* ==========================================================
   손끝공방 · Fingertip Workshop
   종이, 잉크, 마스킹테이프, 고무도장. 손으로 만든 작업대 같은 화면.
   ========================================================== */

:root {
  --paper: #f4eee2;
  --paper-deep: #ebe2d1;
  --card: #fffcf5;
  --card-2: #faf5ea;
  --ink: #2a251f;
  --ink-soft: #5e564b;
  --ink-faint: #665e53;
  --rule: #d8ccb6;
  --rule-soft: #e6dccb;
  --tomato: #d4553a;
  --tomato-deep: #b24129;
  --mustard: #e9b949;
  --mustard-soft: #f6e2a8;
  --pine: #3f6f55;
  --pine-soft: #d6e5d3;
  --indigo: #335c8c;
  --indigo-soft: #d7e2ef;
  --plum: #7d4e74;
  --plum-soft: #ead9e5;
  --teal: #2a7a80;
  --teal-soft: #d3e8e8;
  --shadow: 3px 3px 0 var(--ink);
  --shadow-soft: 0 1px 0 rgba(42, 37, 31, .06), 0 8px 24px -12px rgba(42, 37, 31, .25);
  --radius: 10px;
  --f-head: "Gowun Batang", "Nanum Myeongjo", Georgia, serif;
  --f-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-hand: "Nanum Pen Script", "Comic Sans MS", cursive;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e1b17;
    --paper-deep: #26221d;
    --card: #2a2620;
    --card-2: #312c25;
    --ink: #efe7d8;
    --ink-soft: #c5bba9;
    --ink-faint: #958b7b;
    --rule: #4a4339;
    --rule-soft: #3a342c;
    --tomato: #ec7458;
    --tomato-deep: #f08b72;
    --mustard: #e9bf5a;
    --mustard-soft: #4d4127;
    --pine: #7fb293;
    --pine-soft: #2c3b31;
    --indigo: #84a9d6;
    --indigo-soft: #26313f;
    --plum: #c493b9;
    --plum-soft: #3a2b37;
    --teal: #6fbfc4;
    --teal-soft: #223638;
    --shadow: 3px 3px 0 #0d0b09;
    --shadow-soft: 0 10px 28px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  font: 400 16px/1.7 var(--f-body);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--tomato); text-underline-offset: 3px; }
a:hover { color: var(--tomato-deep); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--mustard-soft); color: var(--ink); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { top: 8px; }
.hand { font-family: var(--f-hand); font-size: 1.35em; line-height: 1.25; letter-spacing: .01em; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--ink);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; transform: rotate(-6deg); transition: transform .25s; }
.brand:hover .brand-mark { transform: rotate(4deg) scale(1.05); }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none; font-size: .95rem; padding: 6px 12px; border-radius: 999px; color: var(--ink-soft);
}
.site-nav a:hover, .site-nav a.is-here { color: var(--ink); background: var(--paper-deep); }
.site-nav a.lang-switch {
  margin-left: 8px; border: 1.5px solid var(--ink); color: var(--ink); font-size: .85rem; font-weight: 600;
}
.site-nav a.lang-switch:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 42px; height: 42px; padding: 0 10px; background: none; border: 1.5px solid var(--ink); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--paper); border-bottom: 1.5px solid var(--ink);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 6px; border-radius: 0; border-bottom: 1px dashed var(--rule); }
  .site-nav a.lang-switch { margin: 12px 0 0; text-align: center; border-radius: 8px; }
}

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: clamp(36px, 7vw, 84px) 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--tomato-deep); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); margin: 0 0 18px; }
.hero h1 mark {
  background: linear-gradient(transparent 58%, var(--mustard-soft) 58%, var(--mustard-soft) 92%, transparent 92%);
  color: inherit; padding: 0 .08em;
}
.hero-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 36em; }
.search {
  position: relative; display: flex; align-items: center; margin-top: 26px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow);
}
.search svg { width: 22px; height: 22px; margin-left: 16px; flex: none; color: var(--ink-faint); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 16px 12px; font-size: 1.05rem; outline: none; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search kbd {
  margin-right: 14px; font: 500 .8rem var(--f-mono); padding: 2px 8px; border: 1.5px solid var(--rule); border-radius: 6px; color: var(--ink-faint);
}
.search:focus-within { box-shadow: 4px 4px 0 var(--tomato); }
.search-hint { margin-top: 12px; font-size: .9rem; color: var(--ink-faint); }
.search-hint a { color: var(--ink-soft); }

.note-paper {
  position: relative; background: var(--card);
  background-image: repeating-linear-gradient(transparent 0 31px, var(--rule-soft) 31px 32px);
  background-position: 0 14px;
  padding: 34px 28px 22px; border-radius: 4px; box-shadow: var(--shadow-soft);
  transform: rotate(1.6deg);
}
.note-paper::before { content: ""; position: absolute; left: 40px; top: 0; bottom: 0; width: 1.5px; background: color-mix(in srgb, var(--tomato) 35%, transparent); }
.tape {
  position: absolute; top: -12px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--mustard) 55%, transparent);
  border-left: 2px dotted rgba(255,255,255,.35); border-right: 2px dotted rgba(255,255,255,.35);
}
.note-title { font-size: 1.85rem; margin: 0 0 6px 24px; color: var(--indigo); }
.note-list { list-style: none; margin: 0 0 8px; padding: 0 0 0 24px; }
.note-list li { position: relative; line-height: 32px; font-size: .98rem; }
.note-list li::before { content: "✓"; position: absolute; left: -22px; color: var(--tomato); font-weight: 700; }
.note-sign { text-align: right; margin: 6px 0 0; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 420px; }
}

/* ── Drawers (category sections) ───────────────────── */
.drawer { padding: 30px 0 10px; }
.drawer-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; }
.drawer-label {
  display: inline-flex; margin: 0; font-size: 1.15rem; font-family: var(--f-body); font-weight: 600; letter-spacing: .02em;
}
.drawer-label span {
  position: relative; padding: 5px 16px 5px 14px; background: var(--ink); color: var(--paper);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
  padding-right: 26px;
}
.drawer-label.cat-image span { background: var(--tomato-deep); color: #fff; }
.drawer-label.cat-pdf span { background: var(--indigo); color: #fff; }
.drawer-label.cat-text span { background: var(--pine); color: #fff; }
.drawer-label.cat-dev span { background: var(--plum); color: #fff; }
.drawer-label.cat-calc span { background: var(--mustard); color: #2a251f; }
.drawer-label.cat-money span { background: var(--teal); color: #fff; }
.drawer-label.cat-device span { background: #4d6680; color: #fff; }
.drawer-label.cat-daily span { background: #b0466b; color: #fff; }
.drawer-label.big { font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-family: var(--f-head); }
.drawer-label.big span { padding: 8px 40px 8px 20px; }
.drawer-blurb { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.drawer-more { margin-left: auto; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card-grid.roomy { gap: 18px; margin: 28px 0 40px; }
.card-grid.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.tool-card {
  --c: var(--ink);
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 16px 16px 14px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tool-card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--c); }
.tool-card:active { transform: translate(0, 0); box-shadow: 1px 1px 0 var(--c); }
.cat-image { --c: var(--tomato); --c-ink: #a8432c; --c-soft: color-mix(in srgb, var(--tomato) 14%, var(--card)); }
.cat-pdf { --c: var(--indigo); --c-soft: var(--indigo-soft); }
.cat-text { --c: var(--pine); --c-ink: #386349; --c-soft: var(--pine-soft); }
.cat-dev { --c: var(--plum); --c-soft: var(--plum-soft); }
.cat-calc { --c: #b98a1c; --c-ink: #7a5810; --c-soft: var(--mustard-soft); }
.cat-money { --c: var(--teal); --c-ink: #256a70; --c-soft: var(--teal-soft); }
.cat-device { --c: #4d6680; --c-ink: #3c5269; --c-soft: color-mix(in srgb, #4d6680 13%, var(--card)); }
.cat-daily { --c: #c4577a; --c-ink: #93385a; --c-soft: color-mix(in srgb, #c4577a 13%, var(--card)); }
@media (prefers-color-scheme: dark) { .cat-calc { --c: var(--mustard); } .cat-device { --c: #8fa9c4; } .cat-daily { --c: #e48aa8; } .cat-image, .cat-text, .cat-calc, .cat-money, .cat-device, .cat-daily { --c-ink: var(--c); } }

.stamp {
  flex: none; display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 6px;
  font: 600 .8rem/1 var(--f-mono); letter-spacing: -.02em; color: var(--c-ink, var(--c, var(--ink)));
  border: 2px solid currentColor; border-radius: 9px; background: var(--c-soft, var(--card-2));
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px var(--card);
}
.tool-card:nth-child(3n) .stamp { transform: rotate(3deg); }
.tool-card:nth-child(4n+1) .stamp { transform: rotate(-1.5deg); }
.stamp.big { min-width: 70px; height: 70px; font-size: 1.05rem; border-width: 2.5px; border-radius: 12px; }
.card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-name { font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
.card-short { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.badge { font: 600 .66rem var(--f-mono); font-style: normal; color: #fff; background: var(--tomato-deep); padding: 1px 6px; border-radius: 4px; vertical-align: 2px; }

.search-results { padding-top: 20px; }
.empty-note { color: var(--ink-soft); padding: 24px 0; }

/* ── Why / story ───────────────────────────────────── */
.section-title { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 0 0 18px; }
.why { padding: 64px 0 24px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item { position: relative; padding: 22px 22px 8px; border-top: 2px solid var(--ink); }
.why-num { position: absolute; top: -26px; left: 14px; background: var(--paper); padding: 0 8px; font-size: 2.3rem; color: var(--tomato); }
.why-item h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.why-item p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; gap: 30px; } }
.home-story, .cat-story { padding: 24px 0 64px; max-width: 760px; }

/* ── Prose ─────────────────────────────────────────── */
.prose h2 { font-size: 1.4rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .93rem; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 9px 10px; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; background: var(--paper-deep); }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-deep); padding: 1px 5px; border-radius: 4px; }
.prose .callout, .tool-ui .callout, .callout { border-left: 4px solid var(--mustard); background: var(--card); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 1.2em 0; }
.callout p:last-child { margin: 0; }
.info h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 10px 0 24px; }
.info { padding-bottom: 64px; }

/* ── Breadcrumbs / page head ───────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--ink-faint); padding: 22px 0 6px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding: 16px 0 0; }
.page-lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 44em; margin-top: 16px; }

/* ── Tool page ─────────────────────────────────────── */
.tool-head { display: flex; gap: 20px; align-items: flex-start; padding: 14px 0 22px; }
.tool-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 8px; }
.tool-lead { color: var(--ink-soft); margin: 0; max-width: 46em; }
@media (max-width: 560px) { .tool-head { flex-direction: column; gap: 12px; } .stamp.big { min-width: 56px; height: 56px; } }

.bench {
  position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 14px;
  padding: clamp(16px, 3vw, 28px); box-shadow: 5px 5px 0 var(--c, var(--ink));
}
.bench-foot { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: .85rem; color: var(--ink-faint); }
.bench-foot svg { width: 18px; height: 18px; flex: none; color: var(--pine); }
.tool-content { max-width: 820px; padding: 48px 0 72px; }
.tool-content > section { margin-bottom: 52px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-n {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; font-size: 1.6rem; line-height: 1;
  border: 1.5px solid var(--ink); border-radius: 50% 46% 52% 48%; background: var(--card); color: var(--tomato);
}
.steps p { margin: 6px 0 0; color: var(--ink-soft); }

.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.5rem/1 var(--f-mono); color: var(--tomato); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 18px; color: var(--ink-soft); }
.faq-a p:last-child { margin: 0; }

.ad-slot { margin: 24px 0; min-height: 100px; }

/* ── Tool UI components ────────────────────────────── */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 190px; padding: 28px 20px; text-align: center; cursor: pointer;
  border: 2px dashed var(--ink-faint); border-radius: 12px; background: var(--card-2);
  transition: background .15s, border-color .15s;
}
.dropzone::before {
  content: "✂"; position: absolute; top: -14px; left: 26px; font-size: 1.15rem; color: var(--ink-faint);
  background: var(--card); padding: 0 6px; transform: rotate(-90deg);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--c, var(--tomato)); background: var(--c-soft, var(--card)); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dz-icon { width: 46px; height: 46px; color: var(--c, var(--ink)); margin-bottom: 4px; }
.dz-title { font-weight: 600; font-size: 1.08rem; }
.dz-sub { font-size: .88rem; color: var(--ink-faint); }
.dz-btn { margin-top: 10px; pointer-events: none; }
.dropzone.compact { min-height: 96px; flex-direction: row; gap: 14px; padding: 18px; }
.dropzone.compact .dz-icon { width: 34px; height: 34px; margin: 0; }
.dropzone.compact .dz-btn { margin: 0 0 0 auto; }

.controls { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: flex-end; margin: 20px 0; }
.controls.tight { margin: 12px 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.grow { flex: 1 1 220px; }
.field-label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field-label small { font-weight: 400; color: var(--ink-faint); }
.input, select.input {
  appearance: none; background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px; padding: 9px 12px; min-height: 42px; width: 100%;
}
select.input {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a8174' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
.input:focus { outline: none; border-color: var(--c, var(--indigo)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--indigo)) 22%, transparent); }
.input.num { width: 120px; }
.input.mono, .mono { font-family: var(--f-mono); }
input[type=color].input { padding: 4px; width: 64px; cursor: pointer; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--ink); border-radius: 9px; overflow: hidden; background: var(--card); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 14px; font-size: .92rem; border-right: 1.5px solid var(--ink); white-space: nowrap; }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: -4px; }

.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output { font: 500 .9rem var(--f-mono); min-width: 3.4em; text-align: right; }
input[type=range] { accent-color: var(--c, var(--tomato)); width: 200px; max-width: 100%; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .95rem; user-select: none; }
.check input { accent-color: var(--c, var(--tomato)); width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: .98rem; line-height: 1.2;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--c, var(--tomato));
  transition: transform .1s, box-shadow .1s, background .15s;
}
.btn:hover { color: var(--paper); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--c, var(--tomato)); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--c, var(--tomato)); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost:hover { color: var(--ink); }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: .86rem; border-width: 1.5px; box-shadow: 2px 2px 0 var(--ink); }
.btn.small:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.actions .spacer { flex: 1; }

.note { font-size: .86rem; color: var(--ink-faint); margin: 8px 0 0; }
.note.warn { color: var(--tomato-deep); }
.status { font-size: .9rem; color: var(--ink-soft); min-height: 1.5em; }

.file-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.file-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 12px; background: var(--card-2); border: 1.5px solid var(--rule); border-radius: 10px;
}
.file-item.dragging { opacity: .5; }
.file-item[draggable=true] { cursor: grab; }
.file-thumb { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--paper-deep); display: grid; place-items: center; font: 600 .7rem var(--f-mono); color: var(--ink-faint); overflow: hidden; }
.file-thumb img, .file-thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.file-meta { min-width: 0; }
.file-name { font-weight: 500; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-info { font-size: .82rem; color: var(--ink-faint); }
.file-info .good { color: var(--pine); font-weight: 600; }
.file-info .bad { color: var(--tomato-deep); font-weight: 600; }
.file-act { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--rule); background: var(--card); border-radius: 8px; cursor: pointer; color: var(--ink-soft); }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
@media (max-width: 520px) {
  .file-item { grid-template-columns: 44px 1fr; }
  .file-thumb { width: 44px; height: 44px; }
  .file-act { grid-column: 1 / -1; justify-content: flex-end; }
}

.checker {
  background-color: #fff;
  background-image: linear-gradient(45deg, #e9e4da 25%, transparent 25%), linear-gradient(-45deg, #e9e4da 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9e4da 75%), linear-gradient(-45deg, transparent 75%, #e9e4da 75%);
  background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.preview { display: grid; place-items: center; min-height: 220px; max-height: 520px; overflow: auto; border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px; }
.preview img, .preview canvas, .preview svg { max-height: 500px; width: auto; height: auto; display: block; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split > * { min-width: 0; }
.split-label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

.pad {
  display: block; width: 100%; min-height: 220px; resize: vertical; padding: 14px 16px;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px;
  line-height: 28px; font-size: 1rem;
  background-image: repeating-linear-gradient(transparent 0 27px, var(--rule-soft) 27px 28px);
  background-attachment: local; background-position: 0 13px;
}
.pad:focus { outline: none; border-color: var(--c, var(--indigo)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--indigo)) 20%, transparent); }
.pad.mono { font-family: var(--f-mono); font-size: .9rem; }
.pad.short { min-height: 120px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--card-2); }
.stat b { display: block; font: 600 1.45rem/1.25 var(--f-mono); color: var(--ink); letter-spacing: -.03em; overflow-wrap: normal; word-break: keep-all; }
.stat span { font-size: .82rem; color: var(--ink-soft); }
.stat.hero-stat { border-color: var(--ink); background: var(--c-soft, var(--mustard-soft)); }

.result-box { margin-top: 18px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 12px; background: var(--c-soft, var(--card-2)); }
.result-big { font: 600 clamp(1.6rem, 5vw, 2.4rem)/1.2 var(--f-mono); letter-spacing: -.02em; margin: 0; word-break: break-all; }
.result-sub { color: var(--ink-soft); margin: 6px 0 0; font-size: .95rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1.5px solid var(--ink); margin-bottom: 18px; }
.tab { padding: 9px 16px; border: 1.5px solid transparent; border-bottom: 0; border-radius: 9px 9px 0 0; background: none; cursor: pointer; font-weight: 500; color: var(--ink-soft); margin-bottom: -1.5px; }
.tab[aria-selected=true] { border-color: var(--ink); background: var(--card); color: var(--ink); }
.tab-panel[hidden] { display: none; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.swatch { border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--card); cursor: pointer; text-align: left; padding: 0; }
.swatch i { display: block; height: 64px; }
.swatch span { display: block; padding: 6px 10px; font: 500 .82rem var(--f-mono); }
.swatch:hover { box-shadow: 3px 3px 0 var(--ink); }

.kv { display: grid; gap: 8px; }
.kv-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border: 1.5px solid var(--rule); border-radius: 9px; background: var(--card-2); }
.kv-row b { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.kv-row code, .kv-row output { font: 500 .95rem var(--f-mono); word-break: break-all; }
@media (max-width: 520px) { .kv-row { grid-template-columns: 1fr auto; } .kv-row b { grid-column: 1 / -1; } }

.meter { height: 10px; border-radius: 99px; background: var(--rule-soft); overflow: hidden; border: 1.5px solid var(--ink); }
.meter i { display: block; height: 100%; width: 0; background: var(--tomato); transition: width .25s, background .25s; }

.progress { height: 8px; border-radius: 99px; background: var(--rule-soft); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: 0; background: var(--c, var(--tomato)); transition: width .2s; }

.diff-out { font-family: var(--f-mono); font-size: .88rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; padding: 14px 16px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--card); max-height: 560px; overflow: auto; }
.diff-out del { background: color-mix(in srgb, var(--tomato) 22%, transparent); color: var(--tomato-deep); text-decoration: line-through; }
.diff-out ins { background: color-mix(in srgb, var(--pine) 24%, transparent); color: var(--pine); text-decoration: none; }
.diff-line { display: block; padding: 0 6px; border-radius: 3px; }
.diff-line.add { background: color-mix(in srgb, var(--pine) 15%, transparent); }
.diff-line.del { background: color-mix(in srgb, var(--tomato) 13%, transparent); }

.crop-stage { position: relative; display: inline-block; max-width: 100%; touch-action: none; user-select: none; }
.crop-stage img { display: block; max-width: 100%; max-height: 520px; }
.crop-box { position: absolute; border: 2px solid #fff; outline: 1.5px dashed #000; box-shadow: 0 0 0 9999px rgba(20, 16, 12, .5); cursor: move; }
.crop-box .h { position: absolute; width: 14px; height: 14px; background: #fff; border: 1.5px solid #000; border-radius: 3px; }
.crop-box .h.nw { left: -8px; top: -8px; cursor: nwse-resize; }
.crop-box .h.ne { right: -8px; top: -8px; cursor: nesw-resize; }
.crop-box .h.sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.crop-box .h.se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.crop-wrap { display: grid; place-items: center; padding: 12px; border: 1.5px solid var(--rule); border-radius: 10px; overflow: hidden; }

.qr-out { display: grid; place-items: center; padding: 20px; border: 1.5px solid var(--rule); border-radius: 10px; background: #fff; min-height: 260px; }
.qr-out canvas { image-rendering: pixelated; width: 240px; height: 240px; }

.cal-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.cal-table td, .cal-table th { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; }
.cal-table td.num { font-family: var(--f-mono); text-align: right; }

.hidden { display: none !important; }

/* ── Footer ────────────────────────────────────────── */
.site-footer { border-top: 1.5px solid var(--ink); background: var(--paper-deep); padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-name { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; margin: 0 0 6px; }
.footer-brand .hand { color: var(--ink-soft); font-size: 1.3rem; }
.footer-h { font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-faint); margin: 0 0 8px; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer li a { text-decoration: none; color: var(--ink-soft); font-size: .93rem; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 16px; border-top: 1px dashed var(--rule); font-size: .85rem; color: var(--ink-faint); }
.footer-base a { color: var(--ink-faint); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── Toast ─────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 10px; font-size: .93rem;
  box-shadow: 3px 3px 0 var(--tomato); transition: transform .25s ease, opacity .25s; pointer-events: none; max-width: calc(100% - 32px);
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ── 404 ───────────────────────────────────────────── */
.lost { padding: 64px 0; }
.lost .note-paper { padding: 40px 40px 26px 64px; transform: rotate(-1deg); }
.lost-code { font: 400 4.5rem/1 var(--f-hand); color: var(--tomato); margin: 0; }
.lost h1 { margin: 6px 0 12px; }
.lost-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .ad-slot, .related { display: none; }
  body { background: #fff; }
}

/* ── PDF page grid ─────────────────────────────────── */
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 14px; margin-top: 16px; }
.page-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 8px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--card-2); cursor: pointer; user-select: none; }
.page-tile canvas { width: 100%; height: auto; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .2s; }
.page-tile .pn { font: 500 .8rem var(--f-mono); color: var(--ink-soft); }
.page-tile.sel { border-color: var(--c, var(--indigo)); background: var(--c-soft, var(--indigo-soft)); box-shadow: 3px 3px 0 var(--c, var(--indigo)); }
.page-tile .tick { z-index: 2; position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--card); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: transparent; }
.page-tile.sel .tick { background: var(--c, var(--indigo)); color: #fff; border-color: var(--c, var(--indigo)); }
.page-tile .rot { z-index: 2; position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; }
.page-tile.deleted { opacity: .35; }

/* percent calculator rows */
.pc-row { grid-template-columns: 1fr auto !important; padding: 14px 16px !important; }
.pc-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1rem; }
.pc-q .input.num { width: 130px; font-family: var(--f-mono); }
.pc-a { font-size: clamp(1.15rem, 3vw, 1.5rem) !important; cursor: pointer; text-align: right; }
.pc-a small { display: block; font: 400 .8rem var(--f-body); color: var(--ink-soft); }
@media (max-width: 620px) { .pc-row { grid-template-columns: 1fr !important; } .pc-a { text-align: left; } .pc-q .input.num { width: 110px; } }

/* ── Guides ────────────────────────────────────────── */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 24px 0 48px; }
.home-guides { padding: 34px 0 0; }
.home-guides .guide-grid { margin-top: 0; }
.guide-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px 14px 14px 4px;
  border-left: 6px solid var(--mustard); transition: transform .15s, box-shadow .15s;
}
.guide-card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.guide-tag { display: inline-block; align-self: flex-start; font-size: .76rem; font-weight: 600; letter-spacing: .03em; color: var(--tomato-deep); background: color-mix(in srgb, var(--tomato) 12%, transparent); padding: 2px 8px; border-radius: 99px; margin: 0; }
.guide-title { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; line-height: 1.4; }
.guide-lead { font-size: .9rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-meta { margin-top: auto; font-size: .8rem; color: var(--ink-faint); }

.article { padding-bottom: 32px; }
.article-head { padding: 8px 0 18px; border-bottom: 1.5px dashed var(--rule); margin-bottom: 28px; }
.article-head h1 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); margin: 10px 0 14px; line-height: 1.35; }
.article-lead { font-size: 1.1rem; color: var(--ink) !important; }
.article-meta { font-size: .86rem; color: var(--ink-faint) !important; margin: 0; }
.article p, .article li { font-size: 1.04rem; line-height: 1.85; }
.article h2 { padding-top: .4em; }
.article h2::before { content: "§ "; color: var(--tomato); font-family: var(--f-body); font-weight: 500; }
.article blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); font-family: var(--f-head); }
.article .tip { background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px; padding: 14px 18px; margin: 1.4em 0; box-shadow: 3px 3px 0 var(--mustard); }
.article .tip p { margin: 0; color: var(--ink); }
.article .tip p + p { margin-top: .6em; }
.tool-callout { margin: 0 0 32px; padding: 14px 16px 16px; background: var(--paper-deep); border-radius: 12px; }
.tool-callout .hand { margin: 0 0 8px; color: var(--indigo); font-size: 1.5rem; }
.tool-callout .card-grid { margin: 0; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding: 20px; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--card); }
.author-box .brand-mark { width: 44px; height: 44px; flex: none; }
.author-name { font-weight: 600; margin: 0 0 4px; color: var(--ink) !important; }
.author-bio { font-size: .92rem !important; margin: 0 0 6px; }
.author-links { font-size: .86rem !important; margin: 0; }
.more-guides { padding-bottom: 40px; }
.guide-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.guide-links li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--card); }
.guide-links a { font-weight: 600; text-decoration: none; }
.guide-links a:hover { text-decoration: underline; }
.guide-links span { flex: none; font-size: .82rem; color: var(--ink-faint); }
.updated-line { font-size: .82rem; color: var(--ink-faint); margin: 14px 4px 0; }
.updated-line a { color: var(--ink-soft); }
.ad-label { font-size: .7rem; letter-spacing: .08em; color: var(--ink-faint); text-align: center; margin: 0 0 4px; }

/* ── 4판 추가 도구 ───────────────────────────── */
.big-display { font: 600 clamp(3rem, 14vw, 7.5rem)/1 var(--f-mono); letter-spacing: -.04em; text-align: center; margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.big-display.done { color: var(--tomato); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.fs-stage:fullscreen { background: var(--paper); display: grid; place-content: center; padding: 24px; }
.fs-stage:fullscreen .big-display { font-size: 22vw; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border: 1.5px solid var(--rule); border-radius: 99px; background: var(--card-2); font-size: .88rem; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.ball-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.ball { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 1rem var(--f-mono); color: #fff; box-shadow: inset -3px -4px 0 rgba(0,0,0,.18); }
.ball.y { background: #e0a619; } .ball.b { background: #3f7dd1; } .ball.r { background: #d9534f; } .ball.g { background: #8a8f98; } .ball.k { background: #4ea35c; }
.wheel-wrap { position: relative; max-width: 440px; margin: 10px auto; }
.wheel-wrap canvas { width: 100%; height: auto; display: block; }
.wheel-pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--ink); filter: drop-shadow(0 2px 0 var(--paper)); }
.pick-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.pick-out .stat b { font-size: 1.15rem; font-family: var(--f-body); word-break: break-all; }
.kb { display: grid; gap: 5px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; }
.kb-row { display: flex; gap: 5px; }
.kb-key { flex: 0 0 auto; min-width: 38px; height: 40px; padding: 0 2px; white-space: nowrap; overflow: hidden; letter-spacing: -.04em; display: grid; place-items: center; border: 1.5px solid var(--rule); border-radius: 7px; background: var(--card-2); font: 500 .74rem var(--f-mono); color: var(--ink-soft); user-select: none; }
.kb-key.hit { background: var(--c-soft); border-color: var(--c); color: var(--ink); }
.kb-key.down { background: var(--c); color: #fff; border-color: var(--c); }
.level-meter { height: 22px; border-radius: 6px; background: var(--rule-soft); overflow: hidden; border: 1.5px solid var(--ink); }
.level-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pine) 0 60%, var(--mustard) 60% 85%, var(--tomato) 85%); background-size: 100vw 100%; transition: width .06s linear; }
.media-box { border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: #111; aspect-ratio: 16/9; display: grid; place-items: center; }
.media-box video { width: 100%; height: 100%; object-fit: contain; display: block; }
.media-box.mirror video { transform: scaleX(-1); }
.pixel-stage { position: fixed; inset: 0; z-index: 9999; cursor: none; }
.pixel-hint { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10000; background: rgba(0,0,0,.65); color: #fff; padding: 8px 16px; border-radius: 99px; font-size: .9rem; pointer-events: none; transition: opacity .4s; }
.swatch-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-btns button { width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--ink); cursor: pointer; }
.typing-src { font: 500 1.15rem/1.9 var(--f-body); padding: 16px 18px; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--card-2); word-break: keep-all; }
.typing-src .ok { color: var(--pine); } .typing-src .ng { color: var(--tomato); text-decoration: underline wavy; } .typing-src .cur { border-bottom: 3px solid var(--c); }
.sig-pad { width: 100%; height: 240px; border: 1.5px dashed var(--ink); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.ladder-cv { width: 100%; height: auto; display: block; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--card); touch-action: manipulation; }
.name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.photo-guide { position: relative; display: inline-block; max-width: 100%; touch-action: none; }
.ocr-out { min-height: 220px; }
@media (max-width: 600px) { .kb-key { min-width: 30px; height: 34px; font-size: .66rem; } }
.gj-wrap { overflow-x: auto; margin-top: 14px; }
.gj-page { display: grid; grid-template-columns: repeat(20, minmax(22px, 1fr)); border: 2px solid #c8644b; background: #fffdf8; min-width: 470px; margin-bottom: 4px; }
.gj-line { display: contents; }
.gj-cell { aspect-ratio: 1; border-right: 1px solid #e3a796; border-bottom: 1px solid #e3a796; display: grid; place-items: center; font: 400 clamp(.75rem, 1.6vw, 1rem)/1 var(--f-head); color: #2a251f; position: relative; }
.gj-cell:nth-child(20n) { border-right: 0; }
.gj-cell .mg { position: absolute; right: -6px; bottom: 0; font-size: .8em; }
.gj-cap { font-size: .8rem; color: var(--ink-soft); margin: 2px 0 14px; text-align: right; }
@media (prefers-color-scheme: dark) { .gj-page { background: #fbf7ee; } }
.csv-tbl { border-collapse: collapse; font-size: .85rem; width: max-content; min-width: 100%; }
.csv-tbl th, .csv-tbl td { border: 1px solid var(--rule); padding: 5px 9px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.csv-tbl th { background: var(--card-2); position: sticky; top: 0; }
.hwp-paper { background: #fff; color: #1d1b18; border: 1.5px solid var(--rule); border-radius: 10px; padding: clamp(18px, 4vw, 44px); max-height: 640px; overflow: auto; font: 400 .98rem/1.75 "IBM Plex Sans KR", "Malgun Gothic", sans-serif; box-shadow: 0 2px 0 var(--rule); }
.hwp-paper p { margin: 0 0 .35em; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; min-height: 1em; }
.hwp-paper table { border-collapse: collapse; margin: .6em 0 1em; width: 100%; font-size: .92em; }
.hwp-paper td { border: 1px solid #9a9389; padding: 5px 8px; vertical-align: top; white-space: pre-wrap; }
.hwp-paper .sec { border-top: 1px dashed #bbb; margin: 1.2em 0; }
