:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #182230;
  --muted: #667085;
  --line: #d9dee7;
  --brand: #176b87;
  --brand-dark: #0e4f66;
  --accent: #d96c3f;
  --soft: #e7f3f6;
  --danger: #b42318;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f6f8fb;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader section {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(330px, 100%);
  padding: 34px 28px 30px;
  background: #fff;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.page-loader strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.page-loader strong span {
  color: #15708a;
}

.page-loader em {
  color: #64748b;
  font-style: normal;
  text-align: center;
}

.loader-ring {
  position: relative;
  width: 84px;
  height: 84px;
  border: 8px solid #dce8f2;
  border-radius: 50%;
}

.loader-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 8px solid transparent;
  border-top-color: #15708a;
  border-right-color: #15708a;
  border-radius: 50%;
  animation: driveLoaderSpin 0.85s linear infinite;
}

.loader-ring span {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #ea5e30;
  border-radius: 50%;
  transform-origin: 6px 52px;
  animation: driveLoaderSpin 0.85s linear infinite;
}

@keyframes driveLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Final interaction safety: close buttons and view toggles must stay clickable. */
.flash-close {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  z-index: 10060 !important;
  pointer-events: auto !important;
}

.project-close,
.admin-user-modal-close {
  position: absolute !important;
  z-index: 10060 !important;
  pointer-events: auto !important;
}

.image-viewer-close,
.file-viewer-head button[aria-label="Close"],
.search-close-button {
  position: relative !important;
  z-index: 10060 !important;
  pointer-events: auto !important;
}

.view-toggle,
.view-toggle button,
.view-toggle span {
  pointer-events: auto !important;
}

@media (min-width: 761px) {
  body.app-user.drive-view-list .actions .select-item {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin-right: 6px !important;
  }

  body.app-user.drive-view-list .context-menu > summary {
    width: 30px !important;
    height: 30px !important;
  }
}

@media (max-width: 760px) {
  .site-user .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-user .topbar nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 8px;
    width: 100%;
  }

  .site-user .topbar nav a {
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
    white-space: nowrap;
  }

  .site-user .topbar nav .nav-login {
    width: 100%;
  }

  body.app-user .topbar > nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none;
  }

  body.app-user .topbar > nav::-webkit-scrollbar {
    display: none;
  }

  body.app-user .topbar > nav > a,
  body.app-user .topbar > nav > button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #475467 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.app-user .topbar > nav > button.search-open-button {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
  }

  body.app-user .topbar > nav > button.search-open-button span {
    display: none !important;
  }
}


@media (max-width: 760px) {
  body.app-user .profile-panel {
    padding-bottom: 92px !important;
  }

  body.app-user .profile-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 0 0 16px !important;
  }

  body.app-user .profile-grid article {
    padding: 15px 16px !important;
    border: 1px solid #44474f !important;
    border-radius: 12px !important;
    background: #2b2c30 !important;
    color: #e8eaed !important;
  }

  body.app-user .profile-grid strong {
    color: #e8eaed !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  body.app-user .profile-grid span {
    margin-top: 6px !important;
    color: #aeb4bd !important;
    font-size: 13px !important;
    opacity: 1 !important;
  }

  body.app-user .profile-form {
    display: grid !important;
    gap: 13px !important;
    max-width: none !important;
  }

  body.app-user .profile-form label {
    gap: 7px !important;
    color: #dfe3ea !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  body.app-user .profile-form input {
    min-height: 44px !important;
    padding: 10px 13px !important;
    border: 1px solid #4a4d55 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
  }

  body.app-user .profile-form input::placeholder {
    color: #667085 !important;
    opacity: 1 !important;
  }

  body.app-user .profile-form .primary {
    min-height: 46px !important;
    border-radius: 12px !important;
  }

  body.app-user .session-list {
    display: none !important;
  }

  body.app-user .trash-note {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 0 !important;
    margin: 2px 0 20px !important;
    padding: 14px 14px !important;
    border: 1px solid #44474f !important;
    border-radius: 14px !important;
    background: #2b2c30 !important;
    color: #e8eaed !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  body.app-user .trash-note span {
    display: block !important;
    min-width: 0 !important;
    color: #dfe3ea !important;
  }

  body.app-user .trash-note form {
    margin: 0 !important;
  }

  body.app-user .trash-note button {
    min-height: 36px !important;
    padding: 0 13px !important;
    border: 1px solid rgba(138, 180, 248, .32) !important;
    border-radius: 999px !important;
    background: rgba(138, 180, 248, .12) !important;
    color: #8ab4f8 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  body.app-user.mobile-light-mode .profile-grid article,
  body.app-user.mobile-light-mode .trash-note {
    border-color: #dbe3ee !important;
    background: #ffffff !important;
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .profile-grid strong,
  body.app-user.mobile-light-mode .trash-note span,
  body.app-user.mobile-light-mode .profile-form label {
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .profile-grid span {
    color: #526173 !important;
  }

  body.app-user.mobile-light-mode .profile-form input {
    border-color: #d7deea !important;
    background: #ffffff !important;
    color: #111827 !important;
  }

  body.app-user.mobile-light-mode .trash-note button {
    border-color: #d3e3fd !important;
    background: #eef5ff !important;
    color: #0b57d0 !important;
  }
}

@media (max-width: 760px) {
  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.app-user.drive-view-grid .drive-row {
    min-height: 188px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
  }

  body.app-user.drive-view-grid .drive-name {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    min-height: 42px;
    padding: 9px 34px 7px 8px !important;
  }

  body.app-user.drive-view-grid .drive-name strong {
    font-size: 13px !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.app-user.drive-view-grid .drive-thumb {
    height: 112px !important;
    margin: 0 8px 8px;
    border-radius: 8px;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 58px;
    height: 58px;
  }

  body.app-user.drive-view-grid .file-icon {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    font-size: 8px !important;
  }

  body.app-user.drive-view-grid .actions {
    top: 7px !important;
    right: 6px !important;
    gap: 3px !important;
  }

  body.app-user.drive-view-grid .actions .select-item {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
  }

  body.app-user.drive-view-grid .context-menu summary {
    width: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
  }

  body.app-user .new-menu {
    position: fixed !important;
    left: max(14px, env(safe-area-inset-left)) !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    z-index: 260 !important;
    width: 54px !important;
    max-width: 54px !important;
    height: 54px !important;
    margin: 0 !important;
  }

  body.app-user .new-menu > summary {
    display: grid !important;
    place-items: center !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d7e3ee !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22) !important;
    color: #0f172a !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  body.app-user .new-menu > summary span {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    color: #15708a !important;
    font-size: 34px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    transform: translateY(-1px);
  }

  body.app-user .new-menu[open] > summary {
    background: #e8f4fb !important;
    border-color: #8fcbea !important;
  }

  body.app-user .new-menu-panel {
    position: absolute !important;
    left: 0 !important;
    top: auto !important;
    bottom: calc(100% + 12px) !important;
    width: min(318px, calc(100vw - 28px)) !important;
    max-height: min(420px, calc(100vh - 120px)) !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.28) !important;
  }
}

.admin-checklist {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.admin-checklist li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid #d7e1ec;
  border-radius: 10px;
  background: #f8fbfd;
  color: #334155;
  font-weight: 700;
}

.admin-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 12px;
  top: 10px;
  color: #15708a;
}

.launch-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto 24px;
  padding: 26px 30px;
  width: min(1400px, calc(100vw - 56px));
  border: 1px solid #bcddeb;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(21, 112, 138, 0.12), rgba(235, 107, 55, 0.10)),
    #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
}

.launch-offer h2 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
  color: #172033;
}

.launch-offer p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #41516a;
  font-size: 18px;
  line-height: 1.55;
}

.launch-offer .button {
  white-space: nowrap;
}

.offer-badge {
  display: grid;
  place-items: center;
  min-width: 180px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(21, 112, 138, 0.24);
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}

.offer-badge strong {
  display: block;
  color: #15708a;
  font-size: 44px;
  line-height: 1;
}

.offer-badge span {
  display: block;
  margin-top: 8px;
  max-width: 130px;
  color: #5d6a7d;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .launch-offer {
    grid-template-columns: 1fr;
    align-items: start;
    width: min(430px, calc(100vw - 32px));
    padding: 22px;
  }

  .offer-badge {
    min-width: 0;
    min-height: 0;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .offer-badge span {
    max-width: none;
    margin: 0 0 0 12px;
  }

  .launch-offer .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  body.app-user .topbar > nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none;
  }

  body.app-user .topbar > nav::-webkit-scrollbar {
    display: none;
  }

  body.app-user .topbar > nav > a,
  body.app-user .topbar > nav > button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #475467 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.app-user .topbar > nav > button.search-open-button {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
  }

  body.app-user .topbar > nav > button.search-open-button span {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .app-user .topbar {
    gap: 10px;
    padding: 14px 16px 12px;
  }

  .app-user .topbar nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-user .topbar nav::-webkit-scrollbar {
    display: none;
  }

  .app-user .topbar nav a,
  .app-user .topbar .topbar-icon-button {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
  }

  .app-user .topbar .topbar-icon-button {
    min-width: 38px;
    padding: 0 10px;
  }

  .app-user .topbar .topbar-icon-button span {
    display: none;
  }

  .app-user .topbar .topbar-icon-button .gicon {
    width: 19px;
    height: 19px;
  }

  .search-modal-backdrop {
    align-items: start;
    padding: 82px 14px 14px;
  }

  .search-modal {
    width: 100%;
    max-height: calc(100vh - 110px);
    padding: 20px 16px 16px;
    border-radius: 18px;
  }

  .search-modal h2 {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .search-modal-form {
    grid-template-columns: 1fr;
  }

  .search-modal-form button {
    min-height: 44px;
  }

  .search-result-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .search-result-row small {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .app-user .topbar {
    gap: 12px;
    padding: 14px 16px 12px;
  }

  .app-user .topbar nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-user .topbar nav::-webkit-scrollbar {
    display: none;
  }

  .app-user .topbar .search {
    flex: 0 0 100%;
    width: 100%;
  }

  .app-user .topbar .search input {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
  }

  .app-user .topbar nav a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .app-user .drive-sidebar {
    padding-top: 10px;
  }

  .app-user .new-menu {
    width: 132px;
    max-width: 46vw;
    margin-bottom: 8px;
  }

  .app-user .new-menu > summary {
    min-height: 48px;
    padding: 0 16px;
    gap: 12px;
    border-radius: 14px;
    font-size: 15px;
  }

  .app-user .new-menu > summary span {
    font-size: 28px;
  }
}

@media (max-width: 760px) {
  .app-user .topbar {
    gap: 12px;
    padding: 14px 16px 12px;
  }

  .app-user .topbar nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-user .topbar nav::-webkit-scrollbar {
    display: none;
  }

  .app-user .topbar .search {
    flex: 0 0 100%;
    width: 100%;
  }

  .app-user .topbar .search input {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
  }

  .app-user .topbar nav a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .app-user .drive-sidebar {
    padding-top: 10px;
  }

  .app-user .new-menu {
    width: 132px;
    max-width: 46vw;
    margin-bottom: 8px;
  }

  .app-user .new-menu > summary {
    min-height: 48px;
    padding: 0 16px;
    gap: 12px;
    border-radius: 14px;
    font-size: 15px;
  }

  .app-user .new-menu > summary span {
    font-size: 28px;
  }
}

@media (max-width: 760px) {
  .app-user .topbar {
    gap: 12px;
    padding: 14px 16px 12px;
  }

  .app-user .topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .app-user .topbar .search {
    width: 100%;
  }

  .app-user .topbar .search input {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
  }

  .app-user .topbar nav a {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
  }

  .app-user .topbar nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-user .topbar nav::-webkit-scrollbar {
    display: none;
  }

  .app-user .topbar .search ~ a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: max-content;
  }

  .app-user .topbar .search {
    flex: 0 0 100%;
  }

  .app-user .drive-sidebar {
    padding-top: 10px;
  }

  .app-user .new-menu {
    width: 132px;
    max-width: 46vw;
    margin-bottom: 8px;
  }

  .app-user .new-menu > summary {
    min-height: 48px;
    padding: 0 16px;
    gap: 12px;
    border-radius: 14px;
    font-size: 15px;
  }

  .app-user .new-menu > summary span {
    font-size: 28px;
  }
}

@media (max-width: 760px) {
  .site-user .shell {
    width: 100%;
    margin: 0;
    padding: 0 14px 28px;
  }

  .site-user .auth-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding: 22px 0 34px;
  }

  .site-user .auth-intro {
    order: 2;
    padding: 0;
  }

  .site-user .auth-intro .eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .site-user .auth-intro h1 {
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.08;
  }

  .site-user .auth-intro p:not(.eyebrow) {
    max-width: none;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .site-user .auth-points {
    display: none;
  }

  .site-user .login-panel {
    order: 1;
    width: 100%;
    padding: 24px 18px 22px;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.12);
  }

  .site-user .login-panel h1 {
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1.1;
  }

  .site-user .login-panel .muted {
    margin: 0 0 18px;
    font-size: 14px;
  }

  .site-user .login-panel label {
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
  }

  .site-user .login-panel input {
    min-height: 50px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 16px;
  }

  .site-user .login-panel button.full {
    min-height: 52px;
    border-radius: 12px;
    font-size: 17px;
  }

  .site-user .signup-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 16px 0 0;
    padding: 12px 10px 0;
    border-top: 1px solid #e6edf5;
    font-size: 14px;
    line-height: 1.4;
  }

  .site-user .login-help {
    margin: 10px 0 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
  }

  .site-user .login-help a {
    color: #56647a;
  }

  .site-user .signup-switch a {
    color: var(--brand);
    font-weight: 850;
  }

  .site-user .otp-auth-page {
    padding-top: 18px;
  }

  .site-user .otp-panel {
    max-width: none;
  }

  .site-user .otp-summary {
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .site-user .otp-summary h1 {
    font-size: 34px;
  }

  .site-user .otp-summary p:not(.eyebrow) {
    font-size: 15px;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(23, 107, 135, 0.16), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(217, 108, 63, 0.10), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #eef3f8 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}
a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 22px;
  font-weight: 850;
  color: var(--text);
}
.brand span { color: var(--brand); }
nav { display: flex; align-items: center; gap: 14px; }
nav a {
  color: var(--muted);
  font-weight: 750;
}
nav a:hover { color: var(--brand); }
.nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
  border-radius: 7px;
}
.nav-login:hover {
  color: #fff;
  background: var(--brand-dark);
}
.search input { width: min(34vw, 360px); }
.topbar-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.topbar-icon-button:hover {
  color: var(--brand);
  border-color: #b9d8e3;
  background: #f8fcfe;
}
.topbar-icon-button .gicon {
  width: 20px;
  height: 20px;
}
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5300;
  display: grid;
  place-items: start center;
  padding: 78px 18px 18px;
  background: rgba(15, 23, 42, 0.45);
}
.search-modal-backdrop[hidden] {
  display: none;
}
.search-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: min(720px, calc(100vh - 110px));
  overflow: auto;
  padding: 24px;
  border: 1px solid #d6e2ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}
.search-modal h2 {
  margin: 0 42px 16px 0;
  font-size: 26px;
}
.search-modal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.search-modal-input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  font-size: 16px;
}
.search-modal-results {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.search-empty {
  margin: 0;
  padding: 26px 14px;
  color: #64748b;
  text-align: center;
  border: 1px dashed #d6e2ee;
  border-radius: 14px;
  background: #f8fbff;
}
.search-result-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #fff;
}
.search-result-row:hover {
  background: #f6fbfe;
  border-color: #c9e2eb;
}
.search-result-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-row small {
  color: #64748b;
}
.search-result-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: #ef4438;
  font-size: 10px;
  font-weight: 900;
}
.search-result-icon.folder {
  color: #7a4b00;
  background: #ffe8a3;
}
.shell { width: min(1120px, calc(100% - 32px)); margin: 28px auto; }
.shell:has(.drive-app) {
  width: 100%;
  margin: 0;
}
.notice {
  padding: 12px 14px;
  margin-bottom: 18px;
  background: #e9f7f2;
  border: 1px solid #b9e5d5;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.notice.bad { background: #fff0ef; border-color: #f6b7b0; }
.flash-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 33, 36, 0.28);
}
.flash-modal {
  position: relative;
  width: min(420px, calc(100vw - 40px));
  padding: 30px 28px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.22);
}
.flash-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3c4043;
  font-size: 28px;
}
.flash-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: #188038;
  font-size: 28px;
  font-weight: 900;
}
.flash-modal.bad .flash-icon {
  background: #b42318;
}
.flash-modal h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.flash-modal p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.confirm-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 33, 36, 0.42);
}

.admin-warning {
  margin: 0 0 18px;
  padding: 14px 16px;
  color: #7a2e0e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
}

.admin-warning strong {
  color: #9a3412;
}

.delete-confirm-form {
  grid-template-columns: 1fr;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5eaf1;
}

.session-list,
.activity-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.session-list .table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.session-list article,
.activity-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
}

.session-list span,
.activity-list p {
  display: block;
  margin: 4px 0 0;
  color: #64748b;
}

.activity-list small,
.session-list small {
  color: #64748b;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .session-list .table-head,
  .session-list article,
  .activity-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-list small,
  .session-list small {
    white-space: normal;
  }
}
.confirm-popup {
  position: relative;
  width: min(430px, calc(100vw - 40px));
  padding: 30px 28px 26px;
  text-align: center;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.24);
}
.confirm-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3c4043;
  font-size: 28px;
}
.confirm-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: #d93025;
  font-size: 28px;
  font-weight: 900;
}
.confirm-popup h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.confirm-popup p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}
.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.confirm-actions button {
  min-width: 110px;
  min-height: 42px;
  border-radius: 999px;
}
.confirm-cancel {
  background: #fff;
}
.confirm-ok {
  color: #fff;
  background: #0b57d0;
  border-color: #0b57d0;
}
.panel {
  width: min(460px, 100%);
  margin: 60px auto;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); }
h2 { margin-top: 30px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}
.lead {
  max-width: 620px;
  color: #475467;
  font-size: 18px;
  line-height: 1.65;
}
.muted, small, .crumbs { color: var(--muted); }
label { display: grid; gap: 6px; font-weight: 650; margin: 0 0 14px; }
input, button {
  font: inherit;
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: 10px 12px;
}
input { width: 100%; background: #fff; }
button {
  cursor: pointer;
  background: #fff;
  font-weight: 750;
}
button.primary, .primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
button.primary:hover { background: var(--brand-dark); }
button.full { width: 100%; min-height: 46px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 850;
}
.button.ghost {
  background: #fff;
  color: var(--brand-dark);
}
button.danger { color: var(--danger); border-color: #f2b8b5; }
.site-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: calc(100vh - 132px);
  padding: clamp(30px, 6vw, 74px);
  margin-bottom: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(231,243,246,0.72)),
    radial-gradient(circle at 78% 18%, rgba(23,107,135,0.14), transparent 28%);
  border: 1px solid #dbe6ee;
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(16, 24, 40, 0.10);
}
.site-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
}
.hero-copy,
.hero-preview {
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.hero-metrics span {
  min-height: 82px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  color: #526173;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}
.hero-metrics strong {
  display: block;
  margin-bottom: 5px;
  color: #001d35;
  font-size: 15px;
}
.hero-preview {
  min-width: 0;
}
.preview-window {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 107, 135, 0.20);
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.18);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  background: #f7fafc;
  border-bottom: 1px solid var(--line);
}
.preview-bar strong {
  margin-left: auto;
  color: #526173;
  font-size: 13px;
}
.preview-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c6d2de;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.preview-toolbar em {
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}
.preview-grid div {
  min-height: 112px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e4e9f0;
  border-radius: 8px;
}
.preview-grid b {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 28px;
  margin-bottom: 18px;
  color: var(--brand);
  background: var(--soft);
  border-radius: 6px;
  font-size: 11px;
}
.preview-grid span {
  display: block;
  font-weight: 780;
  overflow-wrap: anywhere;
}
.preview-grid small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-weight: 650;
}
.preview-share {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 18px 18px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #176b87);
  border-radius: 8px;
}
.preview-share small { color: rgba(255, 255, 255, 0.78); }
.feature-band {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: start;
  padding: 34px 0 62px;
}
.feature-band h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
}
.feature-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.feature-list article {
  min-height: 172px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feature-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}
.feature-list span {
  color: var(--muted);
  line-height: 1.55;
}
.home-showcase,
.home-process,
.home-cta,
.home-value,
.home-usecases {
  margin: 0 0 28px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}
.home-showcase h2,
.home-process h2,
.home-cta h2,
.home-value h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}
.showcase-grid,
.process-steps,
.value-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.process-steps,
.value-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.showcase-grid article,
.process-steps article,
.value-list article {
  min-height: 170px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e1e7ef;
  border-radius: 8px;
}
.showcase-grid strong,
.process-steps strong,
.value-list strong {
  display: block;
  margin-bottom: 9px;
  color: #001d35;
  font-size: 18px;
}
.showcase-grid span,
.process-steps span,
.value-list span,
.home-cta p {
  color: #526173;
  line-height: 1.55;
}
.process-steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
}
.home-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(14,79,102,0.96), rgba(23,107,135,0.92)),
    var(--brand-dark);
  color: #fff;
}
.home-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}
.home-cta .eyebrow,
.home-cta h2 {
  color: #fff;
}
.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}
.home-cta .button.ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,0.45);
}
.button.apk-download-button {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #15708a);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}
.button.apk-download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
}
.home-cta .button.apk-download-button {
  color: #0f172a;
  background: #fff;
  border-color: #fff;
  box-shadow: none;
}
.home-usecases {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 18px;
  align-items: center;
}
.home-usecases div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-usecases span {
  padding: 10px 14px;
  color: #0e4f66;
  background: #e7f3f6;
  border: 1px solid #cce3eb;
  border-radius: 999px;
  font-weight: 800;
}
.home-plans,
.home-faq {
  display: grid;
  gap: 22px;
  margin: 24px auto;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
}
.home-plans > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-plans article {
  padding: 18px;
  background: #f8fbfd;
  border: 1px solid #dbe7ee;
  border-radius: 10px;
}
.home-plans strong,
.home-plans span {
  display: block;
}
.home-plans span {
  margin-top: 8px;
  color: #526173;
  line-height: 1.5;
}
.home-faq details {
  padding: 16px 18px;
  border: 1px solid #dbe7ee;
  border-radius: 10px;
  background: #f8fbfd;
}
.home-faq summary {
  cursor: pointer;
  font-weight: 850;
}
.home-faq p {
  margin: 10px 0 0;
  color: #526173;
  line-height: 1.55;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 4vw, 48px);
  color: #526173;
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid var(--line);
}
.site-footer strong {
  color: #001d35;
}
.site-footer a {
  color: #0b57d0;
  font-weight: 750;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.policy-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}
