:root {
  --bg-0: #091323;
  --bg-1: #10253f;
  --bg-2: #183858;
  --card: rgba(9, 19, 35, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --text: #ecf2f8;
  --muted: #adc2d6;
  --accent: #59d6ff;
  --accent-strong: #00aee9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.drag-selecting {
  user-select: none;
  cursor: crosshair;
}

body.dashboard-page {
  overflow-x: hidden;
  overflow-x: clip;
}

.admin-body,
.share-body {
  background: radial-gradient(circle at 20% 20%, var(--bg-2), var(--bg-0) 50%, #060d19);
  position: relative;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 80%);
}

.container {
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
  padding: 40px 0 72px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  line-height: 1.1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.75rem;
  margin: 0 0 10px;
  color: var(--accent);
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.brand-link {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
}

.brand-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.brand-logo {
  width: auto;
  height: auto;
  border-radius: 0;
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ffffff;
  background: none;
  border: 0;
  box-shadow: none;
}

.brand-logo::before {
  content: "\f0e7";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.67em;
  color: rgba(89, 214, 255, 0.55);
  text-shadow: 0 0 8px rgba(0, 174, 233, 0.55), 0 0 18px rgba(0, 174, 233, 0.35);
  pointer-events: none;
  z-index: 0;
}

.brand-logo > i {
  position: relative;
  display: inline-block;
  line-height: 1;
  z-index: 1;
}

.brand-link:hover .brand-logo,
.brand-link:focus-visible .brand-logo {
  animation: brand-logo-white-pulse 1050ms ease-in-out infinite;
}

.brand-link:hover .brand-logo::before,
.brand-link:focus-visible .brand-logo::before {
  animation: brand-logo-bolt-pulse 1050ms ease-in-out infinite;
}

@keyframes brand-logo-white-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.52)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.72)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.5));
  }
}

