:root {
  --bg: #05020f;
  --panel: rgba(34, 22, 70, .42);
  --panel-strong: rgba(45, 31, 88, .62);
  --line: rgba(190, 164, 255, .18);
  --line-strong: rgba(198, 176, 255, .34);
  --text: #f7f3ff;
  --muted: #b7abc9;
  --faint: #807394;
  --accent: #8c5cff;
  --accent-2: #c38bff;
  --ok: #67f0a8;
  --warn: #ffd36e;
  --bad: #ff6f8d;
  --mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
  background:
    radial-gradient(circle at 17% 0%, rgba(129, 74, 255, .42), transparent 32rem),
    radial-gradient(circle at 84% 18%, rgba(112, 54, 255, .28), transparent 28rem),
    radial-gradient(circle at 52% 100%, rgba(73, 42, 170, .32), transparent 34rem),
    linear-gradient(135deg, #09031d 0%, #05020f 44%, #09051b 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 75%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(260px, 318px) 1fr auto;
  align-items: stretch;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(190,164,255,.18);
  border-radius: 0;
  background: rgba(7, 4, 22, .76);
  box-shadow: 0 24px 80px rgba(0,0,0,.3), inset 0 -1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(22px);
  overflow: visible;
}

.brand,
.nav a,
.top-actions {
  display: flex;
  align-items: center;
}

.brand {
  padding: 0 22px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 900;
  letter-spacing: .04em;
}

.nav {
  display: flex;
  min-width: 0;
  gap: 18px;
  padding-left: 12px;
}

.nav a {
  position: relative;
  min-width: 92px;
  min-height: 44px;
  margin: auto 0;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  border-color: rgba(190,164,255,.32);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -7px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8d57ff, #c18cff);
  box-shadow: 0 0 16px rgba(140,92,255,.75);
}

.top-actions {
  gap: 10px;
  padding: 0 16px;
  border-left: 1px solid var(--line);
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 340px;
  gap: 18px;
  min-height: 0;
  padding: 22px;
}

.panel,
.content {
  min-width: 0;
}

.panel,
.page-card,
.table-wrap,
.dropzone,
.access-box,
.status-tile,
.help-list article,
.modal {
  border: 1px solid rgba(190,164,255,.28);
  background: linear-gradient(180deg, rgba(44, 34, 88, .48), rgba(16, 13, 42, .5));
  box-shadow: 0 24px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(24px);
}

.panel {
  border-radius: 30px;
}

.side-panel,
.access-panel {
  padding: 22px;
  align-self: start;
}

.panel-title,
.section-label {
  display: block;
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.node-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  position: relative;
}

.node-card::after {
  content: "▱";
  position: absolute;
  right: 18px;
  top: 26px;
  color: rgba(195,139,255,.45);
  font-size: 32px;
  line-height: 1;
}

.node-card span,
.muted {
  color: var(--muted);
}

.node-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 20px;
}

.kv {
  margin: 22px 0;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(190,164,255,.12);
}

.kv dt,
.kv dd,
.mini-log,
.statusbar,
.file-list,
.drop-meta,
.form-error {
  font-family: var(--mono);
}

.kv dt {
  color: var(--faint);
}

.kv dd {
  margin: 0;
  color: var(--text);
}

.dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
  box-shadow: 0 0 18px currentColor;
}

.dot.ok { background: var(--ok); color: var(--ok); }
.dot.warn { background: var(--warn); color: var(--warn); }
.dot.bad { background: var(--bad); color: var(--bad); }

.meter-block {
  margin: 24px 0;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.meter {
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 18px, transparent 18px 22px);
  overflow: hidden;
}

.meter span {
  height: 100%;
  display: block;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, #8d62ff 0 18px, transparent 18px 22px);
  box-shadow: 0 0 18px rgba(140,92,255,.55);
}

.mini-log {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.mini-log p {
  margin: 0 0 8px;
}

.mini-log span {
  color: var(--faint);
}

.content {
  padding: 10px 0 0;
  overflow: auto;
}

.hero-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin: 6px 0 20px;
}

