:root {
  --bg: #050506;
  --bg-elev: #0c0c0f;
  --card: #0e0e12;
  --card-2: #141419;
  --line: #1f1f25;
  --line-2: #2a2a32;
  --text: #f4f4f6;
  --text-2: #a3a3ad;
  --text-3: #6f6f7a;
  --blue: #3b82f6;
  --blue-2: #2f6fe0;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 16px;
  --safe: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'WenQuanYi Zen Hei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--blue);
}

.app {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(96px + var(--safe));
  position: relative;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 0 14px;
  background: rgba(5, 5, 6, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #2b2b33, #101014 70%);
  border: 1px solid #2c2c34;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.logo svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text p {
  margin: 0;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  flex: 0 0 38px;
}

.icon-btn:active {
  background: #1a1a20;
}

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

/* ---------------- Tabs ---------------- */

.tabs {
  display: flex;
  justify-content: center;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 62px;
  z-index: 39;
}

.tab {
  position: relative;
  padding: 13px 2px 11px;
  font-size: 15.5px;
  color: #8b8b95;
  font-weight: 500;
}

.tab.active {
  color: #fff;
  font-weight: 600;
}

.tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1px;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
}

/* ---------------- 通用 ---------------- */

main {
  padding: 14px 14px 0;
}

.view {
  display: block;
}

