/* Orchard Elementary — Classroom Lunch Choice
   Brand palette from orchard.rsd.edu theme:
   purple #581c64, green #027538, blue #174b7d, gold #f8ba47
*/

:root {
  --orchard-purple: #581c64;
  --orchard-purple-deep: #3f1249;
  --orchard-purple-soft: #f3eaf6;
  --orchard-green: #027538;
  --orchard-green-deep: #015c2c;
  --orchard-green-soft: #e6f5ec;
  --orchard-blue: #174b7d;
  --orchard-blue-soft: #e8f0f7;
  --orchard-gold: #f8ba47;
  --orchard-gold-soft: #fff6e5;

  --bg: #f5f3f7;
  --surface: #ffffff;
  --surface-2: #f1eef4;
  --ink: #242424;
  --ink-muted: #5c5c5c;
  --border: #d8d0de;
  --primary: var(--orchard-purple);
  --primary-hover: var(--orchard-purple-deep);
  --primary-soft: var(--orchard-purple-soft);
  --accent: var(--orchard-gold);
  --accent-soft: var(--orchard-gold-soft);
  --success: var(--orchard-green);
  --success-soft: var(--orchard-green-soft);
  --danger: #b42318;
  --danger-soft: #fdecea;
  --home: #6b7280;
  --home-soft: #f3f4f6;
  --shadow: 0 4px 18px rgba(63, 18, 73, 0.08);
  --shadow-lg: 0 12px 36px rgba(63, 18, 73, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --touch: 52px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --transition: 0.18s ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(88, 28, 100, 0.88) 0px, rgba(88, 28, 100, 0.55) 120px, rgba(245, 243, 247, 0.97) 280px, var(--bg) 420px),
    url("assets/school-hero.jpg");
  background-size: cover, cover;
  background-position: center top, center 20%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.45;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--orchard-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Layout shell —— */
.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px 48px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Brand masthead */
.site-masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px 4px;
  color: #fff;
}

.site-masthead .logo {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  flex-shrink: 0;
}

.site-masthead .masthead-text {
  min-width: 0;
}

.site-masthead .school-name {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.site-masthead .tagline {
  margin: 2px 0 0;
  font-size: 0.88rem;
  opacity: 0.92;
  font-weight: 500;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-top: 4px solid var(--orchard-gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--orchard-purple);
}

.brand .subtitle {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--orchard-purple);
  color: #fff;
  box-shadow: 0 3px 10px rgba(88, 28, 100, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: var(--orchard-purple-deep);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: #e6e0ec;
}

.btn-accent {
  background: var(--orchard-green);
  color: #fff;
  box-shadow: 0 3px 10px rgba(2, 117, 56, 0.25);
}

.btn-accent:hover:not(:disabled) {
  background: var(--orchard-green-deep);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #f0bcbc;
}

.btn-danger:hover:not(:disabled) {
  background: #fad4d4;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  min-height: 40px;
  padding: 0 12px;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--ink);
}

.btn-icon {
  width: var(--touch);
  min-width: var(--touch);
  padding: 0;
  border-radius: 12px;
}

.btn-lg {
  min-height: 56px;
  padding: 0 22px;
  font-size: 1.05rem;
  width: 100%;
}

/* —— Cards / panels —— */
.panel {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(8px);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--orchard-purple);
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
}

.hint {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--orchard-purple-soft);
  color: var(--orchard-purple);
}

.badge.warn {
  background: var(--orchard-gold-soft);
  color: #8a5a00;
}

.badge.muted {
  background: var(--surface-2);
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
}

.badge.green {
  background: var(--orchard-green-soft);
  color: var(--orchard-green);
}

/* —— Forms —— */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orchard-purple);
}

.field input,
.field textarea {
  min-height: var(--touch);
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafbfc;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orchard-purple);
  box-shadow: 0 0 0 3px var(--orchard-purple-soft);
  background: #fff;
}

