/* ============================================================
   FreeDrive – Google Drive UI
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  color: var(--dark-text);
  background: #fff;
  overflow: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; }
input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* Prevent accidental selections while clicking/double-clicking UI controls. */
button,
[role='button'],
.btn,
.btn-icon,
.context-item,
img,
svg {
  user-select: none;
  -webkit-user-select: none;
}

img,
svg {
  -webkit-user-drag: none;
  user-drag: none;
}

.hidden { display: none !important; }

/* ── Auth Screen ── */
.auth-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f0f4f9;
  z-index: 1000;
  overflow-y: auto;
}
.auth-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: 72px;
  width: min(1040px, 100%);
  min-height: 384px;
  padding: 48px 48px 40px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
  transition: min-height 180ms ease;
}
.auth-brand-panel,
.auth-action-panel {
  min-width: 0;
}
.auth-brand-panel {
  display: flex;
  align-items: flex-start;
}
.auth-action-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 12px;
}
.auth-logo {
  width: 100%;
  text-align: left;
  margin: 0;
}
.auth-logo .logo-drive {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.auth-logo .logo-drive span {
  color: #5f6368;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.3px;
}
.auth-logo svg { margin: 0; width: 42px; height: 38px; }
.auth-logo h1 {
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 36px;
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -.6px;
  color: #1f1f1f;
  margin: 0 0 12px;
}
.auth-logo .tagline {
  color: #1f1f1f;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.auth-step { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.form-group input {
  width: 100%;
  height: 56px;
  border: 1px solid #747775;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  color: #1f1f1f;
}
.form-group input:hover { border-color: #1f1f1f; }
.form-group input:focus {
  border-color: #0b57d0;
  box-shadow: inset 0 0 0 1px #0b57d0;
}
.auth-field {
  position: relative;
  margin: 0;
}
.auth-field label {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  padding: 0 4px;
  color: #444746;
  background: #fff;
  font-size: 16px;
  line-height: 20px;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: color .15s, transform .15s, top .15s;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label,
.auth-field input:-webkit-autofill + label {
  top: 0;
  transform: translateY(-50%) scale(.75);
}
.auth-field input:focus + label { color: #0b57d0; }
.auth-inline-link,
.auth-text-button {
  width: max-content;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #0b57d0;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1px;
}
.auth-inline-link {
  margin-left: -4px;
  padding: 6px 4px;
}
.auth-text-button {
  min-height: 40px;
  margin-left: -12px;
  padding: 0 12px;
}
.auth-inline-link:hover { text-decoration: underline; }
.auth-text-button:hover { background: #f0f4f9; }
.auth-help-copy {
  margin: 22px 0 16px;
  color: #444746;
  font-size: 14px;
  line-height: 1.45;
}
.auth-field-hint {
  margin: -4px 0 6px 16px;
  color: #444746;
  font-size: 12px;
  line-height: 1.4;
}
.auth-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
}
.auth-form-actions .auth-text-button:first-child { margin-right: auto; }
.auth-account-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 32px;
  margin: 20px 0 0;
  padding: 0 8px 0 5px;
  overflow: hidden;
  border: 1px solid #747775;
  border-radius: 16px;
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 500;
}
.auth-account-chip:hover { background: #f8fafd; }
.auth-account-chip .material-icons-outlined { margin-right: 6px; color: #444746; font-size: 20px; }
.auth-account-chip #login-account-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-account-chip .auth-chip-arrow { margin: 0 0 0 4px; font-size: 18px; }
.auth-show-password {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 2px 0 2px 2px;
  color: #1f1f1f;
  font-size: 14px;
  cursor: pointer;
}
.auth-show-password input { width: 18px; height: 18px; accent-color: #0b57d0; }
.auth-action-panel .btn-primary {
  align-self: flex-end;
  width: auto;
  min-width: 88px;
  height: 40px;
  padding: 0 24px;
  border-radius: 20px;
  background: #0b57d0;
  border-color: #0b57d0;
}
.auth-action-panel .btn-primary:hover { background: #0a4ebd; }
.btn-loader { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 840px) {
  .auth-screen {
    align-items: flex-start;
    padding: 16px;
    background: #fff;
  }
  .auth-container {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 24px 8px 32px;
    border-radius: 0;
    box-shadow: none;
  }
  .auth-brand-panel { margin-bottom: 34px; }
  .auth-logo .logo-drive { margin-bottom: 24px; }
  .auth-logo h1 { font-size: 32px; }
  .auth-action-panel { padding-top: 0; }
  .auth-form-actions { margin-top: 20px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: transparent;
}
.btn-secondary:hover { background: var(--blue-light); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #b31412; }
.btn-sm { height: 28px; padding: 0 12px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-text);
  transition: background 0.15s;
  flex-shrink: 0;
}
.btn-icon:hover { background: #f1f3f4; }
.btn-icon.active { color: var(--blue); background: var(--blue-light); }
.btn-icon svg { width: 20px; height: 20px; fill: currentColor; }
.btn-icon .material-icons { font-size: 20px; }
.link-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red); }

/* ── App Layout ── */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: var(--sidebar-w);
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-header {
  display: flex;
  align-items: center;
  padding: 16px 16px 8px;
  flex-shrink: 0;
}
.logo-small {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: default;
  text-decoration: none;
}
.logo-text {
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-text);
  letter-spacing: -0.3px;
}
.new-btn-wrap {
  padding: 8px 16px 24px;
  position: relative;
  flex-shrink: 0;
}
.upload-btn, .new-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  height: 56px;
  padding: 0 20px 0 16px;
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.15s;
}
.upload-btn:hover, .new-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}
.upload-btn .plus-icon, .new-btn .plus-icon,
.upload-btn .material-icons, .new-btn .material-icons {
  font-size: 24px;
  color: var(--dark-text);
}
.plus-icon { display: flex; align-items: center; }
.new-dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: 16px;
  width: 220px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2), 0 6px 20px rgba(0,0,0,.12);
  z-index: 200;
  padding: 8px 0;
  transform-origin: top left;
}
.sidebar-nav {
  flex: 1;
  padding: 0 16px 0 0;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 16px 0 24px;
  border-radius: 0 24px 24px 0;
  color: var(--dark-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.nav-item:hover { background: #f1f3f4; }
.nav-item.active { background: var(--active-nav-bg); color: var(--active-nav-text); }
.nav-item.active .nav-icon,
.nav-item.active .material-icons { color: var(--active-nav-text); }
.nav-item svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.nav-item .material-icons,
.nav-item .nav-icon { font-size: 20px; flex-shrink: 0; color: var(--dark-text); }

/* ── My Drive sidebar tree ── */
.nav-drive-group { margin-bottom: 4px; }
.nav-drive-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin-bottom: 4px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-drive-row:hover { background: #f1f3f4; }
.nav-drive-row:has(.nav-drive-link.active) {
  background: var(--active-nav-bg);
  color: var(--active-nav-text);
}
.nav-drive-link {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin-bottom: 0 !important;
  padding: 0 16px 0 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  color: var(--dark-text);
}
.nav-drive-row:has(.nav-drive-link.active) .nav-drive-link {
  color: var(--active-nav-text);
}
.nav-tree-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #202124;
  transition: transform 0.15s ease;
}
.nav-tree-chevron::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  margin-left: 2px;
}
.nav-tree-chevron.is-expanded { transform: rotate(90deg); }
.nav-tree-chevron.is-hidden { visibility: hidden; pointer-events: none; }
.nav-tree-children { padding-left: 20px; }
.nav-tree-children.hidden { display: none; }
.nav-tree-node { margin-bottom: 2px; }
.nav-tree-folder {
  display: flex;
  align-items: center;
  min-height: 36px;
  border-radius: 0 20px 20px 0;
  color: var(--dark-text);
}
.nav-tree-folder:hover { background: #f1f3f4; }
.nav-tree-folder.active { background: var(--active-nav-bg); color: var(--active-nav-text); }
.nav-tree-folder-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 16px 0 4px;
  height: 36px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-tree-folder-link svg {
  width: 18px;
  height: 18px;
  fill: #5f6368;
  flex-shrink: 0;
}
.nav-tree-folder.active .nav-tree-folder-link svg { fill: currentColor; }

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}
.storage-percent { font-size: 13px; color: var(--gray-text); font-weight: 400; }
.new-item-icon {
  display: flex;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
  color: var(--gray-text);
}
.new-item-icon svg { width: 20px; height: 20px; }

/* Sidebar footer */
.sidebar-footer {
  padding: 12px 16px 16px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.storage-info { display: flex; flex-direction: column; gap: 6px; }
.storage-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.storage-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.storage-bar-fill.critical { background: var(--red); }
.storage-text { font-size: 12px; color: var(--gray-text); }

/* Sidebar resizer */
.sidebar-resizer { display: none; }

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--topbar-h);
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.topbar-leading {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}
.topbar-logo-text {
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #5f6368;
  letter-spacing: -0.3px;
}
.topbar-menu .material-icons { font-size: 24px; }
.search-wrap {
  flex: 1;
  max-width: 780px;
  margin: 0 auto;
}
.search-box {
  display: flex;
  align-items: center;
  height: 48px;
  background: #f1f3f4;
  border-radius: 28px;
  padding: 0 16px;
  gap: 8px;
  transition: background 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.search-icon, .tune-icon {
  font-size: 22px;
  color: var(--gray-text);
  flex-shrink: 0;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--dark-text);
  outline: none;
  min-width: 0;
}
.search-box input::placeholder { color: var(--gray-text); }
.search-filter-panel {
  margin-top: 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--fd-shadow);
  padding: 16px;
}
.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.filter-chip {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
}
.filter-chip select {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--dark-text);
  outline: none;
  cursor: pointer;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.topbar-view-toggle { display: flex; gap: 2px; }
.topbar-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  background: #1a73e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Google Sans', sans-serif;
}

/* ── Selection bar ── */
.selection-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 16px;
  background: #e8f0fe;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
#selection-count { font-size: 14px; font-weight: 500; color: #1a73e8; }
.selection-actions { display: flex; gap: 4px; margin-left: auto; }

/* ── Breadcrumb ── */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  flex-shrink: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.breadcrumb-item {
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-text);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.breadcrumb-item:hover { background: var(--hover-row); }
.breadcrumb-item.active { font-weight: 500; cursor: default; }
.breadcrumb-item.active:hover { background: transparent; }
.breadcrumb-sep { color: var(--gray-text); font-size: 16px; }
.breadcrumb-actions { display: flex; align-items: center; gap: 4px; }

/* ── Filter chips (md3-chip-bar) ── */
.md3-chip-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.md3-chip-wrap { position: relative; }
.md3-chip-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  cursor: pointer;
  transition: background 0.15s;
}
.md3-chip-btn:hover { background: #f1f3f4; }
.md3-chip-btn.active { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.md3-chip-btn.open { background: #f1f3f4; }
.md3-chip-icon { font-size: 12px; color: var(--gray-text); }
.md3-chip-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.1);
  min-width: 160px;
  z-index: 150;
  padding: 4px 0;
}
.md3-chip-option {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.1s;
  color: var(--dark-text);
}
.md3-chip-option:hover { background: var(--hover-row); }
.md3-chip-option.selected { color: var(--blue); font-weight: 500; }

/* ── Content area ── */
.content-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 24px;
}

/* ── Home warning ── */
.home-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 8px;
  margin-bottom: 12px;
  gap: 12px;
}
.home-warning-text { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.home-warning-icon { font-size: 16px; }
.home-warning-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.home-warning-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.home-warning-btn:hover { background: rgba(26,115,232,.08); }
.home-warning-close {
  background: none;
  border: none;
  color: var(--gray-text);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

/* ── File list header ── */
.file-list-header {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(100px, 1fr) minmax(120px, 1fr) 100px 80px;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
  margin: 0 -16px;
}
.sort-col {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--gray-text);
  cursor: pointer;
  text-align: left;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.sort-col:hover { color: var(--dark-text); }
.col-name { }
.col-owner { }
.col-date { }
.col-size { }
.col-actions { }
.sort-arrow { font-size: 10px; }
.gd-home-list-header div {
  font-size: 12px;
  color: var(--gray-text);
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.gd-home-list-header .col-actions { text-align: right; }

/* ── File grid container ── */
.file-grid { }
.file-grid.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--fd-grid-tile-min), var(--fd-grid-tile-max)));
  justify-content: start;
  align-content: start;
  gap: 16px;
  padding: 16px 0;
}
.file-grid.grid-view .file-card {
  width: 100%;
  max-width: var(--fd-grid-tile-max);
}