@keyframes brand-logo-bolt-pulse {
  0%,
  100% {
    color: rgba(156, 214, 238, 0.66);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4), 0 0 12px rgba(0, 174, 233, 0.24);
  }
  50% {
    color: rgba(218, 240, 252, 0.78);
    text-shadow: 0 0 9px rgba(255, 255, 255, 0.58), 0 0 18px rgba(255, 255, 255, 0.4);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.app-logo-heading {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-shadow: 0 0 8px rgba(0, 174, 233, 0.38), 0 0 18px rgba(0, 174, 233, 0.26);
}

.app-logo-brand {
  color: var(--accent);
  font-weight: 900;
}

.app-logo-drive {
  color: #fff;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .app-logo-brand,
  .app-logo-drive {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-size: 260% 100%;
    background-position: -220% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: logo-text-sheen 9s linear infinite;
  }

  .app-logo-brand {
    background-image: linear-gradient(110deg, #59d6ff 24%, #ecfbff 46%, #59d6ff 68%);
  }

  .app-logo-drive {
    background-image: linear-gradient(110deg, #f3fbff 26%, #ffffff 48%, #f3fbff 70%);
  }
}

@keyframes logo-text-sheen {
  0% {
    background-position: -220% 0;
  }
  100% {
    background-position: 220% 0;
  }
}

#tourTitle {
  margin-top: 16px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  display: none !important;
}

#tourSubtitle {
  margin-top: 10px;
  display: none !important;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  margin-top: 20px;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.path-label {
  margin: 16px 0 8px;
  font-weight: 600;
  color: #d4e3ef;
}

.path-box {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: #d7e8f3;
  word-break: break-all;
}

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

.share-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.share-actions .btn {
  width: 200px;
  white-space: nowrap;
  min-height: 40px;
  border-radius: 999px;
}

.folder-toolbar {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.folder-toolbar-panel {
  margin-top: 18px;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

button.btn {
  font: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #042030;
  border-color: rgba(0, 180, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: none;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.55;
  filter: none;
}

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

.error {
  color: #ffc7cf;
  margin: 0;
}

.tour-list {
  display: grid;
  gap: 14px;
}

.tour-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.tour-card-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.tour-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tour-link-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tour-link {
  flex: 1 1 450px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  padding: 9px 11px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.87rem;
}

.tour-download-history {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.tour-download-title {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: #d5e6f3;
}

.download-user-list {
  display: grid;
  gap: 8px;
}

.download-user {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
}

.download-user-summary {
  cursor: pointer;
  color: #d7e8f4;
  font-size: 0.88rem;
  font-weight: 600;
}

.download-event-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.download-event-item {
  color: #d7e8f3;
}

.download-event-header {
  margin: 0;
  color: #c7dae9;
  font-size: 0.85rem;
}

.download-file-list {
  margin: 6px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.download-file-list code {
  color: #bfe9ff;
  font-size: 0.8rem;
}

.gallery-grid {
  margin-top: 22px;
}

.folder-nav {
  margin-top: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  align-items: center;
  min-height: 40px;
}

.breadcrumb-link,
.breadcrumb-label,
.breadcrumb-current {
  color: #cfe2f1;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: inline-flex;
  align-items: center;
}

.breadcrumb-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.breadcrumb-current {
  color: var(--accent);
}

.breadcrumb-icon {
  margin-right: 6px;
  font-size: 0.9rem;
  line-height: 1;
}

.breadcrumb-icon-root {
  margin-right: 6px;
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
}

.breadcrumb-icon-root::before {
  content: "\f0e7";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.67em;
  color: rgba(89, 214, 255, 0.52);
  text-shadow: 0 0 4px rgba(0, 174, 233, 0.48), 0 0 9px rgba(0, 174, 233, 0.3);
  pointer-events: none;
  z-index: 0;
}

.breadcrumb-icon-root > i {
  position: relative;
  z-index: 1;
}

.breadcrumb-text {
  border-bottom: 1px solid transparent;
}

.breadcrumb-link:hover {
  color: #ffffff;
}

.breadcrumb-link:hover .breadcrumb-text {
  border-bottom-color: currentColor;
}

.breadcrumb-label .breadcrumb-text,
.breadcrumb-current .breadcrumb-text {
  border-bottom-color: transparent;
}

.breadcrumb-separator {
  color: #7c93a6;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
}

.folder-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.folder-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  user-select: none;
  -webkit-user-select: none;
}

.folder-title {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #dceaf6;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  user-select: none;
  -webkit-user-select: none;
}

.photo-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.folder-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #dceaf6;
  min-height: 0;
  padding: 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  min-width: 0;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.drive-folder-link {
  text-decoration: none;
  color: inherit;
}

.context-menu {
  position: fixed;
  z-index: 2000;
  min-width: 160px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 22, 36, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.context-menu-item {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dceaf6;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.context-menu-icon {
  width: 16px;
  text-align: center;
  color: #9bd7f0;
}

.context-menu-label {
  line-height: 1.2;
}

.context-menu-item:hover:not(:disabled) {
  background: rgba(125, 228, 255, 0.14);
}

.context-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.app-alert-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2600;
  width: min(420px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.app-alert {
  pointer-events: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 24, 39, 0.96);
  color: #e5eef7;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-alert.show {
  opacity: 1;
  transform: translateY(0);
}

.app-alert.error {
  border-color: rgba(255, 110, 130, 0.7);
  background: rgba(56, 18, 28, 0.96);
}

.app-alert-message {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  font-size: 0.94rem;
  word-break: break-word;
}

.app-alert-close {
  border: 0;
  background: transparent;
  color: inherit;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  font-size: 0.95rem;
  opacity: 0.8;
}

.app-alert-close:hover {
  opacity: 1;
}

.upload-progress-alert {
  display: grid;
  gap: 8px;
}

.upload-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-progress-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.upload-progress-cancel-btn {
  padding: 6px 10px;
  min-height: 30px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.upload-progress-cancel-btn:disabled {
  opacity: 0.7;
}

.upload-progress-detail {
  color: #c8d8e7;
  font-size: 0.85rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(130, 170, 200, 0.35);
  background: rgba(10, 22, 36, 0.86);
}

.upload-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #1f8fff 0%, #1bb4ff 48%, #63d0ff 100%);
  transition: width 180ms ease;
}

.upload-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.24) 0,
    rgba(255, 255, 255, 0.24) 10px,
    rgba(255, 255, 255, 0.06) 10px,
    rgba(255, 255, 255, 0.06) 20px
  );
  animation: upload-progress-stripes 900ms linear infinite;
}

@keyframes upload-progress-stripes {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(20px);
  }
}

.upload-progress-meta {
  color: #9fc0d8;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.share-link-modal {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.share-link-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.share-link-modal-panel {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 19, 31, 0.98);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  padding: 18px;
}

.share-link-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.share-link-modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.share-link-modal-close {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #dceaf6;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.share-link-modal-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.share-link-modal-row .tour-link {
  min-width: 0;
  flex: 1 1 auto;
}

.action-modal-panel {
  width: min(560px, calc(100vw - 28px));
}

.action-modal-message {
  margin: 2px 0 0;
}

.action-modal-form {
  margin-top: 12px;
}

.action-modal-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  color: var(--text);
  font-size: 0.95rem;
}

.action-modal-check input {
  margin: 0;
}

#dashboard-action-modal-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  color: #000000;
}

.action-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.details-modal-panel {
  width: min(700px, calc(100vw - 28px));
}

.details-list {
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.details-row {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(110px, 170px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.details-label {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.details-value {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}

@media (max-width: 640px) {
  .details-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.folder-card:hover {
  border-color: rgba(125, 228, 255, 0.6);
  background: rgba(125, 228, 255, 0.1);
}

.folder-card.active {
  background: linear-gradient(135deg, rgba(0, 174, 233, 0.24), rgba(89, 214, 255, 0.2));
  border-color: rgba(0, 180, 255, 0.55);
}

.folder-card.selected {
  border-color: #7de4ff;
  box-shadow: 0 0 0 2px rgba(125, 228, 255, 0.25);
}

.folder-card-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.folder-card-name {
  font-weight: 700;
  font-size: 1.08rem;
}

.folder-card-count {
  color: #b9cfdf;
  font-size: 0.92rem;
}

.folder-select-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
}

.photo-card.selected {
  border-color: #7de4ff;
  box-shadow: 0 0 0 2px rgba(125, 228, 255, 0.25);
}

.photo-card.cut-pending,
.folder-card.cut-pending {
  opacity: 0.58;
  filter: saturate(0.45);
}

.photo-card.cut-pending::after,
.folder-card.cut-pending::after {
  content: "CUT";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #061523;
  background: rgba(184, 223, 245, 0.92);
  border: 1px solid rgba(6, 21, 35, 0.35);
  border-radius: 999px;
  padding: 3px 8px;
  pointer-events: none;
}

.photo-card.drag-hit,
.folder-card.drag-hit {
  border-color: #7de4ff;
  box-shadow: 0 0 0 2px rgba(125, 228, 255, 0.42);
}

.breadcrumb-link.drag-hit .breadcrumb-text,
.breadcrumb-current.drag-hit .breadcrumb-text {
  border-bottom-color: #7de4ff;
}

.photo-card.drag-will-select,
.folder-card.drag-will-select {
  border-color: #7de4ff;
  box-shadow: 0 0 0 2px rgba(125, 228, 255, 0.55);
}

.photo-card.selected.drag-will-deselect,
.folder-card.selected.drag-will-deselect {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.photo-thumb-wrap {
  border: 0;
  width: 100%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  display: block;
}

.photo-thumb-wrap:disabled {
  cursor: default;
}

.photo-thumb {
  width: 100%;
  height: 205px;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

.raw-thumb {
  width: 100%;
  height: 205px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #24384f, #162131);
  color: #b6d0e7;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.raw-thumb-text-file {
  flex-direction: column;
  gap: 8px;
}

.raw-thumb-text-file i {
  font-size: 1.9rem;
  color: #d3e5f5;
}

.raw-thumb-text-file span {
  font-size: 0.86rem;
}

.photo-card-footer {
  padding: 10px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
}

.photo-card-actions,
.folder-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.photo-card-actions {
  margin-left: auto;
}

.folder-card-actions {
  margin-top: 2px;
}

.select-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-strong);
  cursor: pointer;
}

.photo-name {
  color: #d7e5f2;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.btn-mini {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.card-action-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
}

.card-action-btn i {
  pointer-events: none;
  font-size: 0.9rem;
}

.photo-download-btn:hover,
.folder-download-btn:hover,
.photo-open-btn:hover,
.folder-open-btn:hover {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-color: rgba(0, 180, 255, 0.5);
  color: #042030;
}

.card-action-btn:disabled,
.card-action-btn.disabled,
.card-action-btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.empty-message {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none !important;
}

.drag-marquee {
  position: fixed;
  z-index: 1400;
  pointer-events: none;
  border: 1px solid rgba(125, 228, 255, 0.9);
  background: rgba(89, 214, 255, 0.16);
  border-radius: 6px;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.viewer-layout {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  grid-template-rows: 1fr auto;
  align-items: center;
}

.viewer-stage {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 0 10px;
}

.viewer-media {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.viewer-active-image,
.viewer-active-video,
.viewer-active-text {
  max-width: min(1300px, 88vw);
  max-height: 72vh;
  display: block;
}

.viewer-active-image,
.viewer-active-video {
  object-fit: contain;
}

.viewer-active-text {
  width: min(1300px, 88vw);
  height: min(74vh, calc(100dvh - 250px));
  max-height: min(74vh, calc(100dvh - 250px));
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.96rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}

.viewer-active-text-editor {
  width: min(1300px, 88vw);
  height: min(74vh, calc(100dvh - 250px));
  max-height: min(74vh, calc(100dvh - 250px));
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.96rem;
  line-height: 1.45;
  resize: none;
  overflow: auto;
  outline: none;
}

.viewer-active-text-editor:focus {
  border-color: rgba(125, 228, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(125, 228, 255, 0.3);
}

.viewer-active-text-editor:disabled {
  opacity: 0.82;
}

.viewer-nav {
  align-self: center;
  justify-self: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 1.45rem;
  cursor: pointer;
}

.viewer-nav.left {
  grid-column: 1;
  grid-row: 1;
}

.viewer-nav.right {
  grid-column: 3;
  grid-row: 1;
}

.viewer-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.viewer-download {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 0.87rem;
  padding: 9px 12px;
}

.viewer-select-control {
  position: absolute;
  left: 170px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #f0f7ff;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.viewer-select-control input[type="checkbox"] {
  accent-color: var(--accent-strong);
  width: 15px;
  height: 15px;
}

.viewer-strip {
  grid-column: 1 / span 3;
  grid-row: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  justify-content: flex-start;
  padding: 12px 16px 18px;
  background: rgba(0, 0, 0, 0.64);
}

.viewer-thumb {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding: 0;
  width: 90px;
  height: 64px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  flex: 0 0 auto;
}

.viewer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer-thumb-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #24384f, #162131);
  color: #b6d0e7;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.photo-thumb,
.viewer-thumb video,
.viewer-thumb img {
  -webkit-user-drag: none;
}

.viewer-thumb.active {
  border-color: #7de4ff;
  box-shadow: 0 0 0 2px rgba(125, 228, 255, 0.45);
}

.viewer-thumb.selected {
  border-color: rgba(125, 228, 255, 0.7);
}

@media (max-width: 860px) {
  .folder-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .folder-nav {
    width: 100%;
    gap: 6px;
  }

  .share-actions {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .share-actions .btn {
    width: 100%;
  }

  .share-link-modal-row {
    flex-direction: column;
    align-items: stretch;
  }

  .share-link-modal-row .copy-icon-btn {
    width: 100% !important;
  }

  .viewer-layout {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }

  .viewer-stage {
    min-width: 0;
  }

  .viewer-active-image,
  .viewer-active-video,
  .viewer-active-text,
  .viewer-active-text-editor {
    max-width: calc(100vw - 116px);
    max-height: min(72vh, calc(100dvh - 220px));
  }

  .viewer-active-text,
  .viewer-active-text-editor {
    height: min(72vh, calc(100dvh - 220px));
  }
}

@media (max-width: 600px) {
  .folder-grid {
    grid-template-columns: 1fr;
  }

  .viewer-layout {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .viewer-nav {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .viewer-active-image,
  .viewer-active-video,
  .viewer-active-text,
  .viewer-active-text-editor {
    max-width: calc(100vw - 92px);
  }

  .viewer-active-text,
  .viewer-active-text-editor {
    height: min(68vh, calc(100dvh - 200px));
    max-height: min(68vh, calc(100dvh - 200px));
  }
}

[hidden] {
  display: none !important;
}

.auth-page,
.dashboard-page {
  background: radial-gradient(circle at 20% 20%, var(--bg-2), var(--bg-0) 50%, #060d19);
  position: relative;
}

.auth-shell {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 50px 0 90px;
  position: relative;
  z-index: 1;
}

.auth-card {
  margin-top: 0;
}

.auth-card .eyebrow {
  margin-bottom: 12px;
}

.auth-card h1 {
  margin: 0 0 14px;
}

.auth-card .stack {
  margin-top: 18px;
  gap: 14px;
}

.auth-card #auth-error {
  margin-top: 12px;
}

.auth-card .auth-switch {
  margin-top: 18px;
}

.auth-card .auth-switch a {
  color: #c9efff;
  font-weight: 600;
  text-decoration-color: rgba(201, 239, 255, 0.85);
  text-underline-offset: 2px;
}

.auth-card .auth-switch a:hover {
  color: #ffffff;
}

.dashboard-main {
  width: min(1220px, 100% - 40px);
  margin: 0 auto;
  padding: 36px 0 72px;
  position: relative;
  z-index: 1;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.sidebar-stack {
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.panel h2,
.panel h3,
.panel h4 {
  margin: 0 0 10px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

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

.panel input,
.panel select,
.auth-card input,
.auth-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  color: #000000;
}

.panel label,
.auth-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.plan-actions {
  display: grid;
  gap: 8px;
}

.plan-button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
}

.billing-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

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

.gallery-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.gallery-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.gallery-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-size: 0.82rem;
  color: #d7e8f3;
  background: rgba(255, 255, 255, 0.08);
}

.pill.expired {
  border-color: rgba(255, 142, 142, 0.6);
  background: rgba(196, 45, 64, 0.2);
  color: #ffd8dd;
}

.share-row,
.upload-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-link {
  flex: 1 1 450px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: #d8e7f2;
  padding: 9px 11px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.87rem;
}

.file-input {
  flex: 1 1 450px;
}

.qr-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-image {
  width: 170px;
  height: 170px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  padding: 8px;
}

.download-history {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.download-users {
  display: grid;
  gap: 8px;
}

.download-user {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
}

.download-user-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.event-list,
.file-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.viewer-caption {
  position: absolute;
  left: 170px;
  top: 20px;
  margin: 0;
  max-width: calc(100vw - 340px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

@media (max-width: 860px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: space-between;
    width: 100%;
  }

  .plan-button-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.account-menu-wrap {
  position: relative;
}

.account-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #041a2a, #0a2a41);
  color: #ffffff;
  border-color: #111;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  padding: 20px 20px;
  font-weight: 700;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
}

#owner-email,
#landing-owner-email {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.account-menu-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border: 1px solid rgba(0, 180, 255, 0.48);
  box-shadow: 0 6px 14px rgba(0, 173, 239, 0.2);
  color: #042030;
  line-height: 1;
  flex: 0 0 auto;
}

.account-menu-icon i {
  font-size: 0.76rem;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(6, 14, 24, 0.96), rgba(4, 9, 17, 0.98)),
    radial-gradient(circle at 12% 0%, rgba(0, 174, 233, 0.12), rgba(0, 174, 233, 0)),
    radial-gradient(circle at 100% 100%, rgba(255, 143, 64, 0.08), rgba(255, 143, 64, 0));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  padding: 0;
  z-index: 90;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.account-menu-item {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.account-menu-item + .account-menu-item {
  border-top: 1px solid var(--line);
}

.account-menu-item:hover {
  background: rgba(125, 228, 255, 0.16);
}

.account-menu-item-icon {
  width: 18px;
  text-align: center;
  color: #ffffff;
}

.billing-page-panel {
  max-width: none;
  width: 100%;
  padding: 22px;
  margin-top: 20px;
}

.legal-panel {
  max-width: 920px;
  margin: 28px auto 32px;
  padding: 28px;
  display: grid;
  gap: 14px;
}

.legal-panel h2,
.legal-panel h3 {
  margin: 0;
}

.legal-panel p {
  margin: 0;
  color: #d6ecf5;
  line-height: 1.7;
}

.landing-legal-links {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-legal-links a {
  color: #a9d6e8;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.landing-legal-links a:hover {
  color: #e6f8ff;
}

.billing-page-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.billing-page-head h2 {
  margin: 0;
}

.billing-page-head .muted {
  margin: 0;
}

.billing-usage-wrap {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.billing-usage-stack {
  display: grid;
  gap: 12px;
}

.billing-usage-block {
  display: grid;
  gap: 8px;
}

.billing-usage-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(235, 248, 255, 0.82);
}

.billing-usage-text {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fdff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72), 0 0 6px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}

.billing-usage-progress {
  position: relative;
  width: 100%;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), inset 0 -2px 8px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.billing-usage-progress::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background-image: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 8px,
      rgba(255, 255, 255, 0) 8px,
      rgba(255, 255, 255, 0) 16px
    );
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.billing-usage-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #42c9ff 0%, var(--accent) 35%, var(--accent-strong) 72%, #008fc4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 18px rgba(0, 174, 233, 0.34);
  transition: width 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.billing-usage-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18) 0 8px,
      rgba(255, 186, 73, 0.24) 8px 16px,
      rgba(255, 107, 107, 0.2) 16px 24px,
      rgba(98, 214, 255, 0.26) 24px 32px,
      rgba(110, 245, 198, 0.22) 32px 40px,
      rgba(175, 147, 255, 0.2) 40px 48px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  opacity: 0.52;
  animation: billing-usage-stripes 1.6s linear infinite;
}

.billing-usage-fill.is-warning {
  background: linear-gradient(90deg, #ffd65a 0%, #ffbf2e 40%, #ffab00 75%, #f18a00 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 20px rgba(255, 176, 0, 0.4);
}

.billing-usage-fill.is-warning::before {
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.2) 0 10px,
      rgba(126, 74, 0, 0.16) 10px 20px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.billing-usage-fill.is-critical {
  background: linear-gradient(90deg, #ff7a7a 0%, #ff5151 40%, #f93838 72%, #d81818 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 20px rgba(255, 70, 70, 0.42);
}

.billing-usage-fill.is-critical::before {
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16) 0 10px,
      rgba(111, 0, 0, 0.24) 10px 20px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.billing-usage-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.38) 48%, rgba(255, 255, 255, 0) 78%);
  transform: translateX(-140%);
  animation: billing-usage-sheen 2.8s ease-in-out infinite;
}

@keyframes billing-usage-stripes {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 0, 0 0;
  }
}

@keyframes billing-usage-sheen {
  0% {
    transform: translateX(-140%);
  }
  60%,
  100% {
    transform: translateX(140%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .billing-usage-fill::before,
  .billing-usage-fill::after {
    animation: none;
  }
}

.snapshot-mode .reveal,
.snapshot-mode .app-load-shell > *,
.snapshot-mode #dashboard-shell.app-load-shell > #dashboard-drive-area > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.snapshot-mode .app-logo-brand,
.snapshot-mode .app-logo-drive,
.snapshot-mode .brand-link:hover .brand-logo,
.snapshot-mode .brand-link:focus-visible .brand-logo,
.snapshot-mode .brand-link:hover .brand-logo::before,
.snapshot-mode .brand-link:focus-visible .brand-logo::before {
  animation: none !important;
}

.billing-section-title {
  margin: 18px 0 12px;
}

.app-navbar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 0;
}

.app-nav-link {
  text-decoration: none;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 14px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  line-height: 1.2;
}

.app-nav-link:last-child {
  border-right: 0;
}

.app-nav-link:hover {
  filter: brightness(1.06);
}

.app-nav-link.active {
  color: #042030;
  border-color: rgba(0, 180, 255, 0.5);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.dashboard-nav-panel {
  padding: 0;
  overflow: hidden;
}

.dashboard-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.dashboard-usage-wrap {
  margin: 0 0 14px;
}

.dashboard-usage-wrap .billing-usage-text {
  font-size: 14px;
}

.dashboard-download-row .folder-nav {
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
}

.dashboard-download-row .share-actions {
  flex: 0 0 auto;
}

.drive-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.drive-controls-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.drive-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(520px, 100%);
  flex: 1 1 340px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 16, 28, 0.86);
  padding: 0 11px;
}

.drive-search-icon {
  color: var(--muted);
  font-size: 13px;
}

.drive-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 9px 0;
  font-weight: 500;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.drive-search-input::placeholder {
  color: var(--muted);
}

.drive-search-input:focus {
  outline: none;
}

.drive-search-wrap:focus-within {
  outline: 2px solid rgba(117, 215, 255, 0.55);
  outline-offset: 1px;
}

.toolbar-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.toolbar-sort-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "IBM Plex Mono", Consolas, Monaco, monospace;
}

.toolbar-sort-select {
  min-width: 120px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 28, 0.86);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
}

.toolbar-sort-select:focus {
  outline: 2px solid rgba(117, 215, 255, 0.55);
  outline-offset: 1px;
}

.billing-shell .plan-actions {
  gap: 12px;
}

#billing-plan-actions {
  margin-bottom: 22px;
}

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

.billing-payments-empty {
  margin: 8px 0 0;
}

.billing-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.billing-payment-main {
  min-width: 0;
}

.billing-payment-main strong {
  display: block;
  line-height: 1.2;
}

.billing-payment-meta {
  margin: 4px 0 0;
}

.billing-payment-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.billing-payment-link {
  white-space: nowrap;
}

.billing-payment-complete {
  font-size: 0.86rem;
  white-space: nowrap;
}

.billing-tier-row {
  padding: 12px 14px;
  gap: 14px;
}

.billing-tier-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.billing-tier-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #042030;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border: 1px solid rgba(0, 180, 255, 0.48);
  box-shadow: 0 8px 18px rgba(0, 173, 239, 0.22);
  flex: 0 0 auto;
}

.billing-tier-copy {
  min-width: 0;
}

.billing-tier-copy strong {
  display: block;
  line-height: 1.2;
}

.billing-tier-meta {
  margin: 4px 0 0;
}

.billing-tier-row.current {
  border-color: rgba(125, 228, 255, 0.5);
  background: rgba(125, 228, 255, 0.08);
}

.billing-tier-row.pending {
  border-style: dashed;
  border-color: rgba(255, 207, 102, 0.52);
  background: rgba(255, 207, 102, 0.1);
}

.billing-tier-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.billing-tier-end-date {
  white-space: nowrap;
  font-size: 0.86rem;
}

.billing-shell .dashboard-nav-panel {
  margin-top: 18px;
}

.billing-shell .billing-page-panel {
  margin-top: 20px;
  padding: 22px;
}

.billing-shell .billing-page-head {
  gap: 8px;
  margin-bottom: 12px;
}

.billing-shell .plan-actions {
  gap: 12px;
}

.billing-shell .billing-tier-row {
  padding: 12px 14px;
  gap: 14px;
}

.billing-shell #billing-notice {
  margin-top: 0;
}

.billing-shell #billing-error {
  margin-top: 0;
}

.account-page-panel {
  max-width: none;
  width: 100%;
  padding: 22px;
  margin-top: 20px;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-settings-card {
  margin-top: 0;
  padding: 16px;
}

.account-settings-card .billing-section-title {
  margin-top: 0;
}

.account-settings-form .btn {
  width: 100%;
}

.landing-shell {
  width: min(1220px, 100% - 40px);
  padding-top: 56px;
  padding-bottom: 0;
  font-family: "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
}

.landing-topbar {
  align-items: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 40;
}

.landing-auth-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.landing-account-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-header-actions .btn,
.landing-account-actions .btn {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.account-drive-btn {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: var(--line);
  gap: 8px;
  padding: 10px 14px;
}

.account-drive-btn:hover {
  background: rgba(125, 228, 255, 0.16);
  border-color: rgba(125, 228, 255, 0.35);
}

.account-header-actions .account-menu-btn {
  padding: 10px 14px;
}

#landing-account-actions .account-drive-btn {
  font-weight: 700;
}

body.landing-page {
  overflow-x: hidden;
}

body.landing-page::before,
body.landing-page::after {
  content: "";
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}

body.landing-page::before {
  top: -160px;
  left: -160px;
  background: radial-gradient(circle, rgba(0, 206, 255, 0.38), rgba(0, 206, 255, 0));
}

body.landing-page::after {
  right: -190px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(255, 144, 54, 0.34), rgba(255, 144, 54, 0));
}

.landing-page .bg-overlay {
  opacity: 0.5;
}

.landing-hero-panel,
#dashboard-download-panel,
#guest-download-toolbar-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(17, 39, 62, 0.88), rgba(8, 18, 30, 0.88));
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

.landing-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.landing-hero-main {
  min-width: 0;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin: 0 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(117, 215, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(6, 14, 24, 0.94), rgba(4, 9, 17, 0.98)),
    radial-gradient(circle at 12% 0%, rgba(0, 174, 233, 0.12), rgba(0, 174, 233, 0));
  color: #d8f2ff;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", Consolas, Monaco, monospace;
}

.landing-title {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.landing-lead {
  margin-top: 20px;
  max-width: 620px;
  color: #c8deef;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}

.landing-cta-row {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-benefits {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.landing-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6e7f5;
  font-size: 0.96rem;
}

.landing-benefits i {
  color: #68dcff;
}

.landing-preview {
  min-width: 0;
  align-self: start;
}

.landing-preview-window {
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(7, 15, 24, 0.82);
}

.landing-preview-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.landing-preview-top .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.landing-preview-path {
  margin-left: 8px;
  color: #bde7ff;
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", Consolas, Monaco, monospace;
}

.landing-preview-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.landing-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.86rem;
}

.landing-preview-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.landing-preview-row.folder {
  background: rgba(110, 204, 255, 0.12);
}

.landing-preview-row.file {
  background: rgba(255, 255, 255, 0.04);
}

.landing-preview-row small {
  color: #9cb4c8;
}

.landing-preview-meter {
  margin-top: 4px;
  position: relative;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.landing-preview-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  background: linear-gradient(90deg, #47d8ff 0%, #00aee9 60%, #0095cc 100%);
  box-shadow: 0 0 20px rgba(71, 216, 255, 0.35);
}

.landing-preview-meter span {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.52);
}

.landing-content-band {
  margin-top: 56px;
  margin-bottom: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border: 1px solid rgba(117, 215, 255, 0.18);
  border-radius: 0;
  padding: 52px max(20px, calc((100vw - 1220px) / 2 + 22px)) 80px;
  background:
    linear-gradient(180deg, rgba(6, 14, 24, 0.9), rgba(4, 9, 17, 0.95)),
    radial-gradient(circle at 12% 0%, rgba(0, 174, 233, 0.18), rgba(0, 174, 233, 0)),
    radial-gradient(circle at 100% 100%, rgba(255, 143, 64, 0.12), rgba(255, 143, 64, 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 44px rgba(0, 0, 0, 0.34);
}

.landing-content-band > .landing-section:first-child {
  margin-top: 0;
}

.landing-section {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 24px;
  background: rgba(8, 17, 28, 0.78);
}

.landing-section h3 {
  margin: 0 0 30px;
  font-size: 1.25rem;
}

.landing-feature-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-feature-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.landing-feature-card i {
  font-size: 1.2rem;
  color: #7adfff;
}

.landing-feature-card h4 {
  margin: 10px 0 6px;
  font-size: 0.99rem;
}

.landing-feature-card p {
  margin: 0;
  color: #b4c8d9;
  font-size: 0.89rem;
  line-height: 1.45;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.landing-pricing-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 280px;
}

.landing-pricing-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-pricing-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #042030;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border: 1px solid rgba(0, 180, 255, 0.48);
  box-shadow: 0 8px 18px rgba(0, 173, 239, 0.22);
}

.landing-pricing-card.featured {
  border-color: rgba(104, 220, 255, 0.5);
  background:
    linear-gradient(160deg, rgba(104, 220, 255, 0.12), rgba(104, 220, 255, 0)),
    rgba(255, 255, 255, 0.04);
}

.landing-pricing-badge {
  margin: 0;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(104, 220, 255, 0.6);
  background: rgba(104, 220, 255, 0.14);
  color: #dff6ff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", Consolas, Monaco, monospace;
}

.landing-pricing-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.landing-pricing-price {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
}

.landing-pricing-price span {
  margin-left: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b6cadb;
}

.landing-pricing-list {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: grid;
  gap: 7px;
}

.landing-pricing-list li {
  color: #c8d9e7;
  font-size: 0.9rem;
}

.landing-pricing-card .btn {
  width: 100%;
  min-height: 44px;
}

.landing-final-cta {
  margin-top: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(120deg, rgba(0, 174, 233, 0.16), rgba(0, 174, 233, 0)),
    linear-gradient(180deg, rgba(12, 27, 43, 0.9), rgba(8, 16, 26, 0.9));
  padding: 30px 24px;
  text-align: center;
}

.landing-final-cta h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.landing-final-cta .landing-cta-row {
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: landing-fade-up 520ms ease forwards;
}

.reveal.d1 { animation-delay: 70ms; }
.reveal.d2 { animation-delay: 130ms; }
.reveal.d3 { animation-delay: 180ms; }
.reveal.d4 { animation-delay: 240ms; }
.reveal.d5 { animation-delay: 300ms; }
.reveal.d6 { animation-delay: 360ms; }

.app-load-shell > * {
  opacity: 0;
  transform: translateY(10px);
  animation: landing-fade-up 520ms ease forwards;
}

.app-load-shell > *:nth-child(1) { animation-delay: 70ms; }
.app-load-shell > *:nth-child(2) { animation-delay: 130ms; }
.app-load-shell > *:nth-child(3) { animation-delay: 180ms; }
.app-load-shell > *:nth-child(4) { animation-delay: 240ms; }
.app-load-shell > *:nth-child(5) { animation-delay: 300ms; }
.app-load-shell > *:nth-child(6) { animation-delay: 360ms; }

#dashboard-shell.app-load-shell > #dashboard-drive-area {
  opacity: 1;
  transform: none;
  animation: none;
}

#dashboard-shell.app-load-shell > #dashboard-drive-area > * {
  opacity: 0;
  transform: translateY(10px);
  animation: landing-fade-up 520ms ease forwards;
}

#dashboard-shell.app-load-shell > #dashboard-drive-area > *:nth-child(1) { animation-delay: 180ms; }
#dashboard-shell.app-load-shell > #dashboard-drive-area > *:nth-child(2) { animation-delay: 240ms; }
#dashboard-shell.app-load-shell > #dashboard-drive-area > *:nth-child(3) { animation-delay: 300ms; }
#dashboard-shell.app-load-shell > #dashboard-drive-area > *:nth-child(4) { animation-delay: 360ms; }
#dashboard-shell.app-load-shell > #dashboard-drive-area > *:nth-child(5) { animation-delay: 420ms; }
#dashboard-shell.app-load-shell > #dashboard-drive-area > *:nth-child(6) { animation-delay: 480ms; }

@keyframes landing-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .account-menu {
    left: 0;
    right: auto;
    width: min(280px, 100%);
  }

  .billing-shell .billing-page-panel {
    margin-top: 20px;
    padding: 22px;
  }

  .account-settings-grid {
    grid-template-columns: 1fr;
  }

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

  .landing-feature-grid,
  .landing-pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-content-band {
    padding: 48px 20px;
  }

  .landing-auth-actions .btn,
  .landing-account-actions .btn,
  .landing-cta-row .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .app-load-shell > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  #dashboard-shell.app-load-shell > #dashboard-drive-area > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .app-logo-brand,
  .app-logo-drive {
    animation: none;
  }

  .brand-link:hover .brand-logo,
  .brand-link:focus-visible .brand-logo,
  .brand-link:hover .brand-logo::before,
  .brand-link:focus-visible .brand-logo::before {
    animation: none;
  }
}

.dashboard-container {
  width: min(1220px, 100% - 40px);
  padding-top: 56px;
  padding-bottom: 72px;
}

#guest-shell.share-container {
  width: min(1220px, 100% - 40px);
  min-height: 100dvh;
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
}

#guest-shell > .topbar {
  margin-bottom: 56px;
  align-items: center;
}

#guest-shell > #guest-download-toolbar-panel,
#guest-shell > #guest-password-panel {
  margin-top: 0;
}

