:root {
  color-scheme: dark;
  --bg: #08020d;
  --bg-soft: #13051f;
  --surface: rgba(28, 10, 43, 0.78);
  --surface-2: rgba(42, 16, 64, 0.72);
  --surface-3: rgba(255, 255, 255, 0.055);
  --line: rgba(223, 199, 255, 0.16);
  --line-strong: rgba(94, 213, 255, 0.32);
  --text: #fbf7ff;
  --muted: #c8b4d8;
  --soft: #8e7aa1;
  --accent: #b84cff;
  --accent-2: #26d7ff;
  --danger: #ff5d91;
  --ok: #6ef2bf;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: #07020d;
  color: var(--text);
  letter-spacing: 0;
  touch-action: manipulation;
}

body {
  font-size: 15px;
  font-weight: 400;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(38, 215, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 82% 8%, rgba(184, 76, 255, 0.2), transparent 28rem),
    linear-gradient(140deg, #07020d 0%, #14051e 48%, #050510 100%);
}

.ambient-bg::before,
.ambient-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle, rgba(38, 215, 255, 0.95) 0 1.4px, transparent 2.4px),
    radial-gradient(circle, rgba(210, 76, 255, 0.82) 0 1.2px, transparent 2.2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.48) 0 0.8px, transparent 1.8px);
  background-size: 82px 82px, 128px 128px, 178px 178px;
  animation: drift 26s linear infinite;
  opacity: 0.42;
}

.ambient-bg::after {
  animation-duration: 34s;
  animation-direction: reverse;
  filter: blur(0.5px);
  opacity: 0.34;
}

.ambient-bg span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 22px currentColor;
  color: var(--accent-2);
  opacity: 0.5;
  animation: floatParticle 9s ease-in-out infinite;
}

.ambient-bg span:nth-child(1) { left: 12%; top: 18%; animation-delay: -1s; }
.ambient-bg span:nth-child(2) { left: 28%; top: 74%; color: var(--accent); animation-delay: -4s; }
.ambient-bg span:nth-child(3) { left: 74%; top: 20%; animation-delay: -6s; }
.ambient-bg span:nth-child(4) { left: 88%; top: 66%; color: var(--accent); animation-delay: -2s; }
.ambient-bg span:nth-child(5) { left: 46%; top: 12%; animation-delay: -7s; }
.ambient-bg span:nth-child(6) { left: 58%; top: 84%; color: var(--accent); animation-delay: -3s; }

@keyframes floatParticle {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.86);
    opacity: 0.28;
  }
  50% {
    transform: translate3d(22px, -34px, 0) scale(1.18);
    opacity: 0.72;
  }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-72px, -96px, 0) rotate(2deg); }
}

button,
input,
select {
  font: inherit;
}

