@font-face{font-family:Poppins;src:url('/fonts/poppins-latin-400-normal.woff2') format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Poppins;src:url('/fonts/poppins-latin-500-normal.woff2') format('woff2');font-weight:500;font-display:swap}@font-face{font-family:Poppins;src:url('/fonts/poppins-latin-600-normal.woff2') format('woff2');font-weight:600;font-display:swap}@font-face{font-family:Poppins;src:url('/fonts/poppins-latin-700-normal.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--primary:#1265df;--primary-dark:#0c4eb7;--accent:#7251e5;--navy:#13243e;--text:#142039;--muted:#64748b;--surface:#fff;--background:#eff4fa;--line:#d3dce8;--shadow:0 3px 8px #1b407312;--radius:10px;--gap:12px;--sidebar:245px;--success:#13854d;--warning:#b87908;--danger:#b72d38;--info:#1265df;font-family:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;color:var(--text);background:var(--background)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #3395ff}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}button{color:inherit}h1,h2,p{margin:0}img{display:block;max-width:100%}[hidden]{display:none!important}.ico{display:inline-block;flex:none;width:20px;height:20px;background:currentColor;mask:var(--glyph) center/contain no-repeat;-webkit-mask:var(--glyph) center/contain no-repeat;vertical-align:middle}.ico.small{width:14px;height:14px}.studio-shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100dvh}.studio-shell.workspace-full{grid-template-columns:minmax(0,1fr)}.studio-main{min-width:0;background:linear-gradient(145deg,#f7f9fd,#eaf1f9)}.sidebar{position:sticky;top:0;height:100dvh;overflow:auto;background:linear-gradient(160deg,#10203b 0%,#1b2c43 70%,#101d31);color:#e8f1ff;padding:14px 13px;box-shadow:2px 0 10px #112c4f20}.brand{display:flex;align-items:center;gap:13px;padding:0 6px 16px;border-bottom:1px solid #ffffff24;margin-bottom:12px}.brand img{width:46px;height:46px}.brand strong{font-size:17px;font-weight:700;display:block;letter-spacing:-.6px;white-space:nowrap}.brand small{color:#b9c8dd;font-size:12px}.nav-link,.nav-parent{display:flex;align-items:center;gap:12px;border:0;width:100%;background:none;text-align:left;color:inherit;padding:9px 12px;border-radius:7px;font-size:13px;min-height:36px}.nav-link .ico,.nav-parent .ico{width:21px;height:21px}.nav-parent{font-weight:600;margin-top:7px}.nav-parent .chevron{width:14px;height:14px;margin-left:auto}.nav-parent[aria-expanded=false] .chevron{transform:rotate(180deg)}.nav-link:hover,.nav-parent:hover{background:#ffffff12}.nav-link.active{background:linear-gradient(100deg,#0878ee,#278af5);box-shadow:0 2px 6px #0b101a50;color:white}.nav-link.sub{padding:6px 9px 6px 37px;font-size:12px;min-height:33px;gap:11px}.nav-link.sub .ico{width:19px;height:19px}.nav-separator{border-top:1px solid #ffffff35;margin:15px 8px 4px}.mobile-top,.drawer-overlay{display:none}
.home{padding:13px 12px 24px;display:flex;flex-direction:column;min-height:100dvh;gap:0}.hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:114px;padding:15px 28px;color:#fff;border-radius:8px;background:radial-gradient(ellipse at 80% 100%,#7037e980,transparent 45%),linear-gradient(105deg,#113e96,#1d64dc 50%,#2a2bbc);isolation:isolate}.hero:after{content:"";position:absolute;inset:0;z-index:-1;opacity:.45;background:repeating-radial-gradient(ellipse at 91% 148%,transparent 0 7px,#a8d6ff45 8px 9px,transparent 10px 15px);transform:skewX(-18deg)}.hero h1{font-size:30px;line-height:1.25;letter-spacing:-.6px;font-weight:700}.hero p{font-size:13px;line-height:1.5;margin-top:5px;color:#f1f7ff}.hero-cube{width:105px;height:106px;object-fit:contain;margin-right:6%;filter:drop-shadow(0 0 17px #5cc3ff99)}.header-actions{display:flex;justify-content:flex-end;gap:10px;padding:10px 0;flex:none}.btn{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #c4d0e0;border-radius:7px;background:linear-gradient(#fff,#f1f5fa);padding:6px 13px;white-space:nowrap;font-weight:500;box-shadow:0 1px 2px #283f6010;font-size:12px}.btn .ico{width:18px;height:18px}.btn:hover:not(:disabled){background:#e5efff;border-color:#8bb9f8}.btn:disabled{opacity:.78}.btn.primary{color:white;background:linear-gradient(130deg,#1589ef,#0754d5);border-color:#0d69db;box-shadow:0 2px 5px #1463d32a}.btn.primary:hover:not(:disabled){background:#0959cb}.btn.icon-btn{width:34px;padding:5px}.tool-section{padding:13px 4px 20px;border:1px solid #dce4ee;border-radius:12px;background:linear-gradient(155deg,#f9fbfe,#f1f6fc);margin-bottom:17px;flex:1;display:flex;flex-direction:column;justify-content:center}.tool-section h2{display:flex;align-items:center;gap:13px;font-size:21px;letter-spacing:-.5px;margin:0 7px 15px;font-weight:700}.tool-section h2 .ico{width:33px;height:33px;color:var(--primary)}.tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 1px}.tool-card{position:relative;display:flex;align-items:flex-start;gap:12px;min-width:0;min-height:110px;padding:13px 13px 27px;border-radius:11px;background:linear-gradient(160deg,#fff,#f3f6fb);border:1px solid #cbd5e2;box-shadow:0 3px 7px #244a7817;transition:border-color .15s,box-shadow .15s}.tool-card:hover,.tool-card:focus-visible{border-color:#196ce3;box-shadow:0 3px 9px #176de32d}.tool-art{display:grid;place-items:center;width:57px;height:57px;flex:none;border-radius:12px;color:#0d86ea;filter:drop-shadow(0 5px 5px #306cbd25);align-self:center}.tool-art.purple{color:#7652e7}.tool-art .ico{width:54px;height:54px;background:linear-gradient(145deg,#59d5ff,#0579d7 58%,#0b52bd)}.tool-art.purple .ico{background:linear-gradient(145deg,#b197ff,#7951ec 55%,#4c32c2)}.tool-art img{width:57px;height:62px}.sql-art{display:grid;place-items:center;width:57px;height:43px;background:linear-gradient(145deg,#43c8f9,#0763c9);color:white;font-size:19px;font-weight:600;border-radius:8px}.tool-copy{display:flex;flex-direction:column;min-width:0;gap:4px}.tool-copy strong{font-size:14px;line-height:1.3;font-weight:700;letter-spacing:-.35px}.tool-copy>span{font-size:11px;line-height:1.45;color:#354154}.launch-icon{position:absolute;right:8px;bottom:8px;border:1px solid #c5d6e9;background:#f9fbff;border-radius:6px;width:29px;height:25px;display:grid;place-items:center;color:#1265df}.launch-icon .ico{width:15px;height:15px}.tool-card:hover .launch-icon{background:var(--primary);color:white;border-color:var(--primary)}
.tool-page{padding:0 13px 13px;min-height:100dvh;display:flex;flex-direction:column}.workspace-header{min-height:75px;display:flex;align-items:center;gap:17px;padding:10px 0;flex:none}.workspace-title{display:flex;gap:12px;align-items:center;min-width:0;flex:1}.workspace-title>.ico{width:37px;height:37px;color:var(--primary)}.workspace-title h1{font-size:22px;line-height:1.25;letter-spacing:-.5px}.workspace-title p{font-size:12px;color:#43516b;margin-top:2px}.workspace-header .header-actions{margin-left:auto;padding:0}.three-page .workspace-header{position:relative;justify-content:center;border-bottom:1px solid #cbd6e8;margin:0 -13px 12px;padding:13px 20px;background:linear-gradient(110deg,#eaf1fb,#f7faff 55%,#c2dcff);min-height:65px}.three-page .workspace-title{flex:none;justify-content:center}.three-page .back-btn{position:absolute;left:20px}.workspace-grid{display:grid;gap:12px;flex:1;min-height:0}.three-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);min-height:calc(100dvh - 90px)}.diagram-grid{grid-template-columns:minmax(0,2.05fr) minmax(310px,1fr);min-height:calc(100dvh - 88px)}.panel{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(#fff,#f7f9fc);box-shadow:var(--shadow);min-width:0;overflow:hidden}.workspace-right{display:grid;grid-template-rows:minmax(295px,1fr) minmax(300px,1fr);gap:13px;min-width:0}.diagram-grid .workspace-right{grid-template-rows:minmax(295px,.92fr) minmax(330px,1.08fr)}.panel-heading{display:flex;align-items:center;gap:9px;min-height:46px;background:linear-gradient(120deg,#edf3fd,#f5f7fb);border-bottom:1px solid #e1e7f0;padding:9px 14px;font-size:14px;font-weight:600}.panel-heading .ico{width:22px;height:22px;color:var(--primary)}.preview-label{margin-left:auto;color:#718096;font-size:10px;font-weight:400}.chat-panel{display:flex;flex-direction:column}.chat-messages{flex:1;display:flex;flex-direction:column;gap:12px;padding:15px 14px;overflow:auto;min-height:0}.message{display:flex;gap:9px;align-items:flex-start;font-size:11.5px;line-height:1.55}.message.user{justify-content:flex-end}.message>div{max-width:86%}.avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:#1468d9;background:#e0edff;flex:none}.avatar .ico{width:19px;height:19px}.avatar img{width:30px;height:30px}.bubble{padding:9px 12px;background:#e8edf5;border-radius:12px}.user .bubble{background:#d5e7ff}.assistant .bubble{background:#e9ecf2}.diagram-grid .assistant .bubble{background:#dceaff}.message time{display:block;font-size:10px;color:#64748b;margin:4px}.user time{text-align:right}.chat-input{display:flex;gap:9px;padding:11px 12px;border-top:1px solid #edf0f5}.chat-input input{flex:1;min-width:0}.chat-input .btn{padding:7px 13px}.chat-empty{margin:auto;text-align:center;color:var(--muted)}.chat-empty .ico{width:37px;height:37px;color:var(--primary)}input:not([type=checkbox]):not([type=radio]):not([type=range]){min-height:32px;border:1px solid #bac6d7;background:#fff;border-radius:5px;padding:5px 9px;color:var(--text);width:100%;min-width:0}input:disabled{background:#f7f9fc!important;color:#6a7485!important}input::placeholder{color:#758298}input[type=range]{accent-color:var(--primary);min-width:0;width:100%;height:19px;cursor:pointer}input[type=checkbox],input[type=radio]{accent-color:var(--primary);width:17px;height:17px;vertical-align:middle;margin:0;flex:none}.tabs{display:flex;align-items:stretch;background:linear-gradient(#f6f9fd,#eaf0f8);border-bottom:1px solid var(--line);min-height:42px}.tab{flex:1;min-width:0;border:0;border-bottom:3px solid transparent;background:transparent;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:500;font-size:11px;padding:10px 3px;white-space:nowrap}.tab+.tab{border-left:1px solid #dce4ef}.tab.selected{color:#0759c6;border-bottom-color:#1672e6;background:#eff5ff;font-weight:600}.tab .ico{width:18px;height:18px}.inspector-content{padding:16px 17px;display:flex;flex-direction:column;gap:14px}.form-row{display:grid;grid-template-columns:minmax(85px,25%) minmax(0,1fr);align-items:center;gap:10px;font-size:12px}.form-row>label:first-child,.form-row>span:first-child{font-weight:500}.unit-input{display:flex;align-items:center;position:relative;max-width:140px;gap:5px}.unit-input span{color:var(--muted)}.range-wrap{display:flex;align-items:center;gap:12px}.range-wrap output{min-width:48px;text-align:center;border:1px solid #c9d3e2;border-radius:5px;padding:4px 6px;background:#fff}.check,.radio-wrap label{display:flex;align-items:center;gap:7px;font-size:11px}.radio-wrap{display:flex;gap:15px;flex-wrap:wrap}.tab-placeholder{align-items:center;justify-content:center;min-height:200px;color:var(--muted)}.tab-placeholder .ico{width:33px;height:33px;color:var(--primary)}
.viewport{position:relative;min-height:560px;background:#192534;border-color:#354254}.viewport-image{position:absolute;inset:0;background:url('/images/viewport.svg') center/cover no-repeat}.viewport-top,.viewport-bottom{position:absolute;left:17px;right:17px;display:flex;align-items:center;justify-content:space-between;gap:10px}.viewport-top{top:18px;align-items:flex-start}.viewport-bottom{bottom:17px}.viewport-tools{display:flex;gap:4px;border:1px solid #62758b50;background:#1c2635d9;padding:4px;border-radius:9px;box-shadow:0 2px 6px #0003}.dark-btn{border:1px solid transparent;background:transparent;color:#f1f6ff;border-radius:6px;width:35px;height:35px;display:grid;place-items:center;padding:6px}.dark-btn .ico{width:20px;height:20px}.dark-btn.selected,.dark-btn:hover:not(:disabled){border-color:#3f99ff;background:#26415e;box-shadow:inset 0 0 0 1px #087af45c}.render-btn{font-size:15px;min-height:44px;margin-top:4px;padding:9px 20px}.axis{width:85px;height:78px}.diagram-panel{display:flex;flex-direction:column;min-height:650px}.diagram-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 10px;background:linear-gradient(#f5f8fd,#e9eff8);border-bottom:1px solid var(--line)}.diagram-toolbar>strong{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px}.diagram-toolbar>strong .ico{color:var(--primary);width:22px;height:22px}.toolbar-buttons{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.toolbar-buttons .btn{padding:5px 9px;min-height:30px;font-size:10px;gap:5px}.toolbar-buttons .btn .ico{width:15px;height:15px}.diagram-scroll{flex:1;overflow:auto;min-height:0;background-color:#fcfdff;background-image:linear-gradient(#e1e9f455 1px,transparent 1px),linear-gradient(90deg,#e1e9f455 1px,transparent 1px);background-size:12px 12px;padding:10px 10px 24px}.erd-canvas{position:relative;min-width:720px;min-height:620px;height:100%;width:100%;transform-origin:top left}.erd-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.erd-table{position:absolute;width:19%;background:#ffffffed;border:1px solid #9eabbd;border-radius:4px;overflow:hidden;box-shadow:0 2px 4px #1b304611;font-family:Arial,sans-serif;font-size:10.5px;color:#20262c}.erd-table-heading{display:flex;gap:6px;align-items:center;background:linear-gradient(90deg,#337dc6,#4a91db);color:#fff;font-size:10px;letter-spacing:.1px;font-weight:700;padding:5px 6px;white-space:nowrap}.erd-table-heading .ico{width:12px;height:12px}.erd-field{display:grid;grid-template-columns:27px minmax(0,1fr);min-height:17px;border-top:1px solid #dce2ea}.erd-field span{padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.erd-field span:first-child{border-right:1px solid #dce2ea;font-weight:700}.erd-field .pk{font-weight:700;text-decoration:underline}.diagram-footer{padding:8px;display:flex;align-items:center;gap:7px;background:#f1f5fa;border-top:1px solid var(--line);font-size:11px}.diagram-footer input{max-width:95px}.diagram-footer .btn{min-height:27px;width:27px}.diagram-footer .ico{width:15px;height:15px}.spacer{flex:1}.btn.selected{background:#d9eaff;color:#0c5ecc;border-color:#9cc4fa}.generic-canvas{display:flex;flex-direction:column}.empty-workspace{min-height:400px;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;color:var(--muted)}.empty-workspace>.ico{width:70px;height:70px;color:var(--primary);opacity:.7}.empty-workspace h2{font-size:20px;color:var(--text)}.studio-dialog{border:1px solid var(--line);border-radius:12px;padding:0;background:#fff;color:var(--text);width:min(440px,calc(100% - 32px));box-shadow:0 15px 55px #14223d55}.studio-dialog::backdrop{background:#101c3c77}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:#f0f5fc;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:17px}.studio-dialog #dialog-content{padding:20px;line-height:1.7}.panel:fullscreen{width:100%;height:100%;border-radius:0}.diagram-panel:fullscreen .erd-canvas{max-width:1100px;margin:auto}.dialog-close{flex:none}
@media(min-width:1600px){:root{--sidebar:270px;font-size:14px}.tool-card{min-height:120px}.tool-copy strong{font-size:16px}.tool-copy>span{font-size:12px}.tool-section{padding:17px 8px 25px}}
@media(max-width:1250px){:root{--sidebar:218px}.brand strong{font-size:15px}.tool-card{gap:8px;padding:11px 8px 29px}.tool-art{width:43px;height:47px}.tool-art .ico{width:42px;height:42px}.tool-art img{width:44px;height:47px}.sql-art{width:43px;font-size:15px}.tool-copy strong{font-size:12px}.tool-copy>span{font-size:10.5px}.diagram-grid{grid-template-columns:minmax(0,1.6fr) minmax(295px,1fr)}.workspace-title h1{font-size:19px}.viewport-top{flex-wrap:wrap}.axis{width:60px;height:60px}.render-btn{font-size:12px;padding:8px 11px}}
@media(max-width:1024px){.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-copy strong{font-size:14px}.tool-copy>span{font-size:12px}.tool-card{min-height:93px;padding:10px 12px 25px}.tool-section{flex:none}.diagram-grid{grid-template-columns:1fr}.diagram-grid .workspace-right{grid-template-columns:1fr 1fr;grid-template-rows:auto}.three-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.viewport-top .render-btn{order:3}.workspace-header .header-actions .btn{padding:6px 8px}.workspace-title p{font-size:10px}.form-row{grid-template-columns:1fr;gap:5px}.inspector-content{gap:11px}}
@media(max-width:768px){.studio-shell{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:245px;height:100dvh;z-index:10;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.drawer-overlay:not([hidden]){display:block;position:fixed;inset:0;z-index:9;border:0;background:#11203777}.mobile-top{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#edf3fd;border-bottom:1px solid var(--line);font-weight:600}.mobile-top img{width:29px;height:29px}.home{min-height:calc(100dvh - 55px);padding:10px}.hero{padding:15px;min-height:105px}.hero h1{font-size:24px}.hero p{font-size:11px}.hero-cube{width:75px;margin-right:0}.desktop-break{display:none}.tool-section h2{font-size:17px}.tool-section h2 .ico{width:26px;height:26px}.tool-page{min-height:calc(100dvh - 55px);padding:0 10px 10px}.workspace-header{flex-wrap:wrap;gap:9px}.workspace-header .header-actions{margin-left:auto}.workspace-title>.ico{width:28px;height:28px}.workspace-title h1{font-size:17px}.three-page .workspace-header{margin:0 -10px 10px;padding-left:85px;min-height:62px}.three-page .back-btn{left:10px}.three-grid,.diagram-grid{grid-template-columns:1fr;min-height:auto}.viewport{min-height:430px}.viewport-top{flex-wrap:nowrap}.viewport-top .render-btn{order:0}.diagram-grid .workspace-right{grid-template-columns:1fr;grid-template-rows:auto}.workspace-right{grid-template-rows:auto;gap:10px}.chat-panel{min-height:290px}.inspector-panel{min-height:270px}.form-row{grid-template-columns:minmax(85px,25%) minmax(0,1fr)}.diagram-panel{min-height:660px}.diagram-toolbar{flex-wrap:wrap}.diagram-toolbar .toolbar-buttons{justify-content:flex-start}.diagram-scroll{min-height:625px}.panel-heading{font-size:13px}.tab{font-size:10px}}
@media(max-width:420px){.tool-grid{grid-template-columns:1fr}.tool-section{padding:10px 7px 12px;margin-bottom:12px}.tool-card{min-height:85px}.hero h1{font-size:20px}.hero p{font-size:10px}.hero-cube{width:61px}.viewport{min-height:390px}.viewport-top{left:8px;right:8px;flex-wrap:wrap}.viewport-top .render-btn{order:3}.viewport-tools{gap:0}.dark-btn{width:30px;height:30px}.axis{width:45px;height:50px}.viewport-bottom{left:8px;right:8px}.workspace-title h1{font-size:15px}.workspace-header .header-actions{width:100%}.radio-wrap{gap:9px}}
/* Reference-screen refinements */
@media(min-width:1251px){:root{--sidebar:270px}.nav-parent{gap:10px;font-size:12.5px}.nav-parent>span{white-space:nowrap}.tool-copy strong{font-size:15px}.tool-copy>span{font-size:12px}.tool-card{min-height:112px}.tool-art{width:60px;height:60px}.tool-art .ico{width:58px;height:58px}}
.erd-field{grid-template-columns:34px minmax(0,1fr)}.erd-field span:first-child{padding:2px 3px;overflow:visible;white-space:nowrap}.erd-field span:last-child{font-size:10px;letter-spacing:-.15px}.erd-table{width:19.5%}.erd-table:last-child{width:19.5%}
