:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --surface: #ffffff;
  --surface-2: #f7fafc;
  --bg0: #e8eef5;
  --bg1: #f3f6fa;
  --accent: #0f766e;
  --accent-2: #0d9488;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Manrope", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", "Manrope", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --app-max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(13, 148, 136, 0.16), transparent 55%),
    radial-gradient(800px 480px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, var(--bg0) 42%, #e6edf5 100%);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100dvh; }

.hidden { display: none !important; }

/* ——— Auth ——— */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 400px at 20% 10%, rgba(13, 148, 136, 0.18), transparent 60%),
    radial-gradient(600px 360px at 90% 80%, rgba(37, 99, 235, 0.1), transparent 55%),
    linear-gradient(160deg, #e8eef6, #f5f8fb 50%, #e9f1f0);
  animation: fadeIn 0.45s var(--ease);
}

.auth-shell {
  width: min(100%, 420px);
  text-align: center;
  animation: riseIn 0.55s var(--ease);
}

.auth-brand {
  margin-bottom: 28px;
}

.auth-brand .logo-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
}

.auth-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.auth-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: var(--shadow);
  text-align: left;
}

.auth-form h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0f766e, #14b8a6);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.28);
}

.logo-mark svg { width: 22px; height: 22px; display: block; }

/* ——— App shell ——— */
.app {
  max-width: var(--app-max);
  margin: 0 auto;
  padding: calc(18px + var(--safe-t)) 20px calc(28px + var(--safe-b));
  animation: fadeIn 0.4s var(--ease);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-text h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.brand-text .sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.storage-stat {
  display: none;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .storage-stat { display: inline-flex; }
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.icon-btn svg { width: 18px; height: 18px; }

.menu-wrap { position: relative; }

.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 40;
  animation: riseIn 0.2s var(--ease);
}

.menu-pop button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.menu-pop button:hover { background: var(--surface-2); }
.menu-pop button.danger { color: var(--danger); }

/* ——— Workspace ——— */
.dash-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dash-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  text-align: left;
  color: inherit;
  font: inherit;
}

.dash-card-btn {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.dash-card-btn:hover {
  border-color: rgba(15, 118, 110, 0.4);
  background: #fff;
  transform: translateY(-1px);
}

.dash-card-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dash-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 4px;
}

.dash-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.dash-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 600;
  opacity: 0.85;
}

