:root {
  --bg: #f5f8ff;
  --bg-soft: #eef3fd;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-muted: #f8fbff;
  --border: #dce5f4;
  --border-strong: #cad7eb;
  --text: #202124;
  --text-muted: #5f6b7a;
  --text-soft: #7a8798;
  --primary: #1a73e8;
  --primary-dark: #185abc;
  --accent: #34a853;
  --danger: #d93025;
  --shadow-sm: 0 12px 32px rgba(38, 70, 132, 0.08);
  --shadow-md: 0 24px 56px rgba(24, 49, 99, 0.1);
  --shadow-lg: 0 36px 88px rgba(18, 40, 86, 0.12);
  --radius-lg: 28px;
  --sidebar-width: 300px;
  --content-shell-padding-x: 32px;
  --content-shell-padding-top: 28px;
  --content-shell-padding-bottom: 36px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(66, 133, 244, 0.12), transparent 22%),
    radial-gradient(circle at bottom right, rgba(251, 188, 4, 0.1), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, #f2f6fd 100%);
  scrollbar-width: thin;
  scrollbar-color: #c8d6ee transparent;
}

body.sidebar-open {
  overflow: hidden;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button,
label,
[role="button"],
.primary-link-button,
.secondary-link-button,
.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.nav-button,
.drive-chip,
.photos-chip,
.breadcrumb-link,
.menu-toggle,
.sidebar-close,
.lightbox-close,
.lightbox-nav,
.sidebar-action {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus,
label:focus,
a:focus,
[role="button"]:focus,
.primary-link-button:focus,
.secondary-link-button:focus,
.primary-button:focus,
.secondary-button:focus,
.danger-button:focus,
.ghost-button:focus,
.nav-button:focus,
.drive-chip:focus,
.photos-chip:focus,
.breadcrumb-link:focus,
.menu-toggle:focus,
.sidebar-close:focus,
.lightbox-close:focus,
.lightbox-nav:focus,
.sidebar-action:focus {
  outline: none;
}

img,
video {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.12);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(26, 115, 232, 0);
  }
}

@keyframes topbar-haze {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scaleX(1);
    opacity: 0.72;
  }

  50% {
    transform: translate3d(0, 6px, 0) scaleX(1.04);
    opacity: 1;
  }
}

.marketing-header,
.feature-card,
.hero-stat-card,
.auth-form-shell,
.band-card,
.hero-card,
.metric-card,
.panel-card,
.hero-stat,
.site-footer,
.sidebar,
.summary-row,
.photos-section,
.drive-list,
.empty-state {
  animation: rise-in 0.75s ease both;
}

.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

