/* structured-prompt-builder — style.css (RT-AI-013). Tokens only. */
#stb { display: flex; flex-direction: column; gap: 1rem; }
.stb-rows { display: flex; flex-direction: column; gap: .85rem; }
.stb-row {
  display: flex; flex-direction: column; gap: .55rem;
  padding: .85rem; border: 1px solid var(--rt-border, #d8dce2); border-radius: 10px;
  background: var(--rt-card, #fff);
}
.stb-row-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.stb-row-tag { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rt-ink-soft, #2A3340); }
.stb-field { display: flex; flex-direction: column; gap: .35rem; }
.stb-label { font-size: .8rem; font-weight: 600; color: var(--rt-ink-soft, #2A3340); }
.stb-name, .stb-input {
  width: 100%; padding: .5rem .65rem; font-size: 16px; line-height: 1.5;
  border: 1px solid var(--rt-border, #d8dce2); border-radius: 8px;
  background: var(--rt-card, #fff); color: var(--rt-ink, #14213d); font-family: inherit;
}
.stb-input { min-height: 64px; resize: vertical; }
.stb-name:focus-visible, .stb-input:focus-visible { outline: 2px solid var(--rt-accent, #e8622a); outline-offset: 2px; }
.stb-remove {
  min-height: 32px; padding: .25rem .7rem; border: 1px solid var(--rt-border, #d8dce2);
  border-radius: 8px; background: var(--rt-bg, #f7f6f3); color: var(--rt-ink-soft, #2A3340);
  font-size: .8rem; font-weight: 600; cursor: pointer;
}
.stb-remove:hover { filter: brightness(.97); }
.stb-remove:focus-visible { outline: 2px solid var(--rt-accent, #e8622a); outline-offset: 2px; }
.stb-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem; }
.stb-add {
  min-height: 40px; padding: .4rem .9rem; border: 1px dashed var(--rt-accent, #e8622a);
  border-radius: 8px; background: var(--rt-card, #fff); color: var(--rt-accent, #e8622a);
  font-weight: 600; cursor: pointer;
}
.stb-add:hover { filter: brightness(1.03); }
.stb-add:focus-visible { outline: 2px solid var(--rt-accent, #e8622a); outline-offset: 2px; }
.stb-fmt { display: flex; flex-direction: column; gap: .35rem; }
.stb-fmt-label { font-size: .8rem; font-weight: 600; color: var(--rt-ink-soft, #2A3340); }
.stb-select {
  min-height: 40px; padding: .45rem .65rem; font-size: 16px;
  border: 1px solid var(--rt-border, #d8dce2); border-radius: 8px;
  background: var(--rt-card, #fff); color: var(--rt-ink, #14213d); font-family: inherit; cursor: pointer;
}
.stb-select:focus-visible { outline: 2px solid var(--rt-accent, #e8622a); outline-offset: 2px; }
.stb-out-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.stb-out-title { font-size: .8rem; font-weight: 600; color: var(--rt-ink-soft, #2A3340); }
.stb-copy {
  min-height: 40px; padding: .4rem .9rem; border: 1px solid var(--rt-border, #d8dce2);
  border-radius: 8px; background: var(--rt-accent, #e8622a); color: #fff; font-weight: 600; cursor: pointer;
}
.stb-copy:hover { filter: brightness(1.05); }
.stb-copy:disabled { opacity: .5; cursor: not-allowed; }
.stb-copy:focus-visible { outline: 2px solid var(--rt-ink, #14213d); outline-offset: 2px; }
.stb-output {
  width: 100%; min-height: 200px; padding: .75rem; font-size: .9rem; line-height: 1.6;
  font-family: var(--rt-mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
  border: 1px solid var(--rt-border, #d8dce2); border-radius: 10px; resize: vertical;
  background: var(--rt-bg, #f7f6f3); color: var(--rt-ink, #14213d);
}
.stb-output:focus-visible { outline: 2px solid var(--rt-accent, #e8622a); outline-offset: 2px; }
.stb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
