:root{font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;color:#262c2f;background:#f4f3ef;font-size:13px;--panel:#fff;--border:#e4e4e0;--teal:#1e6470;--teal-dark:#154f5a;--quiet:#667174;--input:#f9f9f7}
*{box-sizing:border-box}
html,body{margin:0;height:100%;min-height:100%;overflow:hidden}
button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #4694a0;outline-offset:2px}
button:disabled{opacity:.4;cursor:default}
.app{height:100dvh;display:grid;grid-template-areas:"header header header" "left center right";grid-template-rows:64px minmax(0,1fr);grid-template-columns:258px minmax(320px,1fr) 284px}
.header{grid-area:header;display:flex;align-items:center;gap:22px;justify-content:space-between;background:#fff;border-bottom:1px solid var(--border);padding:0 20px;min-width:0}
.brand{display:flex;align-items:center;gap:11px;min-width:215px}.brand-mark{background:#1c5965;color:#f7fffd;font-size:32px;line-height:34px;width:37px;height:37px;display:flex;align-items:center;justify-content:center;border-radius:9px}.brand strong{display:block;font-size:16px;letter-spacing:-.5px}.brand span{font-size:10px;color:#717a7e;letter-spacing:.15px}.brand em{font-style:normal;font-size:10px;color:#1b6772}
.header-actions{display:flex;gap:6px;align-items:center;white-space:nowrap}.toolbar-divider{height:22px;border-left:1px solid var(--border);margin:0 8px}
.tool{background:transparent;border:1px solid transparent;border-radius:7px;padding:9px 11px;font-weight:600;color:#404b4e;transition:background .12s}.tool:hover{background:#f1f4f3}.tool.outline{border-color:#d1dad9;background:#fff}.tool.outline:hover{background:#f2f7f6}.tool.primary{border-color:var(--teal);color:#fff;background:var(--teal);padding:10px 16px}.tool.primary:hover{background:var(--teal-dark)}.tool.icon-button{font-size:22px;min-width:34px;padding:3px 8px}.tool.compact{border-color:#e3e5e3;padding:5px 9px;font-size:15px;background:#fff;min-width:30px}.tool.compact:hover{background:#ecf4f4}
.sidebar{background:var(--panel);overflow:auto;min-width:0;scrollbar-width:thin}.left-sidebar{grid-area:left;border-right:1px solid var(--border);padding:22px 16px 25px}.right-sidebar{grid-area:right;border-left:1px solid var(--border);padding:22px 18px 25px}
.panel-heading{margin:0 0 18px}.panel-heading h2{font-size:14px;letter-spacing:-.2px;margin:0 0 4px}.panel-heading p{margin:0;color:#879093;font-size:11px;line-height:1.6}
.starter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.starter{min-height:79px;background:#fafaf9;border:1px solid #e9e9e5;border-radius:8px;padding:10px 3px 8px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px}.starter:hover{border-color:#95babd}.starter.active{border-color:#4b9298;background:#eff8f6;box-shadow:inset 0 0 0 1px #4b9298}.starter b{font-size:10px;font-weight:600}.starter-icon{height:32px;width:26px;background-color:white;border:1px solid #d5d9d7;display:block;border-radius:2px}.lined-icon{background-image:repeating-linear-gradient(to bottom,transparent 0 7px,#b9c6c8 7px 8px)}.dots-icon{background-image:radial-gradient(#9ba9ab 1px,transparent 1.5px);background-size:7px 7px}.graph-icon{background-image:linear-gradient(#b5c4c5 1px,transparent 1px),linear-gradient(90deg,#b5c4c5 1px,transparent 1px);background-size:7px 7px}.hex-icon{background:none;font-size:37px;color:#7d9a9e;line-height:26px;border:0}.cornell-icon{background:linear-gradient(to right,transparent 25%,#b9c6c8 25% 29%,transparent 29%),repeating-linear-gradient(to bottom,transparent 0 7px,#b9c6c8 7px 8px)}
.divider{border-top:1px solid #e9ebea;margin:23px 0 17px}.small-section-title{font-size:10px;letter-spacing:.1em;color:#808a8d;font-weight:750;margin-bottom:13px}.section-count{float:right;color:#93a0a2}
.insert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.insert-grid button{border:1px solid #e8e9e6;background:#fff;min-height:41px;border-radius:6px;display:flex;align-items:center;gap:8px;text-align:left;padding:6px 9px;font-size:18px;color:#5a7074}.insert-grid button:hover{border-color:#91b6b7;background:#f7fbfa}.insert-grid button span{font-size:11px;font-weight:600;color:#3d4548}
.layers{display:flex;flex-direction:column;gap:5px}.layer{display:flex;align-items:center;gap:7px;min-height:35px;background:#fff;padding:7px;border:1px solid #ebeeec;border-radius:6px;text-align:left;width:100%;font-size:11px;color:#39494c}.layer.active{background:#eef7f6;border-color:#82b4b6}.layer .layer-symbol{min-width:20px;color:#5c8488;font-size:17px;text-align:center}.layer .layer-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.layer small{color:#8b9697}.empty-layers{padding:10px 0;color:#92999a;font-size:11px}.sidebar-footer{border-top:1px solid var(--border);margin-top:24px;padding-top:16px;font-size:10px;color:#7a888a;line-height:1.7}.sidebar-footer small{font-size:10px}
.workspace{grid-area:center;display:flex;flex-direction:column;min-width:0;min-height:0;background:#e9ebe8}.canvas-toolbar{height:53px;padding:0 16px;background:#fafbf9;border-bottom:1px solid #dfe2df;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.canvas-toolbar-left,.canvas-toolbar-right{display:flex;align-items:center;gap:8px;min-width:0}.canvas-toolbar label{font-size:10px;font-weight:800;letter-spacing:.07em;color:#7f8989}.canvas-toolbar select{border:1px solid #dce2df;border-radius:6px;background:white;padding:6px;font-weight:600;color:#3d4748}.canvas-info{color:#85908e;font-size:11px;white-space:nowrap}.inline-check{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.inline-check input{accent-color:var(--teal)}.zoom-label{min-width:45px!important;font-size:11px!important}
.canvas-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;position:relative;scrollbar-width:thin}.canvas-stage{min-width:100%;min-height:100%;width:max-content;height:max-content;display:flex;align-items:flex-start;justify-content:center;padding:42px 50px 65px}.paper{flex:none;background:white;box-shadow:0 10px 50px #4a5e5930,0 0 0 1px #c4caca;position:relative;touch-action:none}.paper svg{display:block;width:100%;height:100%;user-select:none;-webkit-user-select:none}.workspace-bottom{min-height:30px;border-top:1px solid #d7ddda;background:#f7f8f6;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 16px;font-size:10px;color:#657474}.workspace-bottom span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#warning{color:#aa6a28}#autosaveState{color:#758781}
#inspector{padding-bottom:25px}.inspector-group{padding-bottom:16px;border-bottom:1px solid #eceded;margin-bottom:17px}.inspector-group h3{font-size:11px;margin:0 0 13px;letter-spacing:.08em;color:#718083}.inspector-group .caption{font-size:11px;color:#768486;line-height:1.6}.prop-row{display:flex;gap:9px;margin:9px 0}.prop{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.prop label{font-size:10px;color:#707e82;font-weight:700}.prop input,.prop select,.prop textarea{border:1px solid #dce3e1;border-radius:6px;padding:8px 7px;width:100%;background:#fbfcfb;color:#283a3d;min-width:0}.prop textarea{resize:vertical;line-height:1.5}.prop input[type=color]{padding:3px;height:35px}.prop input[type=checkbox]{width:auto}.prop small{font-size:10px;color:#86928f}.button-row{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.button-row button{border:1px solid #d8e0dd;border-radius:6px;background:#fff;padding:8px 10px;font-size:11px;color:#3d5459}.button-row button:hover{border-color:#7cabab}.button-row .danger{color:#a74037}.hint{font-size:10px;color:#818d8b;line-height:1.7}.hint strong{color:#526866}
#previewDialog{border:1px solid #d9e1df;box-shadow:0 24px 80px #263b3e38;border-radius:12px;padding:0;max-width:min(850px,95vw);max-height:92vh;width:650px;background:white}#previewDialog::backdrop{background:#18363b80}.dialog-title,.dialog-bottom{padding:17px 22px;display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-title{border-bottom:1px solid var(--border)}.dialog-title b{font-size:16px}.dialog-title p{font-size:11px;color:#83908c}.dialog-bottom{border-top:1px solid var(--border);font-size:11px;color:#71817e}.preview-surface{padding:24px;background:#e9eeeb;max-height:68vh;overflow:auto;display:flex;justify-content:center}.preview-surface svg{width:auto;max-width:100%;max-height:62vh;height:auto;box-shadow:0 2px 20px #0002}
#toast{position:fixed;bottom:47px;left:50%;transform:translate(-50%,25px);padding:10px 16px;background:#293e40;color:white;border-radius:7px;box-shadow:0 8px 24px #0003;opacity:0;pointer-events:none;transition:transform .2s,opacity .2s;z-index:100;font-size:12px}#toast.visible{transform:translate(-50%,0);opacity:1}
body.hide-left .app{grid-template-columns:0 minmax(320px,1fr) 284px}body.hide-left .left-sidebar{display:none}body.hide-right .app{grid-template-columns:258px minmax(320px,1fr) 0}body.hide-right .right-sidebar{display:none}body.hide-left.hide-right .app{grid-template-columns:0 minmax(320px,1fr) 0}
@media(max-width:1150px){.app{grid-template-columns:220px minmax(320px,1fr) 258px}.left-sidebar{padding:18px 12px}.right-sidebar{padding:18px 14px}.header{gap:9px;padding:0 10px}.brand{min-width:180px}.header-actions{gap:2px}.tool{padding:8px}.export-actions .tool{font-size:11px}body.hide-left .app{grid-template-columns:0 minmax(320px,1fr) 258px}body.hide-right .app{grid-template-columns:220px minmax(320px,1fr) 0}}
@media(max-width:850px){.app{grid-template-areas:"header header" "center center";grid-template-columns:1fr;grid-template-rows:56px minmax(0,1fr)}.header{overflow:auto}.brand{min-width:150px}.brand strong{font-size:13px}.brand span{font-size:9px}.header .subtle{display:none}.toolbar-divider{display:none}.sidebar{display:none;position:fixed;z-index:25;top:56px;bottom:0;width:min(310px,90vw);box-shadow:0 15px 25px #0003}.left-sidebar{left:0}.right-sidebar{right:0}body.show-mobile-left .left-sidebar,body.show-mobile-right .right-sidebar{display:block}.canvas-toolbar{padding:0 8px}.canvas-info{display:none}.canvas-stage{padding:26px 30px 50px}.workspace-bottom{padding:5px 8px}.inline-check{display:none}}
@media(max-width:490px){.header{gap:5px;padding:0 6px}.brand{min-width:132px}.brand-mark{width:30px;height:30px;font-size:25px}.brand span{display:none}.brand strong{font-size:12px}.header-actions #saveProject,.header-actions #importProject{display:none}.export-actions #preview{display:none}.export-actions .tool{font-size:10px;padding:8px 6px}.header-actions #redo,.header-actions #undo{display:none}.canvas-toolbar select{max-width:82px}.canvas-toolbar{gap:4px}.canvas-toolbar-left,.canvas-toolbar-right{gap:4px}.canvas-toolbar label{display:none}.canvas-stage{padding:20px 20px 45px}}

.sidebar-project-actions{margin-top:0}.sidebar-project-actions button{font-size:10px;flex:1;min-width:90px}.sidebar-footer{margin-top:15px}
