/* Local text studio. No remote fonts, image requests, timed gates or overlays. */
.text-mode-nav{display:flex;flex-wrap:wrap;gap:6px;width:fit-content;max-width:100%;margin:0 0 28px;padding:5px;border:1px solid #dce4d9;border-radius:15px;background:#e9eee6;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif}
.text-mode-nav button{min-height:44px;padding:10px 18px;border:0;border-radius:11px;background:transparent;color:#53685b;font:600 13px/1.5 inherit;cursor:pointer}
.text-mode-nav button[aria-pressed=true]{background:#fffefb;color:#213e32;box-shadow:0 2px 8px #263f3310}
.text-legacy[hidden],.text-tools[hidden],.text-tools [hidden]{display:none!important}
.has-text-tools{width:min(1120px,calc(100% - 64px))!important;max-width:1120px!important;margin:32px auto 80px!important}
.text-tools{--tx-green:#20543d;--tx-ink:#213e32;--tx-muted:#596e60;--tx-line:#dce4d9;color:var(--tx-ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;font-size:14px;line-height:1.7}
.text-tools *{box-sizing:border-box}.text-tools :is(button,input,select,textarea){font-family:inherit}.text-tools :is(button,a){touch-action:manipulation}.text-tools :is(button,input,select,textarea,a,summary):focus-visible,.text-mode-nav button:focus-visible{outline:3px solid #c58e45;outline-offset:3px}
.tx-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:36px 0 28px}.tx-heading h1{font-size:clamp(26px,3.8vw,43px);line-height:1.35;letter-spacing:-.035em;margin:0 0 14px;font-weight:780}.tx-heading p{margin:0;color:var(--tx-muted);font-size:14px}.tx-heading .tx-kicker{font-size:10px;letter-spacing:.17em;font-weight:700;margin-bottom:14px}.tx-local{display:flex;gap:8px;align-items:center;flex:none;padding:8px 12px;border:1px solid var(--tx-line);border-radius:30px;font-size:10px;letter-spacing:.03em}.tx-local:before{content:"";width:6px;height:6px;background:#618968;border-radius:50%}
.tx-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:24px;align-items:start}.tx-card{min-width:0;padding:28px;background:#fffefb;border:1px solid var(--tx-line);border-radius:22px;box-shadow:0 18px 50px -40px #21452f40}.tx-result-card{background:linear-gradient(145deg,#fffefb,#f5f8ef);position:sticky;top:88px}.tx-section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 18px}.tx-section-title h2{font-size:15px;font-weight:700;margin:0}.tx-badge{border:1px solid #dbe3d7;background:#eef3e8;border-radius:24px;padding:4px 10px;font-size:10px;flex-shrink:0}.tx-tools p{overflow-wrap:anywhere}
.text-tools textarea{display:block;width:100%;min-height:220px;resize:vertical;border:1px solid #cbd7c7;background:#fbfcf7;border-radius:12px;padding:16px;color:#243c31;font:13px/1.8 "Noto Sans Mono CJK JP","MS Gothic",monospace;tab-size:4}.text-tools textarea::placeholder{color:#728371;font-family:inherit}.text-tools textarea[readonly]{background:#f6f8f1;min-height:280px;white-space:pre;overflow:auto}.tx-input-meta{display:flex;justify-content:space-between;gap:12px;margin:10px 0 20px;font-size:10px;color:var(--tx-muted)}.tx-input-meta span{color:#416b4b}.tx-input-meta output{white-space:nowrap;font-variant-numeric:tabular-nums}
.text-tools label{display:block;font-size:12px;font-weight:600;margin:12px 0}.text-tools select,.text-tools input:not([type=checkbox]):not([type=file]):not([type=range]):not([type=color]){display:block;width:100%;min-height:46px;border:1px solid #cbd7c7;border-radius:9px;background:#fffefb;color:#233e2e;padding:10px;font-size:13px;margin-top:8px}.text-tools select{cursor:pointer}.text-tools input[type=range]{display:block;width:100%;accent-color:var(--tx-green);margin:12px 0}.text-tools input[type=checkbox]{accent-color:var(--tx-green);height:18px;width:18px;flex:none;margin:0}.text-tools input[type=color]{display:block;width:100%;height:40px;margin-top:8px;padding:4px;border:1px solid var(--tx-line);border-radius:8px;background:white}.text-tools .tx-check{display:flex;align-items:center;gap:10px;min-height:32px;font-weight:400;line-height:1.7}.tx-details{border-top:1px solid var(--tx-line);margin:18px 0;padding-top:13px}.tx-details summary{cursor:pointer;min-height:34px;font-size:12px;color:#3a5a41}.tx-details p,.tx-hint,.tx-mini{font-size:11px;line-height:1.9;color:var(--tx-muted)}.tx-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.tx-label{margin-top:18px!important}.tx-hint{margin:16px 0 26px}.tx-file-label{display:flex;gap:18px;align-items:center;padding:20px;background:#eff3e9;border:1px dashed #b5c6ad;border-radius:13px;margin-bottom:24px}.tx-file-label>span{display:grid;place-items:center;flex:none;width:42px;height:50px;background:#fffefb;border:1px solid var(--tx-line);border-radius:9px;font-size:28px;color:#60835d;transform:rotate(-8deg)}.tx-file-label>div{min-width:0}.tx-file-label strong{display:block;overflow-wrap:anywhere;font-size:13px}.tx-file-label small{display:block;font-size:10px;color:var(--tx-muted);margin-top:5px}
.tx-primary,.tx-secondary{display:inline-flex;justify-content:center;align-items:center;gap:14px;min-height:46px;padding:12px 18px;border:1px solid transparent;border-radius:11px;font-size:13px;font-weight:700;line-height:1.5;text-decoration:none;cursor:pointer}.tx-primary{color:#fff!important;background:var(--tx-green)}.tx-primary:hover{background:#143f2a}.tx-secondary{color:#31553a;background:#fffefb;border-color:#cad7c4}.tx-input-card>.tx-primary{width:100%;margin-top:10px}.tx-link{display:inline-flex;align-items:center;min-height:36px;background:none;border:0;padding:4px 0;color:#436747;font-size:11px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.tx-empty{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:355px;padding:24px 10px}.tx-empty h3{font-size:16px;font-weight:600;margin:28px 0 8px}.tx-empty p{font-size:12px;color:var(--tx-muted);line-height:2;margin:0 0 18px}.tx-glyph{font-size:43px;letter-spacing:-.04em;color:#668367;display:flex;align-items:center;gap:18px}.tx-glyph span{font-size:26px;color:#b2bf9f}.tx-result-note{font-size:12px;line-height:1.9;color:var(--tx-muted);overflow-wrap:anywhere;margin-bottom:16px}.tx-canvas{display:flex;align-items:center;justify-content:center;min-height:160px;max-height:560px;overflow:auto;margin:14px 0 18px;padding:12px;border:1px solid var(--tx-line);border-radius:12px;background:repeating-conic-gradient(#e7ece2 0 25%,#f3f6ed 0 50%) 0 / 16px 16px}.tx-canvas canvas{display:block;max-width:100%;height:auto;object-fit:contain;box-shadow:0 3px 18px #18352718}.tx-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.tx-more{display:flex;flex-wrap:wrap;gap:0 16px;margin-top:12px}.tx-privacy{font-size:10px;line-height:1.9;color:#687560;margin:26px 0 0;border-top:1px solid var(--tx-line);padding-top:16px}.tx-process{display:flex;align-items:center;gap:16px;margin-top:16px}.tx-process progress{flex:1;height:6px;accent-color:var(--tx-green)}.tx-status{font-size:12px;line-height:1.8;min-height:22px;color:#48664a;margin:15px 0 0}.text-tools [disabled],.text-mode-nav [disabled]{opacity:.55;cursor:wait}.tx-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:22px 2px;font-size:11px;color:var(--tx-muted)}.tx-footer a{color:inherit;text-underline-offset:4px}.tx-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.tx-layout{grid-template-columns:1fr}.tx-result-card{position:static}.has-text-tools{width:calc(100% - 32px)!important}.tx-heading{margin-top:24px}.tx-card{padding:22px}.tx-empty{min-height:250px}.text-mode-nav{width:100%}.text-mode-nav button{flex:1;padding:10px 7px;font-size:11px}.tx-local{display:none}.tx-heading p{font-size:12px}}
@media(max-width:380px){.has-text-tools{width:calc(100% - 24px)!important}.tx-card{padding:17px}.tx-section-title{gap:6px}.tx-section-title h2{font-size:14px}.tx-input-meta{flex-wrap:wrap}.tx-primary,.tx-secondary{padding:11px 13px;font-size:12px}.tx-fields{gap:0 10px}}
@media(prefers-reduced-motion:reduce){.text-tools *{scroll-behavior:auto!important}}
