/* Small Text Generator (AT217): standard tool skin. Scoped to .stx-*, used only by this tool. */
.stx-wrap{width:100%;padding:10px 0 34px}
.stx-wrap h1#title{font-size:32px;font-weight:800;color:#1a202c;text-align:center;margin:6px 0 0}
.stx-intro{text-align:center;color:#5b6675;font-size:15px;line-height:1.6;margin:12px auto 14px;max-width:820px}
.stx-trust{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin:0 0 18px;padding:0}
.stx-trust li{display:inline-flex;align-items:center;gap:6px;color:#334155;font-size:14px;font-weight:600}
.stx-trust svg{color:#16a34a;flex:none}
.stx-panel{background:linear-gradient(135deg,#fff7f3,#ffeee6);border:1px solid #ffe2d5;border-radius:16px;box-shadow:0 6px 24px rgba(250,76,16,.06);padding:18px}
.stx-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"in res" "opt res";grid-template-rows:auto 1fr;gap:18px;align-items:start}
.stx-incard{grid-area:in}.stx-optcard{grid-area:opt}.stx-res{grid-area:res}
.stx-card{background:#fff;border:1px solid #f1e4dd;border-radius:14px;padding:20px;min-width:0;box-shadow:0 1px 2px rgba(120,50,10,.04),0 6px 18px rgba(120,50,10,.05)}
.stx-h2{font-size:20px;font-weight:800;color:#1a202c;margin:0}
.stx-h3{font-size:15px;font-weight:700;color:#1a202c;margin:0}
.stx-modes{display:flex;gap:4px;padding:4px;margin:0 0 18px;background:#fff7f3;border:1px solid #f1d5c8;border-radius:12px}
.stx-mode{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:0 10px;border:0;border-radius:9px;background:none;color:#7c2d12;font-weight:700;font-size:14.5px;cursor:pointer;touch-action:manipulation;line-height:1.2}
.stx-mode b{font-weight:700;font-size:13px;opacity:.85}
.stx-mode[aria-selected=true]{background:#c93d0c;color:#fff}
.stx-mode:not([aria-selected=true]):hover{background:#fff}
.stx-lbl{display:block;font-size:15px;font-weight:700;color:#1a202c;margin:0 0 6px}
.stx-in{width:100%;min-height:48px;border:1px solid #d5dde6;border-radius:10px;padding:10px 12px;font-size:16px;color:#1a202c;background:#fff;outline:none;box-sizing:border-box}
.stx-in:focus{border-color:#fa4c10;box-shadow:0 0 0 3px rgba(250,76,16,.14)}
.stx-ta{min-height:120px;resize:vertical;font-size:18px;line-height:1.5}
.stx-inmeta{display:flex;justify-content:flex-end;min-height:20px;margin:4px 0 0;color:#64748b;font-size:13px;font-variant-numeric:tabular-nums}
.stx-help{color:#64748b;font-size:13.5px;margin:6px 0 0;line-height:1.5}
.stx-try{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 0}
.stx-try>span{color:#64748b;font-size:13.5px;font-weight:600}
.stx-chip{min-height:44px;padding:0 14px;border:1px solid #f1d5c8;border-radius:999px;background:#fff;color:#9a3412;font-weight:600;font-size:14px;cursor:pointer;touch-action:manipulation}
.stx-chip:hover{background:#fff7f3}
.stx-privacy{display:flex;align-items:center;gap:8px;margin:16px 0 0;color:#64748b;font-size:13.5px}
.stx-privacy svg{flex:none;color:#16a34a}
/* options */
.stx-optcard .stx-h2{margin:0 0 14px}
.stx-opt{margin:0 0 14px}
.stx-mt{margin-top:14px}
.stx-optl{display:block;font-size:13.5px;font-weight:700;color:#475569;margin:0 0 6px}
.stx-seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.stx-seg input,.stx-check input{position:absolute;opacity:0;width:1px;height:1px}
.stx-seg span{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:44px;padding:6px 12px;border:1px solid #d5dde6;border-radius:10px;background:#fff;color:#475569;font-size:13px;font-weight:600;cursor:pointer;line-height:1.3}
.stx-seg b{font-size:17px;color:#1a202c;font-weight:600}
.stx-seg input:checked+span{border-color:#c93d0c;background:#fff7f3;color:#7c2d12;box-shadow:inset 0 0 0 1px #c93d0c}
.stx-seg input:focus-visible+span,.stx-check input:focus-visible+span{outline:3px solid rgba(250,76,16,.35);outline-offset:2px}
.stx-check{position:relative;display:block;margin:10px 0 0;cursor:pointer}
.stx-check span{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14.5px;font-weight:600;color:#1a202c;line-height:1.35}
.stx-check span:before{content:"";flex:none;width:22px;height:22px;border:2px solid #94a3b8;border-radius:6px;background:#fff center/14px no-repeat}
.stx-check input:checked+span:before{border-color:#c93d0c;background-color:#c93d0c;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")}
.stx-checkhelp{margin:0 0 4px;padding-inline-start:32px}
.stx-sel{min-height:44px;padding:6px 10px}
/* results */
.stx-res-h{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 6px;min-height:44px}
.stx-res-h .stx-h2{margin:0 auto 0 0}
[dir=rtl] .stx-res-h .stx-h2{margin:0 0 0 auto}
.stx-example{margin:0 0 4px;color:#9a3412;font-size:13.5px;font-weight:600}
.stx-blk{padding:14px 0;border-top:1px solid #f1e4dd}
.stx-blk:first-child{border-top:0;padding-top:6px}
.stx-bh{display:flex;align-items:baseline;gap:10px;margin:0 0 8px}
.stx-sample{color:#94a3b8;font-size:15px}
.stx-outrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
.stx-outbox{display:block;min-height:52px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fbfcfd;color:#1a202c;font-size:22px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap;user-select:all;-webkit-user-select:all}
.is-demo .stx-outbox{color:#64748b;background:#fff;border-style:dashed}
.stx-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:1.5}
.stx-btncol{display:flex;flex-direction:column;gap:8px}
.stx-m{text-decoration:underline dotted #dc2626 2px;text-underline-offset:4px}
.stx-l{background:#fef3c7;border-radius:4px;box-shadow:0 0 0 1px #f59e0b}
.stx-n{background:#dbeafe;border-radius:4px;box-shadow:0 0 0 1px #3b82f6}
.stx-plain{color:#64748b;font-size:17px}
.stx-meta{list-style:none;margin:8px 0 0;padding:0;font-size:13.5px;line-height:1.5;color:#475569}
.stx-meta li{margin:3px 0 0}
.stx-meta .stx-ok{color:#166534}
.stx-meta .stx-warn{color:#92400e}
.stx-len{color:#64748b;font-variant-numeric:tabular-nums}
.stx-fit{color:#166534;font-weight:600}.stx-bad{color:#b91c1c;font-weight:700}
.stx-legend{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;margin:4px 0 0;padding:10px 0 0;border-top:1px solid #f1e4dd;font-size:13px;color:#475569}
.stx-legend li{display:inline-flex;align-items:center;gap:6px}
.stx-legend i{font-style:normal;font-size:15px;color:#1a202c;padding:0 3px}
.stx-more{margin:14px 0 0;padding:12px 0 0;border-top:1px solid #f1e4dd;color:#475569;font-size:13.5px;line-height:1.5}
.stx-more a{color:#c93d0c;font-weight:700}
.stx-mini,.stx-copy{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 14px;border:1px solid #f1d5c8;border-radius:10px;background:#fff;color:#9a3412;font-weight:600;font-size:14px;cursor:pointer;touch-action:manipulation;white-space:nowrap}
.stx-copy{background:#c93d0c;border-color:#c93d0c;color:#fff}
.stx-copy:hover{background:#b23509}
.stx-mini:hover{background:#fff7f3}
.stx-mini.is-done,.stx-copy.is-done{border-color:#16a34a;background:#16a34a;color:#fff}
.stx-mini:focus-visible,.stx-copy:focus-visible,.stx-mode:focus-visible,.stx-chip:focus-visible{outline:3px solid rgba(250,76,16,.35);outline-offset:2px}
.stx-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* chart + tips */
.stx-ref{margin:18px 0 0}
.stx-ref .stx-h2{font-size:22px;margin:0 0 14px}
.stx-ref .stx-h3{font-size:17px;margin:22px 0 8px}
.stx-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.stx-tablewrap{overflow:auto;border:1px solid #f1e4dd;border-radius:10px}
.stx-chart{width:100%;border-collapse:collapse;font-size:20px;text-align:center}
.stx-chart thead th{position:sticky;top:0;background:#fffaf7;padding:8px 10px;font-size:13.5px;color:#64748b;font-weight:700;border-bottom:1px solid #f1e4dd}
.stx-chart tbody th{font-size:16px;color:#475569;font-weight:700;background:#fffaf7;width:70px}
.stx-chart td,.stx-chart tbody th{padding:4px 10px;border-bottom:1px solid #f4f1ef}
.stx-chart tbody tr:nth-child(even) td{background:#fcfcfd}
.stx-no{color:#cbd5e1}
.stx-newc{color:#1d4ed8}
.stx-newc sup{font-size:12px;color:#3b82f6}
.stx-p{color:#334155;font-size:15px;line-height:1.65;margin:0 0 10px}
.stx-tips{margin:0;padding-inline-start:20px;color:#334155;font-size:15px;line-height:1.6}
.stx-tips li{margin:5px 0}
@media(max-width:991px){
  .stx-charts{grid-template-columns:minmax(0,1fr)}
  .stx-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"in" "res" "opt";grid-template-rows:auto}
}
@media(max-width:560px){
  .stx-wrap h1#title{font-size:26px}.stx-panel{padding:8px}.stx-card{padding:14px}
  .stx-mode{flex-direction:column;gap:0;padding:4px 4px;font-size:13px;min-height:50px}
  .stx-outrow{grid-template-columns:minmax(0,1fr) 44px;gap:8px}
  .stx-outrow>.stx-copy{width:44px;padding:0}
  .stx-outrow>.stx-copy span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .stx-outrow:has(.stx-btncol){grid-template-columns:minmax(0,1fr)}
  .stx-ta{min-height:96px}
  .stx-btncol{flex-direction:row;flex-wrap:wrap}
  .stx-outbox{font-size:20px}
}
@media (prefers-reduced-motion:reduce){.stx-wrap *{transition:none!important}}
.stx-wrap [hidden]{display:none!important}
