[hidden] { display: none !important; }

.generator { max-width: 55rem; padding-bottom: 4rem; }
.generator .intro { padding-block: clamp(2.5rem, 8vw, 5rem) 2rem; }
.generator-logo { display: block; margin-bottom: .875rem; }
.title {
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.panel, .card, details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.panel { display: grid; gap: 1.125rem; padding: clamp(1rem, 3vw, 1.5rem); }
.row, .stepper, .actions, .section-head, .dbar, .chips {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.row, .section-head { justify-content: space-between; }
.stepper output { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1.125rem; height: 1.125rem; fill: currentColor; flex: none; }
.icon-btn, .text-btn, .tonal-btn, .chip, .fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.5rem;
  padding: .375rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 600;
}
.icon-btn { width: 2.5rem; padding: 0; flex: none; }
.icon-btn:hover, .text-btn:hover, .chip:hover { background: var(--card-hover); }
.star[aria-pressed="true"] { color: var(--accent); }
.fab, .tonal-btn:not(.icon-btn) { background: var(--button); color: var(--button-text); border-color: transparent; }
.fab { justify-self: start; }
.fab:hover, .tonal-btn:not(.icon-btn):hover { box-shadow: 0 0 0 2px rgb(255 166 87 / 40%); }

.field { position: relative; min-width: 0; }
.field label { display: block; margin-bottom: .375rem; color: var(--text-secondary); font-size: .875rem; }
.field select, .field input {
  min-height: 2.75rem;
  width: 100%;
  padding: .375rem .75rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.field select { appearance: none; padding-right: 2.5rem; text-overflow: ellipsis; }
.field .chev { position: absolute; right: .75rem; bottom: .625rem; display: flex; pointer-events: none; }
.helper, .hint, .empty, .detail p { color: var(--text-muted); font-size: .875rem; }
.helper { margin-top: .375rem; }
.helper.err { color: var(--accent); }

.list { display: grid; gap: .625rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 .625rem; padding: .75rem; }
.card .main { min-width: 0; }
.card .main[role="button"] { cursor: pointer; border-radius: 4px; }
.nick { font-size: clamp(1.125rem, 3vw, 1.5rem); font-weight: 720; overflow-wrap: anywhere; }
.support { color: var(--text-muted); font-size: .875rem; overflow-wrap: anywhere; }
.detail { display: none; grid-column: 1 / -1; }
.card.open .detail { display: block; }
.detail p { margin-top: .75rem; padding-top: .625rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.hint { margin-top: .75rem; }
.empty { border: 1px dashed var(--line-strong); border-radius: 8px; padding: .875rem; }
.section-head { margin-top: 2rem; }
.section-head h2 { margin: 0; }

.snack {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  max-width: 34rem;
  margin-inline: auto;
  padding: .75rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.snack.show { display: flex; }

.dialog { position: fixed; inset: 0; z-index: 5; overflow: auto; background: var(--bg); }
.dw { width: min(55rem, calc(100% - 2rem)); margin: 2rem auto; }
.dbar { margin-bottom: 1rem; }
.dbar .title { margin: 0; color: var(--text); font-size: 1.75rem; text-transform: none; }
.lead, .label { color: var(--text-secondary); }
.label { margin: 1.25rem 0 .625rem; font-weight: 650; }
.add-row { display: flex; align-items: start; flex-wrap: wrap; gap: .625rem; margin-top: 1rem; }
.add-row > div { flex: 1 1 14rem; }
.add-row .tonal-btn { margin-top: 1.75rem; }
.chips { flex-wrap: wrap; margin-block: .5rem; }
details { margin-bottom: .625rem; }
summary { display: flex; justify-content: space-between; gap: .5rem; padding: .875rem; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details p { padding: 0 .875rem .875rem; color: var(--text-secondary); overflow-wrap: anywhere; }
