:root{--bg:#fff;--panel:#fff;--muted:#737373;--text:#171717;--border:#e6e6e6;--accent:#f5f5f5;--header-height:56px;--reader-width:40rem;--workspace-width:60rem;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}body{color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;margin:0;font-family:Inter,Helvetica Neue,Arial,sans-serif;font-weight:400}a,button{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0;padding:0}.app{background:var(--bg);min-height:100vh}.topbar{z-index:50;width:100%;height:var(--header-height);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff2;position:sticky;top:0}.topbar-inner{align-items:center;gap:16px;width:100%;height:100%;padding:0 24px;display:flex}.brand{border-radius:10px;justify-content:center;align-items:center;width:32px;height:32px;text-decoration:none;display:inline-flex}.brand-mark{justify-content:center;align-items:center;font-size:15px;font-weight:600;line-height:1;display:inline-flex}.primary-nav{align-items:center;gap:4px;display:flex}.primary-nav a{color:#171717b8;border-radius:10px;align-items:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;text-decoration:none;display:inline-flex}.primary-nav a.active,.primary-nav a:hover{color:var(--text)}.toolbar{align-items:center;gap:10px;margin-left:auto;display:flex}.toolbar-search{border:1px solid var(--border);min-width:220px;height:36px;color:var(--muted);background:#fff;border-radius:10px;align-items:center;padding:0 12px;font-size:13px;display:inline-flex}.toolbar-chip{color:#171717b8;border-radius:10px;align-items:center;gap:8px;height:32px;padding:0 8px;font-size:14px;font-weight:500;text-decoration:none;transition:color .15s,background-color .15s;display:inline-flex}.toolbar-chip:hover{color:var(--text)}.toolbar-divider{background:var(--border);width:1px;height:16px}.toolbar-button{width:32px;height:32px;color:var(--text);border-radius:6px;justify-content:center;align-items:center;transition:background-color .15s,color .15s;display:inline-flex}.toolbar-button:hover{background:var(--accent)}.new-button{color:#fafafa;background:#171717;border-radius:10px;justify-content:center;align-items:center;gap:8px;height:31px;padding:0 12px;font-size:14px;font-weight:500;transition:background-color .15s;display:inline-flex}.new-button:hover{background:#171717e6}.toolbar-icon{flex:none;width:16px;height:16px}.layout{width:100%;padding:0 24px}.layout-grid{grid-template-columns:224px minmax(0,1fr);gap:32px;width:100%;display:grid}.sidebar{top:calc(var(--header-height) + 10px);height:calc(100svh - var(--header-height) - 10px);margin-top:10px;position:sticky;overflow:visible}.sidebar-rail{background:linear-gradient(to bottom, transparent, var(--border), transparent);pointer-events:none;width:1px;position:absolute;top:48px;bottom:0;right:-12px}.sidebar-scroll{flex-direction:column;width:224px;height:100%;padding:36px 12px 0;display:flex;position:relative;overflow-y:auto}.sidebar-section+.sidebar-section{padding-top:24px}.sidebar-main{min-height:0;margin-top:26px}.sidebar-label{color:#17171785;margin:0 0 8px;padding:0;font-size:12px;font-weight:500}.sidebar-label-row{justify-content:space-between;align-items:center;margin-bottom:8px;padding:0 8px;display:flex}.sidebar-label-row .sidebar-label{margin:0}.sidebar-add-btn{color:#171717b8;background:0 0;border:none;border-radius:8px;width:24px;height:24px;font-size:16px;line-height:1}.sidebar-add-btn:hover{background:var(--accent);color:var(--text)}.sidebar-quick-form{gap:6px;margin:0 8px 10px;display:grid}.sidebar-quick-form input{border:1px solid var(--border);background:#fff;border-radius:8px;width:100%;min-height:30px;padding:0 8px;font-size:12px}.sidebar-quick-submit{border:1px solid var(--border);background:#fff;border-radius:8px;min-height:28px;font-size:12px;font-weight:500}.sidebar-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.sidebar-link{color:#171717d1;border:1px solid #0000;border-radius:8px;align-items:center;width:fit-content;max-width:100%;min-height:30px;padding:0 8px;font-size:12.8px;font-weight:500;text-decoration:none;display:inline-flex}.sidebar-link.active{background:var(--accent);color:var(--text)}.sidebar-top-tools,.sidebar-tools{gap:2px;padding:0;display:grid}.sidebar-tools{margin-top:auto;padding-bottom:36px}.sidebar-tool-group{gap:2px;display:grid}.sidebar-tool-group .sidebar-label{padding:0 8px}.sidebar-settings-link{margin-top:14px}.sidebar-tool-link{color:#171717b8;text-align:left;border-radius:8px;align-items:center;width:100%;min-height:30px;padding:0 8px;font-size:12.8px;font-weight:500;text-decoration:none;display:flex}.sidebar-tool-link:hover,.sidebar-tool-link.active{background:var(--accent);color:var(--text)}.content{min-width:0;padding:40px 0 72px}.content-shell{max-width:var(--reader-width);width:100%;margin:0 auto}.page-title{letter-spacing:-.02em;margin:0;font-size:36px;font-weight:600;line-height:1.08}.app-home{gap:26px;display:grid}.content-shell-workspace{max-width:var(--workspace-width)}.content-shell-reader,.content-shell-notebook{max-width:var(--reader-width)}.dashboard-hero{grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);align-items:center;gap:28px;display:grid}.dashboard-preview{opacity:.92;background:#fafafa;border:1px solid #e6e6e6e6;border-radius:12px;min-height:176px;padding:16px}.preview-browser{border-bottom:1px solid #e6e6e6e6;gap:4px;height:20px;display:flex}.preview-browser span{background:#e5e5e5;border-radius:999px;width:6px;height:6px}.preview-shell{grid-template-columns:100px minmax(0,1fr);gap:18px;padding-top:18px;display:grid}.preview-sidebar,.preview-page{gap:8px;display:grid}.preview-sidebar i,.preview-page i,.preview-page b,.preview-page em{background:#e8e8e8;border-radius:999px;height:8px;display:block}.preview-sidebar i:first-child,.preview-page b{background:#dedede;width:72%}.preview-sidebar i:nth-child(2){width:88%}.preview-sidebar i:nth-child(3){width:58%}.preview-sidebar i:nth-child(4){width:78%}.preview-page i{width:92%}.preview-page i:nth-of-type(2){width:76%}.preview-page em{background:#f0f0f0;width:44%;height:40px;margin-top:6px}.dashboard-site{min-width:0}.status-row{align-items:center;gap:8px;display:flex}.dashboard-site h1{margin:0;font-size:24px;font-weight:600;line-height:1.25}.dashboard-site p{color:var(--muted);margin:6px 0 0;font-size:14px;line-height:1.55}.dashboard-actions{flex-wrap:wrap;gap:8px;margin-top:18px;display:flex}.icon-action{border:1px solid var(--border);min-height:31px;color:var(--text);background:#fff;border-radius:8px;justify-content:center;align-items:center;padding:0 10px;font-size:13px;font-weight:500;text-decoration:none;display:inline-flex}.icon-action:hover{background:var(--accent)}.domain-block{gap:10px;margin:20px 0 0;display:grid}.domain-block dt{color:var(--muted);margin:0 0 4px;font-size:12px}.domain-block dd{margin:0;font-size:14px;font-weight:600}.app-dashboard{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.editor-workspace{gap:28px;display:grid}.editor-head{justify-content:space-between;align-items:center;gap:20px;display:flex}.editor-head h1{letter-spacing:-.02em;margin:0;font-size:28px;line-height:1.15}.editor-head p{max-width:600px;color:var(--muted);margin:8px 0 0;font-size:14px;line-height:1.6}.editor-list-group{gap:28px;display:grid}.editor-section{gap:10px;display:grid}.editor-section-head{justify-content:space-between;align-items:center;min-height:28px;display:flex}.editor-section-head h2{color:var(--muted);margin:0;font-size:13px;font-weight:500;line-height:1.3}.editor-list{gap:2px;display:grid}.editor-row,.editor-empty-row{text-align:left;border-radius:9px;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:36px;padding:7px 9px;display:flex}.editor-row:hover,.editor-empty-row:hover{background:var(--accent)}.editor-row span,.editor-empty-row{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12.8px;font-weight:500;overflow:hidden}.editor-row small{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--muted);font-size:11.5px;overflow:hidden}.editor-muted{color:var(--muted);margin:0;font-size:12.8px;line-height:1.5}.utility-page{gap:24px;display:grid}.utility-head h1{letter-spacing:-.02em;margin:0;font-size:28px;line-height:1.15}.utility-head p{max-width:620px;color:var(--muted);margin:8px 0 0;font-size:14px;line-height:1.6}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.metric-card,.settings-row{border:1px solid var(--border);background:#fff;border-radius:14px}.metric-card{gap:8px;padding:16px;display:grid}.metric-card span,.settings-row p{color:var(--muted);font-size:12.5px;line-height:1.5}.metric-card strong{font-size:24px;line-height:1.1}.utility-panel{padding:16px}.settings-list{gap:12px;display:grid}.settings-row{justify-content:space-between;align-items:flex-start;gap:20px;padding:16px;display:flex}.settings-row h2{margin:0;font-size:14px;line-height:1.35}.settings-row p{max-width:520px;margin:6px 0 0}.settings-row span{color:#171717b8;flex:none;font-size:12.5px;font-weight:500}.app-panel{border:1px solid var(--border);background:#fff;border-radius:10px;min-width:0;padding:14px}.app-panel-main{grid-column:1/-1}.app-panel-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.app-panel h2,.app-panel-head h2{margin:0;font-size:14px;font-weight:600;line-height:1.25}.app-panel-head a,.app-panel-head button{color:#171717b8;border-radius:8px;min-height:28px;padding:0 8px;font-size:12px;font-weight:500;text-decoration:none}.app-panel-head a:hover,.app-panel-head button:hover{background:var(--accent);color:var(--text)}.segmented-tabs{background:var(--accent);border-radius:8px;align-items:center;gap:2px;padding:2px;display:inline-flex}.segmented-tabs button{min-height:26px;color:var(--muted);border-radius:7px;padding:0 9px;font-size:12px;font-weight:500}.segmented-tabs button.active{color:var(--text);background:#fff;box-shadow:0 1px 2px #0000000a}.site-list,.content-list,.system-list{gap:6px;margin-top:12px;display:grid}.site-row,.content-row{text-align:left;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-width:0;min-height:48px;padding:8px 10px;text-decoration:none;display:flex}.site-row:hover,.content-row:hover{background:var(--accent)}.site-row span,.content-row{min-width:0}.site-row strong,.content-row strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;line-height:1.35;display:block;overflow:hidden}.site-row small,.content-row small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:12px;line-height:1.35;display:block;overflow:hidden}.site-row em{color:var(--muted);flex:none;font-size:12px;font-style:normal}.activity-table{border-collapse:collapse;table-layout:fixed;width:100%;margin-top:12px}.activity-table th{color:#171717b8;text-align:left;background:#fafafa;padding:10px;font-size:12px;font-weight:600}.activity-table th:first-child{border-radius:8px 0 0 8px}.activity-table th:last-child{border-radius:0 8px 8px 0}.activity-table td{color:#171717c7;vertical-align:top;border-bottom:1px solid #e6e6e6a6;padding:12px 10px;font-size:13px;line-height:1.45}.activity-table tr:last-child td{border-bottom:0}.activity-table strong{color:var(--text);font-weight:500;display:block}.activity-table small{color:var(--muted);margin-top:2px;font-size:12px;display:block}.activity-table th:nth-child(2),.activity-table td:nth-child(2){width:120px}.status-pill{color:#171717b8;background:#f4f4f4;border-radius:999px;align-items:center;min-height:22px;padding:0 8px;font-size:12px;font-weight:500;display:inline-flex}.status-pill.live{color:#15803d;background:#dcfce7}.source-input-row{border:1px solid var(--border);min-height:38px;color:var(--muted);border-radius:8px;align-items:center;gap:8px;margin-top:12px;padding:0 8px 0 10px;font-size:13px;display:flex}.source-input-row span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.source-input-row button{width:26px;height:26px;color:var(--muted);border-radius:7px;font-size:18px}.source-input-row button:hover{background:var(--accent);color:var(--text)}.app-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 0;display:grid}.app-metrics div{min-width:0}.app-metrics dt{color:var(--muted);font-size:12px}.app-metrics dd{margin:4px 0 0;font-size:18px;font-weight:600;line-height:1.2}.system-list span,.app-muted{color:var(--muted);font-size:12px;line-height:1.55}.system-list strong{color:var(--text);font-weight:500}.note-compose{margin-top:28px}.note-compose-form{gap:18px;display:grid}.note-compose-title{width:100%;color:var(--text);background:0 0;border:none;outline:none;padding:0;font-size:24px;font-weight:500;line-height:1.2}.note-compose-title::placeholder{color:#1717176b}.note-compose-body{resize:vertical;width:100%;min-height:420px;color:var(--text);background:0 0;border:none;outline:none;padding:0;font-family:inherit;font-size:16px;line-height:1.8}.note-compose-body::placeholder{color:#1717176b}.note-compose-actions{align-items:center;gap:8px;display:flex}.page-description{color:var(--muted);margin:10px 0 0;font-size:16px;line-height:1.7}.hero-grid{gap:16px;margin-top:28px;display:grid}.hero-card{border:1px solid var(--border);background:#fff;border-radius:18px;padding:20px}.hero-card h2{margin:0;font-size:16px;font-weight:600;line-height:1.2}.hero-card p,.hero-card li{color:var(--muted);font-size:14px;line-height:1.65}.hero-card p{margin:10px 0 0}.hero-list{margin:12px 0 0;padding-left:18px}.pill-row{flex-wrap:wrap;gap:10px;margin-top:14px;display:flex}.pill{border:1px solid var(--border);background:#fff;border-radius:999px;align-items:center;min-height:34px;padding:0 12px;font-size:13px;line-height:1.2;display:inline-flex}.diagram-stack,.architecture-stack{gap:28px;margin-top:28px;display:grid}.arch-figure{border:1px solid var(--border);background:#fff;border-radius:18px;padding:14px}.arch-title{padding:4px 2px 14px}.arch-title h2{margin:0;font-size:16px;font-weight:600;line-height:1.25}.arch-title p{color:var(--muted);margin:6px 0 0;font-size:13px;line-height:1.55}.arch-svg{width:100%;height:auto;display:block;overflow:visible}.arch-bg{fill:#fafafa;stroke:#e6e6e6}.arch-box{fill:#fff;stroke:#e2e2e2}.arch-box.strong{fill:#f4f4f4}.arch-box.foundation{fill:#fbfbfb}.arch-box.warning{fill:#fffdf8}.arch-pill{fill:#fff;stroke:#e2e2e2}.arch-pill.planned{fill:#f6f6f6;stroke-dasharray:4 4}.arch-line{stroke:#8a8a8a;stroke-width:1.6px;fill:none}.arch-line.muted{stroke:#b5b5b5;stroke-dasharray:5 5}.arch-section{fill:#737373;font-size:13px;font-weight:500}.arch-label{fill:#171717;font-size:16px;font-weight:600}.arch-label.strong{font-weight:600}.arch-note{fill:#737373;font-size:13px}.arch-pill-text{fill:#171717;font-size:13px;font-weight:500}.layer-map{gap:12px;display:grid}.layer-card{border:1px solid var(--border);background:#fafafa;border-radius:14px;padding:12px}.layer-head{align-items:center;gap:8px;display:flex}.layer-head h3{margin:0;font-size:14px;font-weight:600;line-height:1.35}.layer-id{border:1px solid var(--border);min-width:34px;height:22px;color:var(--muted);background:#fff;border-radius:999px;justify-content:center;align-items:center;padding:0 8px;font-size:12px;font-weight:500;display:inline-flex}.layer-node-row{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.layer-node{border:1px solid var(--border);background:#fff;border-radius:999px;align-items:center;min-height:30px;padding:0 10px;font-size:12px;font-weight:500;line-height:1.25;display:inline-flex}.layer-card p{color:var(--muted);margin:10px 0 0;font-size:13px;line-height:1.5}.relation-map{border:1px solid var(--border);background:#fff;border-radius:14px;margin-top:12px;padding:12px 14px}.relation-map h3{margin:0;font-size:14px;font-weight:600;line-height:1.35}.relation-map ol{margin:10px 0 0;padding-left:18px}.relation-map li{color:#171717cc;font-size:13px;line-height:1.6}.project-form{border:1px solid var(--border);background:#fafafa;border-radius:12px;margin:14px 0;padding:12px}.project-form h3{margin:0 0 10px;font-size:14px;font-weight:600;line-height:1.35}.project-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.project-form-grid input{border:1px solid var(--border);width:100%;min-height:34px;color:var(--text);background:#fff;border-radius:8px;padding:0 10px;font-size:13px}.project-form-grid select,.project-form-grid textarea{border:1px solid var(--border);width:100%;color:var(--text);background:#fff;border-radius:8px;padding:8px 10px;font-family:inherit;font-size:13px}.project-form-grid textarea{resize:vertical;min-height:120px;line-height:1.5}.project-actions{align-items:center;gap:8px;margin-top:10px;display:flex}.text-button{border:1px solid var(--border);border-radius:8px;width:auto;min-width:60px;height:32px;padding:0 10px}.danger-button{color:#b42318;border-color:#f0c6c6}.project-list .project-item-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.ecosystem-diagram{border:1px solid var(--border);background:radial-gradient(circle at 1px 1px,#17171714 1px,#0000 0) 0 0/14px 14px,#fafafa;border-radius:18px;padding:18px}.diagram-head{background:#fff;border:1px solid #e6e6e6e6;border-radius:14px;padding:16px}.diagram-head h2{margin:0;font-size:15px;font-weight:600;line-height:1.25}.diagram-head p{color:var(--muted);margin:6px 0 0;font-size:13px;line-height:1.55}.diagram-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;display:grid}.diagram-column{background:#fff;border:1px solid #e6e6e6f2;border-radius:14px;min-width:0;padding:14px}.diagram-column h3{margin:0;font-size:13px;font-weight:600;line-height:1.25}.diagram-nodes{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.diagram-node{border:1px solid var(--border);white-space:nowrap;text-overflow:ellipsis;background:#fff;border-radius:999px;align-items:center;max-width:100%;min-height:28px;padding:0 10px;font-size:12px;line-height:1.2;display:inline-flex;overflow:hidden}.diagram-flow{background:#fff;border:1px solid #e6e6e6f2;border-radius:14px;margin:14px 0 0;padding:14px 14px 14px 34px}.diagram-flow li{color:#171717c7;font-size:13px;line-height:1.65}@media (width<=1100px){.layout-grid{grid-template-columns:1fr}.sidebar{display:none}}@media (width<=900px){.primary-nav,.toolbar-search,.toolbar-divider{display:none}.content-shell{max-width:100%}.diagram-columns,.dashboard-hero,.app-dashboard{grid-template-columns:1fr}.dashboard-preview{min-height:150px}.activity-table{table-layout:auto}.project-form-grid{grid-template-columns:1fr}}