.hidden {
  display: none !important;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 2px 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head .meta {
  font-size: 11px;
  color: var(--text-3);
}

.field {
  margin-bottom: 13px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.field .tag {
  font-size: 9.5px;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 1px 6px;
  font-weight: 400;
}

input[type='text'],
input[type='password'],
input[type='url'],
textarea,
select {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 16px;
  outline: none;
  color: var(--text);
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: #55555f;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #3d5f9e;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.55;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
}

.linkbtn {
  margin: 8px 1px 0;
  padding: 0;
  font-size: 11px;
  color: #6f8fc4;
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tiny {
  margin: 7px 1px 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--text-3);
}

.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.chip {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #101014;
  color: #b9b9c2;
  font-size: 12px;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip.active {
  border-color: rgba(59, 130, 246, 0.75);
  background: rgba(59, 130, 246, 0.14);
  color: #cfe0ff;
  font-weight: 600;
}

.input-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 14px;
}

.input-summary .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 8px;
}

.input-summary .txt {
  flex: 1;
  min-width: 0;
}

.input-summary b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-summary span {
  display: block;
  font-size: 10.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.input-summary .edit {
  flex: 0 0 auto;
  font-size: 11px;
  color: #9fc0f0;
  border: 1px solid #2e4a76;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 20px;
  padding: 4px 10px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #0d0d10;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 14px;
}

.seg {
  height: 38px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #9a9aa4;
  font-weight: 500;
}

.seg.active {
  background: #24242c;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn {
  height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.985);
}

.btn.primary {
  background: var(--blue);
  color: #fff;
}

.btn.ghost {
  background: #15151a;
  border: 1px solid var(--line-2);
  color: #d6d6dd;
}

.btn.subtle {
  background: #1c1c22;
  border: 1px solid #2b2b34;
  color: #fff;
}

.btn.danger {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #f87171;
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.btn .spin {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

.key-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.key-row input {
  flex: 1;
  min-width: 0;
}

.key-row button {
  flex: 0 0 58px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #141419;
  color: #9a9aa4;
  font-size: 12px;
}

.actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.samples-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  font-size: 13px;
  padding-right: 26px;
  background: #101014;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid #8a8a95;
  border-bottom: 1.6px solid #8a8a95;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.upload-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.file-btn {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px dashed #33333d;
  background: #101014;
  color: #b7b7c0;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.upload-row .btn {
  flex: 1;
  height: 44px;
}

/* ---------------- 结果 ---------------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #101015 0%, #0b0b0e 100%);
  border: 1px solid #23232b;
  border-radius: 20px;
  padding: 18px 16px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -40% -30% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.13), transparent 65%);
  pointer-events: none;
}

.hero-main {
  flex: 1;
  min-width: 0;
}

.hero-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  color: var(--blue);
}

.hero-icon svg {
  width: 100%;
  height: 100%;
}

.hero-label {
  font-size: 11.5px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.hero-model {
  margin: 0;
  font-size: 26px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.hero-vendor {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
}

.hero-score {
  flex: 0 0 108px;
  text-align: right;
  padding-top: 2px;
}

.score-num {
  font-size: 33px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.score-num span {
  font-size: 17px;
  font-weight: 700;
  margin-left: 1px;
}

.score-label {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-2);
}

.score-src {
  margin-top: 8px;
  font-size: 9.5px;
  line-height: 1.35;
  color: #5d5d68;
}

.hero-note {
  margin: 10px 3px 0;
  font-size: 12px;
  line-height: 1.6;
  color: #8d8d97;
}

.conf-green .score-num {
  color: #fff;
}
.conf-green .score-label {
  color: var(--green);
}
.conf-amber .score-num {
  color: #fff;
}
.conf-amber .score-label {
  color: var(--amber);
}
.conf-red .score-num {
  color: #fff;
}
.conf-red .score-label {
  color: var(--red);
}

.mt10 {
  margin-top: 10px;
}

.breakdown {
  padding: 14px 14px 8px;
}

.breakdown h3,
.report h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #e6e6eb;
}

.cand {
  padding: 9px 0;
  border-top: 1px solid #17171c;
}

.cand:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cand-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rank {
  width: 15px;
  flex: 0 0 15px;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.cand-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cand-pct {
  font-size: 13px;
  color: #c9c9d1;
  font-variant-numeric: tabular-nums;
}

.cand-sub {
  margin: 3px 0 0 23px;
  font-size: 10.5px;
  color: var(--text-3);
}

.bar {
  height: 5px;
  border-radius: 5px;
  background: #1b1b21;
  margin: 7px 0 0 23px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bar.dim i {
  background: #3a3a44;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #17171c;
  border: 1px solid #17171c;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
}

.metric {
  background: #0b0b0e;
  padding: 9px 8px;
}

.metric span {
  display: block;
  font-size: 9.5px;
  color: var(--text-3);
  margin-bottom: 2px;
}

.metric b {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.chain {
  margin-top: 12px;
  border-top: 1px solid #17171c;
  padding-top: 10px;
}

.chain-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  padding: 3px 0;
  color: #b9b9c2;
}

.chain-row .kind {
  flex: 0 0 54px;
  font-size: 9.5px;
  color: var(--text-3);
  border: 1px solid #26262e;
  border-radius: 5px;
  padding: 1px 0;
  text-align: center;
  margin-top: 1px;
}

.chain-row .val {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------------- 报告 ---------------- */

.report {
  padding: 14px;
}

.report dl {
  margin: 0;
}

.report .row {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #16161b;
  font-size: 13px;
}

.report .row:first-child {
  border-top: none;
  padding-top: 0;
}

.report dt {
  flex: 0 0 92px;
  color: #8b8b95;
  font-size: 12px;
  padding-top: 1px;
}

.report dd {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.report dd.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  border-radius: 20px;
  padding: 2px 8px;
  border: 1px solid;
  line-height: 1.5;
}

.pill.green {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}

.pill.amber {
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}

.pill.red {
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.evidence-list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  padding: 7px 0;
  border-top: 1px dashed #1b1b21;
  font-size: 12px;
  line-height: 1.5;
}

.evidence-list li:first-child {
  border-top: none;
}

.evidence-list b {
  font-weight: 600;
  display: block;
  margin-bottom: 1px;
}

.evidence-list span {
  color: #8f8f9a;
  overflow-wrap: anywhere;
}

.warnbox {
  margin-top: 10px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.07);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #d6bd7e;
}

.warnbox p {
  margin: 0 0 4px;
}

.warnbox p:last-child {
  margin: 0;
}

.errorbox {
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #f3a6a6;
  margin-top: 12px;
}

.errorbox b {
  display: block;
  color: #ffd0d0;
  margin-bottom: 3px;
  font-size: 13px;
}

.result-empty {
  margin-top: 18px;
  border: 1px dashed #26262e;
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  color: #66666f;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------------- 样本库 ---------------- */

.prov-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 8px;
}

.prov-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.prov-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 8px;
}