/* ── File list rows ── */
.file-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(100px, 1fr) minmax(120px, 1fr) 100px 80px;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 0;
  cursor: default;
  transition: background 0.1s;
  margin: 0 -16px;
}
.file-row:hover { background: var(--hover-row); }
.file-row.selected { background: var(--selected-row); }

.file-cell {
  font-size: 13px;
  color: var(--gray-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}
.file-cell.file-name {
  display: flex;
  align-items: center;
  color: var(--dark-text);
  position: relative;
  gap: 0;
  overflow: hidden;
}
.file-checkbox {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.15s ease;
  cursor: pointer;
  z-index: 2;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 12px;
  transition: opacity 0.15s ease;
}
.file-row:hover .file-checkbox,
.file-row.selected .file-checkbox {
  opacity: 1;
}
.file-row:hover .file-icon,
.file-row.selected .file-icon {
  opacity: 0;
}
.file-icon svg { width: 20px; height: 20px; }
.file-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--dark-text);
}
.lock-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  flex-shrink: 0;
  opacity: 0.8;
}
.enc-badge-grid { vertical-align: middle; }

.cell-owner, .cell-date, .cell-size { font-size: 13px; color: var(--gray-text); }
.home-location-link { color: var(--blue); text-decoration: none; }
.home-location-link:hover { text-decoration: underline; }

