:root {
  --void: #060807;
  --black: #090c0b;
  --panel: #0d1210;
  --panel-hi: #121916;
  --line: #27312c;
  --line-hi: #48574f;
  --text: #e8eeeb;
  --muted: #77847d;
  --dim: #465049;
  --signal: #baff39;
  --signal-dim: #84b928;
  --violet: #9e83ff;
  --danger: #ff5a5f;
  --cyan: #6de4da;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--void);
  background-image:
    linear-gradient(rgba(186,255,57,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186,255,57,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .18;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px);
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #080b09; background: var(--signal); }

.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  width: min(1240px, calc(100% - 48px));
  height: 68px;
  margin: 22px auto 0;
  padding: 0 14px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
  background: rgba(8,11,10,.92);
  border: 1px solid var(--line-hi);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  backdrop-filter: blur(14px);
}
.site-header::before {
  content: "";
  width: 72px;
  height: 2px;
  position: absolute;
  left: 22px;
  bottom: -1px;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(186,255,57,.55);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-decoration: none; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .06em; }
.brand-mark {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 72% 100%, 0 100%);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: -.06em;
}
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-node { margin-right: 10px; padding-right: 16px; border-right: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.header-node i, .status-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 9px var(--signal); }
.nav-link { padding: 11px 13px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-decoration: none; }
.nav-link:hover { color: var(--signal); }

