/* Vault console — minimal layout sitting on top of the existing
 * engine console's theme variables. Keep this file small; new
 * styles live in /workflow/theme.css when they apply across consoles.
 */

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--gap-md, 1rem);
  padding: var(--gap-md, 1rem);
  min-height: calc(100vh - 56px);
}

.sidebar {
  border-right: 1px solid var(--border, #2a2a2a);
  padding-right: 1rem;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #999);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.sidebar-nav li a {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: var(--bg-elev, #1a1a1a);
  color: var(--accent, #6cf);
}

.sidebar-token label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted, #999);
  margin-bottom: 0.25rem;
}

.sidebar-token input {
  width: 100%;
  padding: 0.4rem;
  margin-bottom: 0.4rem;
  background: var(--bg-elev, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  color: inherit;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.sidebar-token button {
  width: 100%;
  padding: 0.4rem;
  background: var(--accent, #6cf);
  border: none;
  color: #000;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.content {
  min-width: 0;
}

.content h1 {
  margin-top: 0;
}

.pane-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pane-status .card {
  background: var(--bg-elev, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  padding: 1rem;
  border-radius: 6px;
}

.pane-status .card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted, #999);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pane-status .card .value {
  font-size: 1.4rem;
  font-weight: 500;
  font-family: ui-monospace, monospace;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

.pill-sealed { background: #872; color: #fff; }
.pill-unsealed { background: #181; color: #fff; }
.pill-error { background: #c33; color: #fff; }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table.data th, table.data td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border, #2a2a2a);
}

table.data th {
  font-size: 0.85rem;
  color: var(--text-muted, #999);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  margin-right: 0.4rem;
  background: var(--bg-elev, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  color: inherit;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn:hover { background: var(--bg-hover, #222); }

.btn-primary {
  background: var(--accent, #6cf);
  color: #000;
  border-color: var(--accent, #6cf);
}

.btn-danger {
  background: #c33;
  border-color: #c33;
  color: #fff;
}

.placeholder {
  color: var(--text-muted, #999);
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.toolbar input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 0.4rem;
  background: var(--bg-elev, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  color: inherit;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

pre.json {
  background: var(--bg-elev, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  padding: 0.75rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.error-banner {
  background: #4a1818;
  border: 1px solid #c33;
  color: #fbb;
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
