:root {
  --bg: #edf3fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --sidebar: #0f172a;
  --line: #d9e3f0;
  --text: #0f172a;
  --muted: #64748b;
  --blue: #2563eb;
  --teal: #0f766e;
  --slate: #475569;
  --amber-bg: #fff7ed;
  --amber-line: #fdba74;
  --amber-text: #9a3412;
  --red-bg: #fef2f2;
  --red-line: #fca5a5;
  --red-text: #991b1b;
  --green-bg: #ecfdf5;
  --green-text: #047857;
  --indigo-bg: #eef2ff;
  --indigo-text: #3730a3;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 22%),
    linear-gradient(180deg, #f6f9fe 0%, #eaf1fb 100%);
  color: var(--text);
  min-height: 100vh;
  padding: 24px;
}

.prototype-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

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

.screen-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.screen-rail a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
}

.screen-rail a.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.canvas {
  width: 1440px;
  max-width: 100%;
  min-height: 960px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 220px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111c33 100%);
  color: #fff;
  padding: 26px 16px;
}

.brand {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.brand-sub {
  color: #8da0bf;
  font-size: 12px;
  margin-bottom: 28px;
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-item {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 14px;
  color: #c9d5e8;
  font-size: 15px;
  border: 1px solid transparent;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-rows: 72px 1fr;
}

.topbar {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px 0 32px;
  border-bottom: 1px solid #e7edf6;
}

.page-role {
  font-size: 22px;
  font-weight: 800;
  margin-right: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ai-search {
  flex: 1;
  min-width: 220px;
  background: var(--surface-soft);
  border: 1px solid #d5dfec;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  margin-left: auto;
}

.workspace-body {
  padding: 26px 32px 32px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.metric-title {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.metric-value {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 8px;
}

.metric-sub {
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.btn,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
}

.btn-link.secondary { background: var(--teal); }
.btn-link.muted { background: var(--slate); }
.btn-link.alert { background: #dc2626; }

.panels-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.stack {
  display: grid;
  gap: 18px;
}

.callout {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid transparent;
}

.callout h3,
.card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  white-space: pre-line;
}

.warn {
  background: var(--amber-bg);
  border-color: var(--amber-line);
}

.warn .copy,
.warn h3 {
  color: var(--amber-text);
}

.danger {
  background: var(--red-bg);
  border-color: var(--red-line);
}

.danger .copy,
.danger h3 {
  color: var(--red-text);
}

.indigo {
  background: var(--indigo-bg);
  border-color: #c7d2fe;
}

.indigo .copy,
.indigo h3 {
  color: var(--indigo-text);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

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