@font-face{font-family:Maxeville;src:url('./fonts/Maxeville-Tekst.woff2') format('woff2');font-weight:400;font-display:swap}
:root{color-scheme:dark;--bg:#08090b;--card:#18191d;--text:#f0f1f3;--muted:#9699a3;--line:#ffffff13;--track:#34363d}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:13px Maxeville,Arial,sans-serif}button,input,select,textarea{font:inherit;color:inherit}button,select,input[type=range],summary{cursor:pointer}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:6px;background:var(--card);padding:9px 12px;transition:background .15s,border-color .15s}button:hover{background:#27292f;border-color:#ffffff35}button:disabled{opacity:.3;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #a6bbff;outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}svg{flex-shrink:0}.icon-button{width:32px;height:32px;padding:6px;background:transparent;border-color:transparent}.icon-button:hover{background:var(--card)}.app-header{height:64px;display:flex;align-items:center;gap:24px;padding:0 24px;border-bottom:1px solid var(--line);position:relative;z-index:3;background:#0b0c0e}.brand{font-size:24px;letter-spacing:-1px;text-decoration:none;color:inherit;white-space:nowrap}.head-note{font-size:12px;color:var(--muted)}.actions{margin-left:auto;display:flex;align-items:center;gap:6px}.actions .primary{background:var(--text);color:#111;border-color:var(--text)}.actions .primary:hover{background:white}.toolbar-divider{width:1px;height:20px;background:var(--line);margin:0 6px}
main{position:relative;height:calc(100dvh - 64px);min-height:480px}.inspector{position:absolute;z-index:2;top:20px;left:20px;width:320px;max-height:calc(100% - 40px);display:flex;flex-direction:column;overflow:hidden;background:#101115;border:1px solid #ffffff18;border-radius:12px;box-shadow:0 8px 36px #0005}.inspector-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 8px 18px;font-size:12px;flex-shrink:0}.inspector-head>span{font-weight:400;color:#c5c7ce}.inspector-content{min-height:0;display:flex;flex-direction:column}.inspector-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:3px 10px 10px;gap:4px;flex-shrink:0;border-bottom:1px solid var(--line)}.inspector-tabs button{font-size:11px;background:transparent;border-color:transparent;padding:10px 4px;color:var(--muted);gap:6px}.inspector-tabs svg{width:15px;height:15px}.inspector-tabs button[aria-selected=true]{background:#25272e;color:var(--text)}.inspector-scroll{min-height:0;overflow:auto;padding:0 18px;scrollbar-width:thin;scrollbar-color:#454750 transparent}.control-section{margin:0;padding:20px 0;border-bottom:1px solid var(--line)}.control-section:last-child{border-bottom:0}h2{font-weight:400;font-size:12px;margin:0 0 16px;color:#dadce2}label{display:block;font-size:11px;margin-bottom:8px;color:#c7cad2}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.section-title label{margin:0}.micro-label{font-size:8px;letter-spacing:.09em;color:#777b85}textarea,input[type=text],select{width:100%;min-width:0;min-height:36px;padding:8px 10px;border:1px solid #ffffff17;border-radius:6px;background:#191b20}textarea{height:100px;min-height:80px;max-height:190px;resize:vertical;font-size:23px;line-height:1.3;display:block}select{font-size:11px;padding:9px 8px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.spaced-label{margin-top:16px}.hint{font-size:10px;line-height:1.5;color:var(--muted);margin:8px 0 0}.text-tools{display:flex;align-items:center;gap:2px;margin-top:7px}.text-tools .icon-button{width:29px;height:29px}.text-tools svg{width:15px;height:15px}.text-tool-label{font-size:9px;color:var(--muted);margin-left:auto}.alignment-settings{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.alignment-settings label{margin:0}.seg{display:flex;padding:3px;gap:3px;background:#191b20;border-radius:6px}.seg button{width:39px;height:29px;padding:6px;border:0;background:transparent;color:var(--muted)}.seg svg{width:16px;height:16px}.seg button.active{background:#3b3e48;color:white}.preset-button{display:flex;width:100%;margin-top:10px;font-size:10px;background:transparent;text-align:left;justify-content:space-between;padding:9px 10px;border-style:dashed;color:#b5b9c5}.matrix-note{display:flex;gap:7px;align-items:baseline;margin-top:10px;color:#737884}.matrix-badge{font-size:9px;letter-spacing:.04em;white-space:nowrap}.matrix-note p{font-size:9px;margin:0;line-height:1.5}.slider-label{display:flex;justify-content:space-between;gap:12px;margin:18px 0 10px}.slider-label output{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}input[type=range]{appearance:none;display:block;width:100%;height:3px;background:var(--track);margin:14px 0 16px;border-radius:3px}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border:2px solid #101115;border-radius:50%;background:#eff1f5;box-shadow:0 0 0 1px #eff1f544}input[type=range]::-moz-range-thumb{width:10px;height:10px;border:2px solid #101115;border-radius:50%;background:#eff1f5}.range-ends{display:flex;justify-content:space-between;color:#7c818e;font-size:9px;margin-top:-6px}.star-total{font-size:10px;color:#7e8390;margin:12px 0 0;font-variant-numeric:tabular-nums}.subtle-button{padding:0;margin:10px 0 0;border:0;background:none;color:#a6abb9;font-size:10px;text-decoration:underline;text-underline-offset:3px}.subtle-button:hover{background:none;color:white}summary{list-style:none;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#dadce2}summary::-webkit-details-marker{display:none}summary::after{content:'+';font:16px Arial;color:#8c919d}details[open]>summary::after{content:'−'}.detail-content{padding-top:2px}.optional{color:var(--muted);float:right}.palette{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 18px}.palette button{width:34px;height:34px;border-radius:50%;border:4px solid #101115;padding:0;box-shadow:0 0 0 1px #ffffff30}.palette button.active{box-shadow:0 0 0 2px var(--text)}.colors{display:flex;align-items:center;justify-content:space-between;gap:4px}.colors>span{display:flex;align-items:center;gap:5px;font-size:9px;flex-wrap:wrap}.colors b{font-weight:400;color:var(--muted)}.colors button{border:0;background:transparent;padding:4px;font-size:18px}.color-chip{display:inline-block;width:10px;height:10px;border:1px solid #ffffff40;border-radius:2px}.view-actions{display:flex;gap:6px;margin-top:14px}.view-actions button{flex:1;font-size:10px;padding:9px 5px}#view-save{background:#f0f1f3;color:#111}#view-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}.view-card{display:block;padding:8px;text-align:left}.view-card.active{border-color:var(--text);background:#24262d}.view-card img{display:block;width:100%;height:105px;object-fit:contain;background:#08090b;margin-bottom:9px}.view-card strong{display:block;font-size:10px;font-weight:400;overflow-wrap:anywhere}.view-card small{display:block;font-size:9px;margin-top:5px;color:var(--muted)}.storage-note{margin-top:16px}
.workspace{height:100%;min-height:0;min-width:0;background:#070809;display:flex;flex-direction:column;padding:20px 24px 16px 374px;transition:padding .18s}.workspace-top,.workspace-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:#777c88;flex-shrink:0}.workspace-top{height:32px}.canvas-label{display:flex;align-items:center;gap:16px;letter-spacing:.07em;font-size:9px}.canvas-label #dimensions{letter-spacing:0;color:#565c68}.art-area{position:relative;flex:1;min-height:0}#poster{position:absolute;inset:18px 12px}#poster svg{width:100%;height:100%;display:block;filter:drop-shadow(0 8px 24px #0006)}.workspace-bottom{min-height:26px}.workspace-bottom button{border:0;background:transparent;padding:5px;font-size:10px;color:var(--muted)}.wheel-hint{text-align:center;font-size:9px;color:#666c78}.inspector-collapsed .inspector{width:156px}.inspector-collapsed .inspector-content{display:none}.inspector-collapsed .workspace{padding-left:24px}.editor-focused .inspector{display:none}.editor-focused .workspace{padding-left:24px}#focus-mode[aria-pressed=true]{background:#27292f;color:white}#toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--text);color:#111;padding:12px 18px;border-radius:8px;opacity:0;pointer-events:none;transition:.2s;z-index:10;font-size:12px}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.head-note{display:none}.workspace{padding-right:16px}.wheel-hint{display:none}.workspace-bottom{flex-wrap:wrap}}@media(max-width:720px){.app-header{height:56px;position:sticky;top:0;padding:0 12px;gap:8px}.brand{font-size:21px}.actions{gap:2px}.actions button{padding:8px;font-size:10px}.actions .icon-button{width:29px;height:29px}.actions svg{width:15px;height:15px}.toolbar-divider{margin:0 3px}main{height:auto;min-height:0;display:flex;flex-direction:column}.workspace{order:-1;height:62dvh;min-height:390px;padding:10px 12px 12px}.workspace-top{height:28px}.workspace-bottom{font-size:9px}.workspace-bottom button{font-size:9px}.canvas-label{font-size:8px;gap:10px}#poster{inset:12px 0}.inspector{position:relative;top:auto;left:auto;width:calc(100% - 24px);max-width:480px;max-height:none;margin:0 auto 20px;border-radius:10px}.inspector-head{padding:8px 12px 5px 18px}.inspector-scroll{overflow:visible}.inspector-tabs{position:sticky;top:56px;background:#101115;z-index:2}.inspector-collapsed .inspector{width:calc(100% - 24px)}.inspector-collapsed .workspace,.editor-focused .workspace{padding-left:12px}.editor-focused .workspace{height:calc(100dvh - 56px)}.text-tools .icon-button{width:34px;height:34px}.palette button{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Comfortable reading and touch targets without adding poster controls. */
label,.field-pair select,select{font-size:12px}.hint,.matrix-note p,.matrix-badge,.star-total,.preset-button,.subtle-button,.slider-label output{font-size:11px}.matrix-note{align-items:flex-start}.matrix-badge{font-size:10px}.text-tool-label{font-size:10px}.inspector-tabs button{font-size:12px}.colors>span,.view-actions button,.view-card strong,.view-card small{font-size:11px}.mobile-actions{display:none}
@media(max-width:720px){
body{padding-bottom:calc(86px + env(safe-area-inset-bottom))}.app-header{height:56px}.actions #svg,.actions #png,.toolbar-divider{display:none}.actions .icon-button{width:44px;height:44px}.actions svg{width:18px;height:18px}.workspace{height:48dvh;min-height:280px;padding:8px 12px 10px}.workspace-top{height:28px}.workspace-bottom{min-height:22px}.workspace-bottom #reset{min-height:36px;padding:5px 8px}.workspace-bottom #save-status{font-size:10px}.canvas-label{font-size:10px}#poster{inset:8px 0}.inspector{width:calc(100% - 20px);margin-bottom:12px}.inspector-head{min-height:48px;padding:4px 10px 4px 16px}.inspector-head>span{font-size:13px}.inspector-head .icon-button{width:44px;height:44px}.inspector-tabs{gap:4px;padding:4px 8px 8px}.inspector-tabs button{height:44px;font-size:12px}.inspector-tabs svg{width:17px;height:17px}.inspector-scroll{padding:0 16px}.control-section{padding:18px 0}.text-tools .icon-button{width:44px;height:44px}.text-tools svg{width:18px;height:18px}.seg button{width:44px;height:40px}.seg svg{width:18px;height:18px}textarea{height:96px;font-size:24px}select,input[type=text]{min-height:44px;font-size:13px}.hint{font-size:11px}.preset-button{min-height:44px;font-size:12px}.subtle-button{min-height:44px}.view-actions button{min-height:44px;font-size:12px}input[type=range]{height:4px;margin:20px 0}input[type=range]::-webkit-slider-thumb{width:20px;height:20px}input[type=range]::-moz-range-thumb{width:16px;height:16px}.range-ends{font-size:10px}.palette button{width:44px;height:44px}.colors button{width:44px;height:44px}.mobile-actions{display:flex;gap:10px;position:fixed;z-index:5;bottom:0;left:0;right:0;background:#111216f5;border-top:1px solid #ffffff1a;padding:12px 12px calc(12px + env(safe-area-inset-bottom));backdrop-filter:blur(16px)}.mobile-actions button{flex:1;min-height:46px;font-size:13px;gap:8px;background:#24262c;border-color:#ffffff20}.mobile-actions button.primary{background:#f0f1f3;color:#111;border-color:#f0f1f3}#toast{bottom:calc(92px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);width:max-content;text-align:center}.editor-focused .workspace{height:calc(100dvh - 142px - env(safe-area-inset-bottom))}.inspector-collapsed .inspector{width:calc(100% - 20px)}
}
@media(max-width:720px){.inspector{overflow:visible}.inspector-tabs{border-radius:8px 8px 0 0;box-shadow:0 4px 12px #0002}.inspector-head{border-radius:10px 10px 0 0}}

/* ByFel: the site's neutral palette, square navigation and frosted surfaces. */
:root{--bg:#000;--card:#121212;--text:#eee;--muted:#a3a3a3;--line:#ffffff1f;--track:#3a3a3a}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.app-header{background:#000;border-color:#ffffff1f}.brand-lockup{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand{font-size:24px;letter-spacing:-.04em}.brand-slash{color:#626262;font-size:19px}.project-brand{font-size:20px;color:#eee;text-decoration:none;letter-spacing:-.02em}.head-note{color:#828282}.workspace{background:#000}.inspector{background:rgba(32,32,32,.85);border-color:#ffffff1f;border-radius:2px;backdrop-filter:blur(40px) saturate(120%);-webkit-backdrop-filter:blur(40px) saturate(120%);box-shadow:0 8px 40px #0006}.inspector-head>span{color:#eee}.inspector-tabs{border-color:#ffffff1f}.inspector-tabs button{border-radius:1px;color:#aaa}.inspector-tabs button[aria-selected=true]{background:#383838;color:#eee}.inspector-scroll{scrollbar-color:#555 transparent}button,textarea,input[type=text],select,.seg,.colors,.view-card,#toast{border-radius:2px}button:hover{background:#303030}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-color:#eee}textarea,input[type=text],select{background:#121212;border-color:#ffffff26}.seg{background:#121212}.seg button.active{background:#383838}.preset-button{border-color:#ffffff2b;color:#ccc}.hint,.slider-label output{color:#aaa}.micro-label,.matrix-note,.star-total{color:#999}.actions .primary,#view-save{background:#eee;color:#000}.text-tool-label{color:#aaa}.workspace-top,.workspace-bottom{color:#828282}.canvas-label #dimensions,.wheel-hint{color:#828282}.editor-focused #focus-mode{background:#232323}.view-card.active{background:#383838}.view-card img{background:#000}.mobile-actions{border-color:#ffffff1f;border-radius:0;background:rgba(32,32,32,.85);backdrop-filter:blur(40px) saturate(120%);-webkit-backdrop-filter:blur(40px) saturate(120%)}.mobile-actions button{background:#232323;border-color:#ffffff26;border-radius:1px}.mobile-actions button.primary{background:#eee;border-color:#eee}.colors b{color:#aaa}
@media(max-width:720px){.inspector,.inspector-head,.inspector-tabs{border-radius:2px}.inspector-tabs{background:#202020}.brand-lockup{gap:9px}.brand{font-size:23px}.project-brand{font-size:18px}.brand-slash{font-size:17px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.inspector,.mobile-actions{background:#202020}}

.layout-controls{margin-top:20px}.layout-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.layout-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 4px;min-height:94px;background:#121212;color:#aaa;font-size:11px}.layout-choices button[aria-pressed=true]{background:#383838;color:#eee;border-color:#aaa}.layout-choices svg{width:30px;height:36px;fill:none;stroke:currentColor;stroke-width:1}.layout-choices svg path{stroke-width:4}.layout-choices button:disabled{opacity:.35}.field-pair:has(>div[hidden]){grid-template-columns:1fr}[hidden]{display:none!important}
