/* DITE | Proyectos responsive */

:root {
  --sidebar-expanded: 292px;
  --sidebar-collapsed: 94px;
  --bg: #050608;
  --panel: rgba(10, 14, 24, .78);
  --panel-soft: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .075);
  --text: #f6f7fb;
  --muted: #a8b0c0;
  --muted-2: #77829a;
  --cyan: #1ce4ef;
  --red: #ff334b;
  --green: #9dff54;
  --radius: 26px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 51, 75, .22), transparent 30rem),
    radial-gradient(circle at 87% 28%, rgba(28, 228, 239, .13), transparent 32rem),
    radial-gradient(circle at 66% 88%, rgba(28, 228, 239, .08), transparent 34rem),
    linear-gradient(135deg, #090608, #071112 58%, #040506);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .027) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .22;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

.app {
  --sidebar-width: var(--sidebar-expanded);
  width: min(1640px, calc(100% - 28px));
  min-height: calc(100vh - 28px);
  margin: 14px auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
  transition: grid-template-columns .28s ease;
}

.app.sidebar-collapsed {
  --sidebar-width: var(--sidebar-collapsed);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 9%, rgba(255, 51, 75, .18), transparent 16rem),
    radial-gradient(circle at 92% 40%, rgba(28, 228, 239, .1), transparent 15rem),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    #080611;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.055);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0 60%, rgba(28, 228, 239, .045)),
    linear-gradient(90deg, rgba(255, 51, 75, .18), transparent 18%, transparent 82%, rgba(28, 228, 239, .12));
  opacity: .75;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-header {
  padding: 4px 8px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(28, 228, 239, .22));
  flex: 0 0 auto;
}

.logo-copy {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity .18s ease, transform .24s ease, width .24s ease;
}

.logo-copy strong {
  display: block;
  font-size: 23px;
  letter-spacing: .22em;
  line-height: 1;
}

.logo-copy small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.25;
  font-size: 12px;
}

.session {
  margin: 16px 6px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(28, 228, 239, .28);
  border-radius: 999px;
  background: rgba(28, 228, 239, .045);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .2s ease, transform .22s ease, max-height .25s ease, margin .25s ease, padding .25s ease;
}

.session span {
  color: var(--text);
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  padding: 2px 0;
}

.nav-item {
  min-height: 56px;
  border-radius: 17px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: center;
  padding: 0 14px;
  color: #aeb7ca;
  border: 1px solid transparent;
  transition: .22s ease;
  position: relative;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .045);
}

.nav-item.active {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 51, 75, .28), rgba(28, 228, 239, .16)),
    rgba(255,255,255,.035);
  border-color: rgba(28, 228, 239, .32);
  box-shadow:
    0 0 28px rgba(28, 228, 239, .16),
    inset 4px 0 0 rgba(255, 51, 75, .9);
}

.nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: currentColor;
  background: rgba(255,255,255,.035);
  transition: .22s ease;
}

.nav-item.active .nav-icon {
  background: rgba(28, 228, 239, .12);
  color: var(--cyan);
  box-shadow: inset 0 0 12px rgba(28, 228, 239, .1);
}

.nav-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .18s ease, transform .24s ease;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 14px 4px 2px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  min-width: 0;
}

.avatar {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  flex: 0 0 auto;
}

.user-info {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .18s ease, transform .24s ease;
}

.user-name,
.user-role {
  display: block;
}

.user-name {
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  align-items: center;
  transition: .25s ease;
}

.logout {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,51,75,.42);
  background: rgba(255,51,75,.065);
  color: var(--text);
  font-weight: 900;
  transition: .2s ease;
  white-space: nowrap;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.logout:hover {
  border-color: rgba(255,51,75,.78);
  box-shadow: 0 0 22px rgba(255,51,75,.18);
}

.collapse-btn {
  width: 48px;
  height: 44px;
  border-radius: 15px;
  border: 1px solid rgba(28,228,239,.32);
  background: rgba(28,228,239,.055);
  color: var(--cyan);
  display: grid;
  place-items: center;
  transition: .22s ease;
}

.collapse-btn:hover {
  box-shadow: 0 0 20px rgba(28,228,239,.16);
  border-color: rgba(28,228,239,.62);
}

.collapse-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.app.sidebar-collapsed .collapse-btn svg {
  transform: rotate(180deg);
}

