:root {
  --ink: #17211c;
  --muted: #66736c;
  --line: #e3e8e4;
  --paper: #f4f6f4;
  --white: #fff;
  --green: #125a43;
  --green-soft: #dff0e8;
  --orange: #e76f35;
  --red: #c94343;
  --shadow: 0 16px 44px rgba(19, 38, 29, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.topbar { min-height: 68px; display: flex; align-items: center; gap: 24px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 850; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-family: Georgia, serif; }
.product-name { display: flex; flex-direction: column; padding-left: 24px; border-left: 1px solid var(--line); }
.product-name span { color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.prototype-badge { padding: 7px 11px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 800; }
.site-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.demo-notice { padding: 10px 28px; color: #695328; background: #fff4d9; border-bottom: 1px solid #f0dfb8; font-size: 13px; text-align: center; }
.app-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: calc(100vh - 112px); }
.sidebar { position: sticky; top: 0; align-self: start; min-height: calc(100vh - 112px); display: flex; flex-direction: column; gap: 6px; padding: 24px 14px; border-right: 1px solid var(--line); background: #fff; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; color: #55625b; font-size: 14px; }
.sidebar a span { width: 22px; color: #78847d; text-align: center; }
.sidebar a:hover, .sidebar a.active { color: var(--green); background: var(--green-soft); font-weight: 750; }
.workspace { width: min(1400px, 100%); min-width: 0; margin-inline: auto; padding: 34px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 4px 0 5px; font-size: 34px; letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); }
.eyebrow { margin: 0; color: var(--orange) !important; font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.heading-actions, .dialog-actions { display: flex; gap: 10px; }
.button { min-height: 42px; padding: 0 16px; border: 1px solid var(--green); border-radius: 9px; cursor: pointer; font-weight: 750; }
.button.primary { color: #fff; background: var(--green); }
.button.secondary { color: var(--green); background: #fff; }
.button:hover { transform: translateY(-1px); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.metrics article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(19,38,29,.035); }
.metrics span, .metrics small { display: block; color: var(--muted); }
.metrics strong { display: block; margin: 8px 0 6px; font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.metrics small { font-size: 12px; }
.panel { min-width: 0; margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 6px 24px rgba(19,38,29,.035); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-heading h2 { margin: 3px 0 0; font-size: 21px; }
.panel-heading p { color: var(--muted); }
.live-dot, .panel-hint { color: var(--muted); font-size: 12px; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #23a46b; }
.chart { height: 210px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 18px; padding: 24px 12px 0; border-bottom: 1px solid var(--line); }
.bar-group { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar-value { color: var(--muted); font-size: 11px; }
.bar { width: min(52px, 72%); min-height: 5px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #27a578, var(--green)); transition: height .3s ease; }
.bar-label { margin-bottom: -25px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
select, input { min-height: 40px; padding: 8px 10px; border: 1px solid #ccd5cf; border-radius: 8px; background: #fff; color: var(--ink); }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
th { padding: 10px 12px; color: #718078; background: #f7f9f7; text-align: left; font-size: 11px; letter-spacing: .05em; }
td { padding: 13px 12px; border-bottom: 1px solid #edf0ee; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.pill.pending, .pill.low { color: #9a5817; background: #fff0d6; }
.pill.shipped { color: #295d93; background: #e8f2fc; }
.pill.done, .pill.ok { color: #176547; background: #dff1e9; }
.pill.critical { color: #a52d2d; background: #fde5e5; }
.table-action { padding: 5px 9px; border: 1px solid #b9c9c0; border-radius: 7px; color: var(--green); background: #fff; cursor: pointer; font-size: 11px; }
.architecture-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.architecture-flow article { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf8; }
.architecture-flow article span { color: var(--orange); font-weight: 850; }
.architecture-flow article strong { display: block; margin: 14px 0 6px; }
.architecture-flow article p { margin: 0; color: var(--muted); font-size: 13px; }
.architecture-flow i { color: #98a49e; font-style: normal; }
.roadmap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 14px; border-radius: 10px; background: var(--green-soft); font-size: 12px; }
.roadmap strong { margin-right: 8px; color: var(--green); }
.roadmap span { padding: 4px 8px; border-radius: 6px; background: #fff; }
dialog { width: min(480px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 90px rgba(16,35,26,.25); }
dialog::backdrop { background: rgba(17,28,22,.55); backdrop-filter: blur(3px); }
dialog form, dialog > div { display: grid; gap: 16px; padding: 26px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-heading h2 { margin: 3px 0; }
.icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 28px; }
dialog label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.dialog-actions { justify-content: flex-end; }
.form-error { min-height: 20px; margin: 0; color: var(--red); font-size: 12px; }
footer { padding: 24px; color: var(--muted); text-align: center; font-size: 12px; }
@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; min-height: 0; flex-direction: row; overflow-x: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar a { white-space: nowrap; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .architecture-flow { grid-template-columns: 1fr 1fr; }
  .architecture-flow i { display: none; }
}
@media (max-width: 650px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .product-name { padding-left: 10px; }
  .top-actions { width: 100%; margin-left: 0; }
  .prototype-badge { flex: 1; text-align: center; }
  .demo-notice { padding-inline: 14px; text-align: left; }
  .workspace { padding: 22px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .metrics { gap: 10px; }
  .metrics article { padding: 16px; }
  .metrics strong { font-size: 25px; }
  .panel { padding: 18px 14px; }
  .chart { gap: 5px; padding-inline: 0; }
  .architecture-flow { grid-template-columns: 1fr; }
  .filter { align-items: flex-start; flex-direction: column; }
}
