:root { color-scheme: light; font-family: system-ui, sans-serif; line-height: 1.6; }
body { max-width: 1140px; margin: auto; padding: 1rem; }
header { border-bottom: 1px solid #888; padding-bottom: 1rem; }
h1 { margin-bottom: 0; }
nav { display: flex; flex-wrap: wrap; gap: .5rem; }
label { display: block; font-weight: 600; margin-top: 1rem; }
input, textarea, select { display: block; box-sizing: border-box; width: 100%; font: inherit; padding: .6rem; }
textarea { resize: vertical; }
button { font: inherit; padding: .55rem .9rem; margin: .5rem .3rem .5rem 0; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #327de0; outline-offset: 3px; }
article { border: 1px solid #888; border-radius: .4rem; padding: 1rem; margin: 1rem 0; }
article p, #scenario-detail p, #preset-preview p { white-space: pre-wrap; overflow-wrap: anywhere; }
article h3 { margin-top: 0; }
#status { min-height: 1.6em; }
#error, .error-notice { border: 2px solid #c33; padding: .7rem; }
.hint, footer { font-size: .9rem; }
footer { margin-top: 2rem; border-top: 1px solid #888; padding-top: 1rem; }
.skip { position: absolute; left: -10000px; }
.skip:focus { position: static; }
[hidden] { display: none !important; }
input[type=checkbox] { display: inline-block; width: auto; }
aside { border-bottom: 1px solid #888; padding-bottom: 1rem; }
dt { font-weight: 600; }
dd { margin-left: 0; margin-bottom: .5rem; }
fieldset { margin: 1rem 0; padding: 1rem; }
.message-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; }
audio { width: 100%; }
#story-list > li { margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid #888; }
#story-list p, #delete-preview { white-space: pre-wrap; overflow-wrap: anywhere; }
.suggestion-row { display: flex; align-items: flex-start; gap: .6rem; }
.suggestion-row textarea { flex: 1; min-width: 0; }
.suggestion-row button { flex: 0 0 13rem; margin: 0; }
@media (max-width: 600px) {
  .suggestion-row { flex-direction: column; }
  .suggestion-row button { flex-basis: auto; }
}

body { background: #f3f5f9; color: #182336; }
main { background: #fff; }
.provider-panel { background: #fff; padding: 1rem; border-radius: .6rem; }
summary { cursor: pointer; font-weight: 600; }
.settings-group { margin: .75rem 0; border: 1px solid #dce0eb; border-radius: .65rem; overflow: hidden; }
.settings-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: #f6f5fb; list-style: none; }
.settings-group > summary::-webkit-details-marker { display: none; }
.settings-group > summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: #65558b; }
.settings-group[open] > summary::after { content: '−'; }
.settings-group > summary h3 { margin: 0; font-size: 1.1rem; }
.settings-group-body { padding: 1rem 1.25rem; }
.settings-group-body > :first-child { margin-top: 0; }
nav .btn { margin: 0; }
.error-notice { background: #fff0f0; color: #751c25; }
#story-list { padding-left: 0; list-style: none; }
#story-list > li { background: #f8fafc; padding: 1rem; border-radius: .5rem; }

/* Lorely theme, built on the locally bundled MIT-licensed Bootstrap. */
:root { --bs-primary: #6351a6; --bs-body-color: #27243a; }
body { background: #f4f1fa; color: #27243a; }
header { border-color: #d9d2e8; }
header h1 { font-family: Georgia, serif; font-size: clamp(2.8rem, 6vw, 4.5rem); color: #433368; }
.brand-mark { letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: #6351a6; }
.account-bar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
#account-name { margin-left: auto; font-weight: 600; }
#login-panel { max-width: 520px; margin-top: 8vh; box-shadow: 0 20px 60px #43336818; border: 1px solid #e2dbef; }
#login-panel h1 { font-family: Georgia, serif; color: #433368; font-size: 2.4rem; }
.btn-outline-primary { --bs-btn-color: #57428f; --bs-btn-border-color: #7761ac; --bs-btn-hover-bg: #57428f; --bs-btn-hover-border-color: #57428f; --bs-btn-active-bg: #57428f; }
main.card, .provider-panel { border-color: #e2dbef; border-radius: 1rem; }
#story-list > li { background: #f7f4fb; border: 1px solid #e2dbef; border-radius: .8rem; }
[hidden] { display: none !important; }