.policy-page h1 {
  margin: 8px 0 12px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
}
.policy-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.policy-list article,
.contact-card,
.policy-grid article {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
}
.policy-list h2,
.contact-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.policy-list p,
.contact-card p,
.contact-card span,
.policy-grid span {
  margin: 0;
  color: #526173;
  line-height: 1.58;
}
.contact-card {
  margin-top: 28px;
}
.contact-card a {
  color: #0b57d0;
  font-size: 22px;
  font-weight: 900;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.policy-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #001d35;
  font-size: 17px;
}
.policy-updated {
  margin: 24px 0 0;
  color: #64748b;
  font-weight: 700;
}
.admin-dashboard {
  display: grid;
  gap: 18px;
}
.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}
.admin-hero .lead {
  margin-bottom: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.stat-grid article {
  padding: 18px;
  min-height: 118px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--brand-dark);
  overflow-wrap: anywhere;
}
.stat-grid span {
  color: var(--muted);
  font-weight: 750;
}
.admin-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.table-head h2 {
  margin: 0;
}
.table-head a {
  color: var(--brand);
  font-weight: 850;
}
.role {
  display: inline-grid;
  place-items: center;
  min-width: 66px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--brand-dark);
  background: var(--soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.role.admin {
  color: #8a3f1d;
  background: #fff0e8;
}
.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 440px);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  min-height: calc(100vh - 132px);
}
.auth-intro {
  padding: clamp(10px, 3vw, 32px) 0;
}
.auth-intro h1 {
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.05;
}
.auth-intro p:not(.eyebrow) {
  max-width: 560px;
  color: #475467;
  font-size: 18px;
  line-height: 1.65;
}
.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.auth-points span {
  padding: 9px 12px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid #cfe4ea;
  border-radius: 7px;
  font-weight: 750;
}
.login-panel {
  width: 100%;
  padding: clamp(24px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 107, 135, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(16, 24, 40, 0.14);
}
.shell > .login-panel {
  max-width: 460px;
  margin: 60px auto;
}
.login-panel h1 {
  font-size: 32px;
}
.login-panel h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}
.otp-auth-page {
  display: flex;
  justify-content: center;
}
.otp-panel {
  max-width: 520px;
}
.otp-summary {
  margin: -4px 0 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid #e6edf5;
}
.otp-summary h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.05;
}
.otp-summary p:not(.eyebrow) {
  margin: 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.55;
}
.login-help {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.signup-switch {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}
.signup-switch a,
.resend-form button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
}
.resend-form {
  margin-top: 10px;
  text-align: center;
}
.otp-input {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 6px;
}
.otp-dev-note {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #0f3f7a;
}
.otp-dev-note small {
  color: #53657d;
}
.image-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 33, 36, 0.82);
}
.image-viewer {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 96vw);
  height: min(780px, 88vh);
  overflow: hidden;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}
.image-viewer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 14px 0 20px;
  background: #202124;
  color: #fff;
}
.image-viewer-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-viewer-count {
  color: #bdc1c6;
  font-size: 14px;
}
.image-viewer-close,
.image-viewer-nav {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.image-viewer-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.image-viewer-close:hover {
  background: rgba(255, 255, 255, .12);
}
.image-viewer-close svg,
.image-viewer-nav svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.image-viewer-img {
  align-self: center;
  justify-self: center;
  max-width: 100%;
  max-height: calc(88vh - 72px);
  object-fit: contain;
}
.image-viewer-nav {
  position: absolute;
  top: 50%;
  width: 54px;
  height: 72px;
  border-radius: 999px;
  background: rgba(32, 33, 36, 0.62);
  transform: translateY(-50%);
}
.image-viewer-nav:hover {
  background: rgba(32, 33, 36, 0.82);
}
.image-viewer-nav svg {
  width: 34px;
  height: 34px;
}
.image-viewer-prev {
  left: 18px;
}
.image-viewer-next {
  right: 18px;
}
.image-viewer-nav:disabled {
  opacity: 0.28;
}
.dashboard { display: grid; gap: 18px; }
.drive-app {
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr) 56px;
  min-height: calc(100vh - 69px);
  background: #f7f9fc;
}
.drive-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px 10px;
  overflow-y: visible;
  position: relative;
}
.new-menu {
  width: 128px;
  position: relative;
  z-index: 60;
}
.new-menu > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 0 24px;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 2px 7px rgba(16, 24, 40, 0.22);
  color: #111827;
  font-size: 18px;
}
.new-menu > summary span {
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
}
.new-menu-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  top: calc(100% + 12px);
  width: 402px;
  margin-top: 0;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(60, 64, 67, 0.3);
}
.new-menu-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px;
  margin: 0;
  color: #303134;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}
.new-menu .new-menu-row {
  position: static;
  right: auto;
  top: auto;
  z-index: auto;
  box-shadow: none;
}
.new-menu form.new-menu-row {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}
.new-menu-row:hover {
  background: #f1f3f4;
}
.new-menu-row:nth-child(2),
.new-menu-row:nth-child(4) {
  border-top: 1px solid #dadce0;
  margin-top: 6px;
  padding-top: 6px;
}
.new-menu-row button,
.new-menu-row label {
  display: block;
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #303134;
  text-align: left;
  font-weight: 500;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}
.new-project-trigger span:not(.menu-icon) {
  font-size: 18px;
  white-space: nowrap;
}
.new-menu-row small {
  justify-self: end;
  color: #3c4043;
  font-size: 14px;
}
.menu-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #5f6368;
}
.gicon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.project-icon {
  color: #00a1c7;
}
.hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 33, 36, 0.42);
}
.project-modal-backdrop[hidden] {
  display: none;
}
body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  body {
    background: #f6f8fb;
  }
  .topbar {
    position: static;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .brand {
    font-size: 24px;
  }
  .topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .topbar nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d9e2ec;
    border-radius: 7px;
    background: #fff;
  }
  .topbar nav .nav-login {
    border-color: var(--brand);
    background: var(--brand);
  }
  .shell {
    width: min(100% - 24px, 680px);
    margin: 16px auto;
  }
  .site-hero {
    gap: 22px;
    padding: 22px;
    border-radius: 12px;
  }
  .site-hero::before { display: none; }
  .hero-copy h1,
  .auth-intro h1 {
    font-size: 36px;
    line-height: 1.08;
  }
  .lead,
  .hero-copy p,
  .auth-intro p {
    font-size: 16px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-metrics span {
    min-height: auto;
  }
  .preview-window,
  .policy-page,
  .login-panel,
  .admin-hero,
  .admin-create-form,
  .admin-table,
  .admin-card {
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .feature-band {
    padding: 18px 0 34px;
  }
  .feature-list article {
    min-height: auto;
  }
  .policy-page {
    padding: 22px;
  }
  .policy-page h1 {
    font-size: 34px;
  }
  .contact-card a {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  .auth-page {
    gap: 18px;
  }
  .login-panel {
    padding: 22px;
  }
  .drive-app {
    min-height: auto;
  }
  .drive-sidebar {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #d9e2ec;
  }
  .drive-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .drive-nav-item {
    min-height: 44px;
    padding: 0 10px;
    font-size: 14px;
  }
  .drive-content {
    padding: 12px;
  }
  .drive-panel {
    padding: 18px 14px;
  }
  .drive-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .panel-tools,
  .view-toggle {
    width: 100%;
  }
  .view-toggle {
    justify-content: flex-start;
  }
  body.drive-view-grid .drive-table {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body.drive-view-grid .drive-row {
    min-height: auto;
  }
  body.drive-view-grid .drive-thumb {
    height: 190px;
  }
  body.drive-view-list .drive-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .filter-row {
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .filter-row button {
    flex: 0 0 auto;
  }
  .admin-page-head,
  .admin-toolbar,
  .admin-row-actions,
  .admin-user-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-toolbar form,
  .admin-row-actions form,
  .admin-row-actions button {
    width: 100%;
  }
  .admin-tabs {
    border-radius: 8px;
  }
  .admin-table th,
  .admin-table td {
    min-width: 140px;
  }
  .admin-user-modal {
    width: 100%;
    padding: 20px;
  }
  .upload-panel {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }
}
.project-modal {
  position: relative;
  width: min(1040px, calc(100vw - 48px));
  padding: 40px 60px 56px;
  background: #fff;
  border-radius: 34px;
  box-shadow: 0 18px 50px rgba(32, 33, 36, 0.25);
}
.project-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3c4043;
  font-size: 34px;
  font-weight: 300;
}
.modal-brand {
  margin: 0 0 42px;
  color: #3c4043;
  font-size: 22px;
}
.project-modal h2 {
  margin: 0 0 22px;
  color: #1a73e8;
  font-size: clamp(38px, 4vw, 48px);
  font-weight: 650;
}
.project-copy {
  max-width: 920px;
  margin: 0 0 34px;
  color: #3c4043;
  font-size: 22px;
  line-height: 1.35;
}
.project-name-input {
  width: 100%;
  height: 70px;
  padding: 0 38px;
  border: 1.5px solid #1a73e8;
  border-radius: 36px;
  color: #202124;
  font-size: 20px;
  outline: 0;
}
.project-name-input:focus {
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.12);
}
.project-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 50px;
}
.project-modal-foot small {
  color: #5f6368;
  font-size: 16px;
}
.project-modal-foot a {
  text-decoration: underline;
}
.project-modal-foot div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.text-action {
  border: 0;
  background: transparent;
  color: #9aa0a6;
  font-size: 16px;
}
.project-submit {
  min-width: 162px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
}
.project-submit:disabled {
  background: #e0e0e0;
  color: #9aa0a6;
  cursor: not-allowed;
}
.upload-panel {
  --upload-progress: 0%;
  position: fixed;
  right: 26px;
  bottom: 22px;
  z-index: 120;
  width: min(452px, calc(100vw - 32px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 6px 24px rgba(60, 64, 67, 0.28);
}
.upload-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 0 18px 0 22px;
  background: #fff;
}
.upload-panel-head strong {
  font-size: 20px;
  font-weight: 550;
}
.upload-panel-head div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.upload-panel-head button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #202124;
  font-size: 28px;
  font-weight: 350;
}
.upload-pause {
  width: auto !important;
  padding: 0 8px !important;
  color: #0b57d0 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}
.upload-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 18px 0 22px;
  background: #e9eef6;
  color: #4b5563;
}
.upload-status::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--upload-progress);
  background: rgba(26, 115, 232, 0.14);
}
.upload-status span,
.upload-status button {
  position: relative;
  z-index: 1;
}
.upload-status button {
  border: 0;
  background: transparent;
  color: #0b57d0;
  font-weight: 600;
}
.upload-list {
  display: grid;
  background: #fff;
}
.upload-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px 0 22px;
  border-top: 1px solid #eef1f5;
}
.upload-file-icon {
  width: 18px;
  height: 18px;
  background: #eef8d7;
  border-radius: 4px;
}
.upload-item span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3c4043;
  font-size: 18px;
}
.upload-item em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}
.upload-result {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #1a73e8;
  font-size: 18px;
}
.upload-result:empty {
  border: 0;
}
.upload-item.current .upload-result:empty {
  border: 4px solid #e3e7ee;
  border-top-color: #b7c0cc;
  border-radius: 50%;
  animation: upload-spin 0.9s linear infinite;
}
.upload-item.done .upload-result,
.upload-panel.done .upload-item.done .upload-result {
  border: 0;
  animation: none;
  color: #188038;
  font-weight: 900;
}
.upload-item.error .upload-result,
.upload-panel.error .upload-item.error .upload-result {
  border: 0;
  animation: none;
  color: #b42318;
  font-weight: 900;
}
.upload-item.paused .upload-result:empty {
  border: 4px solid #e3e7ee;
  border-top-color: #9aa0a6;
  border-radius: 50%;
  animation-play-state: paused;
}
.upload-panel.collapsed .upload-status,
.upload-panel.collapsed .upload-list {
  display: none;
}
@keyframes upload-spin {
  to { transform: rotate(360deg); }
}
.inline-upload-row {
  --inline-upload-progress: 0%;
}
.inline-upload-name {
  position: relative;
}
.inline-upload-meta {
  grid-column: 1 / -1;
  color: #5f6368;
  font-size: 12px;
  font-weight: 600;
}
.inline-upload-progress {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: #dfe7f3;
  border-radius: 999px;
}
.inline-upload-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #1a73e8;
  border-radius: inherit;
  transition: width 0.2s ease;
}
.inline-upload-row.done .inline-upload-progress i {
  background: #188038;
}
.inline-upload-row.error .inline-upload-progress i {
  background: #b42318;
}
.inline-upload-actions {
  display: flex;
  justify-content: flex-end;
}
.inline-upload-pause {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d0d7e2;
  border-radius: 999px;
  color: #0b57d0;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.inline-upload-pause:disabled {
  color: #188038;
  cursor: default;
}
@media (max-width: 760px) {
  .upload-panel.mobile-upload-mode {
    display: none;
  }
  body.app-user.drive-view-grid .inline-upload-row {
    min-height: 188px !important;
  }
  body.app-user.drive-view-grid .inline-upload-row .drive-name {
    min-height: 122px;
    padding: 42px 10px 8px;
  }
  body.app-user.drive-view-grid .inline-upload-row .inline-upload-meta,
  body.app-user.drive-view-grid .inline-upload-row .inline-upload-progress {
    margin-top: 6px;
  }
  body.app-user.drive-view-grid .inline-upload-actions {
    position: absolute;
    right: 8px;
    bottom: 8px;
  }
  body.app-user.drive-view-list .inline-upload-row,
  body.app-user.drive-view-comfortable .inline-upload-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  body.app-user.drive-view-list .inline-upload-row .owner-cell,
  body.app-user.drive-view-list .inline-upload-row time,
  body.app-user.drive-view-comfortable .inline-upload-row .owner-cell,
  body.app-user.drive-view-comfortable .inline-upload-row time {
    display: none;
  }
}
.drive-nav {
  display: grid;
  gap: 6px;
}
.drive-nav-toggle {
  display: none;
}
.drive-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 500;
}
.drive-nav-item span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  color: #202124;
}
.drive-nav-item .gicon {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
  color: #1f2937;
}
.drive-nav-item.active {
  background: #c2e7ff;
  color: #001d35;
}
.drive-nav-item.active span,
.drive-nav-item.active .gicon {
  color: #0b4f71;
}
.storage-card {
  display: grid;
  gap: 10px;
  padding: 0 24px;
  color: #1f2937;
}
.storage-card strong {
  font-size: 18px;
  font-weight: 500;
}
.storage-card span {
  color: #344054;
}
.storage-meter {
  width: 100%;
  height: 5px;
  background: #d6dae0;
  border-radius: 99px;
  overflow: hidden;
}
.storage-meter i {
  display: block;
  height: 100%;
  background: #1a73e8;
}
.storage-meter.large {
  height: 12px;
  margin: 14px 0;
}
.sync-card {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 16px 28px 16px;
  background: #bde3ff;
  border-radius: 10px;
  color: #003b63;
  position: relative;
}
.sync-card button {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 26px;
  color: #003b63;
}
.sync-card strong {
  max-width: 210px;
  font-size: 16px;
  line-height: 1.38;
}
.sync-card a {
  color: #0057b8;
  text-decoration: underline;
  font-weight: 650;
}
.download-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  min-height: 34px;
  border: 1px solid #00639b;
  border-radius: 999px;
  text-decoration: none !important;
}
.apk-sidebar-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  padding: 12px 14px;
  color: #0f172a;
  text-decoration: none;
  background: linear-gradient(135deg, #e9f8fb, #ffffff);
  border: 1px solid #c8e3ec;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}
.apk-sidebar-card span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #15708a;
  border-radius: 12px;
}
.apk-sidebar-card .gicon {
  width: 20px;
  height: 20px;
}
.apk-sidebar-card strong {
  font-size: 14px;
  line-height: 1.1;
}
.apk-sidebar-card small {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}
.drive-content {
  min-width: 0;
  padding: 12px 0 20px;
}
.drive-panel {
  min-height: calc(100vh - 92px);
  padding: 26px 24px;
  background: #fff;
  border-radius: 18px;
}
.drive-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.drive-panel-head h1 {
  font-size: 32px;
  font-weight: 450;
}
.info-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #202124;
  border-radius: 50%;
  font-weight: 800;
}
.panel-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.view-toggle {
  display: inline-flex;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid #8eb5d1;
  border-radius: 999px;
}
.view-toggle button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 38px;
  padding: 0;
  border: 0;
  border-right: 1px solid #8eb5d1;
  border-radius: 0;
  background: transparent;
  color: #001d35;
  font-size: 17px;
}
.view-toggle button:last-child {
  border-right: 0;
}
.view-toggle button.active {
  background: #c2e7ff;
}
.drive-view-list .drive-row {
  min-height: 44px;
}
.drive-view-list .drive-row small,
.drive-view-list .drive-row strong {
  font-size: 14px;
}
.drive-view-grid .drive-head {
  display: none;
}
.drive-view-grid .drive-table {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.drive-view-grid .drive-row {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 178px;
  padding: 18px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
}
.drive-view-grid .drive-name {
  display: grid;
  gap: 12px;
}
.drive-view-grid .file-icon {
  width: 52px;
  height: 42px;
}
.drive-view-grid .actions {
  justify-content: flex-start;
}
.suggested-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  font-size: 22px;
}
.drive-table {
  display: grid;
  width: 100%;
}
.drive-head,
.drive-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(190px, 1fr) 160px 180px minmax(220px, auto);
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 8px;
  border-bottom: 1px solid #d2d7de;
}
.drive-head {
  min-height: 42px;
  color: #4b5563;
  font-weight: 750;
}
.drive-row:hover {
  background: #f8fafc;
}
.drive-name {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.drive-row strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 650;
}
.drive-row small {
  color: #4b5563;
  font-size: 16px;
}
.file-icon {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #eef3f8;
  color: #5f6368;
  font-size: 10px;
  font-weight: 900;
}
.drive-row > .file-icon {
  grid-column: 1;
}
.drive-row > .file-icon + strong {
  margin-left: 48px;
}
.drive-view-grid .drive-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.drive-view-grid .drive-head {
  display: none;
}
.drive-view-grid .drive-row {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  background: #f0f4f9;
  border: 0;
  border-radius: 10px;
}
.drive-view-grid .drive-name {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px 12px 10px;
}
.drive-view-grid .drive-thumb {
  display: grid;
  grid-column: 1 / -1;
  order: 3;
  width: 100%;
  height: 182px;
  margin-top: 12px;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
}
.drive-view-grid .drive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drive-view-grid .file-icon {
  display: inline-grid;
  order: 1;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0;
  background: #ea4335;
  color: #fff;
  border-radius: 3px;
  font-size: 8px;
}
.drive-view-grid .drive-name strong {
  order: 2;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #202124;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 650;
}
.drive-view-grid .drive-row > small {
  display: none;
}
.drive-view-grid .actions {
  justify-content: flex-end;
  padding: 0 12px 12px;
}
.drive-view-grid .actions details,
.drive-view-grid .actions form {
  display: none;
}
.drive-view-grid .actions details:nth-of-type(1),
.drive-view-grid .actions form:last-child {
  display: inline;
}
.drive-view-grid .actions button,
.drive-view-grid summary {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}
.drive-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: #5f6368;
  border: 1px dashed #d2d7de;
  border-radius: 14px;
  text-align: center;
  padding: 28px;
}
.down-caret {
  font-size: 18px;
  vertical-align: middle;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}
.filter-row button {
  min-width: 108px;
  min-height: 40px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid #7d8793;
  border-radius: 8px;
  color: #1f2937;
  font-weight: 550;
}
.filter-row span {
  margin-left: 12px;
}
.drive-thumb {
  display: none;
}
.drive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.folder-thumb,
.file-thumb {
  place-items: center;
  color: #fff;
  background: #5f6368;
  font-weight: 900;
}
.folder-thumb {
  background: #fbbc04;
  color: #202124;
}
.drive-view-list .drive-row {
  grid-template-columns: minmax(260px, 1.65fr) minmax(180px, 1fr) 120px 140px minmax(210px, auto);
  min-height: 48px;
}
.drive-view-list .drive-row small,
.drive-view-list .drive-row strong {
  font-size: 14px;
}
.drive-view-grid .drive-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.drive-view-grid .drive-head {
  display: none;
}
.drive-view-grid .drive-row {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
  min-height: 216px;
  padding: 0;
  overflow: hidden;
  background: #f0f4f9;
  border: 0;
  border-radius: 10px;
}
.drive-view-grid .drive-name {
  display: grid;
  gap: 0;
}
.drive-view-grid .drive-thumb {
  display: grid;
  width: 100%;
  height: 156px;
  overflow: hidden;
  background: #fff;
  border: 8px solid #f0f4f9;
  border-radius: 10px;
}
.drive-view-grid .file-icon {
  display: inline-grid;
  margin: 10px 0 0 14px;
  background: #ea4335;
  color: #fff;
}
.drive-view-grid .drive-name strong {
  margin: -28px 46px 8px 60px;
  min-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}
.drive-view-grid .drive-row > small {
  display: none;
}
.drive-view-grid .actions {
  justify-content: flex-end;
  padding: 0 12px 12px;
}
.drive-view-grid .actions details,
.drive-view-grid .actions form {
  display: none;
}
.drive-view-grid .actions details:nth-of-type(1),
.drive-view-grid .actions form:last-child {
  display: inline;
}
.drive-view-grid .actions button,
.drive-view-grid summary {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}
.drive-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding-top: 96px;
  color: #1a73e8;
  font-weight: 800;
}
.drive-rail span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.drive-rail .gicon {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}
.drive-rail b {
  margin-top: 42px;
  color: #111827;
  font-size: 30px;
}
.storage-page {
  max-width: 620px;
  padding: 28px;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
}
.storage-page strong {
  display: block;
  font-size: 42px;
  color: var(--brand-dark);
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.usage { min-width: 240px; }
.usage div {
  height: 10px;
  margin: 8px 0 4px;
  background: #e8ecf1;
  border-radius: 99px;
  overflow: hidden;
}
.usage i { display: block; height: 100%; background: var(--brand); }
.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tools form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.list {
  display: grid;
  gap: 8px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.item-main, .row > a {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
}
.item-main strong, .row strong { overflow-wrap: anywhere; }
.icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 32px;
  border-radius: 6px;
  background: #eef6f4;
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
details {
  position: relative;
}
summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font-weight: 750;
  background: #fff;
}
details form {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: 260px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.15);
}
.new-menu form.new-menu-row,
.new-menu button.new-menu-row {
  position: static !important;
  right: auto !important;
  top: auto !important;
  z-index: auto !important;
  width: 100% !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.actions > form { display: inline; }
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}
th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .topbar, .hero, nav, .row { align-items: stretch; flex-direction: column; }
  nav, .tools { display: grid; grid-template-columns: 1fr; width: 100%; }
  .site-hero, .auth-page, .feature-band, .feature-list, .stat-grid, .hero-metrics, .policy-grid, .showcase-grid, .process-steps, .value-list, .home-usecases { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer nav { justify-content: flex-start; }
  .drive-app { grid-template-columns: 1fr; }
  .drive-sidebar { position: static; }
  .drive-rail { display: none; }
  .drive-panel { border-radius: 0; min-height: auto; }
  .drive-head { display: none; }
  .drive-row {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .drive-name { align-items: flex-start; }
  .new-menu { width: 100%; }
  .new-menu > summary { min-height: 56px; border-radius: 14px; }
  .admin-hero, .table-head { align-items: stretch; flex-direction: column; }
  .admin-table { overflow-x: auto; }
  .site-hero, .auth-page { min-height: auto; }
  .hero-copy h1, .auth-intro h1 { font-size: 40px; }
  .home-showcase, .home-process, .home-cta, .home-value, .home-usecases { padding: 22px; }
  .showcase-grid article, .process-steps article, .value-list article { min-height: auto; }
  .home-cta { align-items: stretch; flex-direction: column; }
  .home-cta .button { width: 100%; }
  .home-cta-actions { width: 100%; }
  .home-usecases span { width: 100%; border-radius: 8px; }
  .preview-share, .preview-toolbar { flex-direction: column; }
  .search input, .usage { width: 100%; min-width: 0; }
  .tools form, .item-main, .row > a { grid-template-columns: 1fr; }
  .actions { justify-content: stretch; }
  .actions button, .actions details { flex: 1; }
  details form { right: auto; left: 0; width: min(84vw, 300px); }
}

/* Final Google Drive-style card layout override. Keep this after older grid rules. */
body.drive-view-grid .drive-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
body.drive-view-grid .drive-head {
  display: none;
}
body.drive-view-grid .drive-row {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  background: #f0f4f9;
  border: 0;
  border-radius: 10px;
}
body.drive-view-grid .drive-name {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 12px 10px;
}
body.drive-view-grid .drive-thumb {
  display: grid;
  grid-column: 1 / -1;
  order: 4;
  width: 100%;
  height: 182px;
  margin-top: 12px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 6px;
}
body.drive-view-grid .drive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.drive-view-grid .file-icon {
  display: inline-grid;
  order: 1;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0;
  background: #ea4335;
  color: #fff;
  border-radius: 3px;
  font-size: 8px;
}
body.drive-view-grid .drive-name strong {
  display: block;
  order: 2;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  color: #202124;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 650;
}
body.drive-view-grid .drive-row > small {
  display: none;
}
body.drive-view-grid .actions {
  justify-content: flex-end;
  padding: 0 12px 12px;
}

/* Final Google Drive-style list layout override. */
body.drive-view-list .drive-table {
  display: grid;
  margin-top: 10px;
}
body.drive-view-list .drive-head,
body.drive-view-list .drive-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.7fr) minmax(150px, 0.75fr) minmax(170px, 0.8fr) minmax(130px, 0.55fr) 90px;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0 10px;
  border-bottom: 1px solid #dadce0;
}
body.drive-view-list .drive-head {
  min-height: 48px;
  color: #3c4043;
  font-size: 16px;
  font-weight: 650;
}
.sort-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: #0b4f71;
  background: #c2e7ff;
  border-radius: 50%;
  font-size: 20px;
}
body.drive-view-list .drive-row:hover {
  background: #f8fafc;
}
body.drive-view-list .drive-row.selected {
  background: #c2e7ff !important;
  outline: 0;
}
body.drive-view-list .drive-name {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
body.drive-view-list .drive-thumb {
  display: none;
}
body.drive-view-list .file-icon {
  display: inline-grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0;
  background: #ea4335;
  color: #fff;
  border-radius: 3px;
  font-size: 8px;
}
body.drive-view-list .drive-name strong,
body.drive-view-list .drive-row > strong {
  min-width: 0;
  overflow: hidden;
  color: #202124;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 550;
}
.owner-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #3c4043;
  font-size: 16px;
}
.owner-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  color: #fff;
  background: #176b87;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}
