/* Property fields in the right panel (shared/props.js): the same sizes everywhere – labels 84 px, rows 6 px apart,
   fields 28 px tall, checkboxes lined up with the fields. */
.pp-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: var(--panel); border-bottom: 1px solid var(--line-soft); font-size: 12.5px; font-weight: 600; color: var(--text); }
.pp-head .material-symbols-outlined { font-size: 16px; color: var(--muted); }
.pp-head > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-badge { margin-left: auto; flex: none; font-size: 11px; font-weight: 500; color: var(--accent-strong); background: var(--accent-soft); border-radius: 10px; padding: 1px 8px; }
.pf-sec { border-bottom: 1px solid var(--line-soft); }
.pf-sec > summary { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 8px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-2); list-style: none; user-select: none; }
.pf-sec > summary::-webkit-details-marker { display: none; }
.pf-sec > summary::before { content: 'chevron_right'; font-family: 'Material Symbols Outlined'; font-size: 16px; color: var(--muted); transition: transform 0.1s; }
.pf-sec[open] > summary::before { transform: rotate(90deg); }
.pf-sec > summary:hover { color: var(--text); }
.pf-sec-title { flex: 1; }
.pf-rows { display: flex; flex-direction: column; gap: 6px; padding: 2px 10px 12px; }
.pf-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 28px; position: relative; }
.pf-row.pf-stack { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.pf-row.pf-stack .pf-label { text-align: left; cursor: default; }
.pf-label { font-size: 12px; color: var(--muted); text-align: right; cursor: ew-resize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; touch-action: none; }
.pf-label:hover { color: var(--text); }
span.pf-label, .pf-label.pf-static { cursor: default; }
.pf-label.pf-static:hover { color: var(--muted); }
.pf-num, .pf-text, .pf-select { height: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); font: 12.5px var(--mono); padding: 0 8px; min-width: 0; width: 100%; color: var(--text); }
.pf-text, .pf-select { font-family: inherit; font-size: 12.5px; }
.pf-area { height: auto; padding: 6px 8px; line-height: 1.4; resize: vertical; min-height: 54px; }
.pf-num:focus, .pf-text:focus, .pf-select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.pf-row[data-unit] .pf-num { padding-right: 30px; }
.pf-unit { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--faint); pointer-events: none; }
.pf-check { grid-template-columns: 18px minmax(0, 1fr); padding-left: 92px; font-size: 12.5px; cursor: pointer; line-height: 1.35; min-height: 24px; }
.pf-check input { margin: 0; accent-color: var(--accent-strong); }
.pf-rows > .pf-check.pf-flush, .pf-flush .pf-check { padding-left: 0; }
.pf-color { height: 28px; width: 100%; justify-content: flex-start; }
.pf-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.pf-note.grow { flex: 1; }
/* two fields side by side (X and Y, W and H) */
.pf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; padding: 2px 10px 12px; }
.pf-grid2 .pf-row { grid-template-columns: 24px minmax(0, 1fr); }
.pf-rows .pf-grid2 { padding: 0; }
.pf-rows .pf-grid2 .pf-row { grid-template-columns: 46px minmax(0, 1fr); }
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text); white-space: nowrap; }
.pf-btn:hover { background: var(--hover); }
.pf-btn:disabled { opacity: 0.55; cursor: default; }
.pf-btn .material-symbols-outlined { font-size: 17px; }
.pf-btn.on { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-strong); font-weight: 500; }
.pf-btn.primary { background: var(--text); border-color: var(--text); color: var(--surface); height: 32px; }
.pf-btn.primary:hover { background: var(--text-2); }
.pf-rows > .pf-btn { align-self: flex-start; }
.pf-btnrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-seg { display: flex; gap: 3px; flex-wrap: wrap; }
.pf-seg .pf-btn { padding: 0 8px; flex: 1; }
.pf-iconrow { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.pf-ib { width: 30px; height: 28px; border: 0; border-radius: var(--radius-s); background: none; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pf-ib:hover { background: var(--hover); color: var(--text); }
.pf-ib.on { background: var(--accent-soft); color: var(--accent-strong); }
.pf-ib .material-symbols-outlined { font-size: 18px; }
.pf-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
/* a colour button that names its colour (theme colours in the Slide show) */
.pf-colorbtn { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); font: inherit; font-size: 12px; cursor: pointer; color: var(--text); min-width: 0; }
.pf-colorbtn:hover { border-color: var(--accent); }
.pf-colorbtn .sw { width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); flex: none; }
.pf-colorbtn .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.pf-colorbtn .material-symbols-outlined { font-size: 18px; color: var(--muted); }
@media (max-width: 1150px) { .pf-row { grid-template-columns: 74px minmax(0, 1fr); } .pf-check { padding-left: 82px; } }
