body{background:linear-gradient(135deg,#e5f5ff 0%,#f3f7ff 46%,#f8f7fc 100%) fixed}
.workspace{width:min(1800px,calc(100% - 48px))}
.strategy-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:20px 0 14px;padding:13px 30px;border:1px solid #d9e8f6;border-radius:20px;background:linear-gradient(120deg,#f7fcff 0%,#edf6ff 62%,#f2f1fb 100%);box-shadow:0 18px 42px rgba(30,58,113,.06)}
.strategy-heading h1{margin:0;color:#182758;font-size:clamp(32px,3vw,42px);font-weight:800;letter-spacing:-.05em;line-height:1.1}
.strategy-controls{flex:0 1 340px;min-width:250px;margin-left:auto}
.strategy-controls label{display:block;margin:0 0 7px 4px;color:#66748f;font-size:12px;font-weight:650}
.month-controls{display:flex;align-items:center;gap:7px;padding:6px;border:1px solid #dce5f4;border-radius:15px;background:#fff;box-shadow:0 7px 18px rgba(36,57,100,.06)}
.month-controls button,.month-controls select{height:38px;border:0;background:transparent;color:#1b2c60}
.month-controls button{flex:0 0 38px;border-radius:9px;font-size:25px;line-height:1}
.month-controls button:hover{background:#eef3fc}
.month-controls select{min-width:0;flex:1;padding:0 4px;font-size:14px;font-weight:700;text-align:center}
.strategy-overview{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.strategy-overview-item{display:flex;align-items:center;gap:9px;min-height:44px;padding:7px 14px 7px 8px;border:1px solid #dce5f4;border-radius:13px;background:#fff;color:#596780;font-size:12px;box-shadow:0 5px 18px rgba(37,61,107,.035)}
.strategy-overview-item strong{margin-left:5px;color:#1b2c60;font-size:16px;font-variant-numeric:tabular-nums}
.overview-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;font-size:16px}
.overview-posts{background:#e9effe;color:#293d83}.overview-dates{background:#f8eaf4;color:#802168}
.strategy-legend{display:flex;align-items:center;gap:17px;flex-wrap:wrap;margin-left:auto;color:#72809a;font-size:11px}
.strategy-legend span{display:inline-flex;align-items:center;gap:6px}
.strategy-legend i{width:8px;height:8px;border-radius:50%}.legend-post{background:#4769bd}.legend-story{background:#8f6ac0}.legend-event{background:#802168}
.strategy-calendar{overflow:hidden;border:1px solid #dbe4f0;border-radius:19px;background:#fff;box-shadow:0 20px 44px rgba(32,55,102,.08)}
.strategy-weekdays,.strategy-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.strategy-weekdays{border-bottom:1px solid #dce5f1;background:#f0f6fd}
.strategy-weekdays span{padding:13px 8px;color:#61718e;font-size:11px;font-weight:750;letter-spacing:.02em;text-align:center}
.strategy-weekdays span:nth-child(n+6){color:#8994aa}
.strategy-day,.strategy-blank{min-width:0;min-height:174px;border-right:1px solid #e8edf4;border-bottom:1px solid #e8edf4}
.strategy-day:nth-child(7n),.strategy-blank:nth-child(7n){border-right:0}
.strategy-day:nth-child(7n),.strategy-day:nth-child(7n-1),.strategy-blank:nth-child(7n),.strategy-blank:nth-child(7n-1){background:#fafbff}
.strategy-day{padding:10px;transition:background .16s ease}
.strategy-day:hover{background:#f9fbff}
.strategy-day.today{background:#f3f7ff}
.strategy-day.has-event{background:#fdf7fc}
.strategy-day-head{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:9px}
.strategy-day-number{display:grid;place-items:center;min-width:28px;height:28px;padding:0 5px;border-radius:9px;color:#344360;font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}
.strategy-day.today .strategy-day-number{background:#1c2c67;color:#fff}
.strategy-day.has-event .strategy-day-number{background:#802168;color:#fff}
.strategy-day-count{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:8px;background:#eaf0fb;color:#6b7da4;font-size:10px;font-weight:700}
.strategy-today-label{color:#3f5b9e;font-size:10px;font-weight:700}
.strategy-entries{display:grid;align-content:start;gap:6px}
.strategy-event,.strategy-post{min-width:0;width:100%;border-radius:9px;overflow:hidden;overflow-wrap:anywhere;text-align:left}
.strategy-event{display:grid;gap:3px;padding:9px 10px;border:1px solid #ebc9e2;border-left:3px solid #802168;background:#f9edf5;color:#632052}
.strategy-event-label{font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.strategy-event strong{font-size:12px;line-height:1.3}
.strategy-post{display:flex;align-items:stretch;gap:8px;min-height:70px;padding:6px;border:1px solid #d9e3f5;border-left:3px solid #4771c4;background:#f5f8ff;color:#182c5e;cursor:pointer;box-shadow:0 2px 5px rgba(45,72,128,.025);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.strategy-post:hover{transform:translateY(-2px);border-color:#9eb4dd;box-shadow:0 7px 15px rgba(45,72,128,.11)}
.strategy-post.story{border-color:#e2d8f0;border-left-color:#9770c1;background:#faf7ff}
.strategy-post:focus-visible,.strategy-more:focus-visible,.strategy-preview button:focus-visible{outline:3px solid #4771c4;outline-offset:2px}
.strategy-thumb{position:relative;display:grid;flex:0 0 48px;place-items:center;min-width:0;min-height:58px;overflow:hidden;border-radius:6px;background:#e7edfa;color:#7a89aa}
.strategy-thumb img,.strategy-thumb video{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.strategy-thumb-play{position:relative;z-index:1;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(18,35,80,.75);color:#fff;font-size:10px}
.strategy-thumb-empty{font-size:19px}
.strategy-post-body{display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:6px;min-width:0;padding:3px 2px 2px 0}
.strategy-post-excerpt{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;font-size:11px;font-weight:650;line-height:1.3;text-align:left}
.strategy-post-foot{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}
.strategy-post small{display:block;overflow:hidden;color:#7d8aa3;font-size:9px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.strategy-status{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#9ba5b5}.status-review{background:#3773c9}.status-changes{background:#d34e52}.status-approved{background:#2a9a69}.status-scheduled{background:#d6a627}.status-draft{background:#a3aab6}
.strategy-more{width:100%;padding:6px 8px;border:1px dashed #c4d2eb;border-radius:8px;background:#fff;color:#4866a0;font-size:11px;font-weight:650;text-align:left}
.strategy-more:hover{background:#eef3ff}
.strategy-error{margin-bottom:16px;padding:13px 16px;border:1px solid #f0c6c2;border-radius:10px;background:#fff3f1;color:#a72b20}
.strategy-loading{grid-column:1/-1;padding:34px;color:var(--muted)}
.strategy-note{margin:15px 2px;color:#72809a;font-size:12px}
.strategy-preview{width:min(920px,calc(100% - 32px));max-height:min(90vh,950px);padding:0;border:1px solid #dce5f4;border-radius:22px;background:#fff;color:#1b2c60;box-shadow:0 30px 90px rgba(10,24,65,.26)}
.strategy-preview::backdrop{background:rgba(16,29,67,.66);backdrop-filter:blur(4px)}
.strategy-preview-shell{padding:26px}
.strategy-preview-header{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:18px}
.strategy-preview-date{margin:0 0 5px;color:#72809a;font-size:12px;font-weight:650}
.strategy-preview-header h2{margin:0;font-size:clamp(23px,3vw,32px);line-height:1.12;letter-spacing:-.025em}
.strategy-preview-close{flex:0 0 40px;width:40px;height:40px;border:1px solid #dce5f4;border-radius:12px;background:#fff;color:#1b2c60;font-size:26px;line-height:1;cursor:pointer}
.strategy-preview-close:hover{background:#f1f5fc}
.strategy-preview-platforms{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}
.strategy-preview-platforms button{padding:9px 15px;border:1px solid #dce5f4;border-radius:10px;background:#fff;color:#405477;font-size:13px;font-weight:650;cursor:pointer}
.strategy-preview-platforms button.active{border-color:#1b2c60;background:#1b2c60;color:#fff}
.strategy-preview-content{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:22px;align-items:start}
.strategy-preview-media{display:grid;place-items:center;min-width:0;min-height:240px;overflow:hidden;border-radius:15px;background:#f1f5fb}
.strategy-preview-media img,.strategy-preview-media video{display:block;max-width:100%;max-height:min(60vh,630px);object-fit:contain}
.strategy-preview-placeholder{padding:32px;text-align:center;color:#71809a;font-size:14px}
.strategy-preview-frames{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;padding:11px;background:#f8faff;color:#576987;font-size:12px;font-weight:700}
.strategy-preview-frames button{width:34px;height:30px;border:1px solid #d7e0ef;border-radius:8px;background:#fff;color:#263b72;cursor:pointer}
.strategy-preview-frames button:disabled{opacity:.38;cursor:default}
.strategy-preview-copy{min-width:0;max-height:min(65vh,700px);overflow:auto;padding:2px 4px 10px 0}
.strategy-preview-status{display:flex;align-items:center;gap:7px;margin-bottom:14px;color:#687995;font-size:12px;font-weight:650}
.strategy-preview-platform-name{margin-left:auto}
.strategy-preview-text{overflow-wrap:anywhere;white-space:pre-wrap;color:#243451;font-size:15px;line-height:1.55}
.strategy-preview-text a{color:#315fbb;text-decoration:underline;text-underline-offset:2px}
.strategy-preview-text .custom-emoji{width:1.2em;height:1.2em;vertical-align:-.18em;object-fit:contain}
.strategy-preview-empty-text{color:#8591a4}
@media(max-width:1250px){.strategy-calendar{overflow-x:auto;scrollbar-color:#c7d4eb transparent}.strategy-weekdays,.strategy-grid{min-width:1260px}}
@media(max-width:1050px){.strategy-weekdays span{font-size:10px}.strategy-day,.strategy-blank{min-height:154px}.strategy-day{padding:7px}.strategy-post{gap:6px}.strategy-thumb{flex-basis:42px}.strategy-event strong{font-size:11px}}
@media(max-width:700px){.workspace{width:calc(100% - 20px)}.strategy-heading{flex-wrap:wrap;gap:12px;margin:14px 0 12px;padding:16px 20px;border-radius:17px}.strategy-heading h1{font-size:32px}.strategy-controls{flex:1 0 100%;min-width:0;margin-left:0}.strategy-overview{gap:7px;margin-bottom:12px}.strategy-overview-item{flex:1;min-width:0;padding-right:8px;font-size:11px}.strategy-legend{width:100%;margin:3px 0 0;justify-content:space-between;gap:8px}.strategy-calendar{border-radius:15px}.strategy-day,.strategy-blank{min-height:154px}.strategy-day{padding:8px}.strategy-note:after{content:' На телефоне календарь можно листать в сторону.'}.strategy-preview{width:calc(100% - 20px);max-height:92vh;border-radius:17px}.strategy-preview-shell{padding:17px}.strategy-preview-content{grid-template-columns:1fr;gap:14px}.strategy-preview-media{min-height:160px}.strategy-preview-media img,.strategy-preview-media video{max-height:42vh}.strategy-preview-copy{max-height:none}.strategy-preview-text{font-size:14px}}

/* Header controls match the unboxed Content heading. */
.strategy-heading{justify-content:flex-start;gap:16px;margin:32px 0 24px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.strategy-heading h1{font-size:30px;letter-spacing:-.025em}
.strategy-controls{flex:0 1 350px;min-width:260px;margin-left:auto}
.strategy-controls-label{display:block;margin:0 0 7px 4px;color:#66748f;font-size:12px;font-weight:650}
.month-controls{gap:3px;padding:5px;border-radius:12px}
.strategy-heading{position:relative;z-index:3}
.month-controls>button{display:grid;place-items:center}
.period-chevron{display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.month-controls .period-picker{position:relative;flex:1;min-width:0}
.month-controls .period-picker summary{display:flex;align-items:center;justify-content:space-between;gap:5px;height:38px;padding:0 5px;color:#1b2c60;font-size:14px;font-weight:700;cursor:pointer;list-style:none}
.month-controls .period-picker summary::-webkit-details-marker{display:none}
.month-controls .period-picker summary span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.month-controls .period-picker summary .period-chevron{color:#60708e}
.month-controls .period-picker[open] summary{border-radius:8px;background:#edf2fc}
.month-controls .period-picker-menu{position:absolute;top:calc(100% + 12px);left:50%;z-index:20;width:282px;max-width:calc(100vw - 32px);padding:12px;border:1px solid #d9e0ee;border-radius:13px;background:#fff;box-shadow:0 18px 42px rgb(30 50 100 / 18%);transform:translateX(-50%)}
.month-controls .period-picker-year{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.month-controls .period-picker-year strong{font-size:16px;color:#1b2c60;font-variant-numeric:tabular-nums}
.month-controls .period-picker-year button{display:grid;flex:0 0 34px;place-items:center;width:34px;height:34px;padding:0;border:1px solid #d9e0ee;border-radius:8px;background:#fff}
.month-controls .period-picker-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.month-controls .period-picker-months button{min-width:0;width:100%;height:35px;padding:5px 2px;border:0;border-radius:7px;background:#f5f7fc;color:#27385b;font-size:12px;text-transform:capitalize}
.month-controls .period-picker-months button:hover,.month-controls .period-picker-months button.active{background:#1b2c60;color:#fff}
.month-controls .period-picker-today{width:100%;height:34px;margin-top:9px;padding:5px;border:1px solid #d9e0ee;border-radius:8px;background:#fff;color:#405884;font-size:12px}
.strategy-add-date{display:grid;flex:0 0 48px;place-items:center;width:48px;height:48px;align-self:end;padding:0;border:0;border-radius:12px;background:#802168;color:#fff;font-size:29px;line-height:1}
.strategy-add-date:hover{background:#6d1d5b}
.strategy-event{position:relative;padding-right:34px}
.strategy-event-delete{position:absolute;right:5px;top:5px;display:grid;place-items:center;width:25px;height:25px;padding:3px;border:0;border-radius:6px;background:transparent;color:#802168;cursor:pointer}
.strategy-event-delete:hover{background:#efd9e9;color:#a42352}
.strategy-event-delete svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.strategy-date-dialog{width:min(680px,calc(100% - 32px));padding:28px;border:1px solid #dce5f4;border-radius:18px;background:#fff;color:#1b2c60}
.strategy-date-dialog::backdrop{background:rgba(16,29,67,.55)}
.strategy-date-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.strategy-date-dialog-head h2{margin:0;font-size:24px}
.strategy-date-dialog-head button{width:38px;height:38px;padding:0;border:1px solid #dce5f4;border-radius:9px;background:#fff;font-size:24px}
.strategy-date-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,220px);gap:14px;margin-top:22px}
.strategy-date-fields label{display:grid;gap:7px;font-size:13px;color:#687995}
.strategy-date-fields input{width:100%;min-width:0;height:44px;padding:9px 12px;border:1px solid #dce5f4;border-radius:9px;color:#1b2c60;font-size:14px}
.strategy-date-error{min-height:18px;margin:10px 0;color:#b42318;font-size:13px}
.strategy-date-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.strategy-date-actions button{min-height:42px;padding:9px 15px;border:1px solid #dce5f4;border-radius:9px;background:#fff;color:#1b2c60}
.strategy-date-actions button[type=submit]{border-color:#802168;background:#802168;color:#fff}
@media(max-width:700px){.strategy-heading{margin:20px 0 18px;padding:0;border-radius:0}.strategy-heading h1{font-size:30px}.strategy-controls{flex:1 1 calc(100% - 65px);order:2;margin-left:0}.strategy-add-date{order:3}.strategy-date-fields{grid-template-columns:1fr}}