.file-cell.file-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding-right: 0;
  opacity: 0;
  transition: opacity 0.1s;
}
.file-row:hover .file-actions { opacity: 1; }
.file-row.selected .file-actions { opacity: 1; }
.action-share, .action-download, .action-more, .action-delete {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  cursor: pointer;
  transition: background 0.1s;
}
.action-share:hover, .action-download:hover, .action-more:hover { background: rgba(60,64,67,.12); }
.home-size-cell { font-size: 13px; color: var(--gray-text); justify-content: flex-end; }

/* ── Grid view cards ── */
.file-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: default;
  position: relative;
  transition: box-shadow 0.2s;
}
.file-card:hover { box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 4px 8px rgba(0,0,0,.1); }
.file-card.selected { border-color: var(--blue); background: var(--selected-row); }
.card-thumb {
  height: 120px;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb svg { width: 52px; height: 52px; }
.card-meta {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-name {
  flex: 1;
  font-size: 13px;
  color: var(--dark-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-size { font-size: 12px; color: var(--gray-text); }
.card-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.15s;
}
.file-card:hover .card-overlay { opacity: 1; }
.file-card.selected .card-overlay { opacity: 1; }
.file-card .file-checkbox {
  position: static;
  transform: none;
  opacity: 1;
}
.file-card .file-actions {
  opacity: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Empty / Loading states ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: var(--gray-text);
}
.empty-state h3 { font-size: 22px; font-weight: 400; margin: 0 0 8px; color: var(--dark-text); }
.empty-state p { font-size: 14px; margin: 0; }
#empty-upload-cta {
  margin-top: 20px;
  border: 2px dashed var(--blue);
  color: var(--blue);
  border-radius: 8px;
  padding: 12px 24px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  gap: 16px;
  color: var(--gray-text);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ── Drop overlay ── */
.drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,115,232,.12);
  border: 3px dashed var(--blue);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.drop-content { text-align: center; }
.drop-content h3 { font-size: 24px; color: var(--blue); margin: 0 0 8px; }
.drop-content p { font-size: 16px; color: var(--blue); margin: 0; }

/* ── Context menu (base in components.css, z-index override only) ── */
.context-menu { z-index: 300; }

/* ── Modal (base in components.css, z-index override) ── */
.modal-overlay { z-index: 10000; }
.modal-label { display: block; font-size: 13px; color: var(--gray-text); margin-bottom: 8px; font-weight: 500; }

/* Share modal */
#share-people-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 8px;
  color: var(--dark-text);
}
#share-people-input:focus { border-color: var(--blue); }
.share-suggestions {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--fd-shadow);
}
.share-existing-entry {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--dark-text);
}
.share-general { margin-top: 12px; }
.row-inline { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
#share-general-access, #share-link-role {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--dark-text);
  background: #fff;
  outline: none;
}
.share-added-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}

