:root {
  --background: #fffaf3;
  --foreground: #29231f;
  --card: #fff;
  --card-foreground: var(--foreground);
  --primary: #a63e16;
  --primary-foreground: #fff;
  --accent: #fae9d9;
  --accent-foreground: #702b13;
  --muted: #f4eee6;
  --muted-foreground: #66594e;
  --border: #e0d1c1;
  --input: #a99a8a;
  --ring: #a63e16;
  --destructive: #ae2424;
  --radius: .75rem;
}

.shiba-shell {
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
}

.shiba-header, .shiba-main {
  width: min(100% - 2rem, 60rem);
  margin-inline: auto;
}

.shiba-header, .shiba-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.shiba-header {
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.shiba-brand {
  font-weight: 750;
  letter-spacing: -.025em;
}

.shiba-main {
  padding-block: clamp(1.5rem, 5vw, 3.5rem);
}

.shiba-main--narrow {
  max-width: 30rem;
}

.shiba-stack {
  display: grid;
  gap: 1rem;
}

.shiba-main h1, .shiba-main h2 {
  font-weight: 700;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.shiba-main h1 {
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  line-height: 1.15;
}

.shiba-main h2 {
  font-size: 1.2rem;
}

.shiba-main :where(.card) {
  padding: clamp(1rem, 4vw, 1.5rem);
}

.shiba-main :where(pre, .shiba-prompt) {
  padding: .75rem;
  background: var(--muted);
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.shiba-muted {
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
}

.shiba-main a:not(.btn) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.shiba-main summary {
  display: list-item;
  cursor: pointer;
  color: var(--primary);
}

.shiba-main details[open] > summary {
  margin-bottom: .75rem;
}

.shiba-main :focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.shiba-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

.shiba-row--ruled {
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}

.shiba-secret-name {
  overflow-wrap: anywhere;
}

.shiba-health-history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.75rem, 1fr));
  gap: .5rem;
  margin-top: .5rem;
}

.shiba-health-history li {
  display: grid;
  gap: .2rem;
  font-size: .8rem;
}

.shiba-health-bar {
  height: .9rem;
  border-radius: .2rem;
  background: var(--border);
}

[data-health="healthy"] .shiba-health-bar { background: #298354; }
[data-health="mixed"] .shiba-health-bar { background: #a4690b; }
[data-health="unhealthy"] .shiba-health-bar { background: var(--destructive); }

.shiba-quota-form {
  display: grid;
  grid-template-columns: minmax(5rem, 8rem) auto;
  align-items: end;
  gap: .5rem;
  max-width: 100%;
}
