/* The Mac app's design (mac.css), Score, drawn to the same rules as design
   C (Adam, 16 Oct: "redesign score … with the same skill"): the page on a
   dark desk as the document, and Layout as the Mac's inspector down the
   right, the same side as Build's editor. A form of right-aligned names and
   their controls, Style as a segmented control, ticks as the Mac's
   checkboxes, the folded groups as disclosure rows in plain words, and the
   inspector ending on its action: Export…, which File › Export (⌘E) also
   does. The toolbar is every screen's toolbar. */

.drumchart-mac body { --panel-w: 300px; }
.drumchart-mac body.layout-view .chart-pane { background: var(--desk); }
.drumchart-mac body.layout-view .toolbar { background: var(--mac-toolbar); }

.drumchart-mac .layout-panel {
  background: var(--mac-sidebar);
  border-left: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.drumchart-mac .lp-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 6px; align-items: baseline; }
.drumchart-mac .lp-heading { font-size: 13px; font-weight: 600; }
.drumchart-mac .lp-sub { font-size: 11px; color: var(--ink-soft); }
.drumchart-mac .lp-group { border-bottom: 1px solid var(--line); padding: 8px 0; }

/* A Mac form: names right-aligned against their controls. */
.drumchart-mac .lp-row { grid-template-columns: 84px minmax(0, 1fr) 40px; gap: 8px; min-height: 26px; }
.drumchart-mac .lp-name { text-align: right; font-size: 12px; color: var(--ink-soft); }
.drumchart-mac .lp-value { font-size: 12px; color: var(--ink-soft); }
.drumchart-mac .lp-select {
  min-height: 22px; height: 22px; border: 0; border-radius: 5px; padding: 0 6px; font-size: 12px;
  background-color: var(--mac-control); color: var(--ink);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12), 0 0.5px 1px rgba(0, 0, 0, 0.35);
}
.drumchart-mac .lp-slider { accent-color: var(--accent); }

/* Choices as the Mac's segmented control, beside their name. */
.drumchart-mac .lp-row-stacked { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
.drumchart-mac .lp-row-stacked .lp-choices { grid-column: 2; }
.drumchart-mac .lp-choices {
  display: flex; flex-wrap: nowrap; gap: 0; padding: 2px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.14); box-shadow: inset 0 0 0 0.5px rgba(127, 127, 127, 0.25);
}
.drumchart-mac .lp-row-stacked .lp-choices { display: flex; }
.drumchart-mac .lp-choices .btn {
  flex: 1 1 0; min-width: 0; min-height: 20px; padding: 0 6px; font-size: 12px;
  background: transparent; box-shadow: none; color: var(--ink-soft); border-radius: 4px;
}
.drumchart-mac .lp-choices .btn:hover { background: transparent; color: var(--ink); }
.drumchart-mac .lp-choices .btn.primary { background: var(--mac-seg-on); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
/* Score's Layout rows (layoutpop.js) mark the answer chosen, not primary:
   untinted, Pages and the drill-ins' steps showed no answer at all. */
.drumchart-mac .lpop .lp-choices .btn.chosen { background: var(--mac-seg-on); border-color: transparent; color: var(--ink); font-weight: inherit; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
/* Their names in one column, and Size's − % + Fit across the rest of its
   row: in the middle column alone it ran left over the word Size. */
.drumchart-mac .lpop :is(.lp-row, .lp-row-stacked) { grid-template-columns: 64px minmax(0, 1fr); }
.drumchart-mac .lpop .lpop-step-ctl { grid-column: 2 / -1; }

.drumchart-mac .lp-nudge .btn { min-width: 30px; }

/* Folded groups: a disclosure row in plain words, not small capitals. */
.drumchart-mac .lp-fold-toggle {
  font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 4px 0;
}
.drumchart-mac .lp-fold-chev { font-size: 11px; width: 11px; color: var(--ink-soft); }

/* Ticks as the Mac's checkboxes. */
.drumchart-mac .lp-toggle { min-height: 24px; padding: 2px 4px; font-size: 12px; }
.drumchart-mac .lp-tick {
  width: 14px; height: 14px; border-radius: 3.5px; border: 0; font-size: 10px;
  background: var(--mac-control); box-shadow: inset 0 0 0 0.5px rgba(127, 127, 127, 0.5), 0 0.5px 1px rgba(0, 0, 0, 0.3);
}
.drumchart-mac .lp-toggle.on .lp-tick { background: var(--accent-fill); box-shadow: none; }

.drumchart-mac .lp-reset { background: transparent; box-shadow: none; color: var(--ink-soft); }
.drumchart-mac .lp-reset:hover { color: var(--ink); background: rgba(127, 127, 127, 0.14); }

/* The inspector ends on its action. */
.drumchart-mac .lp-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; }
.drumchart-mac .lp-export { flex: 1 1 auto; min-height: 28px; font-size: 13px; }
.drumchart-mac .lp-export .mac-key { color: rgba(255, 255, 255, 0.75); }

/* A dial held at the edge of the page says so, in the accent. */
.drumchart-mac .lp-value.at-edge { color: var(--accent); font-weight: 600; }

/* The dial takes the pointer itself in the Mac app (panelSlider): nothing
   else may pan or track it. */
.drumchart-mac .lp-slider { touch-action: none; }
