/* ==========================================================================
   무료 PDF 도구 · sea&sun — FREE PDF TOOLS
   ========================================================================== */
:root{
  --bg:#08080c;
  --bg2:#0b0c12;
  --panel:rgba(21,23,32,.78);
  --panel2:rgba(26,29,40,.9);
  --line:rgba(255,255,255,.08);
  --line2:rgba(255,255,255,.15);
  --txt:#edeef4;
  --muted:#9aa1b3;
  --dim:#6e7689;
  --gold:#d9b46a;
  --gold2:#f2d18a;
  --gold3:#b98b45;
  --ok:#5ad19b;
  --err:#e2796f;
  --r:18px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;color:var(--txt);line-height:1.55;overflow-x:hidden;
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(217,180,106,.13), transparent 62%),
    radial-gradient(760px 480px at 96% 12%, rgba(143,123,255,.07), transparent 60%),
    linear-gradient(180deg,#0a0a10 0%, var(--bg) 44%, #05060a 100%);
  background-attachment:fixed;
  font-family:"Pretendard","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;
  word-break:keep-all;overflow-wrap:anywhere;
}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;line-height:1.22;letter-spacing:-.035em}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
button{font:inherit}
.wrap{width:min(1060px,92vw);margin:0 auto}
.pc{display:inline}
@media(max-width:600px){.pc{display:none}}

/* ───────────────────────────── header */
.top{
  position:sticky;top:0;z-index:40;background:rgba(8,8,12,.8);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}
.topin{display:flex;align-items:center;justify-content:space-between;gap:14px;height:64px}
.brand{display:flex;align-items:center;gap:11px;min-width:0}
.brand .mark{width:38px;height:38px;flex:none;display:block;filter:drop-shadow(0 4px 12px rgba(0,0,0,.6))}
.brand .mark svg{width:38px;height:38px;display:block}
.brand .bt{display:flex;flex-direction:column;line-height:1.16;min-width:0}
.brand .bt b{font-size:15.5px;letter-spacing:-.03em;white-space:nowrap}
.brand .bt b i{font-style:normal;font-weight:700;font-size:11.5px;color:var(--gold);margin-left:3px}
.brand .bt span{font-size:9px;letter-spacing:.2em;color:var(--dim);font-weight:800}
.tools{display:flex;align-items:center;gap:8px;flex:none}
.hub{
  font-size:11.5px;font-weight:800;color:var(--muted);padding:7px 12px;border-radius:999px;
  border:1px solid var(--line);white-space:nowrap;
}
.hub:hover{color:var(--gold2);border-color:rgba(217,180,106,.45)}
.inst{
  display:grid;place-items:center;width:36px;height:36px;border-radius:11px;cursor:pointer;
  border:1px solid rgba(217,180,106,.35);background:rgba(217,180,106,.1);color:var(--gold2);
}
.inst svg{width:17px;height:17px}
@media(max-width:520px){.brand .bt b{font-size:14.5px}.brand .bt b i{display:none}.hub{padding:6px 10px;font-size:11px}}

