:root{font-family:Arial,Helvetica,sans-serif;color:#263d31;background:#f4f5f1;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,input[type=color]{cursor:pointer}button{transition:background .15s,transform .15s}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6e9029;outline-offset:3px}header{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid #dce1d8;background:#fff}.brand{text-decoration:none;color:#243c2f;font-size:25px;font-weight:750;letter-spacing:-1px;display:flex;align-items:center;gap:11px}.brandmark{font-size:35px;line-height:1;color:#42634d}.studio{font-size:10px;letter-spacing:2px;margin-left:5px;border-left:1px solid #ccd2ca;padding-left:14px}.header-note{font-size:14px;color:#788377}.primary{background:#294c39;color:#fff;border:1px solid #294c39;border-radius:9px;padding:13px 19px;font-size:14px;font-weight:600}.primary:hover{background:#1c3628}main{display:grid;grid-template-columns:310px 1fr;max-width:1700px;margin:auto}aside{background:#fff;border-right:1px solid #dce1d8;padding:28px 26px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#71806a}h1{font-family:Georgia,serif;font-size:31px;line-height:1.2;font-weight:400;letter-spacing:-.6px;margin:13px 0}p{color:#7c847b;font-size:14px;line-height:1.6}.intro p{margin-bottom:25px}section{padding:21px 0;border-top:1px solid #e8ebe4}h2{font-size:15px;font-weight:600;margin:0 0 17px}h2>span{font-size:11px;color:#8b9687;margin-right:9px}.motifs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.motif{border:1px solid #e0e5db;background:white;border-radius:9px;display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 3px 9px;color:#62705f;font-size:12px}.motif svg{width:32px;height:32px}.motif.selected{background:#f0f5e6;border-color:#587c43;color:#294d36;box-shadow:0 0 0 1px #587c43}.palettes{display:flex;gap:8px;margin-bottom:16px}.palette{display:flex;overflow:hidden;gap:0;padding:3px;background:white;border:1px solid #dae0d5;border-radius:22px;flex:1;height:32px}.palette i{height:24px;flex:1}.palette i:first-child{border-radius:12px 0 0 12px}.palette i:last-child{border-radius:0 12px 12px 0}.color-fields{display:flex;justify-content:space-between;gap:8px}.color-fields label{display:flex;align-items:center;gap:6px;font-size:12px}.color-fields input{width:26px;height:26px;padding:0;border:0;background:none;border-radius:50%}.range-label{display:flex;justify-content:space-between;align-items:center;font-size:14px;margin:16px 0 8px}output{font-size:12px;color:#73816c;font-variant-numeric:tabular-nums}input[type=range]{width:100%;accent-color:#365d41;height:5px;display:block;margin:12px 0 22px}.select-row{display:flex;align-items:center;justify-content:space-between;font-size:14px}select{border:1px solid #dde2d7;border-radius:7px;padding:10px 9px;background:white;color:#46583d;font-size:13px}.reset{width:100%;border:0;background:none;color:#77836f;font-size:13px;padding:14px}.workspace{padding:30px 36px 12px;min-width:0}.preview-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.preview-top h2{font-family:Georgia,serif;font-size:27px;font-weight:400;margin:8px 0 0}.segmented{display:flex;background:#e9ece4;border-radius:8px;padding:4px;gap:3px}.segmented button{border:0;padding:9px 14px;border-radius:6px;background:none;color:#74806d;font-size:13px}.segmented .active{background:#fff;color:#2f4936;box-shadow:0 1px 4px #00000010}.canvas-wrap{height:clamp(330px,54vh,620px);border-radius:13px;overflow:hidden;position:relative;background:#e6e8df;padding:0}#canvas{height:100%;width:100%;background-position:center;transition:background-size .2s}.canvas-wrap.single{padding:25px}.single #canvas{max-width:100%;width:auto;aspect-ratio:1;margin:auto;background-repeat:no-repeat;background-size:contain!important;background-position:center}.canvas-badge{position:absolute;bottom:18px;left:20px;background:#fffef0ed;border:1px solid #ffffff40;border-radius:5px;padding:9px 12px;font-size:10px;letter-spacing:1.5px;color:#34523c}.canvas-badge span{margin-left:6px}.canvas-foot{display:flex;justify-content:space-between;align-items:center;padding:16px 0 24px;font-size:12px;color:#788372;gap:12px}.tiny-grid{margin-right:7px}.canvas-foot label{display:flex;align-items:center;gap:11px}.canvas-foot input{width:85px;margin:0}.canvas-foot output{width:36px}.export-panel{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e0e4da;border-radius:12px;padding:23px;gap:18px}.export-panel h2{font-size:17px;margin:0 0 6px}.export-panel p{font-size:12px;margin:0}.export-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.secondary{background:white;color:#36543d;border:1px solid #d7dece;border-radius:8px;padding:13px 15px;font-size:14px}.note{text-align:center;font-size:11px;margin:17px 0 0}#status{text-align:center;font-size:13px;margin:5px 0}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}@media(min-width:1400px){aside{padding:36px 30px}main{grid-template-columns:340px 1fr}.workspace{padding:36px 48px}}@media(max-width:1100px){.header-note{display:none}.export-panel{align-items:flex-start;flex-direction:column}.workspace{padding:26px 24px}.canvas-wrap{height:450px}}@media(max-width:720px){header{height:72px;padding:0 18px}.brand{font-size:22px}.studio{display:none}header .primary{padding:11px;font-size:13px}main{display:flex;flex-direction:column}.workspace{display:contents}.preview-top{order:0;padding:22px 18px 0;margin-bottom:18px}.preview-top h2{font-size:24px}.eyebrow{font-size:10px}.segmented button{padding:9px 10px;font-size:12px}.canvas-wrap{order:1;margin:0 18px;height:340px;flex-shrink:0}.canvas-foot{order:2;margin:0 18px;padding:14px 0 20px;font-size:10px}.canvas-foot input{width:60px}aside{order:3;border:1px solid #e1e5da;border-radius:12px;margin:0 18px;padding:18px;background:white}.intro{display:none}section{padding:20px 0}section:first-of-type{border-top:0;padding-top:0}.motifs{grid-template-columns:repeat(6,1fr);gap:5px}.motif{font-size:10px}.motif svg{width:27px;height:27px}.color-fields{justify-content:flex-start;gap:25px}.color-fields label{font-size:14px}.palettes{gap:12px}.palette{max-width:65px}h2{font-size:16px}input[type=range]{height:8px}.export-panel{order:4;margin:18px;gap:17px;padding:20px}.export-controls{width:100%}.export-controls select{flex:1}.note{order:5;margin:0 18px 8px}#status{order:6;margin:0 18px 22px}.canvas-badge{font-size:9px;left:12px;bottom:12px}.reset{padding-bottom:0}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Comfortable reading and touch targets. */
.studio,.eyebrow,.canvas-badge,.note{font-size:12px}.motif,.color-fields label,.segmented button,.range-label,select,.reset,.export-panel p,.canvas-foot,#status{font-size:14px}.intro p{font-size:16px}.motif{min-height:76px}.palette{min-height:36px}.canvas-foot label{font-size:14px}@media(max-width:720px){.motifs{grid-template-columns:repeat(3,1fr)}.motif{font-size:14px}.canvas-foot{flex-wrap:wrap}.eyebrow{font-size:12px}.canvas-badge{font-size:10px}.canvas-foot label{font-size:14px}.export-controls .primary{flex:1}.canvas-wrap{height:310px}}
.upload-box{border:1px dashed #8aa476;border-radius:10px;background:#f5f8ef;padding:13px;margin-bottom:20px}.upload-label{display:block;font-size:15px;font-weight:600;margin-bottom:12px}.upload-box input[type=file]{width:100%;font-size:14px;color:#42583d}.upload-box input::file-selector-button{border:1px solid #b3c2a5;background:white;color:#2a4a33;border-radius:6px;padding:9px;cursor:pointer}.upload-box p{font-size:13px;line-height:1.5;margin:12px 0 0}#uploaded{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}#uploaded[hidden]{display:none}#upload-thumb{width:48px;height:48px;object-fit:contain;background:repeating-conic-gradient(#e3e7de 0% 25%,#fff 0% 50%) 0/12px 12px;border-radius:5px}#upload-name{font-size:13px;overflow-wrap:anywhere;flex:1;min-width:80px}#uploaded button{font-size:13px;padding:8px}.motif-caption{font-size:14px}#aspect{width:100%}button:disabled{opacity:.5;cursor:not-allowed}.single #canvas{width:auto;height:100%;max-width:100%;background-color:transparent}#quality-note{color:#556739;font-size:14px;line-height:1.5}.export-panel{flex-wrap:wrap}.export-controls{min-width:0}.export-controls select{max-width:100%}
.color-fields{display:flex;flex-direction:column;gap:10px}.color-row{display:grid;grid-template-columns:48px 34px minmax(0,1fr);gap:8px;align-items:center}.color-fields .color-row label{font-size:14px}.color-fields input[type=color]{width:34px;height:36px;padding:2px;border:1px solid #cdd7c4;border-radius:7px;background:white}.color-fields input[type=text]{width:100%;height:38px;padding:8px 10px;border:1px solid #cdd7c4;border-radius:7px;background:white;font-family:monospace;font-size:16px;color:#2b4635}.color-fields input[aria-invalid=true]{border-color:#aa3030}.color-error{grid-column:1 / -1;font-size:13px;color:#a02c2c;line-height:1.4}.color-error:empty{display:none}.color-help{font-size:13px;line-height:1.5;margin:12px 0 0}.color-fields input:disabled{opacity:.45;cursor:not-allowed}@media(max-width:720px){.color-fields{gap:12px}.color-row{grid-template-columns:55px 40px minmax(0,1fr)}.color-fields input[type=color]{width:40px;height:42px}.color-fields input[type=text]{height:42px}}
.project-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid #dce1d8;padding-bottom:18px;margin-bottom:22px}.project-bar>input{font:600 16px Arial,sans-serif;color:#294c39;min-width:120px;flex:1;max-width:230px;border:1px solid #d2dbcc;border-radius:8px;padding:11px;background:#fff}.project-buttons{display:flex;flex-wrap:wrap;gap:6px}.project-buttons button{padding:10px 12px;font-size:14px}.project-bar>span{flex-basis:100%;font-size:12px;color:#68745e}.inspect-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:-3px 0 15px;font-size:14px}.inspect-bar label,.lock-grid label{display:flex;align-items:center;gap:7px}.inspect-bar button{margin-left:auto;padding:9px 12px}.inspect-bar input,.lock-grid input{width:17px;height:17px;accent-color:#365d41}.lock-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 8px;font-size:14px}#asset-list{width:100%;display:grid;gap:8px}.asset-row{display:flex;gap:8px;align-items:center;background:white;border:1px solid #dce4d5;border-radius:7px;padding:6px}.asset-row img{width:38px;height:38px;object-fit:contain;background:repeating-conic-gradient(#e3e7de 0% 25%,#fff 0% 50%) 0/10px 10px}.asset-row span{min-width:0;flex:1;font-size:13px;overflow-wrap:anywhere}.asset-row button{font-size:20px!important;padding:6px 10px!important}.palette-save{margin:4px 0 16px}.palette-save>button{font-size:13px;padding:8px 11px}#saved-palettes{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.saved-palette{display:flex;align-items:center;gap:4px}.saved-palette .palette{min-width:58px;margin:0}.saved-palette>button:last-child{border:0;background:transparent;font-size:20px;color:#68745e;min-width:25px}#palette-status{font-size:12px;margin:6px 0}.object-editor{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px 14px;border:1px solid #becdaf;background:#f7faef;border-radius:10px;padding:17px;margin-top:14px}.object-editor[hidden]{display:none}.object-editor>p,.object-actions{grid-column:1/-1;margin:0}.object-editor label{font-size:14px}.object-editor input[type=range]{margin:7px 0;width:100%}.object-editor output{display:block}.object-editor select{min-width:0;width:100%}.object-actions{display:flex;gap:8px}.object-actions button{font-size:13px;padding:9px 12px}#canvas.editing{cursor:grab;touch-action:none}#canvas.editing:active{cursor:grabbing}.canvas-badge{pointer-events:none}.offline-panel{margin:24px 0;display:flex;align-items:center;gap:18px;padding-top:20px;border-top:1px solid #d7dfce}.offline-panel strong{font-size:15px}.offline-panel p{font-size:13px;max-width:540px;margin:7px 0 0}.offline-panel a{display:inline-block;white-space:nowrap;text-decoration:none}.offline-panel [aria-disabled=true]{pointer-events:none;opacity:.6}dialog{border:1px solid #cdd6c5;border-radius:14px;padding:0;width:min(94vw,1100px);max-width:94vw;height:88vh;max-height:88vh;background:#f5f7f1;color:#294c39}dialog::backdrop{background:#122317a8}.detail-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px;border-bottom:1px solid #d7dfce}.detail-header strong{font-size:17px}.detail-header p{font-size:13px;margin:6px 0 0}#detail-scroll{height:calc(100% - 110px);overflow:auto;background:#e5e9df;overscroll-behavior:contain}#detail-scroll canvas{display:block;max-width:none!important;max-height:none!important;flex-shrink:0}@media(max-width:1100px){.project-buttons{width:100%}.offline-panel{align-items:flex-start;flex-direction:column}}@media(max-width:720px){.project-bar{order:-1;margin:18px 18px 0;padding-bottom:15px}.project-bar>input{max-width:none}.project-buttons{display:grid;grid-template-columns:1fr 1fr}.inspect-bar{order:0;margin:0 18px 15px;gap:12px;font-size:13px}.inspect-bar button{font-size:13px;padding:8px}.preview-top{order:0}.object-editor{order:2;margin:14px 18px 0}.offline-panel{order:7;margin:8px 18px 26px}.object-editor>p{font-size:14px}.lock-grid{gap:16px}.detail-header{padding:13px}.detail-header p{font-size:12px}.palette-save>button{font-size:14px}}
.asset-row button.erase-background{font-size:12px!important;line-height:1.3;padding:7px!important;max-width:68px}.asset-row span{flex-basis:55px}.remover-body{padding:0 20px 22px;overflow:auto}.remover-body>p{font-size:14px}.remover-controls{display:grid;grid-template-columns:140px 1fr 1fr;gap:25px;align-items:start}.remover-controls label{font-size:14px}.remover-controls input[type=color]{display:block;width:60px;height:38px;border:1px solid #bdccb0;border-radius:6px;margin-top:10px;background:white}.remover-controls input[type=range]{margin:17px 0 8px}.remover-controls output{float:right}.remover-help{font-size:13px!important;line-height:1.5}.remover-previews{display:grid;grid-template-columns:1fr 1fr;gap:15px}.remover-previews h3{font-size:14px;line-height:1.5;margin:10px 0}.transparency-grid{min-height:160px;max-height:45vh;overflow:auto;border:1px solid #bbc8b0;border-radius:8px;background:repeating-conic-gradient(#d9dfd4 0% 25%,#fff 0% 50%) 0/20px 20px}.transparency-grid canvas{display:block;max-width:100%;height:auto;margin:auto}#remover-original canvas{cursor:crosshair}.remover-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:15px}#remover-status{min-height:22px;color:#345137}#remover-dialog{height:auto;max-height:92vh;overflow:auto}#remover-dialog .detail-header{position:sticky;top:0;background:#f5f7f1;z-index:1}#remover-file{overflow-wrap:anywhere}@media(max-width:720px){.remover-body{padding:0 14px 18px}.remover-controls{grid-template-columns:90px 1fr;gap:12px}.remover-controls label:last-child{grid-column:1/-1}.remover-previews{grid-template-columns:1fr}.transparency-grid{max-height:32vh}.remover-actions button{flex:1;font-size:14px}.asset-row button.erase-background{max-width:none;font-size:13px!important}}
.motif-group{border-top:1px solid #e3e8dc;padding:0}.motif-group summary{cursor:pointer;padding:13px 0;font-size:14px;font-weight:600;color:#3c5839}.motif-group .motifs{padding:0 0 15px}.motif-group .motif{min-width:0;min-height:88px}.motif-group .motif span{font-size:13px;line-height:1.25;overflow-wrap:anywhere}.motif-group summary:focus-visible{outline:3px solid #6e9029;outline-offset:2px}
.spacing-controls{border-top:1px solid #e4e9dd;border-bottom:1px solid #e4e9dd;padding:2px 0 15px;margin:18px 0}.control-help{font-size:13px;line-height:1.5;margin:8px 0 12px}.spacing-controls .secondary{font-size:13px;padding:8px 12px}#spacing-info{font-weight:600;color:#3d5936}.resolution-help{font-size:13px;text-align:center;line-height:1.5;margin:14px 0 0}#opacity:disabled{opacity:.45}@media(max-width:720px){.resolution-help{order:5;margin:0 18px 8px}}
/* Main controls share the same expandable structure on desktop and mobile. */
.control-panel{border:1px solid #dce4d5;background:#fff;border-radius:10px;margin:0 0 10px;overflow:hidden}.control-panel>summary{display:flex;align-items:center;gap:10px;min-height:54px;padding:15px 13px;cursor:pointer;list-style:none;color:#314c37;font-size:15px;font-weight:600;line-height:1.4}.control-panel>summary::-webkit-details-marker{display:none}.control-panel>summary:hover{background:#f6f8f1}.control-panel>summary:focus-visible{outline:3px solid #739252;outline-offset:-3px;border-radius:9px}.panel-number{font-size:12px;font-weight:400;color:#819077}.panel-chevron{margin-left:auto;font-size:20px;line-height:1;transition:transform .16s}.control-panel[open]>.control-panel-summary{background:#f0f5e8}.control-panel[open]>summary{background:#f0f5e8;border-bottom:1px solid #dce4d5}.control-panel[open]>summary .panel-chevron{transform:rotate(180deg)}.panel-body{padding:16px 13px}.panel-body>.upload-box{margin-bottom:16px;padding:10px}.panel-body .motif-caption{margin-top:12px}.panel-body>.range-label:first-child{margin-top:0}.panel-body .lock-grid{gap:14px 7px}.panel-body>.color-help:last-child,.panel-body>p:last-child{margin-bottom:0}.panel-body .motif-group summary{font-size:13px}.panel-body .motif-group .motif span{font-size:12px}.panel-body .color-row{grid-template-columns:40px 32px minmax(0,1fr);gap:6px}.panel-body .color-fields input[type=color]{width:32px}.panel-body .color-fields input[type=text]{padding:8px 6px}.panel-body .asset-row{flex-wrap:wrap}.panel-body .asset-row span{flex:1;min-width:75px}.panel-body .asset-row button.erase-background{max-width:none}.panel-body .select-row{gap:8px}.panel-body .select-row select{min-width:0;max-width:65%}
@media(min-width:721px){main{align-items:start}aside{position:sticky;top:0;max-height:100dvh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#bdcbb3 transparent;padding:24px 18px 18px;overscroll-behavior:contain}.intro h1{font-size:26px}.intro p{margin:10px 0 22px;font-size:14px}.workspace{align-self:start}}
@media(min-width:1400px){aside{padding:26px 22px 20px}}
@media(max-width:720px){aside{padding:12px;overflow:visible;max-height:none;position:static}.control-panel{margin-bottom:10px}.control-panel>summary{min-height:56px;font-size:16px;padding:15px 14px}.panel-body{padding:17px 14px}.panel-body .color-row{grid-template-columns:50px 40px minmax(0,1fr);gap:8px}.panel-body .color-fields input[type=color]{width:40px}.panel-body .motif-group summary{font-size:14px}.panel-body .motif-group .motif span{font-size:13px}.panel-body .asset-row{flex-wrap:nowrap}.panel-body .asset-row span{min-width:0}}
@media(prefers-reduced-motion:reduce){.panel-chevron{transition:none}}

/* Compact working surface; guidance appears only when needed. */
.workspace-title{font-family:Georgia,serif;font-size:27px;font-weight:400;margin:0}
.canvas-foot{justify-content:flex-end;padding:12px 0 18px}
.export-panel{padding:18px}
.export-panel h2{margin:0}
.offline-panel{padding-top:16px;margin-top:18px}
#upload-status:empty,#palette-status:empty,#quality-note:empty,#status:empty{display:none}
.upload-box{margin-bottom:14px}
@media(max-width:720px){.workspace-title{font-size:24px}}

/* Ruang Pola Lifetime v0.1.0 — uploaded-motif-only adjustments */
.upload-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.upload-heading .upload-label{margin:0}.motif-count{font-size:12px;color:#55704f;background:#fff;border:1px solid #d5dfcf;border-radius:999px;padding:5px 8px;white-space:nowrap}#canvas{position:relative}.canvas-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;padding:28px;color:#36543d;background:linear-gradient(135deg,#ffffff24,#ffffff50)}.canvas-empty[hidden]{display:none!important}.canvas-empty strong{font-size:20px}.canvas-empty span{font-size:13px;color:#637366}.asset-row{min-width:0}.asset-row img{flex:0 0 auto}.asset-row span{word-break:break-word}.upload-box>#uploaded>.secondary{width:100%;margin-top:2px}.lock-grid{grid-template-columns:1fr 1fr}@media(max-width:720px){.upload-heading{align-items:flex-start;flex-direction:column}.motif-count{font-size:13px}.canvas-empty strong{font-size:18px}.canvas-empty span{font-size:13px}}
.canvas-empty{inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);width:min(360px,calc(100% - 42px));background:#fffffff2;border:1px solid #d8e0d3;border-radius:12px;box-shadow:0 8px 28px #1d35221a;color:#294c39}.canvas-empty span{color:#66766a}


/* Ruang Pola Lifetime v0.2.0 — multi-motif workflow and responsive UI */
.upload-box{border:0;background:transparent;padding:0;margin:0}.upload-heading{align-items:flex-start;margin-bottom:12px}.upload-heading>div:first-child{min-width:0}.upload-title{display:block;font-size:14px;color:#2d4a35}.upload-subtitle{display:block;font-size:12px;line-height:1.45;color:#7a8878;margin-top:3px}.motif-stats{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:0 0 auto}.motif-count{font-size:12px;padding:4px 8px;background:#f4f8ee}.motif-active-count{font-size:11px;color:#71806f;white-space:nowrap}.upload-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:72px;border:1.5px dashed #9eaf96;border-radius:10px;background:#f7f9f4;color:#2f543b;text-align:center;padding:13px;cursor:pointer;transition:border-color .15s,background .15s}.upload-action:hover{border-color:#58794e;background:#f0f5ea}.upload-action:focus-within{outline:3px solid #6e9029;outline-offset:2px}.upload-action span{font-size:14px;font-weight:700}.upload-action small{font-size:11px;color:#7b8878}.upload-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}.upload-limits{font-size:11px!important;margin:7px 0 0!important;text-align:center;color:#899286!important}#uploaded{display:block!important;margin-top:13px!important}#uploaded[hidden]{display:none!important}#asset-list{display:grid;gap:7px;max-height:440px;overflow:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:#bdcbb3 transparent}.asset-card{display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-areas:"preview info" "actions actions";gap:7px 9px;border:1px solid #dbe3d5;border-radius:10px;background:#fff;padding:7px;min-width:0;transition:opacity .15s,border-color .15s,background .15s}.asset-card.is-inactive{opacity:.62;background:#f6f7f4}.asset-card.is-inactive .asset-preview img{filter:grayscale(.55)}.asset-preview{grid-area:preview;width:52px;height:52px;border:1px solid #dce3d8;border-radius:7px;overflow:hidden;background:repeating-conic-gradient(#e4e9e1 0% 25%,#fff 0% 50%) 0/12px 12px;display:flex;align-items:center;justify-content:center}.asset-preview img{width:100%;height:100%;object-fit:contain}.asset-info{grid-area:info;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px}.asset-name{display:block;min-width:0;font-size:12px;line-height:1.35;color:#314b39;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-meta{display:inline-flex;align-items:center;width:max-content;max-width:100%;font-size:10px!important;line-height:1.2!important;color:#71806e!important;background:#f1f5ed;border-radius:999px;padding:3px 7px}.asset-actions{grid-area:actions;display:grid;grid-template-columns:auto minmax(0,1fr) 32px;align-items:center;gap:6px}.asset-toggle{display:flex;align-items:center;gap:5px;font-size:11px;color:#46604b;white-space:nowrap}.asset-toggle input{width:16px;height:16px;margin:0;accent-color:#365d41}.asset-card .erase-background{min-width:0;max-width:none!important;width:100%;font-size:11px!important;line-height:1.25!important;padding:7px 8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-delete{width:32px;height:32px;border:1px solid #ead9d6;border-radius:7px;background:#fff;color:#9c4b40;font-size:20px;line-height:1;padding:0;display:grid;place-items:center}.asset-delete:hover{background:#fff2ef;border-color:#d8aaa3}.danger-soft{width:100%;margin-top:8px!important;border-color:#ead9d6;color:#8d493f;background:#fff}#upload-status{font-size:11px;line-height:1.45;margin:8px 1px 0;color:#667466}.panel-body>.upload-box{padding:0}.canvas-wrap{box-shadow:0 1px 0 #fff inset}.canvas-empty{width:min(380px,calc(100% - 38px));padding:26px}.preview-top{margin-bottom:18px}.inspect-bar{margin-bottom:12px}
@media(min-width:721px){aside{top:88px;max-height:calc(100dvh - 88px)}.workspace{padding-top:24px}.canvas-wrap{height:clamp(390px,60vh,690px)}.project-bar{margin-bottom:17px}.preview-top{margin-bottom:16px}}
@media(max-width:720px){header{position:sticky;top:0;z-index:20;box-shadow:0 1px 0 #dce1d8}.preview-top{padding-top:16px}.canvas-wrap{height:min(86vw,390px);min-height:300px}.canvas-wrap.single{padding:16px}aside{margin:0 12px;padding:10px}.panel-body{padding:15px 12px}.upload-heading{flex-direction:row;gap:8px}.motif-stats{align-items:flex-end}.upload-action{min-height:68px}.asset-card{grid-template-columns:56px minmax(0,1fr);padding:8px}.asset-preview{width:56px;height:56px}.asset-name{font-size:13px}.asset-meta{font-size:11px!important}.asset-toggle{font-size:12px}.asset-card .erase-background{font-size:12px!important;min-height:34px}.asset-delete{width:34px;height:34px}.project-bar{margin:12px 12px 0}.preview-top,.inspect-bar,.canvas-wrap,.canvas-foot,.object-editor,.export-panel,.note,#status,.offline-panel{margin-left:12px;margin-right:12px}.canvas-badge{max-width:calc(100% - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.export-panel{padding:16px}.segmented{flex-shrink:0}.segmented button{padding:8px 9px}}
@media(max-width:380px){.brand{font-size:20px}.brandmark{font-size:29px}header .primary{padding:9px 10px}.preview-top{align-items:flex-start;gap:10px}.workspace-title{font-size:22px}.segmented button{font-size:11px}.asset-actions{grid-template-columns:auto minmax(0,1fr) 32px}.asset-card .erase-background{font-size:11px!important}}

/* Ruang Pola Lifetime v0.2.1 — reachable random action */
.random-dock{position:sticky;bottom:-1px;z-index:9;margin:10px -2px 0;padding:10px 2px 4px;background:linear-gradient(to bottom,#ffffff00 0,#fff 18px,#fff 100%)}
.random-action{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;box-shadow:0 7px 18px #203d2d18}
.random-action .random-icon{font-size:16px;line-height:1}.random-dock small{display:block;margin:6px 2px 0;text-align:center;color:#7b887b;font-size:10px;line-height:1.35}
@media(max-width:720px){body{padding-bottom:86px}.random-dock{position:fixed;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:60;margin:0;padding:0;background:none;pointer-events:none}.random-action{pointer-events:auto;min-height:54px;border-radius:15px;font-size:15px;box-shadow:0 10px 28px #17332338,0 0 0 1px #ffffff66}.random-dock small{display:none}.reset{margin-bottom:4px}}
@media(min-width:721px){.random-dock{padding-top:14px}.random-action{font-size:14px}}

/* Ruang Pola Lifetime v0.4.0 — export consistency and production output */
#layout-help{margin:7px 0 0;min-height:16px}
@media(max-width:720px){#layout-help{font-size:11px;line-height:1.4}}

/* v0.4.0 — export workflow */
.export-panel{align-items:flex-start}.export-copy{min-width:160px}.export-copy h2{margin:0 0 6px}.export-copy p{margin:0;color:#68745e;font-size:12px}.export-controls{display:flex;align-items:flex-end;justify-content:flex-end;gap:9px;flex-wrap:wrap;flex:1}.export-field{display:grid;gap:5px;font-size:11px;color:#6d7868}.export-field span{font-weight:600}.export-field select{min-width:150px}.export-buttons{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.export-help{flex-basis:100%;margin:2px 0 0;font-size:12px;line-height:1.5;color:#788377}.note:empty{display:none}
@media(max-width:900px){.export-copy{width:100%}.export-controls{justify-content:flex-start}.export-field{flex:1;min-width:145px}.export-field select{width:100%;min-width:0}.export-buttons{width:100%}.export-buttons button{flex:1}}
@media(max-width:720px){.export-panel{display:block}.export-copy{margin-bottom:14px}.export-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.export-buttons{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1.25fr}.export-buttons button{padding-left:8px;padding-right:8px}.export-help{margin-top:12px}.export-field{min-width:0}.export-field select{font-size:12px;padding:10px 7px}}
@media(max-width:420px){.export-controls{grid-template-columns:1fr}.export-buttons{grid-column:1;grid-template-columns:1fr 1fr}.export-buttons #jpg{grid-column:1/-1}.export-help{font-size:11px}}

/* v0.5.0 — local project recovery */
.project-status-row{flex-basis:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:#68745e}.project-status-row>span{min-width:0}.draft-state{color:#70806b}.project-buttons #restore-draft{border-color:#b8c9ac;background:#f7faef;color:#31553d}.project-buttons #restore-draft:hover{background:#eef5e5}.project-buttons #restore-draft[hidden]{display:none}
@media(max-width:720px){.project-status-row{align-items:flex-start;flex-direction:column;gap:4px}.project-buttons #restore-draft{grid-column:1/-1}}

/* v0.6.0 QA polish: clearer focus, safer touch targets, and busy feedback. */
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,label.upload-action:focus-visible{outline:3px solid #7d9a35;outline-offset:2px}
button[aria-busy="true"]{cursor:progress;opacity:.78}
#status{min-height:1.4em;line-height:1.45}
@media(max-width:720px){
  button,.secondary,.primary,.reset{min-height:42px}
  .asset-delete{min-width:42px;min-height:42px}
  .asset-actions{grid-template-columns:auto minmax(0,1fr) 42px}
  .project-buttons button{min-height:44px}
  .inspect-bar label{min-height:42px;display:inline-flex;align-items:center}
  .random-action{min-height:56px}
}
@media(max-width:360px){
  .project-bar,.preview-top,.inspect-bar,.canvas-wrap,.canvas-foot,.object-editor,.export-panel,.note,#status,.offline-panel{margin-left:8px;margin-right:8px}
  aside{margin-left:8px;margin-right:8px}
  .random-dock{left:8px;right:8px}
  .export-buttons{gap:6px}
}


/* v0.9.0 — Lifetime Access gate + production backend contract */
[hidden]{display:none!important}.license-locked{min-height:100dvh;background:#f3f5ef}.license-gate{min-height:100dvh;display:grid;place-items:center;padding:30px 18px;background:radial-gradient(circle at 20% 0,#eaf1df 0,transparent 32%),#f3f5ef}.license-shell{width:min(1020px,100%);background:#fff;border:1px solid #dbe2d5;border-radius:22px;box-shadow:0 22px 65px #1c38261a;overflow:hidden}.license-brand{height:74px;display:flex;align-items:center;gap:10px;padding:0 28px;border-bottom:1px solid #e5e9e1;color:#274535}.license-brand strong{font-size:22px;letter-spacing:-.6px}.license-brand>span:last-child{font-size:10px;letter-spacing:2px;border-left:1px solid #cfd8cb;padding-left:12px;margin-left:3px}.license-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr);gap:54px;padding:54px}.license-copy{align-self:center}.license-eyebrow{margin:0 0 12px;font-size:11px!important;letter-spacing:2.1px;font-weight:800;color:#6e7e69}.license-copy h1{font-family:Georgia,serif;font-size:42px;line-height:1.08;margin:0 0 18px;color:#294738}.license-lead{font-size:16px;line-height:1.7;margin:0;color:#68766c;max-width:560px}.license-points{display:grid;gap:14px;margin-top:30px}.license-points>div{display:flex;gap:11px;align-items:flex-start}.license-points b{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:999px;background:#eef5df;color:#416338}.license-points span{display:grid;gap:2px}.license-points strong{font-size:14px;color:#344f3e}.license-points small{font-size:12px;color:#7a877c;line-height:1.4}.license-card{border:1px solid #dce4d7;border-radius:16px;padding:25px;background:#fbfcf9;align-self:center}.license-card form{display:grid;gap:8px}.license-card label{font-size:12px;font-weight:700;color:#3d5746;margin-top:5px}.license-card input{width:100%;height:46px;border:1px solid #cfd9ca;border-radius:9px;background:#fff;padding:0 12px;color:#294738;cursor:text}.license-card input:focus{border-color:#6d8b60}.license-submit{width:100%;min-height:48px;margin-top:10px}.license-status{min-height:20px;margin:3px 0 0!important;font-size:12px!important;text-align:center}.license-status[data-type=error]{color:#9a4239}.license-preview-box{margin-top:17px;padding-top:17px;border-top:1px solid #e1e6dd;text-align:center}.license-preview-box>span{display:inline-block;font-size:9px;font-weight:800;letter-spacing:1.4px;background:#eef3e7;color:#52704d;border-radius:999px;padding:5px 8px}.license-preview-box p{font-size:11px;line-height:1.45;margin:8px 0 10px}.license-preview-box button{width:100%;padding:10px}.license-privacy{font-size:10px!important;line-height:1.5!important;text-align:center;margin:14px 0 0!important;color:#899287!important}.license-header{display:flex;align-items:center;gap:12px}.license-header>div{display:grid;gap:1px;text-align:right}.license-header strong{font-size:12px;color:#31503c}.license-header span{font-size:10px;color:#7b887d}.license-header .secondary{padding:8px 11px;font-size:11px;min-height:36px}
@media(max-width:760px){.license-gate{padding:14px}.license-shell{border-radius:17px}.license-brand{height:64px;padding:0 20px}.license-brand strong{font-size:20px}.license-layout{grid-template-columns:1fr;gap:26px;padding:28px 20px 22px}.license-copy h1{font-size:32px}.license-lead{font-size:14px}.license-points{margin-top:22px;gap:11px}.license-card{padding:19px}.license-header>div{display:none}.license-header{gap:5px}.license-header .secondary{padding:7px 9px}.license-locked{padding-bottom:0!important}}
@media(max-width:380px){.license-layout{padding-left:15px;padding-right:15px}.license-brand{padding-left:16px;padding-right:16px}.license-copy h1{font-size:29px}.license-brand>span:last-child{display:none}}

/* v1.1.1 — Lifetime Access Center */
.access-dialog{width:min(94vw,680px);height:auto;max-height:92vh;background:#f7f9f4}
.access-dialog-shell{display:flex;flex-direction:column;max-height:92vh}
.access-dialog-body{padding:22px;overflow:auto}
.access-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.access-summary>div{border:1px solid #d8e0d2;background:#fff;border-radius:10px;padding:13px;min-width:0}
.access-summary span{display:block;font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:#7b887d;margin-bottom:5px;font-weight:700}
.access-summary strong{display:block;font-size:13px;color:#294c39;overflow-wrap:anywhere}
.access-connection{display:flex;gap:11px;align-items:flex-start;border:1px solid #d8e0d2;background:#eef4e8;border-radius:10px;padding:14px;margin-bottom:16px}
#access-connection-dot{width:11px;height:11px;border-radius:999px;background:#5d8359;box-shadow:0 0 0 4px #dcebd5;flex:0 0 auto;margin-top:3px}
.access-connection[data-state="offline"]{background:#fff6df;border-color:#e8d5a4}.access-connection[data-state="offline"] #access-connection-dot{background:#b28227;box-shadow:0 0 0 4px #f3e6bf}
.access-connection[data-state="error"]{background:#fff0ed;border-color:#e8c5bf}.access-connection[data-state="error"] #access-connection-dot{background:#aa4f45;box-shadow:0 0 0 4px #f0d7d2}
.access-connection strong{font-size:13px}.access-connection p{font-size:12px;line-height:1.5;margin:4px 0 0;color:#68766c}
.access-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.access-actions #license-logout{grid-column:1/-1}
.access-actions button{min-height:42px}
.access-help{font-size:11px!important;line-height:1.55!important;color:#7d887d!important;margin:12px 0 0!important}
.license-header .secondary{white-space:nowrap}
@media(max-width:720px){.access-dialog{width:min(96vw,520px);max-height:94vh}.access-dialog-body{padding:15px}.access-summary{grid-template-columns:1fr}.access-actions{grid-template-columns:1fr}.access-actions #license-logout{grid-column:auto}.access-actions button{min-height:46px}.license-header .secondary{min-height:36px;padding:7px 10px}}
