
:root{
  --ink:#12151a; --muted:#5b6472; --line:#e3e7ee; --bg:#f6f7f9;
  --card:#ffffff; --accent:#12263f; --accent2:#c2410c;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.45;
}
header.top{
  background:var(--accent); color:#fff; padding:18px 26px;
  display:flex; align-items:baseline; gap:16px; flex-wrap:wrap;
}
header.top h1{font-size:20px; margin:0; font-weight:700; letter-spacing:.2px}
header.top h1 a{color:#fff; text-decoration:none}
header.top h1 a:hover{text-decoration:underline}
header.top .sub{font-size:12.5px; color:#9fb0c6}
header.top .spacer{flex:1}
header.top a{color:#cfe0f5; text-decoration:none; font-size:13px}
header.top a:hover{text-decoration:underline}
nav.tabs{background:#fff; border-bottom:1px solid var(--line); padding:0 26px;
  display:flex; gap:4px}
nav.tabs a{
  display:inline-block; padding:11px 16px; font-size:13.5px; text-decoration:none;
  color:var(--muted); border-bottom:2px solid transparent; font-weight:600;
}
nav.tabs a:hover{color:var(--ink)}
nav.tabs a.active{color:var(--accent); border-bottom-color:var(--accent)}
.wrap{max-width:1280px; margin:0 auto; padding:22px 26px 60px}
.card{background:var(--card); border:1px solid var(--line); border-radius:10px;
  padding:18px 20px; margin-bottom:18px}
h2.sec{font-size:16.5px; margin:0 0 4px; letter-spacing:.2px}
p.lead{color:var(--muted); font-size:13.5px; margin:0 0 16px}
.grid{display:grid; gap:16px}
.grid.c1{grid-template-columns:1fr}
.grid.c2{grid-template-columns:repeat(auto-fit,minmax(380px,1fr))}
.grid.c3{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.grid.c4{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.model{
  background:var(--card); border:1px solid var(--line); border-radius:10px;
  padding:16px 18px; display:flex; flex-direction:column; gap:8px;
  transition:border-color .12s, box-shadow .12s;
}
.model:hover{border-color:#c3ccdb; box-shadow:0 2px 10px rgba(18,38,63,.07)}
.model h3{margin:0; font-size:15.5px}
.model .meta{font-size:12.5px; color:var(--muted)}
.model .tags{display:flex; gap:6px; flex-wrap:wrap; margin-top:2px}
.tag{font-size:11px; padding:2px 8px; border-radius:20px; background:#eef1f6;
  color:#3b4656; border:1px solid #dde3ec}
.tag.ok{background:#e8f3ec; color:#1d6b3c; border-color:#c9e4d3}
.tag.no{background:#f6ecea; color:#8c3b28; border-color:#eccfc7}
.model .acts{display:flex; gap:8px; margin-top:6px; flex-wrap:wrap}
a.btn{display:inline-block; padding:7px 13px; border-radius:7px; font-size:13px;
  font-weight:600; text-decoration:none; background:#eef1f6; color:#22314a;
  border:1px solid #dbe1ea}
a.btn:hover{background:#e4e9f1}
a.btn.primary{background:var(--accent); color:#fff; border-color:var(--accent)}
a.btn.primary:hover{background:#0d1c30}
a.btn[aria-disabled="true"]{opacity:.42; pointer-events:none}
a.btn.wide{display:block; text-align:center; padding:9px 14px}
.picker{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:14px}
.picker label{font-size:13px; color:var(--muted); font-weight:600}
select,button.ctrl{
  font-family:inherit; font-size:13.5px; padding:7px 10px; border-radius:7px;
  border:1px solid #d5dbe5; background:#fff; color:var(--ink)
}
button.ctrl{cursor:pointer; background:var(--accent); color:#fff; border-color:var(--accent);
  font-weight:600}
button.ctrl.ghost{background:#fff; color:var(--accent)}
.seg{display:inline-flex; gap:6px}
.seg .segbtn{border-radius:16px; padding:7px 14px; font-size:13px}
.seg .segbtn.ghost{background:#fff; color:var(--accent)}
.seg .segbtn.on{background:var(--accent); color:#fff}
.stage{background:var(--card); border:1px solid var(--line); border-radius:10px;
  padding:14px}
.stage img{width:100%; height:auto; display:block; border-radius:4px}
.panel{margin:0 0 6px}
.panel img{width:100%; height:auto; display:block; border-radius:4px}
.panel figcaption{font-size:12px; color:var(--muted); margin:6px 0 16px}
.cap{font-size:12.5px; color:var(--muted); margin-top:10px}
.slider{display:flex; align-items:center; gap:14px; margin-top:14px; flex-wrap:wrap}
input[type=range]{flex:1; min-width:220px; accent-color:var(--accent); height:22px}
.frameLabel{font-size:13.5px; font-weight:700; min-width:150px}
table{width:100%; border-collapse:collapse; font-size:13px; background:var(--card)}
th,td{padding:7px 10px; border-bottom:1px solid var(--line); text-align:right}
th:first-child,td:first-child{text-align:left}
th{background:#eef1f6; font-size:12px; text-transform:uppercase; letter-spacing:.4px;
  color:#48546a}
tr:last-child td{border-bottom:none}
.note{font-size:12.5px; color:var(--muted); border-left:3px solid var(--line);
  padding-left:11px; margin-top:12px}
.crumb{font-size:13px; color:var(--muted); margin-bottom:14px}
.crumb a{text-decoration:none}
.crumb a:hover{text-decoration:underline}
.varlist{display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.var{background:var(--card); border:1px solid var(--line); border-radius:10px;
  overflow:hidden; display:flex; flex-direction:column}
.var .thumb{background:#eef1f6; border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; height:170px; overflow:hidden}
.var .thumb img{max-width:100%; max-height:100%; object-fit:contain}
.var .body{padding:14px 16px; display:flex; flex-direction:column; gap:6px; flex:1}
.var h3{margin:0; font-size:15px}
.var p{margin:0; font-size:12.5px; color:var(--muted)}
.var .acts{margin-top:auto; padding-top:10px}
.var.off{opacity:.55}
footer{border-top:1px solid var(--line); margin-top:26px; padding:16px 0 0;
  color:var(--muted); font-size:12.5px; display:flex; justify-content:space-between}
a{color:#1c4b8a}
