
  body{margin:0;background:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;-webkit-text-size-adjust:100%;color:#1d1d1f;}
  .gzh-toolbar,.gzh-inspector{position:fixed;top:0;bottom:0;background:rgba(255,255,255,.78);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px);box-shadow:0 18px 44px rgba(0,0,0,.06);display:flex;flex-direction:column;gap:16px;padding:20px 16px;z-index:99;box-sizing:border-box;overflow-y:auto;}
  .gzh-toolbar{left:0;width:356px;border-right:1px solid rgba(0,0,0,.08);}
  .gzh-inspector{right:0;width:316px;border-left:1px solid rgba(0,0,0,.08);}
  .gzh-brand{display:flex;align-items:center;gap:12px;padding:0 4px 4px;}
  .gzh-brand-icon{width:52px;height:52px;background:transparent url("/assets/hotai-icon.svg") center/contain no-repeat;box-shadow:none;flex:0 0 auto;}
  .gzh-brand-name{display:flex;flex-direction:column;gap:2px;min-width:0;}
  .gzh-brand-name b{font-size:15px;line-height:1.1;color:#1d1d1f;letter-spacing:0;}
  .gzh-brand-name span{font-size:11px;color:#86868b;font-weight:750;letter-spacing:.4px;}
  .gzh-hint{font-size:13px;color:#6e6e73;line-height:1.45;padding:2px 4px 10px;border-bottom:1px solid rgba(0,0,0,.06);}
  .gzh-hint b{color:#1d1d1f;}
  .gzh-actions{display:flex;flex-direction:column;gap:12px;flex-shrink:0;}
  .gzh-group{display:flex;flex-direction:column;gap:9px;padding:12px;background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.07);border-radius:18px;box-shadow:0 1px 2px rgba(0,0,0,.03);}
  .gzh-group-title{font-size:11px;font-weight:850;color:#86868b;letter-spacing:.5px;padding:0 4px;display:flex;align-items:center;justify-content:space-between;}
  .gzh-row{display:flex;gap:8px;}
  .gzh-row>button,.gzh-row>label{flex:1;}
  .gzh-viewports,.gzh-sizes,.gzh-fonts,.gzh-toggles,.gzh-colors{display:flex;align-items:center;background:#fff;border:1px solid rgba(0,0,0,.07);border-radius:13px;padding:4px;gap:3px;box-shadow:0 1px 2px rgba(0,0,0,.03);}
  .gzh-viewports button,.gzh-sizes button,.gzh-fonts button,.gzh-toggles button{appearance:none;flex:1;border:0;background:transparent;color:#555;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;border-radius:10px;padding:8px 7px;transition:background .15s,color .15s,box-shadow .15s;}
  .gzh-viewports button.active,.gzh-sizes button.active,.gzh-fonts button.active,.gzh-toggles button.active{background:#1d1d1f;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.16);}
  .gzh-sizes-label,.gzh-fonts-label,.gzh-toggles-label{width:54px;font-size:11px;font-weight:800;color:#86868b;padding-left:7px;white-space:nowrap;box-sizing:border-box;}
  .gzh-slider{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid rgba(0,0,0,.07);border-radius:13px;padding:9px 10px;box-shadow:0 1px 2px rgba(0,0,0,.03);}
  .gzh-slider-label{width:42px;font-size:11px;font-weight:800;color:#86868b;white-space:nowrap;}
  .gzh-slider input{appearance:none;-webkit-appearance:none;flex:1;height:4px;border-radius:999px;background:#d2d2d7;outline:0;}
  .gzh-slider input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#1d1d1f;box-shadow:0 2px 8px rgba(0,0,0,.2);cursor:pointer;}
  .gzh-slider input::-moz-range-thumb{width:18px;height:18px;border:0;border-radius:50%;background:#1d1d1f;box-shadow:0 2px 8px rgba(0,0,0,.2);cursor:pointer;}
  .gzh-slider-value{width:42px;text-align:right;font-size:11px;font-weight:800;color:#1d1d1f;font-variant-numeric:tabular-nums;}
  .gzh-colors{justify-content:space-between;padding:7px 9px;}
  .gzh-colors button{appearance:none;width:30px;height:30px;border-radius:10px;border:2px solid transparent;cursor:pointer;padding:0;box-sizing:border-box;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);transition:transform .12s,border-color .15s,box-shadow .15s;}
  .gzh-colors button.active{border-color:#1d1d1f;box-shadow:0 2px 8px rgba(0,0,0,.18);}
  .gzh-upload{background:#f5f5f7;color:#1d1d1f;border:1px solid rgba(0,0,0,.08);border-radius:13px;padding:10px 13px;font-size:13px;font-weight:750;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.03);white-space:nowrap;transition:transform .08s,background .15s;}
  .gzh-upload:active{transform:translateY(1px);}
  .gzh-upload:hover{background:#e8e8ed;}
  button:disabled{opacity:.42;cursor:not-allowed;box-shadow:none;}
  button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[contenteditable="true"]:focus-visible{outline:3px solid rgba(0,122,255,.32);outline-offset:2px;}
  .gzh-source{width:100%;height:320px;min-height:220px;max-height:44vh;resize:vertical;border:1px solid rgba(0,0,0,.08);border-radius:13px;padding:11px;box-sizing:border-box;font-size:13px;line-height:1.55;color:#1d1d1f;background:#fff;outline:0;font-family:'SF Mono',Consolas,Monaco,'PingFang SC',monospace;box-shadow:0 1px 2px rgba(0,0,0,.03);}
  .gzh-mini-input{width:100%;border:1px solid rgba(0,0,0,.08);border-radius:11px;padding:9px 10px;box-sizing:border-box;font-size:13px;color:#1d1d1f;background:#fff;outline:0;}
  .gzh-status{display:none;background:#fff;border:1px solid rgba(0,0,0,.07);border-radius:13px;padding:10px 12px;color:#424245;font-size:12px;line-height:1.55;box-shadow:0 1px 2px rgba(0,0,0,.03);white-space:pre-wrap;}
  .gzh-status.show{display:block;}
  .gzh-import-report{display:none;background:#f5f5f7;border:1px solid rgba(0,0,0,.08);border-radius:13px;padding:10px 11px;color:#424245;font-size:12px;line-height:1.55;}
  .gzh-import-report.show{display:block;}
  .gzh-import-report-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;}
  .gzh-import-report-head b{font-size:12px;color:#1d1d1f;}
  .gzh-import-report-head button{appearance:none;border:0;background:transparent;color:#007AFF;font-size:12px;font-weight:750;padding:2px;cursor:pointer;}
  .gzh-import-report p{margin:0;color:#6e6e73;}
  .gzh-import-report .warn{color:#9a6700;margin-top:4px;}
  .gzh-drop{border:1px dashed rgba(0,0,0,.18);border-radius:13px;padding:12px;color:#86868b;background:#fafafa;text-align:center;font-size:12px;line-height:1.45;}
  .gzh-drop.drag{background:#F0F9FF;border-color:#0EA5E9;color:#0284C7;}
  .gzh-copy{background:#007AFF;color:#fff;border:0;border-radius:13px;padding:12px 18px;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(0,122,255,.22);white-space:nowrap;transition:transform .08s,background .15s;}
  .gzh-copy:hover{background:#006be6;}
  .gzh-copy:active{transform:translateY(1px);}
  .gzh-toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);background:#1d1d1f;color:#fff;padding:11px 20px;border-radius:14px;font-size:14px;font-weight:650;opacity:0;pointer-events:none;transition:opacity .25s;z-index:100;box-shadow:0 10px 30px rgba(0,0,0,.22);max-width:88vw;text-align:center;}
  .gzh-toast.show{opacity:1;}
  .gzh-mobile-nav,.gzh-mobile-bar{display:none;}
  .gzh-dialog{border:0;border-radius:16px;padding:0;width:min(620px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 32px));color:#1d1d1f;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.28);}
  .gzh-dialog::backdrop{background:rgba(0,0,0,.34);backdrop-filter:blur(4px);}
  .gzh-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:rgba(255,255,255,.94);border-bottom:1px solid rgba(0,0,0,.08);backdrop-filter:blur(16px);}
  .gzh-dialog-head h2{margin:0;font-size:17px;letter-spacing:0;}
  .gzh-icon-button{appearance:none;border:0;background:#f2f2f7;color:#1d1d1f;width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;}
  .gzh-dialog-body{padding:16px 18px;overflow:auto;}
  .gzh-dialog-actions{position:sticky;bottom:0;display:flex;gap:10px;padding:14px 18px;background:rgba(255,255,255,.96);border-top:1px solid rgba(0,0,0,.08);}
  .gzh-dialog-actions button{flex:1;}
  .gzh-structure-row{display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid rgba(0,0,0,.07);}
  .gzh-structure-row input,.gzh-structure-row select{width:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.12);border-radius:9px;background:#fff;color:#1d1d1f;padding:9px 10px;font-size:13px;}
  .gzh-structure-empty{margin:0;color:#86868b;font-size:13px;}
  .gzh-check-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;margin-bottom:12px;border-radius:11px;background:#f5f5f7;}
  .gzh-check-summary b{font-size:14px;}
  .gzh-check-summary span{font-size:12px;color:#6e6e73;}
  .gzh-check-list{display:flex;flex-direction:column;gap:8px;}
  .gzh-check-item{display:grid;grid-template-columns:18px 1fr;gap:8px;padding:10px 11px;border-radius:10px;background:#f8f8fa;font-size:13px;line-height:1.5;}
  .gzh-check-item.error{background:#fff2f2;color:#8a1c1c;}
  .gzh-check-item.warn{background:#fff8e8;color:#815900;}
  .gzh-check-item.ok{background:#eefaf3;color:#17643a;}
  .gzh-history-list{display:flex;flex-direction:column;gap:8px;}
  .gzh-history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(0,0,0,.08);border-radius:10px;padding:10px 11px;}
  .gzh-history-item span{font-size:12px;color:#6e6e73;}
  .gzh-history-item button{appearance:none;border:0;background:#f2f2f7;border-radius:8px;padding:7px 10px;font-weight:700;cursor:pointer;}
  .gzh-stage{width:min(700px,calc(100vw - 760px));max-width:700px;margin:40px auto 64px;padding:0 8px;transition:max-width .18s ease,width .18s ease;}
  #gzh-content{outline:0;}
  #gzh-content[contenteditable="true"]:focus{box-shadow:0 0 0 3px rgba(14,165,233,.16);border-radius:10px;}
  @media(max-width:1240px){body{display:block;overflow-x:hidden;padding:58px 0 76px;}.gzh-mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(3,1fr);top:0;left:0;right:0;z-index:120;padding:8px 10px;background:rgba(255,255,255,.92);border-bottom:1px solid rgba(0,0,0,.08);backdrop-filter:blur(18px);}.gzh-mobile-nav button{appearance:none;border:0;background:transparent;color:#6e6e73;border-radius:9px;padding:9px 8px;font-size:13px;font-weight:750;}.gzh-mobile-nav button.active{background:#1d1d1f;color:#fff;}.gzh-mobile-bar{position:fixed;display:grid;grid-template-columns:1fr 1.5fr;gap:8px;left:0;right:0;bottom:0;z-index:120;padding:9px 12px calc(9px + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);border-top:1px solid rgba(0,0,0,.08);backdrop-filter:blur(18px);}.gzh-mobile-bar button{appearance:none;border:1px solid rgba(0,0,0,.08);border-radius:11px;padding:12px 10px;font-size:14px;font-weight:800;background:#f2f2f7;color:#1d1d1f;}.gzh-mobile-bar .primary{background:#007AFF;color:#fff;border-color:#007AFF;}.gzh-toolbar,.gzh-inspector{display:none;position:relative;top:auto;left:auto;right:auto;bottom:auto;width:100%;min-width:0;max-height:none;border:0;border-bottom:1px solid rgba(0,0,0,.08);box-shadow:none;background:#fff;padding:18px 16px;}.gzh-stage{display:none;width:100%;min-width:0;max-width:700px;box-sizing:border-box;margin:18px auto 28px;padding:0 10px;}.gzh-actions{width:100%;min-width:0;}.gzh-hint{max-width:none;}body[data-mobile-panel="source"] .gzh-toolbar,body[data-mobile-panel="preview"] .gzh-stage,body[data-mobile-panel="settings"] .gzh-inspector{display:flex;}body[data-mobile-panel="preview"] .gzh-stage{display:block;}.gzh-source{height:300px;max-height:none;}.gzh-dialog{max-height:calc(100dvh - 24px);}.gzh-dialog-body{padding:14px;}.gzh-structure-row{grid-template-columns:1fr;}}


  :root{
    --gzh-shell:#eef0f2;
    --gzh-panel:#fbfcfd;
    --gzh-surface:#fff;
    --gzh-text:#20242a;
    --gzh-muted:#737982;
    --gzh-faint:#9aa0a8;
    --gzh-line:#dfe3e7;
    --gzh-line-strong:#cfd5db;
    --gzh-accent:#0b84e5;
    --gzh-accent-soft:#e6f4ff;
    --gzh-accent-ink:#075f9d;
    --gzh-success:#20845a;
    --gzh-control:#f2f4f6;
    --gzh-control-hover:#e9edf0;
    --gzh-radius:8px;
    --gzh-topbar:58px;
    --gzh-left:300px;
    --gzh-right:304px;
  }
  *{box-sizing:border-box;}
  body{min-height:100dvh;padding-top:var(--gzh-topbar);overflow-x:hidden;background:var(--gzh-shell);color:var(--gzh-text);}
  button,input,textarea,select{font:inherit;letter-spacing:0;}
  .gzh-icon-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;}
  .gzh-icon{width:16px;height:16px;display:block;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
  .gzh-appbar{position:fixed;inset:0 0 auto 0;height:var(--gzh-topbar);z-index:130;display:grid;grid-template-columns:var(--gzh-left) minmax(220px,1fr) auto;align-items:center;background:rgba(251,252,253,.97);border-bottom:1px solid var(--gzh-line);box-shadow:0 1px 0 rgba(255,255,255,.8);}
  .gzh-appbar-brand{height:100%;display:flex;align-items:center;gap:10px;padding:0 16px;border-right:1px solid var(--gzh-line);min-width:0;}
  .gzh-appbar-brand .gzh-brand-icon{width:36px;height:36px;}
  .gzh-appbar-brand .gzh-brand-name{gap:1px;}
  .gzh-appbar-brand .gzh-brand-name b{font-size:14px;font-weight:720;color:var(--gzh-text);}
  .gzh-appbar-brand .gzh-brand-name span{font-size:10px;color:var(--gzh-muted);font-weight:650;letter-spacing:0;}
  .gzh-document-status{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:0 18px;line-height:1.25;}
  .gzh-document-status strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:720;color:var(--gzh-text);}
  .gzh-document-status span{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--gzh-muted);font-variant-numeric:tabular-nums;}
  .gzh-appbar-actions{height:100%;display:flex;align-items:center;gap:7px;padding:0 12px;border-left:1px solid var(--gzh-line);}
  .gzh-appbar-divider{width:1px;height:22px;margin:0 2px;background:var(--gzh-line);}
  .gzh-icon-button,.gzh-appbar-button{appearance:none;border:1px solid transparent;background:transparent;color:#4d535b;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .08s;}
  .gzh-icon-button{width:34px;height:34px;border-radius:7px;padding:0;font-size:0;}
  .gzh-icon-button:hover,.gzh-appbar-button:hover{background:var(--gzh-control-hover);color:var(--gzh-text);}
  .gzh-icon-button:active,.gzh-appbar-button:active{transform:translateY(1px);}
  .gzh-appbar-button{height:34px;border-radius:7px;padding:0 12px;font-size:12px;font-weight:720;white-space:nowrap;}
  .gzh-appbar-button.secondary{border-color:var(--gzh-line-strong);background:#fff;color:#3f454c;}
  .gzh-appbar-button.primary{border-color:var(--gzh-accent);background:var(--gzh-accent);color:#fff;box-shadow:0 1px 2px rgba(11,132,229,.22);}
  .gzh-appbar-button.primary:hover{background:#0878d1;color:#fff;}
  button:disabled{opacity:.32;cursor:not-allowed;transform:none!important;}
  button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[contenteditable="true"]:focus-visible{outline:3px solid rgba(11,132,229,.24);outline-offset:2px;}

  .gzh-toolbar,.gzh-inspector{top:var(--gzh-topbar);bottom:0;padding:0;gap:0;z-index:90;background:var(--gzh-panel);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;}
  .gzh-toolbar{width:var(--gzh-left);border-right:1px solid var(--gzh-line);}
  .gzh-inspector{width:var(--gzh-right);border-left:1px solid var(--gzh-line);}
  .gzh-toolbar>.gzh-brand{display:none;}
  .gzh-toolbar .gzh-actions{padding:8px 16px 28px;gap:0;}
  .gzh-inspector .gzh-actions{padding:0 16px 92px;gap:0;}
  .gzh-group{display:flex;flex-direction:column;gap:10px;padding:16px 0;background:transparent;border:0;border-bottom:1px solid var(--gzh-line);border-radius:0;box-shadow:none;}
  .gzh-group:last-child{border-bottom:0;}
  .gzh-group-title{padding:0 1px;color:#555c65;font-size:12px;font-weight:720;letter-spacing:0;line-height:1.3;}
  .gzh-row{gap:7px;}
  .gzh-upload{min-height:34px;border:1px solid var(--gzh-line-strong);border-radius:7px;background:var(--gzh-control);color:#343a41;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 10px;font-size:12px;font-weight:680;box-shadow:none;}
  .gzh-upload:hover{background:var(--gzh-control-hover);border-color:#c4cbd2;}
  .gzh-source{height:360px;min-height:240px;max-height:54vh;border:1px solid var(--gzh-line-strong);border-radius:var(--gzh-radius);padding:12px 13px;background:#fff;color:var(--gzh-text);font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;font-size:13px;line-height:1.65;box-shadow:inset 0 1px 2px rgba(31,35,40,.035);}
  .gzh-source::placeholder{color:#959ba3;}
  .gzh-drop{border:1px dashed #c8ced5;border-radius:var(--gzh-radius);padding:15px 12px;background:#f7f8f9;color:#7b828b;font-size:12px;line-height:1.5;}
  .gzh-drop.drag{background:var(--gzh-accent-soft);border-color:var(--gzh-accent);color:var(--gzh-accent-ink);}
  .gzh-import-report{border:0;border-left:3px solid #a8d9f7;border-radius:0;padding:8px 10px;background:#f3f8fb;color:#4b535c;font-size:11px;box-shadow:none;}
  .gzh-import-report-head{margin-bottom:4px;}
  .gzh-import-report-head b{font-size:11px;}
  .gzh-import-report-head button{color:var(--gzh-accent-ink);font-size:11px;}

  .gzh-inspector-tabs{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:10px 12px;background:rgba(251,252,253,.96);border-bottom:1px solid var(--gzh-line);}
  .gzh-inspector-tab{appearance:none;height:34px;border:0;border-radius:7px;background:transparent;color:#6b727b;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:680;cursor:pointer;}
  .gzh-inspector-tab:hover{background:var(--gzh-control);color:var(--gzh-text);}
  .gzh-inspector-tab.active{background:var(--gzh-accent-soft);color:var(--gzh-accent-ink);box-shadow:inset 0 0 0 1px rgba(11,132,229,.13);}
  [data-inspector-panel]{display:none;}
  body[data-inspector-tab="style"] [data-inspector-panel="style"],body[data-inspector-tab="edit"] [data-inspector-panel="edit"],body[data-inspector-tab="more"] [data-inspector-panel="more"]{display:flex;}
  .gzh-viewports,.gzh-sizes,.gzh-fonts,.gzh-toggles{min-height:38px;border:1px solid var(--gzh-line);border-radius:var(--gzh-radius);padding:3px;background:var(--gzh-control);gap:2px;box-shadow:none;}
  .gzh-viewports button,.gzh-sizes button,.gzh-fonts button,.gzh-toggles button{min-height:30px;border-radius:6px;padding:6px 7px;color:#626973;font-size:11px;font-weight:680;box-shadow:none;}
  .gzh-viewports button.active,.gzh-sizes button.active,.gzh-fonts button.active,.gzh-toggles button.active{background:#fff;color:var(--gzh-text);box-shadow:0 1px 2px rgba(31,35,40,.08),inset 0 0 0 1px rgba(31,35,40,.05);}
  .gzh-sizes-label,.gzh-fonts-label,.gzh-toggles-label{width:50px;padding-left:7px;color:#747b84;font-size:11px;font-weight:680;}
  .gzh-colors{padding:8px 4px;border:0;border-radius:0;background:transparent;box-shadow:none;}
  .gzh-colors button{width:26px;height:26px;border:2px solid var(--gzh-panel);border-radius:50%;box-shadow:0 0 0 1px rgba(31,35,40,.18);}
  .gzh-colors button.active{border-color:#fff;box-shadow:0 0 0 2px var(--gzh-text);transform:none;}
  .gzh-slider{min-height:42px;border:0;border-bottom:1px solid #edf0f2;border-radius:0;padding:8px 1px;background:transparent;box-shadow:none;}
  .gzh-slider:last-child{border-bottom:0;}
  .gzh-slider-label{width:40px;color:#686f78;font-size:11px;font-weight:680;}
  .gzh-slider input{height:3px;background:#cbd1d7;}
  .gzh-slider input::-webkit-slider-thumb{width:16px;height:16px;background:var(--gzh-accent);border:2px solid #fff;box-shadow:0 0 0 1px rgba(11,132,229,.32);}
  .gzh-slider input::-moz-range-thumb{width:16px;height:16px;background:var(--gzh-accent);border:2px solid #fff;box-shadow:0 0 0 1px rgba(11,132,229,.32);}
  .gzh-slider-value{width:44px;color:#4b525a;font-size:11px;font-weight:650;}
  .gzh-disclosure{margin-top:3px;border-top:1px solid var(--gzh-line);}
  .gzh-disclosure summary{list-style:none;cursor:pointer;padding:12px 1px 9px;color:#555c65;font-size:12px;font-weight:720;display:flex;align-items:center;justify-content:space-between;}
  .gzh-disclosure summary::-webkit-details-marker{display:none;}
  .gzh-disclosure summary::after{content:'＋';color:#8a9199;font-size:16px;font-weight:400;}
  .gzh-disclosure[open] summary::after{content:'−';}
  .gzh-disclosure-body{display:flex;flex-direction:column;gap:7px;padding-bottom:2px;}
  .gzh-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
  .gzh-edit-grid .gzh-upload{min-width:0;flex-direction:column;gap:4px;padding:9px 4px;font-size:11px;}
  .gzh-edit-grid .gzh-icon{width:17px;height:17px;}
  .gzh-flow{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;}
  .gzh-flow button{appearance:none;min-width:0;height:36px;border:0;border-radius:6px;background:var(--gzh-control);color:#767d86;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 1px;font-size:9px;font-weight:680;cursor:pointer;}
  .gzh-flow button::before{content:'';width:5px;height:5px;border-radius:50%;background:#c5cbd1;}
  .gzh-flow button.done{color:#436b5a;background:#eef8f3;}
  .gzh-flow button.done::before{background:var(--gzh-success);}
  .gzh-flow button.active{color:var(--gzh-accent-ink);background:var(--gzh-accent-soft);box-shadow:inset 0 0 0 1px rgba(11,132,229,.14);}
  .gzh-flow button.active::before{background:var(--gzh-accent);box-shadow:0 0 0 3px rgba(11,132,229,.13);}
  .gzh-workbench-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .gzh-workbench-grid .gzh-upload{justify-content:flex-start;min-width:0;}
  .gzh-workbench-grid .gzh-upload span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .gzh-workflow-run{width:100%;border-color:#b9dff6;background:var(--gzh-accent-soft);color:var(--gzh-accent-ink);}

  .gzh-dialog.wide{width:min(920px,calc(100vw - 32px));}
  .gzh-dialog-body.flush{padding:0;}
  .gzh-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:520px;}
  .gzh-workspace-nav{display:flex;flex-direction:column;gap:4px;padding:14px 10px;background:#f7f8f9;border-right:1px solid var(--gzh-line);}
  .gzh-workspace-nav button{appearance:none;border:0;border-radius:7px;background:transparent;color:#5e6670;display:flex;align-items:center;gap:8px;padding:10px 11px;text-align:left;font-size:13px;font-weight:680;cursor:pointer;}
  .gzh-workspace-nav button:hover{background:#edf0f2;color:var(--gzh-text);}
  .gzh-workspace-nav button.active{background:#fff;color:var(--gzh-accent-ink);box-shadow:0 1px 2px rgba(31,35,40,.08),inset 0 0 0 1px rgba(31,35,40,.06);}
  .gzh-workspace-panel{display:none;padding:20px 22px 26px;overflow:auto;max-height:68vh;}
  .gzh-workspace-panel.active{display:block;}
  .gzh-workspace-panel h3{margin:0 0 5px;font-size:17px;letter-spacing:0;}
  .gzh-workspace-panel>.gzh-panel-intro{margin:0 0 18px;color:#747b84;font-size:12px;line-height:1.55;}
  .gzh-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
  .gzh-field{display:flex;flex-direction:column;gap:6px;min-width:0;}
  .gzh-field.wide{grid-column:1/-1;}
  .gzh-field>span{color:#5d646d;font-size:11px;font-weight:720;}
  .gzh-field input,.gzh-field textarea,.gzh-field select,.gzh-workspace-panel textarea{width:100%;border:1px solid var(--gzh-line-strong);border-radius:7px;background:#fff;color:var(--gzh-text);padding:9px 10px;font-size:13px;line-height:1.55;outline:0;}
  .gzh-field textarea,.gzh-workspace-panel textarea{min-height:84px;resize:vertical;}
  .gzh-panel-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--gzh-line);}
  .gzh-panel-actions .gzh-upload,.gzh-panel-actions .gzh-copy{min-height:36px;}
  .gzh-list{display:flex;flex-direction:column;border-top:1px solid var(--gzh-line);}
  .gzh-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px 2px;border-bottom:1px solid var(--gzh-line);align-items:start;}
  .gzh-list-main{min-width:0;}
  .gzh-list-main strong{display:block;margin-bottom:4px;font-size:13px;line-height:1.45;color:var(--gzh-text);overflow-wrap:anywhere;}
  .gzh-list-main p{margin:0;color:#727983;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;}
  .gzh-list-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;}
  .gzh-chip{display:inline-flex;align-items:center;min-height:22px;border-radius:5px;background:#eef1f3;color:#626a73;padding:3px 7px;font-size:10px;font-weight:680;}
  .gzh-chip.blue{background:var(--gzh-accent-soft);color:var(--gzh-accent-ink);}
  .gzh-chip.green{background:#eaf7f0;color:#2d7355;}
  .gzh-chip.amber{background:#fff5dc;color:#8a6111;}
  .gzh-list-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:230px;}
  .gzh-list-actions button{appearance:none;border:1px solid var(--gzh-line);border-radius:6px;background:#fff;color:#555d66;padding:6px 8px;font-size:11px;font-weight:680;cursor:pointer;}
  .gzh-list-actions button:hover{background:var(--gzh-control);}
  .gzh-title-row{grid-template-columns:minmax(0,1fr) 190px;align-items:center;}
  .gzh-title-row input{width:100%;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--gzh-text);padding:7px 8px;font-size:13px;font-weight:680;}
  .gzh-title-row input:focus{border-color:var(--gzh-line-strong);background:#fff;}
  .gzh-title-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;text-align:center;}
  .gzh-title-metrics span{border-left:1px solid var(--gzh-line);color:#747b84;font-size:10px;line-height:1.35;}
  .gzh-title-metrics b{display:block;color:#424951;font-size:12px;font-variant-numeric:tabular-nums;}
  .gzh-empty{margin:14px 0;color:#848b94;font-size:13px;line-height:1.6;}
  .gzh-prompt{border-left:3px solid #a8d9f7;padding:10px 12px;background:#f5f9fc;color:#4e5761;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;}
  .gzh-ratio-row{display:flex;gap:8px;margin:12px 0 16px;}
  .gzh-ratio-preview{flex:1;min-height:74px;border:1px solid var(--gzh-line);border-radius:7px;background:linear-gradient(135deg,#f7fbfe,#e6f4ff);display:flex;align-items:center;justify-content:center;color:#57748a;font-size:11px;font-weight:720;}
  .gzh-ratio-preview[data-ratio="2.35"]{aspect-ratio:2.35/1;}
  .gzh-ratio-preview[data-ratio="1.78"]{aspect-ratio:16/9;}
  .gzh-ratio-preview[data-ratio="1"]{aspect-ratio:1/1;max-width:110px;}
  .gzh-module-list{display:flex;flex-direction:column;border-top:1px solid var(--gzh-line);}
  .gzh-module{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 2px;border-bottom:1px solid var(--gzh-line);}
  .gzh-module input{width:17px;height:17px;accent-color:var(--gzh-accent);}
  .gzh-module strong{display:block;font-size:13px;color:var(--gzh-text);}
  .gzh-module p{margin:3px 0 0;color:#7b828b;font-size:11px;line-height:1.45;}
  .gzh-module-status{font-size:11px;color:#7c838b;white-space:nowrap;}
  .gzh-output-tabs{display:flex;gap:4px;margin-bottom:12px;padding:3px;border:1px solid var(--gzh-line);border-radius:7px;background:var(--gzh-control);}
  .gzh-output-tabs button{appearance:none;flex:1;border:0;border-radius:5px;background:transparent;color:#69717a;padding:8px;font-size:12px;font-weight:680;cursor:pointer;}
  .gzh-output-tabs button.active{background:#fff;color:var(--gzh-text);box-shadow:0 1px 2px rgba(31,35,40,.08);}
  .gzh-output-editor{min-height:330px!important;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;}
  .gzh-score{display:flex;align-items:center;gap:13px;margin-bottom:14px;padding:12px 13px;background:#f5f7f8;border-radius:7px;}
  .gzh-score b{font-size:27px;line-height:1;color:var(--gzh-accent-ink);font-variant-numeric:tabular-nums;}
  .gzh-score span{color:#68707a;font-size:12px;line-height:1.45;}
  .gzh-connector{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid var(--gzh-line);border-radius:7px;background:#fff;}
  .gzh-connector-dot{width:8px;height:8px;border-radius:50%;background:#aeb5bc;}
  .gzh-connector.ready .gzh-connector-dot{background:var(--gzh-success);}
  .gzh-connector strong{display:block;font-size:12px;}
  .gzh-connector span{display:block;margin-top:2px;color:#7a818a;font-size:10px;}

  .gzh-stage{width:min(720px,calc(100vw - var(--gzh-left) - var(--gzh-right) - 76px));max-width:720px;margin:28px auto 72px;padding:0;transition:max-width .18s ease,width .18s ease;}
  .gzh-stage-bar{height:34px;margin:0 2px 10px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#68707a;font-size:11px;}
  .gzh-stage-label{display:flex;align-items:center;gap:6px;font-weight:680;color:#4d555e;}
  .gzh-stage-label .gzh-icon{width:14px;height:14px;}
  #gzhStageMeta{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums;}
  #gzh-content{background:#fff;border:1px solid #dde1e5;border-radius:4px;box-shadow:0 1px 2px rgba(31,35,40,.05),0 18px 48px rgba(31,35,40,.08);overflow:hidden;}
  #gzh-content[contenteditable="true"]:focus{border-color:#a8d9f7;border-radius:4px;box-shadow:0 0 0 3px rgba(11,132,229,.12),0 18px 48px rgba(31,35,40,.08);}
  .gzh-toast{top:72px;border-radius:8px;padding:10px 15px;font-size:13px;font-weight:650;box-shadow:0 10px 28px rgba(31,35,40,.22);}
  .gzh-dialog{border-radius:10px;}
  .gzh-dialog-head{padding:14px 16px;}
  .gzh-dialog-head h2{font-size:16px;}
  .gzh-dialog .gzh-icon-button{font-size:18px;border-radius:50%;background:var(--gzh-control);}

  @media(max-width:1240px){
    body{padding:54px 0 74px;background:#f5f6f7;}
    .gzh-appbar{display:none;}
    .gzh-mobile-nav{height:54px;padding:7px 9px;gap:4px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--gzh-line);backdrop-filter:blur(14px);}
    .gzh-mobile-nav button{border-radius:7px;padding:8px;color:#707780;font-size:13px;font-weight:680;}
    .gzh-mobile-nav button.active{background:var(--gzh-accent-soft);color:var(--gzh-accent-ink);box-shadow:inset 0 0 0 1px rgba(11,132,229,.12);}
    .gzh-mobile-bar{gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--gzh-line);backdrop-filter:blur(14px);}
    .gzh-mobile-bar button{min-height:42px;border:1px solid var(--gzh-line-strong);border-radius:8px;padding:10px;background:var(--gzh-control);color:#343a41;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:720;}
    .gzh-mobile-bar .primary{background:var(--gzh-accent);border-color:var(--gzh-accent);color:#fff;}
    .gzh-toolbar,.gzh-inspector{top:auto;width:100%;padding:0 16px 26px;background:#f8f9fa;border:0;border-bottom:0;box-shadow:none;}
    .gzh-toolbar>.gzh-brand{display:flex;padding:18px 0 12px;}
    .gzh-toolbar>.gzh-brand .gzh-brand-icon{width:40px;height:40px;}
    .gzh-toolbar .gzh-actions,.gzh-inspector .gzh-actions{width:100%;padding:0 0 24px;}
    .gzh-group{padding:16px 0;}
    .gzh-source{height:390px;max-height:none;}
    .gzh-inspector-tabs{position:relative;top:auto;margin:0 -16px;padding:8px 12px;background:rgba(248,249,250,.96);}
    .gzh-stage{width:100%;max-width:720px;margin:14px auto 28px;padding:0 10px;}
    .gzh-stage-bar{margin:0 3px 8px;}
    #gzh-content{border-radius:3px;box-shadow:0 1px 2px rgba(31,35,40,.05),0 10px 30px rgba(31,35,40,.06);}
    .gzh-toast{top:66px;}
    .gzh-workspace{grid-template-columns:1fr;min-height:0;}
    .gzh-workspace-nav{position:sticky;top:0;z-index:2;flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--gzh-line);padding:8px;background:#f7f8f9;}
    .gzh-workspace-nav button{flex:0 0 auto;padding:8px 10px;}
    .gzh-workspace-panel{padding:17px 15px 22px;max-height:none;}
    .gzh-form-grid{grid-template-columns:1fr;}
    .gzh-field.wide{grid-column:auto;}
    .gzh-title-row{grid-template-columns:1fr;}
    .gzh-title-metrics{border-top:1px solid var(--gzh-line);padding-top:8px;}
    .gzh-list-item{grid-template-columns:1fr;}
    .gzh-list-actions{justify-content:flex-start;max-width:none;}
  }
  @media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important;}}

/* Workspace v2: article-first, dense, and optimized for repeated editing. */
.gzh-document-status>span{display:flex;align-items:center;gap:8px;min-width:0;}
#gzhArticleStatus{appearance:none;border:0;background:transparent;color:var(--gzh-accent-ink);font-size:10px;font-weight:720;padding:0 12px 0 0;cursor:pointer;}
.gzh-toolbar{overflow:hidden!important;}
.gzh-toolbar>.gzh-library,.gzh-toolbar>.gzh-outline-panel{display:flex;flex-direction:column;min-height:0;padding:12px 12px 10px;border-bottom:1px solid var(--gzh-line);background:var(--gzh-panel);}
.gzh-toolbar>.gzh-library{flex:0 1 43%;min-height:210px;}
.gzh-toolbar>.gzh-outline-panel{flex:0 1 28%;min-height:145px;}
.gzh-toolbar>.gzh-actions{flex:1 1 auto;min-height:170px;overflow-y:auto;overscroll-behavior:contain;}
.gzh-legacy-hub{display:none!important;}
.gzh-library-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:28px;margin-bottom:8px;}
.gzh-library-head strong{display:flex;align-items:center;gap:7px;color:#3d444c;font-size:12px;font-weight:760;}
.gzh-library-head button{appearance:none;width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:#67707a;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.gzh-library-head button:hover{background:var(--gzh-control-hover);color:var(--gzh-text);}
.gzh-library-search{height:32px;display:flex;align-items:center;gap:7px;border:1px solid var(--gzh-line-strong);border-radius:7px;background:#fff;padding:0 9px;color:#8a9199;}
.gzh-library-search .gzh-icon{width:14px;height:14px;}
.gzh-library-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--gzh-text);font-size:12px;}
.gzh-library-filters{display:flex;gap:3px;margin:8px 0 6px;padding:3px;background:#eef1f3;border-radius:7px;}
.gzh-library-filters button{appearance:none;flex:1;border:0;border-radius:5px;background:transparent;color:#6e7680;padding:5px 3px;font-size:10px;font-weight:690;cursor:pointer;}
.gzh-library-filters button.active{background:#fff;color:#32383f;box-shadow:0 1px 2px rgba(31,35,40,.08);}
.gzh-article-list,.gzh-outline-list{min-height:0;overflow:auto;overscroll-behavior:contain;}
.gzh-article-list{flex:1 1 auto;}
.gzh-article-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;padding:8px 7px;border-bottom:1px solid #e9ecef;cursor:pointer;}
.gzh-article-row:hover{background:#f1f4f6;}
.gzh-article-row.active{background:var(--gzh-accent-soft);box-shadow:inset 3px 0 0 var(--gzh-accent);}
.gzh-article-row-main{min-width:0;}
.gzh-article-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#343a41;font-size:11px;line-height:1.35;}
.gzh-article-row small{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#89919a;font-size:9px;font-variant-numeric:tabular-nums;}
.gzh-article-menu{appearance:none;border:0;border-radius:5px;background:transparent;color:#858d96;padding:4px 5px;font-size:14px;cursor:pointer;}
.gzh-article-menu:hover{background:#fff;color:#30363d;}
.gzh-article-actions{display:none;grid-column:1/-1;gap:4px;padding-top:3px;}
.gzh-article-row.menu-open .gzh-article-actions{display:flex;}
.gzh-article-actions button{appearance:none;border:1px solid var(--gzh-line);border-radius:5px;background:#fff;color:#59616a;padding:4px 7px;font-size:9px;font-weight:680;cursor:pointer;}
.gzh-library-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:7px;}
.gzh-library-actions button{appearance:none;min-height:29px;border:1px solid var(--gzh-line);border-radius:6px;background:var(--gzh-control);color:#58606a;display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px;font-weight:690;cursor:pointer;}
.gzh-library-actions .gzh-icon{width:13px;height:13px;}
.gzh-sidebar-empty{margin:10px 6px;color:#9299a2;font-size:10px;line-height:1.5;}
.gzh-outline-panel{flex:0 0 auto;}
.gzh-outline-list{flex:1 1 auto;}
.gzh-outline-row{width:100%;appearance:none;border:0;border-radius:5px;background:transparent;color:#59616a;display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:5px;align-items:center;padding:6px 6px;text-align:left;cursor:pointer;}
.gzh-outline-row:hover,.gzh-outline-row.active{background:#edf2f5;color:#252b31;}
.gzh-outline-row.sub{padding-left:20px;color:#747c85;}
.gzh-outline-level{color:#a0a7af;font-size:9px;font-variant-numeric:tabular-nums;}
.gzh-outline-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:670;}
.gzh-confidence{border-radius:4px;background:#eef1f3;color:#77808a;padding:2px 4px;font-size:8px;font-weight:720;}
.gzh-confidence.low{background:#fff2cf;color:#8a6111;}
.gzh-heading-review{display:none;margin-top:7px;border-top:1px solid var(--gzh-line);padding-top:7px;}
.gzh-heading-review.show{display:block;}
.gzh-heading-review>strong{display:block;margin-bottom:5px;color:#8a6111;font-size:9px;}
.gzh-heading-candidate{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center;padding:5px 4px;}
.gzh-heading-candidate span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#676f78;font-size:9px;}
.gzh-heading-candidate div{display:flex;gap:3px;}
.gzh-heading-candidate button{appearance:none;border:1px solid var(--gzh-line);border-radius:4px;background:#fff;color:#59616a;padding:3px 5px;font-size:8px;font-weight:680;cursor:pointer;}
[data-gzh-heading-confidence="low"]{box-shadow:inset 3px 0 0 #e7b54b;}
.gzh-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
.gzh-theme-card{appearance:none;min-width:0;border:1px solid var(--gzh-line);border-radius:7px;background:#fff;padding:10px;text-align:left;cursor:pointer;}
.gzh-theme-card.active{border-color:#7cc6f2;box-shadow:0 0 0 2px rgba(11,132,229,.1);}
.gzh-theme-swatch{height:34px;border-radius:5px;margin-bottom:8px;border:1px solid rgba(0,0,0,.05);}
.gzh-theme-card strong{display:block;color:#343b42;font-size:11px;}
.gzh-theme-card span{display:block;margin-top:3px;color:#858c95;font-size:9px;}
.gzh-diff-summary{margin-bottom:12px;padding:10px 12px;border-left:3px solid #9fd4f4;background:#f5f9fc;color:#5e6872;font-size:11px;line-height:1.55;white-space:pre-wrap;}
.gzh-learning-pattern{font-family:'SF Mono',Consolas,monospace;color:#3e4852!important;}
.gzh-storage-meter{display:flex;flex-direction:column;gap:12px;padding:4px 0 14px;}
.gzh-storage-meter div{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
.gzh-storage-meter strong{font-size:14px;}
.gzh-storage-meter span{color:#7b828a;font-size:11px;text-align:right;}
.gzh-storage-meter progress{width:100%;height:8px;accent-color:var(--gzh-accent);}
.gzh-backup-note{border-left:3px solid #a8d9f7;background:#f5f9fc;color:#59636e;padding:11px 12px;font-size:11px;line-height:1.6;}
.gzh-asset-thumb{width:76px;height:54px;object-fit:cover;border-radius:5px;border:1px solid var(--gzh-line);background:#f4f5f6;}
.gzh-asset-row{grid-template-columns:76px minmax(0,1fr) auto;align-items:center;}
.gzh-publish-result{margin-top:10px;padding:9px 11px;border-left:3px solid var(--gzh-success);background:#f0f8f4;color:#3b6654;font-size:11px;line-height:1.5;}

@media(max-width:1240px){
  .gzh-toolbar{overflow-y:auto!important;}
  .gzh-toolbar>.gzh-library,.gzh-toolbar>.gzh-outline-panel{flex:none;min-height:0;padding-left:0;padding-right:0;background:transparent;}
  .gzh-article-list{max-height:240px;}
  .gzh-outline-list{max-height:220px;}
  .gzh-toolbar>.gzh-actions{overflow:visible;min-height:0;padding-top:0;}
  .gzh-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  #gzhArticleStatus{display:none;}
}

@media(max-width:620px){
  .gzh-theme-grid{grid-template-columns:1fr;}
  .gzh-asset-row{grid-template-columns:64px minmax(0,1fr);}
  .gzh-asset-row .gzh-list-actions{grid-column:1/-1;}
  .gzh-asset-thumb{width:64px;height:48px;}
}

/* Workspace v3: clearer roles for source, structure, preview, and formatting. */
:root{
  --gzh-left:320px;
  --gzh-right:328px;
  --gzh-sidebar-text:12px;
}

.gzh-appbar{grid-template-columns:var(--gzh-left) minmax(220px,1fr) auto;}
.gzh-appbar-actions{gap:5px;}
.gzh-toolbar{width:var(--gzh-left);}
.gzh-inspector{width:var(--gzh-right);}
.gzh-stage{width:min(720px,calc(100vw - var(--gzh-left) - var(--gzh-right) - 48px));margin-top:22px;}

.gzh-toolbar>.gzh-library{flex:0 0 auto;min-height:0;max-height:31vh;padding:14px 14px 11px;}
.gzh-toolbar>.gzh-actions{display:flex;flex:1 1 auto;min-height:0;padding:0 14px 18px;overflow:hidden;}
.gzh-toolbar .gzh-writing-group{display:flex;flex:1 1 auto;min-height:330px;padding:14px 0 0;border:0;}
.gzh-source-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;}
.gzh-source-heading .gzh-icon-button{width:28px;height:28px;}
.gzh-source-heading .gzh-icon{width:14px;height:14px;}
.gzh-source-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
.gzh-source-tools .gzh-upload{min-width:0;min-height:32px;padding:6px 8px;background:#fff;font-size:11px;}
.gzh-source-tools .gzh-icon{width:14px;height:14px;}
.gzh-source{flex:1 1 auto;width:100%;height:auto;min-height:220px;max-height:none;padding:13px 14px;font-size:14px;line-height:1.72;resize:none;}
.gzh-drop{flex:0 0 auto;padding:8px 10px;border-radius:7px;text-align:center;font-size:11px;}
.gzh-import-report{flex:0 0 auto;font-size:11px;}

.gzh-library-head strong,.gzh-group-title{font-size:12px;}
.gzh-library-head-actions{display:flex;align-items:center;gap:2px;}
.gzh-library-search input{font-size:12px;}
.gzh-library-filters button{font-size:11px;}
.gzh-article-row{padding:9px 8px;}
.gzh-article-row strong{font-size:12px;}
.gzh-article-row small{font-size:10px;}
.gzh-article-actions button,.gzh-library-actions button{font-size:10px;}
.gzh-sidebar-empty{font-size:11px;}

.gzh-inspector-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:9px 10px;}
.gzh-inspector-tab{position:relative;min-width:0;height:36px;gap:5px;padding:0 5px;font-size:11px;}
.gzh-inspector-tab .gzh-icon{width:15px;height:15px;}
.gzh-tab-badge{position:absolute;top:3px;right:3px;min-width:15px;height:15px;border-radius:8px;background:#dc6b32;color:#fff;display:flex;align-items:center;justify-content:center;padding:0 4px;font-size:8px;font-weight:800;font-variant-numeric:tabular-nums;}
.gzh-tab-badge[hidden]{display:none;}
[data-inspector-panel]{display:none;}
body[data-inspector-tab="structure"] [data-inspector-panel="structure"],body[data-inspector-tab="style"] [data-inspector-panel="style"],body[data-inspector-tab="edit"] [data-inspector-panel="edit"],body[data-inspector-tab="more"] [data-inspector-panel="more"]{display:flex;}
.gzh-inspector>.gzh-actions{display:flex;min-height:0;height:100%;padding:0 16px 88px;overflow-y:auto;overscroll-behavior:contain;}
.gzh-inspector-structure{flex:1 1 auto;flex-direction:column;width:100%;min-height:0;padding:16px 0;border:0;background:transparent;}
.gzh-outline-summary{margin:0 0 9px;padding:8px 9px;border-left:3px solid #9fd4f4;background:#f3f8fb;color:#5c6670;font-size:11px;line-height:1.45;font-variant-numeric:tabular-nums;}
.gzh-outline-list{flex:0 1 auto;max-height:44vh;min-height:0;padding-bottom:5px;}
.gzh-outline-row{grid-template-columns:24px minmax(0,1fr) auto;gap:7px;min-height:36px;padding:7px 8px;border-radius:6px;}
.gzh-outline-row.sub{padding-left:27px;}
.gzh-outline-level{font-size:10px;}
.gzh-outline-title{font-size:12px;line-height:1.35;}
.gzh-confidence{padding:3px 5px;font-size:9px;}
.gzh-heading-review{margin-top:10px;padding-top:11px;}
.gzh-heading-review>strong{margin-bottom:7px;font-size:11px;}
.gzh-heading-candidate{grid-template-columns:1fr;gap:7px;padding:9px 8px;border-bottom:1px solid var(--gzh-line);}
.gzh-heading-candidate span{white-space:normal;font-size:12px;line-height:1.45;}
.gzh-heading-candidate div{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;}
.gzh-heading-candidate button{min-height:29px;padding:5px 7px;font-size:10px;}

.gzh-inspector .gzh-group-title{font-size:12px;color:#454c54;}
.gzh-inspector .gzh-slider-label,.gzh-inspector .gzh-fonts-label,.gzh-inspector .gzh-toggles-label{font-size:12px;}
.gzh-inspector .gzh-slider-value{font-size:11px;}
.gzh-inspector .gzh-viewports button,.gzh-inspector .gzh-fonts button,.gzh-inspector .gzh-toggles button{font-size:11px;}

.gzh-selection-toolbar{position:fixed;z-index:220;display:flex;align-items:center;gap:2px;padding:4px;border:1px solid rgba(31,35,40,.13);border-radius:8px;background:rgba(255,255,255,.96);box-shadow:0 9px 28px rgba(31,35,40,.18);backdrop-filter:blur(16px);transform:translate(-50%,calc(-100% - 10px));}
.gzh-selection-toolbar[hidden]{display:none;}
.gzh-selection-toolbar button{appearance:none;width:34px;height:32px;border:0;border-radius:6px;background:transparent;color:#3f464e;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.gzh-selection-toolbar button:hover{background:var(--gzh-accent-soft);color:var(--gzh-accent-ink);}
.gzh-selection-toolbar button:active{transform:scale(.96);}
.gzh-selection-toolbar button strong{font-size:15px;}
.gzh-selection-toolbar .gzh-icon{width:16px;height:16px;}

#gzh-content:focus-within [data-gzh-main-section]:hover,#gzh-content:focus-within [data-gzh-subheading]:hover{outline:2px solid rgba(11,132,229,.18);outline-offset:4px;}

@media(min-width:1241px){
  body[data-focus-mode="true"]{--gzh-left:0px;--gzh-right:0px;}
  body[data-focus-mode="true"] .gzh-toolbar,body[data-focus-mode="true"] .gzh-inspector{display:none;}
  body[data-focus-mode="true"] .gzh-appbar{grid-template-columns:0 minmax(220px,1fr) auto;}
  body[data-focus-mode="true"] .gzh-appbar-brand{visibility:hidden;padding:0;border:0;overflow:hidden;}
  body[data-focus-mode="true"] .gzh-stage{width:720px;}

  body[data-source-mode="true"]{--gzh-left:100vw;--gzh-right:0px;}
  body[data-source-mode="true"] .gzh-appbar{grid-template-columns:0 minmax(220px,1fr) auto;}
  body[data-source-mode="true"] .gzh-appbar-brand{visibility:hidden;padding:0;border:0;overflow:hidden;}
  body[data-source-mode="true"] .gzh-toolbar{display:flex;width:100vw;border:0;background:#f7f8fa;}
  body[data-source-mode="true"] .gzh-toolbar>.gzh-library,body[data-source-mode="true"] .gzh-stage,body[data-source-mode="true"] .gzh-inspector{display:none;}
  body[data-source-mode="true"] .gzh-toolbar>.gzh-actions{display:flex;width:100%;padding:22px max(24px,calc((100vw - 960px)/2)) 26px;overflow:hidden;}
  body[data-source-mode="true"] .gzh-writing-group{width:min(960px,100%);height:100%;margin:0 auto;padding:0;border:0;}
  body[data-source-mode="true"] .gzh-source{min-height:0;padding:22px 24px;border-color:#d8dde2;font-size:16px;line-height:1.8;box-shadow:0 18px 56px rgba(31,35,40,.08);resize:none;}
  body[data-source-mode="true"] .gzh-drop{display:none;}
}

@media(max-width:1240px){
  :root{--gzh-left:100%;--gzh-right:100%;}
  .gzh-stage{width:100%;max-width:720px;}
  .gzh-toolbar>.gzh-library{max-height:none;padding:14px 0 12px;}
  .gzh-toolbar>.gzh-actions{display:flex;padding:0 0 24px;overflow:visible;}
  .gzh-toolbar .gzh-writing-group{min-height:0;padding-top:16px;}
  .gzh-source{height:390px;min-height:300px;resize:vertical;}
  #gzhSourceModeBtn{display:none;}
  .gzh-inspector>.gzh-actions{height:auto;padding:0 0 24px;overflow:visible;}
  .gzh-inspector-structure{padding:16px 0;}
  .gzh-outline-list{max-height:none;}
  .gzh-selection-toolbar{display:none!important;}
}

@media(max-width:620px){
  .gzh-source-tools .gzh-upload{font-size:11px;}
  .gzh-inspector-tab{gap:3px;padding:0 3px;font-size:10px;}
  .gzh-inspector-tab .gzh-icon{width:14px;height:14px;}
}

@media(prefers-reduced-transparency:reduce){
  .gzh-selection-toolbar{background:#fff;backdrop-filter:none;}
}
