body {
  font-family: "Roboto", Arial, sans-serif !important;
  background: #ffffff !important;
  color: #202124 !important;
}

.material-icons-outlined {
  font-family: 'Material Icons Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.app:not(.admin-mode) {
  background: #ffffff !important;
}

.app:not(.admin-mode) .sidebar-resizer {
  display: none !important;
}

.app:not(.admin-mode) .sidebar {
  width: 256px !important;
  min-width: 256px !important;
  max-width: 256px !important;
  background: #ffffff !important;
  border-right: none !important;
  overflow: hidden auto !important;
  padding-top: 8px !important;
}

.app:not(.admin-mode) .sidebar-header {
  padding: 10px 14px 8px !important;
}

.app:not(.admin-mode) .logo-text {
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: 20px !important;
  color: #3c4043 !important;
  font-weight: 500 !important;
  letter-spacing: -0.2px;
}

.app:not(.admin-mode) .new-btn-wrap {
  padding: 10px 16px 12px !important;
  border-bottom: none !important;
  margin-bottom: 6px;
}

.app:not(.admin-mode) .upload-btn {
  max-width: 126px !important;
  min-width: 126px !important;
  height: 56px !important;
  border-radius: 9999px !important;
  background: #fff !important;
  color: #3c4043 !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px rgba(60, 64, 67, 0.15) !important;
  gap: 10px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.app:not(.admin-mode) .upload-btn:hover {
  background: #fff !important;
}

.app:not(.admin-mode) .plus-icon {
  width: 20px !important;
  height: 20px !important;
  margin-right: 0 !important;
}

.app:not(.admin-mode) .upload-btn .plus-icon svg {
  fill: #1a73e8 !important;
}

.app:not(.admin-mode) .sidebar-nav {
  gap: 4px !important;
  padding: 0 12px !important;
}

.app:not(.admin-mode) .nav-item {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 999px !important;
  height: 40px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #3c4043 !important;
  gap: 14px !important;
  font-family: "Roboto", Arial, sans-serif !important;
}

.app:not(.admin-mode) .nav-item .material-icons-outlined {
  font-size: 19px !important;
  color: #5f6368;
}

.app:not(.admin-mode) .nav-item:hover {
  background: #eceff3 !important;
}

.app:not(.admin-mode) .nav-item.active {
  background: #c2e7ff !important;
  color: #001d35 !important;
  font-weight: 500 !important;
}

.app:not(.admin-mode) .nav-item.active .material-icons-outlined {
  color: #1a73e8 !important;
}

.app:not(.admin-mode) .admin-nav-item {
  display: none !important;
}

.app:not(.admin-mode) .sidebar-footer {
  margin-top: auto !important;
  border-top: none !important;
  background: transparent !important;
  padding: 10px 16px 14px !important;
}

.app:not(.admin-mode) .storage-info {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.app:not(.admin-mode) .storage-bar {
  height: 4px !important;
  background: #d7dbe0 !important;
  border-radius: 999px !important;
}

.app:not(.admin-mode) .storage-bar-fill {
  background: #1a73e8 !important;
}

.app:not(.admin-mode) .storage-text {
  margin-top: 8px;
  display: block;
  color: #5f6368 !important;
  font-size: 12px !important;
}

.app:not(.admin-mode) #new-dropdown {
  border-radius: 16px !important;
  border: 1px solid #dadce0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
  padding: 8px 0 !important;
  min-width: 230px !important;
  width: 230px !important;
  left: 12px !important;
}

.app:not(.admin-mode) #new-dropdown .context-item {
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 0;
  transition: background-color 0.1s ease;
  color: #3c4043;
  font-size: 14px;
}

.app:not(.admin-mode) #new-dropdown .context-item:hover {
  background: #f1f3f4 !important;
  color: #202124;
}

.app:not(.admin-mode) #new-dropdown .context-item .new-item-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.app:not(.admin-mode) #new-dropdown .context-item .new-item-icon svg {
  width: 20px;
  height: 20px;
}

.app:not(.admin-mode) #new-dropdown .context-divider {
  height: 1px;
  background: #dadce0;
  margin: 8px 0 !important;
  width: 100%;
}

