/* ==========================================================================
   报猪小助手 · 互助平台视觉系统
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --brand: #3563ff;
  --brand-2: #11b8c8;
  --brand-3: #ff6a55;
  --pdd: #ef4444;
  --pdd-light: #fff1f0;
  --jd: #e4393c;
  --jd-light: #fff5f5;
  --orange: #ff6b1a;
  --orange-light: #fff4ed;
  --green: #10b981;
  --green-light: #eafaf4;
  --blue: #3563ff;
  --blue-light: #edf3ff;
  --accent: var(--brand);
  --accent-2: var(--brand-2);
  --accent-soft: #edf3ff;
  --accent-line: #ccd8ff;
  --accent-text: #284bd6;
  --accent-shadow: rgba(53, 99, 255, .22);
  --ink: #111827;
  --text: #334155;
  --muted: #64748b;
  --subtle: #94a3b8;
  --line: rgba(148, 163, 184, .26);
  --line-strong: rgba(100, 116, 139, .24);
  --surface: rgba(255, 255, 255, .82);
  --surface-strong: #fff;
  --surface-soft: rgba(248, 250, 252, .82);
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 16px 42px rgba(31, 41, 55, .08);
  --shadow-sm: 0 8px 24px rgba(31, 41, 55, .07);
  --shadow-focus: 0 0 0 4px rgba(53, 99, 255, .12);
}

body.page-pdd {
  --accent: var(--pdd);
  --accent-2: #ff8a3d;
  --accent-soft: var(--pdd-light);
  --accent-line: #ffd2cc;
  --accent-text: #c4251f;
  --accent-shadow: rgba(239, 68, 68, .22);
}
body.page-jd {
  --accent: var(--jd);
  --accent-2: #ff7a45;
  --accent-soft: var(--jd-light);
  --accent-line: #ffd7d7;
  --accent-text: #b42318;
  --accent-shadow: rgba(228, 57, 60, .22);
}
body.page-tb {
  --accent: #ef4444;
  --accent-2: #f59e0b;
  --accent-soft: #fff5f0;
  --accent-line: #ffd8c2;
  --accent-text: #b83b18;
  --accent-shadow: rgba(239, 68, 68, .2);
}
body.page-eleme {
  --accent: #5b5cf6;
  --accent-2: #ff6b6b;
  --accent-soft: #f0f4ff;
  --accent-line: #cfd8ff;
  --accent-text: #4147c5;
  --accent-shadow: rgba(91, 92, 246, .2);
}
html { min-height: 100%; }
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 12%, rgba(91, 115, 255, .18), transparent 30%),
    radial-gradient(circle at 85% 8%, rgba(17, 184, 200, .18), transparent 32%),
    radial-gradient(circle at 72% 88%, rgba(255, 106, 85, .14), transparent 30%),
    linear-gradient(135deg, #eef3ff 0%, #f7fbff 44%, #edf8fb 100%);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 68px 0 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(93, 118, 161, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 118, 161, .08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.12));
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

/* Header */
.nav-root {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  background: rgba(247, 250, 255, .78);
  backdrop-filter: blur(18px);
}
.nav-inner {
  max-width: 1180px;
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}
.nav-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(135deg, #0f9aa8, #11b8c8 58%, #ffc247);
  box-shadow: 0 10px 22px rgba(17, 184, 200, .22);
}
.nav-brand-name {
  display: block;
  font-size: 16px;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.15;
}
.nav-brand-host {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
}
.nav-list {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #40506a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .76);
  border-color: rgba(148, 163, 184, .22);
}
.nav-link.active {
  color: #284bd6;
  background: #eaf0ff;
  border-color: #d6e0ff;
}