/* ── Detail panel ── */
.details-panel {
  position: fixed;
  right: 0;
  top: var(--topbar-h);
  width: 360px;
  height: calc(100vh - var(--topbar-h));
  background: #fff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.m3-details-header { flex-direction: row; align-items: center; gap: 8px; }
.m3-details-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.details-header-icon { flex-shrink: 0; display: flex; }
.details-name {
  flex: 1;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  background: transparent;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.details-name:focus { border-bottom: 2px solid var(--blue); }
.details-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.details-preview-container {
  margin-bottom: 16px;
}
.details-preview {
  height: 180px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.details-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.details-preview-icon { display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
/* details-actions-row, details-action-btn, m3-details-access, m3-manage-access-btn → see components.css */
.m3-details-access h4 { font-size: 13px; font-weight: 500; margin: 0 0 8px; color: var(--dark-text); }
.access-avatars { display: flex; gap: 4px; margin-bottom: 6px; }
.access-desc { font-size: 12px; color: var(--gray-text); margin-bottom: 10px; }
.m3-details-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.tab-btn {
  flex: 1;
  height: 40px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-text);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-body { font-size: 13px; }
.prop-row, .detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}
.prop-icon { color: var(--gray-text); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.prop-value { color: var(--dark-text); flex: 1; line-height: 1.4; }
.prop-label { color: var(--gray-text); font-size: 12px; }
.access-avatar {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

/* ── Notifications panel ── */
.notifications-panel {
  position: fixed;
  right: 0;
  top: var(--topbar-h);
  width: 340px;
  height: calc(100vh - var(--topbar-h));
  background: #fff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  box-shadow: var(--fd-shadow-lg);
}
.notifications-panel.hidden { display: none; }
.notifications-panel .panel-header { flex-shrink: 0; }
.notifications-panel .panel-header h3 { font-size: 16px; font-weight: 500; margin: 0; color: var(--dark-text); }
#notifications-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.notification-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
}
.notification-item:hover { background: var(--hover-row); }
.notification-item.unread { background: var(--blue-light); }

/* ── Upload progress ── */
.upload-progress {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 340px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--fd-shadow-lg);
  z-index: 600;
  overflow: hidden;
}
.upload-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #404040;
  color: #fff;
}
.upload-progress-header h4 { margin: 0; font-size: 14px; font-weight: 500; }
.upload-list { max-height: 200px; overflow-y: auto; }
.upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.upload-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dark-text); }
.upload-item-progress { font-size: 12px; color: var(--gray-text); }
.upload-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.upload-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.3s;
}

