:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#root{width:100%}.app-shell{display:flex;flex-direction:column;gap:1.5rem;width:min(1480px,calc(100vw - 2rem));margin:0 auto;padding:1.25rem 0 3rem}.hero-panel,.card-panel,.workspace-header{background:linear-gradient(135deg,#fff9eff2,#f3ebd9eb),var(--panel-bg);border:1px solid rgba(116,87,53,.14);border-radius:28px;box-shadow:0 20px 48px #42301c14}.hero-panel{display:grid;grid-template-columns:1.7fr 1fr;gap:1.5rem;padding:2rem}.hero-panel h1,.workspace-header h1{margin:.3rem 0 .75rem;font-size:clamp(2rem,4vw,3.4rem);line-height:1}.hero-copy,.muted-copy,.workspace-header p,.project-card p,.list-card span,.empty-state p,.demo-card__copy,.graph-node__body span,.field-card p,.annotation-card p{color:var(--muted)}.hero-actions,.workspace-header__actions,.project-card__actions,.export-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-start}.hero-actions{justify-content:flex-end;align-content:flex-start}.button{border:1px solid rgba(108,73,37,.22);border-radius:999px;background:#fffaf3db;color:var(--ink);padding:.7rem 1.05rem;font-size:.96rem;font-weight:700;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.button:hover{border-color:#734a1861;box-shadow:0 12px 24px #704e2d1f;transform:translateY(-1px)}.button--primary{background:linear-gradient(135deg,#9a5124,#d9862f);border-color:#85461980;color:#fff8f2}.button--danger{background:#762a1c14;border-color:#762a1c3d;color:#7b2e23}.button--small{padding:.4rem .75rem;font-size:.82rem}.eyebrow{margin:0;font-size:.8rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}.card-panel{padding:1.4rem}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}.section-heading h2,.project-card h3,.card-panel h3,.empty-state h3{margin:.25rem 0 0}.status-banner{border-radius:20px;padding:.95rem 1.2rem;font-weight:700}.status-banner--success{background:#2671541f;border:1px solid rgba(38,113,84,.22);color:#1f5b46}.status-banner--error{background:#8f25251a;border:1px solid rgba(143,37,37,.2);color:#7b2323}.status-banner--info{background:#3d5f8a1a;border:1px solid rgba(61,95,138,.22);color:#35557a}.demo-grid,.project-grid,.workspace-summary,.logic-counts{display:grid;gap:1rem}.demo-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.demo-card,.list-card,.component-list__select{display:flex;flex-direction:column;gap:.35rem;width:100%;padding:1rem;text-align:left;border-radius:22px;border:1px solid rgba(113,81,47,.16);background:#fffcf7e6}.demo-card:hover,.list-card:hover,.component-list__select:hover{transform:translateY(-2px);box-shadow:0 12px 24px #6e51301a}.demo-card__title{font-weight:800;color:var(--ink)}.project-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.project-card{display:flex;flex-direction:column;gap:1rem;padding:1.25rem;border-radius:24px;border:1px solid rgba(113,81,47,.16);background:#fffcf7f0}.project-card__top,.workspace-header{display:flex;justify-content:space-between;gap:1rem}.project-card__stats,.chip-row,.component-palette{display:flex;flex-wrap:wrap;gap:.75rem}.pill,.chip,.summary-pill{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.38rem .75rem;background:#f5ecdcdb;color:#6c4f2b;font-size:.85rem;font-weight:700}.chip{border:1px solid rgba(115,84,43,.12)}.chip--active{background:linear-gradient(135deg,#9a5124,#d9862f);border-color:#9a51245c;color:#fff7ef}.summary-pill{flex-direction:column;align-items:flex-start;min-width:125px;padding:.9rem 1rem;border:1px solid rgba(114,84,47,.12)}.summary-pill strong{font-size:1.45rem}.workspace-header{align-items:flex-start;padding:1.4rem 1.5rem}.workspace-header__title{flex:1}.workspace-summary{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.tab-row{display:flex;flex-wrap:wrap;gap:.7rem}.tab-row__button{border:1px solid rgba(108,73,37,.16);border-radius:999px;background:#fffcf7d1;padding:.7rem 1rem;color:var(--ink);font-weight:700}.tab-row__button--active{background:linear-gradient(135deg,#1f5b46,#48856a);border-color:#1f5b4652;color:#f5fff9}.workspace-grid{display:grid;gap:1.25rem}.workspace-grid--overview,.workspace-grid--graph,.workspace-grid--state,.workspace-grid--logic{grid-template-columns:minmax(0,1.65fr) minmax(320px,.95fr)}.workspace-grid--pages{grid-template-columns:minmax(240px,.7fr) minmax(0,1.2fr) minmax(360px,1fr)}.overview-list,.list-stack,.editor-stack,.annotation-group,.field-card-list{display:flex;flex-direction:column;gap:1rem}.graph-stage{min-height:720px}.graph-toolbar{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}.graph-board{position:relative;min-height:620px;overflow:auto;border-radius:24px;background:radial-gradient(circle at top left,rgba(238,222,194,.65),transparent 32%),linear-gradient(180deg,#f9f3e7f2,#f3ece2eb);border:1px dashed rgba(116,87,53,.2)}.graph-board__svg{position:absolute;inset:0;width:100%;height:100%;min-width:980px;min-height:620px}.graph-path{fill:none;stroke:#81542d;stroke-width:3;cursor:pointer}.graph-path--selected{stroke:#2a7a5b}.graph-path--draft{stroke-dasharray:8 8}.graph-path__label{fill:#6b7280;font-size:.86rem;font-weight:700}.graph-node{position:absolute;width:220px;height:164px;border-radius:24px;border:2px solid rgba(113,81,47,.2);box-shadow:0 18px 36px #57422824}.graph-node--selected{box-shadow:0 0 0 4px #2a7a5b2e,0 18px 36px #5742282e}.graph-node__body{display:flex;flex-direction:column;gap:.55rem;width:100%;height:100%;padding:1.15rem;cursor:grab}.graph-node__body:active{cursor:grabbing}.graph-node__body strong{font-size:1.05rem}.graph-node__body small{margin-top:auto;color:#7b8794}.graph-node__connector{position:absolute;top:calc(50% - 13px);right:-13px;width:26px;height:26px;padding:0;border-radius:50%;border:2px solid #8a5f39;background:#fff9f0}.page-preview-shell{min-height:680px;display:flex;justify-content:center;align-items:flex-start;padding:1rem;border-radius:24px;background:radial-gradient(circle at top,rgba(245,226,197,.52),transparent 36%),#fcf8f1e6}.page-preview{width:min(100%,760px);min-height:620px}.preview-field,.preview-checkbox{display:flex;flex-direction:column;gap:.5rem}.preview-checkbox{flex-direction:row;align-items:center}.field{display:flex;flex-direction:column;gap:.4rem}.field span,.field-group__title{font-size:.86rem;font-weight:700;color:#5c4630}.field input,.field select,.field textarea,.code-preview textarea,.preview-field input,.preview-field textarea,.preview-field select{width:100%;border:1px solid rgba(114,84,47,.18);border-radius:16px;background:#fffdf9f5;color:var(--ink);padding:.82rem .9rem;font:inherit;box-sizing:border-box}.field input[type=color]{min-height:3rem;padding:.3rem}.field--inline{min-width:140px}.field--grow{flex:1}.file-input{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.7rem 1rem;border-radius:999px;background:#fffcf7eb;border:1px solid rgba(109,79,43,.18);color:var(--ink);cursor:pointer;font-weight:700}.file-input input{display:none}.component-list__item,.field-card,.annotation-card,.nested-field{display:flex;flex-direction:column;gap:.85rem;padding:1rem;border-radius:22px;border:1px solid rgba(113,81,47,.14);background:#fffcf7eb}.component-list__item--selected,.list-card--selected{box-shadow:0 0 0 3px #2a7a5b26;border-color:#2a7a5b47}.component-list__select{padding:0;border:0;background:transparent;box-shadow:none}.component-list__actions,.field-card__top,.annotation-card__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem}.style-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.85rem}.annotation-block{display:flex;flex-direction:column;gap:.75rem;padding-top:.4rem;border-top:1px solid rgba(111,82,48,.12)}.code-preview textarea{min-height:500px;font-family:Courier New,monospace;resize:vertical}.empty-state{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.5rem;padding:1.4rem;min-height:180px;border-radius:24px;background:#fffcf7db;border:1px dashed rgba(112,82,48,.24)}@media (max-width: 1100px){.hero-panel,.workspace-grid--overview,.workspace-grid--graph,.workspace-grid--pages,.workspace-grid--state,.workspace-grid--logic,.workspace-header{grid-template-columns:1fr;display:flex;flex-direction:column}.hero-actions,.workspace-header__actions{justify-content:flex-start}}@media (max-width: 720px){.app-shell{width:min(100vw - 1rem,1480px)}.hero-panel,.card-panel,.workspace-header{border-radius:22px;padding:1rem}.section-heading,.project-card__top{flex-direction:column}.tab-row__button,.button,.file-input{width:100%;justify-content:center}.graph-board{min-height:520px}}
