:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --ink: #172033;
  --muted: #6d7891;
  --line: #e5eaf3;
  --accent: #3157d5;
  --accent-dark: #2442a6;
  --accent-soft: #eef3ff;
  --danger: #bd3b3b;
  --danger-soft: #fff2f2;
  --success: #1f7a4d;
  --success-soft: #edf9f2;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(24, 39, 75, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(1100px 520px at 4% -8%, #e4ecff 0%, transparent 62%),
    radial-gradient(900px 480px at 98% 2%, #fff2cf 0%, transparent 55%),
    var(--bg);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 24px;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 244, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 244, 0.9);
  background: rgba(247, 249, 253, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--accent);
  background: linear-gradient(145deg, #eef3ff, #dfe8ff);
  border: 1px solid #d8e2ff;
}

.brand-icon svg {
  width: 27px;
  height: 27px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-help {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.topbar-help:hover {
  color: var(--accent);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 13px;
}

.user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

/* --------------------------------------------------------------------------
   按钮与表单
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  border-color: #cbd5ea;
  background: #fbfcff;
}

.btn:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.22);
  outline-offset: 2px;
}

.btn-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #3d63de, #2948b5);
  box-shadow: 0 9px 20px rgba(49, 87, 213, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3459d2, #213d9f);
  box-shadow: 0 12px 24px rgba(49, 87, 213, 0.3);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-ghost {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--ink);
  background: #eef2fa;
}

.btn-danger {
  border-color: #ffd9d9;
  color: var(--danger);
  background: var(--danger-soft);
}

.btn-danger:hover {
  border-color: #ffc4c4;
  background: #ffe8e8;
}

.btn-small {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > span {
  color: #44506a;
  font-size: 13px;
  font-weight: 650;
}

.field em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 1px solid #dce4f2;
  border-radius: 11px;
  background: #fbfcff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.field input::placeholder {
  color: #a4adc0;
}

.field input:focus {
  border-color: #8da5ee;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 87, 213, 0.1);
}

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */

.page {
  padding-top: 44px;
  padding-bottom: 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: end;
  margin-bottom: 32px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

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

.hero-note {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.stats-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  padding: 24px 22px;
  background: linear-gradient(145deg, #ffffff, #f7faff);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.stat-value {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 42px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   上传区
   -------------------------------------------------------------------------- */

.upload-card {
  margin-bottom: 44px;
  padding: 14px;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 192px;
  gap: 5px;
  padding: 28px;
  border: 1.5px dashed #b9c7e6;
  border-radius: 16px;
  background:
    radial-gradient(500px 160px at 50% 0%, #ffffff 0%, transparent 70%),
    linear-gradient(180deg, #fafcff, #f3f7ff);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.dropzone:hover,
.dropzone:focus-within,
.dropzone.dragover {
  border-color: var(--accent);
  background: #eef3ff;
}

.dropzone.dragover {
  transform: scale(1.004);
}

.dropzone.has-files {
  border-style: solid;
  border-color: #a8bcf3;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  border-radius: 15px;
  color: var(--accent);
  background: #fff;
  border: 1px solid #dfe7fb;
  box-shadow: 0 8px 18px rgba(49, 87, 213, 0.08);
}

.dropzone-icon svg {
  width: 28px;
  height: 28px;
}

.dropzone-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dropzone-hint {
  color: var(--muted);
  font-size: 12px;
}

.dropzone-hint-strong {
  margin-top: 2px;
  color: var(--accent);
  font-weight: 600;
}

.selected-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 6px 6px;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 11px;
  border: 1px solid #dfe7f9;
  border-radius: 999px;
  background: #f5f8ff;
  color: #41527a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.upload-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 14px 6px 4px;
}

.note-field {
  flex: 1;
}

.upload-row .btn {
  height: 47px;
  padding-right: 26px;
  padding-left: 26px;
}

/* --------------------------------------------------------------------------
   文件列表
   -------------------------------------------------------------------------- */

.compat-tip {
  scroll-margin-top: 92px;
  margin: 0 0 34px;
  padding: 18px 20px;
  border: 1px solid #dbe6fb;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fbff, #eef4ff);
  box-shadow: 0 10px 30px rgba(49, 87, 213, 0.06);
}

.compat-tip-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.compat-tip-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.compat-tip-head strong {
  display: block;
  margin-top: 1px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.compat-tip-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.compat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 12px;
}

.compat-item {
  padding: 11px 14px;
  border: 1px solid #e2eaf8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.compat-label {
  display: inline-block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.compat-item strong {
  display: block;
  margin: 3px 0 2px;
  font-size: 14px;
}

.compat-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.help-details {
  padding-top: 10px;
  border-top: 1px solid #dfe8f8;
}

.help-details summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.help-details summary::-webkit-details-marker {
  display: none;
}

.help-details summary::before {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #c9d8f6;
  border-radius: 50%;
  content: "+";
  font-size: 13px;
  line-height: 1;
}

.help-details[open] summary::before {
  content: "−";
}

.help-content {
  padding: 8px 0 0 23px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.help-content p {
  margin: 0 0 4px;
}

.files-section {
  margin-top: 8px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.count-pill {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  color: #35405a;
  font-size: 14px;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: #fbfcff;
}

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

.file-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid #dbe5fb;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.file-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.file-name {
  display: block;
  min-width: 0;
  max-width: 300px;
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.source-meta.warn {
  color: #956000;
}

.note-cell {
  max-width: 180px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.actions-col {
  width: 190px;
  text-align: right;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.download-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.download-btn {
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.encoding-hint {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid #dbe6fb;
  border-radius: 12px;
  background: #f5f8ff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.encoding-hint strong {
  color: var(--ink);
  font-weight: 650;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 24px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
  border-radius: 22px;
  color: #8ea4dd;
  background: #f2f6ff;
  border: 1px solid #e2e9fb;
}

.empty-icon svg {
  width: 42px;
  height: 42px;
}

.empty h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.empty p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 0 0 30px;
  color: #909ab0;
  font-size: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   登录页 / 错误页
   -------------------------------------------------------------------------- */

.auth-page {
  position: relative;
  overflow: hidden;
}

.auth-page::before,
.auth-page::after {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  pointer-events: none;
}

.auth-page::before {
  top: -180px;
  left: -140px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(63, 99, 222, 0.16), transparent 68%);
}

.auth-page::after {
  right: -180px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 195, 68, 0.18), transparent 68%);
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 34px 20px;
}

.auth-card {
  width: min(100%, 430px);
  padding: 38px 34px 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  border-radius: 19px;
  color: var(--accent);
  background: linear-gradient(145deg, #eef3ff, #dfe8ff);
  border: 1px solid #d8e2ff;
  box-shadow: 0 12px 26px rgba(49, 87, 213, 0.12);
}

.brand-mark svg {
  width: 40px;
  height: 40px;
}

.auth-card h1 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.auth-intro {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.auth-form .btn {
  margin-top: 5px;
  height: 49px;
}

.auth-note {
  margin: 22px 0 0;
  color: #9aa4b8;
  font-size: 11px;
}

.error-card {
  text-align: center;
}

.error-code {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 74px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.error-card h1 {
  font-size: 27px;
}

.error-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   提示消息
   -------------------------------------------------------------------------- */

.flash-stack {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
}

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  font-size: 13px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.flash-out {
  opacity: 0;
  transform: translateY(-6px);
}

.flash-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.flash-success .flash-dot {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}

.flash-error .flash-dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

/* --------------------------------------------------------------------------
   首次访问指南
   -------------------------------------------------------------------------- */

body.guide-open {
  overflow: hidden;
}

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.guide-modal[hidden] {
  display: none;
}

.guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.guide-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  padding: 30px 30px 24px;
  overflow: auto;
  border: 1px solid #e4eaf5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

.guide-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f4fa;
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.guide-close:hover {
  background: #e8edf7;
  color: var(--ink);
}

.guide-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.guide-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.guide-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guide-option {
  padding: 14px;
  border: 1px solid #e2eaf8;
  border-radius: 13px;
  background: #f8fbff;
}

.guide-option-warn {
  border-color: #f1e1c2;
  background: #fffbf2;
}

.guide-option-label {
  display: inline-block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.guide-option-warn .guide-option-label {
  color: #9a6400;
}

.guide-option strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 15px;
}

.guide-option small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.guide-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.guide-actions .btn {
  height: 44px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .stats-card {
    max-width: 420px;
  }

  .page {
    padding-top: 30px;
  }

  .brand-copy small {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    height: 68px;
  }

  .hero-copy h1 {
    letter-spacing: -0.035em;
  }

  .table-card {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    margin-bottom: 12px;
    padding: 7px 2px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 39, 75, 0.06);
  }

  td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 16px;
    border: 0;
    text-align: right;
  }

  td::before {
    flex: 0 0 76px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-align: left;
  }

  td[data-label="文件"] {
    display: block;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
  }

  td[data-label="文件"]::before {
    display: none;
  }

  .file-cell {
    gap: 10px;
  }

  .file-name {
    max-width: calc(100vw - 150px);
  }

  .note-cell {
    max-width: none;
  }

  .actions-col {
    width: auto;
    padding-top: 4px;
    padding-bottom: 12px;
  }

  .row-actions {
    justify-content: flex-end;
  }

  .download-group {
    align-items: flex-end;
    width: 100%;
    max-width: 190px;
  }

  .download-btn {
    width: 100%;
  }

  .compat-tip {
    padding: 15px 14px;
    margin-bottom: 28px;
  }

  .compat-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    padding: 26px 20px 20px;
  }

  .guide-card h2 {
    font-size: 23px;
  }

  .guide-options {
    grid-template-columns: 1fr;
  }

  .guide-actions .btn {
    flex: 1 1 160px;
  }

  .compat-tip-head strong {
    font-size: 14px;
  }

  .compat-tip-head p {
    font-size: 12px;
  }

  .encoding-hint {
    padding: 9px 12px;
    font-size: 11px;
  }

  .selected-files {
    padding-right: 2px;
    padding-left: 2px;
  }

  .upload-row {
    flex-direction: column;
    align-items: stretch;
    padding-right: 2px;
    padding-left: 2px;
  }

  .upload-row .btn {
    width: 100%;
  }

  .flash-stack {
    top: 80px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (max-width: 520px) {
  .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .auth-card {
    padding: 30px 22px 24px;
  }

  .topbar-actions .user-chip {
    display: none;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .stats-card {
    padding: 20px 16px;
  }

  .stat-value {
    font-size: 21px;
  }

  .upload-card {
    padding: 10px;
  }

  .dropzone {
    padding: 22px 16px;
  }
}