#dashboard-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  row-gap: 0;
}

#dashboard-shell > .landing-topbar {
  margin-bottom: 56px;
  font-family: "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
}

#dashboard-shell.dashboard-container {
  padding-top: 56px;
  padding-bottom: 0;
}

#dashboard-shell > .dashboard-nav-panel,
#dashboard-shell > #dashboard-download-panel,
#dashboard-shell > #dashboard-drive-area {
  margin-top: 0;
}

#dashboard-shell > #dashboard-drive-area {
  margin-top: 56px;
}

#dashboard-drive-area {
  flex: 1 1 auto;
  margin-top: 0;
  margin-bottom: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border: 1px solid rgba(117, 215, 255, 0.18);
  border-radius: 0;
  padding: 34px max(20px, calc((100vw - 1220px) / 2)) 56px;
  background:
    linear-gradient(180deg, rgba(6, 14, 24, 0.9), rgba(4, 9, 17, 0.95)),
    radial-gradient(circle at 12% 0%, rgba(0, 174, 233, 0.18), rgba(0, 174, 233, 0)),
    radial-gradient(circle at 100% 100%, rgba(255, 143, 64, 0.12), rgba(255, 143, 64, 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 44px rgba(0, 0, 0, 0.34);
}

#dashboard-status {
  display: none;
}

