/* Text Case Converter only; shared shell remains untouched. */
#text-case-converter-tool { min-width:0; display:flow-root; contain:layout paint; }
#text-case-converter-tool * { box-sizing:border-box; }
#text-case-converter-tool .case-heading, #text-case-converter-tool .case-workspace { max-width:1120px; margin-inline:auto; }
#text-case-converter-tool h1 { margin:16px 0; font-size:clamp(32px,4vw,44px); letter-spacing:-.04em; }
#text-case-converter-tool h2 { margin:0 0 20px; font-size:22px; }
#text-case-converter-tool p { line-height:1.6; color:var(--muted); }
#text-case-converter-tool .case-heading > p { max-width:720px; }
#text-case-converter-tool .case-workspace { margin-top:28px; padding:24px; border:1px solid var(--line); border-radius:16px; }
#text-case-converter-tool label { display:block; margin-bottom:8px; font-weight:700; }
#text-case-converter-tool textarea { width:100%; min-width:0; border:1px solid var(--control-border); border-radius:7px; padding:12px; background:var(--paper); color:var(--navy); font:inherit; line-height:1.5; }
#text-case-converter-tool .case-styles { border:0; padding:0; margin:0; min-width:0; }
#text-case-converter-tool .case-styles legend { font-weight:700; margin-bottom:10px; }
#text-case-converter-tool .case-style-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
#text-case-converter-tool .case-style-grid label { display:block; position:relative; margin:0; cursor:pointer; min-width:0; }
#text-case-converter-tool .case-style-grid input { position:absolute; width:1px; height:1px; opacity:0; }
#text-case-converter-tool .case-style-grid span { display:flex; flex-direction:column; justify-content:center; gap:4px; min-height:64px; height:100%; padding:10px 14px; border:1px solid var(--control-border); border-radius:9px; background:var(--paper); color:var(--navy); overflow-wrap:anywhere; }
#text-case-converter-tool .case-style-grid small { color:var(--muted); font-size:13px; font-weight:400; }
#text-case-converter-tool .case-style-grid .case-selected span { border:2px solid var(--teal); padding:9px 13px; background:var(--control-hover); }
#text-case-converter-tool .case-style-grid label:focus-within span { outline:3px solid var(--teal); outline-offset:3px; }
#text-case-converter-tool textarea { display:block; resize:vertical; min-height:230px; overflow-wrap:anywhere; }
#text-case-converter-tool .case-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:24px; }
#text-case-converter-tool .case-columns > div { min-width:0; }
#text-case-converter-tool .case-columns p { margin:8px 0 0; font-size:14px; }
#text-case-converter-tool #case-help { font-size:14px; }
#text-case-converter-tool .case-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
#text-case-converter-tool button { min-height:44px; padding:10px 18px; border:1px solid var(--control-border); border-radius:7px; background:var(--paper); color:var(--navy); font:inherit; font-weight:700; cursor:pointer; }
#text-case-converter-tool #case-copy { background:var(--teal); border-color:var(--teal); color:var(--action-text); }
#text-case-converter-tool button:disabled { opacity:.55; cursor:not-allowed; }
#text-case-converter-tool :is(a,button,textarea):focus-visible { outline:3px solid var(--teal); outline-offset:4px; }
#text-case-converter-tool #case-status { min-height:1.6em; }
@media(max-width:680px) { #text-case-converter-tool .case-columns { grid-template-columns:1fr; } #text-case-converter-tool .case-workspace { padding:16px; } }
@media(max-width:680px) { #text-case-converter-tool .case-style-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:380px) { #text-case-converter-tool .case-style-grid { grid-template-columns:1fr; } }
