/* wbtpl1-20261015 — Entry templates (wb2_template) */
body.tp-open{overflow:hidden}
.tp-start{margin:4px 0 8px}
.tp-start-k{margin:0 0 6px;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:#A99C86}
.tp-start-row{display:flex;flex-wrap:wrap;gap:6px}
.tp-start-row .tp-start-b{min-height:36px;padding:0 12px;font-size:14px}
.tp-root{position:fixed;inset:0;z-index:2000;background:radial-gradient(ellipse at 50% 0%,#0b2433 0%,#000F17 70%);color:#EDE3CF;font-family:"Source Sans 3","Source Sans Pro",system-ui,sans-serif;display:flex;padding:16px;box-sizing:border-box}
.tp-frame{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid rgba(201,162,90,.45);border-radius:8px;padding:12px 16px;gap:10px;background:rgba(0,15,23,.6)}
.tp-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tp-tt{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-width:0}
.tp-top h2{margin:0;font-family:Cinzel,"Palatino Linotype",serif;font-size:18px;font-weight:600;letter-spacing:.05em;color:#F2D7AC}
.tp-dim{font-size:13px;color:#A99C86}
.tp-root button.tp-btn{all:unset;box-sizing:border-box;cursor:pointer;min-height:32px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(201,162,90,.45);border-radius:6px;font-size:13px;color:#F2D7AC;background:rgba(0,15,23,.6);white-space:nowrap}
.tp-root button.tp-btn:hover,.tp-root button.tp-btn:focus-visible{border-color:#E0B25E;outline:none}
.tp-root button.tp-btn.is-on{background:#F2D7AC;color:#1a1208;border-color:#F2D7AC;font-weight:600}
.tp-root button.tp-btn.is-primary{background:#C9773B;border-color:#C9773B;color:#170c04;font-weight:600}
.tp-root button.tp-btn:disabled{opacity:.45;cursor:default}
.tp-chips{display:flex;flex-wrap:wrap;gap:6px}
.tp-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}
.tp-main{overflow:auto;min-height:0;margin:0;padding:4px 8px 16px 0}
.tp-kick{margin:0 0 4px;font-family:Cinzel,serif;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#C9A25A}
.tp-root input.tp-title{all:unset;box-sizing:border-box;display:block;width:100%;font-family:Cinzel,"Palatino Linotype",serif;font-size:28px;color:#F2D7AC;border-bottom:1px solid rgba(201,162,90,.35);padding:4px 0}
.tp-root input.tp-title::placeholder{color:rgba(242,215,172,.4)}
.tp-root input.tp-sub{all:unset;box-sizing:border-box;display:block;width:100%;font-size:15px;color:#EDE3CF;padding:8px 0 12px;font-style:italic}
.tp-root input.tp-sub::placeholder{color:#7f7564}
.tp-fields{display:flex;flex-direction:column}
.tp-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;align-items:start;padding:8px 0;border-top:1px solid rgba(201,162,90,.18)}
.tp-row.is-secret{background:rgba(122,79,154,.1);border-top-color:rgba(180,138,214,.35);padding:8px}
.tp-l{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#A99C86;padding-top:6px;overflow-wrap:anywhere}
.tp-row.is-secret .tp-l{color:#CDB6E6}
.tp-v{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0}
.tp-root .tp-v textarea,.tp-root .tp-v input[type=text]{all:unset;box-sizing:border-box;display:block;width:100%;min-height:32px;padding:6px 8px;border:1px solid rgba(201,162,90,.22);border-radius:6px;background:rgba(0,10,16,.5);font-size:14px;line-height:1.45;color:#EDE3CF;white-space:pre-wrap;field-sizing:content;max-height:240px;overflow:auto}
.tp-root .tp-v textarea:focus,.tp-root .tp-v input[type=text]:focus{border-color:#E0B25E}
.tp-links{flex-direction:row;flex-wrap:wrap;align-items:center}
.tp-chip{display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:0 4px 0 10px;border:1px solid rgba(201,162,90,.45);border-radius:15px;font-size:13px;color:#F2D7AC}
.tp-root button.tp-x{all:unset;cursor:pointer;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;font-size:15px;color:#A99C86}
.tp-root button.tp-x:hover,.tp-root button.tp-x:focus-visible{color:#F2D7AC;background:rgba(201,162,90,.18);outline:none}
.tp-root button.tp-add{all:unset;cursor:pointer;box-sizing:border-box;min-height:30px;padding:0 10px;border:1px dashed rgba(201,162,90,.5);border-radius:15px;font-size:13px;color:#C9A25A}
.tp-root button.tp-add:focus-visible,.tp-root button.tp-add:hover{border-color:#E0B25E;outline:none}
.tp-pick{position:absolute;top:100%;left:0;z-index:4;width:min(320px,100%);margin-top:4px;border:1px solid rgba(201,162,90,.55);border-radius:8px;background:#071a25;box-shadow:0 8px 24px rgba(0,0,0,.5);padding:8px}
.tp-root .tp-pick input.tp-pq{all:unset;box-sizing:border-box;display:block;width:100%;min-height:34px;padding:0 8px;border:1px solid rgba(201,162,90,.35);border-radius:6px;font-size:14px;color:#EDE3CF}
.tp-pl{list-style:none;margin:6px 0 0;padding:0;max-height:240px;overflow:auto}
.tp-root .tp-pl button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;justify-content:space-between;gap:8px;width:100%;min-height:34px;padding:4px 8px;border-radius:4px;font-size:14px;color:#EDE3CF}
.tp-root .tp-pl button small{font-size:13px;color:#A99C86}
.tp-root .tp-pl button:hover,.tp-root .tp-pl button:focus-visible{background:rgba(201,162,90,.15);outline:none}
.tp-err{margin:8px 0 0;color:#f0a58a;font-size:14px}
.tp-panel{overflow:auto;min-height:0;border:1px solid rgba(201,162,90,.35);border-radius:6px;padding:12px}
.tp-panel .tp-kick{font-size:15px;letter-spacing:.08em;color:#F2D7AC}
.tp-sec{margin:14px 0 6px;font-family:Cinzel,serif;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:#F2D7AC}
.tp-fl,.tp-lk{list-style:none;margin:0;padding:0}
.tp-fr{display:flex;align-items:center;gap:6px;border-bottom:1px solid rgba(201,162,90,.15);padding:2px 0}
.tp-root .tp-fr input{all:unset;box-sizing:border-box;flex:1;min-width:0;min-height:30px;padding:0 6px;border-radius:4px;font-size:14px;color:#EDE3CF}
.tp-root .tp-fr input:focus{background:rgba(201,162,90,.1);outline:1px solid rgba(224,178,94,.6)}
.tp-k{font-size:13px;color:#A99C86;white-space:nowrap}
.tp-addf{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tp-root .tp-addf select{min-height:32px;font-size:13px;background:rgba(0,15,23,.6);color:#EDE3CF;border:1px solid rgba(201,162,90,.45);border-radius:6px;padding:0 6px}
.tp-lk li{display:flex;justify-content:space-between;gap:8px;font-size:14px;padding:4px 0;border-bottom:1px solid rgba(201,162,90,.12)}
.tp-ck{display:flex;align-items:center;gap:8px;min-height:30px;font-size:14px;cursor:pointer;text-transform:none;letter-spacing:normal}
.tp-ck input{accent-color:#C9773B;width:16px;height:16px}
.tp-note{margin-top:14px;padding:10px;border:1px solid rgba(201,162,90,.3);border-radius:6px;font-size:13px;color:#CFC3AE;line-height:1.45}
.tp-note b{color:#F2D7AC}
.tp-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tp-acts{display:flex;gap:8px}
@media (max-width:820px){
  .tp-root{padding:0}
  .tp-frame{border-radius:0;padding:8px 10px 0;overflow:auto}
  .tp-body{display:block;flex:none}
  .tp-main{overflow:visible;padding:0}
  .tp-panel{margin-top:12px;overflow:visible}
  .tp-row{grid-template-columns:minmax(0,1fr);gap:4px}
  .tp-l{padding-top:0}
  .tp-root input.tp-title{font-size:24px}
  .tp-root button.tp-btn,.tp-root button.tp-add,.tp-root .tp-pl button,.tp-root .tp-addf select,.tp-ck{min-height:44px}
  .tp-root button.tp-x{width:44px;height:44px}
  .tp-root .tp-fr input,.tp-root .tp-pick input.tp-pq,.tp-root input.tp-sub{min-height:44px}
  .tp-chip{min-height:44px}
  .tp-root .tp-v textarea{min-height:44px}
  .tp-foot{position:sticky;bottom:0;background:#04121b;padding:8px 0}
  .tp-start-row .tp-start-b{min-height:44px}
}
/* wbnames1: name row with the generator button */
.tp-trow{display:flex;align-items:flex-end;gap:10px}
.tp-trow .tp-title{flex:1;min-width:0}
.tp-root button.tp-ng{flex:none;margin-bottom:6px}
@media (max-width:820px){.tp-trow{flex-wrap:wrap}.tp-root button.tp-ng{min-height:44px}}