/* ── Profile Dropdown ── */
.topbar-profile-wrap {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 900;
  overflow: hidden;
  animation: profileDropIn 200ms cubic-bezier(0.2,0,0,1);
}

@keyframes profileDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-dropdown.hidden {
  display: none !important;
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
}

.profile-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-info {
  min-width: 0;
}

.profile-name {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-email {
  font-size: 13px;
  color: #5f6368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown-divider {
  height: 1px;
  background: #e8eaed;
  margin: 4px 0;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 14px;
  color: #3c4043;
  cursor: pointer;
  text-align: left;
  font-family: "Roboto", Arial, sans-serif;
  transition: background 0.12s ease;
}

.profile-dropdown-item:hover {
  background: #f1f3f4;
}

.profile-dropdown-item .material-icons-outlined {
  font-size: 20px;
  color: #5f6368;
  width: 20px;
}

.profile-dropdown-item.profile-signout {
  color: #d93025;
}

.profile-dropdown-item.profile-signout .material-icons-outlined {
  color: #d93025;
}

.app:not(.admin-mode) .activity-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 0 24px;
}

.app:not(.admin-mode) .activity-top {
  position: relative;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 12px;
  border-bottom: 1px solid #e8edf5;
  margin-bottom: 8px;
}

.app:not(.admin-mode) .activity-top h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #202124;
}

.app:not(.admin-mode) #activity-filter {
  border: 1px solid #d5deea;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f8fbff;
}

.app:not(.admin-mode) #activity-list {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #dadce0;
  overflow: hidden;
  margin-top: 20px;
}

.app:not(.admin-mode) .activity-item {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  border-radius: 0;
  background: transparent;
  transition: background-color 0.2s;
}

.app:not(.admin-mode) .activity-item:last-child {
  border-bottom: none;
}

.app:not(.admin-mode) .activity-item:hover {
  background: #f8f9fa;
}

.app:not(.admin-mode) .activity-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 4px;
}

.app:not(.admin-mode) .activity-text {
  font-size: 14px;
  color: #3c4043;
  margin-bottom: 2px;
}

.app:not(.admin-mode) .activity-text strong {
  color: #202124;
  font-weight: 500;
}

.app:not(.admin-mode) .activity-time {
  font-size: 12px;
  color: #5f6368;
}

.drive-settings-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drive-settings-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f9fbff;
}

.drive-settings-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  background-size: cover;
  background-position: center;
}
.drive-settings-avatar.has-photo { color: transparent; }

.drive-settings-name {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
}

.drive-settings-email {
  font-size: 12px;
  color: #5f6368;
}

.drive-settings-avatar-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drive-avatar-upload-btn,
.drive-avatar-remove-btn {
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.drive-avatar-remove-btn {
  color: #5f6368;
}

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

.drive-settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drive-settings-field span {
  font-size: 12px;
  color: #5f6368;
}

.drive-settings-field input,
.drive-settings-field select {
  height: 40px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
}

.drive-settings-field-full { grid-column: 1 / -1; }

.app:not(.admin-mode) .main-content {
  background: #fff !important;
}

.app:not(.admin-mode) .topbar {
  background: #fff !important;
  min-height: 64px !important;
  padding: 8px 12px !important;
  border-bottom: 0.5px solid #eef1f5 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: visible;
}

.app:not(.admin-mode) .topbar-leading {
  display: none !important;
}

.app:not(.admin-mode) .topbar-menu {
  display: inline-flex !important;
}

.app:not(.admin-mode) .topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.app:not(.admin-mode) .topbar-logo-text {
  display: inline !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #5f6368 !important;
}

.app:not(.admin-mode) .topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f6368;
  font-size: 22px;
  font-weight: 500;
}



.app:not(.admin-mode) .topbar-actions {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  flex-shrink: 0;
  min-width: max-content;
  margin-left: auto;
  align-self: center;
}

.app:not(.admin-mode) .search-wrap {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  max-width: 980px;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
}

.app:not(.admin-mode) .search-box {
  display: flex !important;
  width: 100% !important;
  height: 46px !important;
  border-radius: 24px !important;
  background: #f1f3f4 !important;
  border: none !important;
  transition: background 0.15s ease !important;
}

.app:not(.admin-mode) #search-input {
  display: block !important;
}

