:root{--ink:#192d32;--muted:#69777b;--brand:#176653;--line:#e0e5e1;--amber:#9b6717;--red:#ae3434;--blue:#356f99}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#f6f7f5;color:var(--ink);font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit;color:inherit}button,.file-button{border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 15px;cursor:pointer;font-weight:550;line-height:1.35;min-height:44px}button:hover,.file-button:hover{background:#edf3ef}button:disabled{opacity:.48;cursor:not-allowed}button.primary{background:var(--brand);border-color:var(--brand);color:#fff}button.primary:hover{background:#0d5141}button.secondary{border-color:#c1d1c8;background:#f8fbf9}button.quiet{background:transparent}button.text-button{background:transparent;border:0;color:var(--brand);padding-left:0;font-size:14px}a{color:var(--brand)}:focus-visible{outline:3px solid #58a99a;outline-offset:3px}input,select,textarea{background:#fff;border:1px solid #bbc9c1;border-radius:9px;padding:10px;width:100%;min-height:44px}textarea{resize:vertical;line-height:1.6}label{display:block;font-size:14px;font-weight:550;margin:12px 0}label input,label select,label textarea{display:block;margin-top:6px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,3vw,38px);letter-spacing:-1px;line-height:1.2;margin:8px 0 10px}h2{font-size:23px;line-height:1.3;margin-bottom:12px}h3{font-size:17px;line-height:1.4;margin-bottom:10px}p{margin-bottom:12px}small,.muted{font-size:13px;color:var(--muted);font-weight:400}.eyebrow{font-size:11px;letter-spacing:1.4px;font-weight:700;color:var(--brand)}.topbar{display:flex;align-items:center;justify-content:space-between;padding:18px max(24px,calc((100vw - 1220px)/2));background:#fff;border-bottom:1px solid var(--line);gap:12px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-size:20px;font-weight:750;line-height:1.2}.brand small{display:block;margin-top:4px}.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#e8f1ec;color:var(--brand)}.header-actions,.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.msk{font-size:12px;color:var(--muted);margin-right:12px}.tabs{display:flex;gap:8px;overflow-x:auto;white-space:nowrap;padding:12px max(24px,calc((100vw - 1220px)/2));background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:3}.tabs button{border:0;background:transparent;color:var(--muted)}.tabs button[aria-current=page]{background:#e8f1ec;color:var(--brand)}main{max-width:1220px;margin:32px auto 80px;padding:0 24px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.page-heading p{color:var(--muted);margin-bottom:0}.page-heading.compact{margin-top:32px;margin-bottom:16px}.compact h2{font-size:27px;margin-bottom:5px}.notice{max-width:1172px;margin:16px auto 0;border-radius:12px;padding:12px 16px;background:#e5f1ec;color:var(--brand)}.notice.error{background:#fff0ec;color:#923e30}.calendar-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.month-controls{display:flex;gap:12px;align-items:center}.month-controls h2{margin:0;min-width:175px;text-align:center;font-size:20px;text-transform:capitalize}.date-control{margin:0 0 0 auto;display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.date-control input{width:158px;margin:0;font-size:14px}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekdays{font-size:12px;color:var(--muted);margin:18px 0 8px;text-align:center}.day-cell{min-height:76px;padding:10px;text-align:left;background:#fafbf9;border-color:transparent;overflow:hidden}.day-cell .day-number{font-size:16px;display:block}.day-cell .cell-state{font-size:11px;display:block;margin-top:5px;font-weight:500}.day-cell .cell-count{font-size:11px;color:var(--muted);display:block}.day-cell.selected{border:2px solid var(--brand);background:#eef5f0;padding:9px}.day-cell.today .day-number::after{content:' · сегодня';font-size:10px;color:var(--brand)}.day-cell.past{background:#f4f5f3}.day-cell.draft .cell-state{color:var(--amber)}.day-cell.ready .cell-state{color:var(--brand)}.day-cell.sent .cell-state{color:var(--blue)}.day-cell.problem .cell-state{color:var(--red)}.calendar-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:11px;color:var(--muted);margin-top:16px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.dot.draft{background:#d3a053}.dot.ready{background:var(--brand)}.dot.sent{background:var(--blue)}.dot.problem{background:var(--red)}.summary-strip{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.summary-item{padding:12px 18px;background:white;border:1px solid var(--line);border-radius:12px;font-size:13px}.summary-item strong{display:block;font-size:24px;line-height:1.2;margin-bottom:4px}.summary-item.warning strong{color:var(--red)}.callout{background:#fff7e8;color:#7a571e;padding:13px 16px;border:1px solid #f0dfb9;border-radius:10px;font-size:14px}.branch-grid,.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.branch-card,.post-card{background:white;border:1px solid var(--line);border-radius:14px;padding:18px;min-width:0;display:flex;flex-direction:column;gap:10px}.branch-card h3,.post-card h3{margin-bottom:0}.branch-card .card-content{display:flex;gap:12px;align-items:start}.card-thumb{width:78px;height:84px;border-radius:8px;object-fit:contain;background:#f2f4f1;flex-shrink:0}.branch-card .excerpt{font-size:13px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-bottom:0}.branch-card .actions{margin-top:auto;padding-top:7px}.branch-meta{font-size:12px;color:var(--muted)}.badge{font-size:11px;line-height:1.4;padding:5px 8px;border-radius:6px;background:#f6ecd6;color:var(--amber);display:inline-block;align-self:start;font-weight:650}.badge.ready{background:#e5f1e9;color:var(--brand)}.badge.sent{background:#e8f1f8;color:var(--blue)}.badge.problem{background:#fff0ec;color:var(--red)}.badge.muted{background:#f0f2ef;color:var(--muted)}.day-footer{position:sticky;bottom:0;z-index:2;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:14px;padding:16px 20px;margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;box-shadow:0 -5px 20px #203d3010}.day-footer p{font-size:12px;color:var(--muted);margin:3px 0 0}.filters{display:flex;align-items:end;flex-wrap:wrap;gap:14px;margin-bottom:20px}.filters label{margin:0;min-width:160px}.filters label:nth-child(3){flex:1;min-width:200px}.library-grid{margin:0 0 20px}.post-card>img{width:100%;height:155px;object-fit:contain;background:#f3f4f1;border-radius:8px}.post-card button{margin-top:auto}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.status-line{margin:14px 0;font-size:14px;color:var(--brand)}dialog{border:1px solid var(--line);border-radius:18px;padding:24px;width:min(520px,calc(100vw - 24px));max-height:92dvh;overflow:auto;color:var(--ink);box-shadow:0 24px 80px #0b272530}dialog::backdrop{background:#142f2bcc;backdrop-filter:blur(3px)}dialog.wide{width:min(920px,calc(100vw - 24px))}dialog.editor-dialog{width:min(1180px,calc(100vw - 24px))}.dialog-head{display:flex;align-items:start;gap:16px;justify-content:space-between;padding-bottom:14px;background:white;position:sticky;top:-24px;z-index:2}.dialog-head h2{font-size:24px;margin:6px 0}.dialog-head>button{flex-shrink:0}.editor-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px}.editor-fields label:first-child{margin-top:0}.story-fields{background:#f5f7f4;padding:16px;border-radius:12px;margin-top:18px}.story-fields label{margin-bottom:0}.editor-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.preview-box{background:#f8faf7;padding:12px;border:1px solid var(--line);border-radius:12px;min-width:0}.preview-box h3{font-size:13px}.post-photo{width:100%;max-height:330px;object-fit:contain;background:#e9eeea;border-radius:6px}.story-photo{width:100%;height:auto;aspect-ratio:9/16;object-fit:contain;background:#e9eeea;border-radius:6px}.preview-box .actions button,.preview-box .file-button{font-size:12px;padding:8px;min-height:38px}.file-button{margin:0;position:relative;text-align:center}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer;min-height:0;margin:0;width:100%}.editor-footer{position:sticky;bottom:-24px;background:#fff;border-top:1px solid var(--line);padding:14px 0 4px;z-index:2}details{margin:14px 0}summary{cursor:pointer;font-size:14px;color:var(--brand);font-weight:550}.editor-footer details{margin:9px 0}.editor-footer summary{font-size:12px}.choice-list{display:grid;gap:12px}.choice-row{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0}.choice-row>div{flex:1;min-width:0}.choice-row h3{font-size:16px;margin:0 0 6px}.archive-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.archive-tools label{margin:0}.candidate{display:grid;grid-template-columns:150px 1fr;gap:16px;border:1px solid var(--line);border-radius:12px;padding:14px;margin-top:14px}.candidate img{width:100%;height:170px;object-fit:contain;background:#f4f5f2}.candidate p{white-space:pre-wrap;font-size:14px;max-height:230px;overflow:auto}.check-label{display:flex;align-items:center;gap:10px}.check-label input{width:20px;height:20px;min-height:0;margin:0}.results-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff}.results-table th,.results-table td{text-align:left;padding:13px;border-bottom:1px solid var(--line);vertical-align:top}.results-table th{font-size:12px;color:var(--muted)}.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px}.delivery-state{font-weight:650}.delivery-state.problem{color:var(--red)}.delivery-state.sent{color:var(--blue)}.history-days{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}.group-section{background:#fff;border:1px solid var(--line);padding:20px;border-radius:14px;margin-bottom:14px}.group-section ul{list-style:none;padding:0;margin:0;columns:3}.group-section li{break-inside:avoid;font-size:14px;padding:7px 0}.help-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.help-steps article,.help-details{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px}.step-number{background:#e8f1ec;color:var(--brand);width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:700;margin-bottom:16px}.help-steps h2{font-size:20px}.help-steps p,.help-details p,.help-details dd{font-size:15px}.help-details{margin-top:20px;max-width:850px}.help-details h2{margin-top:24px;font-size:21px}.help-details h2:first-child{margin-top:0}dl{display:grid;grid-template-columns:210px 1fr;gap:12px 18px}dt{font-weight:650}dd{margin:0}.empty{padding:30px;text-align:center;border:1px dashed #c4cfc7;border-radius:14px;color:var(--muted);grid-column:1/-1}.skip-link{position:absolute;top:-100px;z-index:10}.skip-link:focus{top:8px;left:8px;background:#fff;padding:10px}.crop-stage{position:relative;width:100%;height:min(60vh,560px);display:flex;align-items:center;justify-content:center;background:#142521;margin:14px 0;overflow:hidden;touch-action:none}.crop-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;pointer-events:none;user-select:none}.crop-window{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px #0009;touch-action:none;cursor:move}.crop-handle{position:absolute;width:18px;height:18px;background:#fff;border:2px solid var(--brand);border-radius:50%;touch-action:none}.crop-handle.nw{left:-9px;top:-9px}.crop-handle.ne{right:-9px;top:-9px}.crop-handle.sw{left:-9px;bottom:-9px}.crop-handle.se{right:-9px;bottom:-9px}.crop-handle.n{left:calc(50% - 9px);top:-9px}.crop-handle.s{left:calc(50% - 9px);bottom:-9px}.crop-handle.w{left:-9px;top:calc(50% - 9px)}.crop-handle.e{right:-9px;top:calc(50% - 9px)}
@media(max-width:1000px){.branch-grid,.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-grid{grid-template-columns:1fr}.editor-previews{max-width:650px;order:-1}.group-section ul{columns:2}.msk{display:none}}
@media(max-width:600px){body{font-size:15px}.topbar{padding:12px 16px}.brand{font-size:18px}.brand-mark{width:34px;height:34px}.header-actions button{font-size:12px;padding:8px;min-height:38px}.tabs{padding:8px 12px;gap:0}.tabs button{font-size:13px;padding:9px 12px;min-height:40px}main{margin-top:22px;padding:0 14px}.page-heading{align-items:start;flex-wrap:wrap;gap:12px}.calendar-panel{padding:12px;border-radius:12px}.month-controls{gap:8px;flex-wrap:wrap}.month-controls h2{font-size:17px;min-width:140px}.date-control{flex-basis:100%;justify-content:space-between;margin-top:5px}.weekdays,.calendar-grid{gap:3px}.day-cell{min-height:63px;padding:5px 4px}.day-cell.selected{padding:4px 3px}.day-cell .cell-state{font-size:9px;line-height:1.2}.day-cell .cell-count{font-size:9px}.day-cell .day-number{font-size:14px}.day-cell.today .day-number::after{content:' ·'}.calendar-legend{gap:7px 12px;font-size:10px}.branch-grid,.library-grid{grid-template-columns:1fr;gap:12px}.summary-item{flex:1;padding:10px 12px;font-size:11px}.summary-item strong{font-size:21px}.summary-strip{gap:6px}.day-footer{flex-direction:column;align-items:stretch;padding:12px}.day-footer>.actions{display:grid;grid-template-columns:1fr 1fr}.day-footer button{font-size:13px;padding:10px 7px}.filters label{min-width:0;flex:1}.filters label:nth-child(3){flex-basis:100%}.editor-previews{gap:8px}.preview-box{padding:8px}.preview-box h3{font-size:12px}.preview-box .actions{flex-direction:column;align-items:stretch}.dialog-head{top:-16px}.dialog-head h2{font-size:19px}dialog{padding:16px}.editor-footer{bottom:-16px}.editor-footer>.actions{display:grid;grid-template-columns:1fr 1fr}.editor-footer button{font-size:13px}.group-section ul{columns:1}.help-steps{grid-template-columns:1fr}.help-details{padding:18px}dl{grid-template-columns:1fr;gap:5px}dd{margin-bottom:12px}.candidate{grid-template-columns:1fr}.candidate img{height:180px}.choice-row{flex-wrap:wrap}.choice-row button{width:100%}.notice{margin:12px 14px}.results-table{font-size:12px}.results-table th,.results-table td{padding:10px}.results-table td:first-child{min-width:120px}}
@media print{body{background:#fff}.topbar,.tabs,.notice,.view:not(#view-help),#print-help,dialog{display:none!important}#view-help{display:block!important}main{max-width:none;margin:0;padding:0}.help-steps{gap:10px}.help-steps article,.help-details{border:0;padding:10px;break-inside:avoid}.help-details{max-width:none}.help-details h2{margin-top:14px}.page-heading .eyebrow{display:none}.help-steps p,.help-details p,.help-details dd{font-size:12px}h1{font-size:26px}.help-details h2{font-size:18px}dl{font-size:12px}}
@media(max-width:600px){.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;white-space:normal}.tabs button{font-size:12px;padding:8px 5px;min-height:36px}}
