/* /systems: the storage systems studio. */
.sy-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.sy-controls { display: grid; gap: 12px; }
.sy-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.sy-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-dark); background: none; color: var(--text); font: 500 13px/1 var(--font-ui); cursor: pointer; }
.sy-chip[aria-pressed='true'] { background: var(--teal); color: var(--carbon); border-color: var(--teal); }
.sy-field { display: grid; gap: 4px; font-size: 13.5px; }
.sy-field > span { display: flex; align-items: center; gap: 6px; }
.sy-field input[type=number] { width: 90px; }
.sy-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.sy-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; grid-column: 1 / -1; }
.sy-view { display: grid; gap: 8px; position: sticky; top: calc(var(--header-h, 64px) + 12px); }
/* The model stays in view: the stage fills what's left of the screen under the header, with the print buttons under it. */
.sy-stage { height: clamp(320px, calc(100dvh - var(--header-h, 64px) - 250px), 760px); border-radius: 12px; background: var(--carbon-3); overflow: hidden; }
.sy-stage canvas { width: 100%; height: 100%; display: block; }
.sy-size { margin: 0; font: 500 12.5px/1.4 var(--font-mono); color: var(--muted-dark); }
.sy-about { margin-top: 18px; }
.sy-about h2 { margin: 0 0 6px; font-size: 1.1rem; }
.sy-about p { margin: 0; line-height: 1.55; }
/* Phones: the model sits at the top and stays there while the settings scroll under it. */
@media (max-width: 900px) {
  .sy-layout { grid-template-columns: 1fr; }
  .sy-view { order: -1; z-index: 5; top: var(--header-h, 64px); background: var(--page, var(--carbon)); padding-bottom: 6px; box-shadow: 0 10px 18px -12px rgb(0 0 0 / 0.5); }
  .sy-stage { height: 38dvh; min-height: 220px; }
  .sy-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sy-actions > * { flex: none; }
  .sy-view .sy-next, .sy-view .sy-step { display: none; }
}

.sy-kit { display: grid; gap: 14px; margin-top: 18px; }
.sy-kit-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; }
.sy-kit-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.sy-kit-head .hint { margin: 0; }
.sy-kit-fields { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sy-kit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sy-kit-table th, .sy-kit-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.sy-kit-table td.n { font: 600 15px/1.3 var(--font-mono); white-space: nowrap; }
.sy-kit-table small { display: block; color: var(--muted-dark); }
.sy-kit-sum { margin: 0; font-size: 14px; }
.sy-kit-list { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.sy-kit-warn { color: #e7a19a; }
.sy-kit-scroll { overflow-x: auto; }

.sy-kit-plates { display: grid; gap: 10px; border-top: 1px solid var(--line-dark); padding-top: 12px; }
.sy-kit-plates h3 { margin: 0 0 4px; font-size: 1.02rem; }
.sy-plate-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sy-plate-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-dark); border-radius: 10px; font-size: 13.5px; }
.sy-plate-btns { display: flex; gap: 6px; }
.sy-kit-share { display: flex; flex-wrap: wrap; gap: 8px; }
[data-kit-builds] h3 { margin: 6px 0 10px; font-size: 1.02rem; }

a.sy-chip { text-decoration: none; display: inline-block; }
.sy-wide { grid-column: 1 / -1; }
.sy-wide select { width: 100%; }
.sy-hub { margin-bottom: 18px; }
.sy-ver { display: block; margin-top: 4px; font: 500 11.5px/1.3 var(--font-mono); color: var(--muted-dark); }

/* The three steps, so nobody has to work out what to do first. */
.sy-how { list-style: none; counter-reset: sy; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; padding: 0; font: 500 13.5px/1.2 var(--font-ui); color: var(--muted-dark); }
.sy-how li { counter-increment: sy; display: inline-flex; align-items: center; gap: 6px; }
.sy-how li::before { content: counter(sy); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--carbon); font: 700 12px/1 var(--font-ui); }
.sy-next { margin-top: 10px; }

/* A licence note for parts that aren't VERTEX's own (Underware). */
.sy-licence { margin: 12px 0; font-size: 14px; line-height: 1.5; }
.sy-licence h3 { margin: 0 0 6px; font-size: 15px; }
.sy-licence p { margin: 0 0 6px; }
.sy-licence p:last-child { margin: 0; }
.sy-send { display: inline-flex; gap: 6px; align-items: center; } .sy-send select { width: auto; min-height: 38px; }

/* Steps down the page: pick, set up, print. */
.sy-step { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 600 13px/1 var(--font-ui); letter-spacing: .02em; color: var(--text); }
.sy-step-n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--carbon); font: 700 12px/1 var(--font-ui); }
.sy-items .sy-chip { padding: 8px 12px; }
.sy-actions { gap: 6px; }
.sy-view .sy-next { margin: 0; font-size: 12.5px; }
.sy-licence-box { border: 1px solid var(--line-dark); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.sy-licence-box > summary { cursor: pointer; color: var(--muted-dark); font-weight: 500; }
.sy-licence-box[open] > summary { margin-bottom: 6px; }
:root[data-theme="light"] .sy-licence-box { border-color: var(--line-light); }