.app:not(.admin-mode) .search-box:hover:not(:focus-within) {
  background: #e8eaed !important;
}

.app:not(.admin-mode) .search-box input {
  display: block !important;
  width: 100% !important;
}

.app:not(.admin-mode) .search-box:focus-within {
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px rgba(60,64,67,.15) !important;
}

.app:not(.admin-mode) .search-filter-panel {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  right: 0 !important;
  margin-top: 10px !important;
  padding: 14px !important;
  border: 1px solid #d9dee6 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.12) !important;
  z-index: 220 !important;
}

.app:not(.admin-mode) .search-filter-panel.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Force hidden search panel to never reserve layout space in any mode */
.search-filter-panel.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.app:not(.admin-mode) .selection-bar.hidden {
  display: none !important;
}

.app:not(.admin-mode) .filter-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.app:not(.admin-mode) .filter-chip {
  height: auto !important;
  min-height: 64px;
  padding: 8px 10px !important;
  border: 1px solid #d2d7df !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #5f6368 !important;
}

.app:not(.admin-mode) .filter-chip select {
  width: 100%;
  height: 30px;
  border: 1px solid #d2d7df;
  border-radius: 8px;
  padding: 0 28px 0 8px;
  background-color: #fff;
  color: #202124;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f6368 50%),
    linear-gradient(135deg, #5f6368 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 12px,
    calc(100% - 9px) 12px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.app:not(.admin-mode) #search-filter-apply {
  height: 36px;
  border-radius: 10px !important;
  padding: 0 16px !important;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.app:not(.admin-mode) .topbar-actions .btn-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  border: none !important;
}

.app:not(.admin-mode) .topbar-actions .btn-icon .material-icons-outlined {
  font-size: 20px !important;
}

.app:not(.admin-mode) #admin-btn {
  display: none !important;
}

.app:not(.admin-mode) .topbar-view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #f1f3f4;
  height: 40px;
}

.app:not(.admin-mode) .topbar-view-toggle .btn-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
}

.app:not(.admin-mode) .topbar-view-toggle .btn-icon.active {
  background: #c2e7ff !important;
  color: #001d35 !important;
}

.app:not(.admin-mode) .topbar-profile-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app:not(.admin-mode) .profile-button.topbar-avatar-btn {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  flex-shrink: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: transparent !important;
}

.app:not(.admin-mode) .topbar-avatar-btn .user-avatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  background-color: #1a73e8 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  overflow: hidden !important;
}

