/* Read-only framework styles stay inside the dashboard view. */
#framework [hidden]{display:none!important}
#framework .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#framework button{padding:6px 12px;border:1px solid #3b3b32;border-radius:999px;background:#23231f;color:var(--text);font-size:11px;cursor:pointer}
#framework button:hover:not(:disabled){border-color:var(--accent)}
#framework button:disabled{opacity:.45;cursor:not-allowed}
#framework button.primary{border-color:var(--accent);background:var(--accent);color:#111;font-weight:700}
#framework .column-picker{border:1px solid transparent;border-radius:999px;background:#282826;color:#f2f2ed;font-weight:600;min-height:28px;padding:4px 20px 4px 9px;line-height:18px;font-size:11px;cursor:pointer}
#framework .column-picker:hover{border-color:#505046}
#framework :is(button,select,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#framework .workspace-matrix-scroll{position:relative;max-height:calc(100dvh - 170px);overflow:auto;border:1px solid var(--line);border-radius:14px;isolation:isolate;scrollbar-gutter:stable}
#framework .workspace-matrix{width:100%;min-width:var(--matrix-min-width);table-layout:fixed;border-collapse:separate;border-spacing:0;text-align:left}
#framework .matrix-axis-col{width:140px}
#framework .workspace-matrix :is(th,td){padding:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:top;background:#171715}
#framework .workspace-matrix tr>:last-child{border-right:0}
#framework .workspace-matrix tbody tr:last-child>*{border-bottom:0}
#framework .workspace-matrix thead th{position:sticky;top:0;z-index:3;background:#191918}
#framework .workspace-matrix .matrix-axis{position:sticky;left:0;z-index:2;padding:17px 14px;background:#1e2018}
#framework .workspace-matrix thead .matrix-axis{z-index:4;padding:8px 12px;background:#191918;color:var(--muted);font-weight:400;font-size:11px;vertical-align:middle}
#framework .framework-tag-filter{display:block}
#framework .framework-tag-filter .column-picker{width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
#framework .matrix-axis b{display:block;margin:6px 0 8px;color:var(--accent);font-size:13px;text-align:center}
#framework .matrix-axis small{color:#919980;font-size:10px;font-weight:400}
#framework .matrix-axis .framework-row-toggle,#framework .matrix-axis .framework-row-analyze{display:flex;align-items:center;justify-content:center;gap:5px;width:80px;min-height:26px;margin:7px auto 0;padding:4px 9px;border:1px solid #56613f;border-radius:6px;background:#252c1e;color:#cfddaF;font-size:10px;font-weight:500;line-height:16px;text-align:center;white-space:nowrap;cursor:pointer}
#framework .matrix-axis .framework-row-toggle::before{content:'';flex-shrink:0;width:6px;height:6px;margin-top:-3px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:rotate(45deg)}
#framework .matrix-axis .framework-row-toggle[aria-expanded=true]::before{margin-top:3px;transform:rotate(225deg)}
#framework .matrix-axis .framework-row-analyze::before{content:'';flex-shrink:0;width:11px;height:11px;background:currentColor;clip-path:polygon(50% 0,65% 35%,100% 50%,65% 65%,50% 100%,35% 65%,0 50%,35% 35%)}
#framework .matrix-axis .framework-row-toggle:hover,#framework .matrix-axis .framework-row-analyze:hover:not(:disabled){background:#344027;border-color:#a3ba70;color:#e4f4c3}
#framework .matrix-axis .framework-row-toggle[aria-expanded=true]{background:#344027;border-color:#a3ba70}
#framework .matrix-axis .framework-row-analyze:disabled{cursor:not-allowed}
#framework .matrix-row-number{color:#687052;font-size:10px}
#framework .matrix-product .product-controls{display:grid;grid-template-columns:72px minmax(80px,1fr) 84px;align-items:center;gap:5px;padding:8px 10px}
#framework .product-controls .column-picker{width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#framework .framework-entry{padding:13px 16px;min-height:135px;border-bottom:1px dashed #32362a}
#framework .framework-entry:last-child{border-bottom:0}
#framework .framework-entry.just-saved{box-shadow:inset 3px 0 var(--accent);background:#20251a}
#framework .framework-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#framework .framework-entry-select{display:flex;flex-shrink:0;gap:5px;align-items:center;min-height:24px;color:#a6af97;font-size:10px;font-weight:400;white-space:nowrap;cursor:pointer}
#framework .framework-entry-select input{margin:0;accent-color:var(--accent)}
#framework .framework-entry-heading>b{display:block;flex:1;min-width:0;font-size:12px;line-height:1.6;font-weight:600}
#framework .framework-entry>p{display:block;margin:6px 0 0;color:#b1b5a6;font-size:11px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
#framework .slice-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
#framework .slice-tags span{padding:2px 6px;border-radius:4px;background:#2d3423;color:#bcc99f;font-size:9px;line-height:1.3}
#framework .framework-entry-detail{margin-top:10px}
#framework .framework-entry-detail summary{color:#bed493;font-size:10px;cursor:pointer;line-height:1.7}
#framework .framework-entry-detail[open] summary{margin-bottom:10px}
#framework .slice-preview-button{display:block;width:100%;padding:0;border:0;border-radius:6px;overflow:hidden;background:#090909}
#framework .framework-entry-detail img{display:block;width:100%;max-height:260px;object-fit:contain;object-position:top}
#framework .slice-actions{margin-top:12px}
#framework .matrix-cell-empty{min-height:90px;padding:20px 16px;color:#6f7663;font-size:11px}
#framework .library-empty{min-height:280px;padding:50px 20px;border:1px dashed #383832;border-radius:12px;text-align:center}
#framework .library-empty p{color:var(--muted);font-size:12px}
#framework .inline-error{margin-bottom:10px;padding:12px;border:1px solid #705e35;border-radius:9px;color:#e7cd94;background:#292419;font-size:12px}
#framework dialog{width:min(1200px,95vw);max-height:90dvh;overflow:auto;padding:0;border:1px solid #48483e;border-radius:16px;background:#151513;color:var(--text)}
#framework dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}
#framework dialog header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line);background:#1c1c18}
#framework dialog header button{width:28px;height:28px;padding:0;font-size:18px}
#frameworkPreviewImage{display:block;max-width:100%;margin:auto}
@media(max-width:760px){#framework .workspace-matrix-scroll{max-height:65dvh}}
