/* The Mac app's design (mac.css), Build: the chart on the left as the
   document, the editor docked down the right as the Mac's inspector is
   (Pages, Keynote), a box's settings in it under the grid ("This box"), its
   tools in its own top strip while it is pointed at, and the "+" opening a
   Mac menu. The editor keeps its width rule from app.css: the grid's cells
   are sized from it. */

.drumchart-mac .split { flex-direction: row-reverse; }
.drumchart-mac .editor-pane {
  border-right: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.45);
  background: var(--mac-sidebar);
  padding: 14px 16px 16px;
}
.drumchart-mac .chart-pane { background: var(--desk-build); padding: 16px 20px; }
.drumchart-mac .editor-pane-empty { color: var(--ink-soft); }

/* The panel's heading: GROOVE  Intro  1 bar, played ×4        × */
.drumchart-mac .pep-head { gap: 8px; align-items: center; }
.drumchart-mac .pep-head .pc-type {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent);
}
.drumchart-mac .pep-head .pc-summary { color: var(--ink-soft); font-size: 13px; }
.drumchart-mac .pep-head .pc-summary strong { color: var(--ink); font-weight: 600; }
.drumchart-mac .pep-head .icon-btn { background: transparent; box-shadow: none; color: var(--ink-soft); }
.drumchart-mac .pep-head .icon-btn:hover { background: rgba(127, 127, 127, 0.18); color: var(--ink); }

/* This box: Played ×N = M bars, the label and where it sits, Duplicate,
   Delete, on one line (Adam, 21 Oct: as rows it took the groove editor's
   room), wrapping only in a narrow panel. */
.drumchart-mac .mac-this-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.drumchart-mac .mac-box-part { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.drumchart-mac .mac-box-labelled { flex: 1 1 170px; }
.drumchart-mac .mac-box-label { color: var(--ink-soft); font-size: 12px; }
.drumchart-mac .mac-box-note { color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.drumchart-mac .mac-stepper { display: inline-flex; align-items: center; gap: 4px; }
.drumchart-mac .mac-stepper .btn { min-width: 22px; padding: 0 6px; }
.drumchart-mac .mac-times { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; color: var(--ink-soft); }
.drumchart-mac .mac-this-box input[type="number"],
.drumchart-mac .mac-this-box input[type="text"] {
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--chrome);
  color: var(--ink);
  font-size: 13px;
}
.drumchart-mac .mac-box-times { width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.drumchart-mac .mac-box-label-input { flex: 1 1 auto; min-width: 70px; }
.drumchart-mac .mac-seg-icons {
  display: inline-flex; flex: none; padding: 2px; gap: 0; 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 .mac-seg-icon {
  appearance: none; border: 0; background: transparent; color: var(--ink-soft);
  width: 28px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.drumchart-mac .mac-seg-icon.on { background: var(--mac-seg-on); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.drumchart-mac .mac-box-actions { margin-left: auto; }
.drumchart-mac .mac-box-ico { display: none; }
/* A narrower window: "= N bars" is left to the heading, which says it, and
   Duplicate and Delete to their icons, so the line stays one line. */
@media (max-width: 1180px) {
  .drumchart-mac .mac-this-box { column-gap: 12px; }
  .drumchart-mac .mac-box-note, .drumchart-mac .mac-box-word { display: none; }
  .drumchart-mac .mac-box-ico { display: inline-flex; }
  .drumchart-mac .mac-box-actions .btn { min-width: 28px; padding: 0 7px; justify-content: center; }
}
.drumchart-mac .mac-key { color: var(--ink-soft); font-size: 11px; margin-left: 2px; }

/* A box's tools, in its own top strip while it is pointed at: grey icons on
   the paper, Delete's red, never over the box above. */
.drumchart-mac .ph-tools.mac-ph-tools {
  right: 2px;
  top: 1px;
  bottom: auto;
  padding: 1px;
  gap: 1px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.drumchart-mac .ph-tools.mac-ph-tools::after { display: none; }
.drumchart-mac .mac-ph-tools .ph-tool {
  width: 20px; height: 18px; padding: 0; color: #4a4a50; background: none; border-radius: 4px;
}
.drumchart-mac .mac-ph-tools .ph-tool:hover { background: rgba(0, 0, 0, 0.08); }
.drumchart-mac .mac-ph-tools .ph-del { color: #d70015; background: none; }
.drumchart-mac .mac-ph-tools .ph-del:hover { background: rgba(215, 0, 21, 0.1); }
/* The number on the box takes a click (goToPlayed in chart.js). */
.drumchart-mac .phrase .ph-bars { cursor: pointer; }
/* Shown on pointing only, not because the box is selected. */
.drumchart-mac .phrase:not(:hover) > .ph-tools.mac-ph-tools { opacity: 0; visibility: hidden; }

/* The Mac menu from a "+": the "+" stays lit while it is open. */
.drumchart-mac .mac-add-menu { min-width: 230px; }

/* The groove editor's controls line, at the Mac's control size so it stays
   one line: Time, Notes, Bars, Play, Toms, zoom and More. */
.drumchart-mac .ge-controls { gap: 6px; flex-wrap: nowrap; }
.drumchart-mac .ge-controls label { font-size: 12px; gap: 4px; }
.drumchart-mac .ge-controls select,
.drumchart-mac .ge-controls input {
  min-height: 22px;
  height: 22px;
  border: 0;
  border-radius: 5px;
  background-color: var(--mac-control);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12), 0 0.5px 1px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  padding: 0 6px;
  font-size: 12px;
}
/* The chevron's room (app.css), which the padding above would take back. */
.drumchart-mac .ge-controls select { padding-right: 22px; }
.drumchart-mac .ge-controls input[type="number"] { width: 40px; }
.drumchart-mac .ge-controls .ge-zoom .btn,
.drumchart-mac .ge-controls .ge-more { min-width: 24px; min-height: 22px; font-size: 13px; padding: 0 4px; }

/* Controls drawn on the white paper (tap tempo, a repeat's bar) are paper
   controls, light whatever the room's theme: the dark ones are for the
   window around it. */
.drumchart-mac .chart .btn {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 0.5px 1px rgba(0, 0, 0, 0.18);
}
.drumchart-mac .chart .btn:hover { background: #f0f0f2; }
.drumchart-mac .chart .btn.primary { background: #007aff; color: #fff; }
.drumchart-mac .chart .btn.danger { color: #d70015; }

/* The recording strip along the bottom: the toolbar's grey, play as a round
   button, the clock in figures that do not jump. */
.drumchart-mac #audio-dock { background: var(--mac-toolbar); border-top: 1px solid rgba(0, 0, 0, 0.45); }
.drumchart-mac #audio-dock .btn.transport {
  width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; border-radius: 50%;
  background: rgba(127, 127, 127, 0.2); box-shadow: none; font-size: 11px;
}
.drumchart-mac #audio-dock .au-clock { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 12px; }

/* A selected section: its paper tinted, without the blue bar down its left
   (Adam, 20 Oct: "this big, long block in blue"). */
.drumchart-mac .chart-section.selected { box-shadow: none; }
