:root {
  --bg: #eef3fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --border: rgba(116, 137, 172, 0.18);
  --text: #1f2937;
  --muted: #5f6f85;
  --blue: #1a73e8;
  --blue-soft: rgba(26, 115, 232, 0.12);
  --green: #1e8e3e;
  --yellow: #f9ab00;
  --shadow: 0 24px 80px rgba(41, 72, 121, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: "Google Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(26, 115, 232, 0.14), transparent 25%),
    radial-gradient(circle at bottom right, rgba(30, 142, 62, 0.12), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  height: 100vh;
  overflow: hidden;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contentSwapOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes contentSwapIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card,
.content-card,
.modal-card,
.upload-panel,
.storage-card {
  background: var(--surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.login-card {
  width: min(480px, 100%);
  padding: 36px;
  border-radius: 28px;
  animation: riseIn 420ms ease;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 38px;
}

.brand-mark.large {
  width: 38px;
  height: 32px;
}

.triangle {
  position: absolute;
  display: block;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.triangle-green {
  width: 22px;
  height: 36px;
  background: var(--green);
  left: 0;
  top: 2px;
  transform: rotate(-30deg);
}

.triangle-yellow {
  width: 22px;
  height: 36px;
  background: var(--yellow);
  right: 0;
  top: 2px;
  transform: rotate(30deg);
}

.triangle-blue {
  width: 26px;
  height: 18px;
  background: var(--blue);
  left: 9px;
  bottom: 0;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
}

h1,
h2,
h3,
.wordmark {
  margin: 0;
  font-family: "Manrope", "Google Sans", sans-serif;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form input,
.searchbar input {
  width: 100%;
  border: 1px solid rgba(95, 111, 133, 0.18);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

.login-form input:focus,
.searchbar input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.primary-button,
.ghost-button,
.new-button {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.new-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 14px 18px;
  background: var(--blue);
  color: white;
  font-weight: 600;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(95, 111, 133, 0.18);
  padding: 10px 14px;
  color: var(--text);
}

.ghost-button.compact {
  padding: 8px 10px;
  font-size: 14px;
}

.error-text {
  min-height: 20px;
  margin: 0;
  color: #c53929;
}

.drive-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: 88px 1fr;
  transition: background 260ms ease;
  overflow: hidden;
}

.drive-shell.trash-mode {
  background:
    radial-gradient(circle at top left, rgba(197, 57, 41, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(234, 67, 53, 0.14), transparent 28%),
    linear-gradient(180deg, #fff7f6 0%, #fff0ef 100%);
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  animation: fadeSlideIn 380ms ease;
  transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-home-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.brand-home-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.wordmark {
  font-size: 30px;
  font-weight: 700;
  color: #5f6368;
}

.searchbar {
  flex: 1;
  max-width: 760px;
  position: relative;
}

.searchbar input {
  border: none;
  background: rgba(232, 240, 254, 0.92);
  padding-left: 52px;
  min-height: 58px;
  border-radius: 24px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #5f6368;
}

.quota-pill {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(95, 111, 133, 0.16);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.sidebar {
  padding: 8px 18px 24px 24px;
  position: relative;
  animation: fadeSlideIn 420ms ease;
  transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  overflow: auto;
}

.new-button {
  min-height: 58px;
  padding: 0 24px;
  width: 100%;
  background: linear-gradient(135deg, #ffffff, #edf5ff);
  box-shadow: 0 14px 30px rgba(26, 115, 232, 0.18);
  font-weight: 600;
  margin: 12px 0 18px;
}

.new-button.menu-open {
  box-shadow: 0 18px 36px rgba(26, 115, 232, 0.26);
  transform: translateY(-1px) scale(1.01);
}

.upload-chooser {
  position: absolute;
  top: 84px;
  left: 24px;
  right: 18px;
  z-index: 5;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(116, 137, 172, 0.16);
  box-shadow: 0 24px 50px rgba(41, 72, 121, 0.16);
  transform-origin: top left;
  animation: riseIn 220ms ease;
}

.chooser-item {
  border: 0;
  background: #f5f9ff;
  color: var(--text);
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.chooser-item:hover {
  background: rgba(26, 115, 232, 0.1);
  transform: translateX(4px);
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  position: relative;
  overflow: hidden;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-item.active,
.nav-item:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.drive-shell.trash-mode .nav-item.active {
  background: rgba(197, 57, 41, 0.12);
  color: #c53929;
}

.drive-shell.trash-mode .nav-item:hover {
  background: rgba(197, 57, 41, 0.08);
  color: #c53929;
}

.nav-item:active {
  transform: scale(0.985);
}

.storage-card {
  margin-top: 26px;
  padding: 18px;
  border-radius: 22px;
  animation: fadeSlideIn 460ms ease;
}

.storage-label,
.drive-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.storage-bar {
  width: 100%;
  height: 10px;
  background: rgba(95, 111, 133, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.storage-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #58a6ff);
  transition: width 320ms ease;
}

.main-panel {
  padding: 10px 28px 28px 8px;
  animation: fadeSlideIn 480ms ease;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 12px 8px 18px;
}

.toolbar-actions {
  display: flex;
  gap: 12px;
}

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

.breadcrumb-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  cursor: pointer;
}

.content-card {
  border-radius: 32px;
  padding: 24px;
  min-height: 0;
  height: 100%;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(8px);
}

.drop-overlay-card {
  min-width: min(460px, 100%);
  display: grid;
  gap: 8px;
  padding: 26px 30px;
  border-radius: 28px;
  border: 2px dashed rgba(26, 115, 232, 0.5);
  background: rgba(255, 255, 255, 0.94);
  color: #133258;
  text-align: center;
  box-shadow: 0 24px 80px rgba(26, 115, 232, 0.18);
  animation: riseIn 180ms ease;
}

.drop-overlay-card strong {
  font-size: 20px;
}

.drop-overlay-card span {
  color: var(--muted);
}

.drive-shell.trash-mode .content-card,
.drive-shell.trash-mode .storage-card,
.drive-shell.trash-mode .upload-panel {
  border-color: rgba(197, 57, 41, 0.14);
  box-shadow: 0 24px 80px rgba(197, 57, 41, 0.1);
}

.drive-shell.trash-mode .storage-bar-fill {
  background: linear-gradient(90deg, #c53929, #ea4335);
}

.drive-shell.trash-mode .quota-pill,
.drive-shell.trash-mode .ghost-button {
  border-color: rgba(197, 57, 41, 0.16);
}

.drive-shell.trash-mode .new-button {
  background: linear-gradient(135deg, #ffffff, #fff0ef);
  box-shadow: 0 14px 30px rgba(197, 57, 41, 0.16);
}

.drive-shell.trash-mode .searchbar input {
  background: rgba(255, 236, 233, 0.92);
}

.drive-shell.trash-mode .item-card:hover {
  border-color: rgba(197, 57, 41, 0.24);
  background: rgba(255, 236, 233, 0.72);
}

.drive-shell.trash-mode .item-icon.file {
  background: linear-gradient(135deg, #f28b82, #c53929);
}

.drive-shell.trash-mode .item-icon.folder {
  background: linear-gradient(135deg, #fbbc04, #ea8600);
}

.drive-shell.trash-mode .content-card.is-entering {
  animation: riseIn 280ms ease;
}

.content-card.is-transitioning {
  animation: contentSwapOut 170ms ease forwards;
}

.content-card.is-entering {
  animation: contentSwapIn 240ms ease;
}

.content-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 16px;
}

.content-head-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.items-container {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.items-container.list-view .item-card {
  grid-template-columns: 52px minmax(0, 1fr) 140px 170px;
}

.items-container.grid-view {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.items-container.grid-view .item-card {
  grid-template-columns: 1fr;
  min-height: 180px;
  align-content: start;
}

.items-container.grid-view .item-meta {
  justify-content: start;
}

.item-card {
  display: grid;
  gap: 16px;
  align-items: center;
  border-radius: 22px;
  border: 1px solid rgba(116, 137, 172, 0.14);
  background: rgba(255, 255, 255, 0.74);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  animation: fadeSlideIn 260ms ease both;
}

.item-card:nth-child(1) { animation-delay: 20ms; }
.item-card:nth-child(2) { animation-delay: 40ms; }
.item-card:nth-child(3) { animation-delay: 60ms; }
.item-card:nth-child(4) { animation-delay: 80ms; }
.item-card:nth-child(5) { animation-delay: 100ms; }
.item-card:nth-child(6) { animation-delay: 120ms; }
.item-card:nth-child(n+7) { animation-delay: 140ms; }

.item-card:hover {
  border-color: rgba(26, 115, 232, 0.26);
  background: rgba(232, 240, 254, 0.64);
  transform: translateY(-1px);
}

.item-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
}

.item-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.item-icon.folder {
  background: linear-gradient(135deg, #ffcc3d, #f9ab00);
}

.item-icon.file,
.item-icon.default {
  background: linear-gradient(135deg, #6ea8ff, #1a73e8);
}

.item-icon.zip {
  background: linear-gradient(135deg, #34a853, #1e8e3e);
}

.item-icon.pdf {
  background: linear-gradient(135deg, #ff8a80, #d93025);
}

.item-icon.doc {
  background: linear-gradient(135deg, #8ab4f8, #1a73e8);
}

.item-icon.sheet {
  background: linear-gradient(135deg, #81c995, #188038);
}

.item-icon.slides {
  background: linear-gradient(135deg, #fdd663, #f29900);
}

.item-icon.image {
  background: linear-gradient(135deg, #f6a0ff, #a142f4);
}

.item-icon.video {
  background: linear-gradient(135deg, #ff9e80, #ff7043);
}

.item-icon.audio {
  background: linear-gradient(135deg, #9aa0ff, #5e35b1);
}

.item-icon.code {
  background: linear-gradient(135deg, #7fcfff, #0b57d0);
}

.item-icon.text {
  background: linear-gradient(135deg, #c2e7ff, #5f6368);
}

.item-icon.archive {
  background: linear-gradient(135deg, #7fd8a8, #137333);
}

.item-icon.font {
  background: linear-gradient(135deg, #ffd180, #ef6c00);
}

.item-icon.db {
  background: linear-gradient(135deg, #98c1ff, #3559e0);
}

.item-icon.app {
  background: linear-gradient(135deg, #f6c2ff, #9334e6);
}

.item-icon.design {
  background: linear-gradient(135deg, #ffb5a7, #e91e63);
}

.item-primary {
  min-width: 0;
}

.item-name {
  margin: 0 0 6px;
  font-size: 16px;
}

.item-path,
.item-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.item-meta {
  display: flex;
  justify-content: end;
}

.empty-state,
.preview-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.upload-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 32px));
  border-radius: 26px;
  overflow: hidden;
  animation: riseIn 260ms ease;
}

.context-menu {
  position: fixed;
  z-index: 30;
  min-width: 190px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(116, 137, 172, 0.18);
  box-shadow: 0 24px 50px rgba(41, 72, 121, 0.18);
  animation: riseIn 180ms ease;
}

.context-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
  transition: background 160ms ease, transform 160ms ease;
}

.context-menu-item:hover {
  background: rgba(26, 115, 232, 0.1);
  transform: translateX(3px);
}

.context-menu-item.danger {
  color: #c53929;
}

.context-divider {
  height: 1px;
  margin: 6px 4px;
  background: rgba(116, 137, 172, 0.16);
}

.upload-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(116, 137, 172, 0.12);
}

.upload-list {
  max-height: 340px;
  overflow: auto;
  padding: 10px 14px 16px;
  display: grid;
  gap: 10px;
}

.upload-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.95);
}

.upload-detail {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.toolbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-item-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(95, 111, 133, 0.12);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), #58a6ff);
  transition: width 220ms ease, background 220ms ease, opacity 220ms ease;
  will-change: width;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(88vh, 920px);
  border-radius: 30px;
  padding: 24px;
  overflow: hidden;
  animation: riseIn 260ms ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-body {
  overflow: auto;
  overflow-x: hidden;
  max-height: calc(88vh - 126px);
  min-width: 0;
}

.rename-modal-card {
  width: min(520px, 100%);
}

.rename-form {
  display: grid;
  gap: 14px;
}

.rename-label {
  color: var(--muted);
  font-size: 14px;
}

.rename-input {
  width: 100%;
  border: 1px solid rgba(95, 111, 133, 0.18);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

.rename-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.rename-actions {
  display: flex;
  justify-content: end;
  gap: 12px;
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.settings-toggle input {
  width: 18px;
  height: 18px;
}

.preview-text,
.zip-entry-preview {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  background: #f6f9ff;
  border: 1px solid rgba(116, 137, 172, 0.12);
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.55;
}

.text-preview-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow-x: hidden;
}

.text-preview-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding-bottom: 4px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(248, 251, 255, 0.78), transparent);
  overflow: hidden;
}

.text-editor {
  width: 100%;
  max-width: 100%;
  min-height: min(52vh, 720px);
  border-radius: 20px;
  border: 1px solid rgba(116, 137, 172, 0.18);
  background: #f8fbff;
  color: #10233f;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  white-space: pre-wrap;
  overflow: auto;
}

.code-editor {
  background: #0b1220;
  color: #dbe7ff;
  border-color: rgba(99, 102, 241, 0.2);
}

.text-editor:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.code-preview {
  background: linear-gradient(180deg, #0f172a, #111827);
  color: #dbe7ff;
  border-color: rgba(99, 102, 241, 0.16);
}

.ace-editor-host {
  padding: 0;
  overflow: hidden;
}

.ace-editor-host.ace_editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  min-height: min(52vh, 720px);
}

.ace-editor-host .ace_scroller {
  border-radius: 20px;
}

.plain-text-editor {
  resize: vertical;
}

.plain-code-editor {
  resize: none;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  tab-size: 2;
}

.editor-save-button {
  min-width: 84px;
}

.code-keyword {
  color: #7dd3fc;
  font-weight: 400;
}

.code-function {
  color: #c4b5fd;
}

.code-property {
  color: #fda4af;
}

.code-string {
  color: #86efac;
}

.code-comment {
  color: #94a3b8;
  font-style: normal;
}

.code-constant {
  color: #fdba74;
}

.code-number {
  color: #fbbf24;
}

.code-tag {
  color: #f9a8d4;
}

.code-heading {
  color: #93c5fd;
  font-weight: 700;
}

.zip-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
}

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

.zip-entry {
  border: 1px solid rgba(116, 137, 172, 0.12);
  background: white;
  border-radius: 18px;
  padding: 12px 14px;
  cursor: pointer;
}

.zip-entry strong {
  display: block;
  margin-bottom: 4px;
}

.image-preview {
  max-width: 100%;
  border-radius: 22px;
  display: block;
  margin: 0 auto;
}

.media-preview-shell {
  display: grid;
  place-items: center;
}

.video-preview {
  width: 100%;
  max-height: min(70vh, 760px);
  display: block;
  border-radius: 22px;
  background: #050b16;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

@media (max-width: 1100px) {
  .drive-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px 12px;
    overflow: visible;
  }

  .main-panel {
    padding: 0 20px 24px;
  }
}

@media (max-width: 800px) {
  .topbar {
    flex-wrap: wrap;
    padding: 18px 20px;
  }

  .searchbar {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .items-container.list-view .item-card,
  .zip-layout {
    grid-template-columns: 1fr;
  }

  .content-head {
    align-items: start;
    flex-direction: column;
  }

  .item-meta {
    justify-content: start;
  }
}
