:root {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-soft: #faf8f4;
  --ink: #171310;
  --muted: #6f6961;
  --line: #e5ded5;
  --primary: #24523b;
  --primary-soft: #e8f4ec;
  --accent: #f04a1a;
  --accent-soft: #fff0e8;
  --blue: #2258d6;
  --shadow: 0 20px 50px rgba(36, 30, 24, 0.11);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(240, 74, 26, 0.08), transparent 28%),
    linear-gradient(135deg, #f8f6f1 0%, var(--bg) 100%);
}

button,
input {
  font: inherit;
}

input,
button {
  min-width: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.mobile-only-text {
  display: none;
}

.loading-screen,
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.loading-screen p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.loading-mark {
  width: 38px;
  height: 38px;
  border: 4px solid #eadfd4;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.auth-card {
  width: min(460px, calc(100vw - 48px));
  min-width: 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-chip,
.eyebrow,
.limit-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.auth-card h1,
.topbar h1 {
  margin: 12px 0 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-copy {
  margin: 16px 0 26px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.notice-message {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.notice-message.success {
  border-color: rgba(36, 82, 59, 0.22);
  background: var(--primary-soft);
  color: var(--primary);
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.login-row {
  display: flex;
  gap: 10px;
}

.login-row input,
.search-field input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-weight: 800;
}

.login-row input:focus,
.search-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 82, 59, 0.12);
}

.login-row button,
.upload-box button,
.view-button,
.download-button,
.share-button,
.delete-button,
.ghost-button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.login-row button,
.upload-box button {
  flex: 0 0 auto;
  min-width: 110px;
  min-height: 52px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(240, 74, 26, 0.22);
}

.google-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 14px;
  border: 1px solid #d8cec4;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 1000;
  text-decoration: none;
}

.google-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.google-login-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.upload-box button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: #d72d0c;
  font-size: 13px;
  font-weight: 900;
}

.auth-notes {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.auth-notes li {
  overflow-wrap: anywhere;
}

.board-shell {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 26px;
  background: #15110e;
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.topbar .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.session-label {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.users-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pending-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e22d16;
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.secondary-ghost {
  background: rgba(255, 255, 255, 0.14);
}

.upload-card,
.list-card,
.folder-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.folder-card {
  position: sticky;
  top: 16px;
  align-self: stretch;
  padding: 20px;
}

.folder-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
}

.folder-create input,
.subfolder-create input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  outline: none;
}

.folder-create input:focus,
.subfolder-create input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 82, 59, 0.12);
}

.folder-create button,
.subfolder-create button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.folder-message {
  margin-bottom: 6px;
}

.folder-list {
  display: grid;
  gap: 8px;
}

.folder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
}

.move-controls {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  align-self: stretch;
}

.move-placeholder {
  width: 32px;
}

.move-button {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 27px;
  border: 1px solid rgba(36, 82, 59, 0.2);
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
}