/* Layout */
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}
.tool-page { max-width: 1060px; }
.stack { display: grid; gap: 16px; }
.tool-grid {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.action-row > .btn { flex-shrink: 0; }
.action-row.grow > .btn { flex: 1; }
.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-nowrap { flex-wrap: nowrap; }

/* Home */
.home-shell {
  min-height: calc(100vh - 148px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 58px;
  padding: 34px 0 24px;
}
.home-copy { max-width: 690px; }
.hero-eyebrow,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #536dff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.hero-title {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}
.brand-gradient {
  background: linear-gradient(100deg, #3a6cff, #19c4d0 52%, #ff7b64);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-title {
  background: linear-gradient(100deg, #3a6cff, #19c4d0 52%, #ff7b64);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nowrap { white-space: nowrap; }
.hero-lead {
  max-width: 620px;
  color: #56657c;
  font-size: 17px;
  line-height: 1.9;
}
.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 28px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe4ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: #466078;
  font-size: 12px;
  font-weight: 800;
}
.spot-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.spot {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-left: 5px solid var(--spot-color, var(--brand));
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 22%, var(--spot-soft, rgba(53,99,255,.12)), transparent 40%);
  opacity: .75;
  pointer-events: none;
}
.spot:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 99, 255, .24);
  box-shadow: 0 22px 48px rgba(31, 41, 55, .12);
}
.spot-pdd { --spot-color: var(--pdd); --spot-soft: rgba(239,68,68,.12); }
.spot-jd { --spot-color: #ff6b55; --spot-soft: rgba(228,57,60,.12); }
.spot-tb { --spot-color: #ef4444; --spot-soft: rgba(245,158,11,.14); }
.spot-eleme { --spot-color: #5b5cf6; --spot-soft: rgba(17,184,200,.14); }
.spot-icon,
.feature-icon {
  width: 52px;
  height: 52px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--spot-icon-bg, #eef3ff);
  color: var(--spot-color, var(--brand));
  font-size: 23px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}
.spot-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.spot-kicker {
  color: #738198;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
}
.spot-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}
.spot-desc {
  color: #52627a;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spot-arrow {
  position: relative;
  z-index: 1;
  color: #40506a;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}
.home-preview {
  align-self: center;
}
.preview-window {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: var(--radius);
  background: rgba(255,255,255,.74);
  box-shadow: 0 28px 72px rgba(31, 41, 55, .14);
  overflow: hidden;
}
.window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  background: rgba(241, 245, 249, .78);
}
.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff6b6b;
}
.window-dot:nth-child(2) { background: #f8bd3f; }
.window-dot:nth-child(3) { background: #35c66b; }
.window-title {
  margin-left: auto;
  margin-right: auto;
  color: #738198;
  font-size: 12px;
  font-weight: 850;
}
.preview-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.preview-card {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(238,243,255,.58));
}
.preview-card.pdd { border-color: #ffd4cf; background: linear-gradient(135deg, #fff8f8, #fff1f0); }
.preview-card.jd { border-color: #ffdcdc; background: linear-gradient(135deg, #fffafa, #fff3f3); }
.preview-card.tb { border-color: #ffddc7; background: linear-gradient(135deg, #fff8f0, #fff2e8); }
.preview-card.eleme { border-color: #d9e2ff; background: linear-gradient(135deg, #f7faff, #f2f4ff); }
.preview-title {
  margin-bottom: 8px;
  color: #4b5d75;
  font-size: 12px;
  font-weight: 900;
}
.preview-line {
  height: 7px;
  margin-top: 7px;
  border-radius: 99px;
  background: rgba(100, 116, 139, .18);
}
.preview-line.short { width: 64%; }
.preview-line.mid { width: 78%; }
.preview-pill {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(53, 99, 255, .1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

/* Cards and feature sections */
.card,
.panel-card,
.glass-card {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card,
.panel-card { padding: 18px; margin-bottom: 16px; }
.glass-card { padding: 18px; }
.page-hero {
  margin: 6px 0 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 18%, var(--accent-shadow), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
  box-shadow: var(--shadow);
}
.page-hero h1 {
  color: var(--ink);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: 0;
}
.page-hero p {
  margin-top: 8px;
  max-width: 650px;
  color: #52627a;
  font-size: 15px;
}
.page-hero-side {
  min-width: 190px;
  display: grid;
  gap: 10px;
}
.hero-stat {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
}
.hero-stat strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}
.hero-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.panel-head,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-title,
.section-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}
.panel-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.section-count {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}
.available-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82)),
    radial-gradient(circle at 50% 0%, var(--accent-shadow), transparent 48%);
  box-shadow: 0 20px 48px rgba(31, 41, 55, .1);
}
.available-title {
  font-size: 24px;
  letter-spacing: 0;
}
.available-title .section-count {
  margin-left: 4px;
  color: var(--subtle);
  font-size: 14px;
}
.available-subtitle {
  margin-top: 8px;
  max-width: 540px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.75;
}
.available-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(88px, 112px) minmax(180px, 1fr);
  gap: 12px;
}
.available-actions > .btn { width: 100%; }
.btn-refresh-soft {
  min-height: 52px;
  border-color: rgba(53, 99, 255, .18);
  background: rgba(255,255,255,.8);
  color: #52627a;
  font-size: 14px;
}
.btn-main-pick {
  min-height: 56px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 18px 34px var(--accent-shadow);
}
.btn-main-pick:hover { box-shadow: 0 22px 40px var(--accent-shadow); }
.status-strip {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
}
.desc-list {
  display: grid;
  gap: 8px;
  list-style: none;
}
.desc-item {
  color: #52627a;
  font-size: 13px;
}
.desc-item strong { color: var(--ink); }
.quiet-note {
  color: var(--subtle);
  font-size: 12px;
}
.danger-note { color: #dc2626; }
.field-label,
.meta-label {
  display: block;
  margin-bottom: 6px;
  color: #52627a;
  font-size: 13px;
  font-weight: 850;
}
.field-help {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
}
.form-footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Buttons and inputs */
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .62; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 22px var(--accent-shadow);
}
.btn-primary:hover { box-shadow: 0 16px 28px var(--accent-shadow); }
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #fb7185);
  color: #fff;
}
.btn-ghost {
  border-color: rgba(148, 163, 184, .24);
  background: rgba(255,255,255,.66);
  color: #43536a;
}
.btn-ghost:hover {
  border-color: rgba(53, 99, 255, .2);
  background: #fff;
}
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12px; }
.btn-xs { min-height: 28px; padding: 0 10px; border-radius: 6px; font-size: 11px; }
.input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.86);
  color: var(--ink);
  padding: 12px 13px;
  font-size: 15px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.input:focus {
  border-color: var(--accent-line);
  background: #fff;
  box-shadow: var(--shadow-focus);
}
.input::placeholder { color: #a8b3c3; }
textarea.input { min-height: 96px; resize: vertical; }
.input-code {
  flex: 1;
  min-width: 180px;
  text-align: center;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 4px;
}
.input-compact { max-width: 132px; }
.submit-wide { width: 100%; margin-top: 12px; min-height: 48px; }

/* Tags and chips */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.tag-green { background: var(--green-light); color: #047857; }
.tag-blue { background: var(--blue-light); color: #284bd6; }
.tag-red { background: var(--jd-light); color: #b42318; }
.tag-orange { background: var(--orange-light); color: #c2410c; }
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.chip:hover { background: #fff; }
.chip.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
}

/* Lists */
.code-list,
.team-list { list-style: none; }
.code-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, .16);
}
.code-item:first-child { border-top: 0; }
.code-text {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.5px;
  overflow-wrap: anywhere;
}
.code-meta {
  color: var(--subtle);
  font-size: 11px;
  white-space: nowrap;
}
.empty-tip {
  padding: 28px 14px;
  color: var(--subtle);
  text-align: center;
  font-size: 13px;
}
.empty-tip-strong {
  margin: 18px 0 8px;
  padding: 34px 18px;
  border: 1px dashed rgba(148, 163, 184, .34);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, .68);
}
.empty-tip-strong strong {
  display: block;
  color: #52627a;
  font-size: 18px;
  font-weight: 950;
}
.empty-tip-strong span {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}
.soft-details {
  margin-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, .16);
  padding-top: 12px;
}
details summary {
  color: #52627a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}
.muted-list { opacity: .62; }

/* Taobao team cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.stat-item {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.64);
  text-align: center;
}
.stat-num {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
}
.stat-lbl {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 850;
}
.tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  box-shadow: var(--shadow-sm);
}
.tab {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #52627a;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 20px var(--accent-shadow);
}
.team-item {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
}
.team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.team-link {
  margin-bottom: 9px;
  color: #52627a;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-progress { margin-bottom: 9px; }
.team-progress-bar {
  height: 8px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .22);
  overflow: hidden;
}
.team-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .25s ease;
}
.team-progress-info {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.team-member-item {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(100, 116, 139, .1);
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}
.team-member-init {
  background: #fff2c7;
  color: #9a6700;
}
.team-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.team-layout {
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}
.team-board {
  min-height: 420px;
}
.team-panel[hidden] { display: none; }
.team-tabs {
  margin-bottom: 16px;
}
.smart-panel {
  max-width: 520px;
  margin: 42px auto;
  text-align: center;
}
.smart-panel .submit-wide {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.team-size-row {
  align-items: flex-start;
  flex-direction: column;
}
.team-size-row .meta-label {
  margin-bottom: 0;
}
.guard-strip {
  line-height: 1.7;
}
.team-owner {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.team-owner strong {
  min-width: 0;
  max-width: 160px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-time {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.team-item {
  border-left: 4px solid var(--accent);
  box-shadow: 0 10px 28px rgba(31, 41, 55, .06);
}
.team-item .btn-xs {
  min-width: 58px;
}
.mine-compact .team-item {
  background: rgba(248, 250, 252, .72);
}
.qr-drop {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 24px 16px;
  border: 2px dashed rgba(91, 92, 246, .32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(240,244,255,.78));
  color: #50607a;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.qr-drop:hover,
.qr-drop.is-dragover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
}
.qr-drop strong {
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 950;
}
.qr-drop span {
  font-size: 12px;
}
.qr-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
}
.manual-qr {
  margin-top: 12px;
}
.manual-qr textarea {
  margin-top: 10px;
}

/* Modal and toast */
.cg-toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  z-index: 9999;
  max-width: min(88vw, 360px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .92);
  color: #fff;
  box-shadow: 0 18px 38px rgba(17, 24, 39, .24);
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.cg-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(10px);
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: min(100%, 430px);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 76px rgba(15, 23, 42, .24);
}
.modal-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}
.modal-body {
  margin-bottom: 16px;
  color: #52627a;
  font-size: 13px;
}
.modal-body p + p { margin-top: 8px; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.locked-box,
.copy-box {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: var(--radius);
  background: rgba(241, 245, 249, .72);
  text-align: center;
}
.locked-label {
  display: block;
  margin-bottom: 4px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 850;
}
#locked-raw {
  color: var(--ink);
  font-weight: 950;
  overflow-wrap: anywhere;
}
.locked-code { font-size: 28px; letter-spacing: 5px; font-family: "SF Mono", Menlo, Consolas, monospace; }
.locked-text { font-size: 14px; line-height: 1.6; }

/* Footer */
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 26px;
  color: #738198;
  font-size: 12px;
  text-align: center;
}