button,
.ghost-link {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(198, 80, 255, 0.92), rgba(101, 79, 255, 0.92)),
    rgba(255, 255, 255, 0.04);
  color: white;
  padding: 0 12px;
  font-weight: 520;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(126, 71, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(126, 71, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

button:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(184, 76, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(111, 69, 255, 0.28), rgba(184, 76, 255, 0.16)),
    rgba(12, 4, 20, 0.56);
  box-shadow: none;
  transform: none;
}

.ghost,
.icon-btn,
.ghost-link,
.modal-close {
  border: 1px solid rgba(223, 199, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(9, 3, 16, 0.72);
  box-shadow: none;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.tool-button.compact {
  min-height: 32px;
  padding-inline: 10px;
  gap: 7px;
  font-size: 0.82rem;
}

.ui-icon,
.drop-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.ui-icon::before,
.ui-icon::after,
.drop-icon::before,
.drop-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.users-icon::before {
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 999px;
  top: 1px;
}

.users-icon::after {
  width: 17px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  bottom: 1px;
}

.logout-icon::before {
  width: 10px;
  height: 12px;
  border: 2px solid currentColor;
  border-right: 0;
  border-radius: 3px 0 0 3px;
  left: 1px;
}

.logout-icon::after {
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  right: 1px;
}

.refresh-icon::before {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 999px;
}

.refresh-icon::after {
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  right: 1px;
  top: 1px;
  transform: rotate(15deg);
}

.capture-icon::before,
.download-icon::before,
.install-icon::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
  bottom: 1px;
}

.capture-icon::after {
  width: 0;
  height: 0;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  left: 7px;
}

.download-icon::after,
.install-icon::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  top: 1px;
}

.cancel-icon::before {
  width: 16px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.cancel-icon::after {
  width: 16px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}

.open-icon::before,
.view-icon::before {
  width: 16px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.open-icon::after,
.view-icon::after {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.trash-icon::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  bottom: 1px;
}

.trash-icon::after {
  width: 14px;
  height: 2px;
  background: currentColor;
  top: 3px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}

.auth-view {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.brand-logo {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 44px rgba(184, 76, 255, 0.2));
}

.login-logo {
  width: min(172px, 42vw);
  height: min(172px, 42vw);
  margin: 0 auto 4px;
}

.small-logo {
  width: 34px;
  height: 34px;
}

h1,
h2,
p {
  margin: 0;
}

h2 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 620;
}

p,
span,
small,
label {
  color: var(--muted);
}

.auth-panel,
.notice-panel,
.capture-panel,
.projects-panel,
.gallery-panel,
.modal-shell {
  border: 1px solid rgba(223, 199, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 3, 18, 0.84), rgba(15, 4, 26, 0.74)),
    radial-gradient(circle at 0% 0%, rgba(38, 215, 255, 0.08), transparent 18rem),
    radial-gradient(circle at 100% 0%, rgba(184, 76, 255, 0.12), transparent 18rem);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.auth-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(410px, 100%);
  padding: 24px;
  overflow: hidden;
  border-color: rgba(217, 139, 255, 0.32);
  background:
    linear-gradient(145deg, rgba(55, 15, 84, 0.94), rgba(19, 5, 34, 0.96) 48%, rgba(45, 8, 72, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(38, 215, 255, 0.12), transparent 18rem);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(38, 215, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(38, 215, 255, 0.12), transparent),
    radial-gradient(circle at 22% 20%, rgba(38, 215, 255, 0.16), transparent 12rem),
    radial-gradient(circle at 84% 12%, rgba(184, 76, 255, 0.22), transparent 13rem);
  opacity: 0.9;
}

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

label {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 520;
}

input,
select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 2, 13, 0.72);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.input-shell {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 2, 13, 0.72);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(38, 215, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(38, 215, 255, 0.13);
  background: rgba(11, 3, 20, 0.86);
}

.input-shell input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 4px;
}

.input-shell input:focus {
  border-color: transparent;
  box-shadow: none;
}

