/* css/editor.css
   The editor: collapsible sections, rows, switches, theme dots, action bar.
   (Part of LYNQ 2027. See README.md, 'Where to change what'.) */
/* ===== editor ===== */
.ed{margin-top:16px}
.ed-head{padding:2px 6px 12px}.ed-head h2{margin:0;font-size:22px;letter-spacing:-.02em}.ed-head p{margin:2px 0 0;font-size:13px;color:var(--sub)}
.sec{background:var(--card-bg);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid var(--border);border-radius:22px;margin-bottom:12px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.07)}
.sec>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:13px 16px;cursor:pointer;font-weight:700;font-size:15px;color:var(--text)}
.sec>summary::-webkit-details-marker{display:none}
.sec .ic{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none}
.sec .ic svg{width:17px;height:17px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sec .chev{margin-left:auto;width:16px;height:16px;color:var(--sub);transition:transform .35s cubic-bezier(.16,1,.3,1)}
.sec[open] .chev{transform:rotate(180deg)}
.sec-body{padding:2px 14px 16px;display:flex;flex-direction:column;gap:12px}
.sec[open] .sec-body{animation:secin .4s cubic-bezier(.16,1,.3,1)}
@keyframes secin{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.sub-t{font-size:12px;font-weight:600;color:var(--sub);margin:2px 4px -4px}
.grp{background:rgba(127,127,127,.1);border-radius:16px;overflow:hidden}
.li{display:flex;align-items:center;gap:10px;padding:0 14px;min-height:46px;border-bottom:1px solid rgba(127,127,127,.14)}
.li:last-child{border-bottom:0}
.li.hidden{display:none}
.ed .li label:not(.switch):not(.pb){font-size:14px;font-weight:500;color:var(--text);min-width:78px;flex:none}
.ed .li input:not([type=range]):not([type=checkbox]),.ed .li select{flex:1;min-width:0;border:0;background:transparent;text-align:right;text-align-last:right;font-size:16px;padding:12px 0;color:var(--text);border-radius:0;outline:none;-webkit-appearance:none;appearance:none}
.ed .li input:focus,.ed .li select:focus{border:0;background:transparent;color:var(--accent)}
.ed .li input::placeholder{color:var(--sub);opacity:.55}
.ed .li input[type=range]{flex:1}
.ed .li input.clr:not([type=range]):not([type=checkbox]){flex:none;width:46px;height:30px;padding:0;border:0;border-radius:8px;-webkit-appearance:auto;appearance:auto;margin-left:auto}
.thumb{width:34px;height:34px;border-radius:50%;background:var(--accent) center/cover;flex:none;border:1px solid rgba(127,127,127,.25)}
.thumb.wide{width:52px;height:30px;border-radius:9px}
.ed .pb{border:0;font-family:inherit;margin-left:auto;font-size:13px;font-weight:700;color:var(--accent);background:rgba(127,127,127,.16);padding:7px 14px;border-radius:99px;cursor:pointer}
.ed .pb:active{transform:scale(.95)}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.tile{aspect-ratio:1;border-radius:16px;background:rgba(127,127,127,.12) center/cover;border:1.5px dashed rgba(127,127,127,.4);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--sub);transition:transform .2s}
.tile:active{transform:scale(.96)}.tile svg{width:22px;height:22px}.tile.has{border-style:solid}.tile.has svg{display:none}
.themes{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 6px}
.sw{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10.5px;color:var(--sub);text-align:center;cursor:pointer;line-height:1.2}
.sw i{width:44px;height:44px;border-radius:50%;box-shadow:0 0 0 1px rgba(127,127,127,.3);transition:box-shadow .25s,transform .25s}
.sw.on i{box-shadow:0 0 0 2.5px var(--card-bg),0 0 0 5px var(--accent);transform:scale(.92)}
.sw.on{color:var(--text);font-weight:600}
#customBox{display:flex;flex-direction:column;gap:10px}
#clrDots{display:flex;gap:10px;flex-wrap:wrap}
#clrDots i{width:30px;height:30px;border-radius:50%;box-shadow:0 0 0 1px rgba(127,127,127,.3);cursor:pointer}
.seg{display:flex;background:rgba(127,127,127,.16);border-radius:12px;padding:3px;gap:2px}
.seg button{flex:1;border:0;background:none;padding:9px 6px;border-radius:9px;font-size:13px;font-weight:600;color:var(--sub);cursor:pointer;transition:background .25s,color .25s}
.seg button.on{background:var(--accent);color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.2)}
.ed .btn{width:100%;border-radius:14px;padding:13px 16px}
.ed .worklistitem{background:rgba(127,127,127,.1);border:0;border-radius:12px;padding:10px 14px;margin-bottom:6px}
.actionbar{position:sticky;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:15;margin-top:16px;padding:10px;border-radius:24px;background:var(--card-bg);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);border:1px solid var(--border);box-shadow:0 14px 36px rgba(0,0,0,.2)}
.arow{display:flex;gap:8px}.arow .btn.secondary{width:34%}
#statusEl{font-size:12px;text-align:center;color:var(--sub);padding:0 4px 8px}#statusEl:empty{display:none}
body.editing .floating-actions{display:none}
.thumb.sq{border-radius:9px;background-color:rgba(127,127,127,.2);background-size:contain;background-position:center;background-repeat:no-repeat}
.lgo{object-fit:contain;border-radius:8px;flex:none}
.links.list-layout .linkbtn .lgo{width:26px;height:26px}
.links.grid-layout .linkbtn .lgo{width:36px;height:36px}
.lgbtn{margin-left:auto;font-size:11px;font-weight:700;color:var(--accent);background:rgba(127,127,127,.15);padding:4px 9px;border-radius:99px;cursor:pointer;white-space:nowrap}
.lgbtn+.rm{margin-left:10px!important}
.gbtn.sm{padding:10px;font-size:13px;border-radius:12px}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

