/* Owned by packages a, b, f (model UI). Stub created by package F.
 * Inspector rows for parts that are derived from the model rather than typed into a field.
 * Same language as studio.css: Inter 11-13px, navy #1e3a5f, 1px #d6dfe8 borders, soft glass fills,
 * transform/opacity only, 3px focus-visible ring. */

/* ---- package a: hip-corner enclosure rows ("Lean-tos & additions") ------------------------- */
.corner-head { margin: 14px 0 6px; font-weight: 650; color: #4a5f74; }

.corner-row {
  position: relative;
  margin: 7px 0;
  padding: 9px 11px 9px 13px;
  border: 1px solid #dde6ef;
  border-radius: 9px;
  background: linear-gradient(140deg, #fbfdff, #eef4fa);
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px #1e3a5f0d;
}
.corner-row::before {
  content: "";
  position: absolute;
  left: 0; top: 7px; bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #b8d0ec;
}
.corner-row.closed { border-color: #cfe0f2; background: linear-gradient(140deg, #f4f9ff, #e5eff9); }
.corner-row.closed::before { background: #3d6bb4; }
.corner-row.active { border-color: #7fb2e4; box-shadow: inset 0 1px 0 #fff, 0 0 0 2px #b8d0ec, 0 3px 10px #1e3a5f14; }

.corner-row p { margin: 0; }
.corner-row strong { font-size: 12px; font-weight: 650; color: #1e3a5f; }
.corner-row .corner-status { margin-top: 2px; color: #6c7e91; }
.corner-row.closed .corner-status { color: #2a5390; font-weight: 600; }
.corner-row .segments { margin: 8px 0 1px; }
.corner-row .segments button {
  font-size: 11px; padding: 8px 11px; font-weight: 600;
  border-color: #b9cfe6; background: #fff; touch-action: manipulation;
  transition: background .15s, transform .15s cubic-bezier(.2,.9,.25,1.15);
}
.corner-row .segments button:hover { background: #e8eff7; border-color: #8fb0cc; }
.corner-row .segments button:active { transform: scale(.97); }
.corner-row .segments button:focus-visible { outline: 3px solid #68a8ed; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .corner-row .segments button { transition: background .15s; }
  .corner-row .segments button:active { transform: none; }
}

/* ---- package b: lean-to wall openings (inspector "Walls, doors & windows") ------------------ */
/* Why an opening is refused, or why a stored one is not drawn: the same amber the tray uses for a
 * blocked drop, on a quiet tinted card so it reads as a limit rather than an error. */
.help.lean-fit {
  margin: 6px 0;
  padding: 7px 9px 7px 11px;
  border-radius: 8px;
  border: 1px solid #efd9bd;
  background: linear-gradient(140deg, #fffaf3, #fdf1e2);
  color: #7a5320;
  box-shadow: inset 2px 0 0 #d08a3a;
}
#inspector option:disabled { color: #9aa8b5; }

/* ---- package f: mezzanines (inspector "Mezzanines") ---------------------------------------- */
/* A mezzanine is edited as a list of numbers, so the group needs two things the other groups do
 * not: a clear pair of actions at the bottom, and a way to say "this deck is stored but not drawn"
 * without looking like an error. Same glass language as the corner rows above. */
#inspector .mezz-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}
#inspector .mezz-actions button {
  flex: 1 1 auto;
  min-height: 40px;
  font-size: 11px;
  font-weight: 600;
  border-color: #b9cfe6;
  touch-action: manipulation;
  transition: background .15s, transform .15s cubic-bezier(.2,.9,.25,1.15);
}
#inspector .mezz-actions button:hover:not(:disabled) { background: #e8eff7; border-color: #8fb0cc; }
#inspector .mezz-actions button:active:not(:disabled) { transform: scale(.97); }
#inspector .mezz-actions button:focus-visible { outline: 3px solid #68a8ed; outline-offset: 2px; }
#inspector .mezz-actions button:disabled { color: #9aa8b5; border-color: #e2e8f0; background: #f6f8fb; cursor: default; }
/* Remove is destructive but recoverable with Undo: a quiet warm tint, not a red alarm. */
#inspector .mezz-actions button[data-mezz="remove"] { flex: 0 1 auto; color: #7a5320; border-color: #e7d3b9; }
#inspector .mezz-actions button[data-mezz="remove"]:hover { background: #fdf4e8; border-color: #d8b788; }

/* A limit or a not-drawn deck, in the same amber the tray uses for a blocked drop. */
#inspector p.help.warn {
  margin: 8px 0;
  padding: 7px 9px 7px 11px;
  border-radius: 8px;
  border: 1px solid #efd9bd;
  background: linear-gradient(140deg, #fffaf3, #fdf1e2);
  color: #8a4b12;
  box-shadow: inset 2px 0 0 #d08a3a;
}

@media (pointer: coarse), (max-width: 650px) {
  #inspector .mezz-actions button { min-height: 44px; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #inspector .mezz-actions button { transition: background .15s; }
  #inspector .mezz-actions button:active:not(:disabled) { transform: none; }
}
