:root {
  --orange: #ff6a00;
  --orange-hover: #e85d00;
  --orange-2: #ff8a3d;
  --orange-soft: #ffb15c;
  --orange-pale: #fff7f0;
  --card: #ffffff;
  --ink: #172033;
  --text: #4b5563;
  --muted: #7b8491;
  --border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --canvas: #f8fafc;
  --shadow: 0 14px 40px rgba(23, 32, 51, 0.08);
  --shadow-soft: 0 8px 24px rgba(23, 32, 51, 0.06);
  --radius: 18px;
  --sidebar: 252px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--canvas);
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
.button {
  min-height: 44px;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.25;
}

.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;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.24);
}

.button-primary:hover {
  background: var(--orange-hover);
}

.button-secondary {
  color: var(--orange-hover);
  background: #fff;
  border-color: var(--border);
}

.button-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.button-danger {
  color: var(--danger);
  background: #fff2f2;
  border-color: #ffd7d7;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(145deg, var(--orange-soft), var(--orange));
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.28);
  transform: rotate(-6deg);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  transform: rotate(6deg);
}

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 18px;
  color: #7c3900;
  background: #fff0df;
  border-bottom: 1px solid #ffd2aa;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.demo-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 106, 0, 0.12);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-demo {
  color: #994400;
  background: #fff0df;
}

.status-success,
.status-healthy,
.status-on_sale {
  color: #087a59;
  background: #e8fbf4;
}

.status-warning,
.status-low,
.status-critical {
  color: #9a5700;
  background: #fff5dc;
}

.status-danger,
.status-out,
.status-paused {
  color: #b42323;
  background: #fff0f0;
}

.status-neutral,
.status-draft {
  color: #586273;
  background: #f1f3f6;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.muted {
  color: var(--muted);
}

.orange-text {
  color: var(--orange);
}

:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .demo-banner {
    align-items: flex-start;
    font-size: 13px;
  }
}
