.text-to-image-detail-page .tool-detail-workspace{overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
.text-image-app{color:#111b34;font-size:.72rem}
.text-image-app :where(button,input,select,textarea){font:inherit}
.text-image-hero{display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:16px;min-height:96px;margin:0 -24px 12px;padding:7px 26px 13px;background:radial-gradient(circle at 83% 30%,rgba(92,54,242,.07),transparent 32%),#fff}
.text-image-hero>span{display:grid;width:64px;height:64px;place-items:center;border:1px solid #c5b8ff;border-radius:12px;color:#5634ef;background:#faf8ff}
.text-image-hero>span svg{width:39px;height:39px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.text-image-hero h1{margin:0 0 5px;font-size:1.45rem;line-height:1.14;letter-spacing:-.03em}
.text-image-hero p{margin:0;color:#35435c;font-size:.74rem;line-height:1.45}
.text-image-hero small{display:block;margin-top:4px;color:#5c6a80;font-size:.62rem}
.text-image-hero>button,.text-image-actions button{display:flex;min-height:39px;align-items:center;justify-content:center;gap:7px;padding:8px 14px;border:1px solid #d7deea;border-radius:8px;color:#26334a;background:#fff;font-size:.65rem;font-weight:700;cursor:pointer}
.text-image-hero button svg,.text-image-actions svg,.text-image-primary svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.text-image-workspace{display:grid;grid-template-columns:minmax(360px,.78fr) minmax(0,1.22fr);gap:12px}
.text-image-card,.text-image-info-grid article{border:1px solid #dce2ec;border-radius:11px;background:#fff;box-shadow:0 4px 14px rgba(28,39,66,.035)}
.text-image-controls{padding:14px}
.text-image-copy{position:relative;display:grid;gap:8px}
.text-image-copy b,.text-image-controls h2,.text-image-preview h2,.text-image-info-grid h2{margin:0;color:#152138;font-size:.78rem;line-height:1.35}
.text-image-copy textarea{width:100%;min-height:126px;padding:12px 13px;border:1px solid #d5dce8;border-radius:8px;color:#17223a;background:#fff;font-size:.7rem;line-height:1.65;resize:vertical;outline:none}
.text-image-copy small{position:absolute;right:10px;bottom:9px;color:#607087;font-size:.57rem}
.text-image-controls>section{margin-top:13px;padding-top:13px;border-top:1px solid #e4e8ef}
.text-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 13px;margin-top:10px}
.text-image-grid>label,.text-image-grid fieldset,.text-image-custom label{display:grid;min-width:0;gap:6px;margin:0;padding:0;border:0;color:#2d3a51;font-size:.61rem;font-weight:700}
.text-image-grid legend{margin-bottom:6px}
.text-image-grid select,.text-image-grid input[type=number],.text-image-custom input{width:100%;min-height:39px;padding:8px 10px;border:1px solid #d6deea;border-radius:8px;color:#17223a;background:#fff;outline:none}
.text-image-number{display:grid;grid-template-columns:minmax(0,1fr) 42px;overflow:hidden;border:1px solid #d6deea;border-radius:8px}
.text-image-number input[type=number]{min-width:0;border:0;border-radius:0}
.text-image-number span{display:grid;place-items:center;border-left:1px solid #e1e5ec;color:#536177;font-size:.6rem}
.text-image-color{display:grid;grid-template-columns:43px minmax(0,1fr);overflow:hidden;border:1px solid #d6deea;border-radius:8px}
.text-image-color input[type=color]{width:43px;height:39px;padding:5px;border:0;background:#fff;cursor:pointer}
.text-image-color input[type=text]{min-width:0;padding:8px 9px;border:0;border-left:1px solid #e1e5ec;color:#17223a;text-transform:uppercase;outline:none}
.text-image-align{display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;border:1px solid #d6deea;border-radius:8px}
.text-image-align button{min-height:39px;border:0;color:#617087;background:#fff;font-size:1.15rem;line-height:1;cursor:pointer}
.text-image-align button+button{border-left:1px solid #e1e5ec}
.text-image-align button:nth-child(2){text-align:center}.text-image-align button:nth-child(3){text-align:right}
.text-image-align button.is-active{color:#5634ef;background:#f0edff}
.text-image-custom{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:8px;margin-top:10px}
.text-image-custom[hidden]{display:none}
.text-image-custom span{padding-bottom:10px;color:#617087}
.text-image-primary{display:flex;width:100%;min-height:42px;align-items:center;justify-content:center;gap:8px;margin-top:14px;border:0;border-radius:8px;color:#fff;background:linear-gradient(135deg,#3d21ec,#6738f5);font-weight:800;cursor:pointer}
#textImageStatus{min-height:18px;margin:7px 0 0;color:#607087;font-size:.59rem}
#textImageStatus.is-error{color:#c52d40}
.text-image-preview{display:flex;min-height:100%;flex-direction:column;padding:14px}
.text-image-preview>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.text-image-preview>header small{color:#607087;font-size:.59rem}
.text-image-preview>div:nth-child(2){display:grid;min-height:440px;flex:1;place-items:center;overflow:hidden;border:1px solid #dce2ec;border-radius:9px;background:#f8f9fc}
#textImageCanvas{display:block;max-width:100%;max-height:540px;object-fit:contain;box-shadow:0 8px 26px rgba(24,34,58,.12)}
.text-image-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.text-image-actions button:first-child{color:#fff;border-color:#5a37f2;background:linear-gradient(135deg,#3d21ec,#6738f5)}
.text-image-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:12px}
.text-image-info-grid article{padding:14px}
.text-image-info-grid h2{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.text-image-info-grid h2 span{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;color:#5634ef;background:#efecff}
.text-image-info-grid ol,.text-image-info-grid ul{display:grid;gap:7px;margin:0;padding:0;list-style:none;counter-reset:text-image-info}
.text-image-info-grid li{color:#48566e;font-size:.63rem;line-height:1.45}
.text-image-info-grid ol li{position:relative;padding-left:25px;counter-increment:text-image-info}
.text-image-info-grid ol li::before{position:absolute;left:0;display:grid;width:18px;height:18px;place-items:center;border-radius:6px;color:#5634ef;background:#efecff;font-size:.55rem;font-weight:700;content:counter(text-image-info)}
.text-image-info-grid ul li{position:relative;padding-left:19px}
.text-image-info-grid ul li::before{position:absolute;left:0;color:#08a44c;font-weight:800;content:"✓"}
.text-image-info-grid .is-green{border-color:#d4eadc;background:#f9fffb}.text-image-info-grid .is-green h2{color:#07813d}
@media(max-width:980px){.text-image-workspace{grid-template-columns:1fr}.text-image-preview>div:nth-child(2){min-height:390px}.text-image-info-grid{grid-template-columns:1fr 1fr}.text-image-info-grid article:first-child{grid-column:1/-1}}
@media(max-width:650px){.text-image-hero{margin:0;padding:4px 0 12px;grid-template-columns:52px minmax(0,1fr)}.text-image-hero>span{width:50px;height:50px}.text-image-hero h1{font-size:1.24rem}.text-image-hero>button{grid-column:1/-1;justify-self:end}.text-image-info-grid{grid-template-columns:1fr}.text-image-info-grid article:first-child{grid-column:auto}.text-image-preview>div:nth-child(2){min-height:300px}}
@media(max-width:430px){.text-image-grid,.text-image-actions{grid-template-columns:1fr}.text-image-preview>header{align-items:flex-start;flex-direction:column}}