/* ───────────────────────────── hero */
.hero{padding:46px 0 26px}
.kicker{font-size:9.5px;letter-spacing:.28em;color:var(--gold);font-weight:800;margin-bottom:14px}
.hero h1{font-size:clamp(30px,6.2vw,54px);font-weight:900;letter-spacing:-.045em}
.hero h1 em{
  font-style:normal;
  background:linear-gradient(100deg,var(--gold2),var(--gold) 52%,#a97c39);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero .sub{margin-top:14px;color:var(--muted);font-size:14.5px;line-height:1.72;max-width:640px}
.hero .sub b{color:var(--gold2);font-weight:800}
.pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.pills li{
  display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:#c6cbd8;
  padding:7px 12px 7px 10px;border-radius:999px;border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.pills svg{width:14px;height:14px;color:var(--ok)}

/* ───────────────────────────── tabs */
.work{padding-bottom:10px}
.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:6px 0 18px}
@media(max-width:760px){.tabs{grid-template-columns:repeat(2,1fr)}}
.tab{
  display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;
  padding:13px 14px;border-radius:15px;border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(24,26,36,.72),rgba(14,15,21,.72));
  color:var(--txt);transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.tab:hover{border-color:var(--line2);transform:translateY(-1px)}
.tab .ti{
  flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--muted);
}
.tab .ti svg{width:18px;height:18px}
.tab .tt{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.tab .tt b{font-size:13.5px;letter-spacing:-.02em}
.tab .tt i{font-style:normal;font-size:10.5px;color:var(--dim);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tab.on{
  border-color:rgba(217,180,106,.62);
  background:linear-gradient(180deg,rgba(217,180,106,.16),rgba(217,180,106,.05));
  box-shadow:0 14px 34px -22px rgba(217,180,106,.85);
}
.tab.on .ti{background:rgba(217,180,106,.16);border-color:rgba(217,180,106,.4);color:var(--gold2)}
.tab.on .tt b{color:#fff}
.tab.on .tt i{color:#c9bda2}

/* ───────────────────────────── panel */
.panel{
  border:1px solid var(--line);border-radius:var(--r);
  background:linear-gradient(180deg,rgba(22,24,34,.86),rgba(12,13,19,.9));
  padding:22px;box-shadow:0 30px 70px -50px rgba(0,0,0,.95);
}
.panel[hidden],.panel:not(.on){display:none}
.phead h2{font-size:19px;font-weight:900}
.phead p{margin-top:6px;font-size:12.5px;color:var(--muted);line-height:1.65}
@media(max-width:520px){.panel{padding:16px;border-radius:16px}.phead h2{font-size:17px}}

/* drop */
.drop{
  margin-top:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  padding:30px 18px;border-radius:16px;cursor:pointer;text-align:center;
  border:1.5px dashed rgba(217,180,106,.32);
  background:radial-gradient(420px 160px at 50% 0%, rgba(217,180,106,.08), transparent 70%),rgba(255,255,255,.017);
  transition:border-color .16s ease,background .16s ease;
}
.drop:hover,.drop:focus-visible,.drop.over{
  border-color:rgba(217,180,106,.75);outline:none;
  background:radial-gradient(420px 180px at 50% 0%, rgba(217,180,106,.15), transparent 72%),rgba(217,180,106,.04);
}
.drop .dico{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;margin-bottom:4px;
  background:rgba(217,180,106,.12);border:1px solid rgba(217,180,106,.28);color:var(--gold2)}
.drop .dico svg{width:22px;height:22px}
.drop b{font-size:14px;font-weight:800}
.drop span{font-size:11.5px;color:var(--dim)}

/* file list */
.flist{margin-top:14px;display:flex;flex-direction:column;gap:8px}
.flist:empty{display:none}
.frow{
  display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:13px;
  border:1px solid var(--line);background:rgba(255,255,255,.025);
}
.frow .ficon{
  flex:none;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;
  font-size:9.5px;font-weight:900;letter-spacing:.02em;color:#1a1206;
  background:linear-gradient(160deg,var(--gold2),var(--gold3));
}
.frow .fmeta{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.frow .fmeta b{font-size:12.8px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.frow .fmeta span{font-size:10.5px;color:var(--dim);margin-top:2px}
.frow .fbtns{display:flex;gap:4px;flex:none}
.frow .fbtns button{
  width:27px;height:27px;display:grid;place-items:center;border-radius:8px;cursor:pointer;
  border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--muted);font-size:12px;line-height:1;
}
.frow .fbtns button:hover{color:var(--gold2);border-color:rgba(217,180,106,.4)}
.frow .fbtns button:disabled{opacity:.28;cursor:default}
.frow .thumb{flex:none;width:36px;height:36px;border-radius:8px;object-fit:cover;border:1px solid var(--line);background:#111}

/* bar */
.bar{display:flex;align-items:flex-end;gap:10px;margin-top:16px;flex-wrap:wrap}
.bar.opts{align-items:flex-end}
.field{display:flex;flex-direction:column;gap:5px;flex:1 1 190px;min-width:0}
.field>span{font-size:10.5px;font-weight:800;letter-spacing:.06em;color:var(--dim)}
.field input,.field select{
  width:100%;height:42px;padding:0 12px;border-radius:11px;font:inherit;font-size:13px;
  color:var(--txt);background:rgba(255,255,255,.045);border:1px solid var(--line2);
}
.field input:focus,.field select:focus{outline:none;border-color:rgba(217,180,106,.6);background:rgba(217,180,106,.06)}
.field select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 16px) 18px,calc(100% - 11px) 18px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.go{
  flex:1 1 240px;height:46px;padding:0 20px;border-radius:12px;cursor:pointer;border:1px solid rgba(242,209,138,.45);
  background:linear-gradient(135deg,#f2d18a,#d9b46a 55%,#b98b45);color:#191206;
  font-size:13.5px;font-weight:900;letter-spacing:-.02em;
  box-shadow:0 16px 34px -18px rgba(217,180,106,.9);
}
.go:hover:not(:disabled){filter:brightness(1.05)}
.go:disabled{opacity:.36;cursor:default;box-shadow:none}
.go2{
  height:42px;padding:0 16px;border-radius:11px;cursor:pointer;font-size:12.5px;font-weight:800;
  border:1px solid rgba(217,180,106,.4);background:rgba(217,180,106,.12);color:var(--gold2);
}
.go2.big{flex:1 1 210px}
.go2.ghost{border-color:var(--line2);background:rgba(255,255,255,.04);color:#cfd3de}
.go2:disabled{opacity:.34;cursor:default}

/* split */
.splitBox{margin-top:14px}
.sbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-radius:11px;
  border:1px solid var(--line);background:rgba(255,255,255,.03)}
.sfname{font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scount{font-size:11px;color:var(--dim);flex:none}
.spick{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}
.mini{
  height:32px;padding:0 12px;border-radius:9px;cursor:pointer;font-size:11.5px;font-weight:700;
  border:1px solid var(--line2);background:rgba(255,255,255,.045);color:#cfd3de;
}
.mini:hover{color:var(--gold2);border-color:rgba(217,180,106,.4)}
.rng{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:10.5px;color:var(--dim);font-weight:700}
.rng input{width:132px;height:32px;padding:0 10px;border-radius:9px;font:inherit;font-size:12px;color:var(--txt);
  background:rgba(255,255,255,.045);border:1px solid var(--line2)}
.rng input:focus{outline:none;border-color:rgba(217,180,106,.6)}
.rng .go2{height:32px;padding:0 11px;font-size:11.5px}
@media(max-width:640px){.rng{margin-left:0;width:100%}.rng input{flex:1 1 auto;width:auto}}

.pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:9px;margin-top:12px;
  max-height:420px;overflow:auto;padding-right:4px}
.pages::-webkit-scrollbar{width:8px}
.pages::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:8px}
.pg{
  position:relative;display:block;cursor:pointer;border-radius:10px;overflow:hidden;
  border:1px solid var(--line);background:#0e0f15;padding:0;
}
.pg canvas,.pg img{display:block;width:100%;height:auto;background:#fff}
.pg .num{
  position:absolute;left:5px;bottom:5px;font-size:9.5px;font-weight:800;color:#fff;
  background:rgba(0,0,0,.62);padding:1px 6px;border-radius:6px;
}
.pg .chk{
  position:absolute;right:5px;top:5px;width:17px;height:17px;border-radius:5px;
  border:1.5px solid rgba(255,255,255,.55);background:rgba(0,0,0,.3);display:grid;place-items:center;
  font-size:10px;color:transparent;line-height:1;
}
.pg.on{border-color:rgba(217,180,106,.9);box-shadow:0 0 0 1px rgba(217,180,106,.55) inset}
.pg.on .chk{background:var(--gold2);border-color:var(--gold2);color:#1a1206}
.note{font-size:11.5px;color:var(--muted);font-weight:700;flex:1 1 100%}
@media(min-width:641px){.note{flex:0 0 auto;margin-right:auto}}

/* shrink */
.shrinkBox{margin-top:14px}
.sinfo{display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:12px;border:1px solid var(--line);
  background:rgba(255,255,255,.03);font-size:12.5px;color:#cfd3de;flex-wrap:wrap}
.sinfo b{color:#fff}
.sinfo .arrow{color:var(--gold);font-weight:900}
.sinfo .save{color:var(--ok);font-weight:900}
.levels{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 0;padding:0;border:0}
@media(max-width:600px){.levels{grid-template-columns:1fr}}
.levels legend{font-size:10.5px;font-weight:800;letter-spacing:.06em;color:var(--dim);margin-bottom:7px;padding:0}
.lvl{display:block;cursor:pointer}
.lvl input{position:absolute;opacity:0;pointer-events:none}
.lvl span{display:flex;flex-direction:column;gap:2px;padding:11px 13px;border-radius:12px;
  border:1px solid var(--line);background:rgba(255,255,255,.03)}
.lvl b{font-size:12.8px}
.lvl i{font-style:normal;font-size:10.5px;color:var(--dim)}
.lvl input:checked+span{border-color:rgba(217,180,106,.7);background:rgba(217,180,106,.12)}
.lvl input:checked+span b{color:var(--gold2)}
.lvl input:focus-visible+span{outline:2px solid rgba(217,180,106,.6);outline-offset:2px}
.warn{margin-top:12px;font-size:11.5px;color:#a5a09a;line-height:1.6;padding-left:14px;position:relative}
.warn:before{content:"";position:absolute;left:0;top:6px;width:5px;height:5px;border-radius:50%;background:var(--gold3)}

/* result */
.result{margin-top:16px;border-radius:16px;padding:18px;border:1px solid rgba(90,209,155,.34);
  background:linear-gradient(180deg,rgba(90,209,155,.1),rgba(90,209,155,.03))}
.result.err{border-color:rgba(226,121,111,.4);background:linear-gradient(180deg,rgba(226,121,111,.1),rgba(226,121,111,.03))}
.rhead{display:flex;align-items:center;gap:9px}
.rhead b{font-size:14.5px}
.rok{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900;
  background:rgba(90,209,155,.22);color:#9ff0c7}
.result.err .rok{background:rgba(226,121,111,.22);color:#ffc3bc}
#rDesc{margin-top:7px;font-size:12.5px;color:#c3c8d4;line-height:1.65}
.ractions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.ractions a,.ractions button{
  height:40px;padding:0 16px;display:inline-flex;align-items:center;gap:7px;border-radius:11px;cursor:pointer;
  font-size:12.5px;font-weight:800;border:1px solid rgba(242,209,138,.4);
  background:linear-gradient(135deg,#f2d18a,#d9b46a 60%,#b98b45);color:#191206;
}
.ractions .alt{background:rgba(255,255,255,.05);color:#dfe3ec;border-color:var(--line2)}
.rmore{margin-top:12px;font-size:10.5px;color:#8d94a6;line-height:1.7}
.rmore a{color:var(--gold2);font-weight:800}

/* funnel */
.funnel{margin-top:44px;padding:34px 0 10px;border-top:1px solid var(--line)}
.fk{font-size:9.5px;letter-spacing:.26em;color:var(--gold);font-weight:800;margin-bottom:14px}
.fcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
@media(max-width:760px){.fcards{grid-template-columns:1fr}}
.fcard{
  display:flex;align-items:flex-start;gap:13px;padding:17px;border-radius:16px;border:1px solid var(--line);
  background:linear-gradient(160deg,rgba(24,26,36,.85),rgba(12,13,19,.9));
  transition:border-color .16s ease,transform .16s ease;
}
.fcard:hover{border-color:rgba(217,180,106,.5);transform:translateY(-2px)}
.fcard .fem{flex:none;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:19px;
  background:rgba(217,180,106,.12);border:1px solid rgba(217,180,106,.25)}
.fcard .ft{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}
.fcard .ft b{font-size:14px;font-weight:900}
.fcard .ft i{font-style:normal;font-size:10.5px;color:var(--gold);font-weight:800;letter-spacing:.02em}
.fcard .ft span{font-size:11.5px;color:var(--muted);line-height:1.6;margin-top:5px}
.fcard .fgo{flex:none;align-self:center;font-size:11px;font-weight:800;color:var(--gold2);white-space:nowrap}
.fmore{margin-top:14px;font-size:11.5px;color:var(--dim)}
.fmore a{color:var(--gold2);font-weight:800;border-bottom:1px solid rgba(217,180,106,.4)}

/* footer */
.foot{margin-top:34px;padding:22px 0 34px;border-top:1px solid var(--line)}
.foot p{font-size:11.5px;color:var(--dim)}
.foot b{color:var(--muted)}
.foot .tiny{margin-top:3px;font-size:10.5px;color:#5c6376}

/* sheet / install */
.sheet{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center;background:rgba(6,7,10,.62)}
.sheetPanel{width:100%;max-width:400px;margin:0 auto;padding:12px 12px calc(14px + env(safe-area-inset-bottom));
  border:1px solid rgba(255,255,255,.14);border-bottom:0;border-radius:20px 20px 0 0;background:rgba(20,22,29,.99)}
.instHead{display:flex;align-items:flex-start;gap:10px;padding:6px 8px 2px}
.instIco{flex:none;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:var(--gold2);
  background:linear-gradient(180deg,rgba(217,180,106,.22),rgba(217,180,106,.07));border:1px solid rgba(217,180,106,.32)}
.instIco svg{width:19px;height:19px;display:block}
.instTxt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.28;padding-top:2px}
.instTxt b{font-size:14.5px;font-weight:800}
.instTxt span{font-size:11.5px;color:#868a99}
.benClose{flex:none;background:none;border:0;color:#767b8c;font-size:15px;cursor:pointer;padding:2px 4px}
.instHow{margin:10px 10px 0;font-size:13.2px;line-height:1.65;color:#c7c9d3;word-break:keep-all}
.instOk{display:block;width:calc(100% - 20px);margin:13px 10px 0;height:44px;border-radius:13px;cursor:pointer;
  border:1px solid rgba(217,180,106,.4);background:linear-gradient(180deg,rgba(217,180,106,.22),rgba(217,180,106,.1));
  color:#ffe8c4;font-size:14px;font-weight:800}

/* progress */
.prog{position:fixed;inset:0;z-index:70;display:grid;place-items:center;background:rgba(5,6,10,.72);backdrop-filter:blur(3px)}
.progCard{width:min(340px,86vw);padding:22px;border-radius:18px;text-align:center;
  border:1px solid rgba(217,180,106,.3);background:rgba(18,20,28,.98);box-shadow:0 40px 90px -40px #000}
.progCard b{display:block;font-size:14.5px}
.progCard span{display:block;margin-top:5px;font-size:11.5px;color:var(--dim)}
.pbar{margin-top:15px;height:5px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden}
.pbar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--gold3),var(--gold2));
  transition:width .25s ease}

/* toast */
.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:80;max-width:88vw;
  padding:11px 17px;border-radius:12px;font-size:12.5px;font-weight:700;color:#ffe8c4;
  border:1px solid rgba(217,180,106,.36);background:rgba(24,20,12,.96);box-shadow:0 20px 40px -20px #000}
