/* Text utilities: intentionally isolated from existing indexed tool styles. */
.text-lab-hero{padding-top:36px;padding-bottom:25px}
.text-lab-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.10em;text-transform:uppercase;color:#7555b3}
.text-lab-eyebrow:before{content:"";width:7px;height:7px;border-radius:50%;background:#9b7af1;box-shadow:0 0 0 4px #efe8ff}
.text-lab-hero h1{font-size:clamp(2.15rem,5vw,3.7rem);font-weight:780;line-height:1.06;letter-spacing:-.045em;margin:11px 0 9px;color:#302d3a}
.text-lab-hero h1 em{font-family:Georgia,serif;font-weight:500;color:#7856bc}
.text-lab-hero p{font-size:clamp(.89rem,1.5vw,1rem);line-height:1.65;color:#665f71;max-width:670px;margin:0}
.text-lab-crumbs{display:flex;gap:10px;align-items:center;margin-top:15px;font-size:12px;color:#797382}
.text-lab-crumbs a{color:#67519a;text-underline-offset:3px}
.text-lab-workspace{padding-bottom:48px}
.text-lab-shell{border-radius:22px;border:1px solid #e4deea;background:#fff;box-shadow:0 15px 48px rgba(57,40,83,.055);overflow:hidden}
.text-lab-shell-header{padding:18px 24px;border-bottom:1px solid #eeeaf3;background:linear-gradient(105deg,#fbfaff,#fff)}
.text-lab-shell-header>div{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.text-lab-shell-title{font-size:13px;font-weight:780;color:#4b405b;letter-spacing:-.01em}
.text-lab-private{display:inline-flex;align-items:center;gap:6px;color:#517b63;font-size:11px;font-weight:700}
.text-lab-private:before{content:"";height:6px;width:6px;border-radius:50%;background:#61ba83}
.text-lab-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.text-lab-panel{padding:24px;min-width:0}
.text-lab-panel+.text-lab-panel{border-left:1px solid #eeeaf3;background:#fcfbff}
.text-lab-label-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:11px}
.text-lab-label{font-size:12px;font-weight:780;color:#463b56}
.text-lab-hint{font-size:11px;color:#817a8a}
.text-lab-textarea,.text-lab-input,.text-lab-select{font:inherit;color:#292432;border:1px solid #ded7e6;background:#fff;border-radius:14px}
.text-lab-textarea{width:100%;resize:vertical;min-height:220px;line-height:1.64;padding:17px 18px;font-size:15px;outline:none;transition:border-color .18s,box-shadow .18s}
.text-lab-textarea::placeholder{color:#aaa2b7;opacity:1}
.text-lab-textarea:focus,.text-lab-input:focus,.text-lab-select:focus{border-color:#9771dd;box-shadow:0 0 0 4px rgba(146,99,221,.10);outline:0}
.text-lab-textarea[readonly]{background:#faf9fd;color:#3e3750}
.text-lab-input,.text-lab-select{padding:11px 12px;width:100%;min-height:43px;font-size:14px}
.text-lab-mini{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}
.text-lab-mini-note{font-size:12px;color:#807989;margin-right:auto}
.text-lab-btn{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;border-radius:12px;padding:10px 17px;font:inherit;font-size:12.5px;font-weight:780;text-decoration:none;white-space:nowrap;border:1px solid transparent;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease}
.text-lab-btn:focus-visible,.text-lab-option input:focus-visible{outline:3px solid #9d78ed;outline-offset:3px}
.text-lab-btn:not(:disabled):hover{transform:translateY(-2px)}
.text-lab-btn:not(:disabled):active{transform:translateY(0) scale(.985)}
.text-lab-btn-primary{background:linear-gradient(115deg,#6945b5 0%,#8c5de1 53%,#7052c5 100%);color:#fff;box-shadow:0 7px 18px rgba(110,67,181,.19)}
.text-lab-btn-primary:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.2) 46%,transparent 67%);transform:translateX(-120%);transition:transform .65s ease;pointer-events:none;z-index:-1}
.text-lab-btn-primary:not(:disabled):hover:before{transform:translateX(120%)}
.text-lab-btn-primary:not(:disabled):hover{box-shadow:0 10px 22px rgba(107,68,183,.25)}
.text-lab-btn-soft{background:#f3effb;color:#67489b;border-color:#e8e0f4}
.text-lab-btn-soft:hover{background:#ece5f8}
.text-lab-btn-light{background:#fff;color:#625b70;border-color:#e3deea}
.text-lab-btn-light:hover{border-color:#bba4dc;background:#fbf9ff}
.text-lab-btn:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}
.text-lab-btn.is-copied:after{content:" ✓"}
.text-lab-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}
.text-lab-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:15px}
.text-lab-control label{display:block;font-size:12px;font-weight:750;color:#5b516a;margin-bottom:7px}
.text-lab-muted,.text-lab-status{font-size:12px;line-height:1.5;color:#807b87}
.text-lab-status{min-height:20px;margin-top:11px}
.text-lab-status.is-error{color:#aa3156}
.text-lab-option{display:inline-flex;align-items:center;gap:9px;font-size:12px;color:#544b62;cursor:pointer}
.text-lab-option input{width:16px;height:16px;accent-color:#7650c5;cursor:pointer}
.text-lab-options{display:flex;gap:12px 18px;flex-wrap:wrap;margin:15px 0}
.text-lab-option-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.text-lab-option-list .text-lab-option{padding:10px 12px;background:#faf8fe;border:1px solid #eee8f5;border-radius:11px}
.text-lab-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.text-lab-kpi{padding:15px;background:#faf9fe;border:1px solid #eeeaf4;border-radius:13px;min-width:0}
.text-lab-kpi strong{display:block;color:#47345f;font-weight:820;font-size:clamp(1.2rem,2.9vw,2rem);font-variant-numeric:tabular-nums;letter-spacing:-.05em;line-height:1.25}
.text-lab-kpi span{display:block;margin-top:4px;font-size:11px;color:#706b79;line-height:1.4}
.text-lab-kpi.main{background:linear-gradient(145deg,#f1e8ff,#faf7ff);border-color:#ddd0f4}
.text-lab-kpi.main strong{color:#6f4ab6}
.text-lab-separator{height:1px;background:#eeebf2;margin:17px 0}
.text-lab-keywords{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:10px;min-height:27px}
.text-lab-keyword{background:#f1eafa;border:1px solid #e6dcf4;color:#654990;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:680}
.text-lab-fineprint{font-size:11px;color:#87808f;line-height:1.55;margin-top:10px}
.text-lab-diff-results{min-height:170px;max-height:390px;overflow:auto;border:1px solid #e8e2ed;border-radius:13px;background:#fff;margin-top:10px}
.text-lab-diff-line{display:grid;grid-template-columns:30px minmax(0,1fr);font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;border-bottom:1px solid #f3f0f5}
.text-lab-diff-line:last-child{border-bottom:0}
.text-lab-diff-sign{text-align:center;padding:7px 4px;font-weight:750;border-right:1px solid #ece8f1}
.text-lab-diff-text{padding:7px 12px;min-width:0}
.text-lab-diff-line.type-add{background:#eaf8ef;color:#205f3d}
.text-lab-diff-line.type-remove{background:#fff0f0;color:#934547}
.text-lab-diff-line.type-same{background:#fff;color:#696273}
.text-lab-diff-overview{display:flex;gap:13px;flex-wrap:wrap;margin-top:10px;font-size:11px}
.text-lab-diff-overview span{background:#f8f7fa;border-radius:8px;padding:6px 10px;color:#665e72}
.text-lab-diff-overview b{font-variant-numeric:tabular-nums}
.text-lab-detail{max-width:890px;padding-top:10px;padding-bottom:50px}
.text-lab-detail h2{font-size:clamp(1.55rem,2.7vw,2.15rem);letter-spacing:-.035em;margin:31px 0 12px}
.text-lab-detail p,.text-lab-detail li{font-size:14px;line-height:1.85;color:#625d6d}
.text-lab-detail ol{padding-left:20px}
.text-lab-detail details{padding:15px 0;border-bottom:1px solid #e6e2e9}
.text-lab-detail summary{font-size:14px;cursor:pointer;color:#443b50;font-weight:750}
.text-lab-detail details p{margin:9px 0 0}
.text-lab-more{padding-bottom:70px}
.text-lab-more h2{font-size:21px;margin-bottom:16px}
.text-lab-related{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.text-lab-related a{background:#fff;border:1px solid #e5e0eb;padding:17px 18px;border-radius:13px;text-decoration:none;color:#463750;font-size:13px;font-weight:720;display:flex;justify-content:space-between;gap:12px;transition:border-color .2s,transform .2s}
.text-lab-related a:hover{border-color:#a889db;transform:translateY(-2px)}
@media(max-width:800px){.text-lab-grid{grid-template-columns:1fr}.text-lab-panel+.text-lab-panel{border-left:0;border-top:1px solid #eeebf3}.text-lab-textarea{min-height:170px}.text-lab-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:530px){.text-lab-hero{padding-top:25px}.text-lab-hero h1{font-size:2.25rem}.text-lab-panel{padding:17px}.text-lab-shell-header{padding:16px 17px}.text-lab-controls,.text-lab-option-list{grid-template-columns:1fr}.text-lab-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.text-lab-kpi{padding:13px}.text-lab-kpi strong{font-size:1.5rem}.text-lab-related{grid-template-columns:1fr}.text-lab-btn{flex:1}.text-lab-mini .text-lab-btn{flex:0}.text-lab-actions{gap:7px}}
@media(prefers-reduced-motion:reduce){.text-lab-btn,.text-lab-btn:before,.text-lab-related a,.text-lab-textarea{transition:none!important}.text-lab-btn:not(:disabled):hover,.text-lab-related a:hover{transform:none}}
