/* Extracted legacy schedule rules. Keep source order; existing screen overrides load later. */
@layer legacy {
.draft-list { display: grid; gap: 8px; margin: 10px 0; }
.schedule-rule-interview { margin-block: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel2); overflow-wrap: anywhere; }
.schedule-rule-interview > * + * { margin-block-start: 12px; }
.schedule-rule-interview fieldset { min-width: 0; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.schedule-rule-interview legend { max-width: 100%; padding-inline: 4px; font-weight: 600; }
.schedule-rule-interview label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; line-height: 1.5; }
.schedule-rule-interview .settings-field { display: grid; }
.schedule-rule-interview input[type="checkbox"], .schedule-rule-interview input[type="radio"] { flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0; }
.schedule-rule-interview button, .schedule-rule-interview select, .schedule-rule-interview input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; max-width: 100%; }
.schedule-rule-interview select { width: 100%; }
.schedule-rule-interview summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.schedule-rule-interview.schedule-tutorial-active:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--scrim);
  overscroll-behavior: contain;
}
.schedule-tutorial-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--panel);
  color: var(--text);
  padding-top: env(safe-area-inset-top, 0px);
}
.schedule-tutorial-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 64px;
  padding: 8px 16px;
}
.schedule-tutorial-toolbar button {
  width: auto;
  min-width: 48px;
  margin: 0;
  padding: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-sub);
  font-size: var(--fs-title);
  font-weight: 500;
}
.schedule-tutorial-progress { margin: 0; color: var(--muted); font-size: var(--fs-body); font-weight: 600; }
.schedule-tutorial-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 24px 16px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 16px;
}
.schedule-tutorial-title {
  margin: 0 0 16px;
  max-width: 15em;
  color: var(--text);
  font-size: var(--fs-display-l);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.schedule-tutorial-body > p { margin: 0 0 24px; color: var(--text-sub); font-size: var(--fs-title); line-height: 1.6; }
.schedule-tutorial-body .hint { color: var(--text-sub); font-size: var(--fs-body-l); line-height: 1.55; }
.schedule-rule-interview .schedule-tutorial-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  margin: 12px 0 0;
  padding: 20px;
  border: 2px solid transparent;
  border-radius: var(--r-lg);
  background: var(--panel2);
  box-shadow: none;
  color: var(--text);
  text-align: start;
  font-size: var(--fs-title-l);
  font-weight: 650;
  line-height: 1.5;
  transition: border-color .16s, background-color .16s;
}
.schedule-rule-interview .schedule-tutorial-choice.is-selected {
  border-color: var(--gold);
  background: var(--primary-bg);
}
.schedule-rule-interview .schedule-tutorial-choice.is-selected::after { content: "✓"; flex: 0 0 auto; color: var(--gold); font-size: var(--fs-title-xl); }
.schedule-tutorial-choice small { display: block; margin-top: 4px; color: var(--text-sub); font-size: var(--fs-body-l); font-weight: 400; }
.schedule-tutorial-summary { margin-block: 20px; padding: 18px; border-radius: var(--r-lg); background: var(--panel2); }
.schedule-tutorial-summary p { margin: 0; font-size: var(--fs-title); line-height: 1.55; }
.schedule-tutorial-summary p + p { margin-top: 12px; }
.schedule-tutorial-body .schedule-tutorial-meaning { margin: 12px 0; color: var(--text-sub); font-size: var(--fs-body-l); line-height: 1.7; white-space: pre-line; }
.schedule-tutorial-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-title); line-height: 1.5; }
.schedule-rule-interview .schedule-tutorial-inline { flex: 0 0 auto; width: auto; min-height: 44px; margin: 0; padding: 10px 4px; border: 0; background: transparent; box-shadow: none; color: var(--gold); font-size: var(--fs-body-l); font-weight: 600; }
.schedule-tutorial-body details { margin-block: 12px; color: var(--text-sub); font-size: var(--fs-body-l); }
.schedule-tutorial-body details p { font-size: var(--fs-body-l); line-height: 1.6; }
.schedule-tutorial-body summary { font-size: var(--fs-body-l); font-weight: 600; }
.schedule-tutorial-options { margin-top: 20px; }
.schedule-tutorial-options label { align-items: center; min-height: 52px; margin: 4px 0; font-size: var(--fs-title); }
.schedule-tutorial-body > label { align-items: center; color: var(--text-sub); font-size: var(--fs-title); }
.schedule-tutorial-options input[type="checkbox"] { accent-color: var(--gold); }
.schedule-tutorial-feedback { margin: 0; color: var(--text-sub); font-size: var(--fs-body-l); line-height: 1.5; }
.schedule-tutorial-feedback:empty { display: none; }
.schedule-tutorial-actions {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 16px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--panel);
}
.schedule-rule-interview .schedule-tutorial-actions button {
  width: 100%;
  min-height: 52px;
  margin: 0;
  border: 0;
  border-radius: var(--r-md);
  box-shadow: none;
  background: transparent;
  color: var(--text-sub);
  font-size: var(--fs-title-m);
  font-weight: 600;
}
.schedule-rule-interview .schedule-tutorial-actions button:first-child { min-height: 56px; background: var(--gold); color: var(--gold-ink); }
.schedule-rule-interview .schedule-tutorial-actions button:first-child:disabled { background: var(--panel3); color: var(--muted); }
.schedule-tutorial-panel :is(button, input, summary):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .schedule-rule-interview .schedule-tutorial-choice { transition: none; }
}
.draft-card { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; }
.draft-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.draft-chip { display: inline-flex; gap: 6px; align-items: center; margin: 4px; padding: 6px 10px; border-radius: var(--r-full); background: var(--panel3); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0; }
.draft-chip button { color: var(--muted); background: transparent; font-weight: 600; }
.draft-chip button { position: relative; }
.draft-chip button::before {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.draft-add-row { display: inline-flex; align-items: center; gap: 6px; margin: 4px; }
.draft-add-input { width: 78px; min-height: 44px; padding: 6px 8px; border-radius: var(--r-full); font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; }
.draft-add-btn { min-width: 44px; }
.draft-off-btn { min-width: 44px; }
}