.qr-wrap {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.qr-wrap img {
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.check-row {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  grid-template-columns: none;
  cursor: pointer;
  user-select: none;
}

.check-row input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  appearance: auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-row span {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.3;
  flex: 1;
}

.workspace {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

@media (max-width: 860px) {
  .dash-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.workspace-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.7));
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
}

.nav-btn:disabled { opacity: 0.35; cursor: default; }

.breadcrumb {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid transparent;
}

.crumb {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  padding: 0;
}

.crumb.current {
  color: var(--ink);
  cursor: default;
  font-weight: 700;
}

.crumb-sep { color: #94a3b8; }

.command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-wrap {
  flex: 1;
  min-width: 180px;
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px 10px 38px;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.sort-mini {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:hover { border-color: var(--line-strong); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.sm { padding: 7px 11px; font-size: 0.85rem; border-radius: 10px; }
.btn.full { width: 100%; }
.btn.primary {
  background: linear-gradient(180deg, #11968c, var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
}
.btn.primary:hover { filter: brightness(1.03); }
.btn.ghost { background: transparent; }
.btn.danger {
  background: var(--danger-soft);
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--danger);
}
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ——— Lists ——— */
.drop-zone {
  padding: 8px 12px 16px;
  min-height: 320px;
  transition: background 0.2s;
}

.drop-zone.drag {
  background: var(--accent-soft);
}

.folder-list,
.file-list {
  display: grid;
  gap: 6px;
}

.folder-item,
.file-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  animation: rowIn 0.35s var(--ease) both;
  transition: background 0.15s, border-color 0.15s;
}

.folder-item:hover,
.file-item:hover {
  background: #fff;
  border-color: var(--line);
}

.file-item.selected {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.25);
}

.folder-icon,
.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.folder-icon {
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  color: #c2410c;
}

.file-icon {
  background: linear-gradient(180deg, #f0fdfa, #ccfbf1);
  color: var(--accent);
}

.folder-icon svg,
.file-icon svg { width: 20px; height: 20px; }

.item-main strong {
  display: block;
  font-weight: 650;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.row-actions {
  display: flex;
  gap: 4px;
  opacity: 0.55;
  transition: opacity 0.15s;
}

.folder-item:hover .row-actions,
.file-item:hover .row-actions,
.file-item.selected .row-actions {
  opacity: 1;
}

.row-actions .btn {
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 600;
}

.empty {
  margin: 24px 8px;
  padding: 48px 24px;
  text-align: center;
  border: 1.5px dashed rgba(15, 118, 110, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(13, 148, 136, 0.1), transparent 70%),
    #fff;
  animation: riseIn 0.45s var(--ease);
}

.empty-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.empty p {
  margin: 0 auto 18px;
  max-width: 320px;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* ——— Selection bar ——— */
.selection-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  animation: slideUp 0.28s var(--ease);
}

.selection-bar .sel-count { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }
.selection-bar .btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.selection-bar .btn.primary {
  background: var(--accent-2);
  border-color: transparent;
  box-shadow: none;
}
.selection-bar .btn.danger {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fecaca;
}
.sel-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ——— Share public page ——— */
.share-badge {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(15, 118, 110, 0.18);
  padding: 7px 12px;
  border-radius: 999px;
}

/* ——— Overlays / panels ——— */
.drag-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  pointer-events: none;
  animation: fadeIn 0.2s var(--ease);
}

.drag-overlay-card {
  padding: 36px 42px;
  border-radius: 22px;
  border: 2px dashed rgba(15, 118, 110, 0.55);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
  animation: riseIn 0.25s var(--ease);
}

.drag-overlay-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.drag-overlay-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.upload-panel {
  position: fixed;
  right: 16px;
  bottom: calc(16px + var(--safe-b));
  z-index: 85;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s var(--ease);
}

.upload-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #2dd4bf);
  transition: width 0.15s ease;
}

/* ——— Modals ——— */
dialog.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  margin: auto;
  overflow: hidden;
}

dialog.modal::backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
}

.modal-body,
.card {
  width: min(100%, 440px);
  max-height: calc(100vh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: riseIn 0.28s var(--ease);
  box-sizing: border-box;
}

.modal.wide .modal-body { width: min(100%, 680px); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.field-row .field {
  margin-top: 6px;
  margin-bottom: 6px;
  min-width: 0;
}

@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}

#shareSetup .field {
  margin: 8px 0;
}

#shareSetup .check-row {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

#shareModal .modal-actions {
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 36%);
  z-index: 2;
}

.share-target-card {
  margin: 10px 0 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(15, 118, 110, 0.35);
  background: linear-gradient(180deg, #f0fdfa, #fff);
}

.share-target-card .field span {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.share-target-card select {
  margin-top: 4px;
  font-weight: 600;
  background: #fff !important;
}

.share-target-label {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.share-target-hint {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ink-soft);
  word-break: break-all;
}

.share-result {
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: linear-gradient(180deg, #f0fdfa, #fff);
}

.share-result-badge {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.share-result .field { margin-top: 8px; }

.modal-body h2,
.card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 8px;
}

.field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.field span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  outline: none;
}

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}

.inline-field {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.inline-field span {
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--muted);
}

.inline-field select {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 8px 0 0;
}

.shares-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 50vh;
  overflow: auto;
}

.share-row {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.share-row.expired {
  opacity: 0.62;
}

.share-row .row-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.share-row code {
  font-size: 0.75rem;
  color: var(--accent);
  word-break: break-all;
}

.preview-body { width: min(100%, 820px); }
.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.preview-content {
  min-height: 180px;
  max-height: 70vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  padding: 10px;
}
.preview-content img,
.preview-content video {
  max-width: 100%;
  max-height: 65vh;
  border-radius: 8px;
}
.preview-content pre {
  width: 100%;
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
}
.preview-content iframe {
  width: 100%;
  height: 65vh;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-b));
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  transition: 0.25s var(--ease);
  z-index: 120;
  max-width: calc(100vw - 24px);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.toast.show {
  transform: translateX(-50%);
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .app { padding-left: 14px; padding-right: 14px; }
  .brand-text .sub { display: none; }
  .command-row { flex-direction: column; align-items: stretch; }
  .command-actions { width: 100%; }
  .command-actions .btn { flex: 1; }
  .row-actions { display: none; }
  .folder-item:hover .row-actions,
  .file-item:hover .row-actions { display: none; }
  .file-item .row-actions,
  .folder-item .row-actions {
    display: flex;
    opacity: 1;
  }
  .workspace { border-radius: 18px; }
}