.app.sidebar-collapsed .logo-container,
.app.sidebar-collapsed .user-profile {
  justify-content: center;
}

.app.sidebar-collapsed .logo-copy,
.app.sidebar-collapsed .nav-label,
.app.sidebar-collapsed .user-info {
  opacity: 0;
  width: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.app.sidebar-collapsed .session {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  border-width: 0;
  transform: translateY(-8px);
}

.app.sidebar-collapsed .nav-item {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
}

.app.sidebar-collapsed .nav-item::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(-8px, -50%);
  opacity: 0;
  pointer-events: none;
  background: rgba(6, 9, 18, .92);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: .18s ease;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(0,0,0,.36);
}

.app.sidebar-collapsed .nav-item:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.app.sidebar-collapsed .footer-row {
  grid-template-columns: 1fr;
}

.app.sidebar-collapsed .logout {
  display: none;
}

/* Main */
.dashboard {
  position: relative;
  min-height: calc(100vh - 28px);
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.048), rgba(255,255,255,.018)),
    rgba(4, 7, 13, .72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  padding: clamp(26px, 4vw, 58px);
}

.dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 51, 75, .12), transparent 27rem),
    radial-gradient(circle at 87% 22%, rgba(28, 228, 239, .13), transparent 27rem),
    radial-gradient(circle at 92% 80%, rgba(28, 228, 239, .10), transparent 32rem);
  pointer-events: none;
}

.dashboard::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -80px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(28, 228, 239, .12);
  box-shadow:
    0 0 0 110px rgba(28, 228, 239, .025),
    0 0 85px rgba(28, 228, 239, .08);
  pointer-events: none;
}

.dashboard > * {
  position: relative;
  z-index: 2;
}

.folder-bg {
  position: absolute;
  right: clamp(-155px, -8vw, -62px);
  top: clamp(26px, 5vw, 72px);
  width: min(600px, 45vw);
  aspect-ratio: 1;
  z-index: 1;
  opacity: .94;
  pointer-events: none;
  filter:
    drop-shadow(0 0 42px rgba(28,228,239,.22))
    drop-shadow(0 0 30px rgba(255,51,75,.09));
}

.folder-bg::before,
.folder-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.folder-bg::before {
  inset: 6%;
  border: 1px solid rgba(28,228,239,.28);
  box-shadow: 0 0 42px rgba(28,228,239,.1);
  clip-path: polygon(0 0, 60% 0, 60% 12%, 10% 12%, 10% 60%, 0 60%);
  animation: spin 15s linear infinite;
}

.folder-bg::after {
  inset: 16%;
  border: 1px solid rgba(255,51,75,.24);
  clip-path: polygon(50% 0, 100% 0, 100% 50%, 88% 50%, 88% 12%, 50% 12%);
  animation: spin 20s linear infinite reverse;
}

.folder-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: floatFolder 4.8s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes floatFolder {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.015); }
}

.hero {
  max-width: 720px;
  padding-top: 12px;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 13px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  box-shadow: 0 0 14px rgba(28,228,239,.72);
}

h1 {
  font-size: clamp(58px, 9vw, 112px);
  line-height: .84;
  letter-spacing: -.08em;
  text-wrap: balance;
  margin: 0;
}

.hero p {
  margin-top: 18px;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 23px;
  font-weight: 950;
  color: var(--text);
  background: rgba(255,255,255,.045);
  transition: .22s ease;
}

.btn.primary {
  border: 0;
  color: #020508;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 26px rgba(28,228,239,.22);
}

.btn.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

.btn.full {
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(28,228,239,.16);
}

.management {
  max-width: 1040px;
  border: 1px solid rgba(28,228,239,.24);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.018)),
    rgba(5, 10, 18, .72);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.025) inset,
    0 0 40px rgba(28,228,239,.075),
    24px 0 76px rgba(255,51,75,.07);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.panel-title h2 {
  font-size: 22px;
  letter-spacing: -.03em;
  margin: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #71ffc7;
  font-size: 13px;
  font-weight: 850;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71ffc7;
  box-shadow: 0 0 10px #71ffc7;
}

.searchbar {
  min-height: 58px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 14, .68);
  padding: 0 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.searchbar svg,
.mini-icon svg,
.row-actions svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.searchbar svg {
  width: 23px;
  height: 23px;
  color: var(--muted);
}