.app:not(.admin-mode) .content-frame {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.app:not(.admin-mode) .content-area {
  padding-top: 6px !important;
}

@media (min-width: 821px) {
  .app:not(.admin-mode) .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .app:not(.admin-mode) .topbar-leading {
    display: none !important;
  }

  .app:not(.admin-mode) .search-wrap {
    display: block !important;
    min-width: 420px !important;
    max-width: 860px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .app:not(.admin-mode) .search-box {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .app:not(.admin-mode) .topbar-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .app:not(.admin-mode) .topbar-actions .btn-icon,
  .app:not(.admin-mode) #profile-avatar-btn {
    display: inline-flex !important;
  }
}

.app:not(.admin-mode) .breadcrumb-bar:not(.hidden) {
  min-height: 58px !important;
  padding: 18px 24px 8px !important;
  border-bottom: none !important;
  align-items: flex-end !important;
}

.app:not(.admin-mode) .breadcrumb {
  min-height: 32px !important;
  align-items: center !important;
}

.app:not(.admin-mode) .breadcrumb-item {
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  color: #5f6368 !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: background-color 0.2s;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.app:not(.admin-mode) span.breadcrumb-item {
  color: #202124 !important;
  cursor: default !important;
  background: transparent !important;
}

.app:not(.admin-mode) a.breadcrumb-item:hover {
  background: #f1f3f4 !important;
  color: #202124 !important;
}

.app:not(.admin-mode) .breadcrumb-sep {
  font-size: 22px !important;
  color: #5f6368 !important;
  margin: 0 2px !important;
}

@media (max-width: 1100px) {
  .app:not(.admin-mode) .topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
  }
  .app:not(.admin-mode) .topbar-leading {
    display: none !important;
  }
  .app:not(.admin-mode) .topbar-actions {
    gap: 4px !important;
  }
  .app:not(.admin-mode) .search-wrap { min-width: 0; }
  .app:not(.admin-mode) .filter-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .app:not(.admin-mode) .activity-top {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 820px) {
  .app:not(.admin-mode) .topbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    min-height: 60px !important;
    height: auto !important;
    overflow: visible !important;
  }

  .app:not(.admin-mode) .topbar-leading {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    gap: 0 !important;
    order: 1 !important;
  }

  .app:not(.admin-mode) .topbar-logo {
    display: none !important;
  }

  .app:not(.admin-mode) .search-wrap {
    display: block !important;
    flex: 1 1 100% !important;
    min-width: 120px !important;
    width: 100% !important;
    margin: 0 !important;
    order: 3 !important;
  }

  .app:not(.admin-mode) .topbar-actions {
    display: flex !important;
    align-items: center;
    gap: 0 !important;
    margin: 0 0 0 auto !important;
    min-width: auto !important;
    flex-shrink: 0 !important;
    order: 2 !important;
  }

  .app:not(.admin-mode) #topbar-settings,
  .app:not(.admin-mode) #topbar-security,
  .app:not(.admin-mode) .topbar-view-toggle {
    display: none !important;
  }

  .app:not(.admin-mode) .topbar-actions .btn-icon {
    display: none !important;
  }

  .app:not(.admin-mode) #profile-avatar-btn {
    display: inline-flex !important;
  }

  .app:not(.admin-mode) #sidebar-toggle {
    display: inline-flex !important;
  }

  .app:not(.admin-mode) .filter-grid { grid-template-columns: 1fr; }

  .app:not(.admin-mode) .activity-page {
    max-width: none;
    margin: 0;
    padding: 10px 0 16px;
  }

  .app:not(.admin-mode) .activity-top {
    padding: 8px 12px 10px;
    margin-bottom: 4px;
  }

  .app:not(.admin-mode) .activity-top h3 {
    font-size: 20px !important;
    line-height: 1.15;
  }

  .app:not(.admin-mode) #activity-filter {
    height: 38px;
    max-width: 160px;
    width: 100%;
    padding: 0 12px;
    font-size: 14px;
  }

  .app:not(.admin-mode) #activity-list {
    margin-top: 8px;
    border-radius: 12px;
  }

  .app:not(.admin-mode) .activity-item {
    align-items: flex-start;
    padding: 12px 12px;
    gap: 10px;
  }

  .app:not(.admin-mode) .activity-text {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 520px) {
  .app:not(.admin-mode) .topbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px 10px !important;
    min-height: auto !important;
    height: auto !important;
  }

  .app:not(.admin-mode) .topbar-leading {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    order: 1 !important;
  }

  .app:not(.admin-mode) .topbar-actions {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    order: 2 !important;
  }

  .app:not(.admin-mode) #sidebar-toggle {
    display: inline-flex !important;
  }

  .app:not(.admin-mode) .search-wrap {
    display: block !important;
    flex: 1 1 100% !important;
    min-width: 120px !important;
    width: 100% !important;
    max-width: none !important;
    order: 3 !important;
  }

  .app:not(.admin-mode) .search-box {
    height: 42px !important;
    border-radius: 21px !important;
  }

  .app:not(.admin-mode) #search-input {
    font-size: 15px !important;
  }

  .app:not(.admin-mode) .content-area {
    padding: 0 10px 20px !important;
  }

  .app:not(.admin-mode) .file-grid:not(.grid-view) .file-row {
    min-height: 50px !important;
    padding: 8px 8px !important;
  }

  .app:not(.admin-mode) .activity-top {
    flex-wrap: wrap;
    gap: 8px;
  }

  .app:not(.admin-mode) #activity-filter {
    max-width: 100%;
  }

  .app:not(.admin-mode) .activity-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
}

.app:not(.admin-mode) .breadcrumb-actions {
  display: none !important;
}

.app:not(.admin-mode) .search-state {
  padding: 0 14px 8px;
}

.app:not(.admin-mode) .search-state-title {
  font-size: 22px;
  font-weight: 400;
  color: #202124;
}