.hero-line > div:first-child {
  min-width: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 3.8vw, 58px);
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 18px 60px rgba(140,92,255,.28);
}

.lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.search {
  width: min(330px, 100%);
  position: relative;
  margin-top: 98px;
}

.search-icon {
  position: absolute;
  z-index: 1;
  left: 18px;
  top: 50%;
  transform: translateY(-52%);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(190,164,255,.34);
  border-radius: 12px;
  outline: 0;
  background: rgba(255,255,255,.045);
  color: var(--text);
  font-family: var(--mono);
}

.search input {
  height: 40px;
  padding-left: 54px;
  border-radius: 999px;
  background: rgba(59, 31, 116, .46);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(140,92,255,.16);
}

.dropzone {
  position: relative;
  min-height: 302px;
  display: grid;
  place-items: center;
  padding: 28px;
  border-radius: 18px;
  cursor: pointer;
  overflow: hidden;
}

.dropzone::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(140,92,255,.24), transparent 42%);
  opacity: .72;
  pointer-events: none;
}

.dropzone.is-drag {
  border-color: rgba(195,139,255,.72);
  background-color: rgba(64, 36, 132, .46);
}

.drop-inner {
  position: relative;
  width: min(780px, 100%);
  min-width: 0;
  min-height: 246px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed rgba(195,139,255,.54);
  border-radius: 18px;
  text-align: center;
}

.upload-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  color: #a77aff;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 22px rgba(140,92,255,.75);
}

.drop-code {
  display: none;
  margin-bottom: 14px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
}

.dropzone h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.04;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dropzone p {
  margin-bottom: 16px;
  color: var(--muted);
}

.drop-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.drop-meta span {
  padding: 8px 14px;
  border: 1px solid rgba(190,164,255,.22);
  border-radius: 9px;
  background: rgba(18, 12, 46, .58);
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(360px, 100%);
  min-height: 52px;
  order: 3;
  margin: 4px 0 16px;
  padding: 0 32px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(180deg, #b08cff 0%, #7547ff 100%);
  box-shadow: 0 18px 50px rgba(117,71,255,.42), inset 0 1px 0 rgba(255,255,255,.28);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.upload-progress {
  margin-top: 22px;
  display: none;
}

.upload-progress.active {
  display: block;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.progress-bar {
  height: 12px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b45ff, #c08cff);
  transition: width .25s ease;
}

.stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.stages span {
  padding: 7px 10px;
  border: 1px solid rgba(190,164,255,.16);
  border-radius: 999px;
}

.stages .done {
  color: var(--accent-2);
  border-color: rgba(195,139,255,.45);
}

.table-wrap,
.page-card {
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
}

.table-head,
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(190,164,255,.12);
}

.file-list {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
}

.file-list [data-file-rows] {
  display: grid;
  gap: 8px;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.55fr) 110px 100px 130px 130px 120px;
  gap: 14px;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(190,164,255,.22);
  border-radius: 10px;
  background: rgba(21, 17, 52, .56);
}

.file-row.header {
  min-height: auto;
  padding: 2px 14px 8px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.file-row:not(.header):hover {
  border-color: rgba(195,139,255,.26);
  background: rgba(255,255,255,.07);
}

.file-row span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.file-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text) !important;
  font-weight: 800;
}

.file-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(180deg, #8e6bff, #5c38d8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  font-size: 8px;
  font-weight: 900;
}