.searchbar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.searchbar input::placeholder {
  color: var(--muted-2);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.action-card {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(28,228,239,.09), rgba(255,51,75,.055)),
    rgba(255,255,255,.032);
  padding: 17px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  transition: .22s ease;
  color: var(--text);
  text-align: left;
}

.action-card:hover {
  border-color: rgba(28,228,239,.42);
  transform: translateY(-2px);
}

.action-card.upload {
  background:
    linear-gradient(135deg, rgba(255,51,75,.105), rgba(28,228,239,.055)),
    rgba(255,255,255,.032);
}

.mini-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--cyan);
  border: 1px solid rgba(28,228,239,.42);
  background: rgba(28,228,239,.075);
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(28,228,239,.12);
}

.upload .mini-icon {
  color: var(--red);
  border-color: rgba(255,51,75,.42);
  background: rgba(255,51,75,.075);
}

.mini-icon svg {
  width: 26px;
  height: 26px;
}

.action-card h3 {
  font-size: 16px;
  margin: 0 0 7px;
}

.action-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  margin: 0;
}

.project-table,
.files-panel {
  border: 1px solid rgba(28,228,239,.22);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(4, 8, 14, .56);
}

.project-table {
  margin-bottom: 16px;
}

.table-head,
.project-row {
  display: grid;
  grid-template-columns: 1.35fr .46fr .62fr .35fr;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
}

.table-head {
  color: var(--muted);
  font-weight: 850;
  border-bottom: 1px solid var(--line-soft);
}

.project-row {
  border-bottom: 1px solid var(--line-soft);
  transition: .18s ease;
}

.project-row:hover,
.project-row.active {
  background: linear-gradient(90deg, rgba(28,228,239,.065), rgba(255,51,75,.045));
}

.project-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-name svg {
  width: 30px;
  height: 30px;
  color: var(--cyan);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(28,228,239,.36));
}

.project-name strong,
.project-name small {
  display: block;
}

.project-name strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-name small {
  color: var(--muted-2);
  margin-top: 3px;
}

.muted {
  color: var(--muted);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  color: var(--cyan);
  border-color: rgba(28,228,239,.34);
  background: rgba(28,228,239,.055);
}

.icon-btn.danger:hover {
  color: var(--red);
  border-color: rgba(255,51,75,.38);
  background: rgba(255,51,75,.055);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.files-panel {
  padding: 18px;
}

.files-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.files-title p {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
}

.files-title h3 {
  margin: 0;
  font-size: 22px;
}

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

.file-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: rgba(255,255,255,.026);
}

.file-row strong {
  display: block;
  word-break: break-word;
}

.file-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.file-actions {
  display: flex;
  gap: 8px;
}

.file-actions a,
.file-actions button {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 800;
}

.file-actions a:hover {
  color: var(--cyan);
  border-color: rgba(28,228,239,.42);
}

.file-actions button:hover {
  color: var(--red);
  border-color: rgba(255,51,75,.42);
}

.empty-state {
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.preview-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(12px);
}

.modal.active {
  display: grid;
}

.modal-card {
  width: min(520px, 100%);
  border: 1px solid rgba(28,228,239,.26);
  border-radius: 26px;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 0, rgba(255,51,75,.16), transparent 16rem),
    radial-gradient(circle at 100% 100%, rgba(28,228,239,.14), transparent 18rem),
    rgba(6, 10, 18, .94);
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,.05);
  font-size: 26px;
  line-height: 1;
}

.modal-kicker {
  margin: 0 0 6px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 900;
}

.modal-card h2 {
  margin: 0 0 18px;
  font-size: 34px;
  letter-spacing: -.04em;
}

.modal-card form {
  display: grid;
  gap: 14px;
}

.modal-card label span,
.login-form label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.modal-card input,
.modal-card select,
.login-form input {
  width: 100%;
  min-height: 50px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(3,7,14,.66);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.modal-card input:focus,
.modal-card select:focus,
.login-form input:focus {
  border-color: rgba(28,228,239,.58);
  box-shadow: 0 0 0 4px rgba(28,228,239,.1);
}

.modal-card select option {
  color: #111;
}

/* Toast */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(28,228,239,.35);
  border-radius: 16px;
  background: rgba(6, 10, 18, .94);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0,0,0,.38);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

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

