.po-template-dialog{--po-border:var(--graphite-700);--po-soft:var(--graphite-800);box-sizing:border-box;width:min(720px,calc(100vw - 24px));max-height:85vh;overflow:auto;border:1px solid var(--po-border);border-radius:14px;padding:clamp(14px,3vw,24px);background:var(--graphite-900,#181b22);color:var(--paper,#f5f6f8)}
.po-template-dialog input:not([type=checkbox]),.po-template-dialog select,.po-template-dialog textarea{box-sizing:border-box;width:100%;min-width:0}
.po-template-line label{display:grid;gap:5px}
.po-template-dialog::backdrop{background:#0008}
.po-template-header,.po-template-actions,.po-template-picker-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.po-template-header h2{margin:0}
.po-template-dialog .po-form{padding:0;max-width:none}
.po-template-dialog [hidden]{display:none!important}
.po-template-list{margin:12px 0}
.po-template-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--graphite-700)}
.po-template-list small{display:block}
.po-template-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(60px,1fr) minmax(92px,1fr) auto;align-items:end;gap:8px;margin:8px 0}
.po-template-line label{margin:0}
.po-template-actions{margin-top:12px}
.po-template-picker-actions{margin:6px 0 14px;align-items:flex-start}
.po-template-picker-actions small{flex:1 1 180px}
@media(max-width:540px){.po-template-line{grid-template-columns:1fr 1fr}.po-template-line label:first-child{grid-column:1/-1}}