.field-icon {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 10px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(38, 215, 255, 0.24), rgba(184, 76, 255, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.user-icon::before,
.user-icon::after,
.lock-icon::before,
.lock-icon::after {
  content: "";
  position: absolute;
  border-color: #eafaff;
}

.user-icon::before {
  width: 7px;
  height: 7px;
  top: 7px;
  border: 2px solid #eafaff;
  border-radius: 999px;
}

.user-icon::after {
  width: 14px;
  height: 7px;
  bottom: 6px;
  border: 2px solid #eafaff;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom: 0;
}

.lock-icon::before {
  width: 12px;
  height: 10px;
  bottom: 6px;
  border: 2px solid #eafaff;
  border-radius: 4px;
}

.lock-icon::after {
  width: 9px;
  height: 8px;
  top: 6px;
  border: 2px solid #eafaff;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

input:focus,
select:focus {
  border-color: rgba(38, 215, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(38, 215, 255, 0.12);
}

.form-message {
  min-height: 18px;
  font-size: 0.82rem;
}

.main-view {
  display: grid;
  gap: 16px;
}

.topbar {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(223, 199, 255, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(8, 2, 14, 0.86), rgba(5, 1, 10, 0.78)),
    radial-gradient(circle at 10% 0%, rgba(38, 215, 255, 0.08), transparent 18rem);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.brand-row,
.top-actions,
.action-row,
.panel-heading,
.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-row strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 620;
}

.brand-row span,
.panel-heading span {
  display: block;
  font-size: 0.78rem;
  color: var(--soft);
}

.notice-panel,
.capture-panel,
.projects-panel,
.gallery-panel {
  padding: 14px;
}

.notice-panel {
  display: grid;
  gap: 10px;
  border-color: rgba(38, 215, 255, 0.28);
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.52fr);
  gap: 16px;
  align-items: start;
}

.capture-panel {
  display: grid;
  gap: 14px;
}

.dropzone {
  min-height: 150px;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(223, 199, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(184, 76, 255, 0.16), rgba(38, 215, 255, 0.08)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 14rem),
    rgba(255, 255, 255, 0.025);
  cursor: pointer;
  padding: 18px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.dropzone:hover {
  transform: translateY(-1px);
  border-color: rgba(38, 215, 255, 0.34);
}

.dropzone input {
  display: none;
}

.dropzone span {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
}

.drop-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(38, 215, 255, 0.22), rgba(184, 76, 255, 0.24));
  color: #eefaff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 14px 32px rgba(0,0,0,0.24);
}

.drop-icon::before {
  width: 17px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.drop-icon::after {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  top: 10px;
}

.dropzone small {
  max-width: 400px;
  line-height: 1.45;
  font-size: 0.78rem;
  font-weight: 400;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr) 180px;
  gap: 12px;
}

.progress-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 2, 10, 0.46);
}

.progress-card strong {
  font-weight: 600;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

#progressBar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 180ms ease;
}

#videoPreview {
  width: 100%;
  max-height: 300px;
  min-height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #030307;
}

#videoPreview:not([src]) {
  display: none;
}

.projects-list,
.users-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.project-item,
.user-item {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    rgba(5, 2, 10, 0.42);
}

.project-item {
  grid-template-columns: 1fr auto;
}

.user-item {
  grid-template-columns: minmax(120px, 1fr) minmax(220px, 0.8fr) auto;
}

.project-item button,
.user-item button {
  min-height: 36px;
  padding: 0 11px;
}

.project-item strong,
.user-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.gallery-panel {
  display: grid;
  gap: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
  min-height: 132px;
}

.gallery-grid.empty-state {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 140px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.image-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.image-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #030307;
  cursor: zoom-in;
}

.image-card footer {
  display: grid;
  gap: 8px;
  padding: 9px;
}

.image-card span {
  color: var(--text);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.image-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0.92;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
}

.image-card:hover .image-actions,
.image-card:focus-within .image-actions {
  opacity: 1;
  transform: translateY(-1px);
}

.image-actions a,
.image-actions button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 4, 14, 0.76);
  backdrop-filter: blur(12px);
  font-size: 0.76rem;
  font-weight: 720;
}

dialog {
  width: min(960px, calc(100vw - 24px));
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(5, 2, 10, 0.7);
  backdrop-filter: blur(10px);
}

.modal-shell {
  padding: 16px;
}

.image-shell {
  display: grid;
  gap: 12px;
}

.image-shell .modal-close {
  justify-self: end;
  width: auto;
  min-width: 92px;
  max-width: 120px;
}

.image-shell img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #030307;
}

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

.modal-footer strong {
  overflow-wrap: anywhere;
}

.user-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.self-password-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(38, 215, 255, 0.055), rgba(184, 76, 255, 0.07));
}

.self-password-form strong,
.self-password-form span {
  display: block;
}

.self-password-form strong {
  font-size: 0.92rem;
  font-weight: 560;
}