.field .help {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* —— Setup roster list —— */
.roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roster-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--orchard-purple-soft);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.roster-item .name {
  flex: 1;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-item .order {
  color: var(--orchard-purple);
  font-size: 0.85rem;
  font-weight: 800;
  width: 1.5rem;
  text-align: right;
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--ink-muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: #fafbfc;
}

.empty-state strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

/* —— Selection layout —— */
.selection-grid {
  display: grid;
  grid-template-columns: minmax(200px, 270px) 1fr;
  gap: 16px;
  flex: 1;
  align-items: start;
}

@media (max-width: 800px) {
  .selection-grid {
    grid-template-columns: 1fr;
  }
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.progress-pill {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--orchard-green-soft);
  color: var(--orchard-green);
  border: 1px solid rgba(2, 117, 56, 0.2);
}

.progress-pill.incomplete {
  background: var(--orchard-gold-soft);
  color: #8a5a00;
  border-color: rgba(248, 186, 71, 0.45);
}

/* —— Student chips —— */
.student-pool {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding: 4px;
  -webkit-overflow-scrolling: touch;
}

.student-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orchard-purple-deep) 0%, var(--orchard-purple) 55%, #6d2a7a 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: 0 4px 12px rgba(88, 28, 100, 0.3);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  text-align: center;
  word-break: break-word;
}

.student-chip:active,
.student-chip.is-dragging {
  cursor: grabbing;
}

.student-chip.is-dragging {
  opacity: 0.35;
  transform: scale(0.96);
}

.student-chip.in-slot {
  background: linear-gradient(135deg, #015c2c 0%, var(--orchard-green) 100%);
  min-height: 48px;
  font-size: 0.98rem;
  box-shadow: 0 3px 8px rgba(2, 117, 56, 0.25);
}

.student-chip.home-chip {
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
  min-height: 40px;
  font-size: 0.88rem;
  box-shadow: 0 2px 6px rgba(75, 85, 99, 0.2);
}

.student-chip.is-locked {
  cursor: default;
  background: linear-gradient(135deg, #3d2a45 0%, #4a3554 100%);
  box-shadow: 0 2px 6px rgba(26, 35, 50, 0.2);
  gap: 6px;
  opacity: 0.95;
}

.student-chip.is-locked:active {
  transform: none;
  cursor: default;
}

.student-chip.is-editable {
  cursor: grab;
  background: linear-gradient(135deg, #b86b1a 0%, #e87a2e 100%);
  box-shadow: 0 3px 10px rgba(232, 122, 46, 0.3);
  gap: 6px;
}

.student-chip .lock-icon {
  font-size: 0.85em;
  line-height: 1;
  flex-shrink: 0;
}

.student-chip .chip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drag-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  min-height: var(--touch);
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orchard-purple-deep), var(--orchard-purple));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1.05);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Lunch zones (school meals = hero cards) —— */
.menu-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orchard-green);
}

.menu-section-label::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--orchard-green), transparent);
  border-radius: 2px;
}

