.calendar-schedule { --cs-surface:#fff; --cs-ink:#28313b; --cs-muted:#68717d; --cs-line:#dfe3e7; --cs-accent:#39748d; --cs-soft:#edf5f8; --cs-alt:#fafafa; max-width:1320px; margin:0 auto; padding:26px 28px; border:1px solid #e5e7eb; border-radius:14px; background:var(--cs-surface); color:var(--cs-ink); font-family:Inter,Arial,sans-serif; line-height:1.5; }
.calendar-schedule * { box-sizing:border-box; }
.calendar-schedule :is(h1,h2,p) { margin:0; }
.calendar-schedule :is(button,a):focus-visible { outline:3px solid #73808c; outline-offset:3px; }
.cs-header { display:grid; grid-template-columns:1fr auto; align-items:center; gap:18px; margin-bottom:22px; padding:26px; border:1px solid #d8dde2; border-radius:14px; position:relative; isolation:isolate; overflow:hidden; background:linear-gradient(110deg,var(--cs-surface) 25%,#eaf4f7); }
.cs-header::before { content:''; position:absolute; z-index:-1; inset:0 0 0 50%; background-image:radial-gradient(#5593ab30 1px,transparent 1px); background-size:18px 18px; mask-image:linear-gradient(90deg,transparent,#000); }
.cs-header::after { content:''; position:absolute; z-index:-1; right:30px; top:-40px; width:145px; height:180px; border:16px solid #5593ab14; border-radius:28px; transform:rotate(28deg); }
.cs-header-main { display:flex; align-items:center; gap:16px; min-width:0; }
.cs-header-icon { display:grid; place-items:center; width:54px; height:54px; flex-shrink:0; border:1px solid #d8dde2; border-radius:15px; color:#39748d; background:var(--cs-surface); box-shadow:0 3px 8px #26313b09; }
.cs-header-icon svg { width:27px; height:27px; }
.cs-header h1 { font-size:clamp(23px,2.8vw,32px); font-weight:800; line-height:1.2; letter-spacing:-.035em; }
.cs-header p { color:var(--cs-muted); font-size:14px; margin-top:7px; }
.cs-pdf { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:9px 13px; border:1px solid var(--cs-accent); border-radius:7px; color:var(--cs-accent); background:var(--cs-surface); font-size:12px; font-weight:650; text-decoration:none; white-space:nowrap; }
.cs-pdf svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; }
.cs-years { display:flex; justify-content:center; gap:4px; flex-wrap:wrap; margin:0 0 24px; }
.cs-years button { min-width:82px; min-height:38px; padding:7px 17px; border:1px solid var(--cs-line); border-radius:6px; background:var(--cs-alt); color:var(--cs-muted); cursor:pointer; font:inherit; font-size:13px; font-weight:600; }
.cs-years button.active { color:#fff; background:#39748d; border-color:#39748d; }
.cs-group { margin-top:24px; }
.cs-group-heading { background:var(--cs-soft); color:var(--cs-ink); text-align:left; padding:11px 16px; border-radius:6px 6px 0 0; }
.cs-group-heading h2 { font-size:16px; line-height:1.4; font-weight:750; text-transform:uppercase; overflow-wrap:anywhere; }
.cs-mobile-period { display:block; font-size:11px; margin-top:3px; color:var(--cs-muted); }
.cs-table-wrap { border:1px solid var(--cs-line); border-left:3px solid var(--cs-accent); border-radius:6px; overflow:hidden; }
.cs-table { width:100%; border-collapse:collapse; table-layout:fixed; }
.cs-regime-width { width:18%; }.cs-activity-width { width:41%; }.cs-date-width { width:26%; }.cs-status-width { width:15%; }
.cs-mobile-status,.cs-mobile-only { display:none; }
.cs-status-cell { text-align:center; }
.cs-status { display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:4px 9px; border-radius:6px; font-size:11px; font-weight:650; line-height:1.4; white-space:nowrap; }
.cs-status-finished { background:#f0f1f2; color:#747b84; }
.cs-status-active { background:#e8f4ee; color:#28734f; }
.cs-status-soon { background:#fff2d9; color:#946419; }
.cs-status-planned { background:#eaf2fa; color:#3b6e99; }
.cs-status:not(.cs-status-finished)::before { content:''; width:6px; height:6px; flex-shrink:0; border-radius:50%; background:currentColor; }
.cs-table :is(th,td) { border-right:1px solid var(--cs-line); border-bottom:1px solid var(--cs-line); }
.cs-table tr > :last-child { border-right:0; }
.cs-table tbody tr:last-child td { border-bottom:0; }
.cs-table thead th { padding:9px 13px; text-align:center; background:var(--cs-soft); color:var(--cs-ink); font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.025em; }
.cs-table tbody td { padding:9px 13px; color:var(--cs-ink); font-size:13px; line-height:1.55; vertical-align:middle; overflow-wrap:anywhere; }
.cs-table tbody tr:nth-child(even) { background:var(--cs-alt); }
.cs-table tbody tr:hover { background:var(--cs-soft); }
.cs-table .cs-regime { background:var(--cs-soft); color:#39657a; text-align:center; font-size:14px; font-weight:750; border-bottom:0; padding:18px; }
.cs-note { display:table; margin-top:4px; padding:1px 6px; border-radius:4px; background:var(--cs-soft); color:#56616d; font-size:11px; }
.cs-empty { padding:40px 16px; text-align:center; border:1px dashed var(--cs-line); border-radius:8px; color:var(--cs-muted); font-size:14px; }
.cs-controls { padding:15px; border:1px solid var(--cs-line); border-radius:10px; margin-bottom:20px; background:var(--cs-surface); }
.cs-controls-main { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.cs-search { display:flex; align-items:center; gap:9px; flex:1 1 250px; min-width:0; padding:0 12px; background:var(--cs-alt); border:1px solid var(--cs-line); border-radius:7px; }
.cs-search svg { width:17px; height:17px; color:var(--cs-muted); flex-shrink:0; }
.cs-search input { width:100%; min-width:0; padding:10px 0; border:0; background:transparent; color:var(--cs-ink); font:inherit; font-size:13px; }
.cs-search:focus-within { outline:2px solid var(--cs-accent); outline-offset:2px; }
.cs-hide-finished { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--cs-muted); min-height:38px; cursor:pointer; }
.cs-hide-finished input { width:16px; height:16px; accent-color:#39748d; }
.cs-controls-bottom { display:flex; align-items:center; flex-wrap:wrap; gap:9px 12px; border-top:1px solid var(--cs-line); padding-top:11px; margin-top:12px; }
.cs-status-filter { display:flex; align-items:center; gap:8px; color:var(--cs-muted); font-size:12px; }
.cs-status-filter select { padding:7px; border:1px solid var(--cs-line); border-radius:6px; background:var(--cs-surface); color:var(--cs-ink); font:inherit; }
.cs-control-button { border:0; background:transparent; color:var(--cs-accent); padding:7px 4px; min-height:36px; font:inherit; font-size:12px; cursor:pointer; }
.cs-results { color:var(--cs-muted); font-size:12px; }
.cs-group-actions { display:flex; gap:9px; margin-left:auto; }
.cs-group-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; font:inherit; text-transform:inherit; text-align:left; }
.cs-group-meta { display:flex; align-items:center; gap:9px; flex-shrink:0; }
.cs-group-meta svg { width:17px; height:17px; transition:transform .15s; }
.cs-group-count { border-radius:20px; padding:2px 9px; background:var(--cs-surface); color:var(--cs-accent); font-size:11px; }
[data-theme="dark"] .calendar-schedule { --cs-surface:#242629; --cs-ink:#e5e7eb; --cs-muted:#acb0b7; --cs-line:#44484e; --cs-accent:#93bfd0; --cs-soft:#293940; --cs-alt:#202225; border-color:#383c42; }
[data-theme="dark"] .calendar-schedule .cs-regime { color:#d5d9df; }
[data-theme="dark"] .calendar-schedule .cs-note { color:#d5d9df; }
[data-theme="dark"] .calendar-schedule .cs-header { background:linear-gradient(110deg,var(--cs-surface),#303338); border-color:#484c52; }
[data-theme="dark"] .calendar-schedule .cs-header-icon { background:#303338; color:#d5d9df; border-color:#484c52; }
[data-theme="dark"] .calendar-schedule .cs-status-finished { background:#383c42; color:#b9bec6; }
[data-theme="dark"] .calendar-schedule .cs-status-active { background:#293e35; color:#a3d6b8; }
[data-theme="dark"] .calendar-schedule .cs-status-soon { background:#443c2b; color:#e8c784; }
[data-theme="dark"] .calendar-schedule .cs-status-planned { background:#293c4b; color:#a6c9e6; }
@media (max-width:600px) {
    .calendar-schedule { padding:18px 12px; border-radius:10px; }
    .cs-header { grid-template-columns:1fr; gap:14px; text-align:left; margin-bottom:16px; padding:18px 13px; }
    .cs-header-main { gap:10px; align-items:flex-start; }
    .cs-header-icon { width:36px; height:36px; border-radius:10px; }
    .cs-header-icon svg { width:21px; height:21px; }
    .cs-header h1 { font-size:23px; }.cs-header p { font-size:12px; }
    .cs-pdf { justify-self:stretch; min-height:40px; }
    .cs-years { margin-bottom:18px; gap:5px; }.cs-years button { min-width:65px; padding:7px 13px; }
    .cs-group { margin-top:18px; }
    .cs-group-heading { background:var(--cs-soft); color:var(--cs-ink); text-align:left; padding:11px 12px; border-radius:6px 6px 0 0; }
    .cs-group-heading h2 { font-size:12px; }
    .cs-mobile-period { display:block; font-size:10px; margin-top:3px; color:var(--cs-muted); }
    .cs-regime-col,.cs-table .cs-regime,.cs-status-col { display:none; }
    .cs-mobile-status { display:block; margin-top:5px; }
    .cs-mobile-only { display:inline; }
    .cs-status { font-size:10px; padding:3px 6px; }
    .cs-table .cs-date-cell { border-right:0; }
    .cs-activity-width { width:57%; }.cs-date-width { width:43%; }
    .cs-table-wrap { border-left-width:1px; border-radius:0 0 6px 6px; }
    .cs-table thead th { font-size:10px; padding:8px; }
    .cs-table tbody td { font-size:12px; padding:9px 8px; }
    .cs-note { font-size:10px; }
    .cs-controls { padding:12px; }
    .cs-controls-main { gap:6px; }.cs-search { flex-basis:100%; }
    .cs-group-actions { margin-left:0; width:100%; justify-content:space-between; }
    .cs-group-heading .cs-group-toggle { padding:0; }.cs-group-count { background:var(--cs-surface); color:var(--cs-ink); }
}
@media (prefers-reduced-motion:reduce) { .calendar-schedule * { animation:none!important; transition:none!important; } }
.cs-periods { margin-top:-10px; gap:7px; }
.cs-periods button { min-width:95px; border-radius:20px; }
.cs-periods button.active { background:var(--cs-soft); color:var(--cs-accent); border-color:var(--cs-accent); }
.cs-header-actions { display:flex; flex-direction:column; gap:12px; min-width:170px; }
.cs-year-picker { display:flex; flex-direction:column; gap:5px; color:var(--cs-muted); font-size:11px; font-weight:600; }
.cs-year-picker select { width:100%; min-height:40px; padding:8px 12px; border:1px solid var(--cs-line); border-radius:8px; background:var(--cs-surface); color:var(--cs-ink); font:inherit; font-size:16px; font-weight:700; }
.cs-periods { margin-top:0; }
@media (max-width:600px) {
    .cs-header-actions { width:100%; min-width:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end; gap:12px; }
    .cs-header-actions .cs-pdf { min-height:40px; white-space:normal; }
}
/* Period appears in the regime column on desktop and beside the mobile title. */
.cs-group-label { min-width:0; }
.cs-group-label .cs-mobile-period { display:none; }
@media (max-width:600px) {
    .cs-group-label { display:flex; align-items:center; gap:10px; }
    .cs-group-label .cs-mobile-period {
        display:block; flex:0 0 auto; max-width:90px; margin:0;
        padding:4px 7px; border:1px solid var(--cs-line); border-radius:6px;
        background:var(--cs-surface); color:var(--cs-accent); font-size:10px;
        line-height:1.4; text-transform:none; overflow-wrap:anywhere;
    }
    .cs-group-label > span { min-width:0; }
}