input[type="number"]::-webkit-inner-spin-button { opacity: 1; }

@media (max-width: 940px) {
  .home-shell,
  .tool-grid,
  .page-hero {
    grid-template-columns: 1fr;
  }
  .home-shell {
    min-height: 0;
    gap: 26px;
    padding-top: 18px;
  }
  .home-preview { order: 2; }
  .page-hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 720px) {
  body::before { inset-top: 62px; background-size: 38px 38px; }
  .nav-inner {
    min-height: 62px;
    padding: 9px 14px;
    gap: 12px;
  }
  .nav-brand-icon { width: 36px; height: 36px; }
  .nav-brand-name { font-size: 15px; }
  .nav-list {
    justify-content: flex-start;
    padding-bottom: 1px;
  }
  .nav-link {
    min-height: 32px;
    padding: 0 11px;
    font-size: 13px;
  }
  .container {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }
  .hero-title { font-size: 38px; }
  .hero-lead { font-size: 15px; }
  .spot {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 0;
    padding: 15px;
  }
  .spot-arrow {
    grid-column: 2;
    justify-self: start;
    margin-top: -4px;
  }
  .spot-icon,
  .feature-icon { width: 46px; height: 46px; }
  .page-hero { padding: 18px; }
  .page-hero-side,
  .stats-row,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-head,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .mobile-nowrap { flex-wrap: wrap; }
  .action-row > .input,
  .action-row > .btn {
    width: 100%;
  }
  .available-actions {
    grid-template-columns: minmax(82px, .36fr) minmax(0, 1fr);
  }
  .available-actions > .btn { width: 100%; }
  .available-card { padding: 20px; }
  .available-title { font-size: 23px; }
  .input-code {
    min-width: 0;
    width: 100%;
  }
  .code-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .code-text {
    width: 100%;
    flex-basis: 100%;
  }
  .tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .tab { padding: 0 10px; }
}

@media (max-width: 460px) {
  .nav-brand-host { display: none; }
  .hero-title { font-size: 34px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero-side,
  .stats-row,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .preview-body { padding: 13px; }
  .locked-code { font-size: 24px; letter-spacing: 3px; }
}
