.xxt-wrap{background:var(--surface,#fff);border:1px solid var(--border,#e2e8f0);border-radius:12px;overflow:hidden;margin-bottom:2rem;box-shadow:0 1px 3px rgba(0,0,0,0.06);}
.xxt-toolbar{background:var(--surface-muted,#f8fafc);border-bottom:1px solid var(--border,#e2e8f0);padding:0.75rem 1rem;}
.xxt-toolbar-row{display:flex;flex-direction:column;gap:0.75rem;}
.xxt-options{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem 1rem;}
.xxt-option{display:inline-flex;align-items:center;gap:0.35rem;}
.xxt-option-label{font-size:0.8125rem;font-weight:500;color:var(--text-muted,#64748b);}
.xxt-select{padding:0.4rem 0.6rem;font-size:0.875rem;border:1px solid var(--border,#e2e8f0);border-radius:8px;background:var(--surface,#fff);color:var(--text-main,#334155);accent-color:var(--primary,#2563eb);}
.xxt-check{display:inline-flex;align-items:center;gap:0.35rem;font-size:0.8125rem;font-weight:500;color:var(--text-main,#334155);cursor:pointer;-webkit-tap-highlight-color:transparent;}
.xxt-check input{width:1rem;height:1rem;accent-color:var(--primary,#2563eb);}
.xxt-actions{display:flex;flex-wrap:wrap;gap:0.5rem;}
.xxt-btn{padding:0.5rem 1rem;font-size:0.875rem;font-weight:600;border-radius:8px;cursor:pointer;transition:background 0.2s,border-color 0.2s,color 0.2s;-webkit-tap-highlight-color:transparent;border:1px solid transparent;}
.xxt-btn-primary{color:#fff;background:var(--primary,#2563eb);border-color:var(--primary,#2563eb);}
.xxt-btn-primary:hover:not(:disabled){background:var(--primary-dark,#1d4ed8);border-color:var(--primary-dark,#1d4ed8);}
.xxt-btn-ghost{color:var(--text-main,#334155);background:var(--surface,#fff);border-color:var(--border,#e2e8f0);}
.xxt-btn-ghost:hover:not(:disabled){background:var(--surface-muted,#f1f5f9);border-color:var(--text-muted,#cbd5e1);}
.xxt-segment{display:flex;border-bottom:1px solid var(--border,#e2e8f0);background:var(--surface-muted,#f8fafc);}
.xxt-seg{flex:1;padding:0.65rem 1rem;font-size:0.875rem;font-weight:600;color:var(--text-muted,#64748b);background:transparent;border:none;border-bottom:3px solid transparent;cursor:pointer;transition:color 0.2s,border-color 0.2s,background 0.2s;-webkit-tap-highlight-color:transparent;}
.xxt-seg:hover{color:var(--text-main,#334155);}
.xxt-seg.xxt-seg-active{color:var(--primary,#2563eb);border-bottom-color:var(--primary,#2563eb);background:var(--surface,#fff);}
.xxt-panes{display:flex;flex-direction:column;min-height:240px;}
.xxt-pane{display:none;flex-direction:column;min-height:0;}
.xxt-pane.xxt-pane-active{display:flex;}
.xxt-pane-head{display:flex;align-items:center;padding:0.5rem 1rem;font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-muted,#64748b);background:var(--surface-muted,#f8fafc);border-bottom:1px solid var(--border,#e2e8f0);}
.xxt-editor{min-height:300px;width:100%;}
.xxt-stats{font-size:0.75rem;color:var(--text-muted,#64748b);padding:0.35rem 1rem;border-top:1px solid var(--border,#e2e8f0);background:var(--surface-muted,#f8fafc);}
.xxt-ref{border-top:1px solid var(--border,#e2e8f0);}
.xxt-ref-summary{padding:0.65rem 1rem;font-size:0.875rem;font-weight:600;color:var(--text-main,#334155);cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent;}
.xxt-ref-summary::-webkit-details-marker{display:none;}
.xxt-ref-body{display:flex;flex-wrap:wrap;gap:1rem 2rem;padding:1rem;background:var(--surface-muted,#f8fafc);font-size:0.8125rem;line-height:1.6;}
.xxt-ref-col{flex:1;min-width:200px;}
.xxt-ref-col strong{display:block;margin-bottom:0.25rem;color:var(--text-main,#334155);}
.xxt-ref-col code{display:block;margin:0.2rem 0;padding:0.2rem 0.4rem;background:var(--surface,#fff);border:1px solid var(--border,#e2e8f0);border-radius:4px;font-size:0.75rem;overflow-x:auto;}
@media (min-width:768px){
.xxt-segment{display:none;}
.xxt-panes{display:grid;grid-template-columns:1fr 1fr 1fr;min-height:320px;}
.xxt-pane{display:flex;border-right:1px solid var(--border,#e2e8f0);}
.xxt-pane:last-child{border-right:none;}
.xxt-editor{min-height:380px;}}
@media (min-width:992px){.xxt-editor{min-height:460px;}}
.ace-xcode .ace_content .ace_tag{color:#2d5ada;}
.ace-xcode .ace_content .ace_string{color:#cc5b5c;}
.ace-xcode .ace_content .ace_constant.ace_numeric{color:#008100;}
.ace-xcode .ace_content .ace_keyword{color:#0b7500;}
