.textract-workbench{--textract-gold:#e8c66a;--textract-muted:#c6c0b0;color:#f7f3e6;background:linear-gradient(145deg,rgba(28,26,19,.94),rgba(5,7,10,.97));border:1px solid #e8c66a40;border-radius:24px;padding:clamp(14px,3vw,28px);max-width:100%;overflow:hidden}
.textract-workbench *{box-sizing:border-box}.textract-header h2{font-size:clamp(1.45rem,3vw,2.25rem);line-height:1.18;margin:12px 0}.textract-header p,.textract-help{color:var(--textract-muted);line-height:1.55}.textract-code{color:var(--textract-gold);font-size:.75rem;letter-spacing:.11em;font-weight:800}.textract-status{padding:12px 15px;border:1px solid #e8c66a35;border-radius:14px;background:#e8c66a0c;line-height:1.5}.textract-error,.textract-warning{color:#ffcfac;background:#64321933;border:1px solid #e7aa6d4d;border-radius:12px;padding:12px;line-height:1.5}.textract-functions{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0}.textract-button,.textract-primary{font:inherit;cursor:pointer;color:#f8f0d6;border:1px solid #c9ae6159;background:#ffffff07;border-radius:12px;padding:10px 13px;min-height:42px;text-align:left;line-height:1.35;max-width:100%;overflow-wrap:anywhere}.textract-primary{background:linear-gradient(120deg,#e7ca75,#b29442);color:#19170e;font-weight:750}.textract-button:hover:not(:disabled),.textract-button.is-active,.textract-choice.is-selected{border-color:var(--textract-gold);background:#e8c66a17}.textract-workbench :focus-visible{outline:3px solid #f5d782;outline-offset:3px}.textract-workbench :disabled{opacity:.48;cursor:not-allowed}.textract-layout{display:grid;grid-template-columns:minmax(160px,230px) minmax(0,1fr);gap:18px;align-items:start}.textract-sidebar,.textract-panel,.textract-context{background:#ffffff04;border:1px solid #ffffff15;border-radius:18px;padding:16px;min-width:0}.textract-sidebar{display:grid;gap:10px}.textract-sidebar h3,.textract-panel h3,.textract-context h3{margin:0 0 12px}.textract-choice{display:grid;gap:5px;width:100%}.textract-choice small{color:var(--textract-muted);font-size:.8rem}.textract-content{min-width:0;display:grid;gap:14px}.textract-panel{display:grid;gap:13px}.textract-panel>p,.textract-panel>h3{margin:0}.textract-form{display:grid;gap:15px}.textract-field{display:grid;gap:7px;color:#eee7d3;font-size:.92rem;min-width:0}.textract-field>span{font-weight:650}.textract-field input,.textract-field select,.textract-field textarea{width:100%;min-width:0;background:#07090dbf;color:#fff8e6;border:1px solid #ffffff30;border-radius:10px;font:inherit;padding:11px;line-height:1.4}.textract-field input[type=date],.textract-field select{color-scheme:dark}.textract-field input[type=file]{padding:9px}.textract-field textarea{resize:vertical;min-height:84px}.textract-check{display:flex;align-items:flex-start;gap:10px;line-height:1.45;padding:9px 0}.textract-check input{flex:0 0 auto;width:19px;height:19px;margin-top:1px;accent-color:#d6b65f}.textract-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.textract-schema-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:1px solid #e8c66a33;border-radius:14px;padding:16px;min-width:0}.textract-schema-row legend{color:var(--textract-gold);font-weight:700;padding:0 7px}.textract-record{padding:14px;border:1px solid #ffffff17;border-radius:13px;background:#00000020;min-width:0}.textract-record h4{margin:0 0 8px;color:#f0d993;font-size:1rem}.textract-record p{margin:6px 0;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.textract-history{border:1px solid #ffffff18;border-radius:12px;padding:12px;min-width:0}.textract-history summary{cursor:pointer;color:#e8d79f;font-weight:650;line-height:1.4}.textract-history[open]>:not(summary){margin-top:12px}.textract-original{font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;background:#020408b3;color:#dbdbd2;border:1px solid #ffffff1a;padding:14px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto;max-width:100%;tab-size:4}.textract-link{color:#ead28c;text-decoration:underline;overflow-wrap:anywhere}.textract-empty{color:var(--textract-muted);font-style:italic;line-height:1.5}
@media(max-width:760px){.textract-layout{grid-template-columns:minmax(0,1fr)}.textract-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.textract-sidebar h3,.textract-sidebar>.textract-help,.textract-sidebar>.textract-empty{grid-column:1/-1}.textract-functions{gap:6px}.textract-functions .textract-button{font-size:.8rem;padding:9px}.textract-schema-row,.textract-pair{grid-template-columns:minmax(0,1fr)}}
@media(max-width:420px){.textract-workbench{padding:12px;border-radius:18px}.textract-panel,.textract-sidebar,.textract-context{padding:12px}.textract-sidebar{grid-template-columns:minmax(0,1fr)}.textract-functions .textract-button{flex:1 1 27%;text-align:center}.textract-schema-row{padding:12px}}
