/* Case Converter tool UI — colourful, premium, mobile-first.
   Text family identity: pink → orange. */
.tool-shell{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);overflow:hidden;margin:14px 0 8px;
}
.tool-head{
  padding:18px 20px 14px;color:#fff;
  background:linear-gradient(120deg,var(--fam-text-1),var(--fam-text-2));
}
.tool-head h2{color:#fff;margin:0 0 4px;font-size:1.25rem}
.tool-head p{margin:0;color:#ffe4ef;font-size:.95rem}
.tool-body{padding:20px}
.cc-input{
  width:100%;font:inherit;font-size:1.08rem;line-height:1.55;color:var(--ink);
  border:2px solid var(--line);border-radius:14px;background:#fff8fb;
  padding:14px 16px;outline:none;resize:vertical;min-height:110px;
}
.cc-input:focus{border-color:var(--fam-text-1);box-shadow:0 0 0 3px rgba(219,39,119,.15);background:#fff}
.cc-counts{
  display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:10px;
  color:var(--ink-soft);font-size:.93rem;font-weight:600;
}
.cc-counts strong{color:var(--ink);font-size:1.02rem}
.cc-count-note{margin:4px 0 0;color:var(--ink-faint);font-size:.82rem}
.cc-group-title{margin:20px 0 9px;font-size:1rem;color:var(--ink)}
.cc-case-grid{display:flex;flex-wrap:wrap;gap:9px}
.cc-case-btn{
  font:inherit;font-size:.93rem;font-weight:800;cursor:pointer;
  border:2px solid #f3c2da;border-radius:999px;padding:9px 16px;min-height:42px;
  background:#fff;color:var(--fam-text-1);transition:all .15s ease;
}
.cc-case-btn:hover{
  background:linear-gradient(120deg,var(--fam-text-1),var(--fam-text-2));
  color:#fff;border-color:transparent;transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(219,39,119,.28);
}
.cc-case-btn:active{transform:translateY(0)}
.cc-style-row{
  margin-top:14px;background:linear-gradient(180deg,#fff8fb,#fdf2f8);
  border:1px dashed #f3c2da;border-radius:12px;padding:12px 14px;
  display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;
}
.cc-style-row label{font-weight:800;font-size:.93rem;color:var(--ink-soft)}
.cc-style-row select{
  font:inherit;font-size:.93rem;font-weight:700;color:var(--ink);
  border:2px solid var(--line);border-radius:10px;padding:7px 10px;background:#fff;min-height:40px;
}
.cc-style-row select:focus{border-color:var(--fam-text-1);outline:none}
.cc-style-rule{margin:0;flex:1 1 320px;font-size:.86rem;color:var(--ink-faint);line-height:1.45}
.cc-util-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px;align-items:center}
.mini-btn{
  font:inherit;font-size:.85rem;font-weight:800;cursor:pointer;border:0;border-radius:999px;
  padding:8px 15px;background:#ffe0ee;color:var(--fam-text-1);min-height:38px;
}
.mini-btn:hover{background:#ffd0e4}
.btn.copy-btn{background:linear-gradient(120deg,var(--fam-text-1),var(--fam-text-2));box-shadow:0 8px 20px rgba(219,39,119,.3)}
.tool-msg{min-height:1.4em;font-weight:700;color:#0a7a42;font-size:.93rem;margin:12px 0 0}
.tool-msg.error{color:#b42318}

/* Keep-words box */
.keep-box{
  margin-top:20px;border:2px solid #f3c2da;border-radius:var(--radius-lg);
  background:linear-gradient(180deg,#fff8fb,#fff);padding:16px 18px;
}
.keep-box h3{margin:0 0 6px;font-size:1.05rem}
.keep-box p{margin:0 0 10px;color:var(--ink-soft);font-size:.93rem}
.keep-box textarea{
  width:100%;font:inherit;font-size:.97rem;line-height:1.5;color:var(--ink);
  border:2px solid var(--line);border-radius:11px;background:#fff;
  padding:10px 12px;outline:none;resize:vertical;min-height:52px;margin-bottom:10px;
}
.keep-box textarea:focus{border-color:var(--fam-text-1);box-shadow:0 0 0 3px rgba(219,39,119,.15)}

/* Published exception chips */
.exc-list{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px}
.exc-chip{
  background:#fdf2f8;border:1px solid #f3c2da;color:var(--ink);
  border-radius:999px;padding:4px 12px;font-size:.88rem;font-weight:700;
}
@media (max-width:640px){
  .tool-body{padding:16px 14px}
  .cc-case-btn{flex:1 1 42%;text-align:center}
}