.dashboard-file-grid {
  min-height: 220px;
}

#dashboard-grid.drag-hit {
  border-radius: 14px;
  min-height: 220px;
  box-shadow: 0 0 0 2px rgba(125, 228, 255, 0.45);
}

#dashboard-drive-area.drag-hit {
  border-radius: 0;
  box-shadow: 0 0 0 2px rgba(125, 228, 255, 0.45);
}

.folder-delete-btn,
.photo-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #f8dde2;
  font-size: 1rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.folder-delete-btn:hover,
.photo-delete-btn:hover {
  background: rgba(182, 39, 64, 0.35);
  border-color: rgba(255, 120, 140, 0.7);
  color: #ffe6eb;
}

.folder-delete-btn i,
.photo-delete-btn i {
  pointer-events: none;
  font-size: 0.85rem;
}

/* Keep dashboard breadcrumb + link + copy in one row */
.dashboard-page .folder-toolbar {
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
}

.dashboard-page .folder-nav {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.dashboard-page .share-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  flex-direction: row !important;
  width: auto;
  justify-content: flex-end;
}

.dashboard-page .share-actions .tour-link {
  flex: 0 1 980px;
  min-width: 420px;
  max-width: 980px;
}

.dashboard-page .dashboard-link-actions .btn {
  width: auto !important;
}