body.drive-view-list time,
body.drive-view-list .drive-row > small {
  color: #3c4043;
  font-size: 16px;
}
body.drive-view-list .actions {
  justify-content: flex-end;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.drive-view-list .actions form {
  display: inline-flex;
}
body.drive-view-list .actions button {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}
body.drive-view-list .select-item {
  display: inline-grid;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  opacity: 0;
}
body.drive-view-list .context-menu > summary {
  width: 34px;
  height: 34px;
}
.select-item {
  display: none;
}
.drive-row.selected {
  background: #c2e7ff !important;
  outline: 2px solid #9bd4fb;
}
.context-menu {
  position: relative;
}
.context-menu > summary {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #202124;
  font-size: 24px;
  line-height: 1;
}
.context-menu[open] > summary {
  background: #d8eefa;
}
.context-menu .context-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 90;
  width: 402px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(60, 64, 67, 0.32);
}
.context-panel form,
.context-panel details {
  margin: 0;
}
.context-panel form {
  position: static;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.context-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #303134;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
}
.context-item:hover {
  background: #f1f3f4;
}
.context-item span {
  display: inline-grid;
  place-items: center;
  color: #5f6368;
  font-size: 20px;
}
.context-item small,
.context-item b {
  color: #3c4043;
  font-size: 13px;
  font-weight: 500;
}
.context-item.disabled {
  color: #a6a9ad;
  cursor: not-allowed;
}
.context-item.disabled span {
  color: #c4c7c5;
}
.context-item.danger {
  color: #3c4043;
  border-top: 1px solid #dadce0;
  margin-top: 8px;
}
.context-panel > .context-item:first-child,
.context-panel form:nth-of-type(2),
.context-panel .disabled,
.context-panel details,
.context-panel form:last-child {
  border-top: 1px solid #dadce0;
  margin-top: 8px;
  padding-top: 8px;
}
.context-panel details form {
  position: static !important;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.drive-view-grid .actions {
  position: absolute;
  top: 12px;
  right: 10px;
  padding: 0;
}
body.drive-view-grid .drive-row {
  position: relative;
}
body.drive-view-grid .drive-row:has(.context-menu[open]) {
  z-index: 80;
  overflow: visible;
}
body.drive-view-grid .context-menu[open] {
  z-index: 90;
}
body.drive-view-grid .context-menu .context-panel {
  max-height: min(520px, 72vh);
  overflow-y: auto;
}
body.drive-view-grid .select-item {
  display: none;
}
body.drive-view-grid .actions form,
body.drive-view-grid .actions details {
  display: block;
}
.selection-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 50px;
  margin: 0 0 20px;
  padding: 0 18px;
  background: #eef3f9;
  border-radius: 999px;
}
.selection-bar button {
  border: 0;
  background: transparent;
}
.selection-bar button:not(.clear-selection) {
  padding: 7px 18px;
  border: 1px solid #c7ccd1;
  border-radius: 999px;
  color: #a6a9ad;
}
.selection-bar span {
  font-size: 22px;
}
.info-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: rgba(32, 33, 36, 0.28);
}
.info-popup {
  position: relative;
  width: min(430px, calc(100vw - 40px));
  padding: 28px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.22);
}
.info-popup button {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
}
.info-popup p {
  white-space: pre-line;
  color: #4b5563;
  line-height: 1.55;
}
.trash-panel .drive-panel-head {
  margin-bottom: 22px;
}
.trash-filters {
  margin-bottom: 10px;
}
.trash-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  margin: 0 0 36px;
  padding: 0 26px;
  background: #e8edf5;
  border-radius: 8px;
  color: #4b5563;
  font-size: 18px;
}
.trash-note form {
  margin: 0;
}
.trash-note button {
  border: 0;
  background: transparent;
  color: #0b57d0;
  font-size: 16px;
  font-weight: 700;
}
.trash-date-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px 20px;
  color: #3c4043;
  font-size: 18px;
  font-weight: 650;
}
.trash-today {
  margin: 0 0 22px 0;
  color: #3c4043;
  font-size: 18px;
  font-weight: 550;
}
.trash-grid {
  display: grid;
}
.trash-head {
  display: none;
}
.trash-row {
  position: relative;
  background: #f0f4f9;
  border-radius: 10px;
}
.trash-row .drive-name {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 10px;
}
.trash-row .drive-thumb {
  display: grid;
  grid-column: 1 / -1;
  order: 4;
  width: 100%;
  height: 182px;
  margin-top: 12px;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
}
.trash-row .drive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.trash-row .file-icon {
  order: 1;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0;
  background: #ea4335;
  color: #fff;
  border-radius: 3px;
  font-size: 8px;
}
.trash-row .drive-name strong {
  order: 2;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  color: #202124;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 650;
}
.trash-row > .owner-cell,
.trash-row > time,
.trash-row > small {
  display: none;
}
.trash-row .actions {
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  padding: 0;
}
.trash-context .context-panel {
  width: 260px;
}
.trash-context .context-item {
  grid-template-columns: 30px minmax(0, 1fr);
}
.trash-context .context-panel form:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
body.drive-view-grid .trash-row .actions {
  position: absolute;
  top: 10px;
  right: 10px;
}
body.drive-view-grid .trash-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
body.drive-view-list .trash-date-title,
body.drive-view-list .trash-today {
  display: none;
}
body.drive-view-list .trash-grid {
  display: grid;
}
body.drive-view-list .trash-head,
body.drive-view-list .trash-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.7fr) minmax(150px, 0.75fr) minmax(160px, 0.8fr) minmax(120px, 0.55fr) minmax(180px, 0.75fr) 70px;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0 10px;
  background: transparent;
  border-bottom: 1px solid #dadce0;
  border-radius: 0;
}
body.drive-view-list .trash-head {
  color: #3c4043;
  font-size: 16px;
  font-weight: 650;
}
body.drive-view-list .trash-row .drive-name {
  display: flex;
  gap: 18px;
  padding: 0;
}
body.drive-view-list .trash-row .drive-thumb {
  display: none;
}
body.drive-view-list .trash-row > .owner-cell,
body.drive-view-list .trash-row > time,
body.drive-view-list .trash-row > small {
  display: inline-flex;
  color: #3c4043;
  font-size: 16px;
}
body.drive-view-list .trash-row .actions {
  position: static;
  justify-content: flex-end;
  padding: 0;
}
body.drive-view-list .trash-context .context-panel {
  right: 0;
  top: calc(100% + 6px);
}

/* Final Drive-style file and folder icons */
.folder-file-icon {
  background: transparent !important;
  color: #5f6368 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.folder-file-icon .gicon {
  width: 24px;
  height: 24px;
  color: #5f6368;
  stroke-width: 2.1;
}
.drive-row .file-icon:not(.folder-file-icon),
.trash-row .file-icon:not(.folder-file-icon) {
  background: #ea4335;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 8px;
  letter-spacing: 0;
}
.file-icon-image { background: #ea4335 !important; }
.file-icon-pdf { background: #d93025 !important; }
.file-icon-doc { background: #1a73e8 !important; }
.file-icon-sheet { background: #188038 !important; }
.file-icon-slide { background: #f9ab00 !important; color: #202124 !important; }
.file-icon-zip { background: #5f6368 !important; }
.file-icon-video { background: #a142f4 !important; }
.file-icon-audio { background: #c5221f !important; }
.folder-thumb {
  place-items: center;
  background: #fff8df !important;
  border: 1px solid #fde293 !important;
  color: #fbbc04 !important;
}
.folder-thumb .gicon {
  width: 92px;
  height: 92px;
  fill: #fbbc04;
  stroke: #d99a00;
  stroke-width: 1.35;
}
.file-thumb {
  place-items: center;
  background: #fff !important;
  border: 1px solid #e4e8ef !important;
}
.file-thumb .file-icon {
  width: 56px !important;
  min-width: 56px !important;
  height: 56px !important;
  font-size: 15px !important;
  border-radius: 10px !important;
}
body.drive-view-list .folder-file-icon .gicon,
body.drive-view-list .drive-row .file-icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
}

.actions .select-item,
body.drive-view-grid .actions .select-item,
body.drive-view-list .actions .select-item {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  opacity: 1;
  border: 1px solid #c4c7c5;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 15px;
}
.actions .select-item:hover,
.drive-row.selected .select-item {
  color: #fff;
  background: #0b57d0;
  border-color: #0b57d0;
}
body.drive-view-grid .actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.selection-bar form {
  display: inline-flex;
  margin: 0;
}
.bulk-delete-button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #f2b8b5;
  border-radius: 999px;
  background: #fff;
  color: #b3261e;
  font-weight: 800;
}
.filter-row {
  position: relative;
}
.filter-row button.active {
  background: #e8f0fe;
  border-color: #8ab4f8;
  color: #0b57d0;
}
.filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 85;
  display: grid;
  min-width: 190px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(60, 64, 67, 0.28);
}
.filter-menu button {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  background: #fff;
  text-align: left;
}
.filter-menu button:hover,
.filter-menu button.selected {
  background: #f1f3f4;
}
.filter-empty {
  margin: 24px 0 0;
  padding: 24px;
  color: #5f6368;
  text-align: center;
}

/* Polished multi-select controls */
.drive-row.selected {
  background: #e8f0fe !important;
  outline: 1px solid #8ab4f8;
}
body.drive-view-list .drive-row.selected {
  background: #e8f0fe !important;
}
.selection-bar {
  min-height: 56px;
  gap: 14px;
  margin-bottom: 18px;
  padding: 0 16px;
  background: #eef3f9;
  border: 1px solid #e1e7ef;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.selection-bar strong {
  min-width: 92px;
  color: #001d35;
}
.selection-bar .clear-selection {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
}
.selection-bar .clear-selection:hover {
  background: #dfe7f1;
}
.selection-bar button[disabled] {
  opacity: 0.45;
}
.bulk-delete-button {
  border-color: #f2b8b5;
  background: #fff;
  color: #b3261e;
}
.bulk-delete-button:hover {
  background: #fce8e6;
}
.actions .select-item,
body.drive-view-grid .actions .select-item,
body.drive-view-list .actions .select-item {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border: 1px solid #c4c7c5;
  background: #fff;
  color: transparent;
  font-size: 0;
}
.actions .select-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.actions .select-item:hover {
  border-color: #0b57d0;
  background: #e8f0fe;
}
.drive-row.selected .select-item {
  border-color: #1e8e3e;
  background: #e6f4ea;
  color: #1e8e3e;
}
.drive-row.selected .select-item::before {
  content: "\2713";
  display: grid;
  place-items: center;
  color: #1e8e3e;
  font-size: 14px;
  font-weight: 900;
}
body.drive-view-list .actions {
  gap: 10px;
}

.admin-pro {
  max-width: 1280px;
  margin: 0 auto;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  background: #eef3f9;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
}
.admin-tabs a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 6px;
  color: #243447;
  font-weight: 800;
}
.admin-tabs a.active,
.admin-tabs a:hover {
  background: #fff;
  color: #0b57d0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}
.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.admin-page-head h1 {
  margin: 4px 0 0;
  font-size: clamp(30px, 4vw, 44px);
}
.admin-toolbar {
  display: flex;
  justify-content: flex-end;
}
.admin-toolbar form {
  width: min(420px, 100%);
}
.admin-toolbar input,
.admin-create-form input,
.admin-create-form select,
.admin-actions input,
.admin-actions select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}
.admin-create-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-create-form h2 {
  grid-column: 1 / -1;
  margin: 0;
}
.admin-create-form label,
.admin-actions label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 750;
}
.admin-create-form .checkline,
.admin-actions .checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.admin-create-form .checkline input,
.admin-actions .checkline input {
  width: auto;
  min-height: auto;
}
.settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settings-form button {
  justify-self: start;
}
.admin-table {
  overflow: visible;
}
.admin-table table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #d9e2ec;
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: #334155;
  font-size: 14px;
}
.admin-table td small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 600;
}
.admin-actions {
  position: relative;
}
.admin-actions summary {
  width: max-content;
  padding: 8px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.admin-actions summary::-webkit-details-marker {
  display: none;
}
.admin-actions > div {
  position: absolute;
  right: 0;
  z-index: 50;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 40px));
  padding: 14px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}
.admin-actions form {
  display: grid;
  gap: 10px;
}
.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 16px;
}
.admin-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-card h2 {
  margin-top: 0;
}
.admin-card p {
  color: #526173;
  line-height: 1.55;
}
.admin-table code {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}
button.danger,
.danger {
  border-color: #f2b8b5;
  background: #fff;
  color: #b3261e;
}
button.danger:hover,
.danger:hover {
  background: #fce8e6;
}
.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -8px -24px 18px;
  padding: 12px 18px;
  background: #fff7db;
  border-bottom: 1px solid #f3d27b;
  color: #3f2d00;
}
.impersonation-banner a,
.return-admin-link {
  color: #0b57d0;
  font-weight: 850;
}
.admin-actions button.primary {
  border-color: #0b57d0;
  background: #0b57d0;
  color: #fff;
}
.admin-actions button[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}
.admin-manage-trigger {
  padding: 9px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
  color: #001d35;
  font-weight: 850;
}
.admin-manage-trigger:hover {
  border-color: #0b57d0;
  background: #e8f0fe;
}
.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-inline-login {
  margin: 0;
}
.admin-inline-login button,
.admin-inline-login-disabled {
  min-height: 39px;
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 850;
}
.admin-inline-login button {
  border: 1px solid #0b57d0;
  background: #0b57d0;
  color: #fff;
}
.admin-inline-login-disabled {
  border: 1px solid #cfd8e3;
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}
.admin-user-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}
.admin-user-modal-backdrop[hidden] {
  display: none;
}
.admin-user-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  background: #fff;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}
.admin-user-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #334155;
  font-size: 28px;
}
.admin-user-modal-close:hover {
  background: #eef3f9;
}
.admin-user-modal-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 40px;
}
.admin-user-modal-head h2 {
  margin: 0 0 4px;
}
.admin-user-modal-head p {
  margin: 0;
  color: #64748b;
}
.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0b57d0;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}
.admin-user-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.admin-user-facts span {
  padding: 12px;
  background: #f6f8fb;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
}
.admin-user-facts b,
.admin-user-facts em {
  display: block;
}
.admin-user-facts b {
  color: #64748b;
  font-size: 13px;
}
.admin-user-facts em {
  margin-top: 4px;
  color: #001d35;
  font-style: normal;
  font-weight: 850;
}
.admin-user-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-user-actions form,
.admin-user-actions button {
  width: 100%;
}
.admin-modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #e1e7ef;
}
.admin-modal-form.compact {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-top: 18px;
}
.admin-modal-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 750;
}
.admin-modal-form input,
.admin-modal-form select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  font: inherit;
}
.admin-modal-form .checkline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-modal-form .checkline input {
  min-height: auto;
}
.admin-user-modal button.full {
  width: 100%;
  margin-top: 18px;
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 920px) {
  .admin-page-head,
  .admin-hero,
  .table-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-create-form,
  .settings-form,
  .admin-split {
    grid-template-columns: 1fr;
  }
  .admin-table {
    overflow-x: auto;
  }
  .admin-user-actions,
  .admin-modal-form,
  .admin-modal-form.compact,
  .admin-user-facts {
    grid-template-columns: 1fr;
  }
}

.app-user .site-footer {
  display: none;
}

.actions .select-item,
body.drive-view-grid .actions .select-item,
body.drive-view-list .actions .select-item {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 0;
  border: 1px solid #c3c8cf;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 0;
  box-shadow: none;
}

.drive-row.selected {
  background: #c2e7ff !important;
}

body.drive-view-grid .drive-row.selected {
  outline: 2px solid #73c2f0;
}

.drive-row.selected .select-item {
  border-color: #188038 !important;
  background: #188038 !important;
  color: #fff !important;
}

.drive-row.selected .select-item::before {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.selection-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 50px;
  margin: -10px 0 18px;
  padding: 0 18px;
  border-radius: 999px;
  background: #edf2f8;
  color: #1f2937;
}

.selection-bar form {
  display: inline-flex;
  margin: 0;
}

.selection-bar button {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3c4043;
  font-weight: 850;
}

.selection-bar button:hover {
  background: #dfe6ef;
}

.selection-bar .clear-selection {
  font-size: 24px;
}

.selection-bar strong {
  margin-right: 8px;
  font-weight: 700;
}

.sortable-head {
  cursor: pointer;
  user-select: none;
}

.sortable-head:hover {
  color: #0b57d0;
}

.input-modal-backdrop,
.share-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}

.input-modal,
.share-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 26px;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.input-modal h2,
.share-modal h2 {
  margin: 0 44px 8px 0;
  font-size: 24px;
}

.input-modal p,
.share-modal p {
  color: #526173;
}

.input-modal form,
.share-modal form,
.profile-form {
  display: grid;
  gap: 14px;
}

.input-modal label,
.share-modal label,
.profile-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 750;
}

.input-modal input,
.input-modal select,
.share-modal input,
.profile-form input {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  font: inherit;
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #334155;
  font-size: 28px;
}

.modal-x:hover {
  background: #eef3f9;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.duplicate-upload-modal {
  max-width: 560px;
}

.duplicate-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  margin: 16px 0;
  padding: 12px 14px 12px 30px;
  overflow: auto;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  color: #1f2937;
}

.duplicate-list li {
  word-break: break-word;
}

.share-tabs {
  display: grid;
  gap: 18px;
}

.share-tabs form {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
}

.share-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.share-result[hidden] {
  display: none;
}

.drive-panel.drag-over {
  outline: 3px dashed #1a73e8;
  outline-offset: -14px;
  background: #f4faff;
}

.file-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.file-viewer {
  width: min(1000px, 96vw);
  height: min(760px, 88vh);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.file-viewer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5eaf0;
}

.file-viewer-head strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-viewer-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 28px;
}

.file-viewer-head button:hover {
  background: #eef3f9;
}

.file-viewer-body {
  display: grid;
  place-items: center;
  min-height: 0;
  background: #f8fafc;
}

.file-viewer iframe,
.file-viewer video {
  width: 100%;
  height: 100%;
  border: 0;
}

.file-viewer video {
  display: block;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}

.video-preview-wrap {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #000;
}

.video-preview-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #000;
}

.video-custom-controls {
  display: grid;
  grid-template-columns: auto auto minmax(140px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #fff;
  background: #111827;
}

.video-custom-controls button {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: #15708a;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.video-custom-controls button:hover {
  background: #0e5f76;
}

.video-time {
  min-width: 44px;
  font-size: 13px;
  color: #e2e8f0;
  text-align: center;
}

.video-seek {
  width: 100%;
  accent-color: #43b7d3;
}

.file-viewer audio {
  width: min(720px, 90%);
}

@media (max-width: 760px) {
  .file-viewer {
    width: 96vw;
    height: 84vh;
  }

  .video-custom-controls {
    grid-template-columns: auto minmax(90px, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .video-custom-controls .video-time.duration,
  .video-custom-controls .video-mute-toggle {
    display: none;
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.profile-grid article {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
}

.profile-grid strong,
.profile-grid span {
  display: block;
}

.profile-grid span {
  margin-top: 5px;
  color: #64748b;
}

.profile-form {
  max-width: 620px;
}

.context-item .gicon,
.mini-download .gicon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }
  .shell {
    padding: 0;
  }
  .app-user .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px 12px;
  }
  .app-user .topbar nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .app-user .topbar nav::-webkit-scrollbar {
    display: none;
  }
  .app-user .topbar .search {
    flex: 0 0 100%;
    width: 100%;
  }
  .app-user .topbar .search input {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
  }
  .app-user .topbar nav a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }
  .app-user .topbar .topbar-icon-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 38px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
  }
  .app-user .topbar .topbar-icon-button span {
    display: none;
  }
  .app-user .topbar .topbar-icon-button .gicon {
    width: 19px;
    height: 19px;
  }
  .drive-app {
    display: block;
    min-width: 0;
  }
  .drive-sidebar {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: none;
    padding: 12px 10px 28px;
    overflow: hidden;
    background: #f8fbff;
    border-bottom: 1px solid #dbe4ee;
  }
  .new-menu {
    position: fixed;
    left: 10px;
    bottom: 86px;
    z-index: 120;
    width: 48px;
    max-width: none;
    margin: 0;
  }
  .new-menu > summary {
    justify-content: center;
    width: 48px;
    min-height: 48px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    font-size: 0;
  }
  .new-menu > summary span {
    color: #001d35;
    font-size: 32px;
  }
  .new-menu-panel {
    left: 0;
    top: auto;
    bottom: calc(100% + 10px);
    width: min(340px, calc(100vw - 24px));
  }
  .drive-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 14px;
    bottom: 6px;
    width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #d8e4ef;
    border-radius: 50%;
    background: #fff;
    color: #475467;
    font: inherit;
    font-size: 0;
  }
  .drive-nav-toggle span {
    display: none;
  }
  .drive-nav-toggle .gicon {
    width: 17px;
    height: 17px;
    transition: transform 0.18s ease;
  }
  .drive-nav-collapsed .drive-nav-toggle .gicon {
    transform: rotate(-90deg);
  }
  .drive-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
    max-height: 132px;
    opacity: 1;
    transition: max-height 0.22s ease, opacity 0.16s ease, margin 0.22s ease;
  }
  .drive-nav-collapsed .drive-nav {
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
  }
  .drive-nav-item {
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 6px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
  }
  .drive-nav-item span {
    width: 18px;
    flex: 0 0 18px;
  }
  .drive-nav-item .gicon {
    width: 18px;
    height: 18px;
  }
  .storage-card {
    display: none;
  }
  .apk-sidebar-card {
    display: inline-grid;
    grid-template-columns: 28px auto;
    width: auto;
    max-width: max-content;
    margin: 8px 0 0;
    padding: 8px 10px;
    border-radius: 999px;
  }
  .apk-sidebar-card span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }
  .apk-sidebar-card .gicon {
    width: 16px;
    height: 16px;
  }
  .apk-sidebar-card small {
    display: none;
  }
  .apk-sidebar-card strong {
    font-size: 12px;
    white-space: nowrap;
  }
  .drive-rail {
    display: none;
  }
  .drive-content {
    position: relative;
    z-index: 1;
    padding: 10px 10px 18px;
    clear: both;
  }
  .drive-panel {
    min-height: auto;
    width: 100%;
    padding: 18px 14px;
    border-radius: 14px;
  }
  .drive-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }
  .drive-panel-head h1 {
    font-size: 30px;
    line-height: 1.1;
  }
  .panel-tools {
    width: 100%;
  }
  .view-toggle {
    flex: 1;
  }
  .view-toggle button {
    flex: 1 1 0;
    width: auto;
    min-width: 44px;
  }
  .suggested-title {
    gap: 10px;
    margin: 18px 0 14px;
    font-size: 24px;
  }
  .drive-empty {
    min-height: 360px;
  }
  .drive-view-grid .drive-table {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .drive-head {
    display: none;
  }
  .drive-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    min-height: auto;
    padding: 10px 8px;
  }
  .drive-row > small,
  .drive-row > time,
  .owner-cell {
    display: none;
  }
  .actions {
    align-self: start;
  }
  .home-plans > div:last-child {
    grid-template-columns: 1fr;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .selection-bar {
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 10px 12px;
  }
}