.app:not(.admin-mode) .md3-chip-bar:not(.hidden) {
  padding: 6px 24px 14px !important;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #f1f3f4 !important;
}

.app:not(.admin-mode) .md3-chip-btn {
  border: 1px solid #d4d7dd !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #3c4043 !important;
  height: 34px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 0 12px !important;
}

.app:not(.admin-mode) .md3-chip-btn:hover {
  background: #f8f9fa !important;
}

.app:not(.admin-mode) .md3-chip-btn.active {
  background: #e8f0fe !important;
  border-color: #c6dafc !important;
  color: #0b57d0 !important;
}

.app:not(.admin-mode) .file-list-header {
  background: #fff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  grid-template-columns: minmax(280px, 1fr) 160px 200px 100px 80px !important;
  height: 40px !important;
  padding: 0 14px !important;
}

.app:not(.admin-mode) .sort-col {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #5f6368 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.app:not(.admin-mode) .sort-arrow {
  opacity: 0.65;
}

.app:not(.admin-mode) .file-grid {
  padding: 0 8px 12px !important;
}

.app:not(.admin-mode) .file-grid:not(.grid-view) .file-row {
  grid-template-columns: minmax(280px, 1fr) 160px 200px 100px 80px !important;
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 0 !important;
  border: none !important;
  background: #fff !important;
  padding: 0 10px !important;
}

.app:not(.admin-mode) .file-grid:not(.grid-view) .file-row:hover {
  background: #f0f4f9 !important;
}

.app:not(.admin-mode) .file-grid:not(.grid-view) .file-row.selected {
  background: #e8f0fe !important;
}

.app:not(.admin-mode) .file-name {
  gap: 10px !important;
}

.app:not(.admin-mode) .file-label {
  font-size: 14px !important;
  color: #202124 !important;
  font-weight: 400 !important;
}

.app:not(.admin-mode) .cell-owner,
.app:not(.admin-mode) .cell-date,
.app:not(.admin-mode) .cell-size {
  color: #5f6368 !important;
  font-size: 13px !important;
}

.app:not(.admin-mode) .file-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 2px !important;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.app:not(.admin-mode) .file-row:hover .file-actions {
  opacity: 1;
}

.app:not(.admin-mode) .col-actions {
  width: 80px !important;
}

.app:not(.admin-mode) .file-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #5f6368;
  border-radius: 3px;
  background: transparent;
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  transition: opacity .15s ease, background .1s ease, border-color .1s ease;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.app:not(.admin-mode) .file-checkbox:checked {
  background: #1a73e8;
  border-color: #1a73e8;
}

.app:not(.admin-mode) .file-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.app:not(.admin-mode) .file-row:hover .file-checkbox,
.app:not(.admin-mode) .file-row.selected .file-checkbox {
  opacity: 1;
}

.app:not(.admin-mode) .enc-badge svg,
.app:not(.admin-mode) .enc-badge-grid svg {
  width: 13px !important;
  height: 13px !important;
}

.app:not(.admin-mode) .details-panel {
  width: 340px !important;
  border-left: 1px solid #e0e3e7 !important;
  background: #fff !important;
}

.app:not(.admin-mode) .details-panel .panel-header {
  min-height: 56px !important;
}

.app:not(.admin-mode) .details-preview {
  height: 148px !important;
  border-radius: 12px !important;
  border: 1px solid #e0e3e7 !important;
  background: #f7f9fc !important;
}

.app:not(.admin-mode) .details-actions-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 12px 8px !important;
  border-bottom: none !important;
}

.app:not(.admin-mode) .details-action-btn {
  min-height: 72px !important;
  border: 1px solid #e0e3e7 !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.app:not(.admin-mode) .details-action-btn svg {
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  background: transparent !important;
}

.app:not(.admin-mode) .m3-details-access {
  margin: 0 10px 12px !important;
  border: 1px solid #e0e3e7 !important;
  border-radius: 12px !important;
  background: #fbfcff !important;
}

.app:not(.admin-mode) .m3-manage-access-btn {
  height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid #c6dafc !important;
  color: #1a73e8 !important;
  background: #ecf3fe !important;
}

.app:not(.admin-mode) .m3-details-tabs .tab-btn {
  height: 34px !important;
  font-size: 13px !important;
}

