.system-page { --system-gap: 24px; }
.system-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 32px; }
.system-tabs a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.system-tabs a:hover { background: var(--surface-muted); color: var(--ink); }
.system-tabs a[aria-current="page"] { background: var(--surface); border-color: var(--line); color: var(--accent); }
.system-stack { display: grid; gap: var(--system-gap); min-width: 0; }
.system-page .project-collection-heading { flex-wrap: wrap; margin: 0; }
.system-card { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.system-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.system-section-heading h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.4px; }
.system-section-heading .eyebrow { margin: 0; }
.system-hint { color: var(--muted); font-size: 12px; line-height: 1.7; }
.system-tag { display: inline-block; width: fit-content; padding: 6px 10px; border-radius: 8px; background: var(--surface-muted); color: var(--ink-soft); font-size: 11px; font-weight: 600; line-height: 1.5; }
.system-tag.enabled { background: var(--accent-soft); color: var(--accent-ink); }
.system-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.system-metrics > div { min-width: 0; padding: 18px; border-radius: 14px; background: var(--surface-muted); }
.system-metrics dt { color: var(--muted); font-size: 12px; line-height: 1.5; }
.system-metrics dd { margin: 12px 0 6px; color: var(--ink); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.system-metrics dd small { color: var(--muted); font-size: 16px; font-weight: 400; }
.system-metrics span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.system-facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 24px; }
.system-facts p { display: grid; gap: 6px; margin: 0; font-size: 13px; }
.system-facts span { color: var(--muted); font-size: 12px; }
.system-explainer { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border: 1px solid var(--accent-line); border-radius: 16px; background: var(--accent-tint); color: var(--accent-ink); }
.system-explainer > i { margin-top: 3px; flex-shrink: 0; font-size: 18px; }
.system-explainer h2 { margin: 0 0 8px; font-size: 15px; }
.system-explainer p { margin: 8px 0 0; font-size: 13px; line-height: 1.7; }
.system-empty { padding: 32px 20px; text-align: center; }
.system-empty > i { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.system-empty h3 { font-size: 18px; }
.system-empty p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.system-activity-list { list-style: none; margin: 0; padding: 0; }
.system-activity-list > li { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.system-activity-list > li:last-child { padding-bottom: 0; }
.system-activity-main { min-width: 0; overflow-wrap: anywhere; }
.system-activity-main h3 { margin: 10px 0 8px; font-size: 15px; line-height: 1.6; }
.system-activity-main p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.system-activity-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; flex-shrink: 0; }
.system-settings > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 650; }
.system-settings > summary::-webkit-details-marker { display: none; }
.system-settings > summary > span { display: flex; align-items: center; gap: 12px; }
.system-settings[open] > summary > i { transform: rotate(180deg); }
.system-settings form { margin-top: 28px; }
.system-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.system-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.system-fieldset legend { padding: 0; margin-bottom: 22px; font-size: 15px; font-weight: 700; }
.system-fieldset > label:not(.system-toggle), .system-field-pair label { display: block; margin: 18px 0 8px; font-size: 12px; color: var(--ink-soft); }
.system-page input:not([type="checkbox"]):not([type="hidden"]), .system-page select { min-width: 0; min-height: 46px; padding: 12px; border-radius: 10px; font-size: 14px; }
.system-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.system-form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.system-page .system-toggle { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.system-toggle span { min-width: 0; }
.system-toggle strong { display: block; font-size: 13px; }
.system-toggle small { display: block; margin-top: 8px; font-size: 12px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.system-page .system-toggle input { appearance: none; position: relative; flex: 0 0 40px; width: 40px; height: 24px; min-height: 24px; margin: 0; padding: 3px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); cursor: pointer; }
.system-toggle input::before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.system-toggle input:checked { border-color: var(--accent); background: var(--accent-soft); }
.system-toggle input:checked::before { transform: translateX(16px); background: var(--accent); }
.system-page .notice, .system-page .validation-summary { border: 1px solid var(--accent-line); border-radius: 12px; }
.system-page .validation-summary { border-color: var(--danger-line); }
.system-page .status::before { display: none; }
@media (max-width: 1100px) { .system-form-grid { grid-template-columns: minmax(0, 1fr); } .system-metrics { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .system-card { padding: 22px 18px; } .system-activity-list > li { flex-direction: column; } .system-activity-actions { flex-direction: row; flex-wrap: wrap; align-items: center; } .system-field-pair { grid-template-columns: minmax(0, 1fr); } .system-explainer { padding: 20px 18px; } .system-tabs a { padding-inline: 12px; } }
@media (forced-colors: active) { .system-page .system-toggle input { appearance: auto; } .system-toggle input::before { display: none; } }
.schedules-page .projects-heading { flex-wrap: wrap; }
.schedule-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.schedule-editor h2 { overflow-wrap: anywhere; }
.schedules-page .system-empty { padding: 32px 12px; }
.schedules-page .system-empty p { max-width: 420px; margin: 12px auto 24px; }
.schedules-page .schedule-list { display: grid; gap: 14px; }
.schedules-page .schedule-list > li { padding: 18px; border: 1px solid var(--line); border-radius: 14px; flex-wrap: wrap; }
.schedules-page .schedule-list > .schedule-selected { border-color: var(--accent-line); background: var(--accent-tint); }
.schedules-page .schedule-rule { margin-top: 14px; font-size: 12px; color: var(--muted); }
.schedule-rule summary { cursor: pointer; }
.schedule-editor .stack-form > label { margin-top: 16px; }
.schedule-frequency { margin-top: 18px; }
.schedule-frequency legend { margin-bottom: 4px; font-size: 12px; color: var(--ink-soft); }
.schedule-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.schedule-choice { position: relative; cursor: pointer; }
.schedules-page .schedule-choice input[type="radio"] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.schedule-choice span { display: grid; place-items: center; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.schedule-choice:hover span { border-color: var(--accent-line); }
.schedule-choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.schedule-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.schedule-advanced { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.schedule-advanced > summary { font-size: 13px; }
.schedule-advanced > .stack-form { margin-top: 16px; }
.schedules-page .system-form-footer { margin-top: 12px; gap: 12px; }
.schedules-page .system-form-footer .button { margin-top: 0; }
.schedules-page .system-form-footer .system-hint { flex-basis: 100%; }
.schedules-page [data-schedule-modes][hidden] { display: none; }
@media (max-width: 1150px) { .schedule-workspace { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .schedules-page .field-pair { grid-template-columns: minmax(0, 1fr); } }
@media (forced-colors: active) { .schedule-choice input:checked + span { outline: 2px solid Highlight; } }
