/* Code tools extend the existing text-category workspace, without Bootstrap. */
.tn-code-workspace .tn-code-settings{display:flex;flex-direction:column;gap:12px;min-width:0}
.tn-code-workspace .tn-code-settings>div{min-width:0}
.tn-code-workspace .tn-code-settings :is(.mb-3,.mb-2,.mt-2,.mt-3){margin:0}
.tn-code-workspace .tn-code-settings :is(fieldset,.border){border:1px solid #686868;border-radius:0;padding:10px;min-width:0}
.tn-code-workspace .tn-code-settings fieldset{margin:0}
.tn-code-workspace .tn-code-settings legend{font-weight:650;font-size:.85rem;line-height:1.45;margin:0 0 8px;padding:0}
.tn-code-workspace .tn-code-settings :is(.card,.card-body){background:transparent;min-width:0}
.tn-code-workspace .tn-code-settings .card{padding:8px 0}
.tn-code-workspace .tn-code-settings .card-body{padding:0}
.tn-code-workspace .tn-code-settings .form-label{display:block;font-size:.84rem;font-weight:650;line-height:1.45;margin:0 0 6px}
.tn-code-workspace .tn-code-settings .fw-semibold{font-weight:650;font-size:.84rem;margin:0 0 7px}
.tn-code-workspace .tn-code-settings .row{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
.tn-code-workspace .tn-code-settings .row>div{min-width:0}
.tn-code-workspace .tn-code-settings .d-flex{display:flex;gap:7px;flex-wrap:wrap}
.tn-code-workspace .tn-code-settings .flex-column{flex-direction:column}
.tn-code-workspace .tn-code-settings .align-items-end{align-items:flex-end}
.tn-code-workspace .tn-code-settings .form-check{display:flex;align-items:flex-start;gap:7px;min-width:0;margin:0 0 7px;padding:0}
.tn-code-workspace .tn-code-settings .form-check-inline{width:100%}
.tn-code-workspace .tn-code-settings .form-check input[type=radio],
.tn-code-workspace .tn-code-settings .form-check input[type=checkbox]{flex:none;width:16px;height:16px;margin:2px 0 0}
.tn-code-workspace .tn-code-settings .form-check-label{min-width:0;overflow-wrap:anywhere;font-size:.8rem;line-height:1.45;cursor:pointer}
.tn-code-workspace .tn-code-settings .small,
.tn-code-workspace .tn-code-settings .form-text,
.tn-code-workspace .tn-code-settings .text-muted{font-size:.76rem;line-height:1.55;color:var(--tn-muted,#d1d1d1)}
.tn-code-workspace .tn-code-settings :is(#activeRuleSummary,#activeSummary,#langNote){margin:8px 0}
.tn-code-workspace .tn-code-settings .alert{border:1px solid #8d8067;background:#3e3931;padding:9px;font-size:.77rem;line-height:1.5;margin:9px 0 0}
.tn-code-workspace .tn-code-settings .alert-info{border-color:#69878e;background:#29363a}
.tn-code-workspace .tn-code-settings .form-select,
.tn-code-workspace .tn-code-settings #customToken{display:block;width:100%;max-width:100%;margin-top:5px}
.tn-code-workspace .tn-code-settings hr{border:0;border-top:1px solid #686868;margin:12px 0}
.tn-code-workspace .tn-code-settings #sectionLang,
.tn-code-workspace .tn-code-settings #sectionFw,
.tn-code-workspace .tn-code-settings #sectionType{min-width:0}
.tn-code-workspace .tn-code-settings #customWrap{padding-top:8px}
.tn-code-workspace .tn-text-panel--result .tn-text-output,
.tn-code-workspace .tn-text-panel--input .tn-text-panel__input-fields{min-height:0}
.tn-code-workspace .tn-text-panel--input .tn-text-panel__input-fields>textarea,
.tn-code-workspace .tn-text-panel--result .tn-text-output>textarea{flex:1 1 auto;min-height:180px}
.tn-code-help h2{font-size:1rem;margin:14px 0 7px}
.tn-code-help :is(ol,ul){padding-left:22px;font-size:.85rem;line-height:1.6;margin:6px 0 13px}
.tn-code-help li{margin:4px 0}
.tn-code-help :is(p,li){overflow-wrap:anywhere}
@media(max-width:900px){
 .tn-code-workspace .tn-text-panel__settings{overflow:visible}
 .tn-code-workspace .tn-text-panel--input .tn-text-panel__input-fields>textarea,
 .tn-code-workspace .tn-text-panel--result .tn-text-output>textarea{min-height:220px}
}

/* Show code in a legible monospaced font without changing transformation behavior. */
.tn-code-workspace :is(#inputText,#outputText){font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:.86rem;tab-size:4}
