.lyte-entry {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 14px;
}
.lyte-entry .lyte-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #8c817b;
  font: 13px/1.5 "Lato", system-ui, -apple-system, sans-serif;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  min-height: 0;
  box-shadow: none;
  transition: color .15s, border-color .15s, background .15s;
}
.lyte-entry .lyte-edit-link:hover { color: #b8603a; border-color: #ffdac5; background: #fff8f5; }
.lyte-entry .lyte-edit-link svg { width: 14px; height: 14px; }

body.lyte-lock { overflow: hidden; }

#lyte-root {
  --lyte-peach-50: #fff8f5;
  --lyte-peach-100: #fff3ee;
  --lyte-peach-200: #ffebe2;
  --lyte-peach-300: #ffdac5;
  --lyte-peach-400: #f4c3a8;
  --lyte-ink: #4f4f4f;
  --lyte-ink-strong: #2e2926;
  --lyte-muted: #8c817b;
  --lyte-accent: #b8603a;
  --lyte-accent-hover: #9e4f2d;
  --lyte-accent-soft: #f7e1d5;
  --lyte-danger: #b9402c;
  --lyte-danger-soft: #fbe7e3;
  --lyte-ok: #3e7a58;
  --lyte-ok-soft: #e3f1e8;
  --lyte-shadow-sm: 0 1px 2px rgba(80,45,25,.06), 0 1px 1px rgba(80,45,25,.04);
  --lyte-shadow-md: 0 6px 20px rgba(80,45,25,.10), 0 2px 6px rgba(80,45,25,.06);
  --lyte-shadow-lg: 0 24px 60px rgba(60,30,15,.22);
  --lyte-serif: "Cormorant Garamond", Georgia, serif;
  --lyte-sans: "Lato", system-ui, -apple-system, sans-serif;
  color: var(--lyte-ink);
  font: 15px/1.5 var(--lyte-sans);
  -webkit-font-smoothing: antialiased;
}
#lyte-root, #lyte-root *, #lyte-root *::before, #lyte-root *::after { box-sizing: border-box; }
#lyte-root [hidden] { display: none !important; }
#lyte-root button, #lyte-root input, #lyte-root select, #lyte-root textarea {
  font-family: var(--lyte-sans);
  color: inherit;
  margin: 0;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  min-height: 0;
  height: auto;
}
#lyte-root button { cursor: pointer; }
#lyte-root button::before,
#lyte-root button::after,
.lyte-entry button::before,
.lyte-entry button::after {
  content: none !important;
  display: none !important;
}
#lyte-root :focus-visible { outline: 2px solid var(--lyte-accent); outline-offset: 2px; }

#lyte-root .lyte-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--lyte-peach-400);
  background: #fff;
  color: var(--lyte-ink-strong);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
#lyte-root .lyte-btn:hover { background: var(--lyte-peach-50); }
#lyte-root .lyte-btn-primary { background: var(--lyte-accent); border-color: var(--lyte-accent); color: #fff; }
#lyte-root .lyte-btn-primary:hover { background: var(--lyte-accent-hover); border-color: var(--lyte-accent-hover); }
#lyte-root .lyte-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
#lyte-root .lyte-btn-ghost { border-color: transparent; background: transparent; }
#lyte-root .lyte-btn-ghost:hover { background: var(--lyte-peach-100); }
#lyte-root .lyte-btn svg { width: 16px; height: 16px; flex: none; }
#lyte-root .lyte-btn-block { width: 100%; }
#lyte-root .lyte-spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: lyte-spin .7s linear infinite; }
@keyframes lyte-spin { to { transform: rotate(360deg); } }

#lyte-root .lyte-overlay {
  position: fixed;
  inset: 0;
  z-index: 100020;
  background: rgba(46,41,38,.45);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: lyte-fade .18s ease;
}
@keyframes lyte-fade { from { opacity: 0; } }
#lyte-root .lyte-modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--lyte-shadow-lg);
  padding: 30px 28px 26px;
  position: relative;
  animation: lyte-pop .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes lyte-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
