:root {
  --ink: #2c2420;
  --rule: #cfc3b4;
  --paper: #f6efe4;
}

html,
body {
  min-height: 100%;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.panel-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.panel-copy {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgb(44 36 32 / 0.62);
}

.toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(44 36 32 / 0.55);
}

.toolbar-select {
  min-width: 8rem;
  border: 1px solid var(--rule);
  background: #fffdf8;
  color: var(--ink);
  border-radius: 0.4rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 0.4rem;
  overflow: hidden;
  background: #fffdf8;
}

.segmented-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgb(44 36 32 / 0.7);
}

.segmented-btn.is-active {
  background: var(--ink);
  color: #f6efe4;
}

.segmented-btn:disabled:not(.is-active) {
  opacity: 0.45;
  cursor: not-allowed;
}

.segmented-btn:disabled.is-active {
  cursor: default;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--rule);
  background: #fffdf8;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.toggle-chip input {
  accent-color: var(--ink);
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost {
  border-radius: 0.45rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #f6efe4;
}

.btn-primary:hover {
  background: #1a1513;
}

.btn-secondary {
  border: 1px solid var(--rule);
  background: #fffdf8;
}

.btn-secondary:hover {
  background: #f3eadc;
}

.btn-danger {
  border: 1px solid #d7b4ac;
  background: #f8ece8;
  color: #7a3326;
}

.btn-danger:hover {
  background: #f3ddd7;
}

.btn-ghost {
  border: 1px dashed var(--rule);
  background: transparent;
  color: rgb(44 36 32 / 0.75);
}

.btn-ghost:hover {
  background: rgb(255 253 248 / 0.7);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slider {
  width: 100%;
  accent-color: var(--ink);
}

.workspace-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem 1rem;
}

#inspector.is-idle .slider,
#inspector.is-idle .toggle-chip {
  opacity: 0.55;
  pointer-events: none;
}