.self-password-form span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.user-password-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.user-password-row input {
  min-height: 36px;
}

.danger {
  background:
    linear-gradient(180deg, rgba(255, 93, 145, 0.18), rgba(255, 93, 145, 0.08)),
    rgba(9, 3, 16, 0.64);
  color: #ffd5e2;
}

/* Dashboard app shell */
.main-view {
  padding-top: 34px;
}

.app-header {
  overflow: visible;
  min-height: 62px;
}

.logo-home-button {
  appearance: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.logo-home-button:focus-visible {
  outline: 2px solid rgba(38, 215, 255, 0.72);
  outline-offset: 6px;
}

.floating-logo-button {
  position: absolute;
  left: 50%;
  top: -34px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  transform: translateX(-50%);
  background: transparent;
}

.floating-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(38, 215, 255, 0.18)) drop-shadow(0 8px 28px rgba(184, 76, 255, 0.26));
  transition: transform 160ms ease, filter 160ms ease;
}

.floating-logo-button:hover .floating-logo,
.sidebar-logo-button:hover .sidebar-logo {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 18px 36px rgba(38, 215, 255, 0.22)) drop-shadow(0 10px 30px rgba(184, 76, 255, 0.34));
}

.hamburger-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(9, 3, 16, 0.76);
  border: 1px solid rgba(223, 199, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hamburger-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: -3px 0;
  border-radius: 999px;
  background: currentColor;
}

.side-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  background: rgba(5, 2, 10, 0.42);
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease;
}

.side-menu.open {
  pointer-events: auto;
  opacity: 1;
}

.side-menu-panel {
  position: relative;
  width: min(292px, 86vw);
  min-height: 100%;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(223, 199, 255, 0.14);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background:
    linear-gradient(180deg, rgba(8, 2, 16, 0.98), rgba(13, 4, 22, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(184, 76, 255, 0.16), transparent 14rem),
    radial-gradient(circle at 0% 28%, rgba(38, 215, 255, 0.09), transparent 15rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  transform: translateX(-100%);
  transition: transform 200ms ease;
  overflow: hidden;
}

.side-menu-panel > :not(.sidebar-art) {
  position: relative;
  z-index: 1;
}

.side-menu.open .side-menu-panel {
  transform: translateX(0);
}

.sidebar-logo-wrap {
  display: grid;
  place-items: center;
  padding: 4px 0 10px;
}

.sidebar-logo-button {
  display: grid;
  place-items: center;
  background: transparent;
}

.sidebar-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 16px 34px rgba(184, 76, 255, 0.28)) drop-shadow(0 10px 22px rgba(38, 215, 255, 0.12));
  transition: transform 160ms ease, filter 160ms ease;
}

.sidebar-separator {
  height: 1px;
  margin: 2px 0 4px;
  background: linear-gradient(90deg, transparent, rgba(38, 215, 255, 0.72), rgba(214, 76, 255, 0.72), transparent);
  box-shadow: 0 0 18px rgba(184, 76, 255, 0.36);
}

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

.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px 2px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(38, 215, 255, 0.55), rgba(214, 76, 255, 0.55), transparent) 1;
  background:
    linear-gradient(90deg, rgba(38, 215, 255, 0.06), rgba(214, 76, 255, 0.08), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.sidebar-footer span {
  display: block;
  font-size: 0.72rem;
  color: var(--soft);
}

.sidebar-footer strong {
  display: block;
  margin-top: 3px;
  font-size: 0.9rem;
  font-weight: 520;
}

.sidebar-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  filter: blur(0.2px);
}

.sidebar-art span {
  position: absolute;
  display: block;
  color: rgba(223, 199, 255, 0.34);
}

.ghost-camera {
  width: 44px;
  height: 31px;
  right: 20px;
  top: 236px;
  border: 2px solid currentColor;
  border-radius: 9px;
}