.hero {
  min-height: 680px;
  padding-top: 82px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: clamp(54px, 8vw, 118px);
  position: relative;
}
.hero::before {
  content: "DV-9921";
  position: absolute;
  right: -8px;
  top: 32px;
  color: rgba(255,255,255,.025);
  font: 900 clamp(90px, 15vw, 205px)/1 var(--mono);
  letter-spacing: -.1em;
  white-space: nowrap;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-kicker { color: var(--signal); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.pulse { width: 24px; height: 1px; background: var(--signal); box-shadow: 0 0 10px rgba(186,255,57,.5); }
.hero-index { width: fit-content; margin-bottom: 16px; padding: 5px 8px; border-left: 2px solid var(--violet); color: #69736d; background: rgba(158,131,255,.055); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.hero h1 { margin: 0; color: var(--text); font-family: "Arial Black", "Pretendard", var(--sans); font-size: clamp(54px, 6.2vw, 86px); font-weight: 950; line-height: .84; letter-spacing: -.07em; text-transform: uppercase; }
.hero h1 span { position: relative; }
.hero h1 span::after { content: ""; width: 20px; height: 8px; position: absolute; right: -30px; top: 15px; border-top: 1px solid var(--violet); border-bottom: 1px solid var(--violet); }
.hero h1 em { color: var(--signal); font-style: normal; text-shadow: 0 0 38px rgba(186,255,57,.12); }
.hero-copy > p { max-width: 560px; margin: 32px 0 37px; color: #8c9891; font-size: 15px; line-height: 1.9; word-break: keep-all; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #657169; font-family: var(--mono); font-size: 8.5px; letter-spacing: .05em; }
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-row b { color: var(--violet); font-weight: 600; }

.upload-card {
  padding: 1px;
  position: relative;
  background: var(--line-hi);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  filter: drop-shadow(22px 28px 0 rgba(186,255,57,.92));
}
.upload-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  width: 55px;
  height: 1px;
  right: 7px;
  top: 16px;
  background: var(--signal);
  transform: rotate(45deg);
}
.upload-card > * { position: relative; z-index: 2; }
.upload-card { background-color: var(--panel); background-image: linear-gradient(135deg, transparent 0 23px, var(--line-hi) 23px 24px, transparent 24px); }
.upload-card { padding: 30px; border: 1px solid var(--line-hi); }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-topline h2 { margin: 7px 0 0; font-size: 23px; letter-spacing: -.04em; }
.status-pill { padding: 7px 9px; border: 1px solid var(--line-hi); color: #829087; background: #0a0d0c; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; white-space: nowrap; }
.field-label { display: block; margin: 0 0 8px; color: #8e9a93; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-input { width: 100%; height: 49px; padding: 0 15px; color: var(--text); background: #080b0a; border: 1px solid var(--line); border-radius: 0; outline: none; font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.text-input::placeholder { color: #424c46; }
.text-input:focus { border-color: var(--signal-dim); box-shadow: inset 3px 0 0 var(--signal), 0 0 22px rgba(186,255,57,.04); }
.dropzone {
  min-height: 170px;
  margin-top: 13px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text);
  background-color: #080b0a;
  background-image: linear-gradient(rgba(186,255,57,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(186,255,57,.022) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px dashed #3d4942;
  cursor: pointer;
  text-align: center;
  outline: none;
  transition: border-color .18s, background-color .18s;
}
.dropzone:hover, .dropzone:focus, .dropzone.is-dragging { border-color: var(--signal); background-color: #0d130c; }
.drop-icon { width: 43px; height: 43px; margin-bottom: 7px; display: grid; place-items: center; color: var(--black); background: var(--signal); clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%); font: 700 22px/1 var(--mono); }
.dropzone strong { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.dropzone span { color: #5d6962; font-size: 10px; }
.file-queue { display: grid; gap: 6px; margin-top: 10px; }
.queue-item { min-width: 0; padding: 10px 11px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; background: #090c0b; border-left: 2px solid var(--violet); }
.queue-name { overflow: hidden; color: #cbd3cf; font: 10px/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.queue-size { color: #626e67; font: 9px var(--mono); }
.icon-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 18px; }
.privacy-note { margin: 13px 0 0; color: #505b55; font: 8.5px/1.6 var(--mono); }
.privacy-note span { color: var(--signal); }

.button { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 0; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-decoration: none; cursor: pointer; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); transition: color .16s, background .16s, border-color .16s, transform .16s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-small { min-height: 38px; }
.button-wide { width: 100%; }
.button-primary { min-height: 51px; margin-top: 14px; color: #080b09; background: var(--signal); border-color: var(--signal); }
.button-primary:hover:not(:disabled) { color: var(--signal); background: transparent; box-shadow: inset 4px 0 0 var(--signal); }
.button-primary:disabled { opacity: .28; cursor: not-allowed; }
.button-dark { color: #d7ded9; background: #111714; border-color: var(--line-hi); }
.button-dark:hover { color: var(--signal); border-color: var(--signal-dim); }
.button-quiet { color: #829087; background: transparent; border-color: var(--line-hi); }
.button-quiet:hover { color: var(--signal); border-color: var(--signal-dim); }
.button-danger { color: var(--danger); background: rgba(255,90,95,.04); border-color: rgba(255,90,95,.38); }
.button-success { color: var(--black); background: var(--signal); border-color: var(--signal); }
.is-loading { cursor: wait; }

.notice { margin-top: 13px; padding: 12px 14px; border-left: 2px solid; font: 10px/1.6 var(--mono); }
.notice-success { color: #b8ef65; background: rgba(186,255,57,.06); border-color: var(--signal); }
.notice-error { color: #ff8b8f; background: rgba(255,90,95,.06); border-color: var(--danger); }

.public-section { padding: 92px 0 105px; position: relative; color: var(--text); background: #090c0b; border-top: 1px solid var(--line-hi); }
.public-section::before { content: "PUBLIC_ACCESS"; position: absolute; right: 3vw; top: 16px; color: rgba(186,255,57,.04); font: 900 clamp(45px, 8vw, 110px)/1 var(--mono); letter-spacing: -.08em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; position: relative; z-index: 1; }
.section-heading h2 { margin: 9px 0 0; font-family: "Arial Black", var(--sans); font-size: clamp(35px, 4.5vw, 58px); line-height: .95; letter-spacing: -.055em; }
.section-description { margin: 14px 0 38px; color: var(--muted); font-size: 12px; }
.file-grid { min-height: 190px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.file-card { min-width: 0; padding: 21px; display: flex; flex-direction: column; background: var(--panel); transition: background .18s, box-shadow .18s; }
.file-card:hover { z-index: 1; background: var(--panel-hi); box-shadow: inset 3px 0 0 var(--signal); }
.file-card-top { display: flex; align-items: center; justify-content: space-between; }
.file-glyph { width: 37px; height: 37px; display: grid; place-items: center; color: var(--signal); border: 1px solid var(--signal-dim); font: 17px var(--mono); }
.file-meta { color: #657169; font: 8.5px var(--mono); letter-spacing: .05em; }
.file-card h3 { margin: 29px 0 8px; overflow: hidden; color: #dce4df; font: 700 12px/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.file-card p { margin: 0 0 21px; color: #626e67; font-size: 10px; }
.file-card .button { margin-top: auto; }
.empty-state { grid-column: 1/-1; min-height: 220px; display: grid; place-items: center; align-content: center; color: #536058; background: #090c0b; text-align: center; }
.empty-state span { color: var(--signal); font-size: 25px; }
.empty-state strong { margin-top: 8px; color: #929e97; font: 10px var(--mono); letter-spacing: .06em; }
.empty-state p { margin: 7px 0 0; font-size: 10px; }

.site-footer { min-height: 115px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #4d5952; font: 8.5px var(--mono); letter-spacing: .05em; }
.site-footer code { color: var(--violet); }

/* Control room */
.admin-body { background-color: #070908; }
.admin-shell { width: min(1280px, calc(100% - 48px)); margin: 28px auto 75px; }
.login-panel { width: min(450px, calc(100% - 28px)); margin: 10vh auto 0; padding: 34px; position: relative; background: var(--panel); border: 1px solid var(--line-hi); clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); box-shadow: 16px 18px 0 rgba(158,131,255,.7); }
.login-panel::before { content: "AUTH_REQUIRED"; position: absolute; top: 11px; right: 35px; color: var(--violet); font: 7px var(--mono); letter-spacing: .12em; }
.login-panel .brand { margin-bottom: 48px; }
.login-panel h1 { margin: 9px 0 11px; font-family: "Arial Black", var(--sans); font-size: 32px; line-height: 1; letter-spacing: -.045em; }
.login-panel p { margin: 0 0 27px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-top { min-height: 62px; margin-bottom: 39px; padding: 0 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.admin-top-actions { display: flex; gap: 7px; }
.admin-title-row { margin-bottom: 23px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.admin-title-row h1 { margin: 9px 0 0; font-family: "Arial Black", var(--sans); font-size: clamp(38px, 5vw, 57px); line-height: .9; letter-spacing: -.055em; }
.admin-title-row p { margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.stats { margin-bottom: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { min-height: 100px; padding: 19px 20px; position: relative; background: var(--panel); }
.stat::after { content: "+"; position: absolute; right: 12px; top: 8px; color: var(--dim); font: 12px var(--mono); }
.stat span { color: var(--muted); font: 8px var(--mono); letter-spacing: .1em; }
.stat strong { display: block; margin-top: 10px; color: var(--text); font: 700 30px/1 var(--mono); }
.stat:nth-child(2) strong { color: var(--violet); }
.stat:nth-child(3) strong { color: var(--signal); }
.admin-grid { display: grid; grid-template-columns: 335px 1fr; gap: 14px; align-items: start; }
.admin-card { padding: 22px; background: var(--panel); border: 1px solid var(--line); clip-path: var(--cut); }
.admin-card h2 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.025em; }
.admin-card > p { margin: 0 0 20px; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.checkbox-row { margin: 15px 0 0; display: flex; align-items: center; gap: 9px; color: #86938b; font: 10px var(--mono); }
.checkbox-row input { width: 15px; height: 15px; accent-color: var(--signal); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 0 10px 12px; color: #59645e; border-bottom: 1px solid var(--line); font: 7.5px var(--mono); letter-spacing: .12em; text-align: left; }
.data-table td { padding: 15px 10px; color: #aeb8b2; border-bottom: 1px solid #1d2521; font-size: 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(186,255,57,.018); }
.table-file { max-width: 260px; }
.table-file strong { display: block; overflow: hidden; color: #d5ddd8; font: 10px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.table-file span { display: block; margin-top: 5px; color: #505b55; font: 8px var(--mono); }
.tag { padding: 5px 7px; display: inline-flex; border-left: 2px solid; font: 7.5px var(--mono); letter-spacing: .08em; }
.tag-public { color: var(--signal); background: rgba(186,255,57,.055); border-color: var(--signal); }
.tag-private { color: #aa91ff; background: rgba(158,131,255,.06); border-color: var(--violet); }
.action-group { display: flex; justify-content: flex-end; gap: 4px; }
.action-group .button { min-height: 31px; padding: 0 8px; font-size: 7.5px; }
.api-box { margin-top: 17px; padding: 15px; color: #8c9991; background: #080b0a; border-left: 2px solid var(--violet); font: 8.5px/1.8 var(--mono); overflow-wrap: anywhere; }
.api-box b { color: var(--signal); }
.api-box a { color: var(--violet); text-decoration: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 78px; }
  .hero-copy { max-width: 720px; }
  .upload-card { width: calc(100% - 22px); max-width: 670px; }
  .file-grid { grid-template-columns: repeat(2,1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-card:first-child { max-width: 650px; }
}

@media (max-width: 650px) {
  .shell, .site-header, .admin-shell { width: min(100% - 24px, 1240px); }
  .site-header { height: 60px; margin-top: 12px; padding-left: 12px; }
  .header-node, .nav-link { display: none; }
  .brand small { display: none; }
  .hero { min-height: 0; padding-top: 66px; padding-bottom: 78px; }
  .hero::before { top: 44px; font-size: 80px; }
  .hero h1 { font-size: clamp(46px, 15vw, 67px); }
  .hero-copy > p { font-size: 13px; }
  .trust-row { gap: 10px 16px; }
  .upload-card { width: calc(100% - 12px); padding: 21px; filter: drop-shadow(11px 13px 0 rgba(186,255,57,.9)); }
  .status-pill { display: none; }
  .file-grid { grid-template-columns: 1fr; }
  .public-section { padding: 72px 0 82px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .login-panel { padding: 27px 22px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { min-height: 85px; padding: 14px 12px; }
  .stat span { font-size: 6px; }
  .stat strong { font-size: 23px; }
  .admin-title-row { align-items: flex-start; flex-direction: column; }
  .admin-top .brand span:last-child { display: none; }
  .admin-top-actions .button { padding: 0 10px; }
  .action-group { min-width: 210px; }
}
