Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

5.8 KB
Raw Blame
.model-connections {
  width: 100%;
  min-width: 0;
}

.mc-heading[hidden] {
  display: none;
}

.model-connections form,
.model-connections fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.model-connections fieldset > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mc-grid--single {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.mc-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin: 0 0 20px;
}

.mc-field > label {
  margin: 0 0 9px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.6;
}

.mc-field > select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23858d9d' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.mc-grid > label,
.mc-result > label {
  display: grid;
  min-width: 0;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 520;
}

.mc-grid input,
.mc-grid select,
.mc-result > label input {
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  outline: 0;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0 11px;
  font-size: 13px;
}

.mc-grid input:focus,
.mc-grid select:focus,
.mc-result > label input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.mc-grid input::placeholder,
.mc-result > label input::placeholder {
  color: var(--text-faint);
}

.mc-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}

.mc-advanced {
  margin: 0 0 15px;
  border-top: 1px solid var(--divider);
  color: var(--text-muted);
  padding-top: 7px;
  font-size: 11px;
}

.mc-advanced > summary {
  padding: 8px 0;
  cursor: pointer;
}

.mc-advanced .mc-grid {
  margin-top: 10px;
}

.mc-connection-error,
.model-connections > p[role='alert'] {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 10px;
  border: 1px solid color-mix(in srgb, var(--red) 34%, var(--border));
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.8;
}

.mc-connection-error > .hr-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
}

.mc-connection-error > div {
  min-width: 0;
}

.mc-connection-error p {
  margin: 0;
}

.mc-connection-error details,
.model-connections > p[role='alert'] details {
  margin-top: 7px;
  color: var(--text-muted);
}

.mc-connection-error summary,
.model-connections summary {
  cursor: pointer;
}

.mc-manual-models {
  margin-top: 18px;
  border-top: 1px solid var(--divider);
  padding-top: 18px;
}

.mc-subheading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.mc-subheading h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.mc-model {
  margin: 10px 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 11px !important;
  background: var(--bg-soft);
  padding: 14px !important;
}

.mc-model > legend {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  color: var(--text);
  padding: 0 6px;
  font-size: 12px;
  font-weight: 650;
}

.mc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.mc-danger {
  color: var(--red) !important;
}

.mc-result {
  min-width: 0;
}

.mc-result > .mc-subheading {
  margin-bottom: 16px;
}

.mc-result > details {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--divider);
  color: var(--text-muted);
  padding-bottom: 10px;
  font-size: 11px;
}

.mc-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.mc-status-grid div {
  min-width: 0;
}

.mc-status-grid dt {
  color: var(--text-muted);
  font-size: 10px;
}

.mc-status-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--text-soft);
  font-size: 11px;
}

.mc-result > fieldset {
  margin: 8px 0 0;
}

.mc-result > fieldset > legend {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.mc-model-result {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--divider);
  padding: 9px 3px;
}

.mc-model-result label {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.mc-model-result input,
.mc-enable input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.mc-model-result label > span {
  min-width: 0;
}

.mc-model-result strong,
.mc-model-result small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-model-result strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 620;
}

.mc-model-result small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.mc-enable {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.model-connections > p[role='status'] {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.model-connections code {
  overflow-wrap: anywhere;
}

.mc-footer-spacer {
  flex: 1;
}

@media (max-width: 620px) {
  .mc-grid,
  .mc-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}