/* Tool layout helpers (uses shared respondot.css for buttons/panels/typography) */

.tool-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.tool-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.tool-tabs{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(184,215,255,.70);
}

.tool-note{
  margin-left:auto;
  color:rgba(46,74,114,.92);
  font-size:12.5px;
}

.pill-tab{
  border:1px solid rgba(184,215,255,.95);
  background:rgba(255,255,255,.72);
  color:rgba(11,18,32,.88);
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
  font-size:13px;
}
.pill-tab.is-active{
  background:rgba(47,125,255,.12);
  border-color:rgba(47,125,255,.35);
}

.tool-panel.is-hidden{ display:none; }

.tool-split{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
}
@media (max-width: 980px){
  .tool-split{ grid-template-columns:1fr; }
}

.tool-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
@media (max-width: 980px){
  .tool-grid{ grid-template-columns:1fr; }
}

.tool-card{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,251,255,.92));
  border:1px solid rgba(184,215,255,.95);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 12px 30px rgba(7,15,31,.10);
}

.tool-card h2{
  margin:0 0 12px;
  font-size:16.5px;
  color:rgba(11,18,32,.92);
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}

.field label{
  font-size:12px;
  color:rgba(46,74,114,.92);
}

.field input,
.field textarea,
.field select{
  width:100%;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(184,215,255,.95);
  color:rgba(11,18,32,.88);
  padding:10px 12px;
  border-radius:12px;
  outline:none;
}

.field textarea{ resize:vertical; }

.row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.muted{
  color:rgba(46,74,114,.92);
  font-size:12.5px;
}

.tool-summary pre{
  white-space:pre-wrap;
  margin:0;
  background:rgba(255,255,255,.72);
  border:1px dashed rgba(184,215,255,.95);
  border-radius:12px;
  padding:12px;
  color:rgba(11,18,32,.88);
  min-height: 180px;
}

.chip-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(184,215,255,.95);
  background:rgba(255,255,255,.78);
  border-radius:999px;
  padding:6px 10px;
  color:rgba(11,18,32,.82);
  font-size:12.5px;
}
.chip small{ color:rgba(46,74,114,.92); }

.chip button{
  border:1px solid rgba(184,215,255,.95);
  background:rgba(255,255,255,.78);
  color:rgba(11,18,32,.78);
  border-radius:10px;
  padding:2px 8px;
  cursor:pointer;
}

/* Functional flow */
.flow{
  display:grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap:10px;
  align-items:center;
  margin-top:10px;
}
@media (max-width: 980px){
  .flow{ grid-template-columns:1fr; }
  .arrow{ display:none; }
}

.node{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(184,215,255,.95);
  border-radius:16px;
  padding:14px;
  text-align:center;
}

.arrow{
  color:rgba(46,74,114,.92);
  font-size:22px;
  text-align:center;
}

.node-actions{ margin-top:10px; }

.phase-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(47,125,255,.35);
  background:rgba(47,125,255,.10);
  color:rgba(11,18,32,.88);
  border-radius:999px;
  padding:6px 10px;
  font-size:12.5px;
  margin-bottom:12px;
}

/* Tool theme toggle (optional dark mode) */
body[data-tool-theme="dark"] .tool-card{
  background: rgba(17,26,43,.86);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
body[data-tool-theme="dark"] .tool-card h2,
body[data-tool-theme="dark"] .field input,
body[data-tool-theme="dark"] .field textarea,
body[data-tool-theme="dark"] .tool-summary pre,
body[data-tool-theme="dark"] .chip,
body[data-tool-theme="dark"] .node{
  color: rgba(232,238,255,.92);
}
body[data-tool-theme="dark"] .field label,
body[data-tool-theme="dark"] .muted{
  color: rgba(157,177,216,.92);
}
body[data-tool-theme="dark"] .field input,
body[data-tool-theme="dark"] .field textarea{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
}
body[data-tool-theme="dark"] .tool-summary pre{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}
body[data-tool-theme="dark"] .pill-tab{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(232,238,255,.92);
}
body[data-tool-theme="dark"] .pill-tab.is-active{
  background: rgba(96,165,250,.18);
  border-color: rgba(96,165,250,.30);
}
