/* Shared utilities for tool pages */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); margin: 18px 0 18px; }
.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  color: var(--muted);
  padding: 9px 14px;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
[data-panel][hidden] { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1 1 200px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; position: sticky; top: 52px; background: var(--bg); }
table.data tbody tr:hover { background: var(--surface); }
.copyable { cursor: pointer; }
.copyable:hover { color: var(--accent); }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(23, 36, 47, 0.25); vertical-align: middle; }
input[type=search], input[type=text], input[type=number], input[type=datetime-local], input[type=date], input[type=time] {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--mono);
}
input[type=search] { width: 100%; }
input:focus { outline: none; border-color: var(--accent); }
.panel-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.toolbar.tight { margin: 8px 0; }