#lyte-root .lyte-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--lyte-muted);
  font-size: 22px;
  line-height: 1;
  padding: 0;
}
#lyte-root .lyte-modal-close:hover { background: var(--lyte-peach-100); color: var(--lyte-ink-strong); }
#lyte-root .lyte-modal-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--lyte-peach-200); color: var(--lyte-accent); display: grid; place-items: center; margin-bottom: 14px; }
#lyte-root .lyte-modal-icon svg { width: 22px; height: 22px; }
#lyte-root .lyte-modal h2 { font: 500 30px/1.15 var(--lyte-serif); color: var(--lyte-ink-strong); margin: 0 0 8px; }
#lyte-root .lyte-modal p { margin: 0 0 20px; color: var(--lyte-ink); }
#lyte-root .lyte-field-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lyte-muted); margin-bottom: 6px; }
#lyte-root .lyte-text-input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--lyte-peach-400); background: #fff; font-size: 16px; }
#lyte-root .lyte-text-input:focus { outline: none; border-color: var(--lyte-accent); box-shadow: 0 0 0 3px var(--lyte-accent-soft); }
#lyte-root .lyte-form-error { color: var(--lyte-danger); font-size: 13px; margin: 8px 0 0; min-height: 1em; }
#lyte-root .lyte-modal .lyte-btn-block { margin-top: 16px; min-height: 46px; }
#lyte-root .lyte-otp { display: flex; gap: 8px; justify-content: space-between; }
#lyte-root .lyte-otp input { width: 100%; min-width: 0; height: 56px; text-align: center; font: 600 24px var(--lyte-sans); color: var(--lyte-ink-strong); border: 1px solid var(--lyte-peach-400); border-radius: 10px; background: #fff; padding: 0; }
#lyte-root .lyte-otp input:focus { outline: none; border-color: var(--lyte-accent); box-shadow: 0 0 0 3px var(--lyte-accent-soft); }
#lyte-root .lyte-otp.lyte-shake { animation: lyte-shake .35s; }
#lyte-root .lyte-otp.lyte-bad input { border-color: var(--lyte-danger); }
@keyframes lyte-shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
#lyte-root .lyte-modal-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 13px; }
#lyte-root .lyte-link-btn { border: 0; background: none; padding: 0; color: var(--lyte-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#lyte-root .lyte-link-btn:disabled { color: var(--lyte-muted); text-decoration: none; cursor: default; font-weight: 400; }