.dashboard-download-actions {
  justify-content: flex-end;
}

.dashboard-page .dashboard-download-actions .btn {
  width: 200px;
}

.copy-icon-btn {
  min-width: 42px;
  width: 42px !important;
  padding-left: 0;
  padding-right: 0;
  font-size: 1rem;
}

.copy-icon-btn i {
  pointer-events: none;
}

.dashboard-page .viewer-caption {
  left: 320px;
  max-width: calc(100vw - 490px);
}

.share-body .guest-toolbar {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
}

.share-body .topbar {
  align-items: center;
  gap: 28px;
}

.share-body .guest-top-share-actions {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  align-self: center;
  margin-left: 20px;
}

.share-body .guest-top-share-actions .tour-link {
  flex: 0 1 980px;
  min-width: 420px;
  max-width: 980px;
}

.share-body .guest-top-share-actions .btn {
  width: auto !important;
}

.share-body .guest-link-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  width: auto;
  justify-content: flex-end;
}

.share-body .guest-link-actions .tour-link {
  flex: 0 1 980px;
  min-width: 420px;
  max-width: 980px;
}

.share-body .guest-link-actions .btn {
  width: auto !important;
}

.share-body .guest-download-actions {
  justify-content: flex-end;
}

#guest-drive-controls {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .dashboard-download-row {
    flex-wrap: wrap;
  }

  #dashboard-drive-area {
    padding: 16px 20px;
  }

  .dashboard-download-row .folder-nav {
    width: 100%;
    flex: 1 1 100%;
  }

  .toolbar-sort-wrap {
    order: 2;
  }

  .drive-controls-row {
    align-items: stretch;
  }

  .drive-controls-actions {
    width: 100%;
    justify-content: space-between;
  }

  .share-body .topbar {
    gap: 12px;
  }

  .share-body .guest-top-share-actions {
    margin-left: 0;
  }

  .share-body .guest-top-share-actions .tour-link {
    min-width: 0;
    flex: 1 1 auto;
    max-width: none;
  }
}
