:root {
  --bg: #0d0f14;
  --bg-soft: #151a22;
  --surface: #1c2330;
  --surface-2: #222b3a;
  --text: #f2f5f8;
  --muted: #a8b0bb;
  --accent: #3cd1a3;
  --accent-2: #4fa3ff;
  --danger: #ff6b6b;
  --glow: rgba(60, 209, 163, 0.35);
  --shadow: rgba(10, 14, 20, 0.55);
  --radius: 18px;
  --font: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at top, #111927 0%, #0d0f14 55%, #0b0c10 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  z-index: 0;
}

.orb-a {
  background: rgba(79, 163, 255, 0.45);
  top: -140px;
  left: -120px;
}

.orb-b {
  background: rgba(60, 209, 163, 0.4);
  bottom: -180px;
  right: -140px;
}

.grid-sheen {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px 12px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 96px;
  height: 48px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.session {
  display: flex;
  align-items: center;
  gap: 14px;
}

.session-user {
  font-size: 0.9rem;
  color: var(--muted);
}

.layout {
  position: relative;
  z-index: 2;
  padding: 24px 56px 64px;
}

.panel {
  background: linear-gradient(160deg, rgba(28, 35, 48, 0.95), rgba(18, 22, 30, 0.95));
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 30px 60px var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  animation: fadeIn 0.6s ease;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-header.compact {
  margin-bottom: 16px;
}

.panel-header h1 {
  margin: 0 0 6px;
  font-size: 2rem;
}

.panel-header h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.panel-header h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
}

input:focus,
select:focus {
  outline: 2px solid rgba(79, 163, 255, 0.35);
  border-color: rgba(79, 163, 255, 0.6);
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 14, 20, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0d0f14;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.danger,
.btn-ghost.danger {
  border-color: rgba(255, 107, 107, 0.45);
  color: var(--danger);
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.error {
  font-size: 0.85rem;
  color: var(--danger);
  min-height: 18px;
}
\n.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(60, 209, 163, 0.18);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.pill.subtle {
  background: rgba(79, 163, 255, 0.16);
  color: var(--accent-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface-2);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 8px;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.stack {
  display: grid;
  gap: 20px;
}

.upload-card {
  background: var(--surface-2);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dropzone {
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 18px;
  background: rgba(15, 19, 27, 0.7);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dropzone:hover {
  border-color: rgba(79, 163, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(79, 163, 255, 0.15);
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-title {
  font-weight: 600;
  color: var(--text);
}

.drop-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.upload-list {
  display: grid;
  gap: 10px;
}

.upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(28, 35, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.upload-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.table {
  display: grid;
  gap: 12px;
}

.table-header {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1.2fr;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.search-header {
  margin-bottom: 6px;
}

.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-bar input {
  flex: 1;
}

.table-body {
  display: grid;
  gap: 12px;
}

.table-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1.2fr;
  align-items: center;
  background: var(--surface);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.asset-title {
  font-weight: 600;
}

.asset-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(79, 163, 255, 0.15);
  color: var(--accent-2);
}

.tag.private {
  background: rgba(255, 107, 107, 0.15);
  color: var(--danger);
}

.tag.shared {
  background: rgba(60, 209, 163, 0.2);
  color: var(--accent);
}

.action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.icon-btn.danger {
  border-color: rgba(255, 107, 107, 0.45);
  color: var(--danger);
}

.user-panel {
  background: rgba(15, 19, 27, 0.7);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.user-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.user-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(28, 35, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.user-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

.user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.role-select {
  min-width: 120px;
}

.role-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(79, 163, 255, 0.18);
  color: var(--accent-2);
}

.role-badge.admin {
  background: rgba(60, 209, 163, 0.2);
  color: var(--accent);
}

.menu-group {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.empty-state {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(15, 19, 27, 0.6);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface-2);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 5;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 12, 18, 0.7);
  display: grid;
  place-items: center;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.modal {
  max-height: 90vh;
  width: min(460px, 90vw);
  background: var(--surface-2);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  animation: popIn 0.25s ease;
}

.modal.modal-wide {
  width: min(640px, 92vw);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-body {
  max-height: 70vh;
  overflow: auto;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: grid;
  gap: 10px;
}
\n.modal.modal-wide .modal-body {\n  max-height: 75vh;\n}\n
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .layout {
    padding: 24px 20px 64px;
  }

  .topbar {
    padding: 20px 20px 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1.6fr 0.9fr 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .table-header {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .action-group {
    flex-wrap: wrap;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
}




.modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 138, 165, 0.6) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(120, 138, 165, 0.55);
  border-radius: 999px;
  border: 2px solid rgba(15, 19, 27, 0.7);
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 138, 165, 0.8);
}

.audit-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.audit-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(28, 35, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.audit-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.btn-ghost.active {
  background: rgba(60, 209, 163, 0.18);
  border-color: rgba(60, 209, 163, 0.6);
  color: var(--accent);
}

.btn-ghost.active.danger {
  background: rgba(255, 107, 107, 0.18);
  border-color: rgba(255, 107, 107, 0.6);
  color: var(--danger);
}
\r\n.share-status-row {\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: space-between;\r\n  padding: 8px 12px;\r\n  border-radius: 12px;\r\n  background: rgba(15, 19, 27, 0.6);\r\n  border: 1px solid rgba(255, 255, 255, 0.06);\r\n}\r\n\r\n.share-status-label {\r\n  color: var(--muted);\r\n  font-size: 0.85rem;\r\n}\r\n



input[type=number] {
  color-scheme: dark;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  filter: invert(1) brightness(0.7);
  opacity: 0.7;
}


.file-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 12px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.check-pill input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.file-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

