/* Живой кабинет (Макс 2026-10-28): светлый вид кабинета для страницы телефона и для блоков,
   которые рисуют модули мини-аппки (сценарий, выкладка, профиль, трафик). */
.ui-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}
.live .stats{margin-top:26px}
.live-tag{color:#278564!important;background:#e8f4ef!important;border-color:#cfe8dd!important}
.open-device{grid-column:1/-1;display:block;text-align:center;font-size:11px;font-weight:600;color:#3067dd;background:#eff4ff;border:1px solid #d9e5fd;border-radius:7px;padding:8px 5px}
.open-device:hover{border-color:#8fa8d0}
.bulk-buttons{display:flex;gap:8px;margin-left:auto;margin-right:14px}
.bulk-buttons button{font-size:11px;border:1px solid #e5eaf2;background:#fff;color:#4a5a74;border-radius:8px;padding:8px 12px;cursor:pointer}
.bulk-buttons button:hover{border-color:#8fa8d0}

/* страница телефона */
#devicePanel{max-width:980px}
.back-link{display:inline-block;font-size:12px;color:#3067dd;margin:22px 0 18px}
.device-facts{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}
.device-facts>div{background:#fff;border:1px solid #e6e9ef;border-radius:13px;padding:15px 16px}
.device-facts small{display:block;font-size:11px;color:#8790a2}
.device-facts b{display:block;font-size:17px;font-weight:550;margin-top:5px;color:#242833}
.device-actions{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}
.device-actions button{font-size:12px;border:1px solid #e1e7f0;background:#fff;color:#45556f;border-radius:9px;padding:10px 14px;cursor:pointer}
.device-actions button:hover:not(:disabled){border-color:#8fa8d0}
.device-actions button.blue{background:#3067dd;border-color:#3067dd;color:#fff}
.device-actions button.stop-button{background:#fff3f1;border-color:#f0d7d0;color:#bb5a45}
.device-actions button.quiet{margin-left:auto;color:#9aa5b7}
.device-actions button:disabled{opacity:.45;cursor:not-allowed}
.live-note{font-size:12px;color:#3067dd;margin:0 0 12px}
.live-error,.device-action-error,.farm-form-error,.traffic-error{font-size:12px;color:#b84c59;background:#ffedf0;border-radius:9px;padding:10px 12px;margin:8px 0 12px}
.device-action-note{font-size:12px;color:#278564;background:#e8f4ef;border-radius:9px;padding:10px 12px;margin:8px 0 12px}
.mini-blocks{display:flex;flex-direction:column;gap:6px}

/* общие элементы модулей мини-аппки */
.mini-blocks h2,.mini-blocks h3{color:#242833}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:22px 0 12px}
.section-title h2{font-size:17px;font-weight:600}
.section-title>span{font-size:12px;color:#8790a2}
.outlined-button{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #e1e7f0;background:#fff;color:#3c4d68;border-radius:10px;padding:11px 14px;font-size:13px;cursor:pointer;min-height:42px}
.outlined-button:hover:not(:disabled){border-color:#8fa8d0}
.outlined-button.full{width:100%;margin:8px 0}
.outlined-button:disabled{opacity:.45;cursor:not-allowed}
.glass-small{border:1px solid #d9e5fd;background:#eff4ff;color:#3067dd;border-radius:8px;padding:7px 12px;font-size:12px;cursor:pointer}
.primary-button{border:0;border-radius:10px;background:#3067dd;color:#fff;font-size:13px;font-weight:600;padding:12px 16px;width:100%;cursor:pointer}
.media-hint{font-size:12px;color:#8790a2;line-height:1.6;margin:8px 0}
.warning-box{border:1px solid #eeded9;background:#fff8f5;color:#aa7b62;border-radius:10px;padding:11px 14px;font-size:12px;line-height:1.7;margin:12px 0}
.step-list{background:#fff;border:1px solid #e6e9ef;border-radius:13px;padding:4px 16px;margin-bottom:16px}
.step{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eef0f4;font-size:13px;color:#3c4d68}
.step:last-child{border-bottom:0}
.step>div{flex:1;min-width:0}
.step>i{font-style:normal;width:16px;color:#3067dd;flex-shrink:0}
.step.cycle-off,.step.cycle-off>i{color:#a0a8b8}
.step small{display:block;font-size:11px;color:#8790a2;margin-top:3px}
.stage-play{width:34px;height:34px;flex-shrink:0;border-radius:50%;border:1px solid #d9e5fd;background:#eff4ff;color:#3067dd;font-size:12px;cursor:pointer}
.stage-play.stop{background:#fff3f1;border-color:#f0d7d0;color:#bb5a45}
.stage-play:disabled{opacity:.4;cursor:not-allowed}
.stage-run{display:block;font-size:11px;color:#8790a2;margin-top:4px}
.stage-run.stage-running{color:#3067dd}.stage-run.stage-success{color:#278564}
.stage-run.stage-failed,.stage-run.stage-timeout,.stage-run.stage-interrupted{color:#b84c59}
.stage-run.stage-partial,.stage-run.stage-needs_review,.stage-run.stage-stopped{color:#946913}
.autopost-card{background:#fff;border:1px solid #e6e9ef;border-radius:13px;padding:6px 18px 14px;margin:6px 0 14px;color:#3c4d68;font-size:13px}
.autopost-card>p{margin:6px 0;line-height:1.6}
.autopost-card .step-list{border:0;padding:0;margin:4px 0}
.autopost-progress{display:flex;align-items:baseline;gap:9px;margin:12px 0}
.autopost-progress strong{font-size:24px;font-weight:600;color:#242833}
.autopost-progress span{font-size:12px;color:#8790a2}
.autopost-next,.autopost-history-row,.autopost-queue-row{font-size:12px}
.autopost-next a,.autopost-history a,.autopost-queue a{color:#3067dd}
.autopost-history{border:1px solid #eef0f4;border-radius:10px;margin:10px 0;overflow:hidden}
.autopost-history-row{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #eef0f4}
.autopost-history-row:last-child{border-bottom:0}
.autopost-history-row small{display:block;color:#8790a2}
.autopost-history-row p{color:#b84c59;margin-top:3px}
.review-actions{display:flex;gap:6px;flex-wrap:wrap}
.review-actions button{font-size:11px;border:1px solid #e1e7f0;background:#fff;border-radius:7px;padding:7px 9px;cursor:pointer}
.autopost-queue{margin-top:10px}
.autopost-queue summary{cursor:pointer;font-size:12px;color:#3067dd;padding:6px 0}
.autopost-queue-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #f1f3f6}
.queue-music{display:block;font-size:11px;color:#a0a8b8}
.autopost-list-summary{display:block;font-size:11px;color:#8790a2}
.profile-avatar{cursor:pointer;margin-top:12px}
.profile-avatar[aria-disabled=true]{opacity:.45;pointer-events:none}
.profile-bio{display:block;font-size:12px;font-weight:500;color:#45556f;margin:14px 0 8px}
.profile-bio>span{display:flex;justify-content:space-between;align-items:baseline}
.profile-bio small{color:#8790a2;font-weight:400}
.profile-bio textarea{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #dfe6f0;border-radius:9px;background:#fff;color:#3c4d68;font:inherit;font-size:13px;line-height:1.5;resize:vertical;min-height:84px}
.profile-bio textarea:focus,form input:focus,form select:focus{border-color:#3067dd;outline:none}

/* трафик */
.traffic-card{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e6e9ef;border-radius:13px;padding:14px 18px;margin:6px 0 14px;color:#3c4d68;font-size:13px;cursor:pointer}
.traffic-card:hover{border-color:#8fa8d0}
.traffic-head{display:flex;justify-content:space-between;gap:12px;font-weight:600;color:#242833}
.traffic-note,.traffic-subtitle,.traffic-updated,.traffic-period,.traffic-legend{font-size:11px;color:#8790a2}
.traffic-total{font-size:22px;font-weight:600;color:#242833}
.traffic-bar,.traffic-chart{background:#eef1f6;border-radius:6px;overflow:hidden}
.traffic-bar i,.traffic-chart i{display:block;background:#3067dd}
.traffic-bar .wifi,.traffic-chart .wifi{background:#8fb0ec}
.traffic-app,.traffic-day{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:5px 0;border-bottom:1px solid #f1f3f6}

/* окна модулей мини-аппки (сценарий, трафик) — как окна кабинета */
dialog .sheet-handle{display:none}
dialog .sheet-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
dialog .sheet-header h2{font-size:20px;color:#242833}
dialog .icon-button{border:0;background:#eef1f6;border-radius:50%;width:30px;height:30px;color:#7d8aa0;font-size:20px;line-height:1;cursor:pointer}
#cycleDialog,#trafficDialog{max-width:680px;max-height:88vh;overflow:auto}
.cycle-choices{border:1px solid #e6e9ef;border-radius:10px;padding:10px 12px;margin:0 0 16px}
.cycle-choices legend{font-size:12px;font-weight:600;padding:0 4px}
.cycle-choices label{display:inline-flex;align-items:center;gap:6px;margin:4px 14px 4px 0;font-weight:400}
.cycle-choices input,.media-toggle input{width:auto;display:inline-block;margin:0}
.media-toggle{display:flex!important;align-items:flex-start;gap:9px;font-weight:500}
.media-toggle small{display:block;font-weight:400;color:#8790a2}
.media-settings{border:1px solid #e6e9ef;border-radius:10px;padding:10px 12px;margin:0 0 16px}
.stage-list,.cycle-network-actions{display:flex;flex-direction:column;gap:6px}
.stage-row,.cycle-subaction{display:flex;align-items:center;gap:10px;border:1px solid #eef0f4;border-radius:9px;padding:8px 10px}
.stage-row>*:first-child,.cycle-subaction>div{flex:1}
.stage-arrow,.stage-move{border:1px solid #e1e7f0;background:#fff;border-radius:7px;width:30px;height:30px;cursor:pointer}
.stage-arrow:disabled{opacity:.35}
.cycle-network{border:1px solid #e6e9ef;border-radius:10px;padding:8px 12px;margin-bottom:12px}
.cycle-network summary{cursor:pointer;font-weight:600;padding:4px 0}
.cycle-time{display:flex;gap:8px;align-items:center}
.check{display:flex!important;align-items:center;gap:8px;font-weight:400}
.check input{width:auto;display:inline-block;margin:0}
form small{display:block;font-size:11px;color:#8790a2;margin-top:5px;font-weight:400}
form textarea{display:block;width:100%;border:1px solid #dfe6f0;border-radius:9px;padding:12px 13px;margin-top:7px;font:inherit;font-size:13px}

@media(max-width:1000px){.device-facts{grid-template-columns:repeat(3,1fr)}.bulk-buttons{margin:10px 0}}
@media(max-width:760px){.device-facts{grid-template-columns:repeat(2,1fr)}.device-actions button.quiet{margin-left:0}}

/* календарь: фото, рилсы и YouTube по дням; окошко дня (Макс 2026-10-28) */
.day-cell{display:flex;flex-direction:column;gap:3px;align-items:stretch;width:100%;min-width:64px;border:0;background:none;padding:2px;cursor:pointer;border-radius:8px}
.day-cell:hover{background:#eef3ff}
.day-chip{display:block;font-size:10px;line-height:1.3;border-radius:6px;padding:3px 5px;white-space:nowrap;border:1px solid transparent;text-align:center}
.day-chip.photo{color:#3067dd;border-color:#bcd0fb;background:#fff}
.day-chip.reel{color:#8a4fd1;border-color:#dcc8f6;background:#fff}
.day-chip.youtube{color:#3067dd;border-color:#bcd0fb;background:#fff}
/* выложено — зелёный (Макс 2026-10-29), запланировано — рамка, ошибка — красный */
.day-chip.photo.posted,.day-chip.reel.posted{background:#e9f7f0;border-color:#2f9e6f;color:#237a55}
.day-chip.failed{background:#ffedf0;border-color:#f0b9c1;color:#b84c59}
/* «Требует проверки» — жёлтым, как значок в окне дня (Макс 2026-10-31): пост, скорее всего, вышел, это не ошибка. */
.day-chip.needs_review{background:#fff3de;border-color:#e9c27a;color:#946913}
.day-chip.publishing{background:#fff3de;border-color:#f1d9a6;color:#946913}
/* скролл Reels/Shorts (Макс 2026-10-29): рамка — по расписанию, зелёный — пролистано, красный — не получилось */
.day-chip.scroll{color:#56657f;border-color:#cdd6e6;background:#fff;border-style:dashed}
.day-chip.scroll.done{background:#e9f7f0;border:1px solid #2f9e6f;color:#237a55}
.day-chip.scroll.failed{background:#ffedf0;border:1px solid #f0b9c1;color:#b84c59}
.day-chip.scroll.running{background:#fff3de;border:1px solid #f1d9a6;color:#946913}
.calendar-table td.past,.calendar-table th.past{background:#fafbfd}
.calendar-table td.past .day-chip{opacity:.85}
.row-title{display:block}
.row-battery{display:flex;align-items:center;gap:7px;margin-top:6px;font-size:12px;color:#5f6b80;white-space:nowrap}
.row-battery b{font-weight:600;font-variant-numeric:tabular-nums}
.row-battery i{position:relative;flex:none;width:24px;height:12px;box-sizing:border-box;border:1.5px solid currentColor;border-radius:3.5px;margin-right:2px}
.row-battery i:before{content:'';position:absolute;left:1px;top:1px;bottom:1px;width:calc((100% - 2px)*var(--percent,1));max-width:calc(100% - 2px);min-width:1px;background:currentColor;border-radius:1.5px}
.row-battery i:after{content:'';position:absolute;right:-4px;top:2.25px;width:2px;height:4.5px;background:currentColor;border-radius:0 1.5px 1.5px 0}
.row-battery.low{color:#c4505f}
.row-battery.charging{color:#2f9e6f}
.row-battery.off{color:#a0a8b8}
.row-bolt{flex:none;width:9px;height:13px;margin-left:-3px;fill:currentColor}
.scroll-sessions{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:5px;font-size:12px;color:#5d6b82}
.scroll-session b{font-variant-numeric:tabular-nums;color:#2c3a52;margin-right:6px}
.scroll-session:before{content:'○';margin-right:6px;color:#a0aabb}
.scroll-session.done:before{content:'✓';color:#2f9e6f}
.scroll-session.failed:before{content:'✕';color:#c4505f}
.scroll-session.running:before{content:'●';color:#d29a2c}
.day-plan{width:100%;margin-top:14px;font-size:13px}
dialog.day-dialog{max-width:720px;max-height:88vh;overflow:auto}
.day-item{border:1px solid #e6e9ef;border-radius:12px;padding:12px 14px;margin:0 0 12px}
.day-item-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;color:#242833}
.day-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.day-photos img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:9px;background:#eef1f6;display:block}
.day-video{display:block;width:100%;max-height:460px;border-radius:10px;background:#111;aspect-ratio:9/16;object-fit:contain}
.day-caption{white-space:pre-wrap;font-size:13px;line-height:1.55;color:#3c4d68;margin:10px 0 6px}
.day-caption.muted{color:#a0a8b8}
.day-meta{display:block;font-size:11px;color:#8790a2}
.day-meta a{color:#3067dd}
/* Пустой день в календаре — кнопка «назначить выкладку» (2026-10-29): видно «—», при наведении «＋». */
.calendar-table .plan-slot{display:grid;place-items:center;width:100%;min-height:34px;border:1px dashed transparent;border-radius:9px;background:none;cursor:pointer;color:#d0d6df;font:inherit}
.calendar-table .plan-slot:hover,.calendar-table .plan-slot:focus-visible{border-color:#b9c6da;background:#f4f7fc;color:var(--blue,#3067dd)}
.calendar-table .plan-slot:hover span,.calendar-table .plan-slot:focus-visible span{font-size:0}
.calendar-table .plan-slot:hover span::after,.calendar-table .plan-slot:focus-visible span::after{content:"+";font-size:18px;font-weight:600}
dialog.plan-dialog{width:min(460px,calc(100vw - 32px))}
.plan-form select,.plan-form input{display:block;width:100%;margin-top:7px}
.plan-form small{display:block;margin-top:6px;color:#97a5b8;font-weight:400}
.plan-form .button{width:100%;font-size:13px}
/* выбор площадки блоками (Макс 2026-10-29) */
.platform-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.platform-tile{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:16px;border:1px solid #e3e8f1;border-radius:14px;background:#fff;color:#2c3a52;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.platform-tile svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:4px}
.platform-tile b{font-size:14px;font-weight:600}
.platform-tile small{font-size:11px;line-height:1.45;color:#8d99ad}
.platform-tile.instagram svg{color:#d62976}
.platform-tile.youtube svg{color:#e62117}
.platform-tile.threads svg,.platform-tile.tiktok svg{color:#1f2533}
.platform-tile.scroll svg{color:#2f9e6f}
.platform-tile.wide{width:100%}
.plan-or{margin:16px 0 8px}
.platform-tile:not(:disabled):hover{border-color:#8fb0ec;box-shadow:0 6px 18px #3067dd1a;transform:translateY(-1px)}
.platform-tile:focus-visible{outline:2px solid #3067dd;outline-offset:2px}
.platform-tile:disabled{cursor:default;background:#f7f8fb;opacity:.6}
.platform-tile.waiting{cursor:progress;border-color:#8fb0ec}
.plan-back{border:0;background:none;color:#3067dd;font-size:12px;padding:0;margin:-6px 0 14px;cursor:pointer}
.err-id{font:600 11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:#b2404f;background:#fdecee;border:1px solid #f1c3ca;border-radius:6px;padding:0 6px;margin-left:6px;cursor:pointer;white-space:nowrap}
.err-id:hover{background:#fbdde1}

/* подготовка заранее (Макс 2026-10-29) */
.day-chip.problem{border:1px dashed #e08a96;color:#b84c59;background:#fff7f8}
.prep-line{font-size:12px;line-height:1.5;margin:8px 0;padding:8px 10px;border-radius:8px}
.prep-line.ready{background:#eef8f3;color:#2d7a57}
.prep-line.problem{background:#fff0f2;color:#b84c59}
.prep-line small{color:inherit;opacity:.75}

/* готовность телефона одной строкой (Макс 2026-10-29) */
.ready-line{font-size:11px;line-height:1.5;margin:10px 0 0;padding:7px 9px;border-radius:8px}
.ready-line.ok{background:#eef8f3;color:#2d7a57}
.ready-line.problem{background:#fff0f2;color:#b84c59}
.ready-line small{opacity:.7;margin-left:2px}
.device-card .ready-line{margin:0 0 10px}
.prep-line{background:#f3f5f9;color:#5d6b82}
.prep-line a{color:inherit;text-decoration:underline}

/* чип — своя кнопка: открывает только своё (Макс 2026-10-29); «+» — назначить выкладку */
.day-cell{cursor:default}
.day-cell:hover{background:none}
button.day-chip{font:inherit;font-size:10px;cursor:pointer;width:100%;transition:box-shadow .15s,transform .15s}
button.day-chip:hover{box-shadow:0 2px 8px #3067dd26;transform:translateY(-1px)}
button.day-chip:focus-visible{outline:2px solid #3067dd;outline-offset:1px}
.day-add{border:1px dashed #cfd8e6;background:#fff;color:#8a97ad;border-radius:6px;font-size:11px;line-height:1.2;padding:1px 0;cursor:pointer;opacity:0;transition:opacity .15s}
td:hover .day-add,.day-add:focus-visible{opacity:1}
.day-add:hover{color:#3067dd;border-color:#8fb0ec}

/* просмотр фото внутри кабинета (Макс 2026-10-29) */
dialog#photoViewer{max-width:none;max-height:none;width:100vw;height:100vh;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;align-items:center;justify-content:center}
dialog#photoViewer[open]{display:flex}
dialog#photoViewer::backdrop{background:#0b1220e6;backdrop-filter:blur(3px)}
#photoViewer figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 90px;box-sizing:border-box;max-width:100%}
#photoViewer img{max-width:100%;max-height:calc(100vh - 110px);object-fit:contain;border-radius:10px;box-shadow:0 20px 60px #0008;background:#111}
#photoViewer figcaption{color:#c9d3e3;font-size:12px}
.viewer-nav{position:fixed;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:#ffffff1f;color:#fff;font-size:30px;line-height:1;cursor:pointer}
.viewer-nav:hover{background:#ffffff38}
.viewer-nav.prev{left:20px}.viewer-nav.next{right:20px}
.viewer-close{position:fixed;top:18px;right:18px;width:40px;height:40px;border-radius:50%;border:0;background:#ffffff26;color:#fff;font-size:26px;line-height:1;cursor:pointer}
.day-photos a.view-photo{cursor:zoom-in}

/* Регистрация Instagram из плитки (2026-10-29) */
.signup-options{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.signup-options .button{width:auto;background:#eef0f4;color:#252830}
#suNeed .button.blue{margin-top:10px}
#suNeed .plan-back{display:block;margin:12px 0 0}

/* Ссылки на аккаунты под телефоном (2026-10-30) */

/* Статистика телефона (2026-10-30) */
.stats-button{display:block;margin-top:8px;border:1px solid #dfe3ea;background:#fff;color:#3067dd;border-radius:999px;padding:4px 11px;font-size:11px;cursor:pointer}
.stats-button:hover{background:#eef3ff}
.stat-card{border:1px solid #e8eaf0;border-radius:14px;padding:14px 16px;margin-bottom:12px}
.stat-card header{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:10px;font-size:14px}
.stat-card header small{color:#97a5b8}
.stat-card .account-link{color:#3067dd}
.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:0}
.stat-grid dt{font-size:11px;color:#97a5b8}
.stat-grid dd{margin:2px 0 0;font-size:15px;font-weight:600}
.stat-grid dd small{display:block;font-size:11px;font-weight:400;color:#97a5b8;margin-top:2px}
dialog.stats-dialog{background:#0c1014;color:#f5f5f5;border:0;color-scheme:dark}
dialog.stats-dialog .sheet-header h2,dialog.stats-dialog .dialog-header h2{color:#f5f5f5}
dialog.stats-dialog .icon-button,dialog.stats-dialog .dialog-close{background:#262a30;color:#f5f5f5}
dialog.stats-dialog .stat-card{border-color:#262a30}
dialog.stats-dialog .stat-card header small,dialog.stats-dialog .stat-grid dt,dialog.stats-dialog .stat-grid dd small,dialog.stats-dialog .dialog-note{color:#a8a8a8}
dialog.stats-dialog .stat-card .account-link{color:#0095f6}

/* Страница аккаунта «как в телефоне» (2026-10-30): тёмная тема приложения Instagram, сетка 3 в ряд, 3:4 */
.row-buttons{display:flex;gap:6px;flex-wrap:wrap}
.row-buttons .stats-button{display:inline-block}
/* По скрину приложения на телефоне (Макс 2026-10-30): узкая колонка как экран, ник по центру сверху,
   аватар слева и справа имя + счётчики в строку, кнопки, кружок «Очередь» на месте актуального,
   вкладки с короткой чертой, сетка во всю ширину 3 в ряд 3:4. Белый ползунок прокрутки скрыт. */
dialog.ig-dialog{width:min(440px,calc(100vw - 24px));max-width:none;max-height:94vh;padding:0;overflow-y:auto;overscroll-behavior:contain;
  background:#0c1014;color:#f5f5f5;border:0;border-radius:26px;color-scheme:dark;scrollbar-width:none;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:0}
dialog.ig-dialog::-webkit-scrollbar{display:none}
dialog.ig-dialog .dialog-header{position:sticky;top:0;z-index:3;justify-content:flex-start;margin:0;padding:16px 52px 4px 16px;background:#0c1014}
dialog.ig-dialog .dialog-header h2{font-size:22px;font-weight:700;color:#f5f5f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
dialog.ig-dialog .dialog-close{position:absolute;right:14px;top:14px;background:none;color:#f5f5f5;font-size:28px;width:32px;height:32px}
dialog.ig-dialog #dialogBody{line-height:1.35;font-size:14px}
dialog.ig-dialog .live-error,.ig-loading{margin:24px 16px;color:#a8a8a8}
.ig-head{display:flex;align-items:center;gap:20px;padding:6px 16px 0}
.ig-avatar{flex:0 0 auto;width:90px;height:90px;border-radius:50%}
.ig-avatar span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:#2a2f36;font-size:36px;font-weight:600;color:#f5f5f5}
.ig-topline{padding:0 16px 12px;font-size:12px;color:#a8a8a8}
.ig-topline button{padding:0;border:0;background:none;color:#0095f6;font:inherit;cursor:pointer}
.ig-meta{flex:1;min-width:0}
.ig-name{display:block;font-size:15px;font-weight:600;margin-bottom:6px}
.ig-stats{display:flex;justify-content:space-between;gap:12px}
.ig-stats>*{display:flex;flex-direction:column;align-items:flex-start;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;white-space:nowrap}
.ig-stats button{cursor:pointer}
.ig-stats b{font-size:17px;font-weight:700;line-height:1.25}
.ig-stats span{font-size:14px}
.ig-bio{display:flex;flex-direction:column;gap:2px;padding:12px 16px 0;font-size:14px}
.ig-muted{color:#a8a8a8}
.ig-panel{display:block;width:calc(100% - 32px);margin:12px 16px 0;padding:11px 14px;border:0;border-radius:10px;background:#25292e;color:#f5f5f5;font:inherit;text-align:left;cursor:pointer}
.ig-panel:hover{background:#2d3238}
.ig-panel b{display:block;font-size:14px;font-weight:600}
.ig-panel span{display:block;font-size:13px;color:#a8a8a8;margin-top:1px}
.ig-dash-top{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;padding:0 8px 10px;border-bottom:1px solid #262a30}
.ig-dash-top b{text-align:center;font-size:17px;font-weight:700}
.ig-dash-top button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;background:none;color:#f5f5f5;cursor:pointer}
.ig-dash-top svg{width:24px;height:24px;stroke-width:2}
.ig-dash section{padding:14px 16px 6px;border-bottom:1px solid #262a30}
.ig-dash header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:4px}
.ig-dash header b{font-size:16px;font-weight:700}
.ig-dash header span{font-size:13px;color:#a8a8a8}
.ig-dash-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:11px 0;border:0;background:none;color:#f5f5f5;font:inherit;font-size:15px;text-align:left}
.ig-dash-row b{font-weight:400;white-space:nowrap}
.ig-dash-row.link{cursor:pointer}
.ig-dash-row.link b{color:#a8a8a8;font-size:20px}
.ig-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:8px 16px 0}
.ig-actions a,.ig-actions button{display:flex;align-items:center;justify-content:center;height:34px;border-radius:9px;background:#25292e;color:#f5f5f5;border:0;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap}
.ig-actions a:hover,.ig-actions button:hover{background:#33383f}
.ig-page .ig-actions .account-link{color:#f5f5f5}
.ig-highlights{display:flex;gap:18px;padding:16px 16px 4px}
.ig-highlight{display:flex;flex-direction:column;align-items:center;gap:6px;width:72px;padding:0;border:0;background:none;color:#f5f5f5;font-size:12px;cursor:pointer}
.ig-highlight i{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;border:1px solid #3a3f46;box-shadow:inset 0 0 0 3px #0c1014;background:#1f2329;font-style:normal}
.ig-highlight i svg{width:28px;height:28px;stroke:#f5f5f5;stroke-width:1.7}
.ig-highlight.on i{border:2px solid #0095f6}
.ig-highlight small{font-size:12px;white-space:nowrap}
.ig-tabs{display:flex;margin-top:10px}
.ig-tabs button{position:relative;flex:1;display:flex;justify-content:center;padding:10px 0 12px;background:none;border:0;color:#8e8e8e;cursor:pointer}
.ig-tabs button.on{color:#f5f5f5}
.ig-tabs button.on::after{content:"";position:absolute;left:25%;right:25%;bottom:0;height:2px;border-radius:1px;background:#f5f5f5}
.ig-tabs svg{width:26px;height:26px}
.ig-tabs .fill{fill:currentColor;stroke:none}
.ig-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.ig-tile{position:relative;aspect-ratio:3/4;padding:0;border:0;background:#1f2329;overflow:hidden;cursor:pointer;display:block}
.ig-tile img{width:100%;height:100%;object-fit:cover;display:block}
.ig-tile:hover img{filter:brightness(.85)}
.ig-tile.planned img{opacity:.5;filter:grayscale(.3)}
.ig-tile-text{display:flex;align-items:center;justify-content:center;height:100%;padding:10px;font-size:12px;color:#a8a8a8;text-align:center}
.ig-icon{position:absolute;top:7px;right:7px;line-height:0;filter:drop-shadow(0 1px 2px #0009)}
.ig-icon svg{width:20px;height:20px;fill:#fff;stroke:#fff;stroke-width:1.2}
.ig-icon.reel svg{fill:none;stroke-width:1.8}
.ig-label{position:absolute;left:7px;bottom:6px;display:flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#fff;text-shadow:0 1px 3px #000c}
.ig-label svg{width:14px;height:14px;stroke:#fff;stroke-width:2.2;filter:drop-shadow(0 1px 2px #000a)}
.ig-label.warn{color:#ffcf4a}
.ig-label.live{color:#5ee08f}
.ig-divider{grid-column:1/-1;text-align:center;font-size:12px;color:#a8a8a8;padding:7px 0;background:#0c1014}
.ig-off{text-align:center;font-size:12px;color:#e8b33a;padding:0 16px 8px}
.ig-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:34px 16px;color:#a8a8a8;font-size:14px}
.ig-empty i{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;border:2px solid #f5f5f5}
.ig-empty i svg{width:30px;height:30px;stroke:#f5f5f5}
.ig-foot{text-align:center;color:#737373;font-size:12px;padding:16px 20px 22px}
.ig-post{padding:0 16px 20px}
.ig-post .day-photos img{aspect-ratio:3/4}
.ig-back{background:none;border:0;color:#0095f6;font-size:14px;cursor:pointer;padding:0 0 10px}
.ig-when{font-size:13px;color:#a8a8a8;margin:0 0 10px}
.ig-caption{font-size:14px;margin:12px 0 6px;white-space:pre-wrap}
.ig-links{font-size:13px;color:#a8a8a8}
.ig-page .account-link,.ig-links .view-photo{color:#0095f6}

/* Вкладка «Instagram» (2026-10-30): карточки профилей, подписанные телефоном */
.ig-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:15px;margin-top:26px}
.ig-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:24px 16px 18px;background:#fff;border:1px solid #e7eaf0;border-radius:15px;color:#242833;font:inherit;text-align:center;cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}
.ig-card:hover{border-color:#c9d6ee;box-shadow:0 10px 28px #1023420f;transform:translateY(-2px)}
.ig-card-avatar{width:92px;height:92px;border-radius:50%;padding:3px;margin-bottom:6px;background:conic-gradient(from 200deg,#feda75,#fa7e1e,#d62976,#962fbf,#d62976,#fa7e1e,#feda75)}
.ig-card-avatar span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:#262a30;border:3px solid #fff;color:#f5f5f5;font-size:34px;font-weight:600}
.ig-card>b{font-size:15px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ig-card-phone{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:550;color:#3067dd;background:#eef3fc;border-radius:999px;padding:4px 11px}
.ig-card-phone svg{width:13px;height:13px;stroke-width:2}
.ig-card-phone.mobile{color:#9a6700;background:#fff4cc}
.ig-card small{font-size:11px;color:#98a2b3;min-height:15px}
.ig-card-stats{display:flex;gap:12px;font-size:12px;color:#657187;margin-top:2px}
.ig-card-state{font-size:11px;color:#a0a9b8}
.ig-card-state.on{color:#278d6c}
.ig-card.empty{cursor:default;opacity:.7}
.ig-card.empty:hover{border-color:#e7eaf0;box-shadow:none;transform:none}
.ig-card.empty .ig-card-avatar{background:#e3e7ee}
.ig-card.empty .ig-card-avatar span{background:#f0f3f8;color:#a3adbd}
.ig-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-top:-58px}
.ig-toolbar .button{font-size:12px;padding:10px 16px;flex-shrink:0}
.ig-toolbar+.ig-cards{margin-top:16px}
.ig-card-avatar span,.ig-avatar span{position:relative;overflow:hidden}
.ig-card-avatar img,.ig-avatar img{position:absolute;inset:0;display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.ig-card-snap{font-size:11px;color:#b08a2e}

a.ig-card{text-decoration:none}

/* Канал YouTube «как в приложении» (Макс 2026-10-30): тёмная тема YouTube, вкладки текстом, Shorts 3 в ряд 9:16, видео строками. */
dialog.yt-dialog,dialog.yt-dialog .dialog-header{background:#0f0f0f}
dialog.yt-dialog .dialog-header h2{font-size:20px;font-weight:600;color:#f1f1f1}
.yt-card-handle{font-size:12px;color:#657187;margin-top:-4px}
.yt-banner{display:block;width:calc(100% - 32px);margin:0 16px 14px;aspect-ratio:6.2/1;object-fit:cover;border-radius:12px;background:#272727}
.yt-head{display:flex;align-items:center;gap:16px;padding:2px 16px 0}
.yt-avatar{position:relative;flex:none;display:grid;place-items:center;width:84px;height:84px;border-radius:50%;overflow:hidden;background:#3f3f3f;color:#f1f1f1;font-size:36px;font-weight:500}
.yt-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.yt-ident{display:flex;flex-direction:column;gap:3px;min-width:0}
.yt-name{font-size:24px;font-weight:700;line-height:1.15;color:#f1f1f1;overflow-wrap:anywhere}
.yt-sub{font-size:12.5px;color:#aaa;margin:0}
.yt-sub b{color:#f1f1f1;font-weight:500}
.yt-desc{margin:12px 16px 0;font-size:13px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yt-desc span{color:#f1f1f1;font-weight:500}
.yt-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px 16px 0}
.yt-actions a,.yt-actions button{display:flex;align-items:center;justify-content:center;height:36px;border-radius:18px;background:#272727;color:#f1f1f1;border:0;font-size:14px;font-weight:500;text-decoration:none;cursor:pointer;white-space:nowrap}
.yt-actions a:hover,.yt-actions button:hover{background:#3f3f3f}
.yt-page .yt-actions .account-link{color:#f1f1f1}
.yt-tabs{display:flex;gap:4px;margin-top:12px;padding:0 8px;border-bottom:1px solid #272727;overflow-x:auto;scrollbar-width:none}
.yt-tabs button{position:relative;flex:none;padding:12px 12px 13px;background:none;border:0;color:#aaa;font-size:14px;font-weight:500;cursor:pointer}
.yt-tabs button.on{color:#f1f1f1}
.yt-tabs button.on::after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;border-radius:1px;background:#f1f1f1}
.yt-shorts{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px}
.yt-short{position:relative;aspect-ratio:9/16;padding:0;border:0;border-radius:6px;overflow:hidden;background:#272727;cursor:pointer}
.yt-short img{width:100%;height:100%;object-fit:cover;display:block}
.yt-views{position:absolute;left:6px;bottom:6px;display:flex;align-items:center;gap:2px;color:#fff;font-size:12px;font-weight:500;text-shadow:0 1px 3px rgba(0,0,0,.8)}
.yt-views svg{width:13px;height:13px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7))}
.yt-videos{display:flex;flex-direction:column;gap:12px;padding:12px 16px 0}
.yt-video{display:grid;grid-template-columns:44% 1fr;gap:12px;align-items:start;padding:0;background:none;border:0;color:inherit;text-align:left;font:inherit;cursor:pointer}
.yt-video.planned{cursor:default}
.yt-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#272727}
.yt-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.yt-thumb i{position:absolute;right:4px;bottom:4px;padding:1px 4px;border-radius:4px;background:rgba(0,0,0,.8);color:#fff;font-size:11.5px;font-style:normal;font-weight:500}
.yt-thumb-empty{display:grid;place-items:center;width:100%;height:100%;color:#aaa}
.yt-thumb-empty svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.6}
.yt-video-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.yt-video-text b{font-size:14px;font-weight:500;line-height:1.3;color:#f1f1f1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.yt-video-text small{font-size:12px;color:#aaa}
.yt-empty i{border-color:#f1f1f1}
.yt-empty i svg{fill:none}
.yt-item{padding:0 16px 20px}
.yt-item-short,.yt-item-video{display:block;width:100%;border:0;border-radius:12px;background:#272727}
.yt-item-short{aspect-ratio:9/16;height:min(62vh,640px);width:auto;margin:0 auto}
.yt-item-video{aspect-ratio:16/9}
.yt-item-title{display:block;margin:12px 0 4px;font-size:17px;font-weight:600;color:#f1f1f1}
.yt-page .ig-links .account-link{color:#3ea6ff}
.yt-page .ig-topline button{color:#3ea6ff}

/* «Требует проверки»: проверил сам — отметь (Макс 2026-10-31). */
.review-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff8ea;border:1px solid #f1d9a6}
.review-actions span{font-size:13px;color:#946913;margin-right:4px}
.review-actions button{padding:7px 12px;border-radius:8px;border:1px solid #d9dee8;background:#fff;color:#242833;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.review-open{padding:7px 12px;border-radius:8px;background:#3067dd;color:#fff;font-size:13px;font-weight:600;text-decoration:none}
.review-open:hover{background:#2756bd}
.post-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.post-actions button{padding:7px 12px;border-radius:8px;border:1px solid #d9dee8;background:#fff;color:#242833;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.post-actions button:hover{background:#f6f7f9}
.post-report-form{display:flex;flex-wrap:wrap;gap:8px;width:100%}
.post-report-form input{flex:1 1 240px;min-width:0;padding:7px 10px;border:1px solid #d9dee8;border-radius:8px;font:inherit;font-size:13px}
.post-actions .report-send{background:#b84c59;border-color:#b84c59;color:#fff}
.post-actions .report-send:hover{background:#a23f4b}
.day-chip.reported{background:#ffedf0;border-color:#f0b9c1;color:#b84c59}
.review-actions .review-ok{background:#2f9e6f;border-color:#2f9e6f;color:#fff}
.review-actions button:disabled{opacity:.6;cursor:default}
.prep-line.review-pending{background:#fff8ea;color:#946913}

/* Вышел без музыки (Макс 2026-10-31): пост есть, но трек не встал — жёлтым, как «Требует проверки». */
.day-chip.photo.posted.nomusic,.day-chip.reel.posted.nomusic,.day-chip.photo.planned.stalled,.day-chip.reel.planned.stalled{background:#fff3de;border-color:#e9c27a;color:#946913}
.prep-line.nomusic{background:#fff8ea;color:#946913}
.day-music{font-size:12px;color:#56657f;margin:4px 0 6px}

/* Аватарка канала YouTube из кабинета (Макс 2026-10-31): нажать на аватарку → своё фото или из Instagram. */
button.yt-avatar{border:0;padding:0;cursor:pointer;font:inherit}
.yt-avatar-edit i{position:absolute;left:0;right:0;bottom:0;height:30%;display:grid;place-items:center;background:rgba(0,0,0,.5)}
.yt-avatar-edit i svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.8}
.yt-avatar-edit:hover i{background:rgba(0,0,0,.7)}
.yt-ava{padding:0 16px 20px}
.yt-ava-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.yt-ava-option{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 10px;border:0;border-radius:14px;background:#272727;color:#f1f1f1;font:inherit;text-align:center;cursor:pointer}
.yt-ava-option:hover{background:#3f3f3f}
.yt-ava-option .yt-avatar{width:72px;height:72px;font-size:30px}
.yt-ava-option b{font-size:14px;font-weight:600}
.yt-ava-option small{font-size:12px;color:#aaa;line-height:1.3}
.yt-ava-option:disabled{opacity:.45;cursor:default}
.yt-ava-option.busy{opacity:.6;pointer-events:none}
.yt-ava-note{margin:10px 16px 0;font-size:13px;line-height:1.35}
.yt-ava .yt-ava-note{margin:14px 0 0}
.yt-ava-note.wait{color:#f1c26b}
.yt-ava-note.ok{color:#6fd49b}
.yt-ava-note.bad{color:#ff8a8a}

/* Рилс → YouTube Shorts (Макс 2026-10-31): строка в окне дня. */
.prep-line.yt-plan{background:#f4f6fa;color:#56657f}

/* Счётчики карточки профиля (Макс 2026-10-31): число крупно, подпись мелко под ним, колонки ровно. */
.ig-card-stats:has(.card-stat){display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;width:100%;margin-top:6px}
.card-stat{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0}
.card-stat b{font-size:19px;font-weight:700;line-height:1.15;color:#242833;font-variant-numeric:tabular-nums}
.card-stat small{font-size:11px;color:#8a94a6;white-space:nowrap}
/* Вкладка «Google Диск» (Макс 2026-10-31): папки моделей обложками, по видео и рейтинг. */
.drive-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;flex-wrap:wrap}
.drive-summary{font-size:13px;color:#657187}
.drive-summary b{color:#242833;font-weight:650;font-variant-numeric:tabular-nums}
.drive-summary small{display:block;font-size:11px;color:#98a2b3;margin-top:4px}
.link-button{border:0;background:none;padding:0;font:inherit;color:#3067dd;cursor:pointer}
.link-button:hover{text-decoration:underline}
.drive-sort{display:flex;gap:3px;background:#eef1f6;border-radius:10px;padding:3px}
.drive-sort button{border:0;background:none;font:inherit;font-size:12px;font-weight:550;color:#7d889b;padding:8px 16px;border-radius:8px;cursor:pointer}
.drive-sort button.on{background:#fff;color:#242833;box-shadow:0 1px 3px #10234220}
.drive-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:15px;margin-top:18px}
.drive-card{display:flex;flex-direction:column;padding:0;background:#fff;border:1px solid #e7eaf0;border-radius:15px;overflow:hidden;color:#242833;font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}
.drive-card:hover{border-color:#c9d6ee;box-shadow:0 10px 28px #1023420f;transform:translateY(-2px)}
.drive-cover{position:relative;display:block;aspect-ratio:4/5;background:#e9edf3;overflow:hidden}
.drive-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.drive-cover-empty{display:grid;place-items:center;height:100%;font-size:44px;font-weight:600;color:#a3adbd}
.drive-place{position:absolute;top:10px;left:10px;min-width:30px;height:30px;padding:0 8px;display:grid;place-items:center;border-radius:999px;background:#0f1729b8;color:#fff;font-size:13px;font-weight:700;font-style:normal;backdrop-filter:blur(6px)}
.drive-place.podium{background:linear-gradient(135deg,#f6c453,#e0912f);color:#3b2604}
.drive-phones{position:absolute;left:10px;bottom:10px;right:10px;display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:calc(100% - 20px);font-size:11px;font-weight:600;color:#fff;background:#3067ddd9;border-radius:999px;padding:4px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.drive-phones svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;flex:none}
.drive-body{display:flex;flex-direction:column;gap:6px;padding:12px 14px 14px}
.drive-name{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drive-count{display:flex;align-items:baseline;gap:6px;font-size:12px;color:#8a94a6}
.drive-count b{font-size:24px;font-weight:700;line-height:1;color:#242833;font-variant-numeric:tabular-nums}
.drive-count .drive-count-photos{margin-left:8px}
.drive-links{display:flex;flex-wrap:wrap;gap:6px 18px}
.drive-tier{margin-left:auto;font-style:normal;font-size:11px;font-weight:650;border-radius:999px;padding:3px 9px}
.t-топ{background:#e6f6ef;color:#1f8a63}.t-сильная{background:#eaf1fd;color:#3067dd}.t-средняя{background:#fdf4e2;color:#a87a1d}.t-слабая{background:#f4f5f8;color:#8a94a6}
.drive-bar{display:block;height:5px;border-radius:999px;background:#eef1f6;overflow:hidden}
.drive-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5b8def,#3067dd)}
.drive-body small{font-size:11px;color:#98a2b3;line-height:1.45}
dialog.drive-dialog{max-width:620px}
.drive-hero{display:flex;gap:18px;align-items:flex-start}
.drive-hero .drive-cover{width:132px;flex:none;border-radius:12px}
.drive-hero>div{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#7d889b;min-width:0}
.drive-hero .drive-name{font-size:18px;color:#242833}
.drive-hero .account-link{color:#3067dd;margin-top:6px;font-weight:550}
.drive-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin-top:16px}
.drive-stat{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 6px;border:1px solid #e9edf3;border-radius:12px;background:#fafbfd}
.drive-stat b{font-size:20px;font-weight:700;color:#242833;font-variant-numeric:tabular-nums;line-height:1.1}
.drive-stat small{font-size:11px;color:#8a94a6;text-align:center;line-height:1.3}
.drive-h{font-size:14px;font-weight:650;color:#242833;margin:20px 0 10px}
@media (max-width:640px){.drive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.drive-body{padding:10px}.drive-count b{font-size:20px}.drive-stats{grid-template-columns:repeat(2,1fr)}.drive-why li{grid-template-columns:1fr auto;row-gap:4px}.drive-why .drive-bar{grid-column:1/-1;order:3}.drive-hero .drive-cover{width:96px}}
.drive-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.drive-why{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-direction:column;border:1px solid #e9edf3;border-radius:12px;overflow:hidden}
.drive-why li{display:grid;grid-template-columns:150px 1fr 110px 96px;align-items:center;gap:12px;padding:11px 14px;font-size:12px;color:#657187;border-top:1px solid #eef1f6}
.drive-why li:first-child{border-top:0}
.drive-why li.total{background:#f7f9fc}
.drive-why small{display:block;font-size:11px;color:#98a2b3;font-weight:400}
.drive-why-name{color:#242833;font-weight:600}
.drive-why-value{color:#3d4657}
.drive-why-points{text-align:right;font-variant-numeric:tabular-nums;font-size:11px;color:#98a2b3}
.drive-why-points b{display:block;font-size:14px;color:#242833}
.drive-why li.total .drive-why-points b{font-size:16px;color:#3067dd}
.drive-why-how{font-size:11px;color:#98a2b3;line-height:1.6;margin:0 0 12px}
.mark-logo{display:block;width:22px;height:22px;object-fit:contain;flex:none}
.drive-marks{position:absolute;top:9px;right:9px;display:flex;gap:5px;padding:5px;border-radius:999px;background:#ffffffeb;box-shadow:0 2px 10px #0f17291f}
.drive-marks .mark{display:block;line-height:0}
.drive-marks .mark.off,.drive-line.off .mark-logo,.drive-filter .mark-logo{transition:opacity .2s}
.drive-marks .mark.off{filter:grayscale(1);opacity:.4}
.drive-filter{display:inline-flex;align-items:center;gap:7px;border:1px solid #d4ebfb;background:#fff;color:#1d8fd6;font:inherit;font-size:12px;font-weight:600;padding:7px 12px 7px 8px;border-radius:10px;cursor:pointer}
.drive-filter .mark-logo{width:20px;height:20px}
.drive-filter.on{background:#e8f6fe;border-color:#93d3f8}
.drive-line{display:flex;align-items:center;gap:7px}
.drive-line .mark-logo{width:18px;height:18px}
.drive-line.off .mark-logo{filter:grayscale(1);opacity:.45}
.drive-phone-list{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.drive-phone{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border:1px solid #e7eaf0;border-radius:11px;background:#fff;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
.drive-phone:hover{border-color:#c9d6ee}
.drive-phone.picked{border-color:#3067dd;background:#f2f6fe;box-shadow:0 0 0 1px #3067dd inset}
.drive-phone.mine{cursor:default;background:#f2fbf7;border-color:#cdebdc}
.drive-phone-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.drive-phone-main b{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#242833}
.drive-phone-main svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;color:#3067dd}
.drive-phone small{font-size:11px;color:#8a94a6}
.drive-phone-now{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:12px;color:#3d4657;text-align:right;flex:none}
.drive-phone.mine .drive-phone-now{color:#1f8a63;font-weight:600}
.drive-phone-now small.on{color:#1f8a63}
.drive-assign{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:4px 0 14px}
.drive-assign .button{font-size:13px;padding:10px 16px}
.drive-assign small{flex-basis:100%;font-size:11px;color:#a87a1d}
.drive-assign .live-error{flex-basis:100%;margin:0}
.drive-own{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:16px 0 4px;padding:12px 14px;border:1px solid #e9edf3;border-radius:12px;background:#fafbfd}
.drive-own-toggle{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:550;color:#242833;cursor:pointer}
.drive-own-toggle .mark-logo{width:18px;height:18px}
.drive-own-followers{display:flex;align-items:flex-end;gap:8px}
.drive-own-followers label{display:flex;flex-direction:column;gap:4px;margin:0;font-size:11px;font-weight:500;color:#8a94a6}
.drive-own-followers input{width:150px;margin:0;padding:8px 10px;font-size:13px}
.drive-own-followers .button{font-size:12px;padding:9px 14px}
/* Ролик только для YouTube в расписании (Макс 2026-10-31): рилсов в Instagram ещё нет, а YouTube — каждый день. */
.day-chip.youtube{color:#3067dd;border-color:#bcd0fb;background:#fff}
.day-chip.youtube.posted{background:#e9f7f0;border-color:#2f9e6f;color:#237a55}
.day-chip.youtube.failed{background:#ffedf0;border-color:#f0b9c1;color:#b84c59}
.day-chip.youtube.needs_review,.day-chip.youtube.running,.day-chip.youtube.publishing{background:#fff3de;border-color:#e9c27a;color:#946913}

/* Без шапки и пояснений (Макс 2026-11-02: «все пояснялки нахуй убери»): заголовок — и сразу дело. */
body.live .dashboard-header,body.live .page-title .eyebrow,body.live .content-toolbar,body.live .live-info,
body.live .stats .stat:not(:last-child) small,body.live .arch-map-hint,body.live #archViewNote,body.live .arch-catalog .arch-eyebrow{display:none}
body.live #pageSubtitle:empty{display:none}
body.live .page-title{align-items:center;margin-bottom:20px}
body.live .page-title h1{margin:0;font-size:28px}
body.live .workspace{padding-top:28px}
.sync-error{color:#b84c59;font-size:12px;font-weight:550}
/* Потеря связи — плашкой снизу: не наезжает на кнопки справа от заголовка и ничего не сдвигает (Макс 2026-11-02). */
.sync-error:not(:empty){position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:70;max-width:min(90vw,640px);background:#fff;border:1px solid #f0d5d8;border-radius:10px;padding:9px 14px;box-shadow:0 8px 24px #1a223414}
.storage-note.low{margin:0 0 12px;font-size:12px;color:#b84c59;font-weight:600}
.calendar-table td{vertical-align:top}
.calendar-table td:first-child{padding-top:14px}