#lyte-root .lyte-editor { position: fixed; inset: 0; z-index: 100000; background: var(--lyte-peach-50); display: flex; flex-direction: column; animation: lyte-slide-up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes lyte-slide-up { from { transform: translateY(24px); opacity: 0; } }
#lyte-root .lyte-ed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--lyte-peach-300); }
#lyte-root .lyte-ed-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
#lyte-root .lyte-ed-title h2 { margin: 0; font: 500 28px/1.1 var(--lyte-serif); color: var(--lyte-ink-strong); }
#lyte-root .lyte-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--lyte-muted); }
#lyte-root .lyte-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lyte-ok); }
#lyte-root .lyte-status.lyte-dirty { color: #9a5b10; }
#lyte-root .lyte-status.lyte-dirty::before { background: #e39b2d; }
#lyte-root .lyte-status.lyte-error { color: var(--lyte-danger); }
#lyte-root .lyte-status.lyte-error::before { background: var(--lyte-danger); }
#lyte-root .lyte-ed-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#lyte-root .lyte-ed-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 24px; font-size: 13px; color: var(--lyte-muted); }
#lyte-root .lyte-who b { color: var(--lyte-ink); }
#lyte-root .lyte-mini-grip { display: inline-block; width: 10px; color: #c9b3a7; vertical-align: -3px; }
#lyte-root .lyte-mini-grip svg { width: 10px; }
#lyte-root .lyte-ed-grid { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(var(--lyte-days,6),minmax(200px,1fr)); gap: 14px; padding: 4px 24px 28px; align-items: start; }
#lyte-root .lyte-day { background: #fff; border: 1px solid var(--lyte-peach-300); border-radius: 12px; display: flex; flex-direction: column; min-height: 200px; }
#lyte-root .lyte-day > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--lyte-peach-200); border-radius: 12px 12px 0 0; }
#lyte-root .lyte-day h3 { margin: 0; font: 400 17px var(--lyte-sans); color: var(--lyte-ink-strong); }
#lyte-root .lyte-count { font-size: 12px; color: var(--lyte-muted); background: rgba(255,255,255,.7); border-radius: 999px; padding: 1px 8px; }
#lyte-root .lyte-slots { padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 70px; flex: 1; }
#lyte-root .lyte-slots:empty::before { content: attr(data-empty); display: grid; place-items: center; min-height: 60px; border: 1px dashed var(--lyte-peach-300); border-radius: 10px; color: var(--lyte-muted); font-size: 13px; font-style: italic; }
#lyte-root .lyte-slot { --lyte-tc: var(--lyte-accent); position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 6px; background: #fff; border: 1px solid #f0ddd2; border-left: 4px solid var(--lyte-tc); border-radius: 10px; padding: 10px 10px 10px 4px; box-shadow: var(--lyte-shadow-sm); transition: box-shadow .15s,border-color .15s,background-color .6s,opacity .18s,transform .18s; }
#lyte-root .lyte-slot:hover, #lyte-root .lyte-slot:focus-within { box-shadow: var(--lyte-shadow-md); }
#lyte-root .lyte-slot:focus-within { border-color: var(--lyte-peach-400); border-left-color: var(--lyte-tc); }
#lyte-root .lyte-slot.lyte-invalid { border-color: #ebb3a8; border-left-color: var(--lyte-danger); background: #fffbfa; }
#lyte-root .lyte-slot.lyte-flash { background: #fff1dd; }
#lyte-root .lyte-handle { border: 0; background: transparent; color: #c9b3a7; padding: 6px 0 0; width: 22px; display: grid; place-items: start center; cursor: grab; touch-action: none; }
#lyte-root .lyte-handle:hover { color: var(--lyte-accent); }
#lyte-root .lyte-handle:active { cursor: grabbing; }
#lyte-root .lyte-handle svg { width: 14px; height: 20px; }
#lyte-root .lyte-fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#lyte-root .lyte-row-top { display: flex; align-items: center; gap: 6px; }
#lyte-root .lyte-f-teacher { flex: 1; min-width: 0; height: 32px; padding: 0 26px 0 8px; border: 1px solid transparent; border-radius: 8px; background-color: transparent; font-weight: 700; font-size: 15px; color: var(--lyte-ink-strong); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238C817B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
#lyte-root .lyte-f-teacher:hover, #lyte-root .lyte-f-class:hover, #lyte-root .lyte-time-input:hover { border-color: var(--lyte-peach-300); background-color: var(--lyte-peach-50); }
#lyte-root .lyte-f-teacher:focus, #lyte-root .lyte-f-class:focus, #lyte-root .lyte-time-input:focus, #lyte-root .lyte-f-day:focus { outline: none; border-color: var(--lyte-accent); background-color: #fff; box-shadow: 0 0 0 3px var(--lyte-accent-soft); }
#lyte-root .lyte-tools { display: flex; gap: 2px; }
#lyte-root .lyte-tool { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; background: transparent; color: var(--lyte-muted); display: grid; place-items: center; font-size: 18px; line-height: 1; }
#lyte-root .lyte-tool svg { width: 15px; height: 15px; }
#lyte-root .lyte-tool:hover { background: var(--lyte-peach-100); color: var(--lyte-ink-strong); }
#lyte-root .lyte-tool.lyte-minus { font-size: 22px; font-weight: 700; }
#lyte-root .lyte-tool.lyte-minus:hover { background: var(--lyte-danger-soft); color: var(--lyte-danger); }
#lyte-root .lyte-f-class { width: 100%; height: 32px; padding: 0 6px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 13.5px; }
#lyte-root .lyte-f-class::placeholder { color: #c0ada2; font-style: italic; }
#lyte-root .lyte-times { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#lyte-root .lyte-time-input { height: 32px; padding: 0 6px; border: 1px solid transparent; border-radius: 8px; background: var(--lyte-peach-100); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--lyte-ink-strong); width: 58px; text-align: center; }
#lyte-root .lyte-time-input::-webkit-calendar-picker-indicator { display: none; }
#lyte-root .lyte-duration { margin-left: auto; font-size: 12px; color: var(--lyte-muted); font-variant-numeric: tabular-nums; }
#lyte-root .lyte-f-day { display: none; height: 32px; border: 1px solid var(--lyte-peach-300); border-radius: 8px; padding: 0 8px; background: #fff; font-size: 13px; }
#lyte-root .lyte-err { margin: 0; font-size: 12.5px; color: var(--lyte-danger); display: flex; gap: 5px; align-items: center; }
#lyte-root .lyte-err svg { width: 13px; height: 13px; flex: none; }
#lyte-root .lyte-add-btn { margin: 0 10px 10px; min-height: 42px; border-radius: 10px; border: 1.5px dashed var(--lyte-peach-400); background: transparent; color: var(--lyte-accent); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s,border-color .15s; }
#lyte-root .lyte-add-btn:hover { background: var(--lyte-peach-50); border-color: var(--lyte-accent); }
#lyte-root .lyte-plus { font-size: 20px; line-height: 1; }
#lyte-root .lyte-sortable-ghost { opacity: .35; background: var(--lyte-peach-200); border-style: dashed; }
#lyte-root .lyte-sortable-chosen { box-shadow: var(--lyte-shadow-lg); }
#lyte-root .lyte-sortable-drag { transform: rotate(1.5deg); }
#lyte-root .lyte-slots.lyte-drop-hover { background: var(--lyte-peach-50); border-radius: 0 0 12px 12px; }
#lyte-root .lyte-day-tabs { display: none; }
#lyte-root .lyte-confirm-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: #fff6d9; color: #6b5310; font-size: 14px; border-bottom: 1px solid #f2e2a9; }