/* Login */
.login-body {
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-shell {
  width: min(1100px, 100%);
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(460px, 100%);
  border: 1px solid rgba(28,228,239,.35);
  border-radius: 34px;
  padding: 28px;
  background:
    radial-gradient(circle at 15% 0, rgba(255,51,75,.17), transparent 15rem),
    radial-gradient(circle at 100% 30%, rgba(28,228,239,.16), transparent 18rem),
    rgba(6, 10, 18, .78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}

.login-glow {
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at 50% 30%, rgba(28,228,239,.18), transparent 14rem),
    radial-gradient(circle at 50% 80%, rgba(255,51,75,.13), transparent 16rem);
  pointer-events: none;
}

.login-panel > * {
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.login-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.login-brand strong {
  display: block;
  letter-spacing: .22em;
  font-size: 22px;
}

.login-brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.login-icon {
  width: 170px;
  height: 170px;
  margin: 0 auto 14px;
  position: relative;
  display: grid;
  place-items: center;
}

.login-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(28,228,239,.35);
  border-radius: 50%;
  animation: spin 16s linear infinite;
}

.login-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(28,228,239,.22));
}

.login-kicker {
  margin: 0 0 8px;
  text-align: center;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 900;
}

.login-panel h1 {
  font-size: clamp(48px, 12vw, 72px);
  text-align: center;
}

.login-copy {
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin: 12px 0 22px;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  color: #020508;
  font-weight: 950;
  margin-top: 4px;
}

.login-message {
  min-height: 20px;
  margin: 0;
  text-align: center;
  color: #ff9aad;
  font-size: 13px;
}

.login-back {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1180px) {
  .app {
    --sidebar-width: var(--sidebar-collapsed);
  }

  .app .logo-copy,
  .app .nav-label,
  .app .user-info {
    opacity: 0;
    width: 0;
    transform: translateX(-8px);
    pointer-events: none;
  }

  .app .session,
  .app .logout {
    display: none;
  }

  .app .nav-item {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
  }

  .app .footer-row {
    grid-template-columns: 1fr;
  }

  .folder-bg {
    opacity: .34;
    right: -190px;
    width: 620px;
  }
}

@media (max-width: 900px) {
  .app {
    display: block;
    width: min(100% - 20px, 1640px);
  }

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    margin-bottom: 14px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-radius: 24px;
  }

  .sidebar-header {
    border-bottom: 0;
    padding: 0;
  }

  .logo {
    width: 52px;
    height: 52px;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0;
    scrollbar-width: thin;
  }

  .nav-item {
    min-width: 54px;
    min-height: 54px;
  }

  .sidebar-footer {
    margin-left: auto;
    padding: 0;
  }

  .user-profile,
  .collapse-btn {
    display: none;
  }

  .dashboard {
    padding: 24px 14px;
    border-radius: 26px;
  }

  .folder-bg {
    width: 500px;
    right: -260px;
    top: 120px;
    opacity: .18;
  }

  .hero {
    padding-top: 8px;
  }

  h1 {
    font-size: clamp(56px, 18vw, 92px);
  }

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

  .table-head {
    display: none;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .file-row {
    grid-template-columns: 1fr;
  }

  .file-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at 5% 12%, rgba(255, 51, 75, .2), transparent 18rem),
      radial-gradient(circle at 90% 30%, rgba(28, 228, 239, .14), transparent 20rem),
      linear-gradient(135deg, #090608, #061112);
  }

  .app {
    width: min(100% - 12px, 1640px);
    margin: 6px auto;
  }

  .sidebar {
    padding: 10px;
  }

  .logo-container {
    gap: 8px;
  }

  .logo-copy {
    display: none;
  }

  .nav-item {
    min-width: 48px;
    min-height: 48px;
    border-radius: 15px;
  }

  .nav-icon {
    width: 34px;
    height: 34px;
  }

  .dashboard {
    padding: 20px 10px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions,
  .panel-title,
  .files-title {
    display: grid;
  }

  .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .management {
    padding: 14px;
    border-radius: 20px;
  }

  .searchbar {
    min-height: 52px;
  }

  .modal {
    padding: 10px;
  }

  .modal-card,
  .login-panel {
    border-radius: 22px;
    padding: 18px;
  }

  .login-shell {
    min-height: calc(100vh - 20px);
  }
}
