/* HTMLProto design system — Soft UI (柔和界面风)
   Indigo / Mist 配色 · 大圆角 · 彩色柔光阴影 · 低饱和 · hover 上浮 */
:root {
  /* Brand palette */
  --indigo: #6366f1;
  --indigo-deep: #4338ca;
  --mist: #f1f5f9;
  --cloud: #ffffff;

  /* Semantic aliases — 变量名沿用，色值切换为 Soft UI */
  --ink: #1f2937;            /* 主文字：深灰而非纯黑 */
  --ink-2: #334155;
  --ink-soft: #64748b;       /* muted slate */
  --muted: #94a3b8;          /* 三级信息 */
  --line: #eef1f7;           /* 极淡，弱化描边 */
  --line-strong: #dde4ef;
  --paper: var(--mist);      /* 页面画布 = Mist */
  --surface: var(--cloud);   /* 卡片 = Cloud White */
  --surface-2: #f8fafc;
  --accent: #6366f1;         /* 主色 Indigo */
  --accent-ink: #4f46e5;
  --accent-soft: #eef2ff;
  --signal: #f59e0b;         /* 提醒 Amber */
  --signal-soft: #fffbeb;
  --ok: #10b981;             /* 成功 Mint */
  --ok-soft: #ecfdf5;
  --danger: #e11d48;
  --danger-soft: #fff1f2;

  /* Geometry — 圆角 16px 起，卡片 24px */
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;

  /* Elevation — 带主色相的柔光阴影，模糊 ≥ 24px */
  --shadow-sm: 0 8px 20px rgba(148,163,184,.20);
  --shadow-md: 0 12px 32px rgba(148,163,184,.25);
  --shadow-lg: 0 24px 48px rgba(99,102,241,.20);
  --shadow-btn: 0 10px 24px rgba(99,102,241,.28);
  --shadow-btn-hover: 0 18px 32px rgba(99,102,241,.38);
  --shadow-press: inset 0 4px 10px rgba(67,56,202,.28);
  --shadow-glow: 0 10px 26px rgba(99,102,241,.14);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(99,102,241,.22); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(99,102,241,.4);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--mist) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-head.scrolled { border-bottom-color: transparent; box-shadow: 0 8px 30px rgba(148,163,184,.18); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: var(--radius-sm); background: linear-gradient(145deg, #818cf8, var(--indigo)); color: #fff;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: -.04em;
  box-shadow: var(--shadow-btn);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand-sub { font-size: 10px; color: var(--muted); letter-spacing: .12em; font-family: var(--mono); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--ink-soft);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.nav a:hover { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-user {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
  max-width: 220px;
}
.head-user .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px var(--ok-soft); }
.head-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons — Soft UI: 主色填充、柔光阴影、hover 上浮、按下内凹 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .3s ease-in-out, box-shadow .3s ease-in-out, background .3s ease, color .3s ease;
}
.btn:hover { transform: translateY(-4px); }
.btn:active { transform: translateY(0) scale(.96); }
.btn-primary { background: linear-gradient(145deg, #818cf8, var(--indigo)); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: linear-gradient(145deg, var(--indigo), var(--accent-ink)); box-shadow: var(--shadow-btn-hover); }
.btn-primary:active { box-shadow: var(--shadow-press); }
.btn-accent { background: linear-gradient(145deg, #818cf8, var(--indigo)); color: #fff; box-shadow: var(--shadow-btn); }
.btn-accent:hover { background: linear-gradient(145deg, var(--indigo), var(--accent-ink)); box-shadow: var(--shadow-btn-hover); }
.btn-accent:active { box-shadow: var(--shadow-press); }
.btn-accent[disabled] { background: var(--mist); color: var(--muted); box-shadow: none; opacity: 1; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { box-shadow: var(--shadow-md); color: var(--accent-ink); }
.btn-ghost:active { box-shadow: var(--shadow-press); }
.btn-quiet { background: transparent; color: var(--ink-soft); box-shadow: none; }
.btn-quiet:hover { transform: translateY(-2px); background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--danger-soft); color: var(--danger); box-shadow: var(--shadow-sm); }
.btn-danger:hover { box-shadow: var(--shadow-md); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 12px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 14.5px; border-radius: var(--radius-sm); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn-icon { width: 40px; padding: 0; }

/* Hero */
.hero { position: relative; padding: 80px 0 48px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -120px -10% auto -10%; height: 600px; pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, rgba(99,102,241,.10) 1px, transparent 0) 0 0/22px 22px,
    radial-gradient(55% 65% at 74% 18%, rgba(99,102,241,.13), transparent 70%),
    radial-gradient(45% 55% at 12% 62%, rgba(236,72,153,.08), transparent 70%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans);
  font-size: 11.5px; letter-spacing: .04em; color: var(--accent-ink); font-weight: 600;
  padding: 8px 15px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 {
  margin: 24px 0 20px; font-size: clamp(42px, 5.2vw, 64px); line-height: 1.1;
  letter-spacing: -.035em; font-weight: 700;
}
.hero h1 em {
  font-style: normal; position: relative; white-space: nowrap; color: var(--indigo);
}
.hero h1 em::after {
  content: ""; position: absolute; left: 1%; right: 1%; bottom: .06em; height: .38em;
  background: rgba(99,102,241,.16); border-radius: 8px; z-index: -1;
}
.hero-lede { margin: 0 0 28px; max-width: 34em; color: var(--ink-soft); font-size: 15.5px; line-height: 1.8; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0 0 32px; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.hero-points svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.hero-note {
  display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px; max-width: 470px;
  border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm);
}
.hero-note strong { font-size: 12.5px; display: block; margin-bottom: 3px; }
.hero-note p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.hero-note .badge-device {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; padding: 4px 8px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); flex: none; margin-top: 1px;
}

/* Upload card */
.upload-card {
  position: relative; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px;
}
.upload-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.upload-head h2 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.02em; }
.upload-tag {
  font-family: var(--mono); font-size: 10.5px; padding: 5px 10px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink); letter-spacing: .04em;
}

.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2);
  padding: 30px 18px 22px; text-align: center; transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.dropzone.is-over { border-color: var(--indigo); background: var(--accent-soft); box-shadow: inset 0 0 0 4px rgba(99,102,241,.08); }
.drop-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: var(--radius-sm); background: var(--surface);
  display: grid; place-items: center; color: var(--indigo);
  box-shadow: var(--shadow-sm);
}
.drop-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.drop-hint { font-size: 11.5px; color: var(--muted); margin: 0 0 14px; }
.drop-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.drop-foot { font-size: 10.5px; color: var(--muted); font-family: var(--mono); letter-spacing: .02em; }
.drop-foot b { color: var(--ink-soft); font-weight: 600; }

.file-summary {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-xs);
  background: var(--surface-2); text-align: left;
}
.file-summary.show { display: block; }
.file-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.file-summary-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-summary-meta { font-size: 10.5px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.file-summary-list { max-height: 96px; overflow: auto; margin: 8px 0 0; padding: 0; list-style: none; }
.file-summary-list li {
  display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono);
  font-size: 10.5px; color: var(--ink-soft); padding: 4px 0; border-top: 1px solid var(--line);
}
.file-summary-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-summary-list li span:last-child { color: var(--muted); flex: none; }
.file-summary .clear { margin-top: 6px; font-size: 11px; color: var(--danger); background: none; border: 0; padding: 2px 0; }

