.task-table { min-width: 1180px; }
.schedule-period { border-radius: 10px; box-shadow: 0 2px 0 rgba(42, 74, 96, .035); }
.schedule-period:nth-child(2) { border-top: 3px solid var(--accent); }
.schedule-period:nth-child(3) { border-top: 3px solid var(--blue); }
.schedule-period:nth-child(4) { border-top: 3px solid #e8b84a; }
.schedule-period .schedule-quick { border-radius: 9px; background: var(--surface-soft); }
.schedule-period .schedule-quick input { border-radius: 8px; }
.schedule-period .schedule-card.task-complete { border-radius: 7px; background: #edf6fc; box-shadow: inset 3px 0 var(--blue); }
.schedule-period .schedule-result.done { color: #2879b5; }
.schedule-period .schedule-ai-badge,
.schedule-period .schedule-ai-badge.is-running { color: #286fa8; background: #e4f2fc; }
.schedule-period .schedule-ai-status.is-running { color: #286fa8; background: #e4f2fc; }
.schedule-period .schedule-ai-toggle.is-running { border-color: #c5e0f2; background: #eaf4fb; color: #398bd0; }
.schedule-period .schedule-list.drag-over { background: rgba(57, 139, 208, .08); }
.schedule-period .schedule-card[draggable="true"]:hover { background: #f6fafd; }
.schedule-period .schedule-card[draggable="true"]::before { color: #8196a6; }
.schedule-summary-cards button { border-radius: 11px; box-shadow: 0 2px 0 rgba(42, 74, 96, .045); }
.schedule-summary-cards button:hover { transform: translateY(-1px); }
.schedule-dialog, .modal { border-radius: 12px; }
.schedule-overview-strip { display:flex; align-items:center; justify-content:space-between; gap:14px; min-width:0; overflow-x:auto; margin:12px 0 18px; padding:9px 12px; border:1px solid var(--line); border-radius:11px; background:var(--surface); box-shadow:0 2px 0 rgba(42,74,96,.035); scrollbar-width:thin; }
.schedule-overview-controls { display:flex; align-items:center; flex:0 0 auto; gap:9px; min-width:0; white-space:nowrap; }
.schedule-overview-controls .schedule-date { flex-wrap:nowrap; gap:5px; }
.schedule-overview-controls .schedule-date button, .schedule-overview-controls > button { padding:6px 9px; font-size:12px; }
.schedule-overview-controls .schedule-date input { width:132px; max-width:132px; padding:6px 8px; }
.schedule-overview-date { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; }
.schedule-overview-date strong { color:var(--text); font-size:13px; }
.schedule-overview-date span { white-space:nowrap; }
.schedule-capacity-warning { color:#9a7210; font-weight:700; }
.schedule-overview-controls #sc-sync { color:var(--muted); font-size:11px; }
.schedule-summary-cards { display:flex; flex:0 0 auto; gap:6px; margin:0; }
.schedule-summary-cards button { display:flex; align-items:center; gap:7px; min-width:94px; padding:7px 10px; border-radius:9px; box-shadow:none; }
.schedule-summary-cards span { font-size:11px; white-space:nowrap; }
.schedule-summary-cards strong { order:2; margin-left:auto; font-size:16px; }
.schedule-summary-cards small { display:none; }
.brand { gap:6px; }
.brand-home { width:32px; height:32px; flex-basis:32px; padding:7px; }
.brand-copy { min-width:0; }
.brand-copy > strong { font-size:14px; }
.brand-copy > span { max-width:102px; }
body[data-theme="green-yellow"] {
  --sidebar:#f1f7e9;
  --sidebar-text:#3e5668;
  --accent:#59a832;
  --accent-strong:#3d8122;
  --accent-soft:#edf7e6;
  --accent-sidebar:#5ba933;
  --blue:#e2b92c;
}
body[data-theme="green-yellow"] .sidebar { background:#f1f7e9; border-right-color:#dce9ce; }
body[data-theme="green-yellow"] .nav-item:hover { background:#e7f1db; }
body[data-theme="green-yellow"] .nav-item.active::before { background:#f0c63b; }
body[data-theme="green-yellow"] .schedule-period:nth-child(3) { border-top-color:#e2b92c; }
body[data-theme="green-yellow"] .schedule-period:nth-child(4) { border-top-color:#80bd4c; }
.sidebar-theme-picker { display:flex; align-items:center; gap:10px; margin-top:auto; padding:12px 9px 9px; }
.local-note { margin-top:0; }
.sidebar-theme-picker .theme-dot { display:block; box-sizing:border-box; width:24px; min-width:24px; height:24px; min-height:24px; aspect-ratio:1 / 1; flex:0 0 24px; padding:0; border:1px solid #aeb8c2; border-radius:50%; box-shadow:none; outline:0 solid transparent; outline-offset:2px; }
.sidebar-theme-picker .theme-dot:hover { transform:scale(1.08); }
.sidebar-theme-picker .theme-dot.active { outline:2px solid var(--accent); }
.theme-dot-orange { background:linear-gradient(90deg,#F97316 0 50%,#23211F 50%); }
.theme-dot-blue { background:linear-gradient(90deg,#85B7EB 0 50%,#FFFFFF 50%); }
.theme-dot-green-yellow { background:linear-gradient(90deg,#59a832 0 50%,#f0c63b 50%); }
.theme-dot-purple-white { background:linear-gradient(90deg,#554bb2 0 50%,#efedff 50%); }
body[data-theme="orange"] {
  --sidebar:#23211F;
  --sidebar-text:#f4f1ed;
  --accent:#F97316;
  --accent-strong:#c94e08;
  --accent-soft:#fff0e6;
  --accent-sidebar:#F97316;
}
body[data-theme="orange"] .sidebar { border-right-color:#3d3935; }
body[data-theme="orange"] .brand-copy > strong,
body[data-theme="orange"] .current-user-info strong { color:#fff; }
body[data-theme="orange"] .brand-copy > span,
body[data-theme="orange"] .current-user-info span,
body[data-theme="orange"] .auth-logout { color:#c8c2bc; }
body[data-theme="orange"] .local-note { border-top-color:#3d3935; }
body[data-theme="orange"] .nav-item { color:#f4f1ed; }
body[data-theme="orange"] .nav-item span { color:#F97316; }
body[data-theme="orange"] .nav-item:hover { color:#fff; background:#35312e; }
body[data-theme="orange"] .nav-item.active,
body[data-theme="orange"] .nav-item.active span { color:#23211F; }
body[data-theme="orange"] .nav-item.active::before { background:#F97316; }
body[data-theme="orange"] button.primary { color:#23211F; }
body[data-theme="blue"] {
  --sidebar:#FFFFFF;
  --sidebar-text:#304252;
  --accent:#85B7EB;
  --accent-strong:#4d7ea9;
  --accent-soft:#edf5fd;
  --accent-sidebar:#85B7EB;
}
body[data-theme="blue"] .sidebar { border-right-color:#e4edf6; }
body[data-theme="blue"] .brand-copy > strong,
body[data-theme="blue"] .current-user-info strong { color:#263846; }
body[data-theme="blue"] .brand-copy > span,
body[data-theme="blue"] .current-user-info span,
body[data-theme="blue"] .auth-logout { color:#71808b; }
body[data-theme="blue"] .local-note { border-top-color:#e4edf6; }
body[data-theme="blue"] .nav-item:hover { color:#263846; background:#f1f7fc; }
body[data-theme="blue"] .nav-item.active,
body[data-theme="blue"] .nav-item.active span { color:#23211F; }
body[data-theme="blue"] .nav-item.active::before { background:#85B7EB; }
body[data-theme="blue"] button.primary { color:#23211F; }
body[data-theme="purple-white"] {
  --sidebar:#FFFFFF;
  --sidebar-text:#37344f;
  --accent:#554bb2;
  --accent-strong:#40388f;
  --accent-soft:#efedff;
  --accent-sidebar:#554bb2;
}
body[data-theme="purple-white"] .sidebar { border-right-color:#e5e2f7; }
body[data-theme="purple-white"] .brand-copy > strong,
body[data-theme="purple-white"] .current-user-info strong { color:#302e40; }
body[data-theme="purple-white"] .brand-copy > span,
body[data-theme="purple-white"] .current-user-info span,
body[data-theme="purple-white"] .auth-logout { color:#77748c; }
body[data-theme="purple-white"] .local-note { border-top-color:#e5e2f7; }
body[data-theme="purple-white"] .nav-item:hover { color:#302e40; background:#f4f2ff; }
body[data-theme="purple-white"] .nav-item.active,
body[data-theme="purple-white"] .nav-item.active span { color:#fff; }
body[data-theme="purple-white"] .nav-item.active::before { background:#efedff; }
@media (max-width: 760px) {
  .task-table { min-width: 1180px; }
  .schedule-period { border-radius: 10px; }
  .schedule-overview-strip { justify-content:flex-start; }
  .schedule-overview-controls { flex:0 0 auto; }
  .schedule-summary-cards { flex:0 0 auto; }
  .sidebar-theme-picker { padding-left:8px; }
}