.ghost-camera::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 13px;
  top: 7px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.ghost-video {
  width: 48px;
  height: 30px;
  left: 26px;
  bottom: 246px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.ghost-video::before {
  content: "";
  position: absolute;
  right: -16px;
  top: 7px;
  width: 0;
  height: 0;
  border-left: 16px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.ghost-frame {
  width: 46px;
  height: 46px;
  right: 34px;
  bottom: 116px;
  border: 2px dashed currentColor;
  border-radius: 12px;
  transform: rotate(10deg);
}

.ghost-chip {
  padding: 5px 8px;
  border: 1px solid rgba(223, 199, 255, 0.16);
  border-radius: 999px;
  color: rgba(245, 238, 255, 0.23);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0;
  background: linear-gradient(135deg, rgba(38, 215, 255, 0.08), rgba(214, 76, 255, 0.08));
  box-shadow: 0 0 20px rgba(184, 76, 255, 0.08);
  filter: blur(0.35px);
}

.ghost-html {
  left: 32px;
  top: 170px;
  transform: rotate(-9deg);
}

.ghost-php {
  right: 26px;
  top: 340px;
  transform: rotate(7deg);
}

.ghost-python {
  left: 30px;
  bottom: 116px;
  transform: rotate(8deg);
}

.ghost-js {
  right: 72px;
  bottom: 226px;
  transform: rotate(-6deg);
}

.ghost-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(38, 215, 255, 0.5), rgba(214, 76, 255, 0.36));
  box-shadow: 0 0 16px rgba(38, 215, 255, 0.18);
  filter: blur(0.8px);
}

.dot-a { left: 38px; top: 302px; }
.dot-b { right: 54px; top: 188px; }
.dot-c { left: 118px; top: 418px; }
.dot-d { right: 92px; bottom: 172px; }
.dot-e { left: 62px; bottom: 62px; }
.dot-f { right: 34px; bottom: 310px; }

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 40px;
  padding-inline: 12px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: var(--muted);
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  color: var(--text);
  border-color: rgba(223, 199, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(38, 215, 255, 0.045);
}

.dashboard-icon::before {
  width: 6px;
  height: 6px;
  left: 1px;
  top: 1px;
  background: currentColor;
  box-shadow: 9px 0 0 currentColor, 0 9px 0 currentColor, 9px 9px 0 currentColor;
  border-radius: 2px;
}

.library-icon::before {
  width: 14px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
  bottom: 1px;
}

.library-icon::after {
  width: 8px;
  height: 2px;
  background: currentColor;
  top: 4px;
  box-shadow: 0 5px 0 currentColor;
}

.save-icon::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.save-icon::after {
  width: 7px;
  height: 4px;
  border: 2px solid currentColor;
  border-top: 0;
  bottom: 3px;
}

.view-section {
  min-width: 0;
}

.dashboard-view {
  display: grid;
  gap: 16px;
}

.welcome-panel {
  min-height: 102px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(223, 199, 255, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(38, 215, 255, 0.065), rgba(184, 76, 255, 0.09)),
    rgba(8, 2, 13, 0.68);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.welcome-panel h2 {
  margin-bottom: 5px;
  font-size: 1.22rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  position: relative;
  min-height: 112px;
  padding: 15px;
  display: grid;
  align-content: center;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(223, 199, 255, 0.12);
  border-radius: 14px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 2, 13, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -48px;
  bottom: -64px;
  border-radius: 999px;
  background: rgba(184, 76, 255, 0.12);
}

.stat-card .ui-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--accent-2);
  background: rgba(38, 215, 255, 0.08);
  border: 1px solid rgba(38, 215, 255, 0.14);
}

.stat-card strong {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 560;
}

.stat-card small {
  color: var(--muted);
}

.stat-card.cyan { border-top-color: rgba(38, 215, 255, 0.44); }
.stat-card.purple { border-top-color: rgba(184, 76, 255, 0.44); }
.stat-card.blue { border-top-color: rgba(79, 136, 255, 0.44); }
.stat-card.pink { border-top-color: rgba(239, 91, 137, 0.44); }