.type-pdf { background: linear-gradient(180deg, #ff6b85, #d73755); }
.type-archive { background: linear-gradient(180deg, #ffcf65, #cc8c24); }
.type-sheet, .type-csv { background: linear-gradient(180deg, #75d681, #3d9748); }
.type-text, .type-json, .type-yaml { background: linear-gradient(180deg, #e8eaff, #8791c8); color: #24213b; }

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(190,164,255,.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}

.badge.ok {
  color: var(--ok);
  border-color: rgba(103,240,168,.38);
}

.badge.warn {
  color: var(--warn);
  border-color: rgba(255,211,110,.42);
}

.access-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
}

.access-box h2 {
  margin-bottom: 14px;
  font-size: 20px;
  text-transform: uppercase;
}

.access-box.compact p {
  margin-bottom: 14px;
  line-height: 1.48;
}

label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

label input {
  margin-top: 7px;
}

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.solid {
  border: 1px solid rgba(177,139,255,.58);
  background: linear-gradient(180deg, #9470ff 0%, #6038ee 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 42px rgba(96,56,238,.52), inset 0 1px 0 rgba(255,255,255,.3);
}

.solid:hover {
  filter: brightness(1.06);
}

.ghost {
  background: rgba(255,255,255,.035);
  color: #cdbdff;
  border-color: rgba(177,139,255,.5);
}

.ghost:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.wide {
  width: 100%;
}

.form-error,
.notice {
  margin: 12px 0 0;
  color: var(--bad);
  font-size: 12px;
}

.notice {
  color: var(--warn);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px;
}

.status-tile {
  padding: 18px;
  border-radius: 22px;
}

.status-tile strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
}

.status-tile span {
  color: var(--muted);
}

.help-list {
  display: grid;
  gap: 12px;
  margin: 18px;
}

.help-list article {
  padding: 18px;
  border-radius: 22px;
}

.modal-layer[hidden] {
  display: none;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 12, .76);
  backdrop-filter: blur(10px);
}

.modal {
  position: relative;
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 26px;
}

.icon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
}

.statusbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 22px 18px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--faint);
  background: transparent;
  backdrop-filter: blur(22px);
  font-size: 11px;
  overflow: auto;
}

.statusbar span {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .access-panel {
    display: none;
  }

  .file-row {
    grid-template-columns: minmax(180px, 1.4fr) 100px 90px 120px 120px 120px;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr;
    margin: 12px;
  }

  .brand,
  .top-actions {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .side-panel {
    display: none;
  }

  .content {
    padding: 0;
  }

  .hero-line {
    align-items: stretch;
    flex-direction: column;
  }

  .file-row,
  .file-row.header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .file-row.header {
    display: none;
  }

  .file-row span::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--faint);
    font-size: 10px;
    text-transform: uppercase;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* Mockup-match pass: keep after base theme. */
body {
  background:
    radial-gradient(circle at 73% -4%, rgba(103, 43, 232, .58), transparent 34rem),
    radial-gradient(circle at 7% 100%, rgba(89, 36, 166, .5), transparent 28rem),
    radial-gradient(circle at 47% 47%, rgba(67, 52, 141, .18), transparent 38rem),
    linear-gradient(135deg, #05071a 0%, #07041b 48%, #050316 100%);
}

body::before {
  opacity: .42;
}

.topbar {
  min-height: 68px;
  grid-template-columns: 345px 1fr auto;
  border-bottom-color: rgba(171, 145, 255, .22);
  background: rgba(6, 8, 24, .8);
}

.brand {
  padding-left: 24px;
  font-size: 20px;
  border-right-color: rgba(171, 145, 255, .18);
}

.nav {
  gap: 18px;
  padding-left: 12px;
}

.nav a {
  min-width: 86px;
  min-height: 42px;
  margin: 12px 0;
  border-radius: 9px;
  font-size: 12px;
}

.nav a.active::after {
  bottom: -8px;
  background: linear-gradient(90deg, #7b4fff, #b48bff);
  box-shadow: 0 0 18px rgba(124,79,255,.9);
}

.top-actions {
  gap: 12px;
  padding-right: 24px;
}

.top-actions .ghost,
.top-actions .solid {
  min-width: 112px;
  min-height: 42px;
  border-radius: 8px;
}

.layout {
  grid-template-columns: 323px minmax(730px, 1fr) 326px;
  gap: 30px;
  padding: 22px;
}

.panel,
.page-card,
.table-wrap,
.dropzone,
.access-box,
.modal {
  border-color: rgba(112, 65, 211, .48);
  background: linear-gradient(180deg, rgba(23, 22, 55, .86), rgba(10, 10, 35, .84));
  box-shadow:
    0 18px 70px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 42px rgba(109, 64, 226, .16);
}

.side-panel {
  min-height: 676px;
  border-radius: 14px;
  padding: 24px;
}

.access-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
  overflow: visible;
}

.panel-title,
.section-label {
  color: #9587ba;
}

.node-card {
  border-color: rgba(112, 65, 211, .42);
  border-radius: 9px;
  background: rgba(31, 24, 68, .72);
}

.node-card::after {
  content: "";
  width: 28px;
  height: 14px;
  right: 28px;
  top: 42px;
  border: 2px solid rgba(151, 91, 245, .74);
  transform: skewX(-24deg);
  box-shadow:
    0 11px 0 -2px rgba(31,24,68,.8),
    0 11px 0 0 rgba(151,91,245,.34),
    0 22px 0 -2px rgba(31,24,68,.8),
    0 22px 0 0 rgba(151,91,245,.2);
}

.kv div {
  border-bottom-color: rgba(174, 145, 255, .16);
}

.meter {
  height: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(125, 107, 183, .22) 0 20px, transparent 20px 24px);
}

.meter span {
  background:
    repeating-linear-gradient(90deg, #8a64ff 0 20px, transparent 20px 24px);
}

.content {
  padding-top: 8px;
}

.hero-line {
  margin-top: 8px;
  margin-bottom: 20px;
}

h1 {
  max-width: 800px;
  font-size: clamp(42px, 4vw, 58px);
  letter-spacing: .01em;
}

.lead {
  max-width: 680px;
  font-size: 15px;
}

.search {
  width: 222px;
  margin-top: 104px;
  margin-right: 0;
}

.search input {
  height: 39px;
  border-radius: 999px;
  padding-left: 46px;
  border-color: rgba(112, 65, 211, .58);
  background: rgba(38, 20, 80, .74);
}

.search-icon {
  left: 17px;
  font-size: 23px;
}

.dropzone {
  min-height: 302px;
  padding: 28px;
  border-radius: 16px;
  border-color: rgba(112, 65, 211, .58);
}

.drop-inner {
  min-height: 246px;
  border-radius: 14px;
  border-color: rgba(151, 91, 245, .66);
  background: radial-gradient(circle at 50% 46%, rgba(124, 77, 255, .2), transparent 55%);
}

.upload-icon {
  margin-bottom: 8px;
  width: 58px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #9f76ff;
  position: relative;
}

.upload-icon::before {
  content: "";
  width: 38px;
  height: 24px;
  border: 4px solid currentColor;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 0;
  opacity: .92;
  filter: drop-shadow(0 0 14px rgba(124,77,255,.7));
}

.upload-icon span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  width: 4px;
  height: 27px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(124,77,255,.7);
}

.upload-icon span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 16px;
  height: 16px;
  border-left: 4px solid currentColor;
  border-top: 4px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.dropzone h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.upload-button {
  min-width: 365px;
  min-height: 52px;
  margin: 8px 0 15px;
  border-radius: 9px;
  font-size: 16px;
  background: linear-gradient(180deg, #9f79ff 0%, #6f42ff 100%);
  box-shadow: 0 18px 50px rgba(111,66,255,.58), inset 0 1px 0 rgba(255,255,255,.3);
}

.drop-meta span {
  min-width: 116px;
  border-color: rgba(112, 65, 211, .46);
  background: rgba(24, 18, 58, .78);
  border-radius: 8px;
}

.table-wrap {
  border-radius: 16px;
}

.table-head {
  min-height: 42px;
  padding: 0 22px;
}

.file-list {
  padding: 8px 16px 16px;
}

.file-row {
  grid-template-columns: minmax(180px, 1.7fr) 92px 84px 126px 126px 112px;
  min-height: 43px;
  padding: 7px 14px;
  border-radius: 9px;
  border-color: rgba(112, 65, 211, .32);
  background: rgba(20, 22, 56, .58);
}

.file-row.header {
  padding: 0 14px 7px;
}

.file-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.badge {
  min-height: 24px;
  min-width: 86px;
  justify-content: center;
  border-radius: 7px;
  background: rgba(15, 13, 38, .48);
}

.access-box {
  margin-top: 0;
  margin-bottom: 26px;
  min-height: 226px;
  padding: 26px;
  border-radius: 14px;
}

.access-box h2 {
  font-size: 20px;
}

.access-box input {
  height: 47px;
  border-radius: 5px;
  border-color: rgba(174, 145, 255, .34);
  background: rgba(10, 12, 34, .58);
}

.access-box .solid {
  min-height: 46px;
  margin-top: 8px;
  border-radius: 7px;
}

.access-box .ghost {
  min-height: 46px;
  border-radius: 7px;
}

.access-box.compact {
  min-height: 174px;
}

.access-box.compact:last-child {
  min-height: 226px;
  position: relative;
}

.lock-orb {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 26px auto 0;
  border-radius: 50%;
  color: #c7aaff;
  background: radial-gradient(circle, rgba(112, 54, 218, .95), rgba(55, 27, 128, .76));
  box-shadow: 0 0 42px rgba(124, 77, 255, .55), inset 0 1px 0 rgba(255,255,255,.18);
  position: relative;
}

.lock-body {
  width: 22px;
  height: 20px;
  display: block;
  border: 4px solid currentColor;
  border-radius: 2px;
  position: relative;
}

.lock-body::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 18px;
  height: 17px;
  border: 4px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  transform: translateX(-50%);
}

.statusbar {
  min-height: 46px;
  margin: 0 6px 0;
  padding-left: 360px;
  border-top: 1px solid rgba(174, 145, 255, .14);
  color: #9f90c8;
}

/* Final tuning: softer violet reference, raised borders, storage blocks. */
:root {
  --accent: #7350f0;
  --accent-2: #8f70ff;
  --line: rgba(122, 96, 214, .34);
  --line-strong: rgba(151, 126, 238, .56);
  --muted: #c1b7d8;
  --faint: #9588b3;
}

body {
  background:
    radial-gradient(circle at 75% -8%, rgba(115, 80, 240, .5), transparent 34rem),
    radial-gradient(circle at 4% 101%, rgba(102, 73, 208, .34), transparent 27rem),
    radial-gradient(circle at 52% 52%, rgba(115, 80, 240, .14), transparent 39rem),
    linear-gradient(135deg, #080a20 0%, #080520 48%, #06041a 100%);
}

.panel,
.page-card,
.table-wrap,
.dropzone,
.access-box,
.modal {
  border: 1px solid rgba(127, 104, 216, .54);
  background: linear-gradient(180deg, rgba(28, 30, 68, .78), rgba(12, 13, 42, .78));
  box-shadow:
    0 22px 78px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 0 34px rgba(115,80,240,.12);
}

.side-panel,
.access-box,
.table-wrap,
.dropzone {
  border-color: rgba(132, 110, 226, .58);
}

.node-card,
.file-row,
.drop-meta span,
.access-box input {
  border-color: rgba(127, 104, 216, .44);
}

.solid,
.top-actions .solid,
.access-box .solid,
.upload-button {
  background: linear-gradient(180deg, #8e71ff 0%, #7350f0 58%, #5f3feb 100%) !important;
  box-shadow:
    0 16px 44px rgba(115,80,240,.48),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -1px 0 rgba(43,25,126,.48);
}

.meter {
  height: 15px;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 5px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.meter i {
  display: block;
  height: 100%;
  min-width: 0;
  border: 1px solid rgba(120, 101, 190, .18);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(55, 48, 99, .68), rgba(31, 28, 68, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.meter i.filled {
  border-color: rgba(174, 143, 255, .52);
  background:
    linear-gradient(180deg, #a88cff 0%, #8b68ff 52%, #6f4af0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(47, 27, 126, .5),
    0 0 14px rgba(115,80,240,.34);
}

.meter span::before {
  content: none;
}

.file-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(180deg, #ff7288, #d93a58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 8px 20px rgba(0,0,0,.22);
  display: grid;
  place-items: center;
}

.file-icon::before {
  content: "" !important;
  position: absolute;
  width: 16px;
  height: 19px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(232,224,255,.86));
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 0 100%);
  opacity: .92;
  box-shadow: inset -3px 3px 0 rgba(255,255,255,.45);
}

.file-icon::after {
  bottom: 4px;
  color: #2a174d;
  text-shadow: none;
  z-index: 1;
  font-size: 6.5px;
  letter-spacing: -.02em;
}

.type-archive { background: linear-gradient(180deg, #ffd15f, #c78d1d); }
.type-sheet, .type-csv { background: linear-gradient(180deg, #78dc8b, #3f9c55); }
.type-text, .type-json, .type-yaml { background: linear-gradient(180deg, #eef0ff, #a8afd4); }
.type-slides { background: linear-gradient(180deg, #d79cff, #8757e8); }
.type-video { background: linear-gradient(180deg, #85a4ff, #4e65df); }
.type-database { background: linear-gradient(180deg, #66d4ff, #3278d4); }
.type-design { background: linear-gradient(180deg, #ff8ad9, #b94fe7); }

.badge:not(.ok):not(.warn) {
  color: #d8c4ff;
  border-color: rgba(151, 126, 238, .82);
  background: rgba(32, 23, 70, .62);
}

/* Fine-detail pass: closer to generated purple mockup. */
.top-actions .ghost {
  color: #c9baff;
  border-color: rgba(165, 128, 255, .62);
  background: rgba(28, 22, 61, .64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.top-actions .solid,
.access-box .solid,
.upload-button {
  background: linear-gradient(180deg, #a987ff 0%, #7247ff 100%) !important;
  border: 1px solid rgba(198, 172, 255, .48);
  color: #fff !important;
  box-shadow:
    0 16px 44px rgba(113, 71, 255, .48),
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(38, 20, 118, .55);
}

.access-box .ghost {
  color: #cdbdff;
  border-color: rgba(118, 72, 222, .46);
  background: rgba(12, 12, 36, .42);
}

.node-card::after,
.upload-icon::before,
.upload-icon span::before,
.upload-icon span::after,
.lock-body,
.lock-body::before {
  content: none;
}

.node-svg {
  position: absolute;
  right: 20px;
  top: 33px;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #8f5bef;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75;
  filter: drop-shadow(0 0 12px rgba(143,91,239,.35));
}

.search-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search input {
  border-color: rgba(132, 79, 231, .62);
  background: linear-gradient(180deg, rgba(49, 26, 94, .72), rgba(32, 18, 67, .7));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 34px rgba(79, 38, 166, .18);
}

.upload-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
  fill: none;
  stroke: #9d74ff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 15px rgba(141, 91, 255, .68));
}

.dropzone {
  border-color: rgba(133, 80, 232, .66);
  background:
    radial-gradient(circle at 50% 45%, rgba(119, 74, 239, .2), transparent 44%),
    linear-gradient(180deg, rgba(29, 28, 65, .82), rgba(15, 14, 43, .82));
}

.drop-inner {
  border-color: rgba(150, 101, 255, .72);
  background: radial-gradient(circle at 50% 45%, rgba(119, 74, 239, .18), transparent 56%);
}

.drop-meta span {
  border-color: rgba(118, 72, 222, .56);
  background: linear-gradient(180deg, rgba(35, 27, 76, .88), rgba(21, 17, 52, .86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.meter {
  height: 13px;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 5px;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.meter::before {
  content: none;
}

.meter .meter-seg {
  display: block;
  height: 100%;
  width: auto !important;
  border: 1px solid rgba(120, 101, 190, .2);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(55, 48, 99, .68), rgba(31, 28, 68, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.meter .meter-seg.filled {
  border-color: rgba(174, 143, 255, .52);
  background: linear-gradient(180deg, #a88cff 0%, #8b68ff 52%, #6f4af0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(47, 27, 126, .5),
    0 0 14px rgba(115,80,240,.34);
}

/* Accent retune: brighter #7f00ff family. */
:root {
  --accent: #7f00ff;
  --accent-2: #a85cff;
  --line: rgba(127, 0, 255, .36);
  --line-strong: rgba(168, 92, 255, .62);
}

body {
  background:
    radial-gradient(circle at 75% -8%, rgba(127, 0, 255, .48), transparent 34rem),
    radial-gradient(circle at 4% 101%, rgba(127, 0, 255, .24), transparent 27rem),
    radial-gradient(circle at 52% 52%, rgba(127, 0, 255, .12), transparent 39rem),
    linear-gradient(135deg, #080a20 0%, #080520 48%, #06041a 100%);
}

.nav a.active::after {
  background: linear-gradient(90deg, #7f00ff, #b366ff);
  box-shadow: 0 0 20px rgba(127,0,255,.9);
}

.panel,
.page-card,
.table-wrap,
.dropzone,
.access-box,
.modal,
.side-panel,
.node-card,
.file-row,
.drop-meta span,
.access-box input {
  border-color: rgba(127, 0, 255, .42);
}

.solid,
.top-actions .solid,
.access-box .solid,
.upload-button {
  background: linear-gradient(180deg, #b366ff 0%, #8f25ff 48%, #7f00ff 100%) !important;
  box-shadow:
    0 16px 46px rgba(127,0,255,.46),
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(57,0,138,.5);
}

.top-actions .ghost,
.access-box .ghost {
  border-color: rgba(127, 0, 255, .55);
  color: #dcbcff;
}

.search input {
  border-color: rgba(127, 0, 255, .58);
  background: linear-gradient(180deg, rgba(65, 18, 112, .72), rgba(39, 13, 76, .7));
}

.node-svg,
.upload-icon {
  stroke: #a85cff;
  filter: drop-shadow(0 0 15px rgba(127,0,255,.68));
}

.dropzone,
.drop-inner {
  border-color: rgba(127, 0, 255, .58);
}

.drop-inner {
  background: radial-gradient(circle at 50% 45%, rgba(127, 0, 255, .18), transparent 56%);
}

.meter .meter-seg.filled {
  border-color: rgba(192, 128, 255, .62);
  background: linear-gradient(180deg, #c080ff 0%, #9b39ff 48%, #7f00ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -1px 0 rgba(57,0,138,.52),
    0 0 16px rgba(127,0,255,.42);
}

.badge:not(.ok):not(.warn) {
  color: #e1c2ff;
  border-color: rgba(168, 92, 255, .86);
  box-shadow: 0 0 18px rgba(127,0,255,.16);
}

.lock-orb {
  background: radial-gradient(circle, rgba(127, 0, 255, .92), rgba(75, 0, 164, .76));
  box-shadow: 0 0 44px rgba(127, 0, 255, .5), inset 0 1px 0 rgba(255,255,255,.18);
}

/* Gradient polish for controls and progress texture. */
:root {
  --purple-grad: linear-gradient(145deg, #9828ff 0%, #8910ff 38%, #7f00ff 62%, #7400ea 100%);
  --purple-grad-soft: linear-gradient(145deg, #9320ff 0%, #870bff 45%, #7f00ff 100%);
  --purple-glow: rgba(127, 0, 255, .56);
  --border-grad: linear-gradient(135deg, rgba(213, 174, 255, .95), rgba(127, 0, 255, .9) 44%, rgba(91, 44, 255, .78) 100%);
  --border-bloom: 0 0 18px rgba(127, 0, 255, .32), 0 0 42px rgba(127, 0, 255, .16);
}

.solid,
.top-actions .solid,
.access-box .solid,
.upload-button {
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,0) 38%),
    var(--purple-grad) !important;
  border-color: rgba(202, 184, 255, .68);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 14px 42px rgba(127,0,255,.52),
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(55,0,130,.56);
}

.nav a.active::after,
.meter .meter-seg.filled {
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0) 42%),
    var(--purple-grad-soft);
}

.meter .meter-seg.filled {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(46,0,130,.52),
    0 0 16px rgba(127,0,255,.48);
}

.upload-button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 42%);
  opacity: .8;
}

.upload-button,
.solid {
  position: relative;
  overflow: hidden;
}

.badge:not(.ok):not(.warn) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    rgba(45, 22, 88, .72);
}

.lock-orb {
  background:
    radial-gradient(circle at 35% 24%, rgba(236,220,255,.36), transparent 28%),
    radial-gradient(circle, rgba(155, 73, 255, .96), rgba(84, 0, 185, .78));
}

.table-wrap,
.access-box,
.side-panel {
  border-color: rgba(119, 73, 219, .58);
  box-shadow:
    0 22px 78px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 40px rgba(97, 56, 201, .14);
}

.file-row {
  border-color: rgba(116, 73, 217, .38);
  background: linear-gradient(180deg, rgba(23, 25, 61, .72), rgba(18, 18, 49, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.file-icon {
  font-size: 0;
  position: relative;
}

.file-icon::before {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(232,224,255,.86));
}

.file-icon::after {
  content: attr(data-ext);
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 5px;
  font-weight: 900;
  font-family: var(--mono);
}

.table-head .section-label {
  font-size: 13px;
  letter-spacing: .16em;
}

.badge {
  border-width: 1px;
  background: rgba(13, 11, 37, .58);
}

.badge:not(.ok):not(.warn) {
  color: #d1b5ff;
  border-color: rgba(151, 91, 245, .72);
  box-shadow: 0 0 18px rgba(151, 91, 245, .12);
}

.badge.ok {
  color: #6cffb0;
  border-color: rgba(82, 255, 166, .96) !important;
  background:
    linear-gradient(145deg, rgba(94,255,178,.14), rgba(23,105,66,.18)),
    rgba(10, 30, 24, .74);
  box-shadow:
    0 0 12px rgba(82,255,166,.34),
    0 0 26px rgba(82,255,166,.16),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.badge.warn {
  color: #ffd76a;
  border-color: rgba(255, 204, 88, .96) !important;
  background:
    linear-gradient(145deg, rgba(255,214,95,.16), rgba(137,86,15,.2)),
    rgba(34, 24, 9, .74);
  box-shadow:
    0 0 12px rgba(255,204,88,.34),
    0 0 26px rgba(255,204,88,.16),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.lock-orb svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Final bright outline pass: intentionally last. */
.topbar,
.side-panel,
.table-wrap,
.dropzone,
.access-box,
.page-card,
.modal,
.node-card,
.file-row,
.status-tile,
.help-list article {
  border: 1px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(23, 22, 55, .88), rgba(10, 10, 35, .86)) padding-box,
    var(--border-grad) border-box !important;
  box-shadow:
    var(--border-bloom),
    0 22px 78px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.access-panel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.topbar {
  border-width: 0 0 1px !important;
  background:
    linear-gradient(180deg, rgba(7, 8, 24, .86), rgba(7, 8, 24, .76)) padding-box,
    linear-gradient(90deg, rgba(213,174,255,.9), rgba(127,0,255,.84), rgba(91,44,255,.72)) border-box !important;
}

.drop-inner,
.drop-meta span,
input,
.ghost,
.badge,
.meter .meter-seg,
.file-icon {
  border-color: rgba(183, 132, 255, .78) !important;
  box-shadow:
    0 0 14px rgba(127,0,255,.22),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.badge:not(.ok):not(.warn) {
  border-color: rgba(196, 144, 255, .94) !important;
  box-shadow:
    0 0 16px rgba(127,0,255,.28),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.solid,
.upload-button,
.top-actions .solid,
.access-box .solid {
  border: 1px solid transparent !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,0) 38%) padding-box,
    var(--purple-grad) padding-box,
    var(--border-grad) border-box !important;
  box-shadow:
    0 0 22px rgba(127,0,255,.42),
    0 0 54px rgba(127,0,255,.22),
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(55,0,130,.56) !important;
}

.meter .meter-seg.filled {
  border-color: rgba(218, 185, 255, .92) !important;
  box-shadow:
    0 0 14px rgba(127,0,255,.45),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -1px 0 rgba(57,0,138,.52) !important;
}

.nav a.active {
  border-color: rgba(202, 162, 255, .92) !important;
  box-shadow:
    0 0 16px rgba(127,0,255,.26),
    inset 0 1px 0 rgba(255,255,255,.1) !important;
}

.file-row.header,
.file-row.header:hover {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 30px;
}
