
/* The Conversion Hub — Kitchen Toolkit (Static) */
/* Light surfaces: black text. Dark surfaces: white text. */

:root{
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --text: #000000;
  --muted: rgba(0,0,0,.70);
  --border: rgba(0,0,0,.12);
  --accent: #2563EB;
  --accentHover: #1D4ED8;
  --focus: rgba(37,99,235,.25);
  --dark: #0B1220;          /* dark header */
  --darkText: #FFFFFF;
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.tch-wrap{ max-width: 1100px; margin: 0 auto; padding: 18px 16px 60px; }

.tch-header{
  background: var(--dark);
  color: var(--darkText);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.tch-header-inner{
  max-width:1100px; margin:0 auto; padding: 14px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.tch-brand{
  display:flex; flex-direction:column; line-height:1.1;
}
.tch-brand .title{ font-weight:800; letter-spacing:.2px; font-size: 16px; }
.tch-brand .sub{ font-weight:600; font-size:12px; opacity:.75; margin-top:2px; }

.tch-nav{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.tch-nav a{
  color: var(--darkText);
  text-decoration:none;
  font-weight:600;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
}
.tch-nav a:hover{ background: rgba(255,255,255,.08); }
.tch-nav a[aria-current="page"]{
  background: rgba(255,255,255,.14);
  pointer-events:none;
}

.tch-hero{
  margin-top: 18px;
  display:flex; flex-direction:column; gap:8px;
}
.tch-hero h1{ margin:0; font-size: 26px; letter-spacing:.2px; }
.tch-hero p{ margin:0; color: var(--muted); max-width: 72ch; }

.tch-tabs{
  margin-top: 16px;
  display:flex; gap:10px; flex-wrap:wrap;
}
.tch-tab{
  border:1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:800;
  font-size: 13px;
}
.tch-tab[aria-selected="true"]{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px var(--focus);
}

.tch-card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  margin-top: 14px;
  overflow:hidden;
}
.tch-card-inner{ padding: 16px; }

.tch-row{ display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
.tch-field{ display:flex; flex-direction:column; gap:6px; min-width: 160px; flex: 1; }
.tch-field label{ font-size: 12px; font-weight: 800; }
.tch-field .hint{ font-size: 12px; color: var(--muted); }

input, select, textarea{
  border:1px solid var(--border);
  border-radius: 12px;
  padding: 10px 10px;
  font-size: 14px;
  background: #fff;
  color: #000;
  outline:none;
}
textarea{ min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus{
  box-shadow: 0 0 0 4px var(--focus);
  border-color: rgba(37,99,235,.35);
}

.tch-actions{
  margin-top: 12px;
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
.tch-btn{
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-weight: 900;
  font-size: 13px;
  cursor:pointer;
  background: #fff;
  color:#000;
}
.tch-btn.primary{
  background: var(--accent);
  border-color: rgba(0,0,0,0);
  color:#fff; /* dark surface button, white text ok */
}
.tch-btn.primary:hover{ background: var(--accentHover); }
.tch-btn.ghost:hover{ background: rgba(0,0,0,.04); }
.tch-btn.danger:hover{ background: rgba(220,38,38,.08); }

.tch-note{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.tch-split{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .tch-split{ grid-template-columns: 1.2fr .8fr; }
}

.tch-table{
  width:100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.tch-table th, .tch-table td{
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 10px 8px;
  vertical-align: middle;
}
.tch-table th{
  text-align:left;
  font-size: 12px;
  letter-spacing:.2px;
}
.tch-table td .mini{ font-size: 12px; color: var(--muted); margin-top:4px; }
.tch-x{
  width:36px; height:36px; border-radius: 10px; border:1px solid var(--border);
  background:#fff; cursor:pointer; font-weight:900;
}
.tch-x:hover{ background: rgba(0,0,0,.04); }

.tch-result{
  margin-top: 12px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(37,99,235,.06);
}
.tch-result .big{ font-size: 22px; font-weight: 950; margin: 0; }
.tch-result .small{ margin: 6px 0 0; font-size: 12px; color: var(--muted); }

.tch-warn{
  margin-top: 10px;
  border: 1px solid rgba(217,119,6,.35);
  background: rgba(217,119,6,.12);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
}

.tch-footer{
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

@media print{
  .tch-header, .tch-tabs, .tch-actions, .tch-footer{ display:none !important; }
  body{ background:#fff; }
  .tch-card{ box-shadow:none; }
}