@media (max-width: 760px) {
  .site-user .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-user .topbar nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 8px;
    width: 100%;
  }

  .site-user .topbar nav a {
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
    white-space: nowrap;
  }

  .site-user .topbar nav .nav-login {
    width: 100%;
  }

  body.app-user .topbar > nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none;
  }

  body.app-user .topbar > nav::-webkit-scrollbar {
    display: none;
  }

  body.app-user .topbar > nav > a,
  body.app-user .topbar > nav > button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #475467 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.app-user .topbar > nav > button.search-open-button {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
  }

  body.app-user .topbar > nav > button.search-open-button span {
    display: none !important;
  }

  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.app-user.drive-view-grid .drive-row {
    min-height: 188px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
  }

  body.app-user.drive-view-grid .drive-name {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    min-height: 42px;
    padding: 9px 34px 7px 8px !important;
  }

  body.app-user.drive-view-grid .drive-name strong {
    font-size: 13px !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.app-user.drive-view-grid .drive-thumb {
    height: 112px !important;
    margin: 0 8px 8px;
    border-radius: 8px;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 58px;
    height: 58px;
  }

  body.app-user.drive-view-grid .file-icon {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    font-size: 8px !important;
  }

  body.app-user.drive-view-grid .actions {
    top: 7px !important;
    right: 6px !important;
    gap: 3px !important;
  }

  body.app-user.drive-view-grid .actions .select-item {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
  }

  body.app-user.drive-view-grid .context-menu summary {
    width: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
  }
}
/* Mobile app style shell */
.mobile-drive-top,
.mobile-drive-tabs,
.mobile-theme-switch,
.mobile-bottom-nav,
.mobile-drive-drawer,
.mobile-drawer-backdrop {
  display: none;
}

@media (max-width: 760px) {
  body.app-user {
    background: #1f2024 !important;
    color: #e8eaed !important;
    overflow-x: hidden;
  }

  body.app-user .topbar,
  body.app-user .site-footer,
  body.app-user .drive-rail {
    display: none !important;
  }

  body.app-user .shell {
    padding: 0 !important;
    background: #1f2024 !important;
  }

  body.app-user .drive-app {
    display: block !important;
    min-height: 100vh !important;
    width: 100% !important;
    padding: 16px 14px 92px !important;
    background: #1f2024 !important;
    color: #e8eaed !important;
  }

  body.app-user .drive-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .mobile-drive-top {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 6px 2px 16px;
  }

  .mobile-drawer-open,
  .mobile-search-pill,
  .mobile-avatar {
    border: 0;
    min-width: 0;
    min-height: 0;
    font: inherit;
  }

  .mobile-drawer-open {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    color: #dfe3ea;
    font-size: 28px;
    display: grid;
    place-items: center;
  }

  .mobile-search-pill {
    flex: 1;
    height: 48px;
    border-radius: 28px;
    background: #2b2c30;
    color: #c8ccd2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  }

  .mobile-search-pill .gicon {
    width: 21px;
    height: 21px;
  }

  .mobile-search-pill span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-inline-search input[type="search"],
  .mobile-inline-search input[name="q"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    padding: 0;
  }

  .mobile-inline-search input::placeholder {
    color: currentColor;
    opacity: .72;
  }

  .mobile-spark {
    color: #f4f7fb;
    font-size: 24px;
    line-height: 1;
  }

  .mobile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b7890, #9ddcff);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-drive-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #3a3c42;
    margin: 0 -14px 18px;
  }

  .mobile-drive-tabs a {
    color: #cfd3da;
    text-align: center;
    text-decoration: none;
    padding: 12px 8px 14px;
    font-weight: 800;
    position: relative;
  }

  .mobile-drive-tabs a.active {
    color: #b8ccff;
  }

  .mobile-drive-tabs a.active::after {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: 0;
    height: 3px;
    border-radius: 4px 4px 0 0;
    background: #9bbcff;
  }

  body.app-user .drive-sidebar {
    display: block !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.app-user .drive-sidebar .drive-nav,
  body.app-user .drive-sidebar .storage-card,
  body.app-user .drive-sidebar .apk-sidebar-card,
  body.app-user .drive-nav-toggle {
    display: none !important;
  }

  body.app-user .new-menu {
    position: fixed !important;
    right: 22px !important;
    left: auto !important;
    bottom: 88px !important;
    width: 62px !important;
    height: 62px !important;
    margin: 0 !important;
    z-index: 260 !important;
  }

  body.app-user .new-menu > summary {
    width: 62px !important;
    height: 62px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    background: #2d2f34 !important;
    color: transparent !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.42) !important;
    overflow: hidden;
  }

  body.app-user .new-menu > summary span {
    display: none !important;
  }

  body.app-user .new-menu > summary::before {
    content: "+";
    color: #4285f4;
    font-size: 46px;
    font-weight: 300;
    line-height: 1;
  }

  body.app-user .new-menu[open] > summary {
    background: #34363b !important;
  }

  body.app-user .new-menu-panel {
    position: fixed !important;
    right: 14px !important;
    left: 14px !important;
    bottom: 164px !important;
    width: auto !important;
    max-height: 58vh !important;
    overflow: auto !important;
    border-radius: 22px !important;
    background: #2f3136 !important;
    border: 1px solid #45474d !important;
    box-shadow: 0 18px 46px rgba(0,0,0,.5) !important;
  }

  body.app-user .new-menu-row {
    color: #f1f3f4 !important;
    background: transparent !important;
    border-bottom: 1px solid #44464c !important;
  }

  body.app-user .drive-panel {
    background: transparent !important;
    color: #e8eaed !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
  }

  body.app-user .drive-panel-head {
    display: none !important;
  }

  body.app-user .filter-row {
    display: none !important;
  }

  body.app-user .suggested-title,
  body.app-user .trash-date-title {
    color: #f1f3f4 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 16px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  body.app-user .suggested-title::before,
  body.app-user .trash-date-title::before {
    content: "Name";
    font-size: 14px;
    font-weight: 500;
    color: #d6d9df;
  }

  body.app-user .suggested-title > span,
  body.app-user .suggested-title > b,
  body.app-user .suggested-title > strong {
    color: inherit;
  }

  body.app-user .drive-empty {
    border: 1px dashed #555860 !important;
    color: #aeb4bd !important;
    background: transparent !important;
    min-height: 260px !important;
    border-radius: 14px !important;
  }

  body.app-user.drive-view-grid .drive-table,
  body.app-user.drive-view-comfortable .drive-table {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 16px !important;
    width: 100% !important;
  }

  body.app-user.drive-view-grid .drive-head,
  body.app-user.drive-view-comfortable .drive-head {
    display: none !important;
  }

  body.app-user.drive-view-grid .drive-row,
  body.app-user.drive-view-comfortable .drive-row {
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #e8eaed !important;
    overflow: visible !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name,
  body.app-user.drive-view-comfortable .drive-row > .drive-name {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 26px !important;
    grid-template-rows: auto 96px !important;
    gap: 9px 8px !important;
    align-items: center !important;
    min-height: 0 !important;
    text-decoration: none !important;
    color: #e8eaed !important;
    padding: 0 !important;
  }

  body.app-user.drive-view-grid .drive-name strong,
  body.app-user.drive-view-comfortable .drive-name strong {
    color: #dce0e6 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  body.app-user.drive-view-grid .file-icon,
  body.app-user.drive-view-comfortable .file-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 3px !important;
    font-size: 8px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.app-user.drive-view-grid .folder-file-icon,
  body.app-user.drive-view-comfortable .folder-file-icon {
    background: transparent !important;
    color: #bdc1c6 !important;
  }

  body.app-user.drive-view-grid .drive-thumb,
  body.app-user.drive-view-comfortable .drive-thumb {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 96px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #5d6068 !important;
    background: #fff !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
  }

  body.app-user.drive-view-grid .drive-thumb img,
  body.app-user.drive-view-comfortable .drive-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  body.app-user.drive-view-grid .folder-thumb,
  body.app-user.drive-view-comfortable .folder-thumb {
    background: #fff7d9 !important;
    border-color: #f1c24b !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon,
  body.app-user.drive-view-comfortable .folder-thumb .gicon {
    width: 54px !important;
    height: 54px !important;
    color: #f4b400 !important;
    stroke-width: 1.8 !important;
  }

  body.app-user.drive-view-grid .drive-row > .owner-cell,
  body.app-user.drive-view-grid .drive-row > time,
  body.app-user.drive-view-grid .drive-row > small,
  body.app-user.drive-view-comfortable .drive-row > .owner-cell,
  body.app-user.drive-view-comfortable .drive-row > time,
  body.app-user.drive-view-comfortable .drive-row > small {
    display: none !important;
  }

  body.app-user.drive-view-grid .actions,
  body.app-user.drive-view-comfortable .actions {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    z-index: 3 !important;
  }

  body.app-user.drive-view-grid .context-menu > summary,
  body.app-user.drive-view-comfortable .context-menu > summary {
    color: #c9cdd3 !important;
    background: transparent !important;
    border: 0 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
  }

  body.app-user .select-item {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    border: 1px solid #74777f !important;
    background: #202124 !important;
    position: absolute !important;
    right: 32px !important;
    top: 3px !important;
    z-index: 4 !important;
  }

  body.app-user .drive-row.is-selected .select-item {
    background: #34a853 !important;
    border-color: #34a853 !important;
  }

  body.app-user .drive-row.is-selected .select-item::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    position: absolute;
    left: 5px;
    top: 6px;
  }

  body.app-user .context-panel {
    background: #303136 !important;
    color: #e8eaed !important;
    border-color: #4a4d55 !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.48) !important;
  }

  body.app-user .context-item {
    color: #e8eaed !important;
  }

  .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    background: #1f2024;
    border-top: 1px solid #383a40;
    z-index: 230;
    padding: 7px 8px 9px;
  }

  .mobile-bottom-nav a {
    color: #cbd0d7;
    text-decoration: none;
    display: grid;
    place-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 22px;
  }

  .mobile-bottom-nav .gicon {
    width: 24px;
    height: 24px;
  }

  .mobile-bottom-nav a.active {
    color: #e8f0fe;
  }

  .mobile-bottom-nav a.active .gicon {
    background: #0b6f99;
    color: #e8f0fe;
    width: 64px;
    height: 36px;
    padding: 7px 20px;
    border-radius: 22px;
  }

  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.58);
    z-index: 300;
  }

  .mobile-drive-drawer {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 330px);
    background: #303136;
    color: #e8eaed;
    z-index: 310;
    transform: translateX(-105%);
    transition: transform .22s ease;
    padding: 34px 0 22px;
    box-shadow: 16px 0 40px rgba(0,0,0,.38);
  }

  .mobile-drive-drawer.open {
    transform: translateX(0);
  }

  .mobile-drawer-brand {
    font-size: 24px;
    font-weight: 900;
    padding: 0 28px 22px;
    border-bottom: 1px solid #4a4c52;
  }

  .mobile-drive-drawer nav {
    padding: 18px 0;
  }

  .mobile-drive-drawer a {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 28px;
    color: #e6e9ee;
    text-decoration: none;
    font-weight: 700;
  }

  .mobile-drive-drawer a.active {
    background: rgba(138,180,248,.16);
    color: #b8ccff;
  }

  .mobile-drive-drawer .gicon {
    width: 24px;
    height: 24px;
  }

  .mobile-drawer-storage {
    border-top: 1px solid #4a4c52;
    margin: 10px 28px 0;
    padding-top: 20px;
    color: #dfe3ea;
  }

  .mobile-drawer-storage strong,
  .mobile-drawer-storage span {
    display: block;
    margin-bottom: 8px;
  }

  .mobile-drawer-apk {
    margin-top: 12px;
    color: #b8ccff !important;
  }
}

