* { margin: 0; padding: 0; box-sizing: border-box; }
details[open] > summary span:first-child { transform: rotate(90deg); display: inline-block; }
#archive-ctx-menu button:hover { background: rgba(255,255,255,0.08) !important; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #0F172A;
  height: 100vh;
  overflow: hidden;
}
body.dark {
  background: #0B1020;
  color: #E5E7EB;
}
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; }
body.dark .custom-scrollbar::-webkit-scrollbar-track { background: #1f2937; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
body.dark .custom-scrollbar::-webkit-scrollbar-thumb { background: #475569; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
body.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #64748B; }

/* Header */
header {
  height: 48px;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 50;
  position: relative;
}
body.desktop-mode header {
  /* standart OS pencere çerçevesi kullanılıyor */
}
body.desktop-mode .web-only { display: none !important; }
body.dark header {
  background: #0f172a;
  border-bottom-color: #1f2937;
}

/* First Run Wizard Overlay */
.first-run-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.first-run-overlay.visible { opacity: 1; }
.first-run-card {
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 90%;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.first-run-overlay.visible .first-run-card { transform: scale(1); }
body.dark .first-run-card { background: #1e293b; }
.first-run-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #2546A9, #1E3A8A);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 28px;
}
.first-run-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
body.dark .first-run-card h2 { color: #f1f5f9; }
.first-run-card p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 28px;
}
body.dark .first-run-card p { color: #94A3B8; }
.first-run-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.first-run-btn {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.first-run-btn-primary {
  background: linear-gradient(135deg, #2546A9, #1E3A8A);
  color: #fff;
}
.first-run-btn-primary:hover { box-shadow: 0 4px 16px rgba(37,70,169,0.4); }
.first-run-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}
body.dark .first-run-btn-secondary { background: #334155; color: #94A3B8; }
.first-run-btn-secondary:hover { background: #e2e8f0; }
body.dark .first-run-btn-secondary:hover { background: #475569; }
.first-run-btn-text {
  background: transparent;
  color: #94A3B8;
}
.first-run-btn-text:hover { color: #64748B; }
body.dark .first-run-btn-text:hover { color: #94A3B8; }
/* Multi-step wizard */
.first-run-wizard-card { max-width: 520px; }
.first-run-wizard-steps { position: relative; min-height: 200px; }
.first-run-wizard-step { display: none; animation: firstRunFade 0.3s ease; }
.first-run-wizard-step.active { display: block; }
@keyframes firstRunFade { from { opacity: 0; } to { opacity: 1; } }
.first-run-wizard-progress { display: flex; gap: 6px; justify-content: center; margin: 20px 0 16px; }
.first-run-wizard-progress span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; transition: background 0.2s; }
body.dark .first-run-wizard-progress span { background: #475569; }
.first-run-wizard-progress span.active { background: #2546A9; transform: scale(1.2); }
body.dark .first-run-wizard-progress span.active { background: #3B82F6; }
.first-run-wizard-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid #e2e8f0; }
body.dark .first-run-wizard-nav { border-top-color: #334155; }
.first-run-wizard-nav-buttons { display: flex; gap: 8px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-combo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-gaus {
  font-family: 'IM Fell English', serif;
  font-size: 24px;
  color: #a0522d;
  text-shadow: 1px 1px 0px #8b4513, 1px 1px 3px rgba(0,0,0,0.2);
  line-height: 1;
}
.brand-divider {
  width: 1.5px;
  height: 24px;
  background: linear-gradient(180deg, rgba(160,82,45,0) 0%, #a0522d 20%, #6b5a4a 50%, #1E3A8A 80%, rgba(30,58,138,0) 100%);
  border-radius: 1px;
}
.brand-points{
  font-family:'Reem Kufi',sans-serif;
  font-weight:700;
  font-size:14px;
  letter-spacing:.5px;
  color:#111111; /* piano black */
  line-height:1;
}
body.dark .brand-points{
  background:#E5E7EB; /* koyu temada okunurluk için zemin */
  padding:2px 8px;
  border-radius:999px;
}
.brand-sub {
  font-size: 11px;
  color: #64748B;
  margin-left: 8px;
}
.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.20);
  color: #92400E;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.dark .brand-sub {
  color: #94A3B8;
}
body.dark .beta-badge {
  color: #FDE68A;
}
.header-credit {
  font-size: 11px;
  color: #64748B;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: color 0.2s;
}
.header-credit:hover {
  color: #a0522d;
}
body.dark .header-credit {
  color: #94A3B8;
}
body.dark .header-credit:hover {
  color: #d4a574;
}

/* Credits Modal */
.credits-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.credits-overlay.visible {
  display: flex;
  opacity: 1;
}
.credits-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.credits-overlay.visible .credits-modal {
  transform: scale(1);
}
body.dark .credits-modal {
  background: #1e293b;
}
.credits-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.dark .credits-header {
  border-bottom-color: #334155;
}
.credits-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
body.dark .credits-header h2 {
  color: #f1f5f9;
}
.credits-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
}
.credits-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
body.dark .credits-close {
  background: #334155;
  color: #94a3b8;
}
body.dark .credits-close:hover {
  background: #475569;
  color: #f1f5f9;
}
.credits-body {
  padding: 20px 28px 28px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}
.credits-section {
  margin-bottom: 24px;
}
.credits-section:last-child {
  margin-bottom: 0;
}
.credits-section h3 {
  font-size: 13px;
  font-weight: 700;
  color: #a0522d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}
body.dark .credits-section h3 {
  color: #d4a574;
}
.credits-item {
  margin-bottom: 12px;
}
.credits-item:last-child {
  margin-bottom: 0;
}
.credits-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 2px 0;
}
body.dark .credits-item-title {
  color: #f1f5f9;
}
.credits-item-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
body.dark .credits-item-desc {
  color: #94a3b8;
}
.credits-item-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 12px;
}
.credits-item-link:hover {
  text-decoration: underline;
}
.credits-libs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.credits-lib {
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
}
body.dark .credits-lib {
  background: #0f172a;
  color: #94a3b8;
}
.credits-lib strong {
  color: #334155;
  font-weight: 600;
}
body.dark .credits-lib strong {
  color: #e2e8f0;
}
.header-user-panel {
  font-size: 11px;
  color: #64748B;
  text-decoration: none;
  cursor: pointer;
}
.header-user-panel:hover {
  color: #0F172A;
  text-decoration: none;
}
body.dark .header-user-panel {
  color: #94A3B8;
}
body.dark .header-user-panel:hover {
  color: #F1F5F9;
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-logout {
  background: transparent;
  border: 1px solid #E5E7EB;
  color: #64748B;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-logout:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
}
.btn-cloud-header {
  background: transparent;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 8px;
}
.btn-cloud-header:hover { background: #f1f5f9; border-color: #94a3b8; }
body.dark .btn-cloud-header { color: #94a3b8; border-color: #475569; }
body.dark .btn-cloud-header:hover { background: rgba(255,255,255,0.06); }
.btn-proje-ac {
  background: transparent;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-proje-ac:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
body.dark .btn-proje-ac {
  color: #94a3b8;
  border-color: #475569;
}
body.dark .btn-proje-ac:hover {
  background: rgba(255,255,255,0.06);
}
.btn-archive-map-toggle-active {
  border-color: #2546A9 !important;
  color: #2546A9 !important;
  background: rgba(37, 70, 169, 0.14) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow:
    inset 0 3px 8px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 6px rgba(37, 70, 169, 0.22),
    0 0 0 1px rgba(37, 70, 169, 0.12) !important;
}
body.dark .btn-archive-map-toggle-active {
  border-color: #60a5fa !important;
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.18) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow:
    inset 0 4px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(96, 165, 250, 0.2) !important;
}
/* Harita açık: gömülü buton + gölge; yazı puntosu sabit */
.btn-archive-map-toggle.archive-map-toggle-active {
  transform: scale(0.97) translateY(1px);
}
.btn-archive-map-toggle.archive-map-toggle-active:active {
  transform: scale(0.94) translateY(2px);
  box-shadow:
    inset 0 5px 14px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 3px rgba(37, 70, 169, 0.18) !important;
}
body.dark .btn-archive-map-toggle.archive-map-toggle-active:active {
  box-shadow:
    inset 0 6px 16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.4) !important;
}
.btn-archive-map-toggle {
  font-size: 12px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.2s, border-color 0.2s, color 0.2s;
  touch-action: manipulation;
}
.btn-archive-map-toggle:active:not(.archive-map-toggle-active) {
  transform: scale(0.96) translateY(1px);
  box-shadow:
    inset 0 4px 12px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
body.dark .btn-archive-map-toggle:active:not(.archive-map-toggle-active) {
  box-shadow:
    inset 0 5px 14px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.btn-proje-olustur {
  background: #2546A9;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-proje-olustur:hover {
  background: #1E3A8A;
}
body.dark .btn-proje-olustur {
  background: #3B82F6;
}
body.dark .btn-proje-olustur:hover {
  background: #2563EB;
}
body.dark .btn-logout {
  border-color: #475569;
  color: #94A3B8;
}
body.dark .btn-logout:hover {
  background: #1e293b;
  color: #F1F5F9;
  border-color: #64748B;
}

/* Genel erişim landing: arşiv paneli yok, tam genişlik hero */
body.gaus-public-landing #archive-sidebar {
  display: none !important;
}
body.gaus-public-landing #btn-archive-map-toggle {
  display: none !important;
}

/* Ziyaretçi (gauspoints): arşiv şeridi JS yüklenmeden önce gizlensin — “önce arşiv sonra login” flaşı biter */
html.gaus-landing-host:not(.gaus-landing-unlock) #archive-sidebar,
html.gaus-landing-host:not(.gaus-landing-unlock) #btn-archive-map-toggle {
  display: none !important;
}

/* Main Layout */
main {
  display: flex;
  height: calc(100vh - 48px);
  overflow: hidden;
}

/* Preview Section */
#preview-section {
  flex: 1;
  position: relative;
  background: #0a0e1a;
}
.preview-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.preview-bg.video-refresh-pulse {
  transform: translateZ(0);
}
.preview-bg video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: none;
}
.preview-bg video.active {
  opacity: 1;
}
.preview-bg img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}
.preview-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}

/* Video location indicator */
.video-location {
  position: absolute;
  top: 20px; left: 24px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.video-location.visible {
  opacity: 1;
  transform: translateY(0);
}
.video-location-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3B82F6;
  box-shadow: 0 0 8px rgba(59,130,246,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
.video-location-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Video progress pips */
.video-pips {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 12;
  display: flex;
  gap: 6px;
}
.video-pip {
  width: 20px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
  transition: background 0.3s ease;
}
.video-pip.active { background: rgba(255,255,255,0.15); }
.video-pip-fill {
  width: 0%; height: 100%;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  transition: none;
}
.video-pip.active .video-pip-fill {
  animation: pip-progress var(--pip-duration, 16s) linear forwards;
}
@keyframes pip-progress {
  from { width: 0%; }
  to { width: 100%; }
}
.video-pip.done .video-pip-fill { width: 100%; background: rgba(255,255,255,0.3); }

.preview-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 40px;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
}
.preview-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(40px) saturate(1.2);
  -webkit-backdrop-filter: blur(40px) saturate(1.2);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.year-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(37,70,169,0.8);
  color: rgba(255,255,255,0.9);
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.preview-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.5px;
}
.preview-description {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.preview-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 20px;
}
.tech-section h4 {
  font-size: 10px;
  font-weight: 700;
  color: rgba(96,165,250,0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tech-section h4 .material-symbols-outlined {
  font-size: 13px;
}
.tech-row {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tech-row:last-child {
  border-bottom: none;
}
.tech-label {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 500;
}
.tech-value {
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-variant-numeric: tabular-nums;
}
.preview-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}
.btn-open {
  background: #2546A9;
  color: #fff;
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}
.btn-open:hover {
  background: #1E3A8A;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,70,169,0.4);
}
.data-type {
  padding-left: 4px;
}
.data-type-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
}
.data-type-value {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

/* Sidebar */
aside {
  width: 420px;
  background: #fff;
  border-left: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
}
body.dark aside {
  background: #0f172a;
  border-left-color: #1f2937;
}
.sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid #E5E7EB;
  background: #F8FAFC;
}
body.dark .sidebar-header {
  border-bottom-color: #1f2937;
  background: #1e293b;
}
.sidebar-header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.sidebar-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}
body.dark .sidebar-header h3 {
  color: #E5E7EB;
}
.archive-sidebar-width-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.archive-sidebar-width-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
body.dark .archive-sidebar-width-toggle {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}
body.dark .archive-sidebar-width-toggle:hover {
  background: #1e293b;
  border-color: #475569;
}
/* Haritada panel aç/kapa yalnız yüzen düğmede; başlık oku gizli kalır */
.archive-sidebar-width-toggle .material-symbols-outlined {
  font-size: 20px;
}
.sidebar-header p {
  display: none;
}
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-footer-note {
  padding: 12px 16px;
  border-top: 1px solid #E5E7EB;
  background: #F8FAFC;
  display: none;
}
.sidebar-controls {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}
.sidebar-search {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: #334155;
  outline: none;
}
body.dark .sidebar-search {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #e2e8f0;
}
.sidebar-search::placeholder { color: #94a3b8; }
.sidebar-cloud-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.sidebar-cloud-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
.sidebar-sort {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  color: #64748b;
  outline: none;
  cursor: pointer;
}
body.dark .sidebar-sort {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #94a3b8;
}
.license-badge {
  position: fixed;
  bottom: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  cursor: pointer;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  z-index: 100;
  transition: box-shadow 0.2s;
}
.license-badge:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.license-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.license-badge-email {
  font-size: 11px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.dark .license-badge-email {
  color: #94a3b8;
}
.license-badge-count {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  margin-left: 4px;
  flex-shrink: 0;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.share-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
}
.share-modal {
  background: #fff; border-radius: 14px; width: 400px; max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}
body.dark .share-modal { background: #1e293b; }
.share-modal-header {
  padding: 14px 20px 0; display: flex; justify-content: space-between; align-items: center;
}
.share-modal-header h3 { font-size: 14px; font-weight: 700; color: #1e293b; margin: 0; }
body.dark .share-modal-header h3 { color: #e2e8f0; }
.share-modal-body { padding: 12px 20px 18px; }
.share-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid #cbd5e1;
  border-radius: 10px; font-size: 14px; outline: none; box-sizing: border-box;
  background: transparent; color: #1e293b;
}
body.dark .share-input { border-color: #334155; color: #e2e8f0; background: #0f172a; }
.share-input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.share-file-info {
  padding: 10px 14px; background: #f0f9ff; border-radius: 10px;
  font-size: 12px; color: #334155; margin-bottom: 14px; line-height: 1.6;
}
body.dark .share-file-info { background: #0f172a; color: #cbd5e1; }
.share-progress-bar {
  height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 12px;
}
.share-progress-fill {
  height: 100%; background: linear-gradient(90deg, #3B82F6, #2563EB);
  border-radius: 3px; width: 0; transition: width 0.3s;
}
.shared-panel {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
}
.shared-panel-card {
  background: #fff; border-radius: 16px; width: 560px; max-width: 95vw; max-height: 80vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25); display: flex; flex-direction: column;
}
body.dark .shared-panel-card { background: #1e293b; }
.shared-panel-header {
  padding: 20px 24px; border-bottom: 1px solid #e2e8f0;
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
body.dark .shared-panel-header { border-color: #334155; }
.shared-panel-header h3 { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0; }
body.dark .shared-panel-header h3 { color: #e2e8f0; }
.shared-panel-body {
  padding: 16px 24px; overflow-y: auto; flex: 1;
}
.shared-item {
  padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px;
  margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start;
}
body.dark .shared-item { border-color: #334155; }
.shared-item.expired { opacity: 0.5; }
.shared-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.dark .shared-item-icon { background: linear-gradient(135deg, #1e3a5f, #1e40af); }
.shared-item-info { flex: 1; min-width: 0; }
.shared-item-name { font-size: 13px; font-weight: 600; color: #1e293b; word-break: break-all; }
body.dark .shared-item-name { color: #e2e8f0; }
.shared-item-meta { font-size: 11px; color: #64748b; margin-top: 2px; }
body.dark .shared-item-meta { color: #94a3b8; }
.shared-item-actions { display: flex; gap: 6px; flex-shrink: 0; align-self: center; }
.shared-item-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.2s;
}
.shared-item-btn.primary { background: #3B82F6; color: #fff; }
.shared-item-btn.primary:hover { background: #2563EB; }
.shared-item-btn.disabled { background: #e2e8f0; color: #94a3b8; cursor: default; }
.sidebar-footer-note-text {
  font-size: 11px;
  color: #64748B;
  text-align: center;
}
body.dark .sidebar-footer-note-text {
  color: #94A3B8;
}
/* Explorer Tree */
.tree-node{user-select:none;}
.tree-folder{margin-bottom:0;}
.tree-toggle{display:flex;align-items:center;gap:4px;padding:3px 4px;cursor:pointer;border:none;background:transparent;width:100%;text-align:left;border-radius:4px;transition:background .15s;}
.tree-toggle:hover{background:#F1F5F9;}
body.dark .tree-toggle:hover{background:#1e293b;}
.tree-chevron{width:14px;height:14px;flex-shrink:0;transition:transform .15s;color:#94a3b8;}
.tree-node.open > .tree-toggle .tree-chevron{transform:rotate(90deg);}
.tree-folder-icon{width:16px;height:16px;flex-shrink:0;color:#f59e0b;}
.tree-node.open > .tree-toggle .tree-folder-icon{color:#d97706;}
.tree-folder-name{font-size:12px;font-weight:600;color:#1e293b;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.dark .tree-folder-name{color:#e2e8f0;}
.tree-count{font-size:9px;color:#94a3b8;font-weight:400;margin-left:auto;padding-right:4px;}
.tree-children{margin-left:12px;border-left:1px solid #e2e8f0;padding-left:4px;display:none;}
.tree-node.open > .tree-children{display:block;}
body.dark .tree-children{border-left-color:#334155;}
.tree-file{display:flex;align-items:center;gap:0;padding:2px 4px 2px 0;cursor:default;border:2px solid transparent;border-radius:5px;transition:all .15s;background:transparent;}
.tree-file:hover{background:#F1F5F9;border-color:#E2E8F0;}
body.dark .tree-file:hover{background:#1e293b;border-color:#334155;}
.tree-file.active{background:#EEF2FF;border-color:#2546A9;}
body.dark .tree-file.active{background:#1e3a8a40;border-color:#3B82F6;}
.tree-chevron-btn{display:flex;align-items:center;justify-content:center;width:22px;height:22px;flex-shrink:0;cursor:pointer;border-radius:3px;transition:background .12s;}
.tree-chevron-btn:hover{background:rgba(0,0,0,.08);}
body.dark .tree-chevron-btn:hover{background:rgba(255,255,255,.08);}
.tree-file-body{display:flex;align-items:center;gap:6px;flex:1;min-width:0;cursor:pointer;padding:2px 4px;border-radius:4px;}
.tree-file-icon{width:16px;height:16px;flex-shrink:0;color:#3b82f6;}
.tree-file-info{flex:1;min-width:0;}
.tree-file-name{font-size:11px;font-weight:600;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.dark .tree-file-name{color:#e5e7eb;}
.tree-file-meta{font-size:9px;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tree-file-tags{display:flex;flex-wrap:wrap;gap:2px;margin-top:2px;}
.tree-assets{margin-left:8px;padding-left:8px;border-left:1px dashed #cbd5e1;}
body.dark .tree-assets{border-left-color:#475569;}
.tree-asset{display:flex;align-items:center;gap:6px;padding:3px 6px;font-size:11px;color:#475569;border-radius:4px;cursor:default;transition:background .12s;}
.tree-asset:hover{background:#f1f5f9;}
body.dark .tree-asset{color:#94a3b8;}
body.dark .tree-asset:hover{background:#1e293b;}
.tree-asset-open{cursor:pointer;}
.tree-asset-open:hover{background:#eff6ff;color:#2546A9;}
body.dark .tree-asset-open:hover{background:#1e3a8a40;color:#60a5fa;}
.tree-asset-icon{display:flex;align-items:center;flex-shrink:0;}
.tree-asset-glb-icon{width:16px;height:16px;display:block;object-fit:contain;flex-shrink:0;}
.tree-asset-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tag-pill {
  display: inline-block;
  background: #EFF6FF;
  color: #3B82F6;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.5;
}
body.dark .tag-pill {
  background: #1E3A5F;
  color: #60A5FA;
}
.archive-tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 12px 2px;
}
.archive-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.6;
}
.archive-tag-pill:hover { background: #eff6ff; border-color: #93c5fd; color: #3b82f6; }
.archive-tag-pill.active { background: #2546A9; border-color: #2546A9; color: #fff; }
.archive-tag-pill .tag-count { opacity: 0.6; font-size: 9px; }
body.dark .archive-tag-pill { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); color: #94a3b8; }
body.dark .archive-tag-pill:hover { background: rgba(59,130,246,0.15); border-color: #3b82f6; color: #60a5fa; }
body.dark .archive-tag-pill.active { background: #2546A9; border-color: #2546A9; color: #fff; }
/* GAUS Modal */
.gaus-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 440px;
  width: 92%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 60px -12px rgba(0,0,0,0.35);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
}
.credits-overlay.visible .gaus-modal { transform: scale(1); }
body.dark .gaus-modal { background: #111827; }
.gaus-modal-accent {
  height: 3px;
  background: linear-gradient(90deg, #2546A9, #3B82F6, #60A5FA);
}
.gaus-modal-header {
  padding: 14px 20px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}
body.dark .gaus-modal-header { border-bottom-color: #1f2937; }
.gaus-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
body.dark .gaus-modal-title-group .material-symbols-outlined { color: #60A5FA; }
.gaus-modal-title-group h2 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}
body.dark .gaus-modal-title-group h2 { color: #f1f5f9; }
.gaus-modal-subtitle {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}
.gaus-modal-body {
  padding: 14px 20px 18px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}
.gaus-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 16px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
}
.gaus-dropzone:hover, .gaus-dropzone.dragover {
  border-color: #2546A9;
  background: #eef2ff;
}
body.dark .gaus-dropzone { background: #1e293b; border-color: #374151; }
body.dark .gaus-dropzone:hover, body.dark .gaus-dropzone.dragover { border-color: #3B82F6; background: rgba(30,58,138,0.25); }
.gaus-dropzone-icon {
  width: 40px; height: 40px;
  margin: 0 auto 8px;
  background: linear-gradient(135deg, #EEF2FF, #DBEAFE);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
body.dark .gaus-dropzone-icon { background: linear-gradient(135deg, #1e3a8a40, #1e40af40); }
.gaus-dropzone-icon .material-symbols-outlined { font-size: 28px; color: #2546A9; }
body.dark .gaus-dropzone-icon .material-symbols-outlined { color: #60A5FA; }
.gaus-dropzone-title { margin: 0; font-size: 14px; font-weight: 500; color: #334155; }
body.dark .gaus-dropzone-title { color: #e2e8f0; }
.gaus-dropzone-hint { margin: 4px 0 0; font-size: 12px; color: #94a3b8; }
.gaus-info-card {
  margin: 10px 0;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
}
body.dark .gaus-info-card { background: #1f2937; }
.gaus-info-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.gaus-info-label { color: #64748b; }
body.dark .gaus-info-label { color: #94a3b8; }
.gaus-info-value { font-weight: 600; color: #0f172a; }
body.dark .gaus-info-value { color: #e2e8f0; }
.gaus-field-group { margin: 10px 0; }
.gaus-field-label { font-size: 12px; font-weight: 600; color: #334155; display: block; margin-bottom: 8px; }
body.dark .gaus-field-label { color: #94a3b8; }
.gaus-btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.gaus-btn-outline:hover { border-color: #2546A9; color: #2546A9; background: #EEF2FF; }
body.dark .gaus-btn-outline { background: #1f2937; border-color: #374151; color: #e2e8f0; }
body.dark .gaus-btn-outline:hover { border-color: #3B82F6; color: #60A5FA; background: #1e3a8a40; }
.gaus-field-hint { font-size: 11px; color: #64748b; margin-top: 6px; word-break: break-all; }
.gaus-progress-section { margin: 10px 0; }
.gaus-progress-label { font-size: 12px; color: #334155; margin-bottom: 10px; font-weight: 500; }
body.dark .gaus-progress-label { color: #e2e8f0; }
.gaus-progress-track { height: 6px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
body.dark .gaus-progress-track { background: #374151; }
.gaus-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #2546A9, #3B82F6); transition: width 0.3s; border-radius: 4px; }
.gaus-progress-text { font-size: 11px; color: #64748b; margin-top: 6px; }
.gaus-btn-cancel {
  margin-top: 10px;
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}
.gaus-btn-cancel:hover { border-color: #ef4444; color: #ef4444; }
body.dark .gaus-btn-cancel { background: #1f2937; border-color: #374151; color: #94a3b8; }
body.dark .gaus-btn-cancel:hover { border-color: #ef4444; color: #ef4444; }
.gaus-result-card {
  margin: 10px 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, #dcfce7, #d1fae5);
  border-radius: 8px;
  font-size: 12px;
  color: #166534;
}
body.dark .gaus-result-card { background: linear-gradient(135deg, #064e3b40, #065f4640); color: #6ee7b7; }
.gaus-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2546A9, #1E3A8A);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.gaus-btn-primary:hover { background: linear-gradient(135deg, #1E3A8A, #172554); box-shadow: 0 4px 12px rgba(37,70,169,0.3); }
.gaus-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
body.dark .gaus-btn-primary { background: linear-gradient(135deg, #3B82F6, #2563EB); }
body.dark .gaus-btn-primary:hover { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
