:root {
  color-scheme: dark;
  --bg: #060b10;
  --surface: rgba(12, 21, 28, 0.86);
  --surface-solid: #0c151c;
  --surface-raised: #101d25;
  --line: rgba(151, 188, 202, 0.15);
  --line-strong: rgba(151, 188, 202, 0.26);
  --text: #edf5f6;
  --muted: #8fa5ad;
  --faint: #607781;
  --accent: #f2b642;
  --accent-bright: #ffd36f;
  --accent-soft: rgba(242, 182, 66, 0.12);
  --cyan: #5fd7da;
  --cyan-soft: rgba(95, 215, 218, 0.12);
  --danger: #ff706b;
  --danger-soft: rgba(255, 112, 107, 0.12);
  --success: #61d09b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, Pretendard, "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(115, 164, 180, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 164, 180, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 16% 0%, rgba(33, 95, 105, 0.22), transparent 34rem),
    var(--bg);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

button,
input {
  font: inherit;
}

button,
label[for],
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #111;
  background: var(--accent-bright);
  border-radius: 0.45rem;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.13;
  pointer-events: none;
}

.ambient-one {
  top: 16%;
  right: -12rem;
  background: var(--accent);
}

.ambient-two {
  bottom: -14rem;
  left: -9rem;
  background: var(--cyan);
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  color: #0c1114;
  background: linear-gradient(145deg, var(--accent-bright), #d78b19);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.65rem 0.24rem 0.65rem 0.24rem;
  box-shadow: 0 8px 24px rgba(242, 182, 66, 0.15);
  font-size: 1.15rem;
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.09em;
  font-size: 0.96rem;
}

.brand small {
  margin-top: 0.16rem;
  color: var(--faint);
  letter-spacing: 0.16em;
  font-size: 0.55rem;
  font-weight: 700;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.account-name {
  max-width: 15rem;
  margin-right: 0.35rem;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.account-name::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(97, 208, 155, 0.1);
  vertical-align: 0.08rem;
}

.notice {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  z-index: 80;
  max-width: min(90vw, 38rem);
  padding: 0.85rem 1.1rem;
  color: var(--text);
  background: rgba(20, 34, 43, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateX(-50%);
  font-size: 0.9rem;
}

.notice.is-error {
  color: #ffd8d6;
  background: rgba(54, 20, 22, 0.97);
  border-color: rgba(255, 112, 107, 0.35);
}

.notice.is-success {
  color: #d9ffec;
  border-color: rgba(97, 208, 155, 0.35);
}

.center-panel {
  min-height: calc(100vh - 170px);
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--muted);
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.auth-layout {
  flex: 1;
  min-height: calc(100vh - 168px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
  padding: 4rem 5vw;
}

.auth-copy h1,
.vault-heading h1 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.auth-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
}

.auth-copy h1 span {
  color: var(--accent);
}

.auth-copy > p:not(.eyebrow) {
  max-width: 33rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 850;
}

.feature-list {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 0;
  color: #b8c8cd;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.feature-list span {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  font-weight: 800;
}

.auth-card,
.upload-panel,
.files-panel,
.quota-card,
.modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card {
  position: relative;
  padding: clamp(1.65rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.auth-card h2,
.section-heading h2,
.files-toolbar h2,
.modal-heading h2 {
  margin: 0;
  letter-spacing: -0.025em;
}

.auth-card h2 {
  font-size: 1.7rem;
}

.muted {
  color: var(--muted);
}

.auth-card > .muted {
  margin: 0.55rem 0 1.8rem;
  font-size: 0.87rem;
}

.lock-orbit {
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 2.2rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(242, 182, 66, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 24px var(--accent-soft);
  font-weight: 950;
}

.lock-orbit span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.form-stack,
.modal-card {
  display: flex;
  flex-direction: column;
}

.form-stack {
  gap: 1rem;
}

label > span:first-child {
  display: block;
  margin-bottom: 0.45rem;
  color: #acbdc2;
  font-size: 0.75rem;
  font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="search"] {
  width: 100%;
  color: var(--text);
  background: rgba(4, 10, 14, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 0.62rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input[type="text"],
input[type="password"] {
  min-height: 3.1rem;
  padding: 0 0.9rem;
}

input::placeholder {
  color: #536871;
}

input:focus {
  background: rgba(6, 14, 19, 0.95);
  border-color: rgba(95, 215, 218, 0.55);
  box-shadow: 0 0 0 3px rgba(95, 215, 218, 0.09);
}

.button,
.icon-button,
.view-button {
  border: 0;
  cursor: pointer;
  transition: transform 130ms ease, color 130ms ease, background 130ms ease, border-color 130ms ease, opacity 130ms ease;
}

.button {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 0.58rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.button:hover:not(:disabled),
.icon-button:hover:not(:disabled),
.view-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
.view-button:focus-visible,
.drop-zone:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.button:disabled,
.icon-button:disabled {
  cursor: wait;
  opacity: 0.48;
}

.button-primary {
  color: #111719;
  background: linear-gradient(135deg, var(--accent-bright), #e5a026);
  box-shadow: 0 8px 25px rgba(242, 182, 66, 0.12);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffe08d, #efac31);
}

.button-quiet {
  color: #a7b9bf;
  background: transparent;
  border: 1px solid transparent;
}

.button-quiet:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.button-danger {
  color: #fff;
  background: #bd4442;
}

.button-danger:hover:not(:disabled) {
  background: #d45450;
}

.button-full {
  width: 100%;
  margin-top: 0.4rem;
}

.danger-text {
  color: var(--danger) !important;
}

.form-error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  color: #ffc2bf;
  background: var(--danger-soft);
  border: 1px solid rgba(255, 112, 107, 0.2);
  border-radius: 0.5rem;
  line-height: 1.5;
  font-size: 0.78rem;
}

#vault-view {
  flex: 1;
  padding: 3.75rem 0 4.5rem;
}

.vault-heading {
  display: grid;
  grid-template-columns: 1fr minmax(290px, 380px);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.vault-heading h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.vault-heading .muted {
  margin: 0.9rem 0 0;
  line-height: 1.65;
  font-size: 0.9rem;
}

.quota-card {
  padding: 1.15rem 1.25rem;
  border-radius: 0.85rem;
  box-shadow: none;
}

.quota-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.quota-label strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.quota-track {
  width: 100%;
  height: 0.35rem;
  display: block;
  overflow: hidden;
  appearance: none;
  background: rgba(255, 255, 255, 0.055);
  border: 0;
  border-radius: 999px;
}

.quota-track::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
}

.quota-track::-webkit-progress-value {
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  border-radius: 999px;
}

.quota-track::-moz-progress-bar {
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  border-radius: 999px;
}

.quota-card small {
  display: block;
  margin-top: 0.65rem;
  color: var(--faint);
  font-size: 0.67rem;
}

.upload-panel,
.files-panel {
  border-radius: 1rem;
}

.upload-panel {
  padding: clamp(1rem, 3vw, 1.55rem);
}

.section-heading,
.files-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.section-heading .eyebrow,
.files-toolbar .eyebrow {
  margin-bottom: 0.35rem;
}

.section-heading h2,
.files-toolbar h2 {
  font-size: 1.15rem;
}

.drop-zone {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--muted);
  background:
    linear-gradient(90deg, var(--line-strong) 50%, transparent 50%) top / 12px 1px repeat-x,
    linear-gradient(90deg, var(--line-strong) 50%, transparent 50%) bottom / 12px 1px repeat-x,
    linear-gradient(0deg, var(--line-strong) 50%, transparent 50%) left / 1px 12px repeat-y,
    linear-gradient(0deg, var(--line-strong) 50%, transparent 50%) right / 1px 12px repeat-y,
    rgba(3, 10, 14, 0.44);
  border-radius: 0.78rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  color: var(--text);
  background-color: var(--accent-soft);
  transform: translateY(-1px);
}

.upload-glyph {
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.8rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(242, 182, 66, 0.24);
  border-radius: 50%;
  font-size: 1.2rem;
}

.drop-zone strong {
  color: var(--text);
  font-size: 0.95rem;
}

.drop-zone p {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
}

.upload-list:not(:empty) {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 1rem;
  padding: 0.85rem 0.95rem;
  background: rgba(4, 11, 15, 0.58);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.upload-item-main {
  min-width: 0;
}

.upload-item-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

.upload-item-meta,
.upload-item-status {
  color: var(--faint);
  font-size: 0.68rem;
}

.upload-item-status {
  align-self: center;
  font-variant-numeric: tabular-nums;
}

.upload-progress {
  width: 100%;
  grid-column: 1 / -1;
  height: 0.22rem;
  display: block;
  overflow: hidden;
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 99px;
}

.upload-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
}

.upload-progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 99px;
}

.upload-progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 99px;
}

.upload-item.is-complete .upload-progress::-webkit-progress-value {
  background: var(--success);
}

.upload-item.is-complete .upload-progress::-moz-progress-bar {
  background: var(--success);
}

.upload-item.is-error .upload-item-status {
  color: var(--danger);
}

.upload-item.is-error .upload-progress::-webkit-progress-value {
  background: var(--danger);
}

.upload-item.is-error .upload-progress::-moz-progress-bar {
  background: var(--danger);
}

.files-panel {
  margin-top: 1.2rem;
  overflow: hidden;
}

.files-toolbar {
  padding: 1.35rem 1.55rem;
  border-bottom: 1px solid var(--line);
}

.toolbar-controls,
.view-switcher,
.search-field {
  display: flex;
  align-items: center;
}

.toolbar-controls {
  gap: 0.65rem;
}

.search-field {
  min-width: 14rem;
  gap: 0.55rem;
  padding: 0 0.8rem;
  color: var(--faint);
  background: rgba(4, 10, 14, 0.55);
  border: 1px solid var(--line);
  border-radius: 0.58rem;
}

.search-field:focus-within {
  border-color: rgba(95, 215, 218, 0.45);
}

.search-field input {
  min-height: 2.55rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0.78rem;
}

.search-field input:focus {
  background: transparent;
  box-shadow: none;
}

.view-switcher {
  padding: 0.22rem;
  background: rgba(4, 10, 14, 0.6);
  border: 1px solid var(--line);
  border-radius: 0.62rem;
}

.view-button {
  min-height: 2.1rem;
  padding: 0.4rem 0.65rem;
  color: var(--faint);
  background: transparent;
  border-radius: 0.42rem;
  font-size: 0.72rem;
  font-weight: 750;
}

.view-button.is-active {
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.count-badge {
  display: inline-grid;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  margin-left: 0.25rem;
  padding: 0 0.22rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 99px;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}

.file-list-header,
.file-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 150px 200px;
  align-items: center;
  gap: 1rem;
}

.file-list-header {
  min-height: 2.45rem;
  padding: 0 1.55rem;
  color: var(--faint);
  background: rgba(3, 8, 12, 0.25);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.07em;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.file-list-header span:last-child {
  text-align: right;
}

.file-row {
  min-height: 4.8rem;
  padding: 0.65rem 1.55rem;
  border-bottom: 1px solid var(--line);
  transition: background 130ms ease;
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.file-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.file-icon {
  width: 2.45rem;
  height: 2.75rem;
  flex: 0 0 auto;
  display: grid;
  place-items: end center;
  padding-bottom: 0.42rem;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(242, 182, 66, 0.2);
  border-radius: 0.36rem 0.7rem 0.36rem 0.36rem;
  letter-spacing: 0.02em;
  font-size: 0.5rem;
  font-weight: 850;
}

.file-name-wrap {
  min-width: 0;
}

.file-name {
  display: block;
  overflow: hidden;
  color: #e4edef;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 650;
}

.file-subtext {
  display: none;
  margin-top: 0.3rem;
  color: var(--faint);
  font-size: 0.67rem;
}

.file-size,
.file-date {
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.file-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.icon-button {
  min-height: 2.15rem;
  padding: 0.4rem 0.62rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.48rem;
  font-size: 0.69rem;
  font-weight: 750;
}

.icon-button:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-raised);
  border-color: var(--line-strong);
}

.icon-button.is-danger:hover:not(:disabled) {
  color: #ffc1be;
  background: var(--danger-soft);
  border-color: rgba(255, 112, 107, 0.27);
}

.empty-state {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.empty-state > span {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--faint);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.35rem;
}

.empty-state strong {
  color: #c9d7db;
  font-size: 0.9rem;
}

.empty-state p {
  margin: 0.45rem 0 0;
  color: var(--faint);
  font-size: 0.75rem;
}

.site-footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #49616a;
  border-top: 1px solid var(--line);
  letter-spacing: 0.16em;
  font-size: 0.58rem;
  font-weight: 800;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.modal {
  width: min(92vw, 470px);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(1, 5, 8, 0.78);
  backdrop-filter: blur(8px);
}

.modal-card {
  gap: 1rem;
  max-height: 90vh;
  padding: 1.55rem;
  overflow-y: auto;
  border-radius: 1rem;
}

.modal-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.modal-heading h2 {
  font-size: 1.25rem;
}

.modal-heading .icon-button {
  min-width: 2.15rem;
  padding: 0;
  font-size: 1.15rem;
}

.modal-card > .muted {
  margin: 0 0 0.3rem;
  line-height: 1.6;
  font-size: 0.8rem;
}

.filename-preview {
  color: var(--text);
  overflow-wrap: anywhere;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 860px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3.5rem 7vw;
  }

  .auth-copy h1 {
    max-width: none;
    font-size: clamp(3.2rem, 11vw, 5.6rem);
  }

  .feature-list {
    display: none;
  }

  .auth-card {
    width: min(100%, 450px);
  }

  .vault-heading {
    grid-template-columns: 1fr;
  }

  .file-list-header {
    display: none;
  }

  .file-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding-block: 0.85rem;
  }

  .file-size,
  .file-date {
    display: none;
  }

  .file-subtext {
    display: block;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand small,
  .account-name {
    display: none;
  }

  .account-actions .button {
    padding-inline: 0.7rem;
  }

  .auth-layout {
    min-height: calc(100vh - 145px);
    padding: 2.5rem 0 3.5rem;
  }

  .auth-copy h1 {
    font-size: clamp(2.9rem, 15vw, 4.7rem);
  }

  .auth-copy > p:not(.eyebrow) {
    font-size: 0.85rem;
  }

  #vault-view {
    padding: 2.5rem 0 3.5rem;
  }

  .section-heading {
    align-items: flex-end;
  }

  .section-heading .button {
    min-height: 2.4rem;
    padding-inline: 0.75rem;
  }

  .drop-zone {
    min-height: 145px;
  }

  .files-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 1.1rem;
  }

  .toolbar-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    min-width: 0;
  }

  .view-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .file-row {
    padding: 0.85rem 1.1rem;
  }

  .file-icon {
    width: 2.15rem;
    height: 2.45rem;
  }

  .file-actions {
    flex-direction: column;
  }

  .file-actions .icon-button {
    min-height: 1.9rem;
  }

  .site-footer {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
