/* Lidmagnit studio — inspection-lab UI. Onest + Spirit orange. */
:root {
  --st-bg: #f3eee6;
  --st-ink: #121410;
  --st-muted: #5c574e;
  --st-line: #ddd4c6;
  --st-paper: #fffdf8;
  --st-accent: #ff5a1f;
  --st-accent-ink: #fff;
  --st-ok: #1f7a4d;
  --st-bad: #c42b1a;
  --st-run: #d94816;
  --st-shadow: 0 18px 50px -24px rgba(18, 20, 16, .35);
  --st-radius: 22px;
  --st-font: "Onest", system-ui, sans-serif;
}
.studio-body {
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(255, 90, 31, .12), transparent 55%),
    radial-gradient(900px 500px at 110% 0%, rgba(18, 20, 16, .06), transparent 50%),
    var(--st-bg);
  color: var(--st-ink);
  font-family: var(--st-font);
}
.studio-body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  z-index: 0;
}
.studio-body > * { position: relative; z-index: 1; }

.studio-rail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.studio-rail span {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--st-muted);
  border: 1px solid var(--st-line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255,253,248,.7);
}
.studio-rail span.is-now {
  background: var(--st-ink);
  color: #fff;
  border-color: var(--st-ink);
}

.studio-hero h1 {
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 10px;
  max-width: 16ch;
}
.studio-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 20px;
}
.studio-kpi {
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  border-radius: 18px;
  padding: 16px 18px 14px;
  box-shadow: var(--st-shadow);
}
.studio-kpi small {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.studio-kpi b {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.03em;
}
.studio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
}
.studio-toolbar select {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--st-line);
  background: var(--st-paper);
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.studio-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none;
}
.studio-tabs::-webkit-scrollbar { display: none; }
.studio-tab {
  flex: none;
  min-height: 44px;
  border: 1px solid var(--st-line);
  background: transparent;
  border-radius: 999px;
  padding: 0 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--st-muted);
}
.studio-tab.is-on, .studio-tab[aria-selected="true"] {
  background: var(--st-ink);
  color: #fff;
  border-color: var(--st-ink);
}

.studio-fold {
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  margin: 0 0 12px;
  box-shadow: var(--st-shadow);
  overflow: hidden;
}
.studio-fold[hidden] { display: none; }
.studio-fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 17px;
}
.studio-fold summary::-webkit-details-marker { display: none; }
.studio-fold summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--st-muted);
  border-bottom: 2px solid var(--st-muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.studio-fold[open] summary::after { transform: rotate(225deg); }
.studio-fold .studio-fold__body { padding: 0 18px 18px; }
.studio-count {
  font-size: 12px;
  font-weight: 700;
  background: #fff1ea;
  color: var(--st-accent);
  border-radius: 999px;
  padding: 3px 8px;
}

.studio-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.studio-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--st-muted);
  padding: 8px 6px;
  border-bottom: 1px solid var(--st-line);
}
.studio-table td {
  padding: 10px 6px;
  border-bottom: 1px solid #eee7dc;
  vertical-align: top;
}
.studio-table tr:hover td { background: #fff7f1; }

.studio-checks { list-style: none; margin: 0; padding: 0; }
.studio-check {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  border-radius: 20px;
  padding: 16px 18px;
  margin: 0 0 12px;
  box-shadow: var(--st-shadow);
  transform: translateY(8px);
  opacity: .55;
  transition: transform .35s ease, opacity .35s ease, border-color .2s ease;
}
.studio-check.is-run, .studio-check.is-ok, .studio-check.is-fail {
  opacity: 1;
  transform: none;
}
.studio-check.is-run { border-color: var(--st-accent); }
.studio-check.is-ok { border-color: #bfe3cc; }
.studio-check.is-fail { border-color: #f3c2ba; }
.studio-dial {
  width: 52px; height: 52px;
}
.studio-dial circle.track { fill: none; stroke: #eadfce; stroke-width: 3; }
.studio-dial circle.spin {
  fill: none; stroke: var(--st-accent); stroke-width: 3;
  stroke-dasharray: 90; stroke-linecap: round;
  transform-origin: 26px 26px;
  opacity: 0;
}
.studio-check.is-run circle.spin {
  opacity: 1;
  animation: studio-spin 1s linear infinite;
}
.studio-dial path.ok {
  fill: none; stroke: var(--st-ok); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 28; stroke-dashoffset: 28;
}
.studio-check.is-ok path.ok { stroke-dashoffset: 0; transition: stroke-dashoffset .45s ease; }
.studio-dial path.bad {
  fill: none; stroke: var(--st-bad); stroke-width: 3;
  stroke-linecap: round; stroke-dasharray: 24; stroke-dashoffset: 24;
  opacity: 0;
}
.studio-check.is-fail path.bad { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .35s ease; }
.studio-check h2 { margin: 0 0 4px; font-size: 18px; }
.studio-check p { margin: 0; color: var(--st-muted); font-size: 14px; }

.studio-errors {
  margin: 18px 0 8px;
  background: #fff4ef;
  border: 1px solid #ffd2c0;
  border-radius: 20px;
  padding: 16px 18px;
}
.studio-errors h3 { margin: 0 0 10px; font-size: 16px; }
.studio-errors details { margin: 8px 0 0; }
.studio-errors summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }

@keyframes studio-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .studio-check { opacity: 1; transform: none; transition: none; }
  .studio-check.is-run circle.spin { animation: none; }
  .studio-dial path { transition: none; stroke-dashoffset: 0; }
}
@media (max-width: 720px) {
  .studio-kpis { grid-template-columns: 1fr; }
  .studio-hero h1 { max-width: none; }
}
