/* The operator console. Shared tokens and components live in base.css. */

.con-main {
  padding-block: var(--sp-4) var(--sp-7);
}

.con-signin {
  max-width: 28rem;
  margin: var(--sp-7) auto 0;
}

.con-tabs {
  display: flex;
  gap: var(--sp-1);
  overflow-x: auto;
  border-bottom: 1px solid var(--rule-strong);
}

.con-tabs a {
  flex: none;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.con-tabs a:hover {
  background: var(--surface-2);
}

.con-tabs a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.con-view {
  padding-top: var(--sp-5);
}

.con-view > * + * {
  margin-top: var(--sp-4);
}

.con-head > * + * {
  margin-top: var(--sp-1);
}

.con-title {
  font-size: var(--text-2xl);
}

.con-title:focus {
  outline: none;
}

.con-section {
  margin-bottom: var(--sp-2);
  font-size: var(--text-lg);
}

.con-more {
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
}

.con-flash:empty {
  display: none;
}

.con-filter {
  max-width: 34rem;
  align-items: end;
}

.con-check {
  flex: none;
  min-height: 2.5rem;
  gap: var(--sp-2);
  cursor: pointer;
}

.con-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  min-width: 11rem;
}

.con-note {
  margin-top: var(--sp-2);
}

.con-accounts {
  min-width: 58rem;
}

.con-keys {
  min-width: 74rem;
}

.con-sources {
  min-width: 50rem;
}

.con-plan-select {
  min-width: 7.5rem;
  min-height: 2rem;
  padding: var(--sp-1) var(--sp-2);
}

.con-error-cell {
  min-width: 16rem;
  overflow-wrap: anywhere;
}

.con-warnings {
  margin-top: var(--sp-1);
  padding-left: 1rem;
  font-size: var(--text-xs);
  color: var(--ink-2);
}

.con-warn-text {
  padding-left: var(--sp-2);
  border-left: 3px solid var(--warn);
}

.dialog-body > p + p {
  margin-top: var(--sp-2);
}

.con-secret {
  margin: 0;
  padding: var(--sp-3);
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}

.con-secret code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Requests per day: one series, thin bars from one baseline, square at the baseline, rounded at the data end. */

.bars-box {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--rule);
}

.bars-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 8rem;
  text-align: right;
}

.bars-plot {
  min-width: 0;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 8rem;
  border-bottom: 1px solid var(--rule-strong);
}

.bar-slot {
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  height: 100%;
}

.bar-slot:hover {
  background: var(--surface-2);
}

.bar {
  display: block;
  width: 100%;
  max-width: 24px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}

.bars-dates {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.bars-tip {
  position: absolute;
  top: var(--sp-1);
  right: var(--sp-3);
  padding: var(--sp-1) var(--sp-2);
  background: var(--ink);
  color: var(--bg);
  font-size: var(--text-xs);
  border-radius: var(--radius);
  pointer-events: none;
}

.con-keys tbody th {
  min-width: 13rem;
}

.con-accounts tbody th {
  min-width: 15rem;
}
