/* Umbrella edition · view surfaces: flat cards, low-poly band, rhythm. */
/* Views: page with the faceted ridge along the bottom. */
[data-skin='studio'] .view {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  background:
    var(--lowpoly-hills, none) bottom / 100% auto no-repeat fixed,
    var(--surface);
}
[data-skin='studio'] .view h1 {
  font-size: var(--fs-2);
  font-weight: 700;
  letter-spacing: -0.01em;
}
[data-skin='studio'] .view h1::after {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--accent);
}
[data-skin='studio'] .view h2 {
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hud-muted);
}

/* Cards: light flat surface with the shared soft drop shadow (S29). */
[data-skin='studio']
  :is(
    .grid,
    .kpis > div,
    .plot.big,
    .hours,
    .ok.big,
    .seg,
    .units button,
    .sev,
    .rate input,
    .detail-view,
    .detail-view .back,
    .notice,
    .cond
  ) {
  border-color: transparent;
  background: var(--surface);
  box-shadow: var(--raised);
}
[data-skin='studio'] :is(.grid, .plot.big, .hours, .ok.big, .detail-view) {
  border-radius: var(--radius);
}
[data-skin='studio'] .kpis {
  gap: var(--sp-3);
}
[data-skin='studio'] .kpis > div {
  min-width: 0; /* tiles shrink with the row; a fixed aspect ratio plus min-height overlapped them */
  display: grid;
  align-content: center;
  border-radius: var(--radius);
  transition:
    box-shadow var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
}
[data-skin='studio'] .kpis > div:hover {
  box-shadow: var(--raised-hover);
  transform: translateY(-1px);
}
[data-skin='studio'] .kpis b {
  font-size: var(--fs-3);
  line-height: 1.1;
}
[data-skin='studio'] .kpis .kpi-alarm {
  background: var(--surface);
  color: #a3191a;
}
[data-skin='studio'] .grid th {
  background: var(--surface-sunk);
}
[data-skin='studio'] .grid tbody tr[data-id] {
  transition: background var(--t-fast) var(--ease);
}
[data-skin='studio'] .grid tbody tr[data-id]:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
[data-skin='studio'] .grid tbody tr[data-id]:active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* Bars and charts in the brand colours. */
[data-skin='studio'] .mini-bar,
[data-skin='studio'] .bars i,
[data-skin='studio'] .load i {
  background: linear-gradient(90deg, var(--accent) var(--pct), var(--surface-sunk) var(--pct));
  box-shadow: inset 2px 2px 3px var(--shadow-dark);
}
[data-skin='studio'] .hours i {
  background: linear-gradient(180deg, var(--accent), #a80008);
}

/* Golden split where a view has a main area and a side area. */
[data-skin='studio'] .golden {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 900px) {
  [data-skin='studio'] .golden {
    grid-template-columns: 1fr;
  }
}

/* Faceted band along the top of each view (low poly, lit from above) and the rhythm mark
   (repetition with growing size and turn) under each title. */
[data-skin='studio'] .view:not(.view-erp) {
  background:
    var(--lowpoly-band, none) top / 100% 140px no-repeat,
    var(--lowpoly-hills, none) bottom / 100% auto no-repeat fixed,
    var(--surface);
}
[data-skin='studio'] .view h1::after {
  width: 64px;
  height: 14px;
  border-radius: 0;
  background: var(--rhythm, var(--accent)) left center / contain no-repeat;
}