.paste-area { display: none; margin-top: 12px; }
.paste-area.show { display: block; }
.paste-area textarea {
  width: 100%; min-height: 120px; resize: vertical; border: 0;
  border-radius: var(--radius-sm); padding: 14px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6;
  background: var(--surface-2); box-shadow: inset 0 2px 6px rgba(148,163,184,.12);
  transition: box-shadow .3s ease, background .3s ease;
}
.paste-area textarea:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.16), var(--shadow-glow); }
.paste-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.upload-form { margin-top: 16px; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
label.field-label, .field-label {
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em;
}
.field-label small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.input {
  height: 46px; width: 100%; border: 0; border-radius: var(--radius-sm);
  padding: 0 16px; background: var(--surface-2); font-size: 13.5px;
  box-shadow: inset 0 2px 6px rgba(148,163,184,.12);
  transition: box-shadow .3s ease, background .3s ease;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.16), var(--shadow-glow); }

.access-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.access-option { position: relative; }
.access-option input { position: absolute; opacity: 0; inset: 0; }
.access-option span {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
  border-radius: var(--radius-sm); cursor: pointer; transition: all .3s ease; background: var(--surface-2);
}
.access-option span b { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.access-option span small { font-size: 10.5px; color: var(--muted); }
.access-option input:checked + span { background: linear-gradient(145deg, #818cf8, var(--indigo)); color: #fff; box-shadow: var(--shadow-btn); transform: translateY(-2px); }
.access-option input:checked + span small { color: rgba(255,255,255,.72); }
.access-option input:focus-visible + span { outline: 3px solid rgba(99,102,241,.4); outline-offset: 3px; }
.access-option svg { width: 14px; height: 14px; }

.password-slot { display: none; }
.password-slot.show { display: grid; gap: 6px; }

.submit-row { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.submit-row .btn { flex: 1; }
.submit-meta { font-size: 10.5px; color: var(--muted); line-height: 1.5; max-width: 140px; }

.upload-result { display: none; }
.upload-result.show { display: block; }
.result-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.result-head .ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.result-head strong { font-size: 13.5px; }
.result-title { font-size: 15px; font-weight: 650; margin: 0 0 10px; letter-spacing: -.01em; }
.link-box {
  display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px;
  background: var(--surface-2); border-radius: var(--radius-sm); box-shadow: inset 0 2px 6px rgba(148,163,184,.12);
}
.link-box code {
  flex: 1; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.result-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.result-meta b { color: var(--ink-soft); font-weight: 600; }
.result-note {
  margin-top: 12px; padding: 11px 14px; border-radius: var(--radius-xs); background: var(--accent-soft);
  color: var(--accent-ink); font-size: 11.5px; line-height: 1.6;
}
.result-note a { text-decoration: underline; text-underline-offset: 2px; }

.recent { margin-top: 18px; }
.recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.recent-head h3 { margin: 0; font-size: 11px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.recent-empty { font-size: 11.5px; color: var(--muted); padding: 10px 0; }
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.recent-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.recent-list li:last-child { border-bottom: 0; }
.recent-list .r-title { font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list .r-time { font-size: 10px; color: var(--muted); font-family: var(--mono); flex: none; }
.recent-list .r-open { font-size: 11px; color: var(--accent); flex: none; }
.recent-list .r-open:hover { text-decoration: underline; }

/* Sections */
.section { padding: 92px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-kicker {
  font-size: 11.5px; letter-spacing: .02em; font-weight: 600;
  color: var(--accent-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-kicker::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--indigo); }
.section h2 { margin: 0 0 14px; font-size: clamp(27px, 3.2vw, 38px); letter-spacing: -.03em; line-height: 1.2; font-weight: 700; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .5s ease-in-out, box-shadow .5s ease-in-out;
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--indigo);
  transition: transform .5s ease-in-out, background .5s ease-in-out;
}
.feature:hover .feature-icon { transform: scale(1.1); background: #e0e7ff; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 6px 0 0; font-size: 16px; letter-spacing: -.01em; }
.feature p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.75; }
.feature .f-tag {
  margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .06em; color: var(--accent-ink); text-transform: uppercase;
}

/* Use cases */
.use-grid { grid-template-columns: repeat(3, 1fr); }
.usecase {
  background: var(--surface); border-radius: var(--radius); padding: 28px 30px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
  transition: transform .4s ease-in-out, box-shadow .4s ease-in-out;
}
.usecase:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.uc-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--indigo);
  width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft);
  display: grid; place-items: center;
}
.usecase h3 { margin: 4px 0 0; font-size: 15px; letter-spacing: -.01em; }
.usecase p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.75; }

/* Pain point: before / after */
.pain-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.pain-card {
  border-radius: var(--radius); padding: 30px 32px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-md);
}
.pain-before { background: linear-gradient(155deg, #fff8ed, var(--surface) 55%); }
.pain-after  { background: linear-gradient(155deg, var(--ok-soft), var(--surface) 55%); }
.pain-badge {
  align-self: flex-start; font-size: 10px; letter-spacing: .06em; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
}
.pain-before .pain-badge { background: var(--signal); color: #fff; box-shadow: 0 8px 20px rgba(245,158,11,.3); }
.pain-after .pain-badge { background: var(--ok); color: #fff; box-shadow: 0 8px 20px rgba(16,185,129,.28); }
.pain-card h3 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.pain-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }
.pain-card code { font-family: var(--mono); font-size: .88em; color: var(--ink-2); background: var(--mist); padding: 2px 6px; border-radius: 6px; }
.pain-arrow { font-size: 28px; color: var(--indigo); font-family: var(--mono); }
@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain-arrow { transform: rotate(90deg); justify-self: center; line-height: 1; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-copy h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.16; }
.split-copy p { margin: 0 0 12px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; }
.split-copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.split-copy li { display: flex; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.split-copy li svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 3px; }

.compare {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.compare-head, .compare-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; }
.compare-head { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.compare-head > div, .compare-row > div { padding: 16px 20px; font-size: 13px; }
.compare-head > div { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.compare-head .col-pro { color: var(--accent-ink); display: flex; align-items: center; gap: 6px; }
.compare-head .col-pro .mini { font-family: var(--mono); font-size: 9px; background: var(--indigo); color: #fff; padding: 3px 7px; border-radius: 8px; letter-spacing: .06em; }
.compare-row { border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: 0; }
.compare-row > div:first-child { color: var(--ink-soft); font-size: 12.5px; }
.compare-row .yes, .compare-row .no { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.compare-row .yes { color: var(--ok); }
.compare-row .no { color: var(--muted); }
.compare-row .yes svg, .compare-row .no svg { width: 14px; height: 14px; }
.compare-row .yes.pro { font-weight: 600; }

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq details:hover { transform: translateY(-2px); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  position: relative; width: 26px; height: 26px; flex: none; border-radius: 999px;
  background: var(--accent-soft); transition: background .3s ease;
}
.faq details[open] summary .plus { background: var(--indigo); }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: var(--indigo); border-radius: 2px; transition: transform .3s ease, background .3s ease;
}
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: #fff; }
.faq summary .plus::before { inset: 12px 6px; height: 2px; }
.faq summary .plus::after { inset: 6px 12px; width: 2px; }
.faq details[open] summary .plus::after { transform: scaleY(0); }
.faq details p { margin: 0; padding: 0 24px 22px; max-width: 66em; color: var(--ink-soft); font-size: 13.5px; line-height: 1.85; }
.faq details code { font-family: var(--mono); font-size: .92em; background: var(--mist); padding: 2px 6px; border-radius: 6px; }

/* CTA — Indigo 柔光渐变卡 */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(120deg, #eef2ff 0%, #e0e7ff 55%, #f5e8ff 100%); color: var(--ink);
  padding: 52px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  box-shadow: var(--shadow-md);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(99,102,241,.10) 1px, transparent 0) 0 0/20px 20px;
  mask-image: radial-gradient(70% 120% at 100% 0%, #000, transparent 70%);
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.03em; line-height: 1.2; position: relative; z-index: 1; }
.cta-band p { margin: 0; color: var(--ink-soft); font-size: 13.5px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 48px; margin-top: 88px; }
.foot-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand p { margin: 10px 0 0; font-size: 12px; color: var(--muted); max-width: 300px; line-height: 1.7; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-col { display: grid; gap: 7px; align-content: start; }
.foot-col b { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); font-weight: 500; margin-bottom: 2px; }
.foot-col a { font-size: 12.5px; color: var(--ink-soft); }
.foot-col a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); font-family: var(--mono); }
.foot-base a { color: var(--muted); text-decoration: none; }
.foot-base a:hover { color: var(--ink); text-decoration: underline; }

/* Auth + dashboard shell */
.shell { min-height: calc(100vh - 68px); padding: 40px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; line-height: 1.1; }
.page-head p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
.page-head .head-btns { display: flex; gap: 8px; }

.identity-bar {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--surface);
  border-radius: var(--radius-sm); margin-bottom: 24px; flex-wrap: wrap; box-shadow: var(--shadow-sm);
}
.id-avatar {
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: linear-gradient(145deg, #818cf8, var(--indigo)); color: #fff; flex: none;
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px; box-shadow: var(--shadow-btn);
}
.id-main { flex: 1 1 260px; min-width: 0; }
.id-main b { display: block; font-size: 13.5px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-main span { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.id-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: .03em; padding: 5px 10px;
  border-radius: 999px; background: var(--mist); color: var(--ink-soft);
}
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--signal-soft); color: #b45309; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--signal-soft); color: #92400e; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.notice svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.notice p { margin: 0; font-size: 12.5px; line-height: 1.65; }
.notice a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 10px; }
.toolbar h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.count-pill { font-family: var(--mono); font-size: 10.5px; background: var(--surface); border-radius: 999px; padding: 4px 10px; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.search {
  position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 14px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.search input {
  height: 42px; width: 220px; border: 0; border-radius: var(--radius-sm);
  padding: 0 14px 0 38px; background: var(--surface); font-size: 12.5px; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(99,102,241,.16), var(--shadow-glow); }

.site-list { display: grid; gap: 14px; }
.site-card {
  display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 16px; align-items: center;
  background: var(--surface); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.site-glyph {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft);
  display: grid; place-items: center; font-weight: 700; font-size: 16px; color: var(--indigo);
  overflow: hidden;
}
.site-glyph.locked { background: var(--signal-soft); color: #b45309; }
.site-main { min-width: 0; }
.site-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-title-line b { font-size: 14px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42em; }
.badge {
  font-size: 10px; font-family: var(--mono); letter-spacing: .03em; padding: 4px 9px;
  border-radius: 999px; color: var(--ink-soft); background: var(--mist);
  display: inline-flex; align-items: center; gap: 4px; flex: none;
}
.badge.pub { color: var(--ok); background: var(--ok-soft); }
.badge.pwd { color: #b45309; background: var(--signal-soft); }
.badge.anon { color: var(--accent-ink); background: var(--accent-soft); }
.site-url { margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-url a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.site-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 11px; color: var(--muted); }
.site-meta span { display: inline-flex; align-items: center; gap: 4px; }
.site-meta svg { width: 12px; height: 12px; }
.site-actions { display: flex; gap: 6px; flex: none; }
.site-actions .btn { height: 32px; padding: 0 10px; font-size: 12px; }

.empty-state {
  text-align: center; padding: 64px 24px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.empty-state .e-icon {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: var(--radius-sm); background: var(--accent-soft);
  display: grid; place-items: center; color: var(--indigo);
}
.empty-state h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 12.5px; }

.skeleton { background: linear-gradient(90deg, #f1f2f5 25%, #e8eaee 37%, #f1f2f5 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Auth */
.auth-wrap { width: min(980px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: stretch; }
.auth-panel {
  background: var(--surface); border-radius: var(--radius);
  padding: 38px; box-shadow: var(--shadow-md);
}
.auth-panel h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.auth-panel .sub { margin: 0 0 24px; color: var(--ink-soft); font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; box-shadow: inset 0 2px 6px rgba(148,163,184,.1); }
.auth-tabs button {
  height: 38px; border: 0; background: transparent; border-radius: 12px; font-size: 12.5px;
  font-weight: 600; color: var(--muted); transition: all .3s ease;
}
.auth-tabs button.active { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.auth-form { display: grid; gap: 14px; }
.auth-form .hint { font-size: 11px; color: var(--muted); }
.auth-form .error {
  display: none; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--danger-soft);
  color: var(--danger); font-size: 12px;
}
.auth-form .error.show { display: block; }
.auth-side {
  border-radius: var(--radius); padding: 32px; background: linear-gradient(150deg, #818cf8 0%, var(--indigo) 55%, #7c3aed 100%); color: #fff;
  display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-btn);
}
.auth-side::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0) 0 0/18px 18px;
  mask-image: radial-gradient(80% 90% at 100% 0%, #000, transparent 70%);
}
.auth-side h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; position: relative; }
.auth-side ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; position: relative; }
.auth-side li { display: flex; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.85); line-height: 1.6; }
.auth-side li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #a7f3d0; }
.auth-side .side-foot { margin-top: auto; padding-top: 20px; font-size: 10.5px; color: rgba(255,255,255,.6); font-family: var(--mono); position: relative; }
.auth-side a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.device-note {
  display: flex; gap: 11px; padding: 13px 15px; background: var(--accent-soft);
  border-radius: var(--radius-sm); font-size: 11.5px; color: var(--accent-ink); line-height: 1.6; margin-bottom: 22px;
}
.device-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.device-note code { font-family: var(--mono); font-size: 10.5px; }

/* Modal */
.overlay {
  position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 20px;
  background: rgba(30, 41, 59, .38); backdrop-filter: blur(5px);
}
.overlay.open { display: grid; animation: fadeIn .3s ease; }
.modal {
  width: min(460px, 100%); background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 32px 70px rgba(99,102,241,.25); padding: 28px; animation: popIn .35s ease;
}
.modal h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.02em; }
.modal .modal-sub { margin: 0 0 18px; font-size: 12.5px; color: var(--muted); }
.modal .modal-body { display: grid; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal .danger-copy { font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translate(-50%, 12px);
  background: var(--ink); color: #fff; font-size: 12.5px; padding: 12px 20px; border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(99,102,241,.28); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.hide { display: none !important; }

/* Footer minimal for app pages */
.mini-foot { padding: 24px 0 40px; font-size: 11px; color: var(--muted); font-family: var(--mono); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-lede { max-width: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { order: 2; }
  .site-card { grid-template-columns: 40px minmax(0,1fr); }
  .site-actions { grid-column: 2; justify-content: flex-start; }
  .site-glyph { width: 40px; height: 40px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .head-inner { height: 60px; }
  .nav { display: none; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .compare-head > div, .compare-row > div { padding: 12px 10px; font-size: 12px; }
  .compare-head, .compare-row { grid-template-columns: 1.1fr .9fr .9fr; }
  .upload-card { padding: 18px; }
  .brand-sub { display: none; }
  .head-user { display: none; }
  .toolbar { align-items: stretch; }
  .search, .search input { width: 100%; }
  .toast { bottom: 18px; }
  .auth-panel { padding: 24px; }
}
@media (max-width: 520px) {
  .submit-row { flex-direction: column; align-items: stretch; }
  .submit-meta { max-width: none; }
  .result-actions .btn { flex: 1; }
  .page-head { align-items: flex-start; }
  .identity-bar { gap: 12px; }
  .id-chips { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Device identity demo card — Indigo 柔光渐变 */
.device-card {
  border-radius: var(--radius); background: linear-gradient(150deg, #818cf8 0%, var(--indigo) 55%, #7c3aed 100%); color: #fff; padding: 28px;
  font-family: var(--mono); box-shadow: var(--shadow-btn); position: relative; overflow: hidden;
}
.device-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0) 0 0/18px 18px;
  mask-image: radial-gradient(90% 100% at 100% 0%, #000, transparent 72%);
}
.dc-head {
  display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .14em;
  color: rgba(255,255,255,.7); padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.16);
  margin-bottom: 6px; position: relative; z-index: 1;
}
.dc-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 4px rgba(110,231,183,.2); }
.dc-status { margin-left: auto; color: #a7f3d0; letter-spacing: .04em; font-size: 9.5px; background: rgba(167,243,208,.16); padding: 3px 8px; border-radius: 999px; }
.dc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); position: relative; z-index: 1;
}
.dc-row span { font-size: 10.5px; color: rgba(255,255,255,.6); letter-spacing: .02em; flex: none; }
.dc-row b { font-size: 11px; font-weight: 500; color: #fff; text-align: right; letter-spacing: .01em; }
.dc-foot {
  margin-top: 18px; font-size: 11px; color: #a7f3d0; letter-spacing: .04em; position: relative; z-index: 1;
}
@media (max-width: 720px) { .dc-row b { font-size: 10px; } }

.form-error {
  display: none; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--danger-soft);
  color: var(--danger); font-size: 12px; line-height: 1.6;
}
.form-error.show { display: block; }

/* Requirement projects */
.proj-toolbar { margin-top: 4px; }
.toolbar-note { font-size: 11.5px; color: var(--muted); }
.btn-icon-svg { width: 14px; height: 14px; flex: none; }

.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.proj-card {
  background: var(--surface); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm);
  display: grid; gap: 12px; transition: transform .3s ease, box-shadow .3s ease;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.proj-card-top { display: flex; gap: 12px; align-items: flex-start; }
.proj-glyph {
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--indigo);
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; flex: none;
}
.proj-card-main { min-width: 0; flex: 1; }
.proj-name-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proj-name-line b { font-size: 14px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 20em; }
.proj-url { margin-top: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-url a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.proj-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.proj-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-actions .btn { height: 30px; padding: 0 10px; font-size: 12px; }

.proj-empty {
  display: flex; gap: 12px; align-items: center; padding: 18px; margin-bottom: 26px;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 14px;
}
.proj-empty svg { width: 26px; height: 26px; color: var(--muted); flex: none; }
.proj-empty b { display: block; font-size: 13px; color: var(--ink); }
.proj-empty span { font-size: 12px; color: var(--muted); }

.modal-lg { width: min(880px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
#projectFormOverlay { z-index: 70; }
.proj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.proj-head h2 { margin: 0 0 4px; }
.proj-head .modal-sub { margin: 0 0 16px; }
.proj-share {
  display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px;
  background: var(--surface-2); border-radius: var(--radius-sm); box-shadow: inset 0 2px 6px rgba(148,163,184,.12); flex-wrap: wrap;
}
.proj-share code { flex: 1 1 260px; min-width: 0; font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.proj-tool-group { display: flex; gap: 6px; align-items: center; }
.input-sm { height: 34px; font-size: 12.5px; border-radius: 8px; }
#newFolderName { width: 150px; }
#addSiteSelect { width: 200px; }
.proj-hint { margin: 12px 0 8px; font-size: 11.5px; color: var(--muted); line-height: 1.65; }
.proj-tree {
  border-radius: var(--radius-sm); background: var(--surface-2); padding: 10px; box-shadow: inset 0 2px 8px rgba(148,163,184,.1);
  max-height: 46vh; overflow: auto;
}
.tree-children { padding-left: 14px; }
.tree-children.root { padding-left: 0; }
.tree-branch { border-radius: 10px; }
.tree-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px;
  cursor: grab; border: 1px solid transparent;
}
.tree-row:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.tree-row.dragging { opacity: .45; }
.tree-row.drop-hot, .tree-children.drop-hot {
  background: var(--accent-soft); outline: 2px dashed var(--indigo); outline-offset: -2px; border-radius: var(--radius-xs);
}
.node-glyph {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .02em; border-radius: 8px;
  padding: 5px 8px; flex: none; background: var(--mist); color: var(--ink-soft);
}
.node-glyph.dir { background: var(--accent-soft); color: var(--accent-ink); }
.node-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-row.dir .node-name { font-weight: 600; }
.node-count {
  font-family: var(--mono); font-size: 10px; color: var(--muted); background: var(--surface);
  box-shadow: var(--shadow-sm); border-radius: 999px; padding: 3px 8px; flex: none;
}
.node-lock {
  font-family: var(--mono); font-size: 9.5px; color: #b45309; background: var(--signal-soft);
  border-radius: 8px; padding: 3px 7px; flex: none;
}
.node-actions { display: flex; gap: 4px; flex: none; opacity: .35; transition: opacity .15s ease; }
.tree-row:hover .node-actions, .tree-row:focus-within .node-actions { opacity: 1; }
.node-btn {
  border: 0; background: transparent; color: var(--ink-soft); font-size: 11.5px;
  padding: 3px 6px; border-radius: 6px; text-decoration: none; cursor: pointer;
}
.node-btn:hover { background: rgba(20,23,31,.06); color: var(--ink); }
.node-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.inline-input {
  flex: 1; min-width: 0; height: 28px; border: 0; border-radius: 10px;
  padding: 0 10px; font-size: 13px; background: #fff;
  box-shadow: 0 0 0 3px rgba(99,102,241,.22), var(--shadow-sm);
}
.tree-empty { margin: 0; padding: 20px 12px; text-align: center; color: var(--muted); font-size: 12px; }
.tree-root-drop {
  margin-top: 8px; padding: 10px; border: 1.5px dashed var(--line-strong); border-radius: 9px;
  text-align: center; font-size: 11.5px; color: var(--muted);
}
.tree-root-drop.drop-hot { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

@media (max-width: 960px) {
  .proj-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .proj-tools { align-items: stretch; }
  .proj-tool-group { flex: 1 1 100%; }
  .proj-tool-group .input { flex: 1; width: auto; }
  .proj-share { align-items: stretch; }
  .proj-share .btn { flex: 1; }
  .node-actions { opacity: 1; }
  .modal-lg { padding: 18px; }
  .proj-tree { max-height: 52vh; }
}