@media (max-width: 860px) {
  .app-shell {
    padding-inline: 12px;
  }

  .capture-layout,
  .field-grid,
  .inline-form,
  .user-form,
  .self-password-form {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .panel-heading,
  .modal-footer {
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-logo {
    width: 76px;
    height: 76px;
    top: -28px;
  }

  .main-view {
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  button,
  .ghost-link {
    width: 100%;
  }

  .action-row,
  .top-actions,
  .panel-heading,
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .project-item,
  .user-item {
    grid-template-columns: 1fr;
  }

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

  .login-logo {
    width: 142px;
    height: 142px;
  }

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

  .welcome-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

/* NovaCapture V21/V23 - database library, user admin, protected project cards and studio tools */
.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid rgba(94, 213, 255, 0.22);
  border-radius: 999px;
  background: rgba(9, 4, 18, 0.58);
  box-shadow: inset 0 0 22px rgba(38, 215, 255, 0.06);
  color: var(--muted);
}

.session-pill strong {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.link-button:hover {
  color: #fff;
  text-shadow: 0 0 16px rgba(38, 215, 255, 0.6);
}

.compact-auth {
  gap: 14px;
  max-width: 480px;
}

.compact-auth h2,
.compact-auth p {
  margin: 0;
}

.reset-url-box {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid rgba(94, 213, 255, 0.28);
  border-radius: 14px;
  color: #dff8ff;
  background: rgba(6, 10, 24, 0.72);
  padding: 12px;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.project-card-pro {
  position: relative;
  grid-template-columns: minmax(86px, 112px) 1fr auto;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border-color: rgba(94, 213, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(12, 7, 30, 0.96), rgba(46, 12, 74, 0.58)),
    radial-gradient(circle at 12% 20%, rgba(38, 215, 255, 0.16), transparent 44%),
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.14), transparent 42%);
}

.project-card-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-120%);
  transition: transform 0.72s ease;
}

.project-card-pro:hover::before {
  transform: translateX(120%);
}

.project-visual {
  position: relative;
  min-height: 90px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.project-folder {
  width: 86px;
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.42));
}

.folder-glow {
  position: absolute;
  z-index: 1;
  transform: translateY(2px) rotate(-2deg);
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: novaFolderFloat 5.4s ease-in-out infinite;
}

.project-card-pro:hover .folder-glow {
  transform: translateY(-3px) rotate(-4deg) scale(1.03);
  filter: drop-shadow(0 0 18px rgba(38, 215, 255, 0.42)) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.44));
}

