/* Editor of the public web — builds on intranet.css */
.we-wide{max-width:none}
.we-status{font-size:13px;color:#cfcdc4;text-align:right}
.we-boot{padding:40px 16px;text-align:center}
.we-msg{padding-block:24px}
.we{display:grid;grid-template-columns:minmax(360px,520px) 1fr;gap:18px;padding:16px;align-items:start;max-width:1600px;margin:0 auto}
.we-edit{display:flex;flex-direction:column;gap:12px;min-width:0}
.we-bar{position:sticky;top:0;z-index:5;background:var(--w);border-radius:var(--r);box-shadow:var(--sh);padding:12px 14px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.we-bar-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.we-bar-t b{font-family:var(--display);font-size:20px;text-transform:uppercase}
.we-bar.dirty{box-shadow:var(--sh),inset 4px 0 0 var(--y)}
.we-tabs{flex-wrap:wrap;overflow:visible}
.we-tabs button{font-size:15px;padding:9px 11px}
.we-panel{display:flex;flex-direction:column;gap:12px}
.we-panel h2{font-size:22px}
.we-panel h3{font-size:18px}
.we-help{font-size:13px;color:var(--muted);line-height:1.45}
.we-help b{color:var(--ink)}
.we-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.we-color{display:grid;grid-template-columns:56px 1fr auto;gap:10px;align-items:center}
.we-color input[type=color]{width:56px;height:44px;padding:3px;border-radius:12px;cursor:pointer}
.we-color .t b{display:block}
.we-color .t small{color:var(--muted);font-size:13px}
.we-color input[type=text]{width:110px;font-family:ui-monospace,Menlo,monospace;font-size:14px}
.linkbtn{border:0;background:none;padding:0;color:var(--muted);text-decoration:underline;font-size:13px;cursor:pointer}
.we-imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.we-img{position:relative;background:var(--soft);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.we-img .ph{aspect-ratio:4/3;background:#ddd center/cover no-repeat}
.we-img.logo .ph{background-size:contain;background-color:#111;aspect-ratio:1}
.we-img .tools{display:flex;gap:2px;justify-content:flex-end;padding:4px}
.we-img .tools button{border:0;background:var(--w);border-radius:8px;width:32px;height:30px;font-size:14px;line-height:1}
.we-img .tools button:disabled{opacity:.35}
.we-img input{border-radius:0;font-size:14px;padding:7px 8px}
.we-add{border:2px dashed var(--line);border-radius:12px;background:transparent;min-height:110px;display:flex;align-items:center;justify-content:center;font-weight:600;color:var(--muted);flex-direction:column;gap:4px;padding:10px;text-align:center}
.we-add:hover{border-color:var(--y-deep);color:var(--ink)}
.we-blocks{display:flex;flex-direction:column;gap:6px}
.we-block{display:flex;align-items:center;gap:10px;background:var(--soft);border-radius:12px;padding:8px 10px}
.we-block label{flex:1;display:flex;gap:10px;align-items:center;font-weight:600}
.we-block input{width:20px;height:20px;padding:0;accent-color:#0e0e0e}
.we-block.off label{color:var(--muted);text-decoration:line-through}
.we-block button{border:0;background:var(--w);border-radius:8px;width:34px;height:32px}
.we-block button:disabled{opacity:.35}
.we-list{display:flex;flex-direction:column;gap:8px}
.we-item{background:var(--soft);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px}
.we-item .head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.we-item .head b{font-family:var(--display);text-transform:uppercase;font-size:16px}
.we-item input,.we-item textarea,.we-item select{background:var(--w)}
.we-sp{display:grid;grid-template-columns:88px 1fr;gap:10px;align-items:start}
.we-sp .lg{width:88px;height:62px;border-radius:10px;background:#fff center/contain no-repeat;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted);cursor:pointer;text-align:center}
.we-warn{background:#FFF4E5;border-left:5px solid var(--poor);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}
.we-warn h3{color:#8a4a00}
.we-warn ul{margin:0;padding-left:20px;font-size:14px;line-height:1.5}
.we-warn label{display:flex;flex-direction:row;gap:10px;align-items:center;font-weight:600;font-size:14px;cursor:pointer}
.we-warn label input{width:22px;height:22px;min-width:22px;padding:0;margin:0;flex:none;accent-color:#0e0e0e}
#cssBox{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;min-height:300px;line-height:1.5;tab-size:2;background:#16161a;color:#f2f2f2;border-radius:12px}
#cssBox:focus{background:#16161a}
.we-hist{display:flex;flex-direction:column;gap:6px}
.we-hist .r{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--soft);border-radius:12px;padding:9px 12px;font-size:14px}
.we-prev{position:sticky;top:12px;display:flex;flex-direction:column;gap:10px;min-width:0;height:calc(100vh - 100px)}
.we-prev-bar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.we-pages button{font-size:15px;padding:8px 12px}
.we-frame-wrap{flex:1;display:flex;justify-content:center;background:#d9d6cc;border-radius:var(--r);padding:12px;overflow:hidden;min-height:0}
.we-frame-wrap iframe{border:0;background:#fff;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.25);width:100%;height:100%}
.we-frame-wrap.m iframe{width:390px;max-width:100%}
.we-only-m{display:none}
.we-toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:var(--k);color:var(--w);padding:10px 16px;border-radius:999px;font-size:14px;font-weight:600;z-index:50;box-shadow:0 8px 24px rgba(0,0,0,.3);max-width:calc(100vw - 32px)}
.we-toast.bad{background:var(--bad)}
@media (max-width:980px){
  .we{grid-template-columns:1fr;padding:12px}
  .we-only-m{display:inline-block}
  .we-prev{display:none;position:fixed;inset:0;top:0;z-index:40;height:auto;background:var(--paper);padding:10px}
  .we-prev.open{display:flex}
  .we-frame-wrap{padding:6px}
  .we-frame-wrap.m iframe{width:100%}
  [data-dev]{display:none}
  .we-bar{padding:8px 10px;gap:6px}
  #barSub{display:none}
  .we-bar-t b{font-size:17px}
  .we-bar .btns button{padding:8px 11px;font-size:14px}
}
