:root{--text:#24313a;--muted:#5f6c75;--line:#dfe5e7;--accent:#117c67;--panel:#f6f8f8;--editor:#fff}
*{box-sizing:border-box;letter-spacing:0}
html{background:#fff;scrollbar-color:#b3c0c4 #f3f6f5;scrollbar-width:thin}
body.shipping-playground{margin:0;background:#fff;color:var(--text);font:14px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
button,input,select,textarea{font:inherit}
button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:6px 10px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--text);cursor:pointer;white-space:nowrap;font-size:12px}
button:hover{background:#eef4f2;border-color:#b9cec6}
button:disabled{opacity:.4;cursor:default}
button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
button.primary:hover{background:#0b6958}
button svg{width:16px;height:16px;flex:none}
input,select{min-height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--text)}
input[type=checkbox]{accent-color:var(--accent);min-height:0}
input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[hidden]{display:none!important}
.hanz-site-header{background:#fff;border-bottom:1px solid #dfe4e7}
.hanz-site-inner{width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 24px}
.hanz-site-header .hanz-site-inner{min-height:78px}
.hanz-site-brand{display:flex;align-items:center;gap:11px;color:#272e33;text-decoration:none;font-size:28px;font-weight:650;white-space:nowrap}
.hanz-site-mark{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border:1px solid #cad9d3;color:var(--accent);font-size:29px;font-weight:750;border-radius:6px}
.hanz-site-header nav{display:flex;align-items:center;gap:26px;font-size:20px}
.hanz-site-header nav a{padding:8px 0;color:#66717c;text-decoration:none;white-space:nowrap}
.hanz-site-header nav a:hover{color:var(--accent)}
.hanz-site-header nav a[aria-current=page]{color:#24292e;box-shadow:0 2px 0 var(--accent)}
.workspace{display:grid;grid-template-columns:238px minmax(0,1fr);width:100%;margin:0;border:0;background:#fff;min-height:calc(100dvh - 127px)}
.relation-panel{border-right:1px solid var(--line);background:var(--panel);padding:16px 12px;min-width:0}
.mode-switch{display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:3px;padding:3px;margin-bottom:18px;border:1px solid #dbe3e0;border-radius:6px;background:#edf1ef}
.mode-switch a{display:flex;align-items:center;justify-content:center;min-width:0;height:29px;padding:0 6px;border:1px solid transparent;border-radius:4px;font-size:12px;font-weight:550;color:var(--muted);text-decoration:none;white-space:nowrap}
.mode-switch a:hover{color:var(--accent)}
.mode-switch a[aria-current=page]{background:#fff;border-color:#d1ddd7;color:var(--accent);box-shadow:0 1px 2px #1d35250b}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.panel-heading h2{margin:0;font-size:13px;font-weight:650}
.panel-heading>span{color:var(--muted);font-size:11px}
.search-label input{width:100%;font-size:12px}
.relation-list{display:flex;flex-direction:column;gap:2px;margin:10px 0 20px;max-height:390px;overflow:auto}
.relation-list button{border-color:transparent;background:transparent;text-align:left;justify-content:space-between;gap:6px;min-width:0;width:100%;font-size:12px}
.relation-list button span{overflow:hidden;text-overflow:ellipsis}
.relation-list button small{font-size:10px;color:var(--muted)}
.relation-list button.active{background:#e2efea;color:var(--accent);font-weight:600}
.relation-list button:hover{background:#edf2f0}
.files-section{margin:0 -12px;padding:16px 10px;border-top:1px solid var(--line)}
.panel-actions{display:flex;gap:3px}
.panel-actions button{width:28px;min-height:28px;padding:0;border-color:transparent;background:transparent}
.panel-actions button[aria-pressed=true]{color:var(--accent);background:#e2efea}
#files-view-label{display:block;font-size:10px;color:var(--muted);padding:0 3px;margin-bottom:8px}
.file-row{display:flex;align-items:center;gap:2px;padding:3px 0}
.file-row .file-open{flex:1;min-width:0;justify-content:flex-start;border:0;background:transparent;text-align:left;display:block;padding:6px}
.file-open strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.file-open small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.file-row .file-action{width:26px;padding:0;border-color:transparent;background:transparent}
.file-action svg{width:13px;height:13px}
.file-empty{font-size:12px;color:var(--muted);padding:3px}
#files-error{font-size:11px;color:#b53631}
.main-panel{background:#fff;min-width:0}
.course-title{padding:14px 20px;min-height:70px;border-bottom:1px solid var(--line);background:#fafbfb;display:flex;align-items:center;gap:16px;justify-content:space-between}
.course-title h1{font-size:16px;margin:4px 0 0;font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.course-title>div:first-child{min-width:0}
.course-title span{color:var(--muted);font-size:10px}
.document-actions{display:flex;align-items:center;gap:6px;flex:none}
.document-actions #document-status{margin-right:5px;font-size:11px}
.live-data{padding:16px 20px 0;background:#fff}
.data-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px;margin:0 0 8px;color:var(--text)}
.data-head>b{font-size:13px;overflow-wrap:anywhere}
.data-actions{display:flex;align-items:center;gap:8px}
.data-actions button{min-height:27px;padding:4px 6px}
.data-actions button[aria-pressed=true]{background:#e8f4ef;color:var(--accent)}
.schema{margin:0 0 8px;padding:12px;background:#f4f7f8;border:1px solid var(--line);border-radius:4px;color:#344854;font:12px/1.6 SFMono-Regular,Consolas,monospace;white-space:pre-wrap;max-height:220px;overflow:auto}
.playground-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:320px;padding:0;overflow:auto}
.db-card{background:#fff;border:1px solid #d3dfe1;border-radius:5px;overflow:hidden;min-width:0}
.db-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;background:#eef5f1;border-bottom:1px solid #d3dfe1;font-size:12px;font-weight:600;color:#263c32}
.db-card-title small{font-weight:400;font-size:10px;color:#53665b}
.scroll-table{max-height:255px;overflow:auto}
table{border-collapse:collapse;table-layout:auto;width:100%;font:12px/1.5 SFMono-Regular,Consolas,monospace;color:#243641;background:#fff;opacity:1}
th,td{padding:7px 10px;text-align:left;border-bottom:1px solid #e4ecee;border-right:1px solid #e4ecee;vertical-align:top;max-width:320px;white-space:nowrap;opacity:1}
th{background:#f0f4f6;color:#3e5260;font-weight:600;position:sticky;top:0;z-index:1}
th small{display:block;font-size:10px;font-weight:400;color:#607682;margin-top:2px}
td{color:#243641;background:#fff}
tbody tr:nth-child(even) td{background:#f7faf9;color:#243641}
tr:last-child td{border-bottom:0}
td.null,tbody tr:nth-child(even) td.null{color:#687980;font-style:italic}
.table-note{padding:8px 10px;margin:0;color:var(--muted);font-size:11px}
.playground-lab{padding:16px 20px 22px}
.playground-mode{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;background:#f4f7f8;border:1px solid var(--line);border-bottom:0;font-size:11px;color:var(--muted)}
.engine-status{color:#61717b;font-size:11px}
.query-actions{display:flex;align-items:center;gap:8px}
.query-actions>span{font-size:10px;color:#8b681e}
.workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:380px;border:1px solid var(--line);background:#fff;border-radius:0 0 5px 5px;overflow:hidden}
.editor-pane{display:flex;flex-direction:column;background:#fff;min-height:0;min-width:0;border:0;border-right:1px solid var(--line)}
.editor-pane>span{display:flex;justify-content:space-between;align-items:center;min-height:35px;padding:0 12px;border-bottom:1px solid var(--line);background:#f4f7f8;color:#435965;font:600 12px system-ui}
.editor-pane small{color:var(--muted);font-size:10px}
.editor-pane textarea{flex:1;width:100%;min-height:310px;padding:15px;resize:vertical;border:0;color:#233747;background:#fff;font:13px/1.7 SFMono-Regular,Consolas,monospace;caret-color:var(--accent);tab-size:2}
.result-pane{min-height:0;min-width:0;max-height:650px;overflow:auto;flex:auto}
.pane-title{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f4f7f8;min-height:35px;padding:0 12px;color:#435965;font-size:12px;font-weight:600;border-bottom:1px solid var(--line)}
.pane-title small{color:var(--muted);font-size:10px;overflow-wrap:anywhere;text-align:right}
.result-pane .db-card{margin:10px;border:1px solid #d3dfe1;height:auto}
.result-pane .scroll-table{max-height:360px}
.result-empty{padding:16px 13px;font-size:12px;color:var(--muted);margin:0}
.query-error{margin:10px;padding:10px 12px;background:#fff2f1;color:#a52e29;border:1px solid #f0cdc9;border-radius:5px;font:12px/1.6 SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
footer{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;margin:0;min-height:49px;padding:0 24px;background:#fff;border-top:1px solid var(--line);color:#66717c;font-size:16px}
footer a{color:inherit;text-decoration:none}
.footer-location{color:#87919a}
dialog{border:1px solid var(--line);border-radius:7px;padding:20px;width:min(420px,calc(100% - 30px));color:var(--text);background:#fff;box-shadow:0 14px 50px #142b2530}
dialog::backdrop{background:#13262355}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.dialog-heading h2{font-size:17px;margin:0}
.dialog-heading button{padding:0;width:29px;min-height:29px;border:0}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
#session-fields label{display:grid;gap:7px;font-size:12px;margin-bottom:15px}
#session-fields label.check-label{display:flex;align-items:center;gap:7px}
#session-fields input:not([type=checkbox]){width:100%;font-size:14px}
#session-fields p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
#session-error{font-size:12px;color:#b53631}
#toast{position:fixed;bottom:65px;left:50%;transform:translateX(-50%);padding:10px 16px;border:1px solid #cce0d7;border-radius:5px;background:#f0f8f4;color:#1e5e4c;font-size:12px;z-index:10;max-width:90%;box-shadow:0 3px 16px #14332612}
@media(min-width:1600px){.workbench{min-height:440px}.editor-pane textarea{min-height:365px}.playground-grid{max-height:400px}}
@media(max-width:1100px){.hanz-site-inner{padding:0 18px}.hanz-site-header nav{gap:18px}}
@media(max-width:1000px){.workspace{grid-template-columns:195px minmax(0,1fr)}.course-title{align-items:flex-start;flex-direction:column;gap:10px}.playground-grid{grid-template-columns:1fr}.workbench{grid-template-columns:1fr}.editor-pane{border-right:0;border-bottom:1px solid var(--line)}.editor-pane textarea{min-height:240px}.result-pane{min-height:250px}}
@media(max-width:850px){.hanz-site-header nav{gap:15px}.hanz-site-header nav a:first-child{display:none}.hanz-site-brand{gap:8px}}
@media(max-width:650px){
 .hanz-site-inner{padding:0 14px;gap:9px}.hanz-site-header .hanz-site-inner{min-height:110px;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px}.hanz-site-brand{font-size:28px}.hanz-site-mark{width:29px;height:29px;font-size:25px}.hanz-site-header nav{font-size:20px;gap:22px}.hanz-site-header nav a{padding:2px 0 4px}
 .workspace{display:flex;flex-direction:column;min-height:0}.relation-panel{border-right:0;border-bottom:1px solid var(--line);padding:12px}.mode-switch{max-width:280px;margin-bottom:16px}.relation-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:150px;margin-bottom:10px}.files-section{padding:12px;margin:0;border:1px solid var(--line);border-radius:5px;background:#fff}.files-section #files-list{max-height:125px;overflow:auto}.live-data,.playground-lab{padding-left:12px;padding-right:12px}.course-title{padding:12px}.document-actions{flex-wrap:wrap;gap:5px}.document-actions #document-status{display:none}.playground-mode{flex-wrap:wrap;gap:8px}.query-actions{margin-left:auto}.editor-pane textarea{min-height:240px;font-size:13px}footer{padding:0 14px;min-height:49px;font-size:16px}.footer-location{display:none}
}
