.ner-app {
  --ner-ink: #241b35;
  --ner-muted: #6b6177;
  --ner-brand: #7350a8;
  --ner-brand-dark: #56377f;
  --ner-soft: #f5f0fb;
  --ner-line: #e5ddef;
  color: var(--ner-ink);
  font-family: inherit;
  max-width: 980px;
  margin: 2rem auto;
}
.ner-heading { margin-bottom: 1.4rem; }
.ner-heading h2 { margin: .2rem 0 .55rem; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.ner-heading p { color: var(--ner-muted); max-width: 680px; }
.ner-eyebrow { color: var(--ner-brand) !important; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ner-panel { background: var(--ner-soft); border: 1px solid var(--ner-line); border-radius: 18px; padding: 1.2rem; }
.ner-panel label, .ner-dialog label { display: grid; gap: .35rem; font-weight: 700; }
.ner-panel select, .ner-dialog input { width: 100%; border: 1px solid #cfc3dd; border-radius: 10px; background: #fff; color: var(--ner-ink); min-height: 46px; padding: .65rem .8rem; }
.ner-pattern { margin: .65rem 0 0; color: var(--ner-brand-dark); font-weight: 700; }
.ner-status { min-height: 1.5rem; margin: 1.2rem 0 .5rem; color: var(--ner-muted); }
.ner-status.is-error, .ner-form-error { color: #a12334; }
.ner-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .85rem; }
.ner-day { border: 1px solid var(--ner-line); border-radius: 15px; padding: 1rem; background: #fff; }
.ner-day h3 { margin: 0 0 .75rem; font-size: 1rem; text-transform: capitalize; }
.ner-times { display: flex; flex-wrap: wrap; gap: .45rem; }
.ner-time, .ner-button { border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 750; }
.ner-time { background: var(--ner-soft); color: var(--ner-brand-dark); padding: .55rem .72rem; border: 1px solid #dfd1ef; }
.ner-time:hover, .ner-time:focus-visible { background: var(--ner-brand); color: #fff; }
.ner-time-wide { width: 100%; margin-bottom: .45rem; text-align: left; }
.ner-button { background: var(--ner-brand); color: #fff; padding: .75rem 1rem; }
.ner-button:hover, .ner-button:focus-visible { background: var(--ner-brand-dark); }
.ner-button:disabled, .ner-time:disabled { opacity: .5; cursor: wait; }
.ner-empty { grid-column: 1 / -1; padding: 1.4rem; background: #faf8fc; border-radius: 14px; color: var(--ner-muted); }
.ner-dialog[hidden] { display: none; }
.ner-dialog { position: fixed; z-index: 999999; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(26, 17, 37, .64); }
.ner-dialog-card { position: relative; width: min(520px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: 0 24px 70px rgba(20, 10, 35, .28); }
.ner-dialog-card h3 { margin: 0 2rem .5rem 0; }
.ner-dialog-card form { display: grid; gap: .8rem; }
.ner-close { position: absolute; right: .8rem; top: .65rem; border: 0; background: transparent; color: var(--ner-muted); font-size: 1.8rem; cursor: pointer; }
.ner-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ner-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin: 1rem 0; background: var(--ner-soft); border-radius: 10px; padding: .25rem; }
.ner-auth-tabs button { border: 0; border-radius: 8px; background: transparent; padding: .6rem; cursor: pointer; }
.ner-auth-tabs button.is-active { background: #fff; color: var(--ner-brand-dark); box-shadow: 0 1px 5px rgba(30,10,50,.12); }
.ner-confirm-service { color: var(--ner-brand-dark); font-weight: 800; }
.ner-booking-card { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(190px, 1fr) auto; gap: 1rem; align-items: center; border-bottom: 1px solid var(--ner-line); padding: 1rem .25rem; }
.ner-history { grid-column: 1 / -1; color: var(--ner-muted); font-size: .92rem; }
.ner-history summary { color: var(--ner-brand-dark); cursor: pointer; font-weight: 700; }
.ner-history ul { margin: .55rem 0 0; padding-left: 1.25rem; }
.ner-attendance { justify-self: start; border-radius: 999px; padding: .32rem .65rem; background: #eee9f3; color: var(--ner-muted); font-size: .84rem; font-weight: 750; }
.ner-attendance.is-present { background: #e3f5e9; color: #176436; }
.ner-attendance.is-absent { background: #fde7e9; color: #952638; }
.ner-attendance.is-recovered { background: #e7effd; color: #2c5795; }
.ner-attendance.is-cancelled { background: #ececec; color: #555; }
.ner-credits { display: grid; gap: .3rem; background: var(--ner-soft); border: 1px solid var(--ner-line); border-radius: 14px; padding: 1rem; margin-bottom: 1rem; }
.ner-credits:empty { display: none; }
.ner-link-button { border: 0; background: transparent; color: var(--ner-brand-dark); text-decoration: underline; cursor: pointer; font-weight: 700; }
.ner-reschedule-slots { margin-top: 1rem; }
.ner-calendar-sync { display: grid; gap: .65rem; background: #fff; border: 1px solid var(--ner-line); border-radius: 14px; padding: 1rem; margin-bottom: 1rem; }
.ner-calendar-sync:empty { display: none; }
.ner-calendar-sync p { margin: 0; color: var(--ner-muted); }
.ner-calendar-button { display: inline-block; width: fit-content; text-decoration: none; }
.ner-calendar-sync small { display: block; color: var(--ner-muted); }
.ner-calendar-sync details { margin-top: .25rem; }
.ner-calendar-sync summary { color: var(--ner-brand-dark); cursor: pointer; font-weight: 700; }
.ner-calendar-sync input { width: 100%; margin: .55rem 0; border: 1px solid #cfc3dd; border-radius: 9px; padding: .55rem; }
.ner-calendar-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .7rem; font-size: .88rem; }
.ner-calendar-actions a { color: var(--ner-brand-dark); }
@media (max-width: 620px) {
  .ner-fields { grid-template-columns: 1fr; }
  .ner-booking-card { grid-template-columns: 1fr; gap: .25rem; }
}
