/* «لوحة تحكم برزنتا» */
.pc { --pc-line: #e3e9ee; --pc-soft: #f5f8fa; --pc-ink: #17202a; --pc-muted: #6b7a86; margin-inline: calc((100% - min(1480px, 100vw - 40px)) / 2); padding: 0 !important; overflow: hidden; scroll-margin-top: 20px; }
.pc button { font: inherit; cursor: pointer; }
.pc svg { width: 16px; height: 16px; flex: none; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; background: linear-gradient(120deg, #11151c, color-mix(in srgb, var(--brand-primary) 70%, #11151c)); color: #fff; flex-wrap: wrap; }
.pc-head h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px !important; font-size: 20px !important; color: #fff; }
.pc-head h2 svg { width: 22px; height: 22px; }
.pc-head p { margin: 0; color: #d6dde3; font-size: 13px; }
.pc-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: #ffffff14; }
.pc-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 11px; background: transparent; color: #dfe6ea; font-size: 13px; font-weight: 700; }
.pc-tabs button.active { background: #fff; color: #11151c; }
.pc-pane[hidden] { display: none !important; }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 1px solid var(--pc-line, #e3e9ee); border-radius: 10px; background: #fff; color: #17202a; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pc-btn:hover:not(:disabled) { border-color: var(--brand-primary); color: var(--brand-primary); }
.pc-btn.primary { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--desktop-on-accent, #fff); }
.pc-btn.primary:hover:not(:disabled) { color: var(--desktop-on-accent, #fff); filter: brightness(1.07); }
.pc-btn.ghost { border-color: transparent; background: transparent; }
.pc-btn:disabled { opacity: .45; cursor: default; }
.pc-btn.is-busy svg { animation: pcSpin 1s linear infinite; }
@keyframes pcSpin { to { transform: rotate(360deg); } }
.pc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; white-space: nowrap; background: #e8f6ee; color: #137a43; }
.pc-chip.is-info { background: #e7f0ff; color: #1d4fb8; }
.pc-chip.is-warn { background: #fff3dc; color: #9a5b00; }
.pc-chip.is-muted { background: #eef1f4; color: #5b6873; }
.pc-chip.is-bad { background: #fde8e8; color: #b42318; }
.pc-chip.is-brand { background: color-mix(in srgb, var(--brand-primary) 14%, #fff); color: var(--brand-primary); }
.pc-empty { padding: 26px; text-align: center; color: #7a8792; font-size: 13px; }
.pc-empty.is-bad, [role=status].is-bad { color: #b42318 !important; }

/* ---------------------------------------------------------------- catalog */
.pc-catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 560px; }
.pc-sections { padding: 16px 12px; border-left: 1px solid var(--pc-line); background: var(--pc-soft); display: grid; align-content: start; gap: 4px; }
.pc-sections h3 { margin: 6px 8px 6px; font-size: 11px; font-weight: 800; color: var(--pc-muted); }
.pc-section { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; text-align: right; color: var(--pc-ink); }
.pc-section > svg { width: 19px; height: 19px; color: var(--brand-primary); }
.pc-section span { display: grid; min-width: 0; }
.pc-section b { font-size: 13px; }
.pc-section small { font-size: 10.5px; color: var(--pc-muted); }
.pc-section:hover { background: #fff; }
.pc-section.active { background: #fff; border-color: var(--pc-line); box-shadow: 0 6px 16px #0f172a0d; }
.pc-section.is-removed { opacity: .7; }
.pc-main { min-width: 0; padding: 18px 22px 90px; }
.pc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pc-section-title { display: flex; align-items: center; gap: 12px; }
.pc-section-title > svg { width: 34px; height: 34px; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--brand-primary) 12%, #fff); color: var(--brand-primary); }
.pc-section-title h3 { margin: 0; font-size: 18px; }
.pc-section-title small { color: var(--pc-muted); font-size: 12px; }
.pc-section-rule { display: flex; align-items: center; gap: 8px; }
.pc-banner { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #eef1f4; font-size: 12.5px; font-weight: 600; }
.pc-banner.is-warn { background: #fff7e8; color: #8a5300; }
.pc-banner.is-info { background: #ecf3ff; color: #1d4fb8; }
.pc-banner.is-bad, .pc-banner.is-muted { background: #fdf0f0; color: #a3261b; }
.pc-toolbar { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; flex-wrap: wrap; }
.pc-filter { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--pc-soft); border: 1px solid var(--pc-line); }
.pc-filter button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--pc-muted); }
.pc-filter button b { font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: #fff; }
.pc-filter button.active { background: #fff; color: var(--pc-ink); box-shadow: 0 2px 6px #0f172a12; }
.pc-toolbar input[type=search] { flex: 1; min-width: 180px; height: 38px; padding: 0 12px; border: 1px solid var(--pc-line); border-radius: 10px; font: inherit; font-size: 13px; }
.pc-bulk { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 12px; background: color-mix(in srgb, var(--brand-primary) 10%, #fff); font-size: 12px; font-weight: 800; }
.pc-bulk[hidden] { display: none; }
.pc-items h4 { margin: 18px 0 10px; font-size: 12.5px; color: var(--pc-muted); font-weight: 800; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pc-item { position: relative; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--pc-line); border-radius: 15px; background: #fff; overflow: hidden; transition: .15s; }
.pc-item:hover { box-shadow: 0 10px 24px #0f172a12; }
.pc-item.is-selected { border-color: var(--brand-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary) 30%, transparent); }
.pc-item.is-muted .pc-preview, .pc-item.is-bad .pc-preview { opacity: .45; filter: grayscale(.7); }
.pc-pick { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #ffffffe6; box-shadow: 0 1px 4px #0002; }
.pc-pick input { accent-color: var(--brand-primary); width: 15px; height: 15px; margin: 0; }
.pc-preview { position: relative; height: 128px; display: grid; place-items: center; overflow: hidden; background: #f3f6f8; border-bottom: 1px solid var(--pc-line); }
.pc-preview > svg, .pc-preview > img { width: 92%; height: auto; max-height: 116px; }
.pc-preview > svg { border-radius: 8px; box-shadow: 0 2px 8px #0f172a1a; }
.pc-preview .pc-mini { position: relative; width: 100%; overflow: hidden; }
.pc-preview.is-library .library-visual-preview { width: 100%; height: 100%; }
.pc-preview-fallback svg { width: 34px; height: 34px; color: #9aa8b3; }
.pc-preview .shape-library-preview { width: 70px; height: 70px; display: grid; place-items: center; color: var(--brand-primary); }
.pc-preview .shape-library-preview svg { width: 52px; height: 52px; }
.pc-icon-style { display: grid; place-items: center; }
.pc-item-copy { display: grid; gap: 2px; padding: 10px 12px 6px; min-width: 0; }
.pc-item-copy b { font-size: 13px; }
.pc-item-copy small { font-size: 11px; color: var(--pc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-item-foot { display: flex; align-items: center; gap: 6px; padding: 6px 8px 10px 12px; flex-wrap: wrap; }
.pc-actions { display: inline-flex; gap: 2px; margin-inline-start: auto; }
.pc-actions button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #4f5e69; }
.pc-actions button:hover { background: var(--pc-soft); color: var(--brand-primary); }
.pc-actions [data-remove]:hover { color: #b42318; }
.pc-whole { display: grid; place-items: center; gap: 10px; padding: 70px 20px; color: var(--pc-muted); text-align: center; }
.pc-whole svg { width: 42px; height: 42px; color: #b5c0c8; }
.pc-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--pc-line); background: #ffffffee; backdrop-filter: blur(6px); font-size: 12.5px; }
.pc-savebar [data-dirty] { font-weight: 800; color: var(--pc-muted); }
.pc-savebar.is-dirty [data-dirty] { color: #9a5b00; }
.pc-savebar.is-dirty [data-dirty]::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: #f59e0b; }
.pc-savebar p { flex: 1; margin: 0; color: var(--pc-muted); }

/* ----------------------------------------------------------------- dialog */
.pc-dialog { width: min(560px, 94vw); max-height: 88vh; padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px #0f172a55; font-family: inherit; }
.pc-dialog::backdrop { background: #0f172a80; backdrop-filter: blur(3px); }
.pc-dialog form { display: grid; max-height: 88vh; grid-template-rows: auto 1fr auto; }
.pc-dialog header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; }
.pc-dialog header b { display: block; font-size: 16px; }
.pc-dialog header small { color: #6b7a86; font-size: 12px; }
.pc-dialog header [data-x] { border: 0; background: #f2f5f7; width: 32px; height: 32px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.pc-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid #eef2f5; }
.pc-dialog .pd-fields { padding: 4px 20px 16px; overflow: auto; }
.pc-modes { display: grid; gap: 6px; padding: 0 20px 12px; overflow: auto; }
.pc-mode { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e3e9ee; border-radius: 12px; cursor: pointer; }
.pc-mode:has(input:checked) { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 7%, #fff); }
.pc-mode input { accent-color: var(--brand-primary); }
.pc-mode svg { width: 18px; height: 18px; color: #4f5e69; }
.pc-mode.is-bad svg { color: #b42318; }
.pc-mode span { display: grid; }
.pc-mode b { font-size: 13px; }
.pc-mode small { font-size: 11px; color: #6b7a86; }
.pc-orgs { margin: 0 20px 14px; border: 1px solid #e3e9ee; border-radius: 12px; overflow: hidden; }
.pc-orgs[hidden] { display: none; }
.pc-orgs-head { display: flex; gap: 6px; padding: 8px; background: #f5f8fa; }
.pc-orgs-head input { flex: 1; height: 34px; padding: 0 10px; border: 1px solid #e3e9ee; border-radius: 9px; font: inherit; font-size: 12.5px; }
.pc-orgs-head button { border: 0; background: #fff; border-radius: 9px; padding: 0 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.pc-org-list { max-height: 220px; overflow: auto; display: grid; }
.pc-org-list label { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid #f0f3f5; font-size: 13px; cursor: pointer; }
.pc-org-list label[hidden] { display: none; }
.pc-org-list input { accent-color: var(--brand-primary); }
.pc-org-list small { color: #8a98a3; font-size: 11px; }

/* --------------------------------------------------------------- designer */
.pd { display: grid; gap: 0; }
.pd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--pc-line); flex-wrap: wrap; }
.pd-menu { display: flex; gap: 6px; align-items: center; }
.pd-title { flex: 1; min-width: 200px; display: grid; justify-items: center; }
.pd-title input { width: min(380px, 100%); border: 1px solid transparent; border-radius: 9px; padding: 5px 10px; text-align: center; font: inherit; font-size: 16px; font-weight: 800; background: transparent; }
.pd-title input:hover, .pd-title input:focus { border-color: var(--pc-line); background: #fff; outline: none; }
.pd-title small { color: var(--pc-muted); font-size: 11px; }
.pd-work { display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; min-height: 520px; }
.pd-side { display: grid; align-content: start; gap: 10px; padding: 12px; background: var(--pc-soft); min-width: 0; }
.pd-layers { border-left: 1px solid var(--pc-line); }
.pd-props { border-right: 1px solid var(--pc-line); max-height: 720px; overflow: auto; }
.pd-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pd-side-head b { font-size: 13px; }
.pd-side-head small { color: var(--pc-muted); font-size: 11px; }
.pd-add { display: flex; gap: 3px; }
.pd-add button, .pd-arrange button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--pc-line); border-radius: 8px; background: #fff; color: #33414c; }
.pd-add button:hover, .pd-arrange button:hover:not(:disabled) { border-color: var(--brand-primary); color: var(--brand-primary); }
.pd-arrange { display: flex; flex-wrap: wrap; gap: 4px; }
.pd-arrange button:disabled { opacity: .4; cursor: default; }
.pd-layer-list { display: grid; gap: 3px; max-height: 360px; overflow: auto; }
.pd-layer { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: right; color: var(--pc-ink); }
.pd-layer svg { grid-row: span 2; width: 15px; height: 15px; color: var(--pc-muted); }
.pd-layer span { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-layer small { font-size: 10px; color: #98a5af; text-align: right; }
.pd-layer:hover { background: #fff; }
.pd-layer.active { background: #fff; border-color: var(--brand-primary); }
.pd-layer.active svg { color: var(--brand-primary); }
.pd-center { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.pd-stagebar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--pc-line); font-size: 12px; flex-wrap: wrap; }
.pd-stagebar label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #3b4853; }
.pd-stagebar select { height: 30px; border: 1px solid var(--pc-line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12px; }
.pd-check input { accent-color: var(--brand-primary); }
.pd-ref { display: inline-flex; align-items: center; gap: 6px; }
.pd-ref[hidden] { display: none; }
.pd-ref input[type=range] { width: 90px; accent-color: var(--brand-primary); }
.pd-zoom { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.pd-zoom button { border: 1px solid var(--pc-line); background: #fff; border-radius: 7px; height: 28px; min-width: 28px; font-size: 12px; font-weight: 700; }
.pd-zoom b { min-width: 42px; text-align: center; font-size: 11.5px; }
.pd-stage-wrap { position: relative; overflow: auto; padding: 24px; min-height: 420px; background: #e9eef2; background-image: radial-gradient(#d5dde4 1px, transparent 1px); background-size: 16px 16px; }
.pd-sizer { position: relative; margin: 0 auto; }
.pd-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; box-shadow: 0 0 0 1px #c3ced7, 0 14px 40px #0f172a1a; direction: ltr; }
.pd-stage .pd-canvas { z-index: 1; position: absolute !important; inset: 0 auto auto 0; overflow: visible !important; background: #fff; direction: rtl; pointer-events: none; }
.pd-reference { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: 3; pointer-events: none; }
.pd-reference[hidden] { display: none; }
.pd-overlay { position: absolute; inset: 0; z-index: 4; cursor: default; touch-action: none; }
.pd-box { position: absolute; outline: 1px dashed transparent; cursor: move; }
.pd-box:hover { outline-color: color-mix(in srgb, var(--brand-primary) 70%, transparent); }
.pd-box.is-selected { outline: calc(1.6px * var(--z, 1)) solid var(--brand-primary); }
.pd-h { position: absolute; width: calc(10px * var(--z, 1)); height: calc(10px * var(--z, 1)); background: #fff; border: calc(1.6px * var(--z, 1)) solid var(--brand-primary); border-radius: 3px; transform: translate(-50%, -50%); }
.pd-h-n { left: 50%; top: 0; cursor: ns-resize; } .pd-h-s { left: 50%; top: 100%; cursor: ns-resize; }
.pd-h-e { left: 100%; top: 50%; cursor: ew-resize; } .pd-h-w { left: 0; top: 50%; cursor: ew-resize; }
.pd-h-ne { left: 100%; top: 0; cursor: nesw-resize; } .pd-h-sw { left: 0; top: 100%; cursor: nesw-resize; }
.pd-h-nw { left: 0; top: 0; cursor: nwse-resize; } .pd-h-se { left: 100%; top: 100%; cursor: nwse-resize; }
.pd-guide { position: absolute; background: #ec4899; pointer-events: none; }
.pd-guide[hidden] { display: none; }
.pd-guide-v { top: -2000px; bottom: -2000px; width: calc(1px * var(--z, 1)); }
.pd-guide-h { left: -2000px; right: -2000px; height: calc(1px * var(--z, 1)); }
.pd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-field { display: grid; gap: 5px; min-width: 0; font-size: 11.5px; font-weight: 700; color: #3b4853; }
.pd-field.is-wide { grid-column: 1 / -1; }
.pd-field[hidden] { display: none; }
.pd-field > span { display: flex; justify-content: space-between; }
.pd-field input:not([type=checkbox]):not([type=range]):not([type=color]), .pd-field select, .pd-field textarea { width: 100%; min-height: 34px; padding: 6px 9px; border: 1px solid var(--pc-line); border-radius: 9px; background: #fff; font: inherit; font-size: 12.5px; color: var(--pc-ink); }
.pd-field textarea { resize: vertical; line-height: 1.6; }
.pd-field input:disabled { background: #f1f4f6; color: #8b98a2; }
.pd-field input[type=range] { accent-color: var(--brand-primary); }
.pd-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pd-seg { display: flex; gap: 3px; }
.pd-seg button { flex: 1; display: grid; place-items: center; height: 32px; border: 1px solid var(--pc-line); border-radius: 8px; background: #fff; }
.pd-seg button.active { border-color: var(--brand-primary); color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 8%, #fff); }
.pd-colors { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pd-colors button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid #0002; background: var(--c); padding: 0; }
.pd-colors button.is-clear { background: repeating-conic-gradient(#d5dce2 0 25%, #fff 0 50%) 50% / 10px 10px; }
.pd-colors button.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-primary); }
.pd-custom { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border: 1px solid var(--pc-line); border-radius: 8px; background: #fff; font-size: 10.5px; cursor: pointer; }
.pd-custom.active { border-color: var(--brand-primary); }
.pd-custom input { width: 22px; height: 22px; padding: 0; border: 0; background: none; }
.pd-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); gap: 3px; max-height: 150px; overflow: auto; }
.pd-icon-grid button { display: grid; place-items: center; height: 32px; border: 1px solid transparent; border-radius: 7px; background: #fff; }
.pd-icon-grid button:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.pd-note { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.7; color: var(--pc-muted); font-weight: 500; }
.pd-bottom { border-top: 1px solid var(--pc-line); }
.pd-bottom-tabs { display: flex; gap: 2px; padding: 8px 12px 0; background: var(--pc-soft); border-bottom: 1px solid var(--pc-line); }
.pd-bottom-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; background: transparent; font-size: 12.5px; font-weight: 700; color: var(--pc-muted); }
.pd-bottom-tabs button.active { background: #fff; border-color: var(--pc-line); color: var(--pc-ink); margin-bottom: -1px; }
.pd-btab { padding: 16px; }
.pd-btab[hidden] { display: none; }
.pd-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.pd-record { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--pc-line); border-radius: 13px; }
.pd-record-preview { justify-self: center; overflow: hidden; }
.pd-record b { display: block; font-size: 13px; }
.pd-record small { color: var(--pc-muted); font-size: 11px; }
.pd-record-actions { display: flex; gap: 2px; }
.pd-image { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(260px, 1.2fr); gap: 18px; }
.pd-drop { display: grid; place-items: center; min-height: 240px; border: 2px dashed #c7d2da; border-radius: 16px; background: var(--pc-soft); cursor: pointer; text-align: center; padding: 14px; overflow: hidden; }
.pd-drop.is-over { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 6%, #fff); }
.pd-drop img { max-width: 100%; max-height: 300px; border-radius: 10px; }
.pd-drop img[hidden], .pd-drop [hidden] { display: none; }
.pd-drop span { display: grid; gap: 6px; justify-items: center; color: var(--pc-muted); font-size: 12px; }
.pd-drop span svg { width: 34px; height: 34px; color: var(--brand-primary); }
.pd-drop span b { color: var(--pc-ink); font-size: 14px; }
.pd-image-form { display: grid; gap: 12px; align-content: start; }
.pd-image-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.pd-image-form select, .pd-image-form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--pc-line); border-radius: 10px; font: inherit; font-size: 13px; }
.pd-image-form [role=status] { margin: 0; font-size: 12.5px; line-height: 1.7; color: #1d4fb8; }
.pd-code textarea { width: 100%; min-height: 260px; padding: 12px; border: 1px solid var(--pc-line); border-radius: 12px; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: #0f172a; color: #e2e8f0; }
.pd-code-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.pd-code-actions p { margin: 0; font-size: 12px; color: var(--pc-muted); }
.pd-access { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--pc-line); border-radius: 10px; }
.pd-status { margin: 0; padding: 8px 16px 14px; font-size: 12.5px; color: var(--pc-muted); min-height: 20px; }
@media (max-width: 1100px) {
  .pd-work { grid-template-columns: 1fr; }
  .pd-layers, .pd-props { border: 0; }
  .pd-props { max-height: none; }
  .pc-catalog { grid-template-columns: 1fr; }
  .pc-sections { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-left: 0; border-bottom: 1px solid var(--pc-line); }
  .pc-sections h3 { grid-column: 1 / -1; }
  .pd-image { grid-template-columns: 1fr; }
}
/* Individuals */
.pi{display:grid;gap:14px}
.pi-settings{display:grid;grid-template-columns:1.3fr repeat(5,1fr) auto;gap:12px;align-items:end;padding:16px;border:1px solid #e3e9ee;border-radius:14px;background:#fafbfc}
.pi-settings>div b{display:block;font-size:14px}.pi-settings>div small{font-size:11.5px;color:#6f7f89}
.pi-settings label,.pi-edit label{display:grid;gap:5px;font-size:11.5px;font-weight:600;color:#4b5c66}
.pi-settings input,.pi-edit input,.pi-search input{height:38px;padding:0 10px;border:1px solid #dfe5ea;border-radius:10px;font:inherit;background:#fff}
.pi-settings [role=status]{grid-column:1/-1;margin:0;font-size:12px;color:#4b5c66;min-height:0}
.pi-search{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #dfe5ea;border-radius:11px;background:#fff}.pi-search svg{width:16px;color:#8193a1}.pi-search input{border:0;flex:1;outline:none}
.pi-list{display:grid;gap:8px}
.pi-row{display:grid;grid-template-columns:1.2fr 1.2fr 1.3fr auto;gap:14px;align-items:center;padding:12px 14px;border:1px solid #e6ebef;border-radius:13px;background:#fff}
.pi-who b{display:block;font-size:13px}.pi-who small,.pi-state small{display:block;font-size:11px;color:#71828d;margin-top:2px}
.pi-edit{display:flex;gap:8px;align-items:end}.pi-edit input{width:76px}
.pi-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.pi-actions button,.pi-edit button{height:36px;padding:0 11px;font-size:11.5px}
.pi-empty{color:#71828d;font-size:13px;padding:18px;text-align:center}
@media(max-width:1100px){.pi-settings{grid-template-columns:1fr 1fr}.pi-row{grid-template-columns:1fr 1fr}}
/* Trials from preznta.com */
.pt-settings{grid-template-columns:1.4fr 1.2fr repeat(4,1fr) auto}
.pt-switch{display:flex!important;align-items:center;gap:8px;height:38px}.pt-switch input{width:16px;height:16px}
.pt-row{grid-template-columns:1.3fr 1fr 1.4fr auto}
.pt-row a{color:#0b6ad6;text-decoration:none;font-size:11.5px}
.pt-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--c);margin-inline-end:7px;box-shadow:0 0 0 2px #fff,0 0 0 3px #e3e9ee}
@media(max-width:1100px){.pt-settings{grid-template-columns:1fr 1fr}.pt-row{grid-template-columns:1fr 1fr}}
