/* Friday Studio 0.8 editor: library tiles, wireframes, context menu, picker, template gallery */
.lib-section{margin-top:16px}.lib-section[hidden]{display:none}
.lib-section h4{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:#a8a8a8}
.lib-section h4 span{font-size:10px;color:#7a7a7a;background:#2f2f2f;border-radius:99px;padding:2px 7px;letter-spacing:0}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tile{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:7px!important;border:1px solid #3a3a3a!important;background:#2a2a2a!important;border-radius:11px!important;text-align:left;cursor:grab;min-width:0}
.tile[hidden]{display:none}
.tile:hover{border-color:#6a6a6a!important;background:#303030!important;transform:translateY(-1px)}
.tile:active{cursor:grabbing}
.tile b{font-size:10.5px;font-weight:550;color:#d6d6d6;line-height:1.3;white-space:normal}
.tile.small b{font-size:10px}
.wf{display:flex;flex-direction:column;gap:4px;background:#f4f4f2;border-radius:7px;padding:7px;height:62px;overflow:hidden;pointer-events:none}
.wf-row{display:flex;align-items:center;gap:4px;min-height:4px}.wf-c{justify-content:center;align-items:center;text-align:center}
.wf-row.wf-c{justify-content:center}.wf-fill{flex:1}
.wf i,.wf span{display:block;flex:none}
.wf-T{height:6px;border-radius:2px;background:#3a3a3a}.wf-TT{height:9px}
.wf-t{height:3px;border-radius:2px;background:#b9b9b9}
.wf-light{background:#fff!important;opacity:.9}
.wf-btn{width:22px;height:7px;border-radius:3px;background:#d39a62}
.wf-line{width:100%;height:1px;background:#cfcfcf}
.wf-logo{width:12px;height:6px;border-radius:2px;background:#3a3a3a}
.wf-grid{display:grid!important;gap:4px;width:100%}.wf-grid i{background:#fff;border:1px solid #dcdcdc;border-radius:3px;height:24px}
.wf-cards{grid-template-columns:repeat(3,1fr)}.wf-cards:has(i:nth-child(2):last-child){grid-template-columns:1fr 1fr}.wf-cards:has(i:nth-child(4)){grid-template-columns:repeat(4,1fr)}
.wf-cards .wf-hi{background:#3a3a3a;border-color:#3a3a3a;transform:translateY(-2px)}
.wf-dots{grid-template-columns:repeat(3,1fr);justify-items:center}.wf-dots:has(i:nth-child(4)){grid-template-columns:repeat(4,1fr)}.wf-dots i{width:16px;height:16px;border-radius:50%;background:#d39a62;border:0}
.wf-imgs{grid-template-columns:repeat(3,1fr)}.wf-imgs i{background:#d8d4cc;border:0;height:28px}
.wf-cols{grid-template-columns:repeat(3,1fr)}.wf-cols:has(i:nth-child(2):last-child){grid-template-columns:1fr 1fr}.wf-cols i{height:18px;background:repeating-linear-gradient(#b9b9b9 0 2px,transparent 2px 5px);border:0}
.wf-nums{grid-template-columns:repeat(3,1fr)}.wf-nums i{height:12px;background:#3a3a3a;border:0;width:60%;justify-self:center}
.wf-logos{grid-template-columns:repeat(4,1fr)}.wf-logos i{height:12px;background:#cfcfcf;border:0}
.wf-timer{grid-template-columns:repeat(4,1fr)}.wf-timer i{height:16px}
.wf-rows{display:flex!important;flex-direction:column;gap:5px;width:100%}.wf-rows i{height:6px;border-bottom:1px dotted #9a9a9a;background:linear-gradient(90deg,#3a3a3a 0 30%,transparent 30% 85%,#d39a62 85%)}
.wf-bars{display:flex!important;flex-direction:column;gap:5px;width:100%}.wf-bars i{height:5px;border-radius:3px;background:linear-gradient(90deg,#d39a62 var(--w),#ddd var(--w))}
.wf-tl{display:flex!important;flex-direction:column;gap:6px;width:100%;border-left:2px solid #cfcfcf;padding-left:6px}.wf-tl i{height:4px;width:70%;background:#b9b9b9;position:relative}.wf-tl i:before{content:'';position:absolute;left:-10px;top:-2px;width:6px;height:6px;border-radius:50%;background:#d39a62}
.wf-mason{display:block!important;columns:3;column-gap:3px;width:100%}.wf-mason i{background:#d8d4cc;border-radius:2px;margin-bottom:3px;break-inside:avoid}
.wf-mosaic{display:grid!important;grid-template-columns:2fr 1fr 1fr;grid-template-rows:14px 14px;gap:3px;width:100%}.wf-mosaic i{background:#d8d4cc;border-radius:2px}.wf-mosaic i:first-child{grid-row:span 2}
.wf-img{background:#d8d4cc;border-radius:4px;flex:1;min-height:30px}.wf-video{display:grid!important;place-items:center;color:#777;font-size:12px}.wf-map{background:repeating-linear-gradient(45deg,#d8e4d0 0 6px,#e8efe2 6px 12px)}
.wf-split{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;width:100%;height:100%;align-items:center}.wf-split>div{display:flex;flex-direction:column;gap:4px}.wf-split.wf-rev>.wf-img{order:-1}
.wf-cover{display:flex;flex-direction:column;justify-content:center;gap:5px;height:100%;margin:-7px;padding:9px;background:linear-gradient(135deg,#6b5a4a,#2a2a2a)}.wf-cover.wf-c{align-items:center}
.wf-strip{background:#3a3a3a;margin:-7px -7px 4px;padding:5px;display:flex}.wf-marq{display:flex;align-items:center;gap:5px;color:#d39a62;font-size:9px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;padding:9px 0;margin-top:12px}.wf-marq i{height:5px;width:20px;background:#3a3a3a;border-radius:2px}
.wf-band{background:#d39a62;margin:-7px;height:calc(100% + 14px);display:flex;align-items:center;padding:8px}.wf-band .wf-nums i{background:#2a2a2a}
.wf-box{border:1px solid #cfcfcf;border-radius:6px;padding:7px;display:flex;flex-direction:column;gap:5px;background:#ecebe7;height:100%}
.wf-q{font:900 22px/1 Georgia,serif;color:#9a9a9a;height:14px}
.wf-promo{display:grid!important;grid-template-columns:auto 1fr auto;gap:5px;align-items:center;background:#ecebe7;border-radius:6px;padding:7px;height:100%}.wf-promo>div{display:flex;flex-direction:column;gap:4px}.wf-badge{width:18px;height:18px;background:#d39a62;border-radius:4px}.wf-code{width:22px;height:12px;border:1px dashed #3a3a3a;border-radius:3px}
.wf-inputs{display:flex!important;flex-direction:column;gap:4px}.wf-inputs i{height:6px;border:1px solid #cfcfcf;border-radius:3px;background:#fff}.wf-inputs .wf-btn{width:100%;border:0}
.wf-inline{display:grid!important;grid-template-columns:1fr 1fr auto;gap:3px;width:80%}.wf-inline i{height:8px;border:1px solid #cfcfcf;border-radius:3px;background:#fff}.wf-inline .wf-btn{border:0}
.wf-pills{display:flex!important;gap:4px}.wf-pills i{width:22px;height:8px;border-radius:99px;border:1px solid #bdbdbd;background:#fff}
.wf-fab{width:22px;height:9px;border-radius:99px;background:#2aabee}
body.fx-dragging-new .canvas-viewport{outline:2px dashed #6a6a6a;outline-offset:-6px;border-radius:14px}
body.fx-dragging-new #outline{outline:1px dashed #6a6a6a;outline-offset:4px;border-radius:8px}
/* context menu */
.fx-menu{position:fixed;z-index:1000;min-width:220px;background:#262626;border:1px solid #3a3a3a;border-radius:12px;padding:5px;box-shadow:0 18px 50px rgba(0,0,0,.5);animation:fx-pop .12s ease-out}
@keyframes fx-pop{from{opacity:0;transform:translateY(-4px) scale(.98)}}
.fx-menu button{width:100%;justify-content:flex-start;gap:10px;border:0!important;background:transparent!important;color:#e6e6e6!important;padding:8px 10px!important;border-radius:8px!important;font-size:12.5px!important;font-weight:500!important;text-align:left}
.fx-menu button:hover:not(:disabled),.fx-menu button:focus-visible{background:#3a3a3a!important;outline:none}
.fx-menu button:disabled{opacity:.35;cursor:default}
.fx-menu button.danger{color:#ff8f8f!important}
.fx-menu button svg{width:15px;height:15px;color:#a8a8a8}
.fx-menu .fx-check{width:15px;text-align:center;color:#f2f2f2}
.fx-menu button span:nth-of-type(2),.fx-menu button>span:last-child{flex:1}
.fx-menu kbd{font:500 10.5px Segoe UI,sans-serif;color:#8a8a8a;margin-left:auto}
.fx-menu em{font-style:normal;color:#8a8a8a;margin-left:auto}
.fx-menu hr{border:0;border-top:1px solid #3a3a3a;margin:5px 4px}
/* quick picker */
.fx-picker{position:fixed;z-index:1001;width:440px;max-width:calc(100vw - 16px);height:min(520px,calc(100vh - 16px));display:flex;flex-direction:column;background:#262626;border:1px solid #3a3a3a;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.fx-picker-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #3a3a3a}.fx-picker-head svg{width:15px;height:15px;color:#8a8a8a}
.fx-picker-head input{flex:1;background:transparent;border:0;color:#f2f2f2;font-size:13px;outline:none}
.fx-picker-head button{border:0!important;padding:5px!important}
.fx-picker-list{overflow:auto;padding:4px 12px 12px}.fx-picker-list h5{margin:12px 0 7px;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:#a8a8a8}
.fx-picker-list .tiles{grid-template-columns:repeat(3,1fr)}.fx-picker section[hidden]{display:none}
/* inspector extras */
.x-options .design-select{width:100%}
.linkish-btn{border:0!important;background:transparent!important;color:#c8c8c8!important;text-decoration:underline;padding:6px 0!important;font-size:11px!important}
/* templates gallery */
.tpl-cats{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 16px}
.tpl-cats button{border-radius:99px!important;padding:7px 14px!important;font-size:12px!important}
.tpl-cats button.selected{background:#f2f2f2!important;color:#161616!important;border-color:#f2f2f2!important}
.x-template[hidden]{display:none!important}
.tpl-art{display:flex;flex-direction:column;gap:3px;height:150px;overflow:hidden;border-radius:10px;padding:8px;background:var(--tb);border:1px solid #3a3a3a}
.tpl-art .wf{height:auto;min-height:24px;max-height:40px;background:transparent;padding:3px 4px;border-bottom:1px solid color-mix(in srgb,var(--ti) 12%,transparent);border-radius:0}
.tpl-art .wf-T,.tpl-art .wf-logo,.tpl-art .wf-nums i{background:var(--ti)}.tpl-art .wf-t{background:color-mix(in srgb,var(--ti) 35%,transparent)}
.tpl-art .wf-btn,.tpl-art .wf-dots i,.tpl-art .wf-badge{background:var(--ta)}.tpl-art .wf-band{background:var(--ta);margin:0}
.tpl-art .wf-grid i,.tpl-art .wf-box,.tpl-art .wf-promo{background:var(--tc);border-color:color-mix(in srgb,var(--ti) 15%,transparent)}
.tpl-art .wf-cover{margin:0;background:linear-gradient(135deg,var(--ta),var(--ti))}
.tpl-blank{display:grid;place-items:center;height:100%;font-size:40px;color:#8a8a8a}