.project-cover-shell {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 6px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(6, 5, 18, 0.82);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.project-cover,
.project-cover-shell .project-folder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-info strong {
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  letter-spacing: 0.01em;
}

.project-info span,
.project-info small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.pro-image-card footer {
  display: grid;
  gap: 4px;
}

.pro-image-card footer small {
  color: var(--muted);
  font-size: 0.78rem;
}

.user-admin-shell {
  width: min(1040px, calc(100vw - 22px));
}

.pro-user-form {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pro-user-form input[name="username"],
.pro-user-form input[name="name"],
.pro-user-form input[name="email"] {
  grid-column: span 2;
}

.pro-user-form select,
.pro-user-form input[name="password"],
.pro-user-form button {
  grid-column: span 2;
}

.user-card-pro {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 0.72fr) auto;
  gap: 16px;
  align-items: center;
}

.user-card-pro.is-inactive {
  opacity: 0.62;
}

.user-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.user-meta span,
.user-meta small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes novaFolderFloat {
  0%, 100% { transform: translateY(2px) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@media (max-width: 880px) {
  .session-pill {
    display: none;
  }

  .project-card-pro,
  .user-card-pro {
    grid-template-columns: 1fr;
  }

  .project-visual {
    justify-content: start;
    place-items: center start;
  }

  .project-actions,
  .user-actions-row {
    justify-content: stretch;
  }

  .project-actions .tool-button,
  .user-actions-row .tool-button {
    flex: 1 1 140px;
  }

  .pro-user-form {
    grid-template-columns: 1fr;
  }

  .pro-user-form input[name="username"],
  .pro-user-form input[name="name"],
  .pro-user-form input[name="email"],
  .pro-user-form select,
  .pro-user-form input[name="password"],
  .pro-user-form button {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .project-cover-shell {
    left: 64px;
    right: auto;
  }

  .project-info span,
  .project-info small,
  .user-meta span,
  .user-meta small {
    white-space: normal;
  }

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

  .reset-url-box {
    min-height: 110px;
  }
}

/* NovaCapture V23 Studio Tools */
.welcome-actions,
.action-row-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tools-icon::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: rotate(45deg);
}

.tools-icon::after {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.panel-card-pro,
.capture-smart-panel {
  border: 1px solid rgba(94, 213, 255, 0.18);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(12, 4, 20, 0.76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

.capture-smart-panel {
  padding: 16px;
  margin-top: 14px;
}

.mini-heading,
.compact-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.mini-heading strong,
.compact-heading h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.mini-heading span,
.compact-heading span {
  color: var(--muted);
  font-size: 0.86rem;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-layout {
  display: grid;
  gap: 18px;
}

.tools-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.tools-hero::before {
  content: "";
  position: absolute;
  inset: -40% -12% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(38,215,255,0.22), transparent 62%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(38, 215, 255, 0.28);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(38, 215, 255, 0.075);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.tools-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.tools-folder-art {
  width: min(150px, 32vw);
  justify-self: end;
  filter: drop-shadow(0 18px 42px rgba(38, 215, 255, 0.22));
  animation: folderFloatV23 5.5s ease-in-out infinite;
}

@keyframes folderFloatV23 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(2deg); }
}

.tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 18px;
}

.tool-panel {
  padding: 18px;
}

.tool-panel.pro-roadmap {
  grid-column: 1 / -1;
}

.tool-dropzone {
  min-height: 128px;
  margin-bottom: 14px;
}

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

.video-tool-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px;
  text-align: left;
  border: 1px solid rgba(223, 199, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(38, 215, 255, 0.08), rgba(184, 76, 255, 0.08)),
    rgba(255,255,255,0.035);
  box-shadow: none;
}

.video-tool-card:disabled {
  opacity: 0.62;
}

.video-tool-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(184, 76, 255, 0.18));
}

.video-tool-card strong {
  font-size: 0.94rem;
}

.video-tool-card span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.roadmap-list span {
  display: grid;
  min-height: 74px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(94, 213, 255, 0.16);
  border-radius: 16px;
  color: var(--text);
  text-align: center;
  font-size: 0.84rem;
  background: rgba(255,255,255,0.04);
}

.tool-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.tool-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.tool-result-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(223, 199, 255, 0.14);
  border-radius: 18px;
  background: rgba(9, 3, 16, 0.72);
}

.tool-result-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}

.tool-result-card div {
  display: grid;
  gap: 6px;
}

.tool-result-card span,
.tool-result-card small {
  color: var(--muted);
}

.folder-glow {
  transition: transform 220ms ease, filter 220ms ease;
}

.project-card-pro:hover .folder-glow,
.video-tool-card:hover img {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 18px 34px rgba(38, 215, 255, 0.28));
}

@media (max-width: 980px) {
  .compact-grid,
  .tools-grid,
  .roadmap-list {
    grid-template-columns: 1fr 1fr;
  }
  .video-tool-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tools-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .tools-folder-art {
    justify-self: start;
    width: 116px;
  }
  .compact-grid,
  .tools-grid,
  .roadmap-list,
  .tool-results {
    grid-template-columns: 1fr;
  }
  .action-row-wrap,
  .welcome-actions {
    width: 100%;
  }
  .action-row-wrap > *,
  .welcome-actions > * {
    flex: 1 1 100%;
  }
  .capture-smart-panel {
    padding: 14px;
  }
}