.app:not(.admin-mode) .property-item {
  border-bottom: 1px solid #f1f3f6 !important;
}

.app:not(.admin-mode) .gd-home-list-header {
  position: relative !important;
  margin: 0 !important;
  padding: 0 16px !important;
  height: 36px !important;
  background: transparent !important;
  border-bottom: 1px solid #dadce0 !important;
  grid-template-columns: minmax(340px, 1fr) 210px 120px 140px 84px !important;
  display: grid;
  align-items: center;
}

.app:not(.admin-mode) .gd-home-recent-list .file-row {
  grid-template-columns: minmax(340px, 1fr) 210px 120px 140px 84px !important;
}

.app:not(.admin-mode) .gd-home-recent-list .file-row .home-size-cell {
  justify-content: flex-end;
  color: #5f6368 !important;
  font-size: 12px !important;
}

.app:not(.admin-mode) .gd-home-recent-list .file-row .home-location-link {
  color: #1a73e8 !important;
  text-decoration: none;
}

.app:not(.admin-mode) .gd-home-recent-list .file-row .home-location-link:hover {
  text-decoration: underline;
}

.app:not(.admin-mode) .gd-home-section-title.collapsible {
  cursor: pointer;
  user-select: none;
}

.app:not(.admin-mode) .empty-state {
  min-height: calc(100vh - 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
}

.app:not(.admin-mode) .empty-art {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app:not(.admin-mode) .empty-art .material-icons-outlined {
  font-size: 44px;
  color: #1a73e8;
}

.app:not(.admin-mode) .empty-state h3 {
  font-size: 24px !important;
  font-weight: 400 !important;
  color: #202124 !important;
}

.app:not(.admin-mode) .empty-state p {
  font-size: 14px !important;
  color: #5f6368 !important;
}

.app:not(.admin-mode) .empty-cta-btn {
  margin-top: 4px;
  height: 40px !important;
  border-radius: 999px !important;
  background: #1a73e8 !important;
  border: none !important;
  color: #fff !important;
  padding: 0 18px !important;
}

@media (max-width: 1100px) {
  .app:not(.admin-mode) .main-content {
    margin-left: 0 !important;
  }

  .app:not(.admin-mode) .sidebar {
    position: fixed;
    left: -276px;
    top: 0;
    height: 100vh;
    z-index: 300;
    transition: left .2s ease;
  }

  .app:not(.admin-mode) .sidebar.open {
    left: 0;
  }

  .app:not(.admin-mode) .topbar {
    gap: 8px !important;
  }

  .app:not(.admin-mode) .topbar-logo-text,
  .app:not(.admin-mode) .topbar-brand span {
    display: none;
  }

  .app:not(.admin-mode) .details-panel {
    width: min(260px, 100vw) !important;
  }
}

@media (max-width: 820px) {
  .app:not(.admin-mode) .file-list-header,
  .app:not(.admin-mode) .file-grid:not(.grid-view) .file-row {
    grid-template-columns: minmax(240px, 1fr) 120px 140px !important;
  }

  .app:not(.admin-mode) .help-wrap {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .app:not(.admin-mode) .file-grid.grid-view {
    display: block !important;
    gap: 0 !important;
    padding: 0 8px 12px !important;
  }

  .app:not(.admin-mode) .file-grid.grid-view .file-card {
    margin-bottom: 12px !important;
  }

  .app:not(.admin-mode) .file-grid.grid-view .file-card:last-child {
    margin-bottom: 0 !important;
  }

  .app:not(.admin-mode) .file-list-header {
    display: none !important;
  }

  .app:not(.admin-mode) .file-grid:not(.grid-view) .file-row,
  .app:not(.admin-mode) .file-grid.grid-view .file-row {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 50px !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid #eceff3 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  .app:not(.admin-mode) .file-row .cell-owner,
  .app:not(.admin-mode) .file-row .cell-date {
    display: none !important;
  }

  .app:not(.admin-mode) .file-row .cell-size {
    display: block !important;
    margin-top: 2px;
    font-size: 12px !important;
  }

  .app:not(.admin-mode) .file-row .file-actions {
    display: none !important;
  }
}
