:root {
  --teal: #0b5c55;
  --teal-600: #0b7369;
  --teal-700: #0c5c55;
  --teal-800: #0f4a45;
  --ink: #0c322f;
  --sand: #fbf8f2;
  --sand-100: #f4efe6;
  --sand-200: #e8dfd0;
  --muted: rgba(12, 50, 47, 0.7);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  antialiased: true;
}
::selection { background: #2aa99c; color: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; outline: none; }

.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0b5c55;
  color: #fff;
}
.scene-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.blob-1 { position: absolute; left: -6rem; top: -7rem; width: 28rem; height: 28rem; border-radius: 999px; background: #12857b; filter: blur(64px); }
.blob-2 { position: absolute; right: -6rem; bottom: -8rem; width: 34rem; height: 34rem; border-radius: 999px; background: #083f3b; filter: blur(64px); }
.blob-3 { position: absolute; left: 42%; top: 18%; width: 16rem; height: 16rem; border-radius: 999px; background: rgba(42, 169, 156, 0.3); filter: blur(64px); }
.dots {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255,255,255,0.55) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}
.scene-inner { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
}
.home-grid {
  display: grid;
  min-height: calc(100vh - 88px);
  align-items: center;
  gap: 3rem;
  padding: 1rem 1.5rem 4rem;
}
@media (min-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 420px) 1fr; }
}

.card {
  background: #fff;
  color: var(--ink);
  border-radius: 32px;
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(7, 31, 29, 0.22);
}
.drop-demo {
  height: 210px;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #8fd7ce;
  border-radius: 24px;
  background: var(--sand);
}
.plus {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: var(--teal-700);
  color: #fff;
  font-family: Syne, sans-serif;
  font-size: 1.875rem;
}
.kicker {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.display {
  font-family: Syne, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 1rem 0 0;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
}
.display-sm { font-family: Syne, sans-serif; font-weight: 600; margin: 0.5rem 0 0; }
.muted { color: rgba(12, 50, 47, 0.7); font-size: 0.875rem; line-height: 1.6; }
.muted-light { color: rgba(255,255,255,0.7); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--teal-700);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
}
.btn-primary:hover { background: var(--teal-600); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 600;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: var(--teal-700);
  color: #fff;
}
.logo-mark.light { background: #fff; color: var(--teal-700); }
.logo-mark svg { width: 62%; height: 62%; }
.logo-word {
  font-family: Syne, sans-serif;
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo-word.light { color: #fff; }

.field {
  height: 3rem;
  width: 100%;
  margin-top: 0.4rem;
  border: 1px solid var(--sand-200);
  border-radius: 1rem;
  background: var(--sand);
  padding: 0 1rem;
  font-size: 0.875rem;
}
.field:focus {
  border-color: #2aa99c;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(143, 215, 206, 0.7);
}
.form-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
}
label { font-size: 0.875rem; font-weight: 500; }
.error { color: #dc2626; font-size: 0.875rem; margin-top: 0.75rem; }
.center-card { max-width: 32rem; margin: 0 auto; padding: 0 1.5rem 4rem; min-height: calc(100vh - 88px); display: flex; align-items: center; }
.login-card { max-width: 28rem; }

.admin-header {
  border-bottom: 1px solid var(--sand-200);
  background: #fff;
}
.admin-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.logout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
}
.logout:hover { background: var(--sand-100); }
.admin-main { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem; }
.stats { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: #fff;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(12, 50, 47, 0.08);
}
.stat p { margin: 0; }
.stat .lbl { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-600); }
.stat .val { margin-top: 0.5rem; font-size: 1.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.uploader {
  margin-top: 1.5rem;
  width: 100%;
  border: 2px dashed #8fd7ce;
  border-radius: 28px;
  padding: 2rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.uploader.over { border-color: #2aa99c; background: #e7f7f5; }
.uploader-row { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (min-width: 640px) { .uploader-row { flex-direction: row; align-items: center; } }
.icon-box {
  width: 3.5rem; height: 3.5rem; display: grid; place-items: center;
  border-radius: 1rem; background: var(--teal-700); color: #fff; flex-shrink: 0;
}
.progress { margin-top: 1rem; height: 0.5rem; background: var(--sand-200); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--teal-600); width: 0%; }
.share-box {
  margin-top: 1.5rem;
  border-radius: 24px;
  background: var(--teal-800);
  color: #fff;
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(7, 31, 29, 0.22);
}
.share-row { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 640px) { .share-row { flex-direction: row; align-items: center; } }
.share-row code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 1rem;
  background: rgba(0,0,0,0.2);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.copy-btn {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--teal-800);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.copy-btn.dark { background: var(--teal-700); color: #fff; }
.file-list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.file-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(12, 50, 47, 0.08); }
.file-row { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
@media (min-width: 640px) { .file-row { flex-direction: row; align-items: center; } }
.ext {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 1rem; background: #e7f7f5; color: var(--teal-700);
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 0; border-radius: 999px; padding: 0.4rem 0.75rem;
  font-size: 0.75rem; font-weight: 600; cursor: pointer; background: var(--sand-100);
}
.chip.danger { background: transparent; color: #dc2626; }
.records { border-top: 1px solid #f4efe6; background: rgba(251,248,242,0.8); padding: 1rem 1.25rem; }
table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 0.875rem; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(12,50,47,0.5); font-weight: 500; padding-bottom: 0.5rem; }
td { padding: 0.75rem 0; border-top: 1px solid rgba(232,223,208,0.8); }
.empty { border: 1px solid var(--sand-200); background: #fff; border-radius: 24px; padding: 2rem; color: var(--muted); font-size: 0.875rem; }
.hidden { display: none; }
.uploader .btn-primary { width: auto; margin: 0; pointer-events: none; padding: 0 1.5rem; }
