.thv2-tool__intro p{max-width:720px;color:#505b6d;font-size:.95rem;line-height:1.55}.thv2-tool__header{padding-bottom:1.15rem}.thv2-tool__meta{padding:.6rem 0}.thv2-tool-blocks{gap:clamp(1.5rem,3vw,2.75rem)}.thv2-workspace--schema{margin-top:1.15rem}.thv2-workspace__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.thv2-field--full{grid-column:1/-1}.thv2-field--small{max-width:220px}.thv2-field input:not([type=checkbox]):not([type=radio]),.thv2-field select{width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--thv2-border-strong);background:#fff}.thv2-field__help{display:block;margin-top:5px;color:var(--thv2-muted);font-size:12px}.thv2-check,.thv2-radio-group label{display:flex;align-items:center;gap:8px;min-height:42px}.thv2-workspace--split .thv2-workspace__body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.thv2-workspace--split .thv2-tool__actions,.thv2-workspace--split .thv2-tool__status{grid-column:1/-1}.thv2-schema-result{min-width:0;padding:14px;border:1px solid var(--thv2-border);background:#f8fafc}.thv2-schema-result__head{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.thv2-schema-result__head span{color:var(--thv2-muted);font-size:12px}.thv2-schema-result__empty{color:var(--thv2-muted);font-size:13px}.thv2-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.thv2-stat-grid>div{display:grid;gap:2px;padding:12px;border-left:3px solid var(--thv2-tool-accent);background:#fff}.thv2-stat-grid strong{font-size:20px}.thv2-stat-grid small{color:var(--thv2-muted);font-size:11px}.thv2-result-list{display:grid;max-height:420px;overflow:auto}.thv2-result-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;min-height:42px;padding:7px;border-bottom:1px solid var(--thv2-border)}.thv2-result-list button{min-height:32px;border:1px solid var(--thv2-border);background:#fff}.thv2-result-list b{color:var(--thv2-tool-accent)}.thv2-inline-result{padding:14px;border:1px solid var(--thv2-border-strong);background:#fff;font-family:monospace;font-size:15px;word-break:break-all}@media(max-width:900px){.thv2-workspace--split .thv2-workspace__body{grid-template-columns:1fr}.thv2-workspace--split .thv2-tool__actions,.thv2-workspace--split .thv2-tool__status{grid-column:auto}}@media(max-width:600px){.thv2-workspace__fields{grid-template-columns:1fr}.thv2-field--full{grid-column:auto}.thv2-field--small{max-width:none}.thv2-workspace--schema .thv2-tool__textarea{min-height:190px}.thv2-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.thv2-result-copy{display:flex;align-items:center;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--thv2-border)}.thv2-result-copy[hidden]{display:none}.thv2-result-copy small{color:var(--thv2-muted);font-size:12px}.thv2-workspace--schema .thv2-tool__status:empty{display:none}.thv2-workspace--schema .thv2-tool__status[data-state="error"]{display:block;margin-top:10px;padding:9px 11px;border-left:3px solid var(--thv2-error);background:#fff4f4}@media(max-width:600px){.thv2-result-copy{align-items:flex-start;flex-direction:column}}
.thv2-tool__textarea--code{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace}.thv2-workspace__notice{grid-column:1/-1;padding:11px 13px;border-left:4px solid #b45309;background:#fff7ed;color:#7c2d12}.thv2-validation-result{padding:18px;border-left:4px solid #15803d;background:#f0fdf4;font-weight:750}.thv2-jwt-result{display:grid;gap:12px}.thv2-jwt-result section{min-width:0;padding:12px;border:1px solid var(--thv2-border);background:#fff}.thv2-jwt-result pre{max-height:280px;overflow:auto;white-space:pre-wrap;word-break:break-word}.thv2-safe-preview{display:grid;gap:8px;margin-top:12px}.thv2-safe-preview iframe{width:100%;min-height:180px;border:1px solid var(--thv2-border);background:#fff}.thv2-result-summary{margin-top:8px;color:var(--thv2-muted);font-size:12px}@media(max-width:600px){.thv2-jwt-result{grid-template-columns:1fr}.thv2-workspace,.thv2-schema-result,.thv2-workspace__fields{min-width:0;max-width:100%}}
.thv2-helper-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;padding:14px;border-bottom:1px solid var(--thv2-border);background:#f8fafc}.thv2-helper-cards article{display:flex;gap:10px;min-width:0;padding:12px;background:#fff;border:1px solid var(--thv2-border)}.thv2-helper-cards .thv2-icon,.thv2-tool__label .thv2-icon{width:19px;height:19px;flex:0 0 auto;color:var(--thv2-tool-accent)}.thv2-helper-cards p{margin:3px 0 0;color:var(--thv2-muted);font-size:12px;line-height:1.45}.thv2-tool__label{display:flex;align-items:center;gap:7px}.thv2-field__help span{display:block;color:#64748b;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.thv2-field__error{display:block;min-height:18px;margin-top:4px;color:#b91c1c;font-size:12px}.thv2-field [aria-invalid="true"]{border-color:#dc2626!important;outline:2px solid rgba(220,38,38,.12)}.thv2-schema-result__head>div{display:grid;gap:2px}.thv2-schema-result__head small{color:var(--thv2-muted);font-weight:400}.thv2-workspace-examples{padding:22px 16px;border-top:1px solid var(--thv2-border);background:#fff}.thv2-workspace-examples__heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:14px}.thv2-workspace-examples__heading span{display:block;margin-bottom:3px;color:var(--thv2-tool-accent);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.thv2-workspace-examples__heading h3{margin:0;font-size:22px}.thv2-workspace-examples__heading p{max-width:560px;margin:0;color:var(--thv2-muted);font-size:13px;line-height:1.5}.thv2-workspace-examples__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.thv2-workspace-example{min-width:0;border:1px solid var(--thv2-border);background:#f8fafc}.thv2-workspace-example>header{padding:13px 14px;border-bottom:1px solid var(--thv2-border);background:#fff}.thv2-workspace-example>header strong{display:block;font-size:14px}.thv2-workspace-example>header p{margin:4px 0 0;color:var(--thv2-muted);font-size:12px;line-height:1.45}.thv2-workspace-example__flow{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);gap:8px;align-items:center;padding:12px}.thv2-workspace-example__flow section{min-width:0}.thv2-workspace-example__flow section>span{display:block;margin-bottom:6px;color:#475569;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.thv2-workspace-example__flow i{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--thv2-border);background:#fff;color:var(--thv2-tool-accent);font-style:normal}.thv2-workspace-example pre{min-width:0;height:150px;overflow:auto;margin:0;padding:10px;background:#fff;border:1px solid var(--thv2-border);white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.5}.thv2-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 16px;border-top:1px solid var(--thv2-border);color:var(--thv2-muted);font-size:12px}.thv2-shortcuts kbd{padding:2px 5px;border:1px solid var(--thv2-border);background:#fff;color:var(--thv2-text)}@media(max-width:900px){.thv2-workspace-examples__grid{grid-template-columns:1fr}.thv2-workspace-examples__heading{align-items:flex-start;flex-direction:column;gap:8px}}@media(max-width:600px){.thv2-helper-cards{grid-template-columns:1fr}.thv2-workspace-example__flow{grid-template-columns:1fr}.thv2-workspace-example__flow i{transform:rotate(90deg);justify-self:center}.thv2-workspace-example pre{height:auto;max-height:180px}.thv2-shortcuts{align-items:flex-start;flex-direction:column}.thv2-workspace__toolbar{align-items:flex-start;gap:8px}}

/* UX Refinement Pack: compact generator workspaces */
.thv2-workspace--generator .thv2-workspace__body{
  display:grid;
  grid-template-columns:minmax(300px,.78fr) minmax(420px,1.22fr);
  grid-template-areas:"fields result" "actions result" "status result";
  gap:12px 16px;
  align-items:start;
}
.thv2-workspace--generator .thv2-workspace__fields{grid-area:fields;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.thv2-workspace--generator .thv2-schema-result{grid-area:result;min-height:250px}
.thv2-workspace--generator .thv2-tool__actions{grid-area:actions;margin:0}
.thv2-workspace--generator .thv2-tool__status{grid-area:status;margin:0;min-height:18px}
.thv2-workspace--generator .thv2-field--small{max-width:none}
.thv2-workspace--generator .thv2-field--type-checkbox{min-width:0}
.thv2-workspace--generator .thv2-result-list{max-height:330px}
.thv2-workspace--compact .thv2-helper-cards{display:none}
.thv2-workspace--compact .thv2-workspace__body{padding-top:12px}
.thv2-field--compact{padding:0;border:0}
.thv2-field--compact .thv2-check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 10px;
  border:1px solid var(--thv2-border);
  background:#fff;
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.thv2-field--compact .thv2-check:hover{border-color:var(--thv2-tool-accent);background:#f8fafc}
.thv2-field--compact .thv2-check:focus-within{border-color:var(--thv2-tool-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--thv2-tool-accent) 16%,transparent)}
.thv2-field--compact .thv2-check .thv2-icon{width:17px;height:17px;color:var(--thv2-tool-accent)}
.thv2-field--compact .thv2-check input{margin:0}
.thv2-field--compact .thv2-check span{font-weight:700;font-size:13px;white-space:nowrap}
.thv2-workspace--compact .thv2-field__help{font-size:11px;line-height:1.35;margin-top:3px}
.thv2-workspace--compact .thv2-field__help span{display:none}
.thv2-workspace--compact .thv2-workspace__toolbar{min-height:42px;padding-top:9px;padding-bottom:9px}
.thv2-workspace--compact .thv2-schema-result{padding:12px}
.thv2-workspace--compact .thv2-schema-result__head{margin-bottom:7px}
.thv2-workspace--compact .thv2-result-copy{margin-top:8px}

@media(max-width:1180px){
  .thv2-workspace--generator .thv2-workspace__body{
    grid-template-columns:minmax(280px,.9fr) minmax(340px,1.1fr);
  }
}
@media(max-width:900px){
  .thv2-workspace--generator .thv2-workspace__body{
    grid-template-columns:1fr;
    grid-template-areas:"fields" "actions" "status" "result";
  }
  .thv2-workspace--generator .thv2-schema-result{min-height:0}
}
@media(max-width:520px){
  .thv2-workspace--generator .thv2-workspace__fields{grid-template-columns:1fr}
  .thv2-field--compact .thv2-check span{white-space:normal}
}

/* Text Tools Final UX Repair */
.thv2-workspace--text-live .thv2-workspace__body,
.thv2-workspace--text-transform .thv2-workspace__body,
.thv2-workspace--text-extractor .thv2-workspace__body,
.thv2-workspace--text-form .thv2-workspace__body{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
  grid-template-areas:"fields result" "actions result" "status result";
  gap:12px 16px;
  align-items:start;
}
.thv2-workspace--text-live .thv2-workspace__fields,
.thv2-workspace--text-transform .thv2-workspace__fields,
.thv2-workspace--text-extractor .thv2-workspace__fields,
.thv2-workspace--text-form .thv2-workspace__fields{grid-area:fields}
.thv2-workspace--text-live .thv2-schema-result,
.thv2-workspace--text-transform .thv2-schema-result,
.thv2-workspace--text-extractor .thv2-schema-result,
.thv2-workspace--text-form .thv2-schema-result{grid-area:result;min-height:268px}
.thv2-workspace--text-live .thv2-tool__actions,
.thv2-workspace--text-transform .thv2-tool__actions,
.thv2-workspace--text-extractor .thv2-tool__actions,
.thv2-workspace--text-form .thv2-tool__actions{grid-area:actions;margin:0}
.thv2-workspace--text-live .thv2-tool__status,
.thv2-workspace--text-transform .thv2-tool__status,
.thv2-workspace--text-extractor .thv2-tool__status,
.thv2-workspace--text-form .thv2-tool__status{grid-area:status;margin:0;min-height:18px}
.thv2-workspace--text-live [data-thv2-process]{display:none}
.thv2-workspace--text-live .thv2-schema-result{min-height:210px}
.thv2-workspace--text-live .thv2-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.thv2-workspace--text-form .thv2-workspace__fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.thv2-workspace--text-form .thv2-field[data-field-key="source"]{grid-column:1/-1}
.thv2-workspace--text-form .thv2-field--small{max-width:none}
.thv2-workspace--text-extractor .thv2-result-list{max-height:360px}
.thv2-workspace--text-inline .thv2-workspace__body{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.65fr);gap:12px 16px;align-items:start}
.thv2-workspace--text-inline .thv2-tool__actions,.thv2-workspace--text-inline .thv2-tool__status{grid-column:1/-1;margin:0}
.thv2-workspace--text-inline .thv2-schema-result{min-height:0}
.thv2-workspace--text-live .thv2-tool__textarea,
.thv2-workspace--text-transform .thv2-tool__textarea,
.thv2-workspace--text-extractor .thv2-tool__textarea,
.thv2-workspace--text-form .thv2-tool__textarea{min-height:230px}
.thv2-workspace--text-live .thv2-helper-cards,
.thv2-workspace--text-transform .thv2-helper-cards,
.thv2-workspace--text-extractor .thv2-helper-cards,
.thv2-workspace--text-form .thv2-helper-cards,
.thv2-workspace--text-inline .thv2-helper-cards{display:none}
.thv2-workspace--text-live .thv2-workspace__body,
.thv2-workspace--text-transform .thv2-workspace__body,
.thv2-workspace--text-extractor .thv2-workspace__body,
.thv2-workspace--text-form .thv2-workspace__body,
.thv2-workspace--text-inline .thv2-workspace__body{padding-top:12px}
.thv2-workspace--text-live .thv2-schema-result__empty{display:none}
.thv2-workspace--text-live .thv2-result-copy{display:none!important}
.thv2-workspace--text-form .thv2-field__help span{display:none}
.thv2-workspace--text-form .thv2-field__help{line-height:1.35}
@media(max-width:1024px){
  .thv2-workspace--text-live .thv2-workspace__body,
  .thv2-workspace--text-transform .thv2-workspace__body,
  .thv2-workspace--text-extractor .thv2-workspace__body,
  .thv2-workspace--text-form .thv2-workspace__body,
  .thv2-workspace--text-inline .thv2-workspace__body{
    grid-template-columns:1fr;
    grid-template-areas:"fields" "actions" "status" "result";
  }
  .thv2-workspace--text-inline .thv2-tool__actions,.thv2-workspace--text-inline .thv2-tool__status{grid-column:auto}
  .thv2-workspace--text-live .thv2-schema-result,
  .thv2-workspace--text-transform .thv2-schema-result,
  .thv2-workspace--text-extractor .thv2-schema-result,
  .thv2-workspace--text-form .thv2-schema-result{min-height:0}
}
@media(max-width:600px){
  .thv2-workspace--text-form .thv2-workspace__fields{grid-template-columns:1fr}
  .thv2-workspace--text-form .thv2-field[data-field-key="source"]{grid-column:auto}
  .thv2-workspace--text-live .thv2-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .thv2-workspace--text-live .thv2-tool__textarea,
  .thv2-workspace--text-transform .thv2-tool__textarea,
  .thv2-workspace--text-extractor .thv2-tool__textarea,
  .thv2-workspace--text-form .thv2-tool__textarea{min-height:180px}
}
