:root { color-scheme: dark; font-family: Pretendard,"Noto Sans KR",system-ui,sans-serif; --bg:#080b14; --surface:rgba(17,22,37,.92); --surface2:#171d30; --border:rgba(255,255,255,.1); --text:#f6f7fb; --muted:#aab1c5; --accent:#8b5cf6; --accent2:#6366f1; --success:#5ee0a0; --danger:#ff8e9e; }
* { box-sizing:border-box; }
body { min-width:320px; min-height:100vh; margin:0; color:var(--text); background:radial-gradient(circle at 12% 8%,rgba(124,58,237,.22),transparent 34rem),radial-gradient(circle at 90% 90%,rgba(37,99,235,.15),transparent 30rem),var(--bg); }
body::before { position:fixed; inset:0; pointer-events:none; content:""; opacity:.25; background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size:28px 28px; }
button,input { font:inherit; }
.page-shell { position:relative; width:min(1180px,100% - 36px); margin:auto; padding:54px 0 28px; }
.site-header { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.eyebrow,.detail-label { margin:0 0 10px; color:#c4b5fd; font-size:.74rem; font-weight:800; letter-spacing:.16em; }
h1 { margin:0; font-size:clamp(2.2rem,6vw,4rem); letter-spacing:-.05em; line-height:1; }
.site-header>div>p:last-child { margin:18px 0 0; color:var(--muted); }
.file-count { flex:none; padding:8px 13px; border:1px solid var(--border); border-radius:999px; color:var(--muted); background:rgba(255,255,255,.04); font-size:.82rem; }
.repository { display:grid; grid-template-columns:minmax(270px,340px) 1fr; min-height:600px; overflow:hidden; border:1px solid var(--border); border-radius:26px; background:var(--surface); box-shadow:0 28px 90px rgba(0,0,0,.38); backdrop-filter:blur(18px); }
.file-browser { padding:20px; border-right:1px solid var(--border); background:rgba(0,0,0,.12); }
.search-box { display:flex; align-items:center; gap:9px; height:44px; padding:0 13px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.04); }
.search-box:focus-within { border-color:#a78bfa; box-shadow:0 0 0 3px rgba(139,92,246,.12); }
.search-box svg { width:18px; fill:none; stroke:var(--muted); stroke-width:2; }
.search-box input { width:100%; border:0; outline:0; color:var(--text); background:transparent; }
.file-list { display:grid; gap:7px; margin-top:16px; }
.file-item { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:11px; width:100%; padding:11px; border:1px solid transparent; border-radius:13px; color:var(--text); background:transparent; text-align:left; cursor:pointer; transition:.18s ease; }
.file-item:hover { background:rgba(255,255,255,.05); }
.file-item.is-active { border-color:rgba(167,139,250,.28); background:rgba(139,92,246,.13); }
.mini-file-icon,.large-file-icon { display:grid; place-items:center; border:1px solid rgba(196,181,253,.32); color:white; background:linear-gradient(145deg,var(--accent),var(--accent2)); font-weight:900; }
.mini-file-icon { width:42px; height:48px; border-radius:7px 12px 7px 7px; font-size:.59rem; letter-spacing:.06em; }
.file-copy { min-width:0; }
.file-copy strong,.file-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-copy strong { margin-bottom:5px; font-size:.9rem; }
.file-copy small { color:var(--muted); font-size:.73rem; }
.chevron { color:#777f94; font-size:1.4rem; }
.list-message { padding:30px 8px; color:var(--muted); font-size:.86rem; text-align:center; }
.file-detail { display:flex; flex-direction:column; justify-content:center; padding:clamp(30px,6vw,68px); }
.detail-topline { display:flex; align-items:center; gap:22px; }
.large-file-icon { flex:none; width:72px; height:84px; border-radius:10px 18px 10px 10px; box-shadow:0 12px 28px rgba(91,33,182,.28); font-size:.72rem; letter-spacing:.08em; }
.detail-topline h2 { margin:0; font-size:clamp(1.7rem,4vw,2.7rem); letter-spacing:-.035em; }
.real-name { margin:8px 0 0; color:var(--muted); font-family:ui-monospace,Consolas,monospace; font-size:.86rem; }
.description { max-width:650px; margin:28px 0 18px; color:#c4c9d6; line-height:1.75; white-space:pre-line; }
.tags { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:26px; }
.tags span { padding:6px 10px; border-radius:99px; color:#c4b5fd; background:rgba(139,92,246,.12); font-size:.73rem; }
.metadata { display:grid; grid-template-columns:repeat(4,1fr); margin:0 0 26px; padding:20px 0; border-block:1px solid var(--border); }
.metadata div { padding:0 15px; border-right:1px solid var(--border); }
.metadata div:first-child { padding-left:0; }.metadata div:last-child { border:0; }
.metadata dt { margin-bottom:7px; color:var(--muted); font-size:.72rem; }.metadata dd { margin:0; font-size:.85rem; font-weight:700; }
.notice { margin-bottom:24px; padding:16px 18px; border:1px solid rgba(245,158,11,.2); border-radius:12px; background:rgba(245,158,11,.07); }
.notice strong { color:#fcd34d; font-size:.82rem; }.notice p { margin:7px 0 0; color:#c9c3b4; font-size:.84rem; line-height:1.6; }
.download-button { display:flex; align-items:center; justify-content:center; gap:10px; min-height:56px; border-radius:14px; color:white; background:linear-gradient(135deg,var(--accent),var(--accent2)); box-shadow:0 12px 28px rgba(99,102,241,.24); font-weight:800; text-decoration:none; transition:.2s ease; }
.download-button:hover { transform:translateY(-2px); filter:brightness(1.08); }.download-button svg { width:21px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.download-button.is-checking,.download-button.is-disabled { pointer-events:none; opacity:.5; filter:grayscale(.8); }
.status { min-height:1.4em; margin:9px 2px 0; color:var(--success); font-size:.78rem; }.status.error,.list-message.error { color:var(--danger); }
.empty-detail { color:var(--muted); text-align:center; }.empty-detail h2 { margin:18px 0 8px; color:var(--text); }.empty-detail p { margin:0; }.empty-icon { display:grid; width:64px; height:64px; margin:auto; place-items:center; border:1px solid var(--border); border-radius:18px; background:var(--surface2); font-size:1.6rem; }
footer { padding-top:20px; color:#72798d; font-size:.76rem; text-align:center; }
@media (max-width:780px) { .page-shell{width:min(100% - 20px,1180px);padding-top:28px}.site-header{align-items:start}.repository{grid-template-columns:1fr}.file-browser{border-right:0;border-bottom:1px solid var(--border)}.file-list{max-height:250px;overflow-y:auto}.file-detail{min-height:520px}.metadata{grid-template-columns:repeat(2,1fr);gap:20px 0}.metadata div:nth-child(2){border:0} }
@media (max-width:480px) { .site-header{display:block}.file-count{display:inline-block;margin-top:16px}.repository{border-radius:20px}.file-detail{padding:28px 20px}.detail-topline{align-items:start}.large-file-icon{width:58px;height:68px}.metadata{grid-template-columns:1fr;gap:15px}.metadata div,.metadata div:first-child{display:flex;justify-content:space-between;gap:15px;padding:0;border:0} }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after{transition:none!important} }