.menu-board {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lunch-zones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.lunch-zone {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
  background-image: linear-gradient(180deg, #fff 0%, #fbfafc 100%);
  border-color: rgba(88, 28, 100, 0.12);
}

.lunch-zone.school-zone {
  min-height: 240px;
  border-width: 3px;
  border-color: rgba(2, 117, 56, 0.28);
  box-shadow: 0 10px 28px rgba(2, 117, 56, 0.12), var(--shadow);
}

.lunch-zone.school-zone .zone-header {
  background: linear-gradient(135deg, var(--orchard-green) 0%, #039647 100%);
  border-bottom: none;
  color: #fff;
  padding: 16px 16px 14px;
}

.lunch-zone.school-zone .zone-title {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.lunch-zone.school-zone .zone-count {
  min-width: 34px;
  height: 34px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--orchard-green);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.lunch-zone.school-zone .zone-body {
  min-height: 120px;
  padding: 14px;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(230, 245, 236, 0.45) 0%, transparent 48%),
    #fff;
}

.lunch-zone.school-zone .zone-placeholder {
  min-height: 88px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--orchard-green);
  border-color: rgba(2, 117, 56, 0.28);
  background: rgba(230, 245, 236, 0.35);
}

.lunch-zone.drag-over {
  border-color: var(--orchard-purple) !important;
  background: var(--orchard-purple-soft);
  box-shadow: 0 0 0 4px rgba(88, 28, 100, 0.18), var(--shadow-lg);
  transform: scale(1.01);
}

.lunch-zone.school-zone.drag-over {
  border-color: var(--orchard-gold) !important;
  box-shadow: 0 0 0 4px rgba(248, 186, 71, 0.4), var(--shadow-lg);
}

/* Home lunch — deliberately smaller / secondary */
.home-lunch-section {
  margin-top: 4px;
}

.home-lunch-section .menu-section-label {
  color: var(--home);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.home-lunch-section .menu-section-label::after {
  background: linear-gradient(90deg, #c5c9d0, transparent);
}

.lunch-zone.home-zone {
  min-height: 110px;
  max-width: 380px;
  border: 1.5px dashed #c5c9d0;
  border-radius: 14px;
  box-shadow: none;
  background: var(--home-soft);
  opacity: 0.92;
}

.lunch-zone.home-zone .zone-header {
  padding: 8px 12px;
  background: #e8eaed;
  border-bottom: 1px solid #d5d8dd;
}

.lunch-zone.home-zone .zone-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #4b5563;
  line-height: 1.25;
}

.lunch-zone.home-zone .zone-count {
  min-width: 24px;
  height: 24px;
  font-size: 0.72rem;
  background: #9ca3af;
  color: #fff;
}

.lunch-zone.home-zone .zone-body {
  min-height: 56px;
  padding: 8px;
  gap: 6px;
}

.lunch-zone.home-zone .zone-placeholder {
  min-height: 44px;
  font-size: 0.78rem;
  padding: 8px;
  color: #6b7280;
  border-style: dashed;
  border-color: #c5c9d0;
  background: transparent;
}

.lunch-zone.home-zone.drag-over {
  border-color: var(--home) !important;
  border-style: solid;
  background: #e5e7eb;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
  transform: none;
  opacity: 1;
}

.zone-header {
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.zone-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.zone-count {
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orchard-purple);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.zone-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 88px;
}

.zone-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  pointer-events: none;
}

/* Side panel with kids photo accent */
.panel.students-panel {
  position: relative;
  overflow: hidden;
}

.panel.students-panel::before {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  background: url("assets/kids.jpg") center/cover no-repeat;
  opacity: 0.12;
  border-radius: 50%;
  pointer-events: none;
}

/* —— Toast / feedback —— */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 10000;
  max-width: min(480px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--orchard-purple-deep);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: var(--danger);
}

/* —— Modal —— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(63, 18, 73, 0.5);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 4px solid var(--orchard-gold);
}

.modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--orchard-purple-soft);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--orchard-purple);
  font-weight: 800;
}

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.modal-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  background: var(--surface-2);
  padding: 12px;
  border-radius: 10px;
}

.modal-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.modal-confirm,
.modal-pin {
  width: min(440px, 100%);
}

.modal-footer-stack {
  flex-direction: column;
  align-items: stretch;
}

.confirm-question {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  color: var(--orchard-purple);
}

.confirm-detail {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orchard-green);
  padding: 12px 14px;
  background: var(--orchard-green-soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(2, 117, 56, 0.15);
}

.pin-error {
  margin: 0;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.9rem;
}

#pin-input {
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  text-align: center;
  font-weight: 800;
}

/* —— Loading —— */
/* Ensure [hidden] wins over display:flex (common browser/CSS gotcha) */
[hidden] {
  display: none !important;
}

.loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  padding: 20px;
  justify-content: center;
}

.loading-row[hidden] {
  display: none !important;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--orchard-purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* —— Setup layout —— */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 760px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .site-masthead .logo {
    height: 46px;
  }
}

.inline-add {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.inline-add input {
  flex: 1;
  min-height: var(--touch);
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafbfc;
}

.inline-add input:focus {
  outline: none;
  border-color: var(--orchard-purple);
  box-shadow: 0 0 0 3px var(--orchard-purple-soft);
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.edit-mode .topbar {
  border-color: #e87a2e;
  box-shadow: 0 0 0 2px rgba(232, 122, 46, 0.25), var(--shadow);
}

body.edit-mode .app-shell {
  outline: 3px solid rgba(232, 122, 46, 0.4);
  outline-offset: -3px;
  border-radius: 8px;
}

/* Footer strip */
.site-footer {
  margin-top: auto;
  padding: 10px 4px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(36, 36, 36, 0.65);
}

.site-footer a {
  color: var(--orchard-purple);
  font-weight: 700;
}

.alert-banner {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(248, 186, 71, 0.55);
  background: linear-gradient(90deg, #fff8ef, #fff);
  box-shadow: var(--shadow);
}
