/* ─── Vermont palette ─── */
:root {
  --sage:        #7a9e7e;
  --sage-light:  #a8c5a0;
  --sage-dark:   #4f7152;
  --cream:       #f5f0e8;
  --cream-dark:  #ede6d8;
  --rose:        #c9a49a;
  --rose-light:  #e0c8c2;
  --charcoal:    #2d2d2d;
  --muted:       #6b6b6b;
  --white:       #ffffff;
  --border:      #d4ccc0;
  --error-bg:    #fdf0ef;
  --error-text:  #8b2a2a;
  --error-border:#d4938c;
  --success-bg:  #eef5ee;
  --success-text:#2a5c2a;
  --success-border:#8ab88a;
  --shadow:      0 2px 8px rgba(0,0,0,0.08);
  --radius:      6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Login ─── */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-logo-placeholder {
  width: 80px;
  height: 80px;
  background: var(--cream-dark);
  border: 2px dashed var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.login-logo-icon { font-size: 2rem; }

.login-title {
  font-size: 1.25rem;
  color: var(--sage-dark);
  font-weight: normal;
  margin-bottom: 0.2rem;
}

.login-subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-family: Arial, sans-serif;
}

.login-form { text-align: left; }

/* ─── Admin Header ─── */
.admin-header {
  background: var(--sage-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.admin-header-left { display: flex; align-items: center; gap: 0.6rem; }

.admin-logo-text {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: normal;
}

.admin-badge {
  background: var(--sage);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-header-right { display: flex; align-items: center; gap: 1rem; font-family: Arial, sans-serif; font-size: 0.85rem; }

.admin-username { color: var(--cream); }

.header-link { color: var(--rose-light); }
.header-link:hover { color: var(--white); text-decoration: underline; }
.header-link--logout { color: var(--rose-light); }

/* ─── Tab Nav ─── */
.admin-tabs {
  background: var(--cream-dark);
  border-bottom: 2px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 1rem;
  overflow-x: auto;
}

.admin-tab {
  display: inline-block;
  padding: 0.65rem 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--charcoal);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.admin-tab:hover { color: var(--sage-dark); text-decoration: none; border-bottom-color: var(--sage-light); }
.admin-tab--active { color: var(--sage-dark); border-bottom-color: var(--sage-dark); font-weight: bold; }

/* ─── Main content area ─── */
.admin-main { padding: 2rem 1.5rem; }

.admin-content { max-width: 1100px; margin: 0 auto; }
.admin-content--narrow { max-width: 500px; margin: 0 auto; }

.admin-content h2 {
  font-size: 1.4rem;
  color: var(--sage-dark);
  font-weight: normal;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-content h3 {
  font-size: 1.05rem;
  color: var(--charcoal);
  font-weight: normal;
  margin-bottom: 1rem;
}

.placeholder-notice {
  background: var(--cream-dark);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.muted { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.9rem; }

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

/* ─── Forms ─── */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122,158,126,0.15);
}

.form-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.25rem; }

.form-note { font-family: Arial, sans-serif; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }

.form-stacked { }

.form-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.form-row .form-group { flex: 1; min-width: 140px; }

.form-inline { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.form-inline .form-group { margin-bottom: 0; }

.input-sm {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  width: 160px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.btn--primary   { background: var(--sage-dark); color: var(--white); }
.btn--primary:hover { background: var(--sage); color: var(--white); text-decoration: none; }

.btn--ghost     { background: transparent; color: var(--sage-dark); border: 1px solid var(--sage-dark); }
.btn--ghost:hover { background: var(--cream-dark); text-decoration: none; }

.btn--warning   { background: #b08030; color: var(--white); }
.btn--warning:hover { background: #8a6020; text-decoration: none; }

.btn--danger    { background: #9b3535; color: var(--white); }
.btn--danger:hover { background: #7a2525; text-decoration: none; }

.btn--full { width: 100%; display: block; }

.btn--sm { padding: 0.3rem 0.65rem; font-size: 0.78rem; }

.reorder-btns { display: flex; flex-direction: column; gap: 1px; margin-right: 0.25rem; }
.btn--reorder {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.btn--reorder:hover:not(:disabled) { color: var(--text); background: var(--border); }
.btn--reorder:disabled { opacity: 0.2; cursor: default; }

/* ─── Alerts ─── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.alert--error   { background: var(--error-bg); color: var(--error-text); border: 1px solid var(--error-border); }
.alert--success { background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success-border); }

/* ─── Tables ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}

.data-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--cream-dark);
  border-bottom: 2px solid var(--border);
  font-weight: bold;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: middle;
}

.data-table tbody tr:hover { background: var(--cream); }

.action-cell { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.inline-form { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ─── Badges ─── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--superadmin { background: var(--sage-dark); color: var(--white); }
.badge--admin      { background: var(--cream-dark); color: var(--charcoal); border: 1px solid var(--border); }
.badge--kids       { background: #f0c040; color: #5a3e00; }

/* ─── List items (inline edit pattern) ─── */
.list-item {
  border-bottom: 1px solid var(--cream-dark);
  padding: 0.9rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}
.list-item:last-child { border-bottom: none; }
.list-item__main  { flex: 1; min-width: 0; }
.list-item__desc  { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; font-family: Arial, sans-serif; }
.list-item__actions { display: flex; gap: 0.4rem; flex-shrink: 0; align-items: flex-start; flex-wrap: wrap; }
.list-item__photo-status { flex-shrink: 0; display: flex; align-items: flex-start; }
.event-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.event-thumb-none { font-size: 0.72rem; color: var(--muted); background: var(--cream-dark); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.2rem 0.45rem; white-space: nowrap; }

.inline-edit {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 0.5rem;
}

/* ─── Photo grid (hero photos) ─── */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.photo-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.photo-thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ─── Fieldset ─── */
.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.fieldset legend {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 0.4rem;
}

/* ─── Checkbox form group ─── */
.form-group--check {
  margin-bottom: 1rem;
}
.form-group--check label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  font-weight: normal;
  color: var(--charcoal);
}
.form-group--check input[type="checkbox"] { width: auto; min-height: auto; }

/* ─── Tab bar (admin dvd-books) ─── */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.6rem 1.25rem;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
  min-height: 44px;
}
.tab-btn:hover   { color: var(--sage-dark); }
.tab-btn--active { color: var(--sage-dark); border-bottom-color: var(--sage-dark); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .admin-tabs { padding: 0 0.5rem; }
  .admin-tab  { padding: 0.6rem 0.7rem; font-size: 0.76rem; }
  .admin-main { padding: 1.5rem 1rem; }
}

@media (max-width: 600px) {
  .admin-header { padding: 0.6rem 1rem; }
  .admin-header-right { gap: 0.6rem; font-size: 0.78rem; }
  .admin-tab  { padding: 0.5rem 0.6rem; font-size: 0.72rem; }
  .admin-main { padding: 1rem 0.75rem; }
  .form-inline { flex-direction: column; }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.4rem 0.5rem; }
  .action-cell { flex-direction: column; gap: 0.35rem; }
  .inline-form { flex-direction: column; }
  .input-sm { width: 100%; }
}

@media (max-width: 480px) {
  .admin-logo-text { display: none; }
  .admin-tab { font-size: 0.68rem; padding: 0.45rem 0.5rem; }
}

/* ─── Hero slot grid ─── */
.hero-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.hero-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-slot--filled {
  background: #222;
  cursor: default;
}

.hero-slot--empty {
  background: var(--cream-dark);
  border: 2px dashed var(--border);
  cursor: pointer;
}

.hero-slot__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Overlay on hover */
.hero-slot__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.18s;
}
.hero-slot--filled:hover .hero-slot__overlay { opacity: 1; }

.hero-slot__num {
  position: absolute;
  top: 0.35rem;
  left: 0.45rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  font-family: Lato, sans-serif;
}

.hero-slot__replace-label {
  cursor: pointer;
  white-space: nowrap;
}
.hero-slot__replace-label input { display: none; }

/* Empty slot button */
.hero-slot__add-form {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slot__add-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--muted);
  font-family: Lato, sans-serif;
  font-size: 0.8rem;
  width: 100%;
  height: 100%;
  justify-content: center;
  transition: color 0.15s;
}
.hero-slot__add-btn:hover { color: var(--sage-dark); }

.hero-slot__plus {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 300;
}

@media (max-width: 700px) {
  .hero-slot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Crop modal ─── */
#crop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#crop-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  width: min(720px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

#crop-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
}

#crop-cancel {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 0.25rem;
}
#crop-cancel:hover { color: var(--charcoal); }

#crop-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  max-height: 60vh;
  background: #111;
}
#crop-img {
  display: block;
  max-width: 100%;
}

#crop-actions {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

#crop-cancel-action {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
  font-family: Lato, sans-serif;
}
#crop-cancel-action:hover { background: var(--bg); }

#crop-confirm {
  background: var(--sage-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: Lato, sans-serif;
}
#crop-confirm:hover { background: var(--sage); }

#crop-ratio-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.crop-ratio-pill {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.crop-ratio-pill:hover { background: var(--sage-light); border-color: var(--sage); }
.crop-ratio-pill--active { background: var(--green); border-color: var(--green); color: #fff; }

.crop-preview {
  display: none;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

.current-photo-thumb {
  display: block;
  width: 80px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
}
.current-photo-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

/* ── Quill rich text editors ─────────────────────────────────────────────── */
.quill-editor .ql-editor { min-height: 150px; font-family: Lato, sans-serif; font-size: 0.9rem; }
.quill-editor { border-radius: var(--radius); }
.quill-editor .ql-toolbar { border-radius: var(--radius) var(--radius) 0 0; }
.quill-editor .ql-container { border-radius: 0 0 var(--radius) var(--radius); }

/* ── Open Library book search ────────────────────────────────────────────── */
.book-search__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.book-search__row {
  display: flex;
  gap: 0.5rem;
}
.book-search__input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: Lato, sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
}
.book-search__input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 2px rgba(122,158,126,0.2); }
.book-search__results {
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.book-search__results:not(:empty) { display: block; }
.book-search__result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.book-search__result:last-child { border-bottom: none; }
.book-search__result:hover { background: var(--cream); }
.book-search__thumb {
  width: 36px;
  height: 50px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--bg);
}
.book-search__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--bg);
}
.book-search__meta { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.book-search__meta strong { font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-search__meta span   { font-size: 0.8rem;  color: var(--muted); }
.book-search__status { padding: 0.75rem; font-size: 0.85rem; color: var(--muted); margin: 0; }
.book-search__status--error { color: #c0392b; }

/* Green flash when a field is auto-filled by book search */
@keyframes autofill-flash {
  0%   { background: rgba(122,158,126,0.25); }
  100% { background: transparent; }
}
.autofill-flash { animation: autofill-flash 1.2s ease-out forwards; }

/* ── Feedback page ─────────────────────────────────────────────────────── */
.feedback-section { margin-bottom: 2rem; }

.feedback-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.feedback-section-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.count-badge {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.78rem;
  font-family: Arial, sans-serif;
  color: var(--muted);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.table-scroll { overflow-x: auto; }

.msg-cell {
  max-width: 260px;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-state {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Admin Surveys ─────────────────────────────────────────────────────── */
.survey-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 2rem; }

.survey-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.survey-item:last-child { border-bottom: none; }

.survey-item__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.survey-item__title { font-size: 0.95rem; }
.survey-item__stats { font-size: 0.82rem; color: var(--muted); font-family: Arial, sans-serif; }
.survey-item__date  { font-size: 0.78rem; color: var(--muted); font-family: Arial, sans-serif; }

.survey-item__actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }

.survey-edit-form { background: var(--cream); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; margin-top: 0.5rem; }

.survey-add-form { padding-top: 1.5rem; border-top: 2px solid var(--cream-dark); }
.survey-add-form h4 { margin-bottom: 0.75rem; }

.survey-result { padding: 1.25rem 0; }
.survey-result__header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; }
.survey-result__title { margin: 0; font-size: 1rem; }
.survey-result__desc { margin-bottom: 0.75rem; font-size: 0.88rem; }
.survey-result__avg { font-size: 1rem; margin-bottom: 0.75rem; }
.survey-result__summary { }

.survey-bars { display: flex; flex-direction: column; gap: 0.35rem; max-width: 420px; }
.survey-bar-row { display: flex; align-items: center; gap: 0.5rem; }
.survey-bar-label { width: 2rem; font-size: 0.8rem; font-family: Arial, sans-serif; color: var(--muted); text-align: right; flex-shrink: 0; }
.survey-bar-track { flex: 1; height: 14px; background: var(--cream-dark); border-radius: 3px; overflow: hidden; }
.survey-bar-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.4s ease; }
.survey-bar-count { width: 1.8rem; font-size: 0.8rem; font-family: Arial, sans-serif; color: var(--muted); }

/* ── Password strength checklist ───────────────────────────────────────── */
.pw-checklist {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pw-req {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}
.pw-req__icon { font-size: 0.9rem; width: 1rem; text-align: center; }
.pw-req--met  { color: #2a7a3b; }
.pw-req--unmet { color: #9b3535; }