/* NovaCapture V23 UI/UX expansion */
.tool-button,
.quick-action-card,
.video-tool-card,
.stat-card,
.panel-card-pro,
.project-card-pro,
.dashboard-project-card,
.nav-item,
.image-card,
.topbar {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-button:hover,
.quick-action-card:hover,
.video-tool-card:hover,
.stat-card:hover,
.panel-card-pro:hover,
.project-card-pro:hover,
.dashboard-project-card:hover,
.image-card:hover {
  transform: translateY(-2px);
}

.interactive-surface {
  position: relative;
  overflow: hidden;
}

.interactive-surface::after {
  content: "";
  position: absolute;
  inset: auto -28% -52% auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(38,215,255,0.14), transparent 68%);
  pointer-events: none;
  opacity: 0.9;
}

.dashboard-grid-pro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}

.dashboard-quick-panel,
.dashboard-recent-panel,
.dashboard-insights-panel {
  padding: 18px;
}

.dashboard-insights-panel {
  grid-column: 1 / -1;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-action-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  text-align: left;
  padding: 16px;
  border: 1px solid rgba(223, 199, 255, 0.14);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    linear-gradient(135deg, rgba(38,215,255,0.08), rgba(236,72,153,0.09));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.quick-action-card .ui-icon,
.insight-card::before {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--accent-2);
  background: rgba(38,215,255,0.08);
  border: 1px solid rgba(38,215,255,0.16);
}

.quick-action-card strong {
  font-size: 0.98rem;
}

.quick-action-card small {
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-recent-list {
  display: grid;
  gap: 12px;
}

.dashboard-project-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(223, 199, 255, 0.12);
  border-radius: 18px;
  background: rgba(9, 3, 16, 0.72);
}

.dashboard-project-media {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}

.dashboard-recent-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-project-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-project-copy strong,
.dashboard-project-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-project-copy small {
  color: var(--muted);
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.insight-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(223,199,255,0.12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(38,215,255,0.05), rgba(236,72,153,0.07)), rgba(9,3,16,0.72);
}

.insight-card::before {
  content: "";
}

.insight-card strong {
  font-size: 0.96rem;
}

.insight-card small {
  color: var(--muted);
  line-height: 1.42;
}

.projects-panel {
  position: sticky;
  top: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: calc(100vh - 100px);
}

.projects-list.enhanced-projects {
  overflow: auto;
  padding-right: 4px;
}

.project-card-pro {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
}

.project-main-row {
  display: grid;
  grid-template-columns: minmax(86px, 108px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.project-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(94,213,255,0.16);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(38,215,255,0.06);
  font-size: 0.76rem;
  font-weight: 700;
}

.project-actions-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.project-actions-stack .tool-button {
  justify-content: center;
}

#projectsList::-webkit-scrollbar {
  width: 10px;
}

#projectsList::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(38,215,255,0.34), rgba(184,76,255,0.34));
}

.gallery-panel .panel-heading,
.projects-panel .panel-heading,
.capture-panel .panel-heading,
.tool-panel .panel-heading {
  position: relative;
}

@media (max-width: 1180px) {
  .capture-layout,
  .dashboard-grid-pro {
    grid-template-columns: 1fr;
  }

  .projects-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .quick-actions-grid,
  .insight-list,
  .project-actions-stack {
    grid-template-columns: 1fr;
  }

  .dashboard-project-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .dashboard-project-card .tool-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .project-main-row,
  .dashboard-project-card {
    grid-template-columns: 1fr;
  }

  .dashboard-project-media,
  .project-visual {
    justify-self: start;
  }

  .quick-actions-grid,
  .insight-list {
    grid-template-columns: 1fr;
  }
}
