.schedule-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav h2 { min-width: 140px; margin: 0; text-align: center; font-size: 20px; }
.calendar-panel { padding: 0; overflow: hidden; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }
.calendar-weekdays span { padding: 12px 4px; }
.calendar-weekdays span:first-child { color: var(--danger); }
.calendar-day { min-height: 128px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.is-empty { background: #fafbfc; }
.day-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; }
.calendar-day.is-today .day-number { background: var(--blue); color: #fff; font-weight: 700; }
.day-events { display: grid; gap: 5px; margin-top: 7px; }
.calendar-event { display: flex; gap: 5px; width: 100%; min-width: 0; padding: 6px 7px; border: 0; border-radius: 7px; background: #edf4ff; color: #1b64da; cursor: pointer; text-align: left; font-size: 12px; }
.calendar-event time { flex: 0 0 auto; font-weight: 700; }
.calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-writing { background: #fff5db !important; color: #8a5b00 !important; }
.status-pending { background: #edf4ff !important; color: #1b64da !important; }
.status-ready { background: #f1ecff !important; color: #6941c6 !important; }
.status-posted { background: #eafaf0 !important; color: #087a37 !important; }
.status-hold { background: #f2f4f6 !important; color: var(--muted) !important; }
.schedule-list-panel { margin-top: 16px; }
.schedule-list { margin-top: 16px; }
.schedule-list article { display: grid; grid-template-columns: 70px 1fr auto auto; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.schedule-date strong, .schedule-date span { display: block; }
.schedule-date span, .schedule-main p { color: var(--muted); }
.schedule-main p { margin: 3px 0 0; }
.schedule-status { padding: 5px 9px; border-radius: 99px; background: #edf4ff; color: #1b64da; font-size: 12px; }
.schedule-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.schedule-view-toggle { display: flex; padding: 4px; border-radius: 11px; background: #f2f4f6; }
.schedule-view-toggle a { padding: 7px 12px; border-radius: 8px; color: var(--muted); }
.schedule-view-toggle a.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px #0001; font-weight: 700; }
.schedule-workbench { display: grid; grid-template-columns: 275px minmax(0, 1fr); padding: 0; overflow: hidden; }
.mini-calendar { padding: 20px; border-right: 1px solid var(--line); }
.mini-weekdays, .mini-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.mini-weekdays { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.mini-weekdays span { padding: 5px 0; }
.mini-weekdays span:first-child { color: var(--danger); }
.mini-day { position: relative; display: grid; place-items: center; width: 30px; height: 30px; margin: 2px auto; border-radius: 50%; font-size: 12px; }
.mini-day:hover { background: #edf4ff; color: var(--blue); }
.mini-day.is-selected { background: var(--blue); color: #fff; font-weight: 700; }
.mini-day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.mini-day i { position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.mini-day.is-selected i { background: #fff; }
.schedule-agenda { min-width: 0; }
.agenda-head { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 14px; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fafbfc; color: var(--muted); font-size: 12px; }
.agenda-head strong { color: var(--text); font-size: 14px; }
.agenda-row { display: grid; grid-template-columns: 76px 42px minmax(0, 1fr) 80px 30px; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #f5f9ff; }
.agenda-row time { font-weight: 700; text-align: center; }
.agenda-thumb { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 9px; background: #fff; color: #adb5bd; font-size: 7px; }
.agenda-thumb img { width: 100%; height: 100%; object-fit: cover; }
.agenda-row > div strong, .agenda-row > div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-row > div span { margin-top: 2px; color: var(--blue); font-size: 11px; }
.agenda-row em { color: var(--muted); font-size: 12px; font-style: normal; }
.agenda-row > button { border: 0; background: transparent; cursor: pointer; font-size: 20px; }
.empty-agenda-row { display: flex; align-items: center; justify-content: center; gap: 7px; width: calc(100% - 28px); min-height: 44px; margin: 8px 14px; border: 1px dashed #d1d6db; border-radius: 10px; background: #fff; color: var(--blue); cursor: pointer; }
.week-agenda { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); min-height: 230px; overflow-x: auto; }
.week-agenda section { padding: 10px 7px; border-right: 1px solid var(--line); }
.week-agenda section.is-today { background: #f5f9ff; }
.week-agenda header { display: flex; justify-content: space-between; padding: 5px; }
.week-agenda header span, .week-agenda p { color: var(--muted); font-size: 11px; }
.week-agenda section > button { display: grid; gap: 3px; width: 100%; margin-top: 6px; padding: 7px; border: 0; border-radius: 8px; background: #edf4ff; color: #1b64da; cursor: pointer; text-align: left; font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dashboard-schedules { margin-top: 16px; }
.dashboard-schedules a { display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.dashboard-schedules time, .dashboard-schedules span { color: var(--muted); }
.product-schedule-list { margin-top: 16px; }
.product-schedule-list article { display: grid; grid-template-columns: 62px 1fr 135px auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.product-schedule-list time { color: var(--muted); }
.product-schedule-list time strong { display: block; color: var(--text); font-size: 17px; }
.product-schedule-list p { margin: 3px 0 0; color: var(--muted); }
@media (max-width: 800px) {
    .calendar-panel { overflow-x: auto; }
    .calendar-weekdays, .calendar-grid { min-width: 720px; }
    .calendar-day { min-height: 108px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .product-schedule-list article { grid-template-columns: 55px 1fr auto; }
    .product-schedule-list article > form:last-child { grid-column: 2 / 4; }
    .schedule-workbench { grid-template-columns: 1fr; }
    .mini-calendar { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 500px) {
    .schedule-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
    .month-nav { justify-content: space-between; }
    .schedule-list article { grid-template-columns: 58px 1fr auto; gap: 10px; }
    .schedule-list article > .text-action { grid-column: 2 / 4; justify-self: start; }
    .schedule-toolbar-actions { align-items: stretch; flex-direction: column; }
    .schedule-view-toggle { justify-content: center; }
    .agenda-row { grid-template-columns: 54px 38px minmax(0, 1fr) 26px; gap: 7px; padding: 8px; }
    .agenda-row em { display: none; }
}
.schedule-select-field { margin-bottom: 18px; }
.schedule-field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.schedule-field-head button { border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 700; }
.schedule-quick-create { margin-top: 8px; padding: 10px; border-radius: 12px; background: #f4f7fb; }
.schedule-quick-create textarea { margin-bottom: 8px; resize: vertical; }
.schedule-quick-create span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.schedule-mode-options { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.schedule-mode-options .check-row { flex: 1; min-height: 44px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #f4f7fb; }
@media (max-width: 700px) {
    .schedule-mode-options { align-items: stretch; flex-direction: column; }
    .schedule-mode-options .check-row { width: 100%; }
}
