.properties:has(.smart-tplo-panel){display:flex;flex-direction:column;overflow:hidden;min-height:0}
.right-panel-body:has(>.smart-tplo-panel){flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.smart-tplo-panel{display:flex;flex:1;flex-direction:column;gap:12px;min-width:0;min-height:0;height:100%;overflow:hidden;box-sizing:border-box;color:#e5edf7;font:12px/1.5 "Microsoft YaHei","PingFang SC",sans-serif}
.smart-tplo-heading{display:grid;gap:12px;flex:none;min-width:0;overflow:hidden}
.smart-tplo-prompt{margin:0;color:#e5edf7;line-height:1.5;overflow-wrap:anywhere}
.smart-tplo-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#53647e #20262c}
.smart-tplo-bottom{flex:none;background:#1e242b}
.smart-tplo-panel header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.smart-tplo-panel h2{margin:0;font-size:16px;font-weight:600}
.smart-tplo-panel header>span{color:#b4c6de;font-variant-numeric:tabular-nums}
.smart-tplo-steps{display:grid;grid-template-columns:repeat(6,minmax(54px,1fr));gap:4px;list-style:none;padding:0;margin:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#53647e #20262c}
.smart-tplo-steps li{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;color:#b4c6de;font-size:10px;white-space:nowrap}
.smart-tplo-steps li>span{display:grid;place-items:center;border:1px solid #61718a;border-radius:50%;width:22px;height:22px;font-size:12px}
.smart-tplo-steps [aria-current]{color:#fff;font-weight:600}
.smart-tplo-steps [aria-current]>span{background:#405ee7;border-color:#7891ff}
.smart-tplo-steps .complete>span{color:#b5d5ff;border-color:#729bc9}
.smart-tplo-example{margin:0;border-block:1px solid #40516a;padding:8px 0}
.smart-tplo-example summary{cursor:pointer;color:#c5d5ed}
.smart-tplo-panel .smart-tplo-example-open{display:block;width:100%;height:min(34dvh,320px);padding:0;margin-top:8px;border:0;border-radius:0;background:#101519;cursor:zoom-in}
.smart-tplo-panel .smart-tplo-example-tall .smart-tplo-example-open{height:clamp(240px,calc(100dvh - 420px),560px)}
.smart-tplo-example img{display:block;width:100%;height:100%;object-fit:contain}
.smart-tplo-content{display:flex;flex-direction:column;gap:12px;padding-block:12px}
.smart-tplo-line-properties{border-top:1px solid #40516a;padding-block:8px}
.smart-tplo-line-properties>summary{cursor:pointer;color:#c5d5ed}
.smart-tplo-line-editor{padding-top:12px}
.smart-tplo-line-editor .property-fields>h3{display:none}
.smart-tplo-content p{margin:0;overflow-wrap:anywhere}
.smart-tplo-panel .smart-tplo-error{color:#ffca86}
.smart-tplo-panel label{display:flex;flex-direction:column;gap:5px;color:#c5d5ed;font-size:12px}
.smart-tplo-panel input[type=number]{box-sizing:border-box;min-width:0;width:100%;height:34px;background:#202833;color:#eef5ff;border:1px solid #53647e;border-radius:3px;padding:0 9px;font:inherit;font-variant-numeric:tabular-nums}
.smart-tplo-panel input[type=range]{width:100%;accent-color:#5d82ff}
.smart-tplo-measures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;font-variant-numeric:tabular-nums}
.smart-tplo-measures:empty{display:none}
.smart-tplo-measures>div{display:grid;grid-template-rows:auto auto;align-content:start;gap:3px;min-width:0;padding:8px 10px;border:1px solid #334155;border-radius:4px;background:#202833}
.smart-tplo-measures dt{min-width:0;color:#aebed3;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.smart-tplo-measures dd{margin:0;color:#eef5ff;font-size:13px;font-weight:600;line-height:1.35;white-space:nowrap;font-variant-numeric:tabular-nums}
.smart-tplo-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.smart-tplo-label-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:8px}
.smart-tplo-label-controls>button{margin-bottom:0}
.smart-tplo-panel button{display:inline-flex;justify-content:center;align-items:center;gap:5px;min-width:0;height:32px;padding:0 6px;border:1px solid #53647e;border-radius:5px;background:#252e3c;color:#e5edf7;font:500 12px/1 "Microsoft YaHei","PingFang SC",sans-serif;cursor:pointer;white-space:nowrap}
.smart-tplo-panel button:hover:not(:disabled){background:#34435b}
.smart-tplo-panel button.smart-primary,.smart-tplo-panel button.active{background:#405ee7;border-color:#405ee7;color:white}
.smart-tplo-panel button:disabled{opacity:.45;cursor:not-allowed}
.smart-tplo-panel :focus-visible{outline:2px solid #8cb5ff;outline-offset:2px}
.smart-tplo-panel ::selection{background:#315dcc;color:#fff}
.smart-tplo-panel .flat-icon{width:15px;height:15px;flex:none}
.smart-tplo-cut-actions,.smart-tplo-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.smart-tplo-navigation{padding-block:8px;border-top:1px solid #40516a}
.smart-tplo-group-actions{display:flex;flex-wrap:wrap;gap:6px}
.smart-tplo-group-actions button{flex:1;font-size:11px}
.smart-tplo-group-actions [data-smart-action=delete]{color:#ffb7b7;border-color:#86565d}
.smart-tplo-control{cursor:move}
[data-active-tool=smart-tplo]{cursor:crosshair}
.smart-tplo-return{width:100%;min-height:32px;margin-bottom:12px;border:1px solid #53647e;border-radius:5px;background:#252e3c;color:#e5edf7;font:inherit;cursor:pointer}
.smart-tplo-layer-group{border-block:1px solid #40516a;margin-block:8px}
.smart-tplo-layer-header{display:flex;align-items:center;gap:4px;min-height:44px;padding-block:6px}
.smart-tplo-layer-header button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:28px;min-height:30px;padding:4px;border:0;border-radius:4px;background:transparent;color:#c5d5ed;font:500 11px/1.4 "Microsoft YaHei","PingFang SC",sans-serif;cursor:pointer}
.smart-tplo-layer-header button:hover:not(:disabled){background:#34435b}
.smart-tplo-layer-header button:disabled{opacity:.45;cursor:not-allowed}
.smart-tplo-layer-header button[data-smart-open]{flex:1;min-width:0;align-items:flex-start;flex-direction:column;color:#e5edf7}
.smart-tplo-layer-header [data-smart-open] span{color:#b4c6de;font-size:10px;font-weight:400}
.smart-tplo-layer-header [data-smart-group-delete]{color:#ffb7b7}
.smart-tplo-layer-header .flat-icon{width:15px;height:15px;flex:none}
.smart-tplo-layer-header [data-smart-expand][aria-expanded=true] .flat-icon{transform:rotate(-90deg)}
.smart-tplo-layer-header [data-smart-expand][aria-expanded=false] .flat-icon{transform:rotate(180deg)}
.smart-tplo-layer-children{padding-left:12px}
.smart-tplo-layer-children[hidden]{display:none}
.smart-tplo-layer-children .layer-info{min-width:0;overflow-wrap:anywhere}
.workbench .smart-tplo-layer-children .layer-row--summary-compact{grid-template-columns:18px 156px!important;justify-content:space-between;min-height:40px;padding-block:6px}
.smart-tplo-layer-children .layer-row--summary-compact>[data-layer-actions]{grid-column:2}
.smart-tplo-layer-empty{margin:8px;color:#b4c6de;font-size:11px}
.smart-tplo-layer-header :focus-visible,.smart-tplo-return:focus-visible{outline:2px solid #8cb5ff;outline-offset:2px}
.smart-tplo-image-dialog{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:12px;border:1px solid #53647e;border-radius:6px;background:#1e242b;color:#e5edf7}
.smart-tplo-image-dialog::backdrop{background:rgba(0,0,0,.75)}
.smart-tplo-image-dialog header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:12px}
.smart-tplo-image-dialog button{padding:6px 12px;background:#252e3c;border:1px solid #53647e;border-radius:4px;color:#e5edf7;cursor:pointer;font:inherit}
.smart-tplo-image-dialog img{display:block;max-width:100%;height:calc(100dvh - 120px);object-fit:contain}
@media(max-width:900px){.smart-tplo-panel{gap:10px}}
@media(max-width:560px){.smart-tplo-panel{font-size:11px}.smart-tplo-steps li{font-size:9px}.smart-tplo-cut-actions button{font-size:10px;gap:3px;padding-inline:3px}}