.marketing-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1360px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px 20px;
  border: 1px solid rgba(220, 229, 244, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-brand-logo {
  width: 38px;
  height: 38px;
}

.marketing-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.marketing-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.marketing-nav a:hover {
  color: var(--primary);
}

.marketing-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-link-button,
.secondary-link-button,
.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.nav-button,
.drive-chip,
.photos-chip,
.breadcrumb-link,
.menu-toggle,
.sidebar-close,
.lightbox-close,
.lightbox-nav,
.sidebar-action {
  appearance: none;
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.primary-link-button,
.secondary-link-button,
.primary-button,
.secondary-button,
.danger-button,
.menu-toggle,
.sidebar-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.primary-link-button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(180deg, #1f7af0 0%, #185abc 100%);
  box-shadow: 0 14px 30px rgba(26, 115, 232, 0.2);
}

.secondary-link-button,
.secondary-button,
.menu-toggle,
.sidebar-close,
.sidebar-action {
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(21, 50, 106, 0.06);
}

.danger-button {
  color: #b3261e;
  background: rgba(217, 48, 37, 0.08);
  border: 1px solid rgba(217, 48, 37, 0.2);
}

.primary-link-button:hover,
.primary-button:hover,
.secondary-link-button:hover,
.secondary-button:hover,
.danger-button:hover,
.ghost-button:hover,
.nav-button:hover,
.drive-chip:hover,
.photos-chip:hover,
.breadcrumb-link:hover,
.menu-toggle:hover,
.sidebar-close:hover,
.lightbox-close:hover,
.lightbox-nav:hover,
.sidebar-action:hover {
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

.auth-layout {
  width: min(1360px, calc(100% - 32px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 24px;
  align-items: start;
}

.auth-panel {
  min-width: 0;
  padding: clamp(28px, 3vw, 42px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(220, 229, 244, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.82));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.auth-panel-brand {
  display: grid;
  gap: 36px;
  align-content: start;
}

.auth-panel-form {
  display: flex;
  align-items: flex-start;
}

.auth-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

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

.auth-brand-logo {
  width: clamp(180px, 30vw, 240px);
  height: auto;
}

.auth-brand-badge,
.feature-kicker,
.metric-kicker,
.panel-kicker,
.hero-kicker,
.topbar-kicker,
.usage-kicker,
.otp-tag,
.stat-label,
.sidebar-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-brand-badge {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(202, 215, 235, 0.95);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}

.auth-brand-badge.subtle {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.hero-content {
  display: grid;
  gap: 22px;
}

.auth-title {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.auth-copy {
  max-width: 62ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-button-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-button-row > * {
  flex: 0 1 auto;
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.hero-stat-card,
.hero-stat,
.feature-card,
.metric-card,
.panel-card,
.band-card,
.auth-form-shell,
.drive-list,
.empty-state,
.photos-section {
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
  box-shadow: var(--shadow-sm);
}

.hero-stat-card,
.hero-stat {
  padding: 22px;
  height: 100%;
}

.hero-stat-card strong,
.hero-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.4;
}

.hero-stat-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14px;
}

.auth-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card,
.band-card,
.metric-card,
.panel-card {
  padding: 26px;
  height: 100%;
}

.feature-card h2,
.band-card h3,
.panel-card h3,
.mini-panel h3 {
  margin: 10px 0 12px;
  font-size: 24px;
  line-height: 1.28;
}

.feature-card p,
.band-card p,
.mini-panel p,
.auth-form-header p,
.otp-intro p,
.topbar-subtitle,
.drive-view-note,
.photos-toolbar-note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.auth-form-shell {
  width: min(520px, 100%);
  margin-left: auto;
  padding: 34px;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 104px;
  border-color: rgba(212, 223, 241, 0.98);
  box-shadow:
    0 22px 54px rgba(24, 49, 99, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.auth-form-header h2 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.1;
}

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

.auth-form-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.form-meta-item {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-muted);
}

.form-meta-item strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.field-label {
  font-size: 13px;
  color: var(--text-muted);
}

.field-input,
.search-input,
.otp-cell {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-input,
.search-input {
  min-height: 54px;
  padding: 0 16px;
}

.field-input::placeholder,
.search-input::placeholder {
  color: #97a2af;
}

.field-input:focus,
.search-input:focus,
.otp-cell:focus {
  border-color: rgba(26, 115, 232, 0.66);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.13);
}

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

.otp-cell {
  height: 60px;
  padding: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.auth-message {
  min-height: 24px;
  margin: 0;
  color: var(--text-muted);
}

.auth-message[data-tone="success"] {
  color: var(--accent);
}

.auth-message[data-tone="error"] {
  color: var(--danger);
}

.auth-message[data-tone="info"] {
  color: var(--primary-dark);
}

.marketing-band {
  width: min(1360px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.site-footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.site-footer-login {
  width: min(1360px, calc(100% - 32px));
  margin: 42px auto 28px;
}

.site-footer-top,
.site-footer-bottom {
  padding-inline: 4px;
}

.site-footer-top,
.site-footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  align-items: center;
}

.footer-brand {
  display: flex;
  gap: 16px;
  max-width: 390px;
}

.footer-brand-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.footer-brand-title {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand p {
  margin: 10px 0 0;
  line-height: 1.75;
}

.footer-links {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-width: min(100%, 620px);
}

.footer-column {
  display: grid;
  gap: 12px;
}

.footer-column h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.footer-column a,
.footer-bottom-links a {
  text-decoration: none;
}

.footer-column a:hover,
.footer-bottom-links a:hover {
  color: var(--primary);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-region {
  white-space: nowrap;
}

.dashboard-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(66, 133, 244, 0.14), transparent 18%),
    radial-gradient(circle at left 30%, rgba(52, 168, 83, 0.08), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 18px;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.8));
  backdrop-filter: blur(18px);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.35);
  scrollbar-width: none;
  -ms-overflow-style: none;
  will-change: auto;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-top {
  display: grid;
  gap: 24px;
}

.sidebar-overlay {
  display: none;
}

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

.sidebar-brand > div:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  animation: pulse-glow 3.4s ease-in-out infinite;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 13px;
}

.sidebar-close,
.menu-toggle {
  display: none;
}

.sidebar-nav,
.sidebar-quick-actions {
  display: grid;
  gap: 10px;
}

.nav-button {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  text-align: left;
  font-weight: 600;
}

.nav-button.active {
  color: var(--primary-dark);
  background: linear-gradient(180deg, #eef4ff 0%, #e6f0ff 100%);
  border-color: #d8e5fb;
  box-shadow: 0 10px 28px rgba(26, 115, 232, 0.12);
}

.sidebar-action {
  width: 100%;
  justify-content: flex-start;
  min-height: 46px;
}

.sidebar-footer {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
}

.stacked-usage,
.hero-storage-meter {
  position: relative;
  overflow: hidden;
  background: #eaf0fa;
}

.stacked-usage {
  height: 12px;
  margin-top: 14px;
  border-radius: 999px;
}

.hero-storage-meter {
  height: 14px;
  margin-top: 22px;
  border-radius: 999px;
}

.usage-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  transition: width 280ms ease;
}

.usage-fill-combined {
  background: #d7e6ff;
}

.usage-fill-drive {
  background: linear-gradient(90deg, #8ab4f8, #1a73e8);
}

.usage-fill-photos {
  background: linear-gradient(90deg, #f2994a, #ea4335);
}

.usage-meta,
.usage-legend,
.hero-storage-row,
.summary-row,
.topbar,
.panel-card-header,
.drive-toolbar,
.photos-toolbar,
.photos-section-header,
.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.usage-meta,
.usage-legend,
.hero-storage-row,
.drive-row-meta,
.gallery-overlay span,
.lightbox-info {
  color: var(--text-soft);
}

.usage-meta,
.usage-legend {
  margin-top: 12px;
  font-size: 13px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.legend-drive {
  background: var(--primary);
}

.legend-photos {
  background: #ea4335;
}

.content-shell {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding:
    0
    var(--content-shell-padding-x)
    var(--content-shell-padding-bottom);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding-top: 124px;
}

.content-shell::-webkit-scrollbar {
  display: none;
}

.topbar h1,
.auth-title,
.hero-copy h2,
.auth-form-header h2 {
  overflow-wrap: anywhere;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  isolation: isolate;
  overflow: visible;
  margin:
    0
    calc(-1 * var(--content-shell-padding-x))
    6px;
  padding:
    calc(var(--content-shell-padding-top) + 18px + env(safe-area-inset-top, 0px))
    var(--content-shell-padding-x)
    22px;
  background: transparent;
  backdrop-filter: none;
}

.app-topbar::before,
.app-topbar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.app-topbar::before {
  inset: 0;
  border: 0;
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.95) 58%, rgba(242, 246, 253, 0.58) 100%),
    radial-gradient(circle at top center, rgba(170, 203, 255, 0.18) 0%, rgba(170, 203, 255, 0.04) 42%, transparent 72%);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow:
    0 14px 34px rgba(39, 72, 132, 0.06),
    inset 0 -1px 0 rgba(219, 229, 243, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 1) 14%,
    rgba(0, 0, 0, 1) 44%,
    rgba(0, 0, 0, 0.92) 72%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 1) 14%,
    rgba(0, 0, 0, 1) 44%,
    rgba(0, 0, 0, 0.92) 72%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
  z-index: -2;
}

.app-topbar::after {
  left: 0;
  right: 0;
  bottom: -12px;
  height: 64px;
  border-radius: 0 0 24px 24px;
  background:
    radial-gradient(ellipse at center, rgba(98, 146, 236, 0.18) 0%, rgba(98, 146, 236, 0.08) 40%, rgba(98, 146, 236, 0) 74%),
    radial-gradient(ellipse at 35% 42%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 64%);
  filter: blur(18px);
  opacity: 0.78;
  animation: topbar-haze 8s ease-in-out infinite;
  z-index: -3;
}

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

.topbar-main,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-main {
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

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

.topbar h1 {
  margin: 8px 0 8px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.topbar-subtitle {
  max-width: 620px;
  font-size: 14px;
}

.topbar-main > div:last-child {
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(26, 115, 232, 0.08);
  border: 1px solid rgba(26, 115, 232, 0.16);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: rise-in 0.45s ease both;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 32px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(26, 115, 232, 0.06), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.96));
  border: 1px solid rgba(216, 227, 244, 0.95);
  box-shadow: var(--shadow-lg);
}

.hero-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 640px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.82;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badge,
.drive-chip,
.photos-chip,
.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.2px);
  animation: float-orb 5s ease-in-out infinite;
}

.hero-orb-blue {
  top: 0;
  right: 44px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 35% 35%, #d7e6ff, #8ab4f8 60%, #1a73e8 100%);
}

.hero-orb-red {
  bottom: 8px;
  left: 20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 35% 35%, #fde4df, #f2994a 64%, #ea4335 100%);
  animation-delay: 0.5s;
}

.hero-orb-amber {
  top: 44px;
  left: 36px;
  width: 74px;
  height: 74px;
  background: radial-gradient(circle at 35% 35%, #fff3cd, #fbbc04 100%);
  animation-delay: 1s;
}

.hero-storage-card {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
  box-shadow: var(--shadow-md);
}

.hero-storage-top strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.hero-storage-rows {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hero-storage-row strong,
.summary-row strong,
.drive-card-body h4,
.lightbox-name {
  color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.metric-card h3 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
}

.metric-card p,
.drive-card-body p,
.empty-state p,
.upload-zone p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.primary-metric {
  background: linear-gradient(135deg, #ffffff 0%, #f1f6ff 100%);
}

.accent-drive {
  box-shadow: 0 20px 48px rgba(26, 115, 232, 0.08);
}

.accent-photos {
  box-shadow: 0 20px 48px rgba(234, 67, 53, 0.08);
}

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

.summary-panel {
  margin-top: 24px;
}

.summary-rows {
  display: grid;
  gap: 14px;
}

.summary-row {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

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

.panel-card-header {
  margin-bottom: 22px;
}

.panel-card-header > div:first-child {
  min-width: 0;
}

.panel-card-header h3 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.5vw, 34px);
}

.space-between {
  align-items: flex-start;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.search-input {
  width: min(340px, 100%);
}

.menu-toggle {
  gap: 10px;
  min-width: 112px;
  padding-inline: 18px;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  flex-shrink: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.menu-toggle::before {
  width: 16px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.menu-toggle::after {
  display: none;
}

.menu-toggle[aria-expanded="true"]::before {
  box-shadow: none;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  display: block;
  width: 16px;
  margin-left: -26px;
  transform: rotate(-45deg);
}

.sidebar-close {
  position: relative;
}

.sidebar-close::before,
.sidebar-close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.sidebar-close::before {
  transform: rotate(45deg);
}

.sidebar-close::after {
  transform: rotate(-45deg);
}

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

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.accent-photos-button {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: transparent;
}

.drive-toolbar,
.photos-toolbar {
  margin-bottom: 18px;
}

.drive-chip-row,
.photos-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drive-chip.active,
.photos-chip.active {
  color: var(--primary-dark);
  background: #edf4ff;
  border-color: #d2e3fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.breadcrumb-link {
  color: var(--primary-dark);
}

.breadcrumb-separator {
  color: var(--text-soft);
  font-size: 13px;
}

.upload-zone {
  padding: 30px;
  margin-bottom: 22px;
  border: 1px dashed #c9daf8;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(26, 115, 232, 0.04), transparent 56%),
    linear-gradient(180deg, #ffffff, #f6faff);
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f8fbff, #ecf3ff);
  transform: scale(0.995);
}

.upload-zone-title {
  font-size: 20px;
  font-weight: 700;
}

.drive-grid,
.photos-grid {
  display: block;
}

.drive-list {
  overflow: hidden;
}

.drive-list-header,
.drive-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 110px 160px 110px 180px;
  gap: 18px;
  align-items: center;
}

.drive-list-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drive-row {
  padding: 16px 20px;
  border-bottom: 1px solid #ecf1fa;
}

.drive-row:last-child {
  border-bottom: 0;
}

.drive-row:hover {
  background: #f9fbff;
}

.drive-row-name {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.drive-row-meta {
  font-size: 14px;
}

.drive-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.folder-icon {
  background: #e8f0fe;
  color: #185abc;
}

.image-icon {
  background: #fde7e3;
  color: #ea4335;
}

.video-icon {
  background: #fce8e6;
  color: #c5221f;
}

.pdf-icon {
  background: #e6f4ea;
  color: #188038;
}

.file-icon {
  background: #eef2f7;
  color: #5f6368;
}

.drive-card-body h4 {
  margin: 0 0 6px;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-card-body p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-card-actions,
.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
}

.danger-text {
  color: #b3261e;
}

.empty-state {
  padding: 28px;
}

.empty-state h4 {
  margin: 0 0 10px;
  font-size: 22px;
}

.masonry-grid {
  display: grid;
  gap: 24px;
}

.photos-section {
  padding: 18px;
}

.photos-section-header h4 {
  margin: 0;
  font-size: 20px;
}

.photos-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.masonry-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.masonry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gallery-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(17, 32, 59, 0.8));
}

.gallery-overlay strong {
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 35, 67, 0.44);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  width: min(1080px, calc(100vw - 120px));
  padding: 22px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  max-height: 72vh;
  overflow: hidden;
}

.lightbox-media {
  max-width: 100%;
  max-height: 68vh;
  border-radius: 20px;
}

.lightbox-info {
  margin-top: 8px;
  font-size: 14px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  min-width: 240px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.toast[data-tone="success"] {
  border-color: rgba(52, 168, 83, 0.3);
}

.toast[data-tone="error"] {
  border-color: rgba(217, 48, 37, 0.28);
}

.toast[data-tone="info"] {
  border-color: rgba(26, 115, 232, 0.25);
}

@media (max-width: 1200px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-form-shell {
    width: 100%;
    margin-left: 0;
    position: static;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .marketing-header,
  .auth-layout,
  .marketing-band,
  .site-footer-login {
    width: min(100% - 28px, 1200px);
  }

  .marketing-header {
    gap: 16px;
    padding: 16px 18px;
    border-radius: 22px;
  }

  .auth-layout {
    gap: 22px;
  }

  .auth-panel-brand {
    gap: 28px;
  }

  .auth-title {
    max-width: 14ch;
    font-size: clamp(38px, 6vw, 56px);
  }

  .auth-copy {
    font-size: 17px;
    line-height: 1.72;
  }
}

@media (max-width: 1100px) {
  :root {
    --content-shell-padding-x: 24px;
    --content-shell-padding-top: 22px;
    --content-shell-padding-bottom: 30px;
  }

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

  .sidebar {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 30;
    width: min(360px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    height: calc(100dvh - 28px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(calc(-100% - 18px), 0, 0);
    transition:
      transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 180ms ease,
      visibility 0ms linear 240ms;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 20px 16px;
    border: 1px solid rgba(220, 229, 244, 0.92);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.9));
    box-shadow: var(--shadow-md);
  }

  .sidebar.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition:
      transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 180ms ease,
      visibility 0ms linear 0ms;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(17, 29, 53, 0.28);
    transition: opacity 220ms ease, visibility 0ms linear 220ms;
  }

  .sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 220ms ease, visibility 0ms linear 0ms;
  }

  .menu-toggle,
  .sidebar-close {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 14px;
    font-size: 0;
    line-height: 0;
    box-shadow: none;
    flex: 0 0 40px;
  }

  .sidebar-brand {
    align-items: center;
  }

  .sidebar-close {
    margin-left: auto;
  }

  .menu-toggle::before {
    width: 14px;
    box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
  }

  .menu-toggle[aria-expanded="true"]::before,
  .menu-toggle[aria-expanded="true"]::after {
    position: absolute;
    margin-left: 0;
  }

  .content-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 88px;
    padding-bottom: max(var(--content-shell-padding-bottom), 28px);
  }

  .dashboard-page {
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
  }

  .dashboard-page.sidebar-open .content-shell {
    overflow: hidden;
  }

  .dashboard-topbar {
    position: sticky;
    top: 12px;
    z-index: 12;
    margin: 12px 0 18px;
    padding: 16px 18px;
    border: 1px solid rgba(220, 229, 244, 0.84);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
  }

  .app-topbar {
    padding-bottom: 18px;
  }

  .dashboard-topbar::before,
  .dashboard-topbar::after {
    display: none;
  }

  .app-topbar::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
      0 10px 24px rgba(39, 72, 132, 0.06),
      inset 0 -1px 0 rgba(219, 229, 243, 0.72),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }

  .app-topbar::after {
    display: none;
  }

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

  .topbar-main {
    flex: 1 1 420px;
    gap: 12px;
    align-items: flex-start;
  }

  .topbar-actions {
    width: auto;
    margin-left: auto;
  }

  .status-pill {
    width: auto;
  }

  .dashboard-topbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .topbar h1 {
    font-size: clamp(30px, 4.8vw, 40px);
    line-height: 1.08;
  }

  .topbar-subtitle {
    max-width: 100%;
  }

  .dashboard-home,
  .dashboard-workspace-view {
    gap: 18px;
  }

  .dashboard-metrics,
  .dashboard-stats-grid,
  .dashboard-info-grid,
  .dashboard-summary-panel .summary-rows {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .dashboard-workspace-panel,
  .dashboard-summary-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .dashboard-panel-header,
  .dashboard-panel-header.space-between,
  .dashboard-toolbar-actions,
  .dashboard-filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-panel-header {
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .dashboard-filter-toolbar {
    padding: 16px 18px;
    border-radius: 22px;
  }

  .hero-card {
    gap: 26px;
    padding: 30px;
  }

  .hero-copy h2 {
    font-size: clamp(34px, 5vw, 52px);
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-visual {
    min-height: 280px;
  }

  .brand-mark,
  .hero-orb,
  .app-topbar::after,
  .marketing-header,
  .feature-card,
  .hero-stat-card,
  .auth-form-shell,
  .band-card,
  .hero-card,
  .metric-card,
  .panel-card,
  .hero-stat,
  .site-footer,
  .sidebar,
  .summary-row,
  .photos-section,
  .drive-list,
  .empty-state,
  .view.active {
    animation: none !important;
  }

  .hero-orb {
    display: none;
  }

  .marketing-header,
  .auth-panel,
  .auth-form-shell {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-storage-card {
    width: min(420px, 100%);
    box-shadow: var(--shadow-sm);
  }

  .metric-card,
  .panel-card,
  .feature-card,
  .hero-stat {
    border-radius: 22px;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .toolbar-actions > * {
    flex: 1 1 220px;
  }

  .search-input {
    width: 100%;
  }

  .drive-list {
    overflow: visible;
  }

  .drive-list-header {
    display: none;
  }

  .drive-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92));
    box-shadow: var(--shadow-sm);
  }

  .drive-row:first-of-type {
    margin-top: 0;
  }

  .drive-row > .drive-row-name,
  .drive-row > .drive-card-actions {
    grid-column: 1 / -1;
  }

  .drive-row-meta {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-muted);
  }

  .drive-row > .drive-row-meta:nth-child(2)::before,
  .drive-row > .drive-row-meta:nth-child(3)::before,
  .drive-row > .drive-row-meta:nth-child(4)::before {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .drive-row > .drive-row-meta:nth-child(2)::before {
    content: "Owner";
  }

  .drive-row > .drive-row-meta:nth-child(3)::before {
    content: "Last modified";
  }

  .drive-row > .drive-row-meta:nth-child(4)::before {
    content: "File size";
  }
}

@media (max-width: 900px) {
  .marketing-header,
  .site-footer-top,
  .site-footer-bottom,
  .topbar,
  .toolbar-actions,
  .drive-toolbar,
  .photos-toolbar,
  .lightbox-meta,
  .panel-card-header.space-between {
    flex-direction: column;
    align-items: stretch;
  }

  .marketing-header {
    border-radius: 20px;
  }

  .header-brand {
    width: 100%;
  }

  .marketing-nav,
  .marketing-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .topbar-actions {
    width: auto;
    flex-wrap: wrap;
  }

  .topbar-action,
  .status-pill {
    width: auto;
  }

  .dashboard-topbar {
    padding: 16px;
    border-radius: 20px;
  }

  .content-shell {
    padding-bottom: 24px;
  }

  .app-topbar {
    padding-bottom: 16px;
  }

  .topbar {
    gap: 14px;
  }

  .topbar-main {
    flex: 1 1 100%;
  }

  .topbar h1 {
    font-size: clamp(28px, 6vw, 34px);
  }

  .dashboard-hero,
  .dashboard-workspace-panel,
  .dashboard-summary-panel {
    padding: 22px;
  }

  .hero-card {
    padding: 26px;
    gap: 22px;
  }

  .auth-panel {
    padding: 26px;
  }

  .auth-form-shell {
    padding: 28px;
  }

  .hero-copy h2 {
    font-size: clamp(32px, 7vw, 44px);
  }

  .hero-badges {
    margin-top: 18px;
  }

  .hero-visual {
    min-height: 240px;
  }

  .hero-orb-blue {
    right: 20px;
    width: 180px;
    height: 180px;
  }

  .hero-orb-red {
    left: 10px;
    width: 96px;
    height: 96px;
  }

  .hero-orb-amber {
    left: 24px;
    width: 58px;
    height: 58px;
  }

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

  .photos-section-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .panel-card-header h3 {
    font-size: clamp(24px, 4vw, 30px);
  }

  .toolbar-actions > * {
    flex: 1 1 100%;
  }

  .drive-toolbar,
  .photos-toolbar {
    gap: 14px;
  }

  .upload-zone {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  :root {
    --content-shell-padding-x: 16px;
    --content-shell-padding-top: 16px;
    --content-shell-padding-bottom: 24px;
  }

  .marketing-header,
  .auth-layout,
  .marketing-band,
  .site-footer-login {
    width: calc(100% - 24px);
  }

  .marketing-header {
    margin-top: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .auth-panel,
  .auth-form-shell,
  .hero-card,
  .metric-card,
  .panel-card,
  .feature-card,
  .band-card,
  .hero-stat-card,
  .hero-stat,
  .summary-row,
  .sidebar-footer {
    padding: 22px;
  }

  .sidebar {
    width: min(320px, calc(100vw - 18px));
    max-width: calc(100vw - 18px);
    padding: 20px 14px;
  }

  .menu-toggle,
  .sidebar-close {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  .app-topbar {
    padding-bottom: 14px;
  }

  .dashboard-topbar {
    margin-top: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .topbar {
    gap: 12px;
  }

  .topbar-main {
    gap: 12px;
  }

  .topbar h1 {
    font-size: clamp(24px, 8vw, 31px);
    line-height: 1.05;
  }

  .topbar-subtitle {
    font-size: 13px;
    line-height: 1.65;
  }

  .topbar-actions,
  .status-pill {
    width: 100%;
  }

  .dashboard-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-topbar .status-pill {
    width: fit-content;
    max-width: 100%;
  }

  .hero-card {
    padding: 22px;
    gap: 18px;
  }

  .hero-copy h2 {
    font-size: clamp(27px, 8.6vw, 34px);
    line-height: 1.05;
  }

  .hero-copy p {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-visual {
    min-height: 210px;
  }

  .hero-storage-card {
    width: 100%;
    padding: 20px;
  }

  .auth-title {
    font-size: clamp(30px, 9.5vw, 42px);
  }

  .auth-copy {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-stat-strip,
  .auth-feature-list,
  .marketing-band,
  .card-grid,
  .feature-grid,
  .info-grid,
  .auth-form-meta,
  .footer-links,
  .photos-section-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin-top: 28px;
    padding-top: 24px;
  }

  .dashboard-hero,
  .dashboard-workspace-panel,
  .dashboard-summary-panel {
    padding: 22px;
  }

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

  .drive-list-header {
    display: none;
  }

  .drive-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .drive-card-actions {
    justify-content: flex-start;
  }

  .panel-card-header {
    margin-bottom: 18px;
  }

  .panel-card-header h3 {
    font-size: 24px;
  }

  .upload-zone {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .upload-zone-title {
    font-size: 18px;
  }

  .drive-chip,
  .photos-chip,
  .breadcrumb-link {
    justify-content: flex-start;
    width: 100%;
  }

  .gallery-overlay {
    padding: 14px;
  }

  .lightbox-content {
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (max-width: 560px) {
  :root {
    --content-shell-padding-x: 12px;
    --content-shell-padding-top: 12px;
    --content-shell-padding-bottom: 20px;
  }

  .marketing-header {
    padding: 16px;
  }

  .header-brand {
    white-space: normal;
  }

  .marketing-nav {
    gap: 14px;
    font-size: 14px;
  }

  .marketing-nav a {
    width: 100%;
  }

  .auth-panel,
  .auth-form-shell,
  .hero-card,
  .metric-card,
  .panel-card,
  .feature-card,
  .band-card,
  .hero-stat-card,
  .hero-stat,
  .summary-row,
  .sidebar-footer {
    padding: 18px;
  }

  .sidebar {
    top: 12px;
    left: 12px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    padding: 18px 12px;
    border-radius: 22px;
  }

  .content-shell {
    padding-bottom: 20px;
  }

  .app-topbar {
    margin-bottom: 4px;
    padding-bottom: 12px;
  }

  .dashboard-topbar {
    padding: 16px;
    border-radius: 18px;
  }

  .app-topbar::before,
  .app-topbar::after {
    border-radius: 0 0 18px 18px;
  }

  .menu-toggle,
  .sidebar-close {
    justify-content: center;
  }

  .hero-actions,
  .hero-button-row,
  .drive-chip-row,
  .photos-chip-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-action,
  .primary-link-button,
  .secondary-link-button,
  .primary-button,
  .secondary-button,
  .danger-button {
    width: 100%;
  }

  .marketing-actions {
    width: 100%;
  }

  .hero-card {
    padding: 18px;
  }

  .dashboard-hero,
  .dashboard-workspace-panel,
  .dashboard-summary-panel {
    padding: 18px;
  }

  .menu-toggle,
  .sidebar-close {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 12px;
  }

  .auth-panel,
  .auth-form-shell {
    border-radius: 22px;
  }

  .hero-visual {
    min-height: 180px;
  }

  .hero-orb-blue {
    right: 8px;
    width: 140px;
    height: 140px;
  }

  .hero-orb-red {
    left: 4px;
    width: 72px;
    height: 72px;
  }

  .hero-orb-amber {
    left: 16px;
    top: 34px;
    width: 48px;
    height: 48px;
  }

  .hero-storage-top strong {
    font-size: 20px;
  }

  .hero-storage-row,
  .summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-card-header h3 {
    font-size: 22px;
  }

  .search-input {
    width: 100%;
  }

  .footer-bottom-links {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
