:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#183746;background:#f4f7f9;font-synthesis:none;--pr-bg:#f4f7f9;--pr-panel:#fff;--pr-text:#183746;--pr-muted:#627886;--pr-line:#dbe4e9;--pr-accent:#117d82;--pr-tint:#e8f4f3;--pr-shadow:0 12px 40px #1737470a;color-scheme:light}
:root[data-theme=dark]{--pr-bg:#0d151d;--pr-panel:#14212b;--pr-text:#e0edf2;--pr-muted:#99afbc;--pr-line:#2c404d;--pr-accent:#5cd3c2;--pr-tint:#173c3e;--pr-shadow:0 12px 40px #0003;color-scheme:dark;color:var(--pr-text);background:var(--pr-bg)}
*{box-sizing:border-box}body{margin:0;background:var(--pr-bg);color:var(--pr-text)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button,.pr-button{border:1px solid var(--pr-line);border-radius:9px;background:var(--pr-panel);color:var(--pr-text);padding:9px 14px;font-size:13px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:hover,.pr-button:hover{border-color:var(--pr-accent);color:var(--pr-accent)}button.pr-primary,.pr-primary{background:var(--pr-accent);color:var(--pr-panel);border-color:var(--pr-accent);font-weight:650}.pr-primary:hover{filter:brightness(.95);color:var(--pr-panel)}input,select,textarea{padding:10px 12px;border:1px solid var(--pr-line);background:var(--pr-panel);color:var(--pr-text);border-radius:8px;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid var(--pr-accent);outline-offset:1px}label{font-size:12px;color:var(--pr-muted);display:grid;gap:7px}h1,h2,h3,p{margin-top:0}small{color:var(--pr-muted)}[hidden]{display:none!important}.pr-header{height:76px;padding:0 32px;display:flex;align-items:center;gap:44px;background:var(--pr-panel);border-bottom:1px solid var(--pr-line)}.pr-brand{display:flex;gap:10px;text-decoration:none;color:var(--pr-text);line-height:1.15;font-size:19px}.pr-brand small{display:block;font-size:10px;letter-spacing:.07em;margin-top:5px}.pr-brand-icon{background:#143f4a;color:#a0e7dd;display:grid;place-items:center;width:43px;height:43px;border-radius:12px;font-size:30px}.pr-header nav{display:flex;gap:25px;font-size:13px;height:100%;align-items:center}.pr-header nav a{color:var(--pr-muted);text-decoration:none;height:100%;display:flex;align-items:center;border-bottom:2px solid transparent}.pr-header nav a[aria-current]{color:var(--pr-accent);border-color:var(--pr-accent)}.pr-account{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12px}.pr-account #pr-user{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pr-dashboard{max-width:1380px;margin:auto;padding:45px 40px}.pr-eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:10px;font-weight:750;color:var(--pr-accent);margin-bottom:10px}.pr-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.pr-heading h1{font-size:32px;letter-spacing:-.04em;margin-bottom:9px;font-weight:650}.pr-heading p{font-size:14px;color:var(--pr-muted);max-width:680px;line-height:1.6}.pr-heading-actions{display:flex;gap:10px;flex-shrink:0}.pr-sync{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--pr-muted);margin:18px 0 30px}.pr-sync:before{content:'';width:7px;height:7px;background:#36a490;border-radius:50%}.pr-sync[data-warning=true]:before{background:#d29836}.pr-feature{display:grid;grid-template-columns:1fr 245px;overflow:hidden;background:var(--pr-panel);border:1px solid var(--pr-line);border-radius:16px;box-shadow:var(--pr-shadow);margin-bottom:32px}.pr-feature-copy{padding:25px 28px}.pr-feature h2{font-size:21px;margin:5px 0 10px;letter-spacing:-.02em}.pr-feature p{font-size:13px;color:var(--pr-muted);line-height:1.7;max-width:620px}.pr-feature .pr-badges{margin-bottom:19px}.pr-feature-art{background:var(--pr-tint);display:grid;place-items:center;padding:15px}.pr-feature-art svg{height:180px;width:150px;stroke:var(--pr-accent);fill:none}.pr-badges{display:flex;gap:7px;flex-wrap:wrap}.pr-badge{font-size:10px;padding:5px 8px;border-radius:5px;background:var(--pr-tint);color:var(--pr-accent)}.pr-filterbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0}.pr-tabs{display:flex;gap:5px;flex-wrap:wrap}.pr-tabs button{background:transparent;border-color:transparent;padding:9px 12px}.pr-tabs button[aria-pressed=true]{background:var(--pr-panel);border-color:var(--pr-line);color:var(--pr-accent);box-shadow:0 2px 4px #00000003}.pr-tools{display:flex;gap:10px;align-items:center}.pr-tools input{width:200px;font-size:12px}.pr-tools label{display:flex;align-items:center;gap:6px;white-space:nowrap}.pr-tools label input{width:auto}.pr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.pr-card{overflow:hidden;border:1px solid var(--pr-line);border-radius:14px;background:var(--pr-panel);box-shadow:0 2px 5px #00000002;transition:transform .18s,box-shadow .18s}.pr-card:hover{transform:translateY(-2px);box-shadow:var(--pr-shadow)}.pr-card-art{height:150px;background:var(--pr-tint);display:grid;place-items:center;position:relative;color:var(--pr-accent);overflow:hidden}.pr-card-art:before{content:'';position:absolute;inset:0;background-image:linear-gradient(var(--pr-line) 1px,transparent 1px),linear-gradient(90deg,var(--pr-line) 1px,transparent 1px);background-size:24px 24px;opacity:.35}.pr-card-art svg{width:130px;height:120px;stroke:currentColor;fill:none;stroke-width:1.8;z-index:1}.pr-card-art img{width:100%;height:100%;object-fit:cover}.pr-card-art .pr-badge{position:absolute;top:12px;left:12px;background:var(--pr-panel);z-index:2}.pr-card-content{padding:18px}.pr-card-content h3{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:7px}.pr-card-meta{display:flex;justify-content:space-between;font-size:11px;color:var(--pr-muted);margin-bottom:20px}.pr-card-actions{display:flex;gap:7px;align-items:center}.pr-card-actions .pr-open{margin-right:auto;flex:1}.pr-card-actions button:not(.pr-open){padding:8px 9px}.pr-empty{grid-column:1/-1;padding:50px;text-align:center;color:var(--pr-muted);border:1px dashed var(--pr-line);border-radius:12px}.pr-loading{padding:60px;text-align:center;color:var(--pr-muted)}.pr-dialog{width:min(530px,94vw);border:1px solid var(--pr-line);border-radius:17px;padding:28px;background:var(--pr-panel);color:var(--pr-text);box-shadow:0 20px 100px #0003}.pr-dialog::backdrop{background:#0b1c2c70;backdrop-filter:blur(4px)}.pr-dialog h2{font-size:23px;margin-bottom:10px}.pr-dialog p{font-size:13px;color:var(--pr-muted);line-height:1.6}.pr-dialog form{display:grid;gap:18px}.pr-dialog footer{display:flex;gap:10px;justify-content:flex-end}.pr-type-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.pr-type-option{padding:15px 9px;display:grid;justify-items:center;gap:6px;text-align:center;border:1px solid var(--pr-line);border-radius:10px;cursor:pointer}.pr-type-option:has(input:checked){background:var(--pr-tint);border-color:var(--pr-accent);color:var(--pr-accent)}.pr-type-option input{accent-color:var(--pr-accent)}.pr-type-option svg{height:40px;width:40px;stroke:currentColor;fill:none;stroke-width:1.8}.pr-toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--pr-text);color:var(--pr-panel);border:1px solid var(--pr-line);padding:13px 20px;border-radius:10px;font-size:13px;z-index:99999;max-width:90vw;box-shadow:var(--pr-shadow)}.pr-editor-header{height:68px;display:flex;align-items:center;padding:10px 24px;gap:14px;background:var(--pr-panel);border-bottom:1px solid var(--pr-line)}.pr-editor-heading{min-width:0;margin-right:auto}.pr-editor-heading h1{font-size:17px;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pr-editor-heading small{font-size:11px}.pr-save-state{font-size:11px;color:var(--pr-muted);max-width:230px}.pr-editor-header select{font-size:12px;padding:8px}.pr-editor-body{height:calc(100dvh - 144px);min-height:520px}.pr-project-view #pr-app{height:calc(100dvh - 76px)}.pr-error{margin:40px auto;padding:25px;max-width:650px;border:1px solid var(--pr-line);background:var(--pr-panel);border-radius:12px}.pr-error p{color:var(--pr-muted)}.pr-editor-header .pr-back{font-size:18px;padding:7px 11px}.pr-dialog .pr-import-file{width:100%}
@media(max-width:1050px){.pr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pr-header{gap:25px;padding:0 22px}.pr-dashboard{padding:30px 24px}.pr-filterbar{align-items:flex-start;flex-direction:column}.pr-editor-header{gap:8px;padding:10px 14px}.pr-save-state{max-width:150px}}
@media(max-width:650px){.pr-header{height:65px;padding:0 12px;gap:12px}.pr-header nav{display:none}.pr-brand{font-size:16px}.pr-account #pr-user{display:none}.pr-brand-icon{width:35px;height:35px}.pr-account{gap:5px}.pr-heading{align-items:flex-start;flex-direction:column}.pr-heading h1{font-size:27px}.pr-dashboard{padding:25px 16px}.pr-grid{grid-template-columns:1fr}.pr-feature{grid-template-columns:1fr 100px}.pr-feature-copy{padding:19px}.pr-feature-art{padding:4px}.pr-feature-art svg{width:90px}.pr-tools{width:100%;flex-wrap:wrap}.pr-tools input{flex:1}.pr-tabs{gap:1px}.pr-tabs button{font-size:11px;padding:7px 9px}.pr-editor-header{height:auto;min-height:92px;flex-wrap:wrap}.pr-editor-heading{max-width:calc(100% - 50px);flex:1}.pr-editor-header .pr-save-state{margin-left:45px;max-width:180px;flex:1}.pr-editor-header #pr-export{font-size:11px}.pr-editor-body{height:calc(100dvh - 163px);min-height:590px}.pr-project-view #pr-app{height:auto}.pr-type-options{gap:5px}.pr-type-option{font-size:11px}.pr-dialog{padding:22px}}

/* Shared project shell: fixed editing area, readable on narrow screens. */
.pr-sync-actions{display:flex;gap:8px;align-items:center;min-height:38px;margin:0 0 18px;flex-wrap:wrap}.pr-sync-actions button{font-size:11px;padding:6px 10px}.pr-project-view .pr-sync-actions{margin:0;padding:5px 24px;min-height:40px;border-bottom:1px solid var(--pr-line);background:var(--pr-panel)}.pr-editor-body{height:calc(100dvh - 184px);min-height:480px}.pr-editor-heading small{display:block}.pr-guest-row{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid var(--pr-line)}
@media(max-width:650px){.pr-editor-header{display:grid;grid-template-columns:36px minmax(0,1fr) 125px;grid-template-areas:'back name name' 'save save status' 'rename export export';gap:8px;padding:12px}.pr-back{grid-area:back}.pr-editor-heading{grid-area:name;max-width:none;width:100%;min-width:0}.pr-editor-header .pr-save-state{grid-area:save;margin:0;max-width:none}.pr-editor-header #pr-status{grid-area:status;width:125px}.pr-editor-header #pr-rename{grid-area:rename;padding:8px}.pr-editor-header #pr-export{grid-area:export;justify-self:end}.pr-project-view .pr-sync-actions{padding:6px 12px}.pr-editor-body{height:auto;min-height:0}.pr-editor-heading h1{white-space:normal;overflow-wrap:break-word}.pr-editor-heading small{font-size:10px}.pr-project-view #pr-app{height:auto}}

@media(max-width:650px){.pr-editor-header #pr-insert-property{grid-column:1/-1;width:100%}}
