/* Plotted Calendar — preview and website chrome. Values come from tokens.css; the plot itself is drawn by PlotCal.render. */
html, body { margin: 0; }
body { background: var(--bench); color: var(--label); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }

.pc-wrap { padding: var(--space-4); }
.pc-sheet { background: var(--bench); }
.pc-sheet svg { display: block; width: 100%; height: auto; }

.pc-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; }
.pc-grid { display: grid; gap: var(--space-4); }

.pc-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label-muted); }
.pc-caption { font-size: 13px; line-height: 18px; color: var(--label-muted); margin: 0; }
.pc-caption b { color: var(--label); font-weight: 600; }
.pc-readout { font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--label); }
.pc-readout .pc-u { color: var(--label-muted); }
.pc-code { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--label); background: var(--bench-raised); border-radius: var(--radius-md); padding: var(--space-3); margin: 0; overflow: auto; white-space: pre; }
.pc-panel { background: var(--bench-raised); border-radius: var(--radius-md); padding: var(--space-4); }

/* form controls for the sheet builder */
.pc-controls { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: flex-end; margin-bottom: var(--space-4); }
.pc-field { display: flex; flex-direction: column; gap: var(--space-1); }
.pc-field input, .pc-field select {
  font: inherit; font-size: 14px; line-height: 20px; color: var(--label); background: var(--bench-raised);
  border: 1px solid var(--label-muted); border-radius: var(--radius-sm); padding: 4px var(--space-2); min-height: 30px; box-sizing: border-box;
}
.pc-field input[type=number] { width: 84px; font-family: var(--font-mono); font-size: 13px; }
.pc-field input:focus-visible, .pc-field select:focus-visible, .pc-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pc-btn { font: inherit; font-size: 14px; color: var(--label); background: var(--bench-raised); border: 1px solid var(--label-muted); border-radius: var(--radius-sm); padding: 4px var(--space-3); min-height: 30px; cursor: pointer; }
.pc-btn[aria-pressed=true] { background: var(--label); color: var(--bench-raised); border-color: var(--label); }

/* pen swatch: a short stroke in the pen's ink on paper — square, never a filled chip */
.pc-pen { display: inline-block; width: 28px; height: 14px; background: var(--paper); border: 1px solid var(--paper-edge); vertical-align: middle; position: relative; border-radius: var(--radius-0); }
.pc-pen::after { content: ""; position: absolute; left: 4px; right: 4px; top: 6px; height: 0; border-top: 2px solid currentColor; }

.pc-warn { margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; color: var(--label); }
.pc-warn li::before { content: "Check · "; font-weight: 600; color: var(--ink-red); }
