:root{
  --hsd-navy:#071427;
  --hsd-blue:#003087;
  --hsd-blue-2:#0b3f92;
  --hsd-cyan:#00d4ff;
  --hsd-orange:#ff6200;
  --hsd-green:#16a34a;
  --hsd-amber:#f59e0b;
  --hsd-red:#dc2626;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --paper:#ffffff;
  --soft:#f4f7fb;
}

*{box-sizing:border-box}
html{background:#06101f}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,Arial,Helvetica,sans-serif;
  background:
    radial-gradient(circle at 82% 8%,rgba(0,212,255,.18),transparent 28%),
    linear-gradient(135deg,#06101f 0%,#071427 46%,#0f2142 100%);
  color:var(--ink);
}
a{text-decoration:none;color:inherit}

.preview-exit{
  position:fixed;
  top:18px;
  left:18px;
  z-index:50;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:11px 16px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(7,20,39,.88);
  color:#fff;
  font-size:13px;
  font-weight:900;
  box-shadow:0 14px 34px rgba(0,0,0,.28);
  backdrop-filter:blur(12px);
}
.preview-exit:hover{background:var(--hsd-orange);border-color:var(--hsd-orange)}

.mock-page{
  min-height:100vh;
  padding:32px;
}
.mock-shell{
  width:min(1440px,100%);
  margin:0 auto;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  border-radius:28px;
  background:var(--soft);
  box-shadow:0 30px 90px rgba(0,0,0,.34);
}
.mock-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:82px;
  padding:18px 28px;
  background:linear-gradient(135deg,var(--hsd-blue),#071427);
  color:#fff;
}
.mock-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:230px;
}
.brand-mark{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  padding:4px;
  overflow:hidden;
}
.brand-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.brand-copy strong{display:block;font-size:18px;line-height:1.1}
.brand-copy span{display:block;color:#bfeeff;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.mock-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.mock-tabs span{
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  color:#dbeafe;
  font-size:13px;
  font-weight:800;
}
.mock-tabs .active{background:#fff;color:var(--hsd-blue);border-color:#fff}
.mock-user{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:190px;
  justify-content:flex-end;
}
.user-dot{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);
  font-size:13px;
  font-weight:900;
}
.mock-body{padding:28px}
.page-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
  margin-bottom:22px;
}
.page-heading h1{
  margin:0;
  font-size:32px;
  line-height:1.08;
  color:#0f172a;
}
.page-heading p{margin:8px 0 0;color:var(--muted);font-size:15px}
.primary-action{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 18px;
  border-radius:16px;
  background:var(--hsd-orange);
  color:#fff;
  font-weight:900;
  box-shadow:0 14px 28px rgba(255,98,0,.24);
}
.kpi-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
  margin-bottom:20px;
}
.kpi-grid.four{grid-template-columns:repeat(4,1fr)}
.kpi-card{
  min-height:118px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.kpi-label{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.kpi-value{
  display:block;
  margin-top:12px;
  color:#0f172a;
  font-size:36px;
  line-height:1;
  font-weight:900;
}
.kpi-note{display:block;margin-top:10px;color:var(--muted);font-size:13px;font-weight:700}
.trend-up{color:var(--hsd-green)}
.trend-warn{color:var(--hsd-orange)}
.trend-red{color:var(--hsd-red)}
.content-grid{
  display:grid;
  grid-template-columns:1.45fr .7fr;
  gap:20px;
}
.content-grid.equal{grid-template-columns:1fr 1fr}
.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
  overflow:hidden;
}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
}
.panel-head h2{margin:0;font-size:18px;color:#0f172a}
.panel-head span{color:var(--muted);font-size:13px;font-weight:800}
.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:16px 20px;
  border-bottom:1px solid var(--line);
  background:#f8fafc;
}
.filter-chip{
  padding:8px 12px;
  border:1px solid #d8e0ec;
  border-radius:999px;
  background:#fff;
  color:#334155;
  font-size:13px;
  font-weight:800;
}
.filter-chip.active{background:#eaf6ff;color:var(--hsd-blue);border-color:#b7e6ff}
.data-table{width:100%;border-collapse:collapse}
.data-table th{
  padding:13px 16px;
  background:#f8fafc;
  color:#64748b;
  font-size:12px;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.data-table td{
  padding:15px 16px;
  border-top:1px solid var(--line);
  color:#1e293b;
  font-size:14px;
  vertical-align:middle;
}
.data-table tr:hover td{background:#fbfdff}
.mono{font-family:"SFMono-Regular",Consolas,monospace;font-weight:800;color:#0f172a}
.status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.status::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
}
.status.wait{background:#fff7ed;color:#ea580c}
.status.plan{background:#eaf6ff;color:#0369a1}
.status.run{background:#ecfdf5;color:#15803d}
.status.done{background:#eef2ff;color:#4338ca}
.status.stop{background:#fef2f2;color:#b91c1c}
.progress-track{
  height:9px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
}
.progress-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--hsd-blue),var(--hsd-cyan));
}
.mini-list{display:grid;gap:12px;padding:18px 20px}
.mini-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fbfdff;
}
.mini-row strong{display:block;color:#0f172a;font-size:14px}
.mini-row span{display:block;color:var(--muted);font-size:12px;font-weight:700}
.pill-num{
  min-width:44px;
  padding:8px 10px;
  border-radius:12px;
  background:#eaf6ff;
  color:var(--hsd-blue);
  text-align:center;
  font-weight:900;
}

.board-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.board-column{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
}
.board-column h2{
  margin:0;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  font-size:17px;
  color:#0f172a;
}
.work-card{
  margin:14px;
  padding:16px;
  border:1px solid #dfe7f2;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f9fbff);
}
.work-card strong{display:block;margin-bottom:8px;font-size:15px;color:#0f172a}
.work-card dl{display:grid;grid-template-columns:auto 1fr;gap:7px 12px;margin:0;color:#475569;font-size:13px}
.work-card dt{font-weight:900;color:#64748b}
.work-card dd{margin:0;font-weight:700}
.machine-plan{
  display:grid;
  gap:14px;
  padding:18px;
}
.machine-row{
  display:grid;
  grid-template-columns:170px 1fr 72px;
  gap:14px;
  align-items:center;
}
.machine-bar{
  position:relative;
  height:36px;
  border-radius:12px;
  background:#e2e8f0;
  overflow:hidden;
}
.machine-bar span{
  position:absolute;
  inset:0 auto 0 0;
  border-radius:12px;
  background:linear-gradient(90deg,var(--hsd-blue),var(--hsd-cyan));
}
.machine-row strong{font-size:13px;color:#0f172a}
.machine-row em{font-style:normal;color:var(--muted);font-size:13px;font-weight:900}

.materials-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:20px;
}
.material-tile{
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.material-tile h2{margin:0 0 8px;font-size:17px;color:#0f172a}
.material-tile p{margin:0;color:var(--muted);font-size:13px}

.report-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
  margin-bottom:20px;
}
.report-card{
  min-height:180px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.report-card h2{font-size:17px;margin:0 0 12px;color:#0f172a}
.spark{
  display:flex;
  align-items:end;
  gap:6px;
  height:82px;
  padding-top:8px;
}
.spark span{
  flex:1;
  min-width:8px;
  border-radius:8px 8px 0 0;
  background:linear-gradient(180deg,var(--hsd-cyan),var(--hsd-blue));
}
.alert-band{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:16px;
}
.alert-card{
  padding:18px;
  border-radius:18px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
}
.alert-card strong{display:block;color:#7c2d12}

.capacity-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:18px;
}
.capacity-card{
  padding:20px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
}
.gauge{
  --value:72%;
  width:156px;
  height:156px;
  margin:10px auto 18px;
  border-radius:50%;
  background:conic-gradient(var(--hsd-cyan) var(--value),#e2e8f0 0);
  display:grid;
  place-items:center;
}
.gauge span{
  width:112px;
  height:112px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#0f172a;
  font-size:28px;
  font-weight:900;
}
.metric-lines{display:grid;gap:9px}
.metric-lines div{display:flex;justify-content:space-between;color:#475569;font-size:14px;font-weight:800}

.preview-body{background:#071427;color:#fff}
.preview-hero{
  padding:86px 0 46px;
  background:
    radial-gradient(circle at 80% 18%,rgba(0,212,255,.24),transparent 28%),
    linear-gradient(135deg,#06101f,#10264a);
}
.preview-container{width:min(1180px,calc(100% - 32px));margin:0 auto}
.preview-hero h1{font-size:56px;line-height:1.02;margin:0 0 18px;color:#fff}
.preview-hero p{max-width:780px;color:#cbd5e1;font-size:20px;line-height:1.6;margin:0}
.preview-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:26px;
  padding:44px 0 82px;
}
.preview-card{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  background:#0f172a;
  box-shadow:0 18px 48px rgba(0,0,0,.28);
}
.preview-frame{
  height:320px;
  overflow:hidden;
  background:#06101f;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.preview-frame iframe{
  width:1440px;
  height:900px;
  border:0;
  transform:scale(.45);
  transform-origin:top left;
  pointer-events:none;
}
.preview-copy{padding:24px}
.preview-copy h2{margin:0 0 8px;color:#fff;font-size:24px}
.preview-copy p{margin:0 0 18px;color:#cbd5e1;line-height:1.6}
.preview-copy a{
  display:inline-flex;
  padding:12px 16px;
  border-radius:14px;
  background:var(--hsd-orange);
  color:#fff;
  font-weight:900;
}

@media(max-width:1100px){
  .kpi-grid,
  .kpi-grid.four,
  .materials-grid,
  .report-grid,
  .capacity-grid{grid-template-columns:repeat(2,1fr)}
  .content-grid,.content-grid.equal{grid-template-columns:1fr}
  .board-grid{grid-template-columns:1fr}
  .preview-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  .mock-page{padding:14px}
  .mock-topbar,.page-heading{display:block}
  .mock-tabs{margin:18px 0}
  .mock-user{justify-content:flex-start}
  .mock-body{padding:18px}
  .page-heading h1,.preview-hero h1{font-size:36px}
  .kpi-grid,
  .kpi-grid.four,
  .materials-grid,
  .report-grid,
  .capacity-grid,
  .alert-band{grid-template-columns:1fr}
  .machine-row{grid-template-columns:1fr}
  .data-table{min-width:760px}
  .table-scroll{overflow:auto}
  .preview-frame{height:260px}
  .preview-frame iframe{transform:scale(.36)}
}