/* ── Toast (must sit above .auth-screen z-index: 1000) ── */
.toast-container {
  z-index: 10005 !important;
  pointer-events: none;
}
.toast-container .toast {
  pointer-events: auto;
}

.auth-error {
  display: none;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fce8e6;
  color: #c5221f;
  font-size: 13px;
  line-height: 1.35;
  border: 1px solid #f6aea9;
}
.auth-error:not(:empty) {
  display: block;
}
.auth-link-btn {
  display: block;
  width: 100%;
  margin-top: -4px;
  padding: 0;
  border: none;
  background: none;
  color: #1a73e8;
  font-size: 13px;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}
.auth-action-panel .auth-link-btn {
  width: auto;
  align-self: flex-start;
  margin-top: -2px;
  padding: 8px 4px;
  text-align: left;
}
.auth-link-btn:hover {
  text-decoration: underline;
}

/* ── Activity page ── */
.activity-page { padding: 16px 0; }
.activity-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.activity-top h3 { font-family: 'Google Sans', sans-serif; font-size: 18px; font-weight: 400; margin: 0; }
#activity-filter {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 14px;
  background: #fff;
  color: var(--dark-text);
  outline: none;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.activity-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--hover-row); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.activity-text { flex: 1; color: var(--dark-text); line-height: 1.5; }
