:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel-2: #fafbfd;
  --border: #e4e8ef;
  --border-strong: #d3d9e4;
  --text: #1c2430;
  --muted: #6b7686;
  --brand: #2f6bff;
  --brand-soft: #eaf1ff;
  --ok: #0f9d6b;
  --ok-soft: #e6f7f1;
  --warn: #c47b0a;
  --warn-soft: #fdf3e2;
  --danger: #d64545;
  --danger-soft: #fdecec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.05), 0 8px 24px rgba(20, 30, 50, 0.06);
  --mono: "Cascadia Mono", "Consolas", "Menlo", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.65 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.hidden { display: none !important; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ================= 登录页 ================= */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(420px, 0.95fr);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 52px;
  background:
    radial-gradient(900px 520px at 8% 0%, rgba(61, 123, 255, 0.28), transparent 62%),
    radial-gradient(700px 460px at 100% 100%, rgba(124, 92, 255, 0.2), transparent 60%),
    #10192a;
  color: #dbe3f0;
}

.auth-brand::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 18%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.brand { display: flex; gap: 10px; align-items: center; padding: 4px 6px 18px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-text strong { display: block; font-size: 14px; color: #fff; letter-spacing: 0.3px; }
.brand-text small { display: block; font-size: 11px; color: #8fa1bb; }

.brand-lg { padding: 0; }
.brand-lg .brand-mark { width: 46px; height: 46px; border-radius: 13px; font-size: 22px; }
.brand-lg .brand-text strong { font-size: 20px; }
.brand-lg .brand-text small { font-size: 12px; }

.auth-copy { margin: auto 0; max-width: 520px; position: relative; z-index: 1; }
.auth-copy h1 { font-size: 32px; line-height: 1.35; margin: 0 0 14px; color: #fff; letter-spacing: 0.3px; }
.auth-copy p { margin: 0 0 22px; color: #a9b8cf; font-size: 14px; line-height: 1.8; }

.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.auth-points li { color: #c6d2e5; font-size: 13px; display: flex; align-items: flex-start; gap: 8px; }
.auth-points .dot { margin-top: 7px; flex: 0 0 auto; }

.auth-foot { color: #6f8099; font-size: 11.5px; }

.auth-panel {
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--bg);
}

.auth-card {
  width: min(430px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px 24px;
  box-shadow: var(--shadow);
}

.auth-head { margin-bottom: 18px; }
.auth-head h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: 0.2px; }
.auth-head p { margin: 0; color: var(--muted); font-size: 12.5px; }

.auth-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.auth-note { margin: 18px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.auth-note a { color: var(--brand); text-decoration: underline; }
.auth-note b { color: #3b4553; }

.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.label-row > label { margin-bottom: 0; }
.link-sm { color: var(--brand); font-size: 12px; text-decoration: none; font-weight: 500; }
.link-sm:hover { text-decoration: underline; }

.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1 1 auto; min-width: 0; }
.code-btn { flex: 0 0 auto; white-space: nowrap; min-width: 108px; animation: code-btn-in 0.18s ease-out; }
.code-hint { margin-top: 6px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }

@keyframes code-btn-in {
  from { opacity: 0; transform: translateX(4px); }
  to { opacity: 1; transform: none; }
}

.captcha-box { margin: 4px 0 14px; }
.captcha-box altcha-widget { display: block; max-width: 100%; }
.captcha-note { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.captcha-note.warn {
  color: #a4341c;
  background: #fff4ef;
  border: 1px solid #ffd9c9;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.6;
}

.link-back {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.link-back:hover { color: var(--brand); }
.auth-subtitle { font-size: 17px; margin: 0 0 6px; }
.auth-hint { margin: 0 0 16px; color: var(--muted); font-size: 12.5px; }

.terms-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}
.terms-row input { margin-top: 2px; accent-color: var(--brand); }
.terms-row a { color: var(--brand); text-decoration: underline; }

/* ================= 主应用 ================= */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: #10192a;
  color: #dbe3f0;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: #b9c6db;
  font-size: 13.5px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: #1b2740; color: #fff; }
.nav a.active { background: #22304d; color: #fff; font-weight: 600; }

.sidebar-foot {
  margin-top: auto;
  font-size: 11.5px;
  color: #7d8ca3;
  line-height: 1.6;
  padding: 12px 8px 2px;
  border-top: 1px solid #1e2a42;
}
.side-email { color: #b9c6db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.side-balance b { color: #fff; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: #35c68a; }
.dot.warn { background: #f0a92c; }

.view { flex: 1; min-width: 0; padding: 26px 30px 64px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.page-head h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: 0.2px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card > h2 { font-size: 15px; margin: 0 0 4px; }
.card > .card-sub { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 15px; margin: 0; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }

/* ================= 按钮 ================= */
.btn {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { background: #f6f8fc; border-color: #c2cbdb; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #245be0; border-color: #245be0; }
.btn.danger { color: var(--danger); border-color: #f0c4c4; background: #fff; }
.btn.danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); }
.btn.ghost:hover:not(:disabled) { background: var(--brand-soft); }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn.block { width: 100%; margin-top: 4px; padding: 10px 14px; }

/* ================= 表单 ================= */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: #3b4553; }
.field .hint { color: var(--muted); font-size: 11.5px; margin-top: 4px; line-height: 1.5; }

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 9px;
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.input.mono { font-family: var(--mono); font-size: 12px; }

.tab {
  padding: 8px 2px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.form-msg { min-height: 20px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--ok); }

/* ================= 徽章 ================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.7;
  background: #eef1f6;
  color: #56606f;
  white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--brand-soft); color: var(--brand); }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.table th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  background: var(--panel-2);
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: #f7f9fd; }
.table .cell-title { font-weight: 600; word-break: break-all; line-height: 1.45; }
.table .cell-sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.table td.cell-actions { white-space: nowrap; width: 1%; }
.table th.cell-actions { width: 1%; }

/* ================= 提示 / 空态 ================= */
.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--brand-soft);
  color: #24417c;
  margin-bottom: 14px;
}
.notice.warn { background: var(--warn-soft); color: #7d4d00; }
.notice.err { background: var(--danger-soft); color: #7c2020; }
.notice b { font-weight: 700; }
.notice .notice-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty h3 { margin: 0 0 6px; color: var(--text); font-size: 15px; }
.empty p { margin: 0 auto 16px; font-size: 12.5px; max-width: 440px; line-height: 1.7; }

.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 26px 0; }
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.err-card { border-color: #f0c4c4; background: #fffafa; }
.err-card h2 { color: var(--danger); }
.err-card .err-hint { color: #7c2020; font-size: 12.5px; margin-top: 8px; }

/* ================= 进度 ================= */
.progress { height: 8px; border-radius: 999px; background: #e9edf4; overflow: hidden; }
.progress > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3d7bff, #6a8dff);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progress.danger > div { background: var(--danger); }

/* ================= 上传 ================= */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--panel-2);
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.drop-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
}
.drop-title { font-weight: 600; font-size: 14px; }
.drop-hint { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.6; }

.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  background: #fff;
}
.file-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.file-body { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 13px; word-break: break-all; line-height: 1.5; }
.file-meta { color: var(--muted); font-size: 12px; }

.upload-progress { margin-top: 14px; }
.upload-progress .row { margin-bottom: 6px; }

/* ================= 额度和统计 ================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--panel-2); }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 18px; font-weight: 700; margin-top: 2px; word-break: break-all; }
.balance-hero { display: flex; align-items: baseline; gap: 8px; }
.balance-hero strong { font-size: 44px; line-height: 1.1; letter-spacing: -0.5px; }
.balance-hero span { color: var(--muted); font-size: 14px; }

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 4px;
}
.price strong { font-size: 30px; color: var(--brand); }
.price span { color: var(--muted); font-size: 13px; }

/* ================= Markdown ================= */
.markdown {
  font-size: 13.5px;
  line-height: 1.8;
  color: #222c3a;
  max-height: 640px;
  overflow: auto;
  padding-right: 6px;
}
.markdown h1 { font-size: 19px; margin: 4px 0 12px; }
.markdown h2 { font-size: 16px; margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.markdown h3 { font-size: 14px; margin: 16px 0 6px; }
.markdown p { margin: 8px 0; }
.markdown ul, .markdown ol { margin: 8px 0; padding-left: 22px; }
.markdown li { margin: 3px 0; }
.markdown blockquote {
  margin: 10px 0;
  padding: 6px 12px;
  border-left: 3px solid var(--border-strong);
  color: var(--muted);
  background: var(--panel-2);
}
.markdown code {
  background: #f0f3f8;
  border-radius: 5px;
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 12px;
}
.markdown pre { background: #0e1725; color: #c9d6e8; padding: 12px; border-radius: 9px; overflow: auto; }
.markdown pre code { background: none; padding: 0; color: inherit; }
.markdown table { border-collapse: collapse; margin: 10px 0; width: 100%; }
.markdown th, .markdown td { border: 1px solid var(--border); padding: 6px 10px; font-size: 12.5px; text-align: left; }
.markdown th { background: var(--panel-2); }
.markdown hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.markdown a { color: var(--brand); text-decoration: underline; }

/* ================= 详情 ================= */
.task-head-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.result-head h2 { margin: 0; font-size: 15px; }

.artifact-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.artifact-tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12.5px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.artifact-tab:hover:not(:disabled) { background: #f6f8fc; border-color: var(--border-strong); }
.artifact-tab.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}
.artifact-tab:disabled { opacity: 0.42; cursor: not-allowed; }
.artifact-body { min-height: 40px; }
.artifact-body.transcript {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  max-height: 640px;
  overflow: auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
}
.download-list { display: flex; flex-direction: column; gap: 10px; }
.download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--panel-2);
}
.download-title { font-weight: 600; }
.download-desc { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 2px; }

/* ================= KV ================= */
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 7px 14px; font-size: 12.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

/* ================= 用户协议 ================= */
.terms { font-size: 13px; line-height: 1.8; color: #2b3545; }
.terms h3 { font-size: 14px; margin: 18px 0 6px; }
.terms p { margin: 6px 0; color: #3b4657; }
.terms-meta { color: var(--muted); font-size: 12px; }
.terms-list { margin: 6px 0 6px 18px; padding: 0; color: #3b4657; }
.terms-list li { margin: 4px 0; }

/* ================= 模态框 ================= */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 25, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.modal {
  background: #fff;
  border-radius: 14px;
  width: min(720px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(10, 20, 40, 0.25);
}
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 15px; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.confirm-text { font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; }

/* ================= Toast ================= */
.toast-root {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
}
.toast {
  background: #10192a;
  color: #e8eefb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  max-width: 420px;
  box-shadow: 0 12px 30px rgba(10, 20, 40, 0.25);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok { background: #0d3f2e; }
.toast.err { background: #4b1b1b; }
.toast .toast-hint { color: #a9b8cf; font-size: 11.5px; margin-top: 3px; }

/* ================= 通用布局 ================= */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.two-col > .card { margin-bottom: 0; }
.rule-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.85; }
.rule-list li { margin: 2px 0; }
.hint { color: var(--muted); font-size: 11.5px; margin-top: 6px; line-height: 1.5; }
.task-title { word-break: break-all; }

/* ================= 响应式 ================= */
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 26px 24px; }
  .auth-copy { margin: 18px 0 8px; }
  .auth-copy h1 { font-size: 24px; }
  .auth-copy p { margin-bottom: 0; }
  .auth-points, .auth-foot { display: none; }
  .auth-panel { padding: 24px 16px 48px; align-items: start; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .table { min-width: 680px; }
}

@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex: none;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
  }
  .brand { padding: 0; }
  .brand-text small { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; margin-left: auto; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .sidebar-foot { display: none; }
  .view { padding: 18px 16px 50px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head h1 { font-size: 20px; }
}

@media (max-width: 560px) {
  .toast-root { left: 12px; right: 12px; top: 12px; }
  .toast { max-width: none; }
  .card { padding: 15px 16px; }
  .table { min-width: 680px; }
  .dropzone { padding: 26px 14px; }
  .balance-hero strong { font-size: 38px; }
}