/* Final mobile compact pass: closer to Google Drive app scale */
@media (max-width: 760px) {
  body.app-user {
    font-size: 14px !important;
  }

  body.app-user .drive-app {
    padding: 12px 12px 78px !important;
  }

  .mobile-drive-top {
    gap: 8px !important;
    margin: 4px 0 12px !important;
  }

  .mobile-drawer-open {
    width: 34px !important;
    height: 34px !important;
    font-size: 23px !important;
  }

  .mobile-search-pill {
    height: 42px !important;
    border-radius: 24px !important;
    padding: 0 13px !important;
    gap: 8px !important;
    font-size: 14px !important;
  }

  .mobile-search-pill .gicon {
    width: 18px !important;
    height: 18px !important;
  }

  .mobile-inline-search input[type="search"],
  .mobile-inline-search input[name="q"] {
    font-size: 13px !important;
  }

  .mobile-spark {
    font-size: 21px !important;
  }

  .mobile-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
  }

  .mobile-drive-tabs {
    margin: 0 -12px 15px !important;
  }

  .mobile-theme-switch {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: -4px 0 12px 44px !important;
    padding: 3px !important;
    border-radius: 999px !important;
    background: #2b2c30 !important;
    border: 1px solid #3a3c42 !important;
  }

  .mobile-theme-switch button {
    min-height: 28px !important;
    padding: 0 13px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #cfd3da !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  .mobile-theme-switch button.active {
    background: #8ab4f8 !important;
    color: #111827 !important;
  }

  .mobile-drive-tabs a {
    padding: 10px 8px 12px !important;
    font-size: 14px !important;
  }

  body.app-user .suggested-title,
  body.app-user .trash-date-title {
    margin: 0 0 13px !important;
    font-size: 13px !important;
  }

  body.app-user .suggested-title::before,
  body.app-user .trash-date-title::before {
    font-size: 13px !important;
  }

  body.app-user.drive-view-grid .drive-table,
  body.app-user.drive-view-comfortable .drive-table {
    gap: 17px 14px !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name,
  body.app-user.drive-view-comfortable .drive-row > .drive-name {
    grid-template-columns: 22px minmax(0, 1fr) 22px !important;
    grid-template-rows: auto 78px !important;
    gap: 7px 7px !important;
  }

  body.app-user.drive-view-grid .drive-name strong,
  body.app-user.drive-view-comfortable .drive-name strong {
    font-size: 12px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
  }

  body.app-user.drive-view-grid .file-icon,
  body.app-user.drive-view-comfortable .file-icon {
    width: 20px !important;
    height: 20px !important;
    font-size: 7px !important;
  }

  body.app-user.drive-view-grid .drive-thumb,
  body.app-user.drive-view-comfortable .drive-thumb {
    height: 78px !important;
    border-radius: 9px !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon,
  body.app-user.drive-view-comfortable .folder-thumb .gicon {
    width: 42px !important;
    height: 42px !important;
  }

  body.app-user.drive-view-grid .context-menu > summary,
  body.app-user.drive-view-comfortable .context-menu > summary {
    width: 24px !important;
    height: 24px !important;
    font-size: 17px !important;
  }

  body.app-user .select-item {
    width: 19px !important;
    height: 19px !important;
    right: 27px !important;
    top: 2px !important;
  }

  body.app-user .drive-row.is-selected .select-item::after {
    width: 8px !important;
    height: 4px !important;
    left: 4px !important;
    top: 5px !important;
  }

  body.app-user .new-menu {
    right: 18px !important;
    bottom: 78px !important;
    width: 56px !important;
    height: 56px !important;
  }

  body.app-user .new-menu > summary {
    width: 56px !important;
    height: 56px !important;
  }

  body.app-user .new-menu > summary::before {
    font-size: 40px !important;
  }

  body.app-user .new-menu-panel {
    bottom: 146px !important;
  }

  .mobile-bottom-nav {
    height: 68px !important;
    padding: 6px 8px 7px !important;
  }

  .mobile-bottom-nav a {
    font-size: 11px !important;
    gap: 2px !important;
  }

  .mobile-bottom-nav .gicon {
    width: 22px !important;
    height: 22px !important;
  }

  .mobile-bottom-nav a.active .gicon {
    width: 58px !important;
    height: 32px !important;
    padding: 6px 18px !important;
  }

  .mobile-drive-drawer {
    width: min(73vw, 300px) !important;
    padding: 28px 0 18px !important;
  }

  .mobile-drawer-brand {
    font-size: 21px !important;
    padding: 0 22px 18px !important;
  }

  .mobile-drive-drawer nav {
    padding: 12px 0 !important;
  }

  .mobile-drive-drawer a {
    min-height: 44px !important;
    gap: 18px !important;
    padding: 0 22px !important;
    font-size: 14px !important;
  }

  .mobile-drive-drawer .gicon {
    width: 22px !important;
    height: 22px !important;
  }

  .mobile-drawer-storage {
    margin: 8px 22px 0 !important;
    padding-top: 16px !important;
    font-size: 13px !important;
  }

  .mobile-drive-drawer {
    display: flex !important;
    flex-direction: column !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-drive-drawer nav {
    flex: 0 0 auto !important;
  }

  .mobile-drive-drawer a {
    min-height: 41px !important;
  }

  .mobile-drawer-storage {
    flex: 0 0 auto !important;
    padding-bottom: 8px !important;
  }

  .mobile-drawer-apk {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
    color: #c8d9ff !important;
  }

  .mobile-drawer-backdrop:not([hidden]) {
    display: block !important;
    pointer-events: auto !important;
  }

  body.mobile-drawer-opened .mobile-drawer-backdrop {
    display: block !important;
    pointer-events: auto !important;
  }

  body.app-user .storage-page {
    max-width: none !important;
    padding: 24px !important;
    border-radius: 16px !important;
    background: #2b2c30 !important;
    border: 1px solid #44474f !important;
    color: #e8eaed !important;
    box-shadow: none !important;
  }

  body.app-user .storage-page strong {
    color: #8bd7ff !important;
    font-size: 34px !important;
    line-height: 1.1 !important;
  }

  body.app-user .storage-page span,
  body.app-user .storage-page p {
    color: #d5dae2 !important;
    opacity: 1 !important;
  }

  body.app-user .storage-page .storage-meter {
    background: #4a4d55 !important;
  }

  body.app-user.mobile-light-mode {
    background: #f6f8fb !important;
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .shell,
  body.app-user.mobile-light-mode .drive-app {
    background: #f6f8fb !important;
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .mobile-search-pill,
  body.app-user.mobile-light-mode .mobile-theme-switch {
    background: #ffffff !important;
    border-color: #d7deea !important;
    color: #465266 !important;
  }

  body.app-user.mobile-light-mode .mobile-inline-search input[name="q"] {
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .mobile-drawer-open,
  body.app-user.mobile-light-mode .mobile-spark,
  body.app-user.mobile-light-mode .mobile-drive-tabs a,
  body.app-user.mobile-light-mode .drive-name strong,
  body.app-user.mobile-light-mode .suggested-title,
  body.app-user.mobile-light-mode .trash-date-title,
  body.app-user.mobile-light-mode .suggested-title::before,
  body.app-user.mobile-light-mode .trash-date-title::before {
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .mobile-drive-tabs {
    border-bottom-color: #dbe3ee !important;
  }

  body.app-user.mobile-light-mode .drive-thumb {
    border-color: #d9e0ea !important;
  }

  body.app-user.mobile-light-mode .mobile-bottom-nav {
    background: #ffffff !important;
    border-top-color: #dbe3ee !important;
  }

  body.app-user.mobile-light-mode .mobile-bottom-nav a {
    color: #465266 !important;
  }

  body.app-user.mobile-light-mode .mobile-bottom-nav a.active {
    color: #0e4f66 !important;
  }

  body.app-user.mobile-light-mode .new-menu > summary {
    background: #ffffff !important;
    border-color: #dbe3ee !important;
  }

  body.app-user.mobile-light-mode .mobile-drive-drawer {
    background: #ffffff !important;
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .mobile-drawer-brand,
  body.app-user.mobile-light-mode .mobile-drawer-storage {
    border-color: #dbe3ee !important;
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .mobile-drive-drawer a {
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .mobile-drawer-apk {
    color: #0e5f7a !important;
  }

  body.app-user.mobile-light-mode .storage-page {
    background: #ffffff !important;
    border-color: #dbe3ee !important;
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .storage-page strong {
    color: #0e4f66 !important;
  }

  body.app-user.mobile-light-mode .storage-page span,
  body.app-user.mobile-light-mode .storage-page p {
    color: #465266 !important;
  }

  body.app-user.mobile-light-mode .storage-page .storage-meter {
    background: #e4e9f0 !important;
  }
}

@media (max-width: 760px) {
  body.app-user .selection-bar {
    display: grid !important;
    grid-template-columns: 30px minmax(76px, 1fr) repeat(4, 34px) !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 0 12px !important;
    padding: 6px 8px !important;
    border-radius: 14px !important;
    background: rgba(48, 49, 54, .96) !important;
    border: 1px solid #44474f !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body.app-user .selection-bar strong {
    min-width: 0 !important;
    color: #f1f3f4 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  body.app-user .selection-bar form {
    display: contents !important;
    margin: 0 !important;
  }

  body.app-user .selection-bar button {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid #5a5d65 !important;
    background: transparent !important;
    color: #d9dde5 !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0 !important;
  }

  body.app-user .selection-bar button svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  body.app-user .selection-bar .clear-selection {
    border-color: transparent !important;
  }

  body.app-user.mobile-light-mode .selection-bar {
    background: rgba(255,255,255,.96) !important;
    border-color: #dbe3ee !important;
  }

  body.app-user.mobile-light-mode .selection-bar strong {
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .selection-bar button {
    border-color: #d4dce8 !important;
    color: #465266 !important;
  }
}

@media (max-width: 760px) {
  body.app-user .select-item,
  body.app-user.drive-view-grid .actions .select-item,
  body.app-user.drive-view-comfortable .actions .select-item {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    right: 23px !important;
    top: 4px !important;
    border: 1.4px solid #9aa0a6 !important;
    background: rgba(255,255,255,.08) !important;
    box-shadow: none !important;
    opacity: .92 !important;
  }

  body.app-user .drive-row.selected .select-item,
  body.app-user .drive-row.is-selected .select-item {
    background: #1e8e3e !important;
    border-color: #1e8e3e !important;
    opacity: 1 !important;
  }

  body.app-user .drive-row.selected .select-item::before,
  body.app-user .drive-row.selected .select-item::after,
  body.app-user .drive-row.is-selected .select-item::before,
  body.app-user .drive-row.is-selected .select-item::after {
    content: "" !important;
    width: 8px !important;
    height: 4px !important;
    border-left: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
    border-top: 0 !important;
    border-right: 0 !important;
    transform: rotate(-45deg) !important;
    position: absolute !important;
    left: 3px !important;
    top: 5px !important;
    background: transparent !important;
  }

  body.app-user.drive-view-grid .context-menu > summary,
  body.app-user.drive-view-comfortable .context-menu > summary {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    color: #aeb4bd !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    opacity: .85 !important;
  }

  body.app-user.drive-view-grid .context-menu > summary:hover,
  body.app-user.drive-view-comfortable .context-menu > summary:hover {
    background: rgba(154,160,166,.16) !important;
    opacity: 1 !important;
  }

  body.app-user.mobile-light-mode .select-item,
  body.app-user.mobile-light-mode.drive-view-grid .actions .select-item,
  body.app-user.mobile-light-mode.drive-view-comfortable .actions .select-item {
    background: rgba(255,255,255,.78) !important;
    border-color: #9aa0a6 !important;
  }

  body.app-user.mobile-light-mode.drive-view-grid .context-menu > summary,
  body.app-user.mobile-light-mode.drive-view-comfortable .context-menu > summary {
    color: #6b7280 !important;
  }
}

@media (max-width: 760px) {
  body.app-user.mobile-selection-mode .mobile-drive-top,
  body.app-user.mobile-selection-mode .mobile-theme-switch,
  body.app-user.mobile-selection-mode .mobile-drive-tabs,
  body.app-user.mobile-selection-mode .mobile-bottom-nav,
  body.app-user.mobile-selection-mode .new-menu {
    display: none !important;
  }

  body.app-user.mobile-selection-mode .drive-app {
    padding-top: 18px !important;
    padding-bottom: 24px !important;
  }

  body.app-user.mobile-selection-mode .selection-bar {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    grid-template-rows: 44px auto 34px !important;
    gap: 10px 8px !important;
    align-items: center !important;
    width: calc(100% + 24px) !important;
    margin: 0 -12px 18px !important;
    padding: 0 10px 4px !important;
    min-height: 118px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.app-user.mobile-selection-mode .selection-bar .clear-selection {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border: 0 !important;
    color: #8ab4f8 !important;
    background: transparent !important;
  }

  body.app-user.mobile-selection-mode .selection-bar .selection-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 14px !important;
  }

  body.app-user.mobile-selection-mode .selection-bar form {
    display: inline-flex !important;
    margin: 0 !important;
  }

  body.app-user.mobile-selection-mode .selection-bar button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #8ab4f8 !important;
  }

  body.app-user.mobile-selection-mode .selection-bar button svg {
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.15 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  body.app-user.mobile-selection-mode .selection-bar .selection-more svg {
    fill: currentColor !important;
    stroke: none !important;
  }

  body.app-user.mobile-selection-mode .selection-bar strong {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    color: #8ab4f8 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    padding: 0 10px !important;
  }

  body.app-user.mobile-selection-mode .selection-bar::after {
    content: "";
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
    align-self: center;
    width: 22px;
    height: 18px;
    margin-right: 12px;
    background:
      linear-gradient(#9aa0a6,#9aa0a6) 0 0 / 22px 3px no-repeat,
      linear-gradient(#9aa0a6,#9aa0a6) 0 7px / 22px 3px no-repeat,
      linear-gradient(#9aa0a6,#9aa0a6) 0 14px / 22px 3px no-repeat;
    opacity: .9;
  }

  body.app-user.mobile-selection-mode.drive-view-grid .drive-table,
  body.app-user.mobile-selection-mode.drive-view-comfortable .drive-table {
    gap: 8px !important;
  }

  body.app-user.mobile-selection-mode .drive-row.selected,
  body.app-user.mobile-selection-mode .drive-row.is-selected {
    background: #3f4b5f !important;
    border-radius: 8px !important;
    padding: 10px 10px 12px !important;
  }

  body.app-user.mobile-selection-mode .drive-row.selected .drive-name,
  body.app-user.mobile-selection-mode .drive-row.is-selected .drive-name {
    grid-template-rows: auto 84px !important;
  }

  body.app-user.mobile-selection-mode .drive-row.selected .drive-name strong,
  body.app-user.mobile-selection-mode .drive-row.is-selected .drive-name strong {
    color: #a8c7fa !important;
  }

  body.app-user.mobile-selection-mode .drive-row.selected .drive-thumb,
  body.app-user.mobile-selection-mode .drive-row.is-selected .drive-thumb {
    border-color: rgba(255,255,255,.18) !important;
  }

  body.app-user.mobile-selection-mode .select-item,
  body.app-user.mobile-selection-mode.drive-view-grid .actions .select-item,
  body.app-user.mobile-selection-mode.drive-view-comfortable .actions .select-item {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    right: 10px !important;
    top: 28px !important;
    border: 2px solid #9aa0a6 !important;
    background: transparent !important;
    opacity: 1 !important;
  }

  body.app-user.mobile-selection-mode .drive-row.selected .select-item,
  body.app-user.mobile-selection-mode .drive-row.is-selected .select-item {
    background: #8ab4f8 !important;
    border-color: #8ab4f8 !important;
  }

  body.app-user.mobile-selection-mode .drive-row.selected .select-item::before,
  body.app-user.mobile-selection-mode .drive-row.selected .select-item::after,
  body.app-user.mobile-selection-mode .drive-row.is-selected .select-item::before,
  body.app-user.mobile-selection-mode .drive-row.is-selected .select-item::after {
    width: 13px !important;
    height: 7px !important;
    left: 6px !important;
    top: 8px !important;
    border-left: 3px solid #202124 !important;
    border-bottom: 3px solid #202124 !important;
  }

  body.app-user.mobile-selection-mode.drive-view-grid .context-menu > summary,
  body.app-user.mobile-selection-mode.drive-view-comfortable .context-menu > summary {
    right: 0 !important;
    color: #9aa0a6 !important;
    opacity: .9 !important;
  }

  body.app-user.mobile-light-mode.mobile-selection-mode {
    background: #1f2024 !important;
    color: #e8eaed !important;
  }

  body.app-user.mobile-light-mode.mobile-selection-mode .shell,
  body.app-user.mobile-light-mode.mobile-selection-mode .drive-app {
    background: #1f2024 !important;
    color: #e8eaed !important;
  }
}

@media (min-width: 761px) {
  .mobile-drive-top,
  .mobile-drive-tabs,
  .mobile-theme-switch,
  .mobile-bottom-nav,
  .mobile-drive-drawer,
  .mobile-drawer-backdrop {
    display: none !important;
  }

  .selection-bar {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .selection-bar .clear-selection {
    order: 0 !important;
  }

  .selection-bar strong {
    order: 1 !important;
    margin-right: 8px !important;
    white-space: nowrap !important;
  }

  .selection-bar .selection-actions {
    order: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .selection-bar .selection-actions form {
    display: inline-flex !important;
    margin: 0 !important;
  }

  .selection-bar .selection-more {
    display: none !important;
  }

  .selection-bar button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.app-user.drive-view-grid .drive-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr !important;
    gap: 10px !important;
    min-height: 282px !important;
    padding: 14px !important;
    overflow: visible !important;
    background: #eef3f9 !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  body.app-user.drive-view-grid .drive-row:hover {
    background: #e9eef6 !important;
  }

  body.app-user.drive-view-grid .drive-row.selected,
  body.app-user.drive-view-grid .drive-row.is-selected {
    background: #c2e7ff !important;
    border-color: #7fcfff !important;
    box-shadow: inset 0 0 0 1px #7fcfff !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) 76px !important;
    grid-template-rows: 34px 1fr !important;
    align-items: center !important;
    gap: 10px 12px !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    color: #202124 !important;
  }

  body.app-user.drive-view-grid .drive-name > .file-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    justify-self: center !important;
    align-self: center !important;
  }

  body.app-user.drive-view-grid .drive-name > strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    color: #202124 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.app-user.drive-view-grid .drive-thumb {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 186px !important;
    min-height: 186px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: #fff !important;
  }

  body.app-user.drive-view-grid .drive-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
  }

  body.app-user.drive-view-grid .folder-thumb {
    background: #fff8dc !important;
    border: 1px solid #f9d66f !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 94px !important;
    height: 94px !important;
    color: #fbbc04 !important;
  }

  body.app-user.drive-view-grid .drive-row > .owner-cell,
  body.app-user.drive-view-grid .drive-row > time,
  body.app-user.drive-view-grid .drive-row > small {
    display: none !important;
  }

  body.app-user.drive-view-grid .actions {
    position: absolute !important;
    top: 15px !important;
    right: 14px !important;
    z-index: 8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 62px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.app-user.drive-view-grid .actions form,
  body.app-user.drive-view-grid .actions > a,
  body.app-user.drive-view-grid .actions > button:not(.select-item),
  body.app-user.drive-view-grid .actions details:not(.context-menu) {
    display: none !important;
  }

  body.app-user.drive-view-grid .actions .select-item {
    position: static !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    border: 1.5px solid #dadce0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.app-user.drive-view-grid .drive-row.selected .select-item,
  body.app-user.drive-view-grid .drive-row.is-selected .select-item {
    border-color: #1a73e8 !important;
    background: #1a73e8 !important;
  }

  body.app-user.drive-view-grid .drive-row.selected .select-item::before,
  body.app-user.drive-view-grid .drive-row.is-selected .select-item::before {
    content: "" !important;
    display: block !important;
    width: 11px !important;
    height: 6px !important;
    border-left: 2.2px solid #fff !important;
    border-bottom: 2.2px solid #fff !important;
    transform: rotate(-45deg) !important;
    margin-top: -2px !important;
    background: transparent !important;
  }

  body.app-user.drive-view-grid .drive-row.selected .select-item::after,
  body.app-user.drive-view-grid .drive-row.is-selected .select-item::after {
    display: none !important;
  }

  body.app-user.drive-view-grid .context-menu {
    position: static !important;
    display: block !important;
  }

  body.app-user.drive-view-grid .context-menu > summary {
    position: static !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #3c4043 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    opacity: 1 !important;
  }

  body.app-user.drive-view-grid .context-menu > summary:hover {
    background: rgba(60, 64, 67, .12) !important;
  }

  body.app-user.drive-view-grid .context-menu[open] > summary {
    background: rgba(60, 64, 67, .14) !important;
  }

  body.app-user.drive-view-grid .context-menu .context-panel {
    top: 34px !important;
    right: 0 !important;
    z-index: 30 !important;
  }
}

@media (min-width: 1024px) {
  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* Modern compact Drive filters */
.filter-row {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 16px 0 12px !important;
  padding: 0 !important;
}

.filter-row button[data-filter] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 15px !important;
  border: 1px solid #d0d7de !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #202124 !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .08) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.filter-row button[data-filter]:hover {
  background: #f8fbff !important;
  border-color: #b8c7d9 !important;
  box-shadow: 0 2px 5px rgba(60, 64, 67, .12) !important;
}

.filter-row button[data-filter].active,
.filter-row button[data-filter][aria-expanded="true"] {
  background: #e8f0fe !important;
  border-color: #8ab4f8 !important;
  color: #0b57d0 !important;
}

.filter-row button[data-filter] strong {
  display: inline-block !important;
  max-width: 150px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.filter-row button[data-filter] span {
  display: inline-grid !important;
  place-items: center !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  color: currentColor !important;
}

.filter-row button[data-filter] svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
}

.filter-menu {
  position: absolute !important;
  z-index: 5000 !important;
  display: grid !important;
  gap: 2px !important;
  min-width: 190px !important;
  max-width: min(280px, calc(100vw - 24px)) !important;
  padding: 8px !important;
  border: 1px solid #dfe5ee !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(31, 41, 55, .18), 0 4px 10px rgba(31, 41, 55, .10) !important;
}

.filter-menu button {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #202124 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: left !important;
  cursor: pointer !important;
}

.filter-menu button:hover,
.filter-menu button.selected {
  background: #f1f6ff !important;
  color: #0b57d0 !important;
}

.filter-menu button.selected::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .mobile-drive-drawer .drawer-theme-switch {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 6px !important;
    width: calc(100% - 48px) !important;
    margin: 18px 24px 14px !important;
    padding: 8px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
  }

  .mobile-drive-drawer .drawer-theme-switch > span {
    color: #dfe3ea !important;
    font-size: 13px !important;
    font-weight: 750 !important;
  }

  .mobile-drive-drawer .drawer-theme-switch button {
    min-width: 54px !important;
    min-height: 30px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #c5cad3 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
  }

  .mobile-drive-drawer .drawer-theme-switch button.active {
    background: #8ab4f8 !important;
    color: #111827 !important;
    box-shadow: 0 3px 10px rgba(138, 180, 248, .28) !important;
  }

  body.app-user.mobile-light-mode .mobile-drive-drawer .drawer-theme-switch {
    background: #f7faff !important;
    border-color: #dbe3ee !important;
  }

  body.app-user.mobile-light-mode .mobile-drive-drawer .drawer-theme-switch > span {
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .mobile-drive-drawer .drawer-theme-switch button {
    color: #5f6b7a !important;
  }

body.app-user.mobile-light-mode .mobile-drive-drawer .drawer-theme-switch button.active {
    background: #d3e3fd !important;
    color: #0b57d0 !important;
  }
}

/* Production polish pass: icon-only controls, mobile panels, and compact admin views */
.upload-panel button svg,
.modal-x svg,
.info-popup button svg,
.confirm-x svg,
.file-viewer-head button svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.upload-panel button svg path,
.modal-x svg path,
.info-popup button svg path,
.confirm-x svg path,
.file-viewer-head button svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-result svg {
  width: 18px;
  height: 18px;
  color: #188038;
}

.upload-result svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  body.app-user .profile-panel .session-list {
    display: grid !important;
    gap: 10px !important;
    margin-top: 18px !important;
    padding-bottom: 92px !important;
  }

  body.app-user .profile-panel .session-list .table-head,
  body.app-user .profile-panel .session-list article {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 13px 14px !important;
    border: 1px solid #44474f !important;
    border-radius: 14px !important;
    background: #2b2c30 !important;
    color: #e8eaed !important;
  }

  body.app-user .profile-panel .session-list .table-head {
    background: transparent !important;
    border-color: transparent !important;
    padding: 0 !important;
  }

  body.app-user .profile-panel .session-list small,
  body.app-user .profile-panel .session-list span {
    color: #aeb4bd !important;
  }

  body.app-user.mobile-light-mode .profile-panel .session-list .table-head,
  body.app-user.mobile-light-mode .profile-panel .session-list article {
    background: #ffffff !important;
    border-color: #dbe3ee !important;
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode .profile-panel .session-list small,
  body.app-user.mobile-light-mode .profile-panel .session-list span {
    color: #667085 !important;
  }

  body.app-user .notification-list,
  body.app-user .activity-list {
    display: grid !important;
    gap: 10px !important;
    padding-bottom: 92px !important;
  }

  body.app-user .notification-list article,
  body.app-user .activity-list article {
    border-radius: 14px !important;
    border: 1px solid #44474f !important;
    background: #2b2c30 !important;
    color: #e8eaed !important;
    padding: 13px 14px !important;
  }

  body.app-user.mobile-light-mode .notification-list article,
  body.app-user.mobile-light-mode .activity-list article {
    background: #ffffff !important;
    border-color: #dbe3ee !important;
    color: #182230 !important;
  }

  .search-modal {
    width: calc(100vw - 24px) !important;
    max-width: 420px !important;
    max-height: calc(100dvh - 40px) !important;
    overflow: auto !important;
    border-radius: 20px !important;
  }

  .search-modal-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  .search-modal-form button {
    min-width: 86px !important;
    padding-inline: 12px !important;
  }

  .search-modal-results .drive-row {
    grid-template-columns: 1fr !important;
    min-height: 58px !important;
    border-radius: 12px !important;
  }

  .admin-page-head,
  .admin-hero,
  .admin-toolbar,
  .admin-create-form,
  .admin-split {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .admin-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-table table {
    min-width: 720px !important;
  }

  .admin-user-modal {
    width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow: auto !important;
    border-radius: 18px !important;
  }
}

/* 18-addons polish */
.folder-color-blue .folder-thumb,
.folder-color-blue .folder-file-icon { color: #1a73e8; }
.folder-color-green .folder-thumb,
.folder-color-green .folder-file-icon { color: #188038; }
.folder-color-yellow .folder-thumb,
.folder-color-yellow .folder-file-icon { color: #d59600; }
.folder-color-red .folder-thumb,
.folder-color-red .folder-file-icon { color: #d93025; }
.folder-color-purple .folder-thumb,
.folder-color-purple .folder-file-icon { color: #9334e6; }

.folder-color-item {
  gap: 10px;
}

.folder-color-item select {
  margin-left: auto;
  max-width: 118px;
  border: 1px solid var(--line, #d7dde7);
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  font: inherit;
}

.share-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.share-option input {
  width: 16px !important;
  height: 16px !important;
}

.activity-list code {
  white-space: normal;
  word-break: break-word;
  color: #536173;
}

@media (max-width: 760px) {
  body.app-user.route-profile .new-menu,
  body.app-user.route-profile .drive-sidebar > .new-menu {
    display: none !important;
  }

  body.app-user.route-profile .mobile-add-fab,
  body.app-user.route-profile .mobile-fab,
  body.app-user.route-profile .drive-fab {
    display: none !important;
  }

  body.app-user.route-profile .drive-panel.profile-panel {
    width: 100% !important;
    min-height: auto !important;
    padding: 18px 14px 118px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.app-user.route-profile .profile-panel .drive-panel-head {
    margin-bottom: 14px !important;
    padding: 0 !important;
  }

  body.app-user.route-profile .profile-panel .drive-panel-head h1 {
    margin: 0 !important;
    color: #e8eaed !important;
    font-size: 25px !important;
    line-height: 1.15 !important;
  }

  body.app-user.mobile-light-mode.route-profile .profile-panel .drive-panel-head h1 {
    color: #111827 !important;
  }

  body.app-user.route-profile .profile-panel .drive-panel-head .muted {
    margin-top: 6px !important;
    color: #aeb4bd !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  body.app-user.mobile-light-mode.route-profile .profile-panel .drive-panel-head .muted {
    color: #667085 !important;
  }

  body.app-user.route-profile .profile-grid {
    gap: 9px !important;
    margin-bottom: 18px !important;
  }

  body.app-user.route-profile .profile-grid article {
    min-height: 72px !important;
    padding: 13px 15px !important;
    border-radius: 12px !important;
    background: #27292f !important;
    border-color: #3c4048 !important;
  }

  body.app-user.route-profile .profile-grid strong {
    display: block !important;
    color: #f4f7fb !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  body.app-user.route-profile .profile-grid span {
    color: #bdc5d1 !important;
    font-size: 12px !important;
  }

  body.app-user.mobile-light-mode.route-profile .profile-grid article {
    background: #fff !important;
    border-color: #dbe4ef !important;
  }

  body.app-user.mobile-light-mode.route-profile .profile-grid strong {
    color: #111827 !important;
  }

  body.app-user.mobile-light-mode.route-profile .profile-grid span {
    color: #667085 !important;
  }

  body.app-user.route-profile .profile-form {
    gap: 15px !important;
    padding-bottom: 4px !important;
  }

  body.app-user.route-profile .profile-form label {
    display: grid !important;
    gap: 7px !important;
    color: #eef2f7 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
  }

  body.app-user.mobile-light-mode.route-profile .profile-form label {
    color: #1f2937 !important;
  }

  body.app-user.route-profile .profile-form input,
  body.app-user.route-profile .profile-form select {
    width: 100% !important;
    min-height: 46px !important;
    padding: 0 13px !important;
    border: 1px solid #424650 !important;
    border-radius: 11px !important;
    background: #f8fafc !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
  }

  body.app-user.route-profile .profile-form select {
    padding-right: 40px !important;
    background-image:
      linear-gradient(45deg, transparent 50%, #536173 50%),
      linear-gradient(135deg, #536173 50%, transparent 50%) !important;
    background-position:
      calc(100% - 20px) 50%,
      calc(100% - 14px) 50% !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat !important;
  }

  body.app-user.route-profile .profile-form input:focus,
  body.app-user.route-profile .profile-form select:focus {
    border-color: #8ab4f8 !important;
    box-shadow: 0 0 0 3px rgba(138, 180, 248, .18) !important;
  }

  body.app-user.route-profile .profile-form input::placeholder {
    color: #667085 !important;
    opacity: 1 !important;
  }

  body.app-user.route-profile .profile-form .primary {
    position: relative !important;
    z-index: 2 !important;
    min-height: 48px !important;
    margin-top: 8px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  body.app-user.route-profile .profile-panel .session-list {
    margin-top: 24px !important;
    padding: 18px 0 128px !important;
    border-top: 1px solid rgba(255, 255, 255, .09) !important;
  }

  body.app-user.route-profile .profile-panel .session-list .table-head {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  body.app-user.route-profile .profile-panel .session-list .table-head h2 {
    margin: 0 !important;
    color: #f4f7fb !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  body.app-user.mobile-light-mode.route-profile .profile-panel .session-list {
    border-top-color: #dbe3ee !important;
  }

  body.app-user.mobile-light-mode.route-profile .profile-panel .session-list .table-head h2 {
    color: #111827 !important;
  }
}

@media (max-width: 760px) {
  body.app-user.drive-view-grid .actions .select-item,
  body.app-user.drive-view-comfortable .actions .select-item,
  body.app-user.mobile-selection-mode .select-item,
  body.app-user.mobile-selection-mode.drive-view-grid .actions .select-item,
  body.app-user.mobile-selection-mode.drive-view-comfortable .actions .select-item {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    min-height: 19px !important;
    border-width: 1.4px !important;
    box-shadow: none !important;
  }

  body.app-user.mobile-selection-mode .select-item,
  body.app-user.mobile-selection-mode.drive-view-grid .actions .select-item,
  body.app-user.mobile-selection-mode.drive-view-comfortable .actions .select-item {
    right: 8px !important;
    top: 24px !important;
  }

  body.app-user.drive-view-grid .drive-row.selected .select-item,
  body.app-user.drive-view-grid .drive-row.is-selected .select-item,
  body.app-user.mobile-selection-mode .drive-row.selected .select-item,
  body.app-user.mobile-selection-mode .drive-row.is-selected .select-item {
    background: #8ab4f8 !important;
    border-color: #8ab4f8 !important;
  }

  body.app-user.drive-view-grid .drive-row.selected .select-item::before,
  body.app-user.drive-view-grid .drive-row.is-selected .select-item::before,
  body.app-user.mobile-selection-mode .drive-row.selected .select-item::before,
  body.app-user.mobile-selection-mode .drive-row.selected .select-item::after,
  body.app-user.mobile-selection-mode .drive-row.is-selected .select-item::before,
  body.app-user.mobile-selection-mode .drive-row.is-selected .select-item::after {
    content: "" !important;
    width: 9px !important;
    height: 5px !important;
    left: 4px !important;
    top: 5px !important;
    margin: 0 !important;
    border-left: 2.2px solid #202124 !important;
    border-bottom: 2.2px solid #202124 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    transform: rotate(-45deg) !important;
    background: transparent !important;
  }
}

.search-results-panel .drive-panel-head {
  margin-bottom: 14px;
}

.search-results-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid #dde5ef;
  border-radius: 14px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(31, 41, 55, .06);
}

.search-result-card:hover {
  border-color: #b9d7f5;
  background: #f7fbff;
}

.search-result-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eef4fb;
  color: #5f6b7a;
}

.search-result-mark .gicon {
  width: 24px;
  height: 24px;
}

.search-result-mark.file-badge {
  width: 34px;
  height: 28px;
  border-radius: 7px;
  background: #ea4335;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.search-result-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.search-result-main strong {
  overflow: hidden;
  color: inherit;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-main small {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-arrow {
  color: #8a94a6;
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.search-results-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 210px;
  border: 1px dashed #d8e0eb;
  border-radius: 18px;
  color: #667085;
  text-align: center;
}

.search-results-empty strong {
  color: #172033;
  font-size: 18px;
}

@media (max-width: 760px) {
  body.app-user.route-search .drive-panel.search-results-panel {
    padding: 14px 12px 100px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.app-user.route-search .search-results-panel .drive-panel-head {
    margin-bottom: 12px !important;
  }

  body.app-user.route-search .search-results-panel .drive-panel-head h1 {
    color: #f4f7fb !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  body.app-user.route-search .search-results-panel .drive-panel-head .muted {
    color: #aeb4bd !important;
    font-size: 13px !important;
  }

  body.app-user.route-search .search-results-list {
    gap: 9px !important;
    max-width: none !important;
  }

  body.app-user.route-search .search-result-card {
    grid-template-columns: 36px minmax(0, 1fr) 18px !important;
    min-height: 58px !important;
    gap: 10px !important;
    padding: 9px 10px !important;
    border-color: rgba(255,255,255,.08) !important;
    border-radius: 14px !important;
    background: #27292f !important;
    color: #eef2f7 !important;
    box-shadow: none !important;
  }

  body.app-user.route-search .search-result-card:hover {
    background: #30323a !important;
  }

  body.app-user.route-search .search-result-mark {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    background: #30343d !important;
    color: #aeb4bd !important;
  }

  body.app-user.route-search .search-result-mark .gicon {
    width: 22px !important;
    height: 22px !important;
  }

  body.app-user.route-search .search-result-mark.file-badge {
    width: 28px !important;
    height: 24px !important;
    border-radius: 6px !important;
    background: #ea4335 !important;
    color: #fff !important;
    font-size: 9px !important;
  }

  body.app-user.route-search .search-result-main strong {
    color: #f4f7fb !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  body.app-user.route-search .search-result-main small {
    color: #aeb4bd !important;
    font-size: 11px !important;
  }

  body.app-user.route-search .search-result-arrow {
    color: #6f7682 !important;
    font-size: 20px !important;
  }

  body.app-user.route-search .search-results-empty {
    min-height: 260px !important;
    border-color: rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.02) !important;
    color: #aeb4bd !important;
  }

  body.app-user.route-search .search-results-empty strong {
    color: #f4f7fb !important;
  }

  body.app-user.mobile-light-mode.route-search .search-results-panel .drive-panel-head h1 {
    color: #111827 !important;
  }

  body.app-user.mobile-light-mode.route-search .search-results-panel .drive-panel-head .muted {
    color: #667085 !important;
  }

  body.app-user.mobile-light-mode.route-search .search-result-card {
    border-color: #dbe4ef !important;
    background: #fff !important;
    color: #182230 !important;
    box-shadow: 0 5px 18px rgba(31, 41, 55, .05) !important;
  }

  body.app-user.mobile-light-mode.route-search .search-result-main strong {
    color: #182230 !important;
  }

  body.app-user.mobile-light-mode.route-search .search-result-main small {
    color: #667085 !important;
  }

  body.app-user.mobile-light-mode.route-search .search-results-empty {
    border-color: #dbe4ef !important;
    background: #fff !important;
    color: #667085 !important;
  }

  body.app-user.mobile-light-mode.route-search .search-results-empty strong {
    color: #111827 !important;
  }
}

@media (min-width: 761px) {
  body.app-user {
    background: #f8fafd !important;
    color: #1f1f1f !important;
  }

  body.app-user .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 120 !important;
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 0 !important;
    min-height: 80px !important;
    padding: 0 28px !important;
    border-bottom: 1px solid #e5e8ef !important;
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  body.app-user .topbar .brand {
    font-size: 28px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    color: #172033 !important;
  }

  body.app-user .topbar .brand span {
    color: #15708a !important;
  }

  body.app-user .topbar > nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.app-user .topbar > nav > button.search-open-button {
    order: -1 !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    max-width: 1040px !important;
    min-height: 58px !important;
    margin-right: auto !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #edf2fa !important;
    color: #4d5156 !important;
    box-shadow: none !important;
    font-size: 22px !important;
    font-weight: 450 !important;
  }

  body.app-user .topbar > nav > button.search-open-button:hover {
    background: #e7edf6 !important;
    color: #202124 !important;
  }

  body.app-user .topbar > nav > button.search-open-button .gicon {
    width: 26px !important;
    height: 26px !important;
  }

  body.app-user .topbar > nav > button.search-open-button span {
    display: inline !important;
    max-width: none !important;
  }

  body.app-user .topbar > nav > a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #5f6778 !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
  }

  body.app-user .topbar > nav > a:hover {
    color: #0b57d0 !important;
  }

  body.app-user .shell:has(.drive-app),
  body.app-user .shell {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8fafd !important;
  }

  body.app-user .drive-app {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr) 56px !important;
    gap: 0 !important;
    min-height: calc(100vh - 80px) !important;
    background: #f8fafd !important;
  }

  body.app-user .drive-sidebar {
    position: sticky !important;
    top: 80px !important;
    align-self: start !important;
    height: calc(100vh - 80px) !important;
    padding: 18px 20px 20px !important;
    overflow: auto !important;
    background: #f8fafd !important;
  }

  body.app-user .new-menu {
    width: 128px !important;
    margin-bottom: 18px !important;
  }

  body.app-user .new-menu > summary {
    min-height: 72px !important;
    padding: 0 22px !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: #111827 !important;
    box-shadow: 0 2px 7px rgba(60, 64, 67, .24) !important;
    font-size: 17px !important;
    font-weight: 750 !important;
  }

  body.app-user .new-menu > summary span {
    font-size: 34px !important;
    font-weight: 300 !important;
  }

  body.app-user .drive-nav {
    display: grid !important;
    gap: 7px !important;
    width: 100% !important;
  }

  body.app-user .drive-nav-item {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 0 18px 0 20px !important;
    border-radius: 999px !important;
    color: #1f1f1f !important;
    font-size: 19px !important;
    font-weight: 500 !important;
  }

  body.app-user .drive-nav-item span {
    display: inline-grid !important;
    place-items: center !important;
    width: 26px !important;
    height: 26px !important;
    color: #202124 !important;
  }

  body.app-user .drive-nav-item .gicon {
    width: 24px !important;
    height: 24px !important;
  }

  body.app-user .drive-nav-item:hover {
    background: #edf2fa !important;
  }

  body.app-user .drive-nav-item.active {
    background: #c2e7ff !important;
    color: #001d35 !important;
  }

  body.app-user .storage-card {
    margin: 22px 20px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1f2937 !important;
  }

  body.app-user .storage-card strong {
    display: block !important;
    margin-bottom: 10px !important;
    font-size: 18px !important;
    font-weight: 650 !important;
  }

  body.app-user .storage-meter {
    height: 4px !important;
    border-radius: 999px !important;
    background: #d7dbe1 !important;
  }

  body.app-user .storage-card span {
    display: block !important;
    margin-top: 10px !important;
    color: #3f4a5f !important;
    font-size: 16px !important;
  }

  body.app-user .apk-sidebar-card {
    display: none !important;
  }

  body.app-user .drive-nav-toggle {
    display: none !important;
  }

  body.app-user .drive-content {
    min-width: 0 !important;
    padding: 0 !important;
  }

  body.app-user .drive-panel {
    min-height: calc(100vh - 104px) !important;
    margin: 0 0 20px !important;
    padding: 26px 24px 34px !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.app-user .drive-panel-head {
    align-items: flex-start !important;
    margin-bottom: 20px !important;
  }

  body.app-user .drive-panel-head h1 {
    margin: 0 !important;
    color: #000 !important;
    font-size: 31px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
  }

  body.app-user .crumbs,
  body.app-user .drive-panel-head .muted {
    margin-top: 8px !important;
    color: #5f6778 !important;
    font-size: 16px !important;
  }

  body.app-user .panel-tools {
    gap: 14px !important;
    align-items: center !important;
  }

  body.app-user .view-toggle {
    overflow: hidden !important;
    height: 40px !important;
    border: 1px solid #8b949e !important;
    border-radius: 999px !important;
    background: #fff !important;
  }

  body.app-user .view-toggle button {
    width: 58px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-right: 1px solid #8b949e !important;
    background: transparent !important;
    color: #001d35 !important;
    font-size: 21px !important;
  }

  body.app-user .view-toggle button:last-child {
    border-right: 0 !important;
  }

  body.app-user .view-toggle button.active {
    background: #c2e7ff !important;
  }

  body.app-user .info-dot {
    width: 24px !important;
    height: 24px !important;
    border: 2px solid #202124 !important;
    font-size: 14px !important;
  }

  body.app-user .filter-row {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 0 24px !important;
  }

  body.app-user .filter-row button,
  body.app-user .filter-row button[data-filter] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    min-width: 108px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    border: 1px solid #747775 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #1f1f1f !important;
    box-shadow: none !important;
    font-size: 18px !important;
    font-weight: 500 !important;
  }

  body.app-user .filter-row button:hover,
  body.app-user .filter-row button[data-filter]:hover {
    background: #f8fafd !important;
  }

  body.app-user.drive-view-grid .drive-table {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 0 !important;
  }

  body.app-user.drive-view-grid .drive-head {
    display: none !important;
  }

  body.app-user.drive-view-grid .drive-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 48px 210px !important;
    gap: 0 !important;
    min-height: 258px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #edf2f7 !important;
    box-shadow: none !important;
  }

  body.app-user.drive-view-grid .drive-row:hover {
    background: #e8eef6 !important;
  }

  body.app-user.drive-view-grid .drive-row.selected,
  body.app-user.drive-view-grid .drive-row.is-selected {
    background: #c2e7ff !important;
    box-shadow: inset 0 0 0 1px #7fcfff !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) 70px !important;
    grid-template-rows: 48px 1fr !important;
    align-items: center !important;
    gap: 0 10px !important;
    height: 100% !important;
    padding: 0 10px !important;
  }

  body.app-user.drive-view-grid .drive-name > .file-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    border-radius: 4px !important;
    background: #ea4335 !important;
    color: #fff !important;
    font-size: 8px !important;
  }

  body.app-user.drive-view-grid .drive-name > .folder-file-icon {
    background: transparent !important;
    color: #5f6368 !important;
  }

  body.app-user.drive-view-grid .drive-name > strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #202124 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
  }

  body.app-user.drive-view-grid .drive-thumb {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 210px !important;
    min-height: 210px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background: #fff !important;
  }

  body.app-user.drive-view-grid .drive-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 6px !important;
  }

  body.app-user.drive-view-grid .folder-thumb {
    border: 1px solid #f5d36f !important;
    background: #fff8dc !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 82px !important;
    height: 82px !important;
    color: #fbbc04 !important;
  }

  body.app-user.drive-view-grid .drive-row > .owner-cell,
  body.app-user.drive-view-grid .drive-row > time,
  body.app-user.drive-view-grid .drive-row > small {
    display: none !important;
  }

  body.app-user.drive-view-grid .actions {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: 60px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body.app-user.drive-view-grid .actions form,
  body.app-user.drive-view-grid .actions > a,
  body.app-user.drive-view-grid .actions > button:not(.select-item),
  body.app-user.drive-view-grid .actions details:not(.context-menu) {
    display: none !important;
  }

  body.app-user.drive-view-grid .actions .select-item {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    border: 1.5px solid #dadce0 !important;
    border-radius: 50% !important;
    background: #fff !important;
  }

  body.app-user.drive-view-grid .context-menu > summary {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #3c4043 !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  body.app-user.drive-view-list .drive-table {
    display: grid !important;
  }

  body.app-user.drive-view-list .drive-head,
  body.app-user.drive-view-list .drive-row {
    grid-template-columns: minmax(360px, 1.6fr) 220px 220px 160px 42px !important;
    min-height: 60px !important;
    padding: 0 10px !important;
    border-bottom: 1px solid #dfe3ea !important;
  }

  body.app-user.drive-view-list .drive-head {
    min-height: 44px !important;
    color: #444746 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  body.app-user.drive-view-list .drive-row:hover {
    background: #f5f8fd !important;
  }

  body.app-user.drive-view-list .drive-name strong,
  body.app-user.drive-view-list .drive-row small,
  body.app-user.drive-view-list .drive-row time {
    color: #3c4043 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  body.app-user .drive-rail {
    display: grid !important;
    justify-items: center !important;
    align-content: start !important;
    gap: 30px !important;
    padding-top: 86px !important;
    border-left: 0 !important;
    background: #f8fafd !important;
    color: #1a73e8 !important;
  }

  body.app-user .drive-rail span {
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
  }

  body.app-user .drive-rail .gicon {
    width: 23px !important;
    height: 23px !important;
  }

  body.app-user .drive-rail b {
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    margin-top: 18px !important;
    color: #000 !important;
    font-size: 30px !important;
    font-weight: 400 !important;
  }
}

@media (min-width: 1500px) {
  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 761px) {
  body.app-user .drive-panel-head-with-filters {
    display: grid !important;
    grid-template-columns: minmax(190px, auto) minmax(360px, 1fr) auto !important;
    align-items: center !important;
    column-gap: 18px !important;
    row-gap: 8px !important;
    margin-bottom: 18px !important;
  }

  body.app-user .drive-panel-head-with-filters .drive-title-block {
    min-width: 0 !important;
  }

  body.app-user .drive-panel-head-with-filters .drive-title-block h1 {
    white-space: nowrap !important;
  }

  body.app-user .drive-panel-head-with-filters .crumbs {
    margin-top: 4px !important;
  }

  body.app-user .title-filter-row {
    justify-self: start !important;
    align-self: center !important;
    margin: 0 !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  body.app-user .title-filter-row button,
  body.app-user .title-filter-row button[data-filter] {
    height: 34px !important;
    min-height: 34px !important;
    min-width: 104px !important;
    padding: 0 12px !important;
    font-size: 15px !important;
  }

  body.app-user .drive-panel-head-with-filters .panel-tools {
    justify-self: end !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  body.app-user .drive-panel-head-with-filters {
    grid-template-columns: minmax(160px, auto) minmax(0, 1fr) !important;
  }

  body.app-user .drive-panel-head-with-filters .panel-tools {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body.app-user .title-filter-row {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
}

/* Final mobile video preview fit: keep the player inside narrow phone screens. */
@media (max-width: 760px) {
  .file-viewer-backdrop {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    overflow: hidden !important;
  }

  .file-viewer {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: auto !important;
    max-height: calc(100dvh - 16px) !important;
    grid-template-rows: 42px minmax(0, auto) !important;
    overflow: hidden !important;
    border-radius: 11px !important;
  }

  .file-viewer-head {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 8px 0 10px !important;
    gap: 6px !important;
  }

  .file-viewer-head strong {
    min-width: 0 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .file-viewer-head a {
    max-width: 86px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10px !important;
  }

  .file-viewer-head button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 20px !important;
  }

  .file-viewer-body {
    width: 100% !important;
    min-width: 0 !important;
    max-height: calc(100dvh - 58px) !important;
    overflow: hidden !important;
  }

  .video-preview-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: min(62dvh, calc(100dvh - 58px)) !important;
    max-height: calc(100dvh - 58px) !important;
    grid-template-rows: minmax(0, 1fr) 44px !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  .video-preview-wrap video {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
  }

  .video-custom-controls {
    display: grid !important;
    grid-template-columns: 54px 32px minmax(82px, 1fr) !important;
    height: 44px !important;
    min-height: 44px !important;
    gap: 6px !important;
    padding: 6px 8px !important;
    overflow: hidden !important;
  }

  .video-custom-controls button {
    min-width: 0 !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 9px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
  }

  .video-custom-controls .video-mute-toggle,
  .video-custom-controls .video-fullscreen-toggle,
  .video-time.duration {
    display: none !important;
  }

  .video-time.current {
    min-width: 30px !important;
    font-size: 10px !important;
    text-align: center !important;
  }

  .video-seek {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Final mobile view switch: clean List / Thumbnail modes for the app layout. */
@media (max-width: 760px) {
  body.app-user .drive-panel-head,
  body.app-user .drive-panel-head-with-filters {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
  }

  body.app-user .drive-title-block,
  body.app-user .drive-panel-head > div:first-child {
    min-width: 0 !important;
  }

  body.app-user .drive-panel-head h1 {
    margin: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 18px !important;
    font-weight: 700 !important;
  }

  body.app-user .crumbs,
  body.app-user .drive-panel-head .muted {
    display: none !important;
  }

  body.app-user .panel-tools {
    justify-self: end !important;
    gap: 8px !important;
  }

  body.app-user .info-dot {
    display: none !important;
  }

  body.app-user .view-toggle {
    display: inline-flex !important;
    width: auto !important;
    height: 32px !important;
    overflow: hidden !important;
    border: 1px solid rgba(138, 180, 248, .45) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .08) !important;
  }

  body.app-user .view-toggle button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 62px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-right: 1px solid rgba(138, 180, 248, .35) !important;
    background: transparent !important;
    color: #dbe7ff !important;
    font-size: 0 !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body.app-user .view-toggle button[data-view="comfortable"] {
    display: none !important;
  }

  body.app-user .view-toggle button[data-view="list"]::after {
    content: "List";
    font-size: 11px;
  }

  body.app-user .view-toggle button[data-view="grid"]::after {
    content: "Thumbnail";
    font-size: 11px;
  }

  body.app-user .view-toggle button:last-child {
    border-right: 0 !important;
  }

  body.app-user .view-toggle button.active {
    background: #8ab4f8 !important;
    color: #0f172a !important;
  }

  body.app-user.mobile-light-mode .view-toggle {
    border-color: #c9d7ee !important;
    background: #fff !important;
  }

  body.app-user.mobile-light-mode .view-toggle button {
    color: #334155 !important;
    border-right-color: #dbe4f0 !important;
  }

  body.app-user.mobile-light-mode .view-toggle button.active {
    background: #c2e7ff !important;
    color: #001d35 !important;
  }

  body.app-user .title-filter-row,
  body.app-user .filter-row.title-filter-row {
    display: none !important;
  }

  body.app-user.drive-view-list .drive-table {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 8px 0 84px !important;
    overflow: visible !important;
  }

  body.app-user.drive-view-list .drive-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px !important;
    min-height: 34px !important;
    padding: 0 4px !important;
    border-bottom: 1px solid rgba(148, 163, 184, .34) !important;
    color: #cbd5e1 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  body.app-user.mobile-light-mode.drive-view-list .drive-head {
    color: #475569 !important;
    border-bottom-color: #dbe4f0 !important;
  }

  body.app-user.drive-view-list .drive-head span:nth-child(n+2) {
    display: none !important;
  }

  body.app-user.drive-view-list .drive-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    min-height: 54px !important;
    padding: 0 4px !important;
    border-bottom: 1px solid rgba(148, 163, 184, .28) !important;
    background: transparent !important;
  }

  body.app-user.drive-view-list .drive-row > .drive-name {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  body.app-user.drive-view-list .drive-name > .file-icon {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    border-radius: 5px !important;
    font-size: 7px !important;
  }

  body.app-user.drive-view-list .drive-name > strong {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #f8fafc !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 650 !important;
  }

  body.app-user.mobile-light-mode.drive-view-list .drive-name > strong {
    color: #111827 !important;
  }

  body.app-user.drive-view-list .drive-row > .owner-cell,
  body.app-user.drive-view-list .drive-row > time,
  body.app-user.drive-view-list .drive-row > small,
  body.app-user.drive-view-list .drive-thumb {
    display: none !important;
  }

  body.app-user.drive-view-list .actions {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-width: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body.app-user.drive-view-list .actions form,
  body.app-user.drive-view-list .actions > a,
  body.app-user.drive-view-list .actions > button:not(.select-item),
  body.app-user.drive-view-list .actions details:not(.context-menu) {
    display: none !important;
  }

  body.app-user.drive-view-list .actions .select-item {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
  }

  body.app-user.drive-view-list .context-menu > summary {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #9aa0a6 !important;
    font-size: 18px !important;
  }

  body.app-user.drive-view-grid .drive-table {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 8px 0 84px !important;
    overflow: visible !important;
  }

  body.app-user.drive-view-grid .drive-head {
    display: none !important;
  }

  body.app-user.drive-view-grid .drive-row {
    grid-template-rows: 34px 86px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    border-radius: 8px !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name {
    grid-template-columns: 22px minmax(0, 1fr) 40px !important;
    grid-template-rows: 34px 86px !important;
    gap: 0 6px !important;
    padding: 0 6px !important;
  }

  body.app-user.drive-view-grid .drive-name > strong {
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  body.app-user.drive-view-grid .drive-name > .file-icon {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    font-size: 6px !important;
  }

  body.app-user.drive-view-grid .drive-thumb {
    height: 86px !important;
    min-height: 86px !important;
    border-radius: 7px !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 42px !important;
    height: 42px !important;
  }

  body.app-user.drive-view-grid .actions {
    top: 7px !important;
    right: 5px !important;
    gap: 3px !important;
    min-width: 38px !important;
  }

  body.app-user.drive-view-grid .actions .select-item {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
  }

  body.app-user.drive-view-grid .context-menu > summary {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    font-size: 18px !important;
  }

  body.app-user.drive-view-comfortable .drive-table {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* Mobile action menu typography: lighter, smaller, and no shortcut overlap. */
@media (max-width: 760px) {
  body.app-user .context-panel {
    letter-spacing: 0 !important;
  }

  body.app-user .context-item,
  body.app-user .context-panel button.context-item,
  body.app-user .context-panel a.context-item,
  body.app-user .context-panel label.context-item {
    min-height: 27px !important;
    height: 27px !important;
    grid-template-columns: 15px minmax(0, 1fr) auto !important;
    gap: 6px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
  }

  body.app-user .context-item span {
    justify-content: start !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: inherit !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
  }

  body.app-user .context-item .gicon,
  body.app-user .context-item svg {
    width: 12px !important;
    height: 12px !important;
  }

  body.app-user .context-item small,
  body.app-user .context-item b {
    max-width: 42px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 7px !important;
    font-weight: 400 !important;
    opacity: .68 !important;
  }
}

/* Desktop: restore readable action menus after mobile tuning. */
@media (min-width: 761px) {
  body.app-user .drive-row:has(.context-menu[open]),
  body.app-user.drive-view-grid .drive-row:has(.context-menu[open]),
  body.app-user.drive-view-comfortable .drive-row:has(.context-menu[open]) {
    overflow: visible !important;
    z-index: 1800 !important;
  }

  body.app-user .context-menu[open],
  body.app-user.drive-view-grid .context-menu[open],
  body.app-user.drive-view-comfortable .context-menu[open] {
    position: relative !important;
    z-index: 1810 !important;
  }

  body.app-user .context-menu .context-panel,
  body.app-user.drive-view-grid .context-menu .context-panel,
  body.app-user.drive-view-comfortable .context-menu .context-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    max-height: min(520px, 72vh) !important;
    overflow-y: auto !important;
    border-radius: 8px !important;
    background: #fff !important;
    border: 1px solid #dadce0 !important;
    box-shadow: 0 8px 24px rgba(60, 64, 67, .28) !important;
    z-index: 1820 !important;
  }

  body.app-user .context-item,
  body.app-user .context-panel button.context-item,
  body.app-user .context-panel a.context-item,
  body.app-user .context-panel label.context-item {
    min-height: 38px !important;
    height: 38px !important;
    grid-template-columns: 30px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #303134 !important;
    white-space: nowrap !important;
    background: #fff !important;
  }

  body.app-user .context-item span,
  body.app-user .context-item .gicon {
    color: #5f6368 !important;
  }

  body.app-user .context-item small,
  body.app-user .context-item b {
    color: #3c4043 !important;
    font-size: 11px !important;
  }
}

/* Final mobile menu density: keep action sheets short and thumb-friendly. */
@media (max-width: 760px) {
  body.app-user .context-menu .context-panel,
  body.app-user.drive-view-grid .context-menu .context-panel,
  body.app-user.drive-view-comfortable .context-menu .context-panel {
    left: 22px !important;
    right: 22px !important;
    bottom: 70px !important;
    max-height: 330px !important;
    border-radius: 13px !important;
  }

  body.app-user .context-item,
  body.app-user .context-panel button.context-item,
  body.app-user .context-panel a.context-item,
  body.app-user .context-panel label.context-item {
    min-height: 34px !important;
    height: 34px !important;
    grid-template-columns: 22px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
    font-weight: 650 !important;
  }

  body.app-user .context-item span {
    line-height: 1 !important;
  }

  body.app-user .context-item .gicon,
  body.app-user .context-item svg {
    width: 15px !important;
    height: 15px !important;
  }

  body.app-user .context-item small,
  body.app-user .context-item b {
    font-size: 9px !important;
  }

  body.app-user .folder-color-item select {
    height: 26px !important;
    min-height: 26px !important;
    max-width: 82px !important;
    padding: 0 20px 0 8px !important;
    font-size: 11px !important;
  }
}

/* Mobile preview: keep video player fully inside the phone viewport. */
@media (max-width: 760px) {
  .file-viewer-backdrop {
    place-items: start center !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  .file-viewer {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    height: auto !important;
    max-height: calc(100dvh - 20px) !important;
    grid-template-rows: 44px minmax(0, 1fr) !important;
    border-radius: 10px !important;
  }

  .file-viewer-head {
    min-height: 44px !important;
    padding: 0 10px 0 12px !important;
    gap: 8px !important;
  }

  .file-viewer-head strong {
    font-size: 12px !important;
  }

  .file-viewer-head a {
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .file-viewer-head button {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 24px !important;
  }

  .file-viewer-body {
    max-height: calc(100dvh - 64px) !important;
    overflow: hidden !important;
  }

  .video-preview-wrap {
    width: 100% !important;
    height: min(66dvh, calc(100dvh - 74px)) !important;
    max-height: calc(100dvh - 74px) !important;
    grid-template-rows: minmax(0, 1fr) 46px !important;
  }

  .video-preview-wrap video {
    width: 100% !important;
    height: 100% !important;
    max-height: calc(100dvh - 120px) !important;
    object-fit: contain !important;
  }

  .video-custom-controls {
    height: 46px !important;
    grid-template-columns: 58px 38px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 6px 8px !important;
    overflow: hidden !important;
  }

  .video-custom-controls button {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
  }

  .video-time {
    min-width: 34px !important;
    font-size: 11px !important;
  }

  .video-seek {
    min-width: 0 !important;
  }
}

/* Final mobile action menu size: smaller sheet for small phones. */
@media (max-width: 760px) {
  body.app-user .context-menu .context-panel,
  body.app-user.drive-view-grid .context-menu .context-panel,
  body.app-user.drive-view-comfortable .context-menu .context-panel {
    left: 30px !important;
    right: 30px !important;
    bottom: 78px !important;
    max-height: 282px !important;
    border-radius: 12px !important;
  }

  body.app-user .context-item,
  body.app-user .context-panel button.context-item,
  body.app-user .context-panel a.context-item,
  body.app-user .context-panel label.context-item {
    min-height: 29px !important;
    height: 29px !important;
    grid-template-columns: 18px minmax(0, 1fr) auto !important;
    gap: 7px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
    font-weight: 650 !important;
  }

  body.app-user .context-item .gicon,
  body.app-user .context-item svg {
    width: 13px !important;
    height: 13px !important;
  }

  body.app-user .context-item small,
  body.app-user .context-item b {
    font-size: 8px !important;
  }

  body.app-user .folder-color-item select {
    height: 23px !important;
    min-height: 23px !important;
    max-width: 74px !important;
    padding: 0 16px 0 6px !important;
    font-size: 10px !important;
  }
}

/* Mobile action menu: open beside the tapped file instead of at screen bottom. */
@media (max-width: 760px) {
  body.app-user .drive-table,
  body.app-user.drive-view-grid .drive-table,
  body.app-user.drive-view-comfortable .drive-table,
  body.app-user .drive-row:has(.context-menu[open]),
  body.app-user.drive-view-grid .drive-row:has(.context-menu[open]),
  body.app-user.drive-view-comfortable .drive-row:has(.context-menu[open]) {
    overflow: visible !important;
  }

  body.app-user .drive-row:has(.context-menu[open]) {
    z-index: 1600 !important;
  }

  body.app-user .context-menu[open] {
    position: relative !important;
    z-index: 1610 !important;
  }

  body.app-user .context-menu .context-panel,
  body.app-user.drive-view-grid .context-menu .context-panel,
  body.app-user.drive-view-comfortable .context-menu .context-panel {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: -4px !important;
    bottom: auto !important;
    left: auto !important;
    width: max-content !important;
    min-width: 132px !important;
    max-width: min(170px, calc(100vw - 54px)) !important;
    max-height: 286px !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .42) !important;
  }

  body.app-user .context-item,
  body.app-user .context-panel button.context-item,
  body.app-user .context-panel a.context-item,
  body.app-user .context-panel label.context-item {
    min-height: 28px !important;
    height: 28px !important;
    grid-template-columns: 16px minmax(70px, 1fr) auto !important;
    padding: 0 8px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
  }

  body.app-user .folder-color-item select {
    max-width: 62px !important;
    padding-right: 14px !important;
  }
}

/* Mobile-only polish: compact file action menus and hide project creation. */
@media (max-width: 760px) {
  body.app-user .new-menu .new-project-trigger {
    display: none !important;
  }

  body.app-user .context-menu .context-panel,
  body.app-user.drive-view-grid .context-menu .context-panel,
  body.app-user.drive-view-comfortable .context-menu .context-panel {
    left: 18px !important;
    right: 18px !important;
    bottom: 72px !important;
    max-height: min(380px, 54vh) !important;
    border-radius: 14px !important;
    overflow-y: auto !important;
  }

  body.app-user .context-item {
    min-height: 38px !important;
    grid-template-columns: 26px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  body.app-user .context-item .gicon,
  body.app-user .context-item svg {
    width: 17px !important;
    height: 17px !important;
  }

  body.app-user .context-item small,
  body.app-user .context-item b {
    font-size: 10px !important;
  }

  body.app-user .folder-color-item select {
    height: 30px !important;
    min-height: 30px !important;
    max-width: 92px !important;
    padding: 0 24px 0 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }

  body.app-user .context-panel > .context-item:first-child,
  body.app-user .context-panel form:nth-of-type(2),
  body.app-user .context-panel .disabled,
  body.app-user .context-panel details,
  body.app-user .context-panel form:last-child {
    border-top-width: 1px !important;
  }
}

/* Final mobile view mode override: List and Thumbnail should both be usable. */
@media (max-width: 760px) {
  body.app-user .drive-panel-head,
  body.app-user .drive-panel-head-with-filters {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.app-user .drive-panel-head h1 {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  body.app-user .panel-tools {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
  }

  body.app-user .view-toggle {
    display: inline-flex !important;
    width: auto !important;
    max-width: calc(100vw - 170px) !important;
    height: 32px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
  }

  body.app-user .view-toggle button[data-view="comfortable"] {
    display: none !important;
  }

  body.app-user .view-toggle button {
    width: auto !important;
    min-width: 56px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 9px !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  body.app-user .view-toggle button[data-view="list"]::after {
    content: "List" !important;
    font-size: 10px !important;
    font-weight: 700 !important;
  }

  body.app-user .view-toggle button[data-view="grid"]::after {
    content: "Thumb" !important;
    font-size: 10px !important;
    font-weight: 700 !important;
  }

  body.app-user.drive-view-list .drive-table {
    display: block !important;
    margin: 8px 0 84px !important;
  }

  body.app-user.drive-view-list .drive-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: center !important;
    min-height: 34px !important;
    padding: 0 10px !important;
  }

  body.app-user.drive-view-list .drive-head span:first-child {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11px !important;
  }

  body.app-user.drive-view-list .drive-head span:nth-child(n+2) {
    display: none !important;
  }

  body.app-user.drive-view-list .drive-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
    align-items: center !important;
    min-height: 54px !important;
    height: 54px !important;
    max-height: 54px !important;
    padding: 0 10px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .34) !important;
    background: transparent !important;
  }

  body.app-user.drive-view-list .drive-row > .drive-name {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  body.app-user.drive-view-list .drive-name > strong {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #f8fafc !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
  }

  body.app-user.mobile-light-mode.drive-view-list .drive-name > strong {
    color: #0f172a !important;
  }

  body.app-user.drive-view-list .drive-name > .file-icon,
  body.app-user.drive-view-list .folder-file-icon .gicon {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    font-size: 6px !important;
  }

  body.app-user.drive-view-list .drive-row > .owner-cell,
  body.app-user.drive-view-list .drive-row > time,
  body.app-user.drive-view-list .drive-row > small,
  body.app-user.drive-view-list .drive-thumb {
    display: none !important;
  }

  body.app-user.drive-view-list .actions {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    padding: 0 !important;
    min-width: 0 !important;
    background: transparent !important;
  }

  body.app-user.drive-view-list .actions > a,
  body.app-user.drive-view-list .actions > button:not(.select-item),
  body.app-user.drive-view-list .actions form,
  body.app-user.drive-view-list .actions details:not(.context-menu) {
    display: none !important;
  }

  body.app-user.drive-view-grid .drive-table,
  body.app-user.drive-view-comfortable .drive-table {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 84px !important;
  }
}

/* Mobile: keep the add menu compact by hiding project creation. */
@media (max-width: 760px) {
  body.app-user .new-menu .new-project-trigger {
    display: none !important;
  }
}

/* Final mobile readability fix: New menu text must stay clear in dark mode. */
@media (max-width: 760px) {
  body.app-user .new-menu[open] {
    z-index: 1200 !important;
  }

  body.app-user .new-menu-panel {
    background: #2b2d31 !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    box-shadow: 0 20px 54px rgba(0,0,0,.62) !important;
    color: #f8fafc !important;
    backdrop-filter: none !important;
  }

  body.app-user .new-menu-row,
  body.app-user .new-menu form.new-menu-row,
  body.app-user button.new-menu-row {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    min-height: 54px !important;
    padding: 0 16px !important;
    color: #f8fafc !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
    opacity: 1 !important;
  }

  body.app-user .new-menu-row:hover,
  body.app-user .new-menu-row:focus-within {
    background: rgba(138,180,248,.12) !important;
  }

  body.app-user .new-menu-row button,
  body.app-user .new-menu-row label,
  body.app-user .new-project-trigger span:not(.menu-icon) {
    color: #f8fafc !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  body.app-user .new-menu-row small {
    color: #c4c7c5 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    opacity: .9 !important;
    white-space: nowrap !important;
  }

  body.app-user .new-menu-row .menu-icon,
  body.app-user .new-menu-row .gicon {
    color: #9ecbff !important;
    opacity: 1 !important;
  }

  body.app-user .new-menu-row .menu-icon svg,
  body.app-user .new-menu-row .gicon svg {
    stroke: currentColor !important;
  }

  body.app-user.mobile-light-mode .new-menu-panel {
    background: #fff !important;
    border-color: #d6dde8 !important;
    color: #111827 !important;
    box-shadow: 0 18px 42px rgba(15,23,42,.2) !important;
  }

  body.app-user.mobile-light-mode .new-menu-row,
  body.app-user.mobile-light-mode .new-menu form.new-menu-row,
  body.app-user.mobile-light-mode button.new-menu-row {
    color: #111827 !important;
    border-bottom-color: #e5e7eb !important;
  }

  body.app-user.mobile-light-mode .new-menu-row button,
  body.app-user.mobile-light-mode .new-menu-row label,
  body.app-user.mobile-light-mode .new-project-trigger span:not(.menu-icon) {
    color: #111827 !important;
  }

  body.app-user.mobile-light-mode .new-menu-row small {
    color: #5f6b7a !important;
  }

  body.app-user .context-menu[open],
  body.app-user.drive-view-grid .context-menu[open],
  body.app-user.drive-view-comfortable .context-menu[open] {
    z-index: 1250 !important;
  }

  body.app-user .drive-row:has(.context-menu[open]) {
    z-index: 1240 !important;
    overflow: visible !important;
  }

  body.app-user .context-menu .context-panel,
  body.app-user.drive-view-grid .context-menu .context-panel,
  body.app-user.drive-view-comfortable .context-menu .context-panel {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    top: auto !important;
    bottom: 84px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 58vh !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    background: #2b2d31 !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    box-shadow: 0 22px 58px rgba(0,0,0,.66) !important;
    z-index: 1260 !important;
  }

  body.app-user .context-item {
    min-height: 48px !important;
    grid-template-columns: 32px minmax(0, 1fr) auto !important;
    padding: 0 16px !important;
    background: transparent !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body.app-user .context-item span,
  body.app-user .context-item .gicon {
    color: #cbd5e1 !important;
  }

  body.app-user .context-item small,
  body.app-user .context-item b {
    color: #c4c7c5 !important;
    font-size: 11px !important;
  }

  body.app-user .context-item:hover,
  body.app-user .context-item:focus {
    background: rgba(138,180,248,.12) !important;
  }

  body.app-user .context-item.disabled {
    color: #9aa0a6 !important;
  }

  body.app-user.mobile-light-mode .context-menu .context-panel,
  body.app-user.mobile-light-mode.drive-view-grid .context-menu .context-panel,
  body.app-user.mobile-light-mode.drive-view-comfortable .context-menu .context-panel {
    background: #fff !important;
    border-color: #d6dde8 !important;
    box-shadow: 0 22px 54px rgba(15,23,42,.24) !important;
  }

  body.app-user.mobile-light-mode .context-item {
    color: #111827 !important;
  }

  body.app-user.mobile-light-mode .context-item span,
  body.app-user.mobile-light-mode .context-item .gicon {
    color: #5f6b7a !important;
  }

  body.app-user.mobile-light-mode .context-item small,
  body.app-user.mobile-light-mode .context-item b {
    color: #5f6b7a !important;
  }
}

@media (min-width: 761px) {
  body.app-user .drive-sidebar {
    padding-top: 16px !important;
  }

  body.app-user .drive-nav {
    margin-top: 16px !important;
    gap: 6px !important;
  }

  body.app-user .storage-card {
    margin-top: 12px !important;
  }

  body.app-user .drive-panel {
    padding-top: 18px !important;
  }

  body.app-user .drive-panel-head {
    margin-bottom: 0 !important;
    row-gap: 2px !important;
  }

  body.app-user .drive-panel-head h1 {
    line-height: 1.05 !important;
    margin-bottom: 0 !important;
  }

  body.app-user .crumbs,
  body.app-user .drive-panel-head .muted {
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  body.app-user .filter-row {
    margin: 4px 0 18px !important;
  }
}

@media (min-width: 761px) {
  body.app-user .drive-panel-head {
    margin-bottom: 0 !important;
  }

  body.app-user .crumbs,
  body.app-user .drive-panel-head .muted {
    margin-bottom: 0 !important;
  }

  body.app-user .filter-row {
    gap: 8px !important;
    margin: 4px 0 18px !important;
  }

  body.app-user .filter-row button,
  body.app-user .filter-row button[data-filter] {
    height: 36px !important;
    min-height: 36px !important;
    min-width: 112px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }
}

/* Final desktop tune: compact sidebar and remove empty thumbnail card space. */
@media (min-width: 761px) {
  body.app-user .topbar {
    grid-template-columns: 285px minmax(0, 1fr) !important;
    min-height: 68px !important;
    padding: 0 28px 0 36px !important;
  }

  body.app-user .topbar .brand {
    font-size: 27px !important;
  }

  body.app-user .topbar > nav > button.search-open-button {
    min-height: 46px !important;
    max-width: 1000px !important;
    font-size: 24px !important;
  }

  body.app-user .topbar > nav > a {
    font-size: 19px !important;
  }

  body.app-user .drive-app {
    grid-template-columns: 285px minmax(0, 1fr) !important;
    min-height: calc(100vh - 68px) !important;
  }

  body.app-user .drive-sidebar {
    top: 68px !important;
    height: calc(100vh - 68px) !important;
    padding: 16px 18px 18px !important;
  }

  body.app-user .drive-panel {
    margin: 0 18px 18px 0 !important;
    padding: 18px 24px 30px !important;
  }

  body.app-user .drive-panel-head h1 {
    font-size: 34px !important;
  }

  body.app-user .filter-row {
    gap: 8px !important;
    margin: 4px 0 18px !important;
  }

  body.app-user .filter-row button,
  body.app-user .filter-row button[data-filter] {
    height: 36px !important;
    min-height: 36px !important;
    min-width: 112px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }

  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    align-items: start !important;
  }

  body.app-user.drive-view-grid .drive-row {
    grid-template-rows: 48px 176px !important;
    min-height: 224px !important;
    max-height: 224px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name {
    grid-template-columns: 28px minmax(0, 1fr) 52px !important;
    grid-template-rows: 48px 176px !important;
    padding: 0 10px !important;
  }

  body.app-user.drive-view-grid .drive-name > strong {
    font-size: 18px !important;
  }

  body.app-user.drive-view-grid .drive-thumb {
    width: 100% !important;
    height: 176px !important;
    min-height: 176px !important;
    aspect-ratio: auto !important;
    border-radius: 7px !important;
  }

  body.app-user.drive-view-grid .drive-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 7px !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 76px !important;
    height: 76px !important;
  }

  body.app-user.drive-view-grid .actions {
    top: 10px !important;
    right: 10px !important;
  }
}

@media (min-width: 1500px) {
  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 761px) {
  body.app-user .drive-panel-head {
    margin-bottom: 0 !important;
  }

  body.app-user .crumbs,
  body.app-user .drive-panel-head .muted {
    margin-bottom: 0 !important;
  }

  body.app-user .filter-row {
    gap: 8px !important;
    margin: 4px 0 18px !important;
  }

  body.app-user .filter-row button,
  body.app-user .filter-row button[data-filter] {
    height: 36px !important;
    min-height: 36px !important;
    min-width: 112px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }
}

@media (min-width: 761px) {
  body.app-user .topbar {
    grid-template-columns: 285px minmax(0, 1fr) !important;
    min-height: 68px !important;
    padding: 0 28px 0 36px !important;
  }

  body.app-user .topbar .brand {
    font-size: 27px !important;
  }

  body.app-user .topbar > nav > button.search-open-button {
    min-height: 46px !important;
    max-width: 1000px !important;
    font-size: 24px !important;
  }

  body.app-user .topbar > nav > a {
    font-size: 19px !important;
  }

  body.app-user .drive-app {
    grid-template-columns: 285px minmax(0, 1fr) !important;
    min-height: calc(100vh - 68px) !important;
  }

  body.app-user .drive-sidebar {
    top: 68px !important;
    height: calc(100vh - 68px) !important;
    padding: 16px 18px 18px !important;
  }

  body.app-user .new-menu {
    width: 128px !important;
  }

  body.app-user .new-menu > summary {
    min-height: 58px !important;
    padding: 0 18px !important;
    border-radius: 16px !important;
    font-size: 16px !important;
  }

  body.app-user .drive-nav {
    margin-top: 16px !important;
  }

  body.app-user .drive-nav-item {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 18px !important;
  }

  body.app-user .drive-nav-item .gicon {
    width: 22px !important;
    height: 22px !important;
  }

  body.app-user .storage-card {
    margin: 12px 16px 0 !important;
  }

  body.app-user .drive-panel {
    margin: 0 18px 18px 0 !important;
    padding: 18px 24px 30px !important;
  }

  body.app-user .drive-panel-head h1 {
    font-size: 34px !important;
  }

  body.app-user .filter-row {
    gap: 8px !important;
    margin: 4px 0 18px !important;
  }

  body.app-user .filter-row button,
  body.app-user .filter-row button[data-filter] {
    height: 36px !important;
    min-height: 36px !important;
    min-width: 112px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }

  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    align-items: start !important;
  }

  body.app-user.drive-view-grid .drive-row {
    grid-template-rows: 48px 176px !important;
    min-height: 224px !important;
    max-height: 224px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name {
    grid-template-columns: 28px minmax(0, 1fr) 52px !important;
    grid-template-rows: 48px 176px !important;
    padding: 0 10px !important;
  }

  body.app-user.drive-view-grid .drive-name > strong {
    font-size: 18px !important;
  }

  body.app-user.drive-view-grid .drive-thumb {
    width: 100% !important;
    height: 176px !important;
    min-height: 176px !important;
    aspect-ratio: auto !important;
    border-radius: 7px !important;
  }

  body.app-user.drive-view-grid .drive-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 7px !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 76px !important;
    height: 76px !important;
  }

  body.app-user.drive-view-grid .actions {
    top: 10px !important;
    right: 10px !important;
  }
}

@media (min-width: 1500px) {
  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 761px) {
  body.app-user .topbar {
    grid-template-columns: 250px minmax(0, 1fr) !important;
    min-height: 58px !important;
    padding: 0 22px 0 28px !important;
  }

  body.app-user .topbar .brand {
    font-size: 22px !important;
  }

  body.app-user .topbar > nav {
    gap: 12px !important;
  }

  body.app-user .topbar > nav > button.search-open-button {
    min-height: 42px !important;
    max-width: 940px !important;
    padding: 0 18px !important;
    font-size: 18px !important;
  }

  body.app-user .topbar > nav > button.search-open-button .gicon {
    width: 21px !important;
    height: 21px !important;
  }

  body.app-user .topbar > nav > a {
    font-size: 15px !important;
  }

  body.app-user .drive-app {
    grid-template-columns: 250px minmax(0, 1fr) !important;
    min-height: calc(100vh - 58px) !important;
  }

  body.app-user .drive-sidebar {
    top: 58px !important;
    height: calc(100vh - 58px) !important;
    padding: 14px 14px 18px !important;
  }

  body.app-user .drive-rail {
    display: none !important;
  }

  body.app-user .new-menu {
    width: 112px !important;
    margin-bottom: 16px !important;
  }

  body.app-user .new-menu > summary {
    min-height: 54px !important;
    padding: 0 18px !important;
    border-radius: 14px !important;
    gap: 12px !important;
    font-size: 14px !important;
  }

  body.app-user .new-menu > summary span {
    font-size: 26px !important;
  }

  body.app-user .drive-nav {
    gap: 4px !important;
  }

  body.app-user .drive-nav-item {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
  }

  body.app-user .drive-nav-item .gicon {
    width: 19px !important;
    height: 19px !important;
  }

  body.app-user .storage-card {
    margin: 16px 14px 0 !important;
  }

  body.app-user .storage-card strong {
    margin-bottom: 8px !important;
    font-size: 14px !important;
  }

  body.app-user .storage-card span {
    margin-top: 8px !important;
    font-size: 13px !important;
  }

  body.app-user .drive-panel {
    min-height: calc(100vh - 78px) !important;
    margin: 0 14px 16px 0 !important;
    padding: 20px 20px 28px !important;
    border-radius: 16px !important;
  }

  body.app-user .drive-panel-head {
    margin-bottom: 16px !important;
  }

  body.app-user .drive-panel-head h1 {
    font-size: 27px !important;
    line-height: 1.18 !important;
  }

  body.app-user .crumbs,
  body.app-user .drive-panel-head .muted {
    margin-top: 6px !important;
    font-size: 13px !important;
  }

  body.app-user .view-toggle {
    height: 34px !important;
  }

  body.app-user .view-toggle button {
    width: 48px !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 17px !important;
  }

  body.app-user .info-dot {
    width: 21px !important;
    height: 21px !important;
    font-size: 12px !important;
  }

  body.app-user .filter-row {
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  body.app-user .filter-row button,
  body.app-user .filter-row button[data-filter] {
    height: 34px !important;
    min-height: 34px !important;
    min-width: 104px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }

  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 14px !important;
  }

  body.app-user.drive-view-grid .drive-row {
    grid-template-rows: 38px 1fr !important;
    min-height: 218px !important;
    max-height: 218px !important;
    border-radius: 10px !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name {
    grid-template-columns: 24px minmax(0, 1fr) 50px !important;
    grid-template-rows: 38px 1fr !important;
    gap: 0 8px !important;
    padding: 0 9px !important;
  }

  body.app-user.drive-view-grid .drive-name > strong {
    font-size: 14px !important;
  }

  body.app-user.drive-view-grid .drive-name > .file-icon {
    width: 19px !important;
    min-width: 19px !important;
    height: 19px !important;
    font-size: 7px !important;
  }

  body.app-user.drive-view-grid .drive-thumb {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 7px !important;
  }

  body.app-user.drive-view-grid .drive-thumb img {
    border-radius: 7px !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 62px !important;
    height: 62px !important;
  }

  body.app-user.drive-view-grid .actions {
    top: 7px !important;
    right: 8px !important;
    gap: 5px !important;
    min-width: 48px !important;
  }

  body.app-user.drive-view-grid .actions .select-item {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }

  body.app-user.drive-view-grid .context-menu > summary {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    font-size: 20px !important;
  }
}

@media (min-width: 1500px) {
  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 761px) {
  body.app-user .topbar {
    grid-template-columns: 320px minmax(0, 1fr) !important;
    min-height: 80px !important;
    padding: 0 28px !important;
  }

  body.app-user .topbar .brand {
    font-size: 28px !important;
  }

  body.app-user .topbar > nav {
    gap: 16px !important;
  }

  body.app-user .topbar > nav > button.search-open-button {
    min-height: 58px !important;
    max-width: 1040px !important;
    padding: 0 22px !important;
    font-size: 22px !important;
  }

  body.app-user .topbar > nav > button.search-open-button .gicon {
    width: 26px !important;
    height: 26px !important;
  }

  body.app-user .topbar > nav > a {
    font-size: 18px !important;
  }

  body.app-user .drive-app {
    grid-template-columns: 320px minmax(0, 1fr) 56px !important;
    min-height: calc(100vh - 80px) !important;
  }

  body.app-user .drive-sidebar {
    top: 80px !important;
    height: calc(100vh - 80px) !important;
    padding: 18px 20px 20px !important;
  }

  body.app-user .drive-rail {
    display: grid !important;
    justify-items: center !important;
    align-content: start !important;
    gap: 30px !important;
    padding-top: 86px !important;
    background: #f8fafd !important;
    color: #1a73e8 !important;
  }

  body.app-user .new-menu {
    width: 128px !important;
    margin-bottom: 18px !important;
  }

  body.app-user .new-menu > summary {
    min-height: 72px !important;
    padding: 0 22px !important;
    border-radius: 18px !important;
    gap: 16px !important;
    font-size: 17px !important;
  }

  body.app-user .new-menu > summary span {
    font-size: 34px !important;
  }

  body.app-user .drive-nav {
    gap: 7px !important;
  }

  body.app-user .drive-nav-item {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    min-height: 40px !important;
    padding: 0 18px 0 20px !important;
    font-size: 19px !important;
  }

  body.app-user .drive-nav-item .gicon {
    width: 24px !important;
    height: 24px !important;
  }

  body.app-user .storage-card {
    margin: 22px 20px 0 !important;
  }

  body.app-user .storage-card strong {
    margin-bottom: 10px !important;
    font-size: 18px !important;
  }

  body.app-user .storage-card span {
    margin-top: 10px !important;
    font-size: 16px !important;
  }

  body.app-user .drive-panel {
    min-height: calc(100vh - 104px) !important;
    margin: 0 0 20px !important;
    padding: 26px 24px 34px !important;
    border-radius: 18px !important;
  }

  body.app-user .drive-panel-head {
    margin-bottom: 20px !important;
  }

  body.app-user .drive-panel-head h1 {
    font-size: 31px !important;
    line-height: 1.25 !important;
  }

  body.app-user .crumbs,
  body.app-user .drive-panel-head .muted {
    margin-top: 8px !important;
    font-size: 16px !important;
  }

  body.app-user .view-toggle {
    height: 40px !important;
  }

  body.app-user .view-toggle button {
    width: 58px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 21px !important;
  }

  body.app-user .info-dot {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
  }

  body.app-user .filter-row {
    gap: 10px !important;
    margin-bottom: 24px !important;
  }

  body.app-user .filter-row button,
  body.app-user .filter-row button[data-filter] {
    height: 40px !important;
    min-height: 40px !important;
    min-width: 108px !important;
    padding: 0 18px !important;
    font-size: 18px !important;
  }

  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)) !important;
    gap: 20px !important;
  }

  body.app-user.drive-view-grid .drive-row {
    grid-template-rows: 48px 210px !important;
    min-height: 258px !important;
    max-height: 258px !important;
    border-radius: 12px !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name {
    grid-template-columns: 30px minmax(0, 1fr) 70px !important;
    grid-template-rows: 48px 210px !important;
    gap: 0 10px !important;
    padding: 0 10px !important;
  }

  body.app-user.drive-view-grid .drive-name > strong {
    font-size: 18px !important;
  }

  body.app-user.drive-view-grid .drive-name > .file-icon {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    font-size: 8px !important;
  }

  body.app-user.drive-view-grid .drive-thumb {
    height: 210px !important;
    min-height: 210px !important;
    aspect-ratio: auto !important;
    border-radius: 6px !important;
  }

  body.app-user.drive-view-grid .drive-thumb img {
    border-radius: 6px !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 82px !important;
    height: 82px !important;
  }

  body.app-user.drive-view-grid .actions {
    top: 10px !important;
    right: 10px !important;
    gap: 8px !important;
    min-width: 60px !important;
  }

  body.app-user.drive-view-grid .actions .select-item {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
  }

  body.app-user.drive-view-grid .context-menu > summary {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 24px !important;
  }
}

@media (min-width: 1500px) {
  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 761px) {
  body.app-user .topbar {
    grid-template-columns: 300px minmax(0, 1fr) !important;
    min-height: 64px !important;
    padding: 0 28px 0 36px !important;
  }

  body.app-user .topbar .brand {
    font-size: 26px !important;
  }

  body.app-user .topbar > nav {
    gap: 14px !important;
  }

  body.app-user .topbar > nav > button.search-open-button {
    min-height: 48px !important;
    max-width: 1030px !important;
    padding: 0 20px !important;
    font-size: 21px !important;
  }

  body.app-user .topbar > nav > button.search-open-button .gicon {
    width: 24px !important;
    height: 24px !important;
  }

  body.app-user .topbar > nav > a {
    font-size: 18px !important;
  }

  body.app-user .drive-app {
    grid-template-columns: 300px minmax(0, 1fr) !important;
    min-height: calc(100vh - 64px) !important;
  }

  body.app-user .drive-sidebar {
    top: 64px !important;
    height: calc(100vh - 64px) !important;
    padding: 18px 18px 20px !important;
  }

  body.app-user .drive-rail {
    display: none !important;
  }

  body.app-user .new-menu > summary {
    min-height: 60px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
  }

  body.app-user .new-menu > summary span {
    font-size: 30px !important;
  }

  body.app-user .drive-nav-item {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    font-size: 17px !important;
  }

  body.app-user .drive-nav-item .gicon {
    width: 22px !important;
    height: 22px !important;
  }

  body.app-user .storage-card {
    margin: 18px 18px 0 !important;
  }

  body.app-user .storage-card strong {
    font-size: 17px !important;
  }

  body.app-user .storage-card span {
    font-size: 15px !important;
  }

  body.app-user .drive-panel {
    min-height: calc(100vh - 86px) !important;
    margin: 0 18px 20px 0 !important;
    padding: 24px 24px 32px !important;
  }

  body.app-user .drive-panel-head h1 {
    font-size: 31px !important;
  }

  body.app-user .crumbs,
  body.app-user .drive-panel-head .muted {
    font-size: 15px !important;
  }

  body.app-user .filter-row {
    gap: 8px !important;
    margin-bottom: 20px !important;
  }

  body.app-user .filter-row button,
  body.app-user .filter-row button[data-filter] {
    height: 40px !important;
    min-height: 40px !important;
    min-width: 124px !important;
    padding: 0 18px !important;
    font-size: 17px !important;
  }

  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)) !important;
    gap: 18px !important;
  }

  body.app-user.drive-view-grid .drive-row {
    grid-template-rows: 46px 1fr !important;
    min-height: 262px !important;
    max-height: 262px !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name {
    grid-template-columns: 28px minmax(0, 1fr) 58px !important;
    grid-template-rows: 46px 1fr !important;
    padding: 0 10px !important;
  }

  body.app-user.drive-view-grid .drive-name > strong {
    font-size: 17px !important;
  }

  body.app-user.drive-view-grid .drive-name > .file-icon {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
  }

  body.app-user.drive-view-grid .drive-thumb {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 76px !important;
    height: 76px !important;
  }
}

@media (min-width: 1500px) {
  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 761px) {
  body.app-user .topbar {
    grid-template-columns: 285px minmax(0, 1fr) !important;
    min-height: 68px !important;
    padding: 0 28px 0 36px !important;
  }

  body.app-user .topbar .brand {
    font-size: 28px !important;
  }

  body.app-user .topbar > nav > button.search-open-button {
    min-height: 46px !important;
    max-width: 1065px !important;
    padding: 0 22px !important;
    font-size: 24px !important;
  }

  body.app-user .topbar > nav > a {
    font-size: 19px !important;
  }

  body.app-user .drive-app {
    grid-template-columns: 285px minmax(0, 1fr) !important;
    min-height: calc(100vh - 68px) !important;
  }

  body.app-user .drive-sidebar {
    top: 68px !important;
    height: calc(100vh - 68px) !important;
    padding: 16px 18px 18px !important;
  }

  body.app-user .drive-rail {
    display: none !important;
  }

  body.app-user .drive-panel {
    min-height: calc(100vh - 92px) !important;
    margin: 0 18px 18px 0 !important;
    padding: 18px 24px 30px !important;
  }

  body.app-user .drive-panel-head h1 {
    font-size: 34px !important;
  }

  body.app-user .crumbs,
  body.app-user .drive-panel-head .muted {
    font-size: 18px !important;
  }

  body.app-user .filter-row {
    gap: 8px !important;
    margin: 4px 0 18px !important;
  }

  body.app-user .filter-row button,
  body.app-user .filter-row button[data-filter] {
    height: 36px !important;
    min-height: 36px !important;
    min-width: 112px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }

  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    align-items: start !important;
  }

  body.app-user.drive-view-grid .drive-row {
    grid-template-rows: 48px 176px !important;
    min-height: 224px !important;
    max-height: 224px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  body.app-user.drive-view-grid .drive-row > .drive-name {
    grid-template-columns: 28px minmax(0, 1fr) 52px !important;
    grid-template-rows: 48px 176px !important;
    padding: 0 10px !important;
  }

  body.app-user.drive-view-grid .drive-name > strong {
    font-size: 18px !important;
  }

  body.app-user.drive-view-grid .drive-thumb {
    width: 100% !important;
    height: 176px !important;
    min-height: 176px !important;
    aspect-ratio: auto !important;
    border-radius: 7px !important;
  }

  body.app-user.drive-view-grid .drive-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 7px !important;
  }

  body.app-user.drive-view-grid .folder-thumb .gicon {
    width: 76px !important;
    height: 76px !important;
  }

  body.app-user.drive-view-grid .actions {
    top: 10px !important;
    right: 10px !important;
  }
}

@media (min-width: 1500px) {
  body.app-user.drive-view-grid .drive-table {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}



/* Final: keep My Drive filters in the title bar on desktop. */
@media (min-width: 761px) {
  body.app-user .drive-panel-head-with-filters {
    display: grid !important;
    grid-template-columns: minmax(190px, auto) minmax(360px, 1fr) auto !important;
    align-items: center !important;
    column-gap: 18px !important;
    row-gap: 8px !important;
    margin-bottom: 18px !important;
  }

  body.app-user .drive-panel-head-with-filters .drive-title-block {
    min-width: 0 !important;
  }

  body.app-user .drive-panel-head-with-filters .drive-title-block h1 {
    white-space: nowrap !important;
  }

  body.app-user .drive-panel-head-with-filters .crumbs {
    margin-top: 4px !important;
  }

  body.app-user .title-filter-row {
    justify-self: start !important;
    align-self: center !important;
    margin: 0 !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  body.app-user .title-filter-row button,
  body.app-user .title-filter-row button[data-filter] {
    height: 34px !important;
    min-height: 34px !important;
    min-width: 104px !important;
    padding: 0 12px !important;
    font-size: 15px !important;
  }

  body.app-user .drive-panel-head-with-filters .panel-tools {
    justify-self: end !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  body.app-user .drive-panel-head-with-filters {
    grid-template-columns: minmax(160px, auto) minmax(0, 1fr) !important;
  }

  body.app-user .drive-panel-head-with-filters .panel-tools {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body.app-user .title-filter-row {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
}

/* Final mobile upload panel: compact, centered, and scrollable for many files. */
@media (max-width: 760px) {
  body.app-user .upload-panel {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    width: min(340px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    max-height: min(430px, calc(100dvh - 190px)) !important;
    display: grid !important;
    grid-template-rows: 42px auto minmax(0, 1fr) !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .34) !important;
    z-index: 6200 !important;
  }

  body.app-user .upload-panel-head {
    min-height: 42px !important;
    padding: 0 10px 0 14px !important;
    gap: 7px !important;
  }

  body.app-user .upload-panel-head strong {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  body.app-user .upload-panel-head div {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  body.app-user .upload-panel-head button,
  body.app-user .upload-pause {
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
  }

  body.app-user .upload-collapse,
  body.app-user .upload-close {
    width: 30px !important;
    padding: 0 !important;
  }

  body.app-user .upload-status {
    min-height: auto !important;
    padding: 8px 14px !important;
    gap: 8px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  body.app-user .upload-status span {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #475569 !important;
    text-overflow: ellipsis !important;
  }

  body.app-user .upload-status button {
    flex-shrink: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
  }

  body.app-user .upload-list {
    min-height: 0 !important;
    max-height: min(330px, calc(100dvh - 282px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  body.app-user .upload-item {
    grid-template-columns: 22px minmax(0, 1fr) auto 22px !important;
    min-height: 46px !important;
    padding: 7px 12px !important;
    gap: 8px !important;
  }

  body.app-user .upload-file-icon {
    width: 18px !important;
    height: 18px !important;
    border-radius: 5px !important;
  }

  body.app-user .upload-item span:nth-child(2) {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }

  body.app-user .upload-item em {
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  body.app-user .upload-result {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
  }

  body.app-user .upload-panel.collapsed {
    grid-template-rows: 42px !important;
    max-height: 42px !important;
  }
}

.upload-item-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 88px;
}
.upload-item-pause,
.upload-item-retry {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d0d7e2;
  border-radius: 999px;
  background: #fff;
  color: #0b57d0;
  font-size: 12px;
  font-weight: 700;
}
.upload-item-retry {
  color: #b42318;
  border-color: #f3b4ae;
}
.upload-item-retry[hidden],
.inline-upload-retry[hidden] {
  display: none !important;
}
.inline-upload-actions {
  gap: 6px;
}
.inline-upload-retry {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #f3b4ae;
  border-radius: 999px;
  background: #fff;
  color: #b42318;
  font-weight: 700;
}

/* Final view toggle repair: keep List/Thumb clickable and selection circles away. */
body.app-user .view-toggle {
  position: relative;
  z-index: 30;
  pointer-events: auto;
}

body.app-user .view-toggle button {
  position: relative;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
}

body.app-user .view-toggle .view-label {
  display: none;
}

body.app-user .actions .select-item {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
}

@media (min-width: 761px) {
  body.app-user.drive-view-grid .actions .select-item,
  body.app-user.drive-view-comfortable .actions .select-item {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
  }
}

@media (max-width: 760px) {
  body.app-user .drive-panel-head,
  body.app-user .drive-panel-head-with-filters {
    position: relative !important;
    z-index: 25 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.app-user .panel-tools {
    position: relative !important;
    z-index: 30 !important;
    gap: 8px !important;
  }

  body.app-user .view-toggle {
    height: 30px !important;
    max-width: 118px !important;
    min-width: 112px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
  }

  body.app-user .view-toggle button[data-view="comfortable"] {
    display: none !important;
  }

  body.app-user .view-toggle button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  body.app-user .view-toggle .view-icon {
    display: none !important;
  }

  body.app-user .view-toggle .view-label {
    display: inline !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body.app-user .view-toggle button[data-view="list"]::after,
  body.app-user .view-toggle button[data-view="grid"]::after {
    content: none !important;
    display: none !important;
  }

  body.app-user .view-toggle button[data-view="list"]::after {
    content: none !important;
  }

  body.app-user .view-toggle button[data-view="grid"]::after {
    content: none !important;
  }

  body.app-user.drive-view-list .drive-head {
    grid-template-columns: minmax(0, 1fr) 32px !important;
    padding-right: 4px !important;
  }

  body.app-user.drive-view-list .drive-row {
    grid-template-columns: minmax(0, 1fr) 30px !important;
    overflow: visible !important;
  }

  body.app-user.drive-view-list .actions {
    width: 30px !important;
    min-width: 30px !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  body.app-user.drive-view-list .actions .select-item {
    display: none !important;
  }

  body.app-user.drive-view-grid .drive-table,
  body.app-user.drive-view-comfortable .drive-table {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 10px !important;
  }

  body.app-user.drive-view-grid .actions,
  body.app-user.drive-view-comfortable .actions {
    top: 8px !important;
    right: 8px !important;
    gap: 5px !important;
    min-width: 42px !important;
  }

  body.app-user.drive-view-grid .actions .select-item,
  body.app-user.drive-view-comfortable .actions .select-item {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    transform: translateX(-4px) !important;
  }

  body.app-user.drive-view-grid .context-menu > summary,
  body.app-user.drive-view-comfortable .context-menu > summary {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }
}

/* Click reliability repair: keep close icons and List/Thumb controls above overlays. */
.flash-close,
.modal-x,
.project-close,
.admin-user-modal-close,
.image-viewer-close,
.file-viewer-head button[aria-label="Close"],
.search-close-button {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 10020 !important;
}

body.app-user .view-toggle,
body.site-user .view-toggle {
  position: relative !important;
  z-index: 100 !important;
  pointer-events: auto !important;
  user-select: none !important;
}

body.app-user .view-toggle button,
body.site-user .view-toggle button {
  position: relative !important;
  z-index: 101 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

body.app-user .panel-tools,
body.site-user .panel-tools {
  position: relative !important;
  z-index: 95 !important;
}

@media (max-width: 760px) {
  body.app-user .view-toggle,
  body.site-user .view-toggle {
    display: inline-flex !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
  }

  body.app-user .view-toggle button[data-view="comfortable"],
  body.site-user .view-toggle button[data-view="comfortable"] {
    display: none !important;
  }

  body.app-user .view-toggle button,
  body.site-user .view-toggle button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  body.app-user .view-toggle .view-icon,
  body.site-user .view-toggle .view-icon,
  body.app-user .view-toggle button[data-view="list"]::after,
  body.site-user .view-toggle button[data-view="list"]::after,
  body.app-user .view-toggle button[data-view="grid"]::after,
  body.site-user .view-toggle button[data-view="grid"]::after {
    display: none !important;
    content: none !important;
  }

  body.app-user .view-toggle .view-label,
  body.site-user .view-toggle .view-label {
    display: inline !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
  }

  body.app-user.drive-view-list .drive-table,
  body.site-user.drive-view-list .drive-table {
    display: block !important;
  }

  body.app-user.drive-view-grid .drive-table,
  body.site-user.drive-view-grid .drive-table,
  body.app-user.drive-view-comfortable .drive-table,
  body.site-user.drive-view-comfortable .drive-table {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.app-user.drive-view-list .drive-row,
  body.site-user.drive-view-list .drive-row {
    grid-template-columns: minmax(0, 1fr) 28px !important;
  }

  body.app-user.drive-view-list .actions,
  body.site-user.drive-view-list .actions {
    width: 28px !important;
    min-width: 28px !important;
    gap: 0 !important;
  }

  body.app-user.drive-view-list .actions .select-item,
  body.site-user.drive-view-list .actions .select-item {
    display: none !important;
  }

  body.app-user.drive-view-grid .actions .select-item,
  body.site-user.drive-view-grid .actions .select-item,
  body.app-user.drive-view-comfortable .actions .select-item,
  body.site-user.drive-view-comfortable .actions .select-item {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    transform: translateX(-5px) !important;
  }
}

/* Desktop list action menu: final visual authority after legacy/mobile rules. */
@media (min-width: 761px) {
  body.app-user.drive-view-list .actions,
  body.site-user.drive-view-list .actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    min-width: 58px !important;
    overflow: visible !important;
  }

  body.app-user.drive-view-list .actions .select-item,
  body.site-user.drive-view-list .actions .select-item {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.app-user .context-menu > summary,
  body.site-user .context-menu > summary {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 20px !important;
  }

  body.app-user .context-menu > summary:hover,
  body.app-user .context-menu[open] > summary,
  body.site-user .context-menu > summary:hover,
  body.site-user .context-menu[open] > summary {
    background: #e8f0fe !important;
    color: #174ea6 !important;
  }

  body.app-user .context-menu .context-panel,
  body.site-user .context-menu .context-panel {
    top: calc(100% + 5px) !important;
    width: 282px !important;
    max-width: min(282px, calc(100vw - 24px)) !important;
    max-height: min(520px, calc(100vh - 110px)) !important;
    padding: 6px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid #e0e3e7 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(60, 64, 67, 0.22), 0 2px 8px rgba(60, 64, 67, 0.14) !important;
  }

  body.app-user .context-panel form,
  body.app-user .context-panel details,
  body.site-user .context-panel form,
  body.site-user .context-panel details {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
  }

  body.app-user .context-item,
  body.app-user .context-panel button.context-item,
  body.app-user .context-panel a.context-item,
  body.app-user .context-panel label.context-item,
  body.site-user .context-item,
  body.site-user .context-panel button.context-item,
  body.site-user .context-panel a.context-item,
  body.site-user .context-panel label.context-item {
    grid-template-columns: 22px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    min-height: 39px !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    color: #202124 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
  }

  body.app-user .context-item > span,
  body.site-user .context-item > span {
    min-width: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.app-user .context-item .gicon,
  body.app-user .context-item > svg,
  body.site-user .context-item .gicon,
  body.site-user .context-item > svg {
    width: 18px !important;
    height: 18px !important;
    color: #5f6368 !important;
  }

  body.app-user .context-item small,
  body.app-user .context-item b,
  body.site-user .context-item small,
  body.site-user .context-item b {
    color: #5f6368 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
  }

  body.app-user .context-item:hover,
  body.app-user .context-item:focus-visible,
  body.site-user .context-item:hover,
  body.site-user .context-item:focus-visible {
    background: #f1f3f4 !important;
    outline: 0 !important;
  }

  body.app-user .context-item.danger,
  body.site-user .context-item.danger {
    margin-top: 5px !important;
    border-top: 1px solid #e5e7eb !important;
    color: #b3261e !important;
  }

  body.app-user .folder-color-item select,
  body.site-user .folder-color-item select {
    width: 82px !important;
    min-width: 82px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 24px 0 8px !important;
    border: 1px solid #dadce0 !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    font-size: 12px !important;
  }
}