.activity-time { font-size: 12px; color: var(--gray-text); }

/* ── Storage page ── */
.storage-page { padding: 16px 0 28px; }
.storage-main { display: flex; flex-direction: column; gap: 18px; }
.storage-hero-card,
.storage-breakdown-card,
.largest-files {
  border: 1px solid #d8e2f7;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 10px 32px rgba(43, 88, 179, 0.08);
}
.storage-hero-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  padding: 20px;
}
.storage-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.storage-circle {
  --storage-deg: 0deg;
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: conic-gradient(#1a73e8 var(--storage-deg), #e5edff 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.storage-circle::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #fff;
}
.storage-circle-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.storage-circle-pct { display: block; font-size: 30px; font-weight: 700; color: #174ea6; line-height: 1; }
.storage-circle-label { display: block; margin-top: 6px; font-size: 12px; color: #5f6368; max-width: 110px; }
.storage-hero-meta h3 {
  margin: 8px 0 6px;
  font-size: 24px;
  font-weight: 650;
  color: #202124;
}
.storage-hero-meta p {
  margin: 0;
  font-size: 14px;
  color: #5f6368;
}
.storage-hero-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.storage-stat-chip {
  border: 1px solid #d2e3fc;
  border-radius: 12px;
  background: #f6f9ff;
  padding: 10px 12px;
}
.storage-stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #5f6368;
}
.storage-stat-value {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #202124;
}
.storage-breakdown-card {
  padding: 16px;
}
.storage-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 10px;
}
.storage-breakdown { display: flex; flex-direction: column; gap: 10px; }
.break-item {
  border: 1px solid #e3ebfb;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}
.break-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.break-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #202124;
}
.break-size {
  font-size: 12px;
  color: #5f6368;
}
.break-bar-track {
  height: 8px;
  border-radius: 99px;
  background: #edf3ff;
  overflow: hidden;
}
.break-bar-fill { height: 100%; border-radius: 99px; }
.break-bar-fill--active { min-width: 2px; }
.largest-files { padding: 16px; }
.largest-files-header {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 8px;
}
.largest-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f7;
}
.largest-item:last-child { border-bottom: 0; }
.largest-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #202124;
}
.largest-item-size {
  font-size: 12px;
  color: #5f6368;
}
@media (max-width: 900px) {
  .storage-hero-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .storage-hero-stats { width: 100%; }
}

/* ── Home page ── */
.gd-home-page { padding: 8px 0 24px; }
.gd-home-welcome {
  text-align: center;
  padding: 24px 0 16px;
}
.gd-home-welcome h2 {
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--dark-text);
  margin: 0;
}
.gd-home-section-title {
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.gd-home-section-title:hover { color: var(--blue); }
.gd-suggested-file-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.1s;
}
.gd-suggested-file-card:hover { box-shadow: var(--fd-shadow); }
.gd-suggested-file-preview {
  height: 80px;
  background: #f1f3f4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.gd-suggested-file-name {
  font-size: 13px;
  color: var(--dark-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gd-suggested-grid,
.gd-suggested-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--fd-grid-tile-min), var(--fd-grid-tile-max)));
  justify-content: start;
  align-content: start;
  gap: 12px;
}
.gd-suggested-grid .gd-suggested-card,
.gd-suggested-files-grid .file-card {
  width: 100%;
  max-width: var(--fd-grid-tile-max);
}