.move-button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.folder-button,
.folder-delete {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.folder-button {
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.folder-button span,
.folder-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-button small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.folder-row.is-active .folder-button {
  border-color: rgba(36, 82, 59, 0.45);
  background: var(--primary-soft);
  color: var(--primary);
}

.folder-actions {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.folder-icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(36, 82, 59, 0.22);
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  cursor: pointer;
}

.folder-row .folder-icon-button {
  min-height: 58px;
}

.folder-icon-delete {
  color: #c83818;
  border-color: #f3c6b7;
  background: var(--accent-soft);
}

.action-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.content-stack {
  display: grid;
  gap: 12px;
}

.users-panel {
  margin-bottom: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

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

.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.user-main {
  min-width: 0;
}

.user-main strong,
.user-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-main span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.readonly-folder-note {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.compact-empty {
  min-height: 96px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
  color: var(--muted);
  font-weight: 900;
}

.breadcrumb button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-weight: 900;
}

.breadcrumb button:disabled {
  color: var(--ink);
  background: var(--primary-soft);
  cursor: default;
}

.breadcrumb span {
  color: #b6aca2;
}

.breadcrumb-label {
  color: var(--ink);
  font-weight: 1000;
}

.subfolder-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
  min-width: 0;
}

.upload-card,
.list-card {
  padding: 22px;
  margin-top: 12px;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.upload-box {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
}

.upload-box input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 22px;
  border: 1px dashed #c9bfb4;
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: center;
  cursor: pointer;
  transition: 0.18s ease;
}

.drop-zone strong {
  font-size: 18px;
}

.drop-zone span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.drop-zone.is-dragging,
.drop-zone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.list-heading {
  align-items: end;
  justify-content: flex-end;
}

.list-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 390px);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.search-field {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.search-form button {
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 1000;
}

.mobile-create-text {
  display: none;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.search-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.search-field input {
  padding-left: 44px;
}

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

.content-list [hidden] {
  display: none !important;
}

.file-row {
  display: grid;
  grid-template-columns: 36px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.file-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.file-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.file-item .file-actions[hidden] {
  display: flex;
}

.file-summary .file-main {
  display: block;
}

.file-summary:hover .file-main strong {
  color: var(--primary);
}

.file-item .file-actions {
  grid-column: auto;
  display: flex;
  gap: 8px;
  margin-top: 0;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 1000;
}

.file-icon.file-thumb {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(36, 82, 59, 0.16);
  background: #f1f5f0;
  text-decoration: none;
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-main {
  min-width: 0;
}

button.file-main {
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.file-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.file-main span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.file-actions {
  display: flex;
  gap: 8px;
}

.view-button,
.download-button,
.share-button,
.delete-button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 15px;
}

.view-button {
  border: 1px solid rgba(36, 82, 59, 0.22);
  background: var(--primary-soft);
  color: var(--primary);
}

.download-button {
  background: var(--ink);
  color: #fff;
}

.share-button {
  border: 1px solid #d8cec4;
  background: #fff;
  color: var(--ink);
}

.muted-action {
  background: var(--primary-soft);
  color: var(--primary);
}

.delete-button {
  border: 1px solid #f3c6b7;
  background: var(--accent-soft);
  color: #d72d0c;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #d8cec4;
  border-radius: 18px;
  color: var(--muted);
  font-weight: 900;
}

.content-folder-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  background: linear-gradient(135deg, #f6fbf7 0%, #fff 100%);
  border-color: rgba(36, 82, 59, 0.24);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 19, 16, 0.52);
}

.password-modal {
  width: min(460px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(23, 19, 16, 0.28);
}

.password-heading {
  align-items: start;
  margin-bottom: 16px;
}

.password-heading h2 {
  margin: 10px 0 0;
  font-size: 26px;
}

.modal-close {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.password-form {
  display: grid;
  gap: 12px;
}

.password-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

.password-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  font-weight: 800;
}

.scope-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.scope-options legend {
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 900;
}

.scope-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf8;
  cursor: pointer;
}

.scope-choice input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.scope-choice span,
.scope-choice small {
  display: block;
}

.scope-choice strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.scope-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.password-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 82, 59, 0.12);
}

.password-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-message.is-success {
  color: var(--primary);
}

.password-submit {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.password-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .auth-shell {
    padding: 16px;
    overflow-x: hidden;
  }

  .desktop-only-text {
    display: none;
  }

  .mobile-only-text {
    display: inline;
  }

  .board-shell {
    width: min(100% - 24px, 520px);
    padding-top: 16px;
  }

  .topbar {
    align-items: start;
    padding: 22px;
    border-radius: 20px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .topbar-actions .ghost-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .user-row {
    grid-template-columns: 1fr;
  }

  .user-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .user-actions button {
    width: 100%;
  }

  .topbar h1 {
    font-size: 32px;
  }

  .upload-box,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .subfolder-create {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 8px;
  }

  .subfolder-create input,
  .subfolder-create button {
    min-height: 46px;
  }

  .workspace-grid {
    display: flex;
    flex-direction: column;
  }

  .content-stack {
    display: contents;
  }

  .folder-card {
    order: 1;
    position: static;
    min-height: 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
  }

  .upload-card {
    order: 2;
    padding: 18px;
  }

  .list-card {
    order: 3;
  }

  .section-heading,
  .list-heading {
    display: block;
  }

  .folder-card.is-mobile-hidden {
    display: none;
  }

  .folder-list {
    max-height: none;
  }

  .folder-card .folder-create,
  .folder-card .folder-message,
  .folder-card .folder-actions {
    display: none;
  }

  .folder-card .folder-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .folder-card .folder-row {
    flex: 0 0 170px;
    display: block;
  }

  .folder-card .folder-button {
    width: 100%;
    min-height: 58px;
  }

  .limit-badge,
  .search-field {
    margin-top: 12px;
  }

  .search-field {
    display: block;
    width: 100%;
  }

  .list-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  .subfolder-create {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 6px;
    position: relative;
  }

  .subfolder-create input,
  .subfolder-create button {
    min-height: 46px;
    padding-inline: 8px;
  }

  .subfolder-create input::placeholder,
  .search-field input::placeholder {
    color: transparent;
  }

  .subfolder-create::before {
    content: "폴더명";
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 1;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .subfolder-create:has(input:not(:placeholder-shown))::before {
    display: none;
  }

  .desktop-create-text {
    display: none;
  }

  .mobile-create-text {
    display: inline;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr) 58px;
    width: 100%;
    gap: 6px;
  }

  .search-form button {
    min-height: 46px;
    padding: 0 10px;
    border-radius: 13px;
  }

  .search-field input {
    min-height: 46px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    font-size: 13px;
  }

  .search-icon {
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
  }

  .search-field:has(input:not(:placeholder-shown)) .search-icon {
    display: none;
  }

  .search-field input:not(:placeholder-shown) {
    text-align: left;
  }

  .upload-box {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
  }

  .drop-zone {
    min-height: 78px;
    padding: 12px;
  }

  .drop-zone strong {
    font-size: 16px;
  }

  .drop-zone span {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
  }

  .upload-box button {
    min-width: 0;
    min-height: 78px;
    padding: 0 12px;
  }

  .file-row {
    grid-template-columns: 34px 48px minmax(0, 1fr);
    gap: 10px;
  }

  .file-item {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  .file-summary {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .file-item .file-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .file-item .file-actions[hidden] {
    display: none;
  }

  .file-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-button,
  .view-button,
  .share-button,
  .delete-button {
    width: 100%;
    padding: 0 10px;
  }

  .content-folder-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .content-folder-row .move-button {
    width: 28px;
    min-height: 24px;
    border-radius: 8px;
    font-size: 12px;
  }

  .content-folder-row .file-main strong {
    font-size: 15px;
  }

  .content-folder-row .file-main span {
    margin-top: 3px;
    font-size: 12px;
  }

  .content-folder-row .file-actions {
    grid-column: auto;
    display: flex;
    gap: 5px;
    justify-self: end;
    align-self: center;
  }

  .content-folder-row .folder-icon-button {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 13px;
  }

  .content-folder-row .folder-icon-button .action-icon {
    width: 17px;
    height: 17px;
  }

  .auth-card {
    width: calc(100vw - 32px);
    max-width: none;
    padding: 24px;
    border-radius: 20px;
  }

  .login-row {
    display: grid;
  }
}