.prov-head b {
  font-size: 14px;
  flex: 1;
}

.prov-head .tag {
  font-size: 9.5px;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 1px 7px;
}

.prov-row {
  display: flex;
  gap: 8px;
  font-size: 11px;
  padding: 2.5px 0;
  color: #8f8f9a;
}

.prov-row span:first-child {
  flex: 0 0 46px;
  color: #5f5f6a;
}

.prov-row code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10.5px;
  color: #b9c8e6;
  overflow-wrap: anywhere;
}

.sample-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #111116, #0b0b0e);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 8px;
}

.sample-card h4 {
  margin: 0 0 3px;
  font-size: 13.5px;
}

.sample-card p {
  margin: 0 0 10px;
  font-size: 11.5px;
  color: #8a8a95;
  line-height: 1.5;
}

.sample-card .btn {
  height: 36px;
  font-size: 12.5px;
  border-radius: 9px;
  padding: 0 14px;
}

/* ---------------- 文档 ---------------- */

.doc h3 {
  font-size: 15px;
  margin: 20px 0 8px;
}

.doc h3:first-child {
  margin-top: 2px;
}

.doc p,
.doc li {
  font-size: 13px;
  line-height: 1.7;
  color: #a8a8b2;
}

.doc p {
  margin: 0 0 10px;
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.doc li {
  margin-bottom: 4px;
}

.doc .kbd {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  background: #16161c;
  border: 1px solid #26262e;
  border-radius: 5px;
  padding: 1px 5px;
  color: #c7c7d0;
}

.doc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.doc-card h4 {
  margin: 0 0 6px;
  font-size: 13.5px;
}

/* ---------------- 底部操作栏 ---------------- */

.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 9px 14px calc(9px + var(--safe));
  background: rgba(6, 6, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #1b1b21;
}

.stickybar-inner {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stickybar .icon-btn {
  background: #14141a;
  border: 1px solid #26262e;
  width: 44px;
  height: 46px;
  border-radius: 12px;
  flex: 0 0 44px;
}

.stickybar .btn {
  height: 46px;
}

.stickybar .btn.subtle {
  flex: 0 0 108px;
}

.stickybar .btn.primary {
  flex: 1;
}

/* ---------------- 弹层 ---------------- */

.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.16s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.sheet {
  width: 100%;
  max-width: 440px;
  max-height: 84vh;
  background: #0b0b0e;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid #26262e;
  padding: 8px 14px calc(18px + var(--safe));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes up {
  from {
    transform: translateY(40px);
    opacity: 0.4;
  }
}

.sheet-grip {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #30303a;
  margin: 4px auto 12px;
}

.sheet h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.sheet .sub {
  margin: 0 0 14px;
  font-size: 11.5px;
  color: var(--text-3);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 4px;
  border-top: 1px solid #17171c;
  font-size: 14.5px;
  text-align: left;
  color: #e8e8ee;
}

.menu-item:first-of-type {
  border-top: none;
}

.menu-item small {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
}

.hist-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 2px;
  border-top: 1px solid #17171c;
}

.hist-item:first-of-type {
  border-top: none;
}

.hist-main {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.hist-model {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-sub {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-del {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  color: #6f6f7a;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.preview-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #26262e;
  display: block;
  margin-bottom: 10px;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + var(--safe));
  transform: translate(-50%, 8px);
  background: rgba(28, 28, 34, 0.96);
  border: 1px solid #34343e;
  color: #fff;
  font-size: 12.5px;
  padding: 9px 15px;
  border-radius: 22px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 85vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- 进度 ---------------- */

.progress {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #9a9aa5;
  margin-top: 12px;
  padding: 10px 12px;
  background: #0d0d12;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.progress .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

@media (min-width: 441px) {
  body {
    background: #000;
  }
  .app {
    border-left: 1px solid #141418;
    border-right: 1px solid #141418;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