#lyte-root .lyte-panel-wrap { position: fixed; inset: 0; z-index: 100015; background: rgba(46,41,38,.25); display: flex; justify-content: flex-end; animation: lyte-fade .15s; }
#lyte-root .lyte-panel { width: min(380px,100%); height: 100%; background: #fff; box-shadow: var(--lyte-shadow-lg); display: flex; flex-direction: column; animation: lyte-slide-in .22s cubic-bezier(.2,.8,.2,1); }
@keyframes lyte-slide-in { from { transform: translateX(30px); opacity: 0; } }
#lyte-root .lyte-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--lyte-peach-300); }
#lyte-root .lyte-panel .lyte-modal-close { position: static; }
#lyte-root .lyte-panel h3 { margin: 0; font: 500 26px var(--lyte-serif); color: var(--lyte-ink-strong); }
#lyte-root .lyte-panel-body { padding: 16px 20px; overflow: auto; flex: 1; }
#lyte-root .lyte-panel-intro { margin: 0 0 14px; font-size: 13.5px; color: var(--lyte-muted); }
#lyte-root .lyte-teacher-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
#lyte-root .lyte-teacher-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
#lyte-root .lyte-teacher-row .lyte-text-input { min-height: 40px; font-size: 15px; }
#lyte-root .lyte-teacher-count { font-size: 12px; color: var(--lyte-muted); white-space: nowrap; min-width: 54px; text-align: right; }
#lyte-root .lyte-teacher-row .lyte-minus:disabled { opacity: .3; cursor: not-allowed; background: transparent; color: var(--lyte-muted); }
#lyte-root .lyte-add-teacher { margin: 12px 0 0; width: 100%; }
#lyte-root .lyte-history-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--lyte-peach-200); }
#lyte-root .lyte-history-item b { display: block; color: var(--lyte-ink-strong); font-size: 14px; }
#lyte-root .lyte-history-item small { display: block; color: var(--lyte-muted); font-size: 12.5px; }
#lyte-root .lyte-pill { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lyte-ok); background: var(--lyte-ok-soft); padding: 3px 8px; border-radius: 999px; }

#lyte-root .lyte-toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 100030; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100% - 32px); }
#lyte-root .lyte-toast { display: flex; align-items: center; gap: 14px; background: var(--lyte-ink-strong); color: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: var(--lyte-shadow-lg); font-size: 14px; animation: lyte-toast-in .25s cubic-bezier(.2,.8,.2,1); }
#lyte-root .lyte-toast.lyte-ok { background: var(--lyte-ok); }
#lyte-root .lyte-toast button { border: 0; background: rgba(255,255,255,.16); color: #fff; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
#lyte-root .lyte-toast button:hover { background: rgba(255,255,255,.28); }
@keyframes lyte-toast-in { from { transform: translateY(10px); opacity: 0; } }

@media (max-width: 1100px) {
  #lyte-root .lyte-ed-grid { grid-template-columns: repeat(var(--lyte-days,6),240px); }
}
@media (max-width: 760px) {
  #lyte-root .lyte-ed-head { padding: 12px 16px; }
  #lyte-root .lyte-ed-title h2 { font-size: 24px; }
  #lyte-root .lyte-ed-actions { width: 100%; }
  #lyte-root .lyte-ed-actions #lyte-cancel { margin-left: auto; }
  #lyte-root .lyte-ed-actions .lyte-btn-primary { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100012; min-height: 50px; font-size: 15px; box-shadow: var(--lyte-shadow-lg); }
  #lyte-root .lyte-ed-actions .lyte-btn-primary:disabled { opacity: 1; background: #e3c2b2; border-color: #e3c2b2; }
  #lyte-root .lyte-toasts { bottom: 82px; }
  #lyte-root .lyte-label-optional { display: none; }
  #lyte-root .lyte-ed-sub { padding: 8px 16px; }
  #lyte-root .lyte-hint { display: none; }
  #lyte-root .lyte-day-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 16px 10px; scrollbar-width: none; }
  #lyte-root .lyte-day-tabs button { flex: none; border: 1px solid var(--lyte-peach-300); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; }
  #lyte-root .lyte-day-tabs button[aria-selected="true"] { background: var(--lyte-accent); border-color: var(--lyte-accent); color: #fff; }
  #lyte-root .lyte-day-tabs .lyte-n { font-weight: 400; opacity: .75; margin-left: 4px; }
  #lyte-root .lyte-ed-grid { grid-template-columns: 1fr; padding: 0 16px 90px; }
  #lyte-root .lyte-day:not(.lyte-active) { display: none; }
  #lyte-root .lyte-f-day { display: block; }
  #lyte-root .lyte-time-input { width: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  #lyte-root *, #lyte-root *::before, #lyte-root *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