/* ── Admin mode ── */
.sidebar .admin-nav-item { display: none; }
.app.admin-mode .new-btn-wrap,
.app.admin-mode .breadcrumb-bar,
.app.admin-mode .md3-chip-bar,
.app.admin-mode .home-warning,
.app.admin-mode .selection-bar { display: none !important; }
.app.admin-mode .sidebar .admin-nav-item { display: flex !important; }
.app.admin-mode .sidebar-nav > *:not(.admin-nav-item) { display: none !important; }
.app.admin-mode #home-page,
.app.admin-mode #activity-page,
.app.admin-mode #storage-page,
.app.admin-mode #trash-bin-banner { display: none !important; }

/* ── Audio player ── */
.audio-mini-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: min(720px, calc(100vw - 40px));
  min-height: 72px;
  background: linear-gradient(135deg, #292a2d 0%, #202124 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 600;
  box-shadow: 0 16px 44px rgba(0,0,0,.38), 0 2px 8px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}
.audio-mini-player canvas { width: 150px; height: 36px; flex: 0 0 150px; }
.audio-track-info { flex: 1 1 220px; min-width: 140px; }
.audio-title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-timeline { display: grid; grid-template-columns: 30px minmax(80px, 1fr) 30px; align-items: center; gap: 8px; margin-top: 8px; color: rgba(255,255,255,.62); font-size: 10px; font-variant-numeric: tabular-nums; }
.audio-timeline input { width: 100%; height: 3px; margin: 0; accent-color: #a78bfa; cursor: pointer; }
.audio-controls { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.audio-controls .btn-icon { color: rgba(255,255,255,.82); width: 34px; height: 34px; border-radius: 50%; }
.audio-controls .btn-icon svg { width: 18px; height: 18px; fill: currentColor; }
.audio-controls .btn-icon:hover { color: #fff; background: rgba(255,255,255,.12); }
.audio-controls .btn-icon:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.audio-controls .audio-toggle { width: 44px; height: 44px; margin: 0 3px; color: #17131f; background: #c4b5fd; box-shadow: 0 5px 14px rgba(124,92,252,.3); }
.audio-controls .audio-toggle svg { width: 22px; height: 22px; }
.audio-controls .audio-toggle:hover { color: #17131f; background: #d8ccff; transform: scale(1.04); }
.audio-controls .btn-icon[aria-pressed="true"] { color: #c4b5fd; background: rgba(167,139,250,.14); }
.audio-control-divider { width: 1px; height: 22px; margin: 0 4px; background: rgba(255,255,255,.14); }
@media (max-width: 720px) {
  .audio-mini-player { right: 12px; bottom: 12px; width: calc(100vw - 24px); gap: 8px; }
  .audio-mini-player canvas { width: 90px; flex-basis: 90px; }
  .audio-track-info { min-width: 100px; }
}
@media (max-width: 520px) {
  .audio-mini-player canvas { display: none; }
  .audio-control-divider, #audio-shuffle, #audio-repeat { display: none; }
}

/* ── Ripple effect ── */
.ripple-container { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,0,0,.1);
  transform: scale(0);
  animation: ripple-anim 0.5s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(2.5); opacity: 0; } }

/* ── Misc ── */
.user-role { font-size: 12px; color: var(--gray-text); }
.search-filter-apply { display: none; }
#search-filter-apply {
  height: 36px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
}
.is-resizing-sidebar * { user-select: none; }
/* Public zero-knowledge download page. The key remains in the URL fragment. */
.public-share-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f8fafd; }
.public-share-card { width: min(430px, 100%); display: grid; gap: 16px; padding: 36px; border: 1px solid #dadce0; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(60,64,67,.12); }
.public-share-card h1, .public-share-card p { margin: 0; }
.public-share-card p { color: #5f6368; line-height: 1.5; }
.public-share-logo { color: #1a73e8; font: 500 20px 'Google Sans', sans-serif; }
.public-share-card input { min-height: 48px; padding: 0 14px; border: 1px solid #dadce0; border-radius: 8px; font: inherit; }
