/* «Мой кабинет» — кабинет бухгалтера (ТЗ Жоогазын «Кабинет бухгалтера — тест в ЛК1», 29.11.2026; рабочий режим — 30.11.2026), строит my-cabinet.js (window.MYC).
   Макеты ТЗ — эталон: «Мой день», «Канбан», «Обход клиентов», «Мой прогресс». Цвета ТЗ: синий ИЗИ #1F4E9C («До договора», главные кнопки),
   жёлтый #FFF4C2 (плашка пилота, «Вы», «Переходный»). Классы — myc-*, токены — на .myc, тёмная тема — body[data-theme="dark"] .myc. */
.myc, .myc-modal, .myc-toast-wrap, .myc-pop {
    --myc-blue: #1F4E9C; --myc-blue-h: #193f80; --myc-blue-bg: #e8eef9; --myc-blue-line: #c9d6ef;
    --myc-ink: #10233f; --myc-text: #1f2a37; --myc-muted: #5f6b7a; --myc-faint: #8a94a3;
    --myc-card: #ffffff; --myc-page: #f3f5f9; --myc-soft: #f6f8fb; --myc-line: #e3e7ee; --myc-line2: #edf0f4;
    --myc-ok: #1b7f45; --myc-ok-bg: #e5f4ea; --myc-ok-line: #b9e0c7;
    --myc-warn: #c2620e; --myc-warn-bg: #fdf0e2; --myc-warn-line: #f3d2ad;
    --myc-bad: #c4302b; --myc-bad-bg: #fde9e8; --myc-bad-line: #f5c4c1;
    --myc-wait: #a77b00; --myc-wait-bg: #fff6d6;
    --myc-yel: #FFF4C2; --myc-yel-line: #f0dc8c; --myc-yel-ink: #6b5300;
    --myc-robot: #2b66ad; --myc-robot-bg: #e4eefb;
    --myc-decide-bg: #fdf5ea; --myc-decide-line: #f2dcbc;
    --myc-col: #edf0f5;
    --myc-seg-closed: #1e8a4c; --myc-seg-ready: #1F4E9C; --myc-seg-decide: #e2851c; --myc-seg-client: #f3cd46; --myc-seg-request: #c23a2f; --myc-seg-pay: #8fa6d3;
    --myc-shadow: 0 1px 2px rgba(16, 35, 63, .05), 0 1px 3px rgba(16, 35, 63, .04);
    --myc-shadow-lg: 0 12px 36px rgba(18, 30, 55, .16), 0 2px 8px rgba(18, 30, 55, .06);
    --myc-r: 12px;
    --uicb-accent: #1F4E9C;
}
body[data-theme="dark"] .myc, body[data-theme="dark"] .myc-modal, body[data-theme="dark"] .myc-toast-wrap, body[data-theme="dark"] .myc-pop {
    --myc-blue: #6f9cf0; --myc-blue-h: #8bb0f5; --myc-blue-bg: rgba(111, 156, 240, .14); --myc-blue-line: rgba(111, 156, 240, .35);
    --myc-ink: #e9eef7; --myc-text: #e2e7ef; --myc-muted: #a3adbb; --myc-faint: #7d8796;
    --myc-card: #1d2635; --myc-page: #131a25; --myc-soft: #19212e; --myc-line: #2c3646; --myc-line2: #263040;
    --myc-ok: #5ad58c; --myc-ok-bg: rgba(90, 213, 140, .13); --myc-ok-line: rgba(90, 213, 140, .32);
    --myc-warn: #f3a85a; --myc-warn-bg: rgba(243, 168, 90, .14); --myc-warn-line: rgba(243, 168, 90, .34);
    --myc-bad: #f58d87; --myc-bad-bg: rgba(245, 141, 135, .14); --myc-bad-line: rgba(245, 141, 135, .34);
    --myc-wait: #f0cd55; --myc-wait-bg: rgba(240, 205, 85, .13);
    --myc-yel: rgba(240, 205, 85, .14); --myc-yel-line: rgba(240, 205, 85, .34); --myc-yel-ink: #f0d67a;
    --myc-robot: #8db7ef; --myc-robot-bg: rgba(141, 183, 239, .14);
    --myc-decide-bg: rgba(243, 168, 90, .07); --myc-decide-line: rgba(243, 168, 90, .26);
    --myc-col: #18202c;
    --myc-seg-closed: #3cb873; --myc-seg-ready: #6f9cf0; --myc-seg-decide: #f0a04a; --myc-seg-client: #e9c84e; --myc-seg-request: #ec7067; --myc-seg-pay: #8ea7d6;
    --myc-shadow: 0 1px 2px rgba(0, 0, 0, .3); --myc-shadow-lg: 0 14px 40px rgba(0, 0, 0, .5);
    --uicb-accent: #6f9cf0;
}

/* Кнопка шапки «Мой кабинет» + пилюля «ТЕСТ» (первая в меню, только у участников пилота) */
.nav-btn.myc-nav { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: #fff8d9; color: #5a4400; box-shadow: inset 0 0 0 1px #f2dd8f; }
.nav-btn.myc-nav:hover { background: #fff2bf; color: #4a3800; }
.nav-btn.myc-nav.active { background: #FFF1B8; color: #3d2f00; box-shadow: inset 0 0 0 1.5px #e9c94c; }
.myc-test { display: inline-flex; align-items: center; height: 16px; padding: 0 6px; border-radius: 999px; background: #1F4E9C; color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
body[data-theme="dark"] .nav-btn.myc-nav { background: rgba(240, 205, 85, .12); color: #f0d67a; box-shadow: inset 0 0 0 1px rgba(240, 205, 85, .3); }
body[data-theme="dark"] .nav-btn.myc-nav.active { background: rgba(240, 205, 85, .2); color: #ffe27a; box-shadow: inset 0 0 0 1.5px rgba(240, 205, 85, .55); }
body[data-theme="dark"] .myc-test { background: #6f9cf0; color: #0f1724; }

/* Раздел прокручивается сам (.main-content > .tab-panel.active режет переполнение); плашка и вкладки — во всю ширину */
#myCabinetTab.active { overflow-y: auto; overflow-x: hidden; min-height: 0; margin: -16px -20px; background: var(--myc-page, #f3f5f9); }
body[data-theme="dark"] #myCabinetTab.active { background: #131a25; }
.myc { flex: none; display: flex; flex-direction: column; min-height: 100%; color: var(--myc-text); background: var(--myc-page); font-size: 13.5px; }
.myc *, .myc *::before, .myc *::after { box-sizing: border-box; }
.myc button { font-family: inherit; }

/* Плашка пилота */
.myc-pilot { display: flex; align-items: center; gap: 12px; padding: 9px 24px; background: var(--myc-yel); border-bottom: 1px solid var(--myc-yel-line); color: var(--myc-yel-ink); font-size: 13px; line-height: 1.45; }
.myc-pilot-txt { flex: 1; min-width: 0; color: #4d3c00; }
body[data-theme="dark"] .myc-pilot-txt { color: #efe0a8; }
.myc-pilot-txt b { color: #3d2f00; font-weight: 700; }
body[data-theme="dark"] .myc-pilot-txt b { color: #ffe9a3; }
.myc-pilot-txt .myc-mode { color: var(--myc-blue); font-weight: 700; }
.myc-gear { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--myc-yel-line); border-radius: 9px; background: rgba(255, 255, 255, .55); color: #6b5300; cursor: pointer; }
.myc-gear:hover { background: #fff; color: var(--myc-blue); border-color: var(--myc-blue-line); }
body[data-theme="dark"] .myc-gear { background: rgba(0, 0, 0, .15); color: #f0d67a; }

/* Подвкладки + пилюля свежести */
.myc-tabsbar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 0 24px; min-height: 50px; background: var(--myc-card); border-bottom: 1px solid var(--myc-line); }
.myc-tabs { display: flex; align-items: stretch; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; flex: 1; align-self: stretch; }
.myc-tabs::-webkit-scrollbar { height: 0; }
.myc-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; background: none; color: var(--myc-muted); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.myc-tab:hover { color: var(--myc-ink); }
.myc-tab.on { color: var(--myc-ink); font-weight: 700; }
.myc-tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--myc-blue); }
.myc-tab .myc-tab-n { color: inherit; font-weight: inherit; }
.myc-fresh { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--myc-ok-bg); color: var(--myc-ok); border: 1px solid var(--myc-ok-line); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.myc-fresh i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.myc-fresh.warn { background: var(--myc-wait-bg); color: var(--myc-wait); border-color: var(--myc-yel-line); }
.myc-fresh.bad { background: var(--myc-bad-bg); color: var(--myc-bad); border-color: var(--myc-bad-line); }
.myc-fresh .sep { opacity: .5; font-weight: 400; }
/* источник в пилюле — своим цветом: устаревший выделен жирным, в норме — спокойным зелёным (цвет самой пилюли — по худшему) */
.myc-fresh .fp { font-weight: 600; }
.myc-fresh.warn .fp.ok, .myc-fresh.bad .fp.ok { color: var(--myc-ok); font-weight: 500; }
.myc-fresh .fp.warn { color: var(--myc-wait); font-weight: 700; }
.myc-fresh .fp.bad { color: var(--myc-bad); font-weight: 700; }

.myc-body { flex: 1; padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 16px; max-width: 1600px; width: 100%; }

/* Заголовок экрана */
.myc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.myc-h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--myc-ink); letter-spacing: -.01em; }
.myc-sub { margin-top: 5px; color: var(--myc-muted); font-size: 13.5px; }
.myc-sub b.late { color: var(--myc-bad); }
.myc-sub b.soon { color: var(--myc-warn); }
.myc-head-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Кнопки */
.myc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border: 1px solid var(--myc-line); border-radius: 9px; background: var(--myc-card); color: var(--myc-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; transition: border-color .12s, background .12s, color .12s; }
.myc-btn:hover:not(:disabled) { border-color: var(--myc-blue); color: var(--myc-blue); }
.myc-btn.primary { background: var(--myc-blue); border-color: var(--myc-blue); color: #fff; }
.myc-btn.primary:hover:not(:disabled) { background: var(--myc-blue-h); border-color: var(--myc-blue-h); color: #fff; }
body[data-theme="dark"] .myc-btn.primary, body[data-theme="dark"] .myc-btn.primary:hover:not(:disabled) { color: #0e1622; }
.myc-btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.myc-btn.block { width: 100%; }
.myc-btn.ghost { border-color: transparent; background: none; color: var(--myc-muted); }
.myc-btn.ghost:hover:not(:disabled) { color: var(--myc-blue); border-color: transparent; background: var(--myc-blue-bg); }
.myc-btn:disabled { opacity: .55; cursor: default; }
.myc-btn .myc-n { font-variant-numeric: tabular-nums; }

/* Карточка */
.myc-card { background: var(--myc-card); border: 1px solid var(--myc-line); border-radius: var(--myc-r); box-shadow: var(--myc-shadow); }
.myc-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 8px; }
.myc-card-t { margin: 0; font-size: 15px; font-weight: 700; color: var(--myc-ink); }
.myc-card-cap { color: var(--myc-faint); font-size: 12.5px; }

/* Полоса периода */
.myc-period { padding: 16px 20px 14px; }
.myc-period-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.myc-period-t { font-size: 15px; font-weight: 700; color: var(--myc-ink); }
.myc-period-pct { font-size: 14px; font-weight: 600; color: var(--myc-muted); font-variant-numeric: tabular-nums; }
.myc-bar { display: flex; gap: 2px; height: 10px; border-radius: 6px; overflow: hidden; background: var(--myc-line2); }
.myc-bar i { display: block; height: 100%; min-width: 3px; }
.myc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 11px; font-size: 12.5px; }
.myc-legend span { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.myc-legend span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.seg-closed { color: var(--myc-seg-closed); } .seg-ready { color: var(--myc-seg-ready); } .seg-decide { color: var(--myc-seg-decide); }
.seg-client { color: #b48a00; } .seg-request { color: var(--myc-seg-request); } .seg-pay { color: #5f78ad; }
body[data-theme="dark"] .seg-client { color: var(--myc-seg-client); } body[data-theme="dark"] .seg-pay { color: var(--myc-seg-pay); }
.myc-bar .seg-closed { background: var(--myc-seg-closed); } .myc-bar .seg-ready { background: var(--myc-seg-ready); } .myc-bar .seg-decide { background: var(--myc-seg-decide); }
.myc-bar .seg-client { background: var(--myc-seg-client); } .myc-bar .seg-request { background: var(--myc-seg-request); } .myc-bar .seg-pay { background: var(--myc-seg-pay); }

/* Карточки групп */
.myc-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.myc-grp { display: flex; flex-direction: column; gap: 6px; padding: 15px 16px 16px; min-height: 170px; }
.myc-grp.hl { border-color: var(--myc-blue-line); box-shadow: 0 0 0 3px rgba(31, 78, 156, .1), var(--myc-shadow); }
.myc-grp-t { font-size: 13.5px; font-weight: 600; color: var(--myc-muted); }
.myc-grp-t.ready { color: var(--myc-blue); } .myc-grp-t.decide { color: var(--myc-warn); } .myc-grp-t.request { color: var(--myc-bad); }
.myc-grp-n { font-size: 30px; line-height: 1.05; font-weight: 700; color: var(--myc-ink); font-variant-numeric: tabular-nums; }
.myc-grp-d { flex: 1; font-size: 12.5px; line-height: 1.45; color: var(--myc-muted); }
.myc-why { display: block; }
.myc-why b { color: var(--myc-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.myc-why.sub { margin-top: 4px; color: var(--myc-faint); }
.myc-btn-cap { margin-top: 6px; font-size: 11.5px; line-height: 1.35; color: var(--myc-muted); text-align: center; }
.myc-grp-ok { display: flex; align-items: center; height: 38px; color: var(--myc-ok); font-weight: 600; font-size: 13.5px; }

/* Две колонки ниже: «Срочно сегодня» и справа приём + робот */
.myc-cols { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.myc-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.myc-list { display: flex; flex-direction: column; padding: 0 18px 6px; }
.myc-li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--myc-line2); min-width: 0; }
.myc-li:first-child { border-top: 0; }
.myc-li-main { flex: 1; min-width: 0; }
.myc-li-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.myc-li-name { font-weight: 700; color: var(--myc-ink); font-size: 14px; overflow-wrap: anywhere; }
.myc-li-name.link { cursor: pointer; }
.myc-li-name.link:hover { color: var(--myc-blue); }
.myc-li-sub { margin-top: 3px; font-size: 12.5px; color: var(--myc-muted); line-height: 1.4; overflow-wrap: anywhere; }
.myc-li-sub .done { color: var(--myc-ok); font-weight: 600; }
.myc-li-end { display: flex; align-items: center; gap: 10px; flex: none; }
.myc-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px 30px; text-align: center; color: var(--myc-muted); font-size: 13px; }
.myc-empty b { color: var(--myc-ink); font-size: 14px; }
.myc-empty svg { color: var(--myc-ok); }

/* Чип отчёта и бейджи */
.myc-chip { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; background: var(--myc-blue-bg); color: var(--myc-blue); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.myc-chip.muted { background: var(--myc-line2); color: var(--myc-muted); }
.myc-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.myc-badge.late { background: var(--myc-bad-bg); color: var(--myc-bad); }
.myc-badge.days { background: var(--myc-warn-bg); color: var(--myc-warn); }
.myc-badge.today { background: var(--myc-ok-bg); color: var(--myc-ok); }
.myc-badge.pre { background: var(--myc-blue-bg); color: var(--myc-blue); }
.myc-badge.trans { background: var(--myc-yel); color: var(--myc-yel-ink); }
.myc-badge.done { background: var(--myc-ok-bg); color: var(--myc-ok); }
.myc-badge.robot { background: var(--myc-robot-bg); color: var(--myc-robot); }
.myc-badge.you { background: var(--myc-yel); color: var(--myc-yel-ink); }
.myc-badge.client { background: var(--myc-line2); color: var(--myc-muted); }
.myc-badge.wait { background: var(--myc-line2); color: var(--myc-muted); }
.myc-badge.shadow { background: var(--myc-line2); color: var(--myc-muted); font-weight: 600; }
.myc-rowstate { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--myc-muted); }
.myc-rowstate svg { color: var(--myc-ok); }

/* «Робот за ночь» */
.myc-robot { background: var(--myc-yel); border-color: var(--myc-yel-line); padding: 15px 18px 16px; }
.myc-robot .myc-card-t { margin-bottom: 8px; }
.myc-robot p { margin: 0; padding: 3px 0; font-size: 13px; color: var(--myc-text); }
.myc-robot .cap { margin-top: 6px; font-size: 11.5px; color: var(--myc-yel-ink); }

/* Канбан */
.myc-kb-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.myc-search { position: relative; width: 240px; max-width: 100%; }
.myc-search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--myc-line); border-radius: 9px; background: var(--myc-card); color: var(--myc-text); font: inherit; font-size: 13.5px; outline: none; }
.myc-search input:focus { border-color: var(--myc-blue); box-shadow: 0 0 0 3px rgba(31, 78, 156, .14); }
.myc-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--myc-faint); pointer-events: none; }
.myc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.myc-pill { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border: 1px solid var(--myc-line); border-radius: 999px; background: var(--myc-card); color: var(--myc-ink); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.myc-pill:hover { border-color: var(--myc-blue); color: var(--myc-blue); }
.myc-pill.on { background: var(--myc-ink); border-color: var(--myc-ink); color: #fff; }
body[data-theme="dark"] .myc-pill.on { background: #e2e7ef; border-color: #e2e7ef; color: #111827; }
.myc-pill.mine { background: var(--myc-yel); border-color: var(--myc-yel-line); color: var(--myc-yel-ink); }
.myc-pill.mine.on { background: #f1d35a; border-color: #e3bf2c; color: #3d2f00; }
body[data-theme="dark"] .myc-pill.mine.on { background: rgba(240, 205, 85, .3); color: #ffe27a; border-color: rgba(240, 205, 85, .6); }
.myc-pill .n { font-weight: 500; opacity: .75; }
.myc-board-wrap { overflow-x: auto; overflow-y: visible; padding-bottom: 6px; margin: 0 -2px; scrollbar-width: thin; }
.myc-board { display: grid; grid-template-columns: repeat(6, minmax(212px, 1fr)); gap: 12px; align-items: start; padding: 0 2px; min-width: 0; }
.myc-col { display: flex; flex-direction: column; gap: 10px; padding: 12px 10px 10px; border-radius: 14px; background: var(--myc-col); border: 1px solid transparent; min-width: 0; transition: box-shadow .12s, border-color .12s; }
.myc-col.decide { background: var(--myc-decide-bg); border-color: var(--myc-decide-line); }
.myc-col.drop-ok { border-color: var(--myc-blue); box-shadow: 0 0 0 3px rgba(31, 78, 156, .15); }
.myc-col.drop-no { border-color: var(--myc-line); }
.myc-col-h { padding: 0 4px; }
.myc-col-top { display: flex; align-items: center; gap: 7px; }
.myc-col-top b { flex: 1; min-width: 0; font-size: 13.5px; color: var(--myc-ink); }
.myc-col-top em { font-style: normal; font-weight: 700; color: var(--myc-ink); font-variant-numeric: tabular-nums; }
.myc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.myc-col-rule { margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--myc-muted); }
.myc-col-now { margin-top: 4px; font-size: 11px; line-height: 1.35; color: var(--myc-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.myc-col-else { padding: 6px 4px 2px; font-size: 11.5px; color: var(--myc-faint); }
.myc-kc { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px 12px; border-radius: 10px; background: var(--myc-card); border: 1px solid var(--myc-line); box-shadow: var(--myc-shadow); cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.myc-kc:hover { border-color: var(--myc-blue-line); box-shadow: 0 3px 12px rgba(16, 35, 63, .09); }
.myc-kc.dragging { opacity: .55; transform: scale(.98); }
.myc-kc-name { font-weight: 700; font-size: 13.5px; color: var(--myc-ink); line-height: 1.3; overflow-wrap: anywhere; }
.myc-kc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.myc-kc-more { font-size: 11.5px; color: var(--myc-faint); }
.myc-kc-why { font-size: 12.5px; color: var(--myc-text); line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.myc-kc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.myc-col-foot { display: flex; flex-direction: column; gap: 8px; }
.myc-rule { padding: 12px 16px; border-radius: 10px; background: var(--myc-yel); border: 1px solid var(--myc-yel-line); color: #4d3c00; font-size: 13px; }
body[data-theme="dark"] .myc-rule { color: #efe0a8; }
.myc-rule b { color: #3d2f00; }
body[data-theme="dark"] .myc-rule b { color: #ffe9a3; }

/* Скелетоны */
.myc-sk { position: relative; overflow: hidden; background: var(--myc-line2); border-radius: 8px; }
.myc-sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: myc-sh 1.25s infinite; }
body[data-theme="dark"] .myc-sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@keyframes myc-sh { to { transform: translateX(100%); } }
.myc-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--myc-wait-bg); color: var(--myc-yel-ink); border: 1px solid var(--myc-yel-line); font-size: 12.5px; }
.myc-note.err { background: var(--myc-bad-bg); color: var(--myc-bad); border-color: var(--myc-bad-line); }
.myc-soon { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 20px; text-align: center; color: var(--myc-muted); }
.myc-soon b { font-size: 16px; color: var(--myc-ink); }

/* Окна */
.myc-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(12, 20, 33, .48); }
.myc-dlg { width: 560px; max-width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--myc-card); color: var(--myc-text); border-radius: 14px; box-shadow: var(--myc-shadow-lg); border: 1px solid var(--myc-line); overflow: hidden; }
.myc-dlg.wide { width: 760px; }
.myc-dlg-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 10px; }
.myc-dlg-h h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--myc-ink); flex: 1; }
.myc-dlg-h p { margin: 4px 0 0; font-size: 12.5px; color: var(--myc-muted); }
.myc-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--myc-muted); cursor: pointer; }
.myc-x:hover { background: var(--myc-line2); color: var(--myc-ink); }
.myc-dlg-b { padding: 6px 20px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.myc-dlg-f { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 20px 16px; border-top: 1px solid var(--myc-line2); }
.myc-dlg-f .grow { flex: 1; min-width: 0; font-size: 12px; color: var(--myc-muted); }
.myc-shadow-note { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 9px; background: var(--myc-yel); border: 1px solid var(--myc-yel-line); color: #4d3c00; font-size: 12.5px; line-height: 1.45; }
body[data-theme="dark"] .myc-shadow-note { color: #efe0a8; }
.myc-field { display: flex; flex-direction: column; gap: 6px; }
.myc-field > span { font-size: 12.5px; font-weight: 600; color: var(--myc-muted); }
.myc-field textarea, .myc-field input[type="text"], .myc-field select { width: 100%; border: 1px solid var(--myc-line); border-radius: 9px; background: var(--myc-card); color: var(--myc-text); font: inherit; font-size: 13.5px; padding: 9px 11px; outline: none; }
.myc-field select { height: 38px; padding-top: 0; padding-bottom: 0; }
.myc-field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.myc-field textarea:focus, .myc-field input[type="text"]:focus { border-color: var(--myc-blue); box-shadow: 0 0 0 3px rgba(31, 78, 156, .14); }
.myc-sec-t { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--myc-muted); text-transform: uppercase; letter-spacing: .04em; }
.myc-plist { display: flex; flex-direction: column; border: 1px solid var(--myc-line); border-radius: 10px; overflow: hidden; }
.myc-plist > div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--myc-line2); font-size: 13px; }
.myc-plist > div:first-child { border-top: 0; }
.myc-plist .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.myc-plist .nm b { font-weight: 600; color: var(--myc-ink); }
.myc-plist .nm span { display: block; color: var(--myc-muted); font-size: 12px; }
.myc-msgs { display: flex; flex-direction: column; gap: 10px; }
.myc-msg { border: 1px solid var(--myc-line); border-radius: 10px; padding: 10px 12px; }
.myc-msg-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12.5px; }
.myc-msg-h b { color: var(--myc-ink); }
.myc-msg textarea { width: 100%; min-height: 70px; border: 1px solid var(--myc-line2); border-radius: 8px; background: var(--myc-soft); color: var(--myc-text); font: inherit; font-size: 13px; line-height: 1.45; padding: 8px 10px; resize: vertical; outline: none; }
.myc-msg textarea:focus { border-color: var(--myc-blue); background: var(--myc-card); }
.myc-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.myc-opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--myc-line); border-radius: 9px; cursor: pointer; font-size: 13px; background: var(--myc-card); }
.myc-opt:hover { border-color: var(--myc-blue-line); }
.myc-opt.on { border-color: var(--myc-blue); background: var(--myc-blue-bg); color: var(--myc-blue); font-weight: 600; }
.myc-opt input { margin: 0; }

/* Тост «уйдёт через 10 с — Отменить» */
.myc-toast-wrap { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 10060; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(560px, calc(100vw - 24px)); pointer-events: none; }
.myc-toast { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px 11px 16px; border-radius: 12px; background: #13213a; color: #fff; box-shadow: var(--myc-shadow-lg); pointer-events: auto; font-size: 13px; position: relative; overflow: hidden; }
body[data-theme="dark"] .myc-toast { background: #2a3548; }
.myc-toast .t { flex: 1; min-width: 0; line-height: 1.4; }
.myc-toast .t small { display: block; opacity: .72; font-size: 11.5px; }
.myc-toast .cnt { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 26px; text-align: right; }
.myc-toast button { height: 32px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.myc-toast button:hover { background: rgba(255, 255, 255, .18); }
.myc-toast .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: #f3cd46; }

/* Всплывашка у колонки: «какое событие сдвинет карточку» */
.myc-pop { position: fixed; z-index: 10055; max-width: 320px; padding: 11px 13px; border-radius: 10px; background: var(--myc-card); color: var(--myc-text); border: 1px solid var(--myc-line); box-shadow: var(--myc-shadow-lg); font-size: 12.5px; line-height: 1.45; }
.myc-pop b { display: block; margin-bottom: 3px; color: var(--myc-ink); font-size: 13px; }

/* «Обход клиентов» */
.myc-rtop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.myc-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 2px; color: var(--myc-blue); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.myc-link:hover { text-decoration: underline; }
.myc-rpos { font-size: 14px; color: var(--myc-ink); white-space: nowrap; }
.myc-rbar { flex: 1; min-width: 120px; height: 6px; border-radius: 4px; background: var(--myc-line2); overflow: hidden; }
.myc-rbar i { display: block; height: 100%; background: var(--myc-blue); border-radius: 4px; }
.myc-rcap { color: var(--myc-muted); font-size: 12.5px; }
.myc-rgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.myc-rcard { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.myc-rhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.myc-rname { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--myc-ink); cursor: pointer; overflow-wrap: anywhere; }
.myc-rname:hover { color: var(--myc-blue); }
.myc-rpills { display: flex; flex-wrap: wrap; gap: 8px; }
.myc-rp { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.myc-rp.bad { background: var(--myc-bad-bg); color: var(--myc-bad); }
.myc-rp.wait { background: var(--myc-wait-bg); color: var(--myc-wait); }
.myc-rp.ok { background: var(--myc-ok-bg); color: var(--myc-ok); }
.myc-rp.na { background: var(--myc-line2); color: var(--myc-muted); }
.myc-rp.blue { background: var(--myc-blue-bg); color: var(--myc-blue); }
.myc-rp.zero { background: transparent; color: var(--myc-faint); box-shadow: inset 0 0 0 1px var(--myc-line); font-weight: 500; }
.myc-rtable-wrap { overflow-x: auto; margin: 0 -6px; }
.myc-rtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.myc-rtable th { padding: 8px 8px; text-align: left; font-size: 12px; font-weight: 600; color: var(--myc-muted); border-bottom: 1px solid var(--myc-line); white-space: nowrap; }
.myc-rtable th.st, .myc-rtable td.st { text-align: center; width: 56px; padding-left: 4px; padding-right: 4px; }
.myc-rtable td { padding: 9px 8px; border-bottom: 1px solid var(--myc-line2); vertical-align: middle; }
.myc-rtable tr.prob td { background: var(--myc-warn-bg); }
.myc-rtable tr.prob td:first-child { border-radius: 8px 0 0 8px; }
.myc-rtable tr.prob td:last-child { border-radius: 0 8px 8px 0; }
.myc-rtable tr.off td { color: var(--myc-faint); }
.myc-rtable td.ob { min-width: 170px; }
.myc-ob { font-weight: 700; color: var(--myc-ink); white-space: nowrap; }
.myc-rtable tr.off .myc-ob { color: var(--myc-muted); font-weight: 600; }
.myc-ob-note { display: block; font-size: 11.5px; color: var(--myc-muted); margin-top: 2px; }
.myc-st { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; line-height: 1; }
.myc-st.ok { background: var(--myc-ok-bg); color: var(--myc-ok); }
.myc-st.act { background: var(--myc-warn-bg); color: var(--myc-warn); box-shadow: inset 0 0 0 1px var(--myc-warn-line); }
.myc-st.wait { background: var(--myc-wait-bg); color: var(--myc-wait); box-shadow: inset 0 0 0 1px var(--myc-yel-line); }
.myc-st.bad { background: var(--myc-bad-bg); color: var(--myc-bad); }
.myc-st svg { width: 14px; height: 14px; }
.myc-st svg path { stroke-width: 2.6px; }
.myc-st.todo, .myc-st.na { background: none; color: var(--myc-faint); font-weight: 600; }
.myc-st.na { opacity: .55; }
.myc-todo-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.myc-todo { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.myc-todo.ok { color: var(--myc-ok); } .myc-todo.warn { color: var(--myc-warn); } .myc-todo.bad { color: var(--myc-bad); }
.myc-todo.wait { color: var(--myc-wait); } .myc-todo.robot { color: var(--myc-muted); font-weight: 500; } .myc-todo.na { color: var(--myc-faint); font-weight: 500; }
.myc-recon { position: relative; padding: 14px 16px 15px; border-radius: 12px; background: var(--myc-decide-bg); border: 1px solid var(--myc-decide-line); display: flex; flex-direction: column; gap: 11px; transition: box-shadow .3s; }
.myc-recon.flash { box-shadow: 0 0 0 3px rgba(226, 133, 28, .35); }
.myc-recon-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.myc-recon-h b { color: var(--myc-ink); font-size: 14px; }
.myc-recon-h span { color: var(--myc-warn); font-weight: 600; font-size: 12.5px; }
.myc-recon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.myc-recon-grid > div { padding: 9px 12px; border-radius: 10px; background: var(--myc-card); border: 1px solid var(--myc-line); }
.myc-recon-grid span { display: block; font-size: 12px; color: var(--myc-muted); }
.myc-recon-grid b { font-size: 18px; color: var(--myc-ink); font-variant-numeric: tabular-nums; }
.myc-recon-grid .diff b { color: var(--myc-bad); }
.myc-recon-t { font-size: 13px; color: var(--myc-text); line-height: 1.45; }
.myc-recon-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.myc-rfoot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.myc-side { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.myc-side .myc-card-t { font-size: 14.5px; margin-bottom: 2px; }
.myc-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
.myc-kv span { color: var(--myc-text); }
.myc-kv b { font-weight: 700; color: var(--myc-ink); text-align: right; }
.myc-kv b.bad { color: var(--myc-bad); } .myc-kv b.ok { color: var(--myc-ok); } .myc-kv b.warn { color: var(--myc-warn); }
.myc-bub { padding: 8px 11px; border-radius: 10px; background: var(--myc-soft); border: 1px solid var(--myc-line2); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.myc-bub.out { background: var(--myc-blue-bg); border-color: var(--myc-blue-line); }
.myc-bub-h { font-size: 11.5px; color: var(--myc-muted); margin-bottom: 2px; }
.myc-bub-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.myc-link.sm { font-size: 12.5px; margin-top: 2px; align-self: flex-start; }
.myc-find { border-color: var(--myc-blue-line); box-shadow: 0 0 0 3px rgba(31, 78, 156, .07), var(--myc-shadow); }
.myc-find-t { font-size: 13px; font-weight: 600; color: var(--myc-ink); }
.myc-find-cap { font-size: 11.5px; color: var(--myc-faint); text-align: center; }
@media (max-width: 1200px) { .myc-rgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .myc-rcard { padding: 15px 14px 14px; }
    .myc-rname { font-size: 18px; }
    .myc-recon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* таблица обязательств на телефоне — карточками: обязательство, пять шагов с подписями, что сделать и кнопка */
    .myc-rtable-wrap { overflow: visible; margin: 0; }
    .myc-rtable, .myc-rtable tbody { display: block; }
    .myc-rtable thead { display: none; }
    .myc-rtable tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 4px; padding: 11px 10px; border-bottom: 1px solid var(--myc-line2); border-radius: 10px; }
    .myc-rtable tr.prob { background: var(--myc-warn-bg); border-bottom-color: transparent; margin-bottom: 4px; }
    .myc-rtable tr.prob td, .myc-rtable tr.prob td:first-child, .myc-rtable tr.prob td:last-child { background: none; border-radius: 0; }
    .myc-rtable td { display: block; padding: 0; border: 0; }
    .myc-rtable td.ob { grid-column: 1 / -1; min-width: 0; }
    .myc-rtable th.st, .myc-rtable td.st { width: auto; padding: 0; }
    .myc-rtable td.st::after { content: attr(data-l); display: block; margin-top: 3px; font-size: 10.5px; color: var(--myc-muted); font-weight: 500; }
    .myc-rtable td.todo { grid-column: 1 / -1; min-width: 0; }
    .myc-todo-wrap { flex-wrap: wrap; }
    .myc-rfoot .myc-btn { flex: 1; }
    .myc-rcap { flex-basis: 100%; }
}

/* «Мой прогресс» — графики по скиллу dataviz: тонкие столбцы, 2px зазор между сегментами, скругление 4px только у вершины,
   подпись суммы на вершине, легенда для двух рядов, подсказка на сегменте, таблица для доступности.
   Цвета рядов проверены валидатором палитры: светлая — #1F4E9C / #D99A00, тёмная — #6F9CF0 / #C4922B */
.myc { --myc-c-you: #1F4E9C; --myc-c-robot: #D99A00; --myc-track: #e6ecf6; }
body[data-theme="dark"] .myc { --myc-c-you: #6F9CF0; --myc-c-robot: #C4922B; --myc-track: rgba(111, 156, 240, .16); }
.myc-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--myc-line); border-radius: 10px; background: var(--myc-soft); }
.myc-seg button { height: 32px; padding: 0 16px; border: 0; border-radius: 8px; background: none; color: var(--myc-muted); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.myc-seg button:hover { color: var(--myc-ink); }
.myc-seg button.on { background: var(--myc-card); color: var(--myc-ink); box-shadow: 0 1px 3px rgba(16, 35, 63, .12); }
.myc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.myc-tile { padding: 15px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.myc-tile-l { font-size: 13px; color: var(--myc-muted); font-weight: 500; }
.myc-tile-v { font-size: 30px; line-height: 1.15; font-weight: 700; color: var(--myc-ink); }
.myc-tile-v.empty { font-size: 15px; font-weight: 600; color: var(--myc-faint); padding: 8px 0 6px; }
.myc-tile-d { font-size: 12.5px; font-weight: 600; color: var(--myc-muted); }
.myc-tile-d.good { color: var(--myc-ok); } .myc-tile-d.bad { color: var(--myc-bad); }
.myc-tile-s { font-size: 11.5px; color: var(--myc-faint); }
.myc-tile-warn { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 4px; padding: 3px 8px; border-radius: 6px; background: var(--myc-wait-bg); color: var(--myc-wait); font-size: 11.5px; font-weight: 600; }
.myc-pgrid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.myc-chart { padding-bottom: 12px; }
.myc-key { display: flex; gap: 14px; font-size: 12.5px; color: var(--myc-muted); }
.myc-key span { display: inline-flex; align-items: center; gap: 6px; }
.myc-key i { width: 10px; height: 10px; border-radius: 2px; }
.myc-key i.y { background: var(--myc-c-you); } .myc-key i.r { background: var(--myc-c-robot); }
.myc-wk-wrap { position: relative; display: flex; gap: 8px; padding: 6px 18px 0 12px; height: 230px; }
.myc-wk-grid { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 0 26px; font-size: 11px; color: var(--myc-faint); text-align: right; min-width: 22px; font-variant-numeric: tabular-nums; }
.myc-wk-cols { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; border-bottom: 1px solid var(--myc-line); margin-bottom: 26px; position: relative;
    background-image: linear-gradient(var(--myc-line2), var(--myc-line2)); background-size: 100% 1px; background-position: 0 50%; background-repeat: no-repeat; }
.myc-wk { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; }
.myc-wk-plot { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; padding-top: 22px; }
.myc-wk-stack { position: relative; width: 32px; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.myc .myc-wk-stack .seg { display: block; min-height: 3px; background: var(--myc-c-you); cursor: default; outline: none; transition: filter .12s; }
.myc .myc-wk-stack .seg.r { background: var(--myc-c-robot); }  /* .myc — сильнее глобального body[data-theme="dark"] .seg из style-new.css */
.myc-wk-stack .seg:first-of-type { border-radius: 4px 4px 0 0; }
.myc-wk-stack .seg:hover, .myc-wk-stack .seg:focus-visible { filter: brightness(1.12); box-shadow: 0 0 0 2px var(--myc-card), 0 0 0 3px var(--myc-blue-line); }
.myc-wk-sum { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); font-size: 12.5px; font-weight: 700; color: var(--myc-ink); }
.myc-wk-stack.zero .myc-wk-sum { color: var(--myc-faint); font-weight: 600; }
.myc-wk-base { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--myc-faint); opacity: .6; }
.myc-wk-x { position: absolute; bottom: -22px; font-size: 11.5px; color: var(--myc-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.myc-wk.cur .myc-wk-x { color: var(--myc-ink); font-weight: 600; }
.myc-chart-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 18px 0; font-size: 11.5px; color: var(--myc-faint); }
.myc-chart-f > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myc-wk-tablewrap { padding: 8px 18px 4px; }
.myc-wk-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.myc-wk-table th, .myc-wk-table td { padding: 5px 8px; border-bottom: 1px solid var(--myc-line2); text-align: right; }
.myc-wk-table th:first-child, .myc-wk-table td:first-child { text-align: left; }
.myc-tip { position: fixed; z-index: 10070; min-width: 140px; padding: 7px 10px; border-radius: 8px; background: var(--myc-card, #fff); color: var(--myc-text, #1f2a37); border: 1px solid var(--myc-line, #e3e7ee); box-shadow: 0 8px 24px rgba(18, 30, 55, .16); font-size: 12px; pointer-events: none; }
.myc-tip b { display: block; font-size: 13.5px; color: var(--myc-ink, #10233f); }
.myc-tip span { color: var(--myc-muted, #5f6b7a); }
body[data-theme="dark"] .myc-tip { background: #1d2635; color: #e2e7ef; border-color: #2c3646; }
body[data-theme="dark"] .myc-tip b { color: #e9eef7; }
.myc-planbox { padding: 15px 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.myc-planbox .myc-card-t { margin-bottom: 6px; }
.myc-plan { display: grid; grid-template-columns: 120px minmax(0, 1fr) 80px; align-items: center; gap: 14px; padding: 6px 0; font-size: 13px; }
.myc-plan b { color: var(--myc-ink); font-weight: 700; }
.myc-plan-n { text-align: right; color: var(--myc-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.myc-plan-n b { color: var(--myc-ink); }
.myc-meter { height: 8px; border-radius: 999px; background: var(--myc-track); overflow: hidden; }
.myc-meter i { display: block; height: 100%; border-radius: 999px; background: var(--myc-c-you); min-width: 0; }
.myc-meter i.good { background: var(--myc-seg-closed); }
.myc-speedbox { padding: 15px 18px 8px; display: flex; flex-direction: column; }
.myc-speedbox .myc-card-t { margin-bottom: 4px; }
.myc-speed { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 0 12px; border-top: 1px solid var(--myc-line2); font-size: 13px; color: var(--myc-text); }
.myc-speed:first-of-type { border-top: 0; padding-top: 4px; }
.myc-streak { background: var(--myc-yel); border-color: var(--myc-yel-line); padding: 15px 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.myc-dashes { display: flex; gap: 4px; margin-top: 8px; }
.myc-dashes i { flex: 1 1 0; max-width: 18px; min-width: 4px; height: 6px; border-radius: 3px; background: rgba(31, 78, 156, .18); }
.myc-dashes i.on { background: var(--myc-c-you); }
body[data-theme="dark"] .myc-dashes i { background: rgba(111, 156, 240, .2); }
.myc-streak-cap { margin-top: 6px; font-size: 11px; color: var(--myc-yel-ink); opacity: .8; }
/* «Настройки пилота»: список клиентов с поиском */
.myc-clist { max-height: 260px; overflow-y: auto; border: 1px solid var(--myc-line); border-radius: 10px; }
.myc-crow { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--myc-line2); font-size: 13px; cursor: pointer; }
.myc-crow:first-child { border-top: 0; }
.myc-crow:hover { background: var(--myc-soft); }
.myc-crow input { width: 16px; height: 16px; flex: none; margin: 0; }
.myc-crow .nm { flex: 1; min-width: 0; color: var(--myc-text); overflow-wrap: anywhere; }
.myc-crow .rs { color: var(--myc-faint); font-size: 12px; white-space: nowrap; }
.myc-crow[hidden] { display: none; }
@media (max-width: 1200px) { .myc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .myc-pgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .myc-seg { width: 100%; } .myc-seg button { flex: 1; padding: 0 8px; }
    .myc-tile-v { font-size: 26px; }
    .myc-wk-wrap { padding: 6px 10px 0 4px; height: 210px; }
    .myc-wk-cols { gap: 4px; }
    .myc-wk-stack { width: 22px; }
    .myc-wk-x { font-size: 10.5px; }
    .myc-plan { grid-template-columns: 92px minmax(0, 1fr) 70px; gap: 10px; }
}

/* Узкий экран */
@media (max-width: 1360px) {
    .myc-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .myc-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    #myCabinetTab.active { margin: -16px -20px; }
    .myc-pilot { padding: 9px 16px; font-size: 12.5px; align-items: flex-start; }
    .myc-tabsbar { padding: 0 8px 0 4px; gap: 8px; flex-wrap: wrap; }
    .myc-tabs { flex: 1 1 100%; order: 1; }
    .myc-fresh-wrap { order: 2; margin: 0 0 8px 12px; }
    .myc-fresh { height: 26px; font-size: 12px; }
    .myc-tab { padding: 0 10px; font-size: 13.5px; min-height: 46px; }
    .myc-body { padding: 16px 16px 32px; gap: 14px; }
    .myc-h1 { font-size: 22px; }
    .myc-head-acts { width: 100%; }
    .myc-head-acts .myc-btn { flex: 1; }
    .myc-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .myc-grp { min-height: 0; padding: 13px 13px 14px; }
    .myc-grp-n { font-size: 26px; }
    .myc-li { flex-wrap: wrap; gap: 8px; }
    .myc-li-end { width: 100%; justify-content: space-between; }
    .myc-list { padding: 0 14px 4px; }
    .myc-card-h { padding: 13px 14px 6px; }
    .myc-search { width: 100%; }
    .myc-board { grid-template-columns: repeat(6, 252px); }
    .myc-dlg-h { padding: 16px 16px 8px; } .myc-dlg-b { padding: 6px 16px 12px; } .myc-dlg-f { padding: 12px 16px 14px; }
}
@media (max-width: 430px) {
    .myc-groups { grid-template-columns: minmax(0, 1fr); }
    .myc-grp-n { font-size: 24px; }
}
/* группа «Приём» в «Моём дне» (30.11.2026): подпись «в «Разборе» N», бухгалтер приёма у руководителя, «Ещё N — весь список приёма» */
.myc .myc-card-sub { margin-left: auto; font-size: 12px; color: var(--myc-muted); white-space: nowrap; }
.myc .myc-li-who { margin-left: 8px; font-size: 11.5px; color: var(--myc-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.myc .myc-more { display: block; width: calc(100% - 24px); margin: 4px 12px 12px; padding: 8px 10px; border: 1px dashed var(--myc-line); border-radius: 10px; background: transparent; color: var(--myc-blue); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center; }
.myc .myc-more:hover { background: var(--myc-blue-bg); border-color: var(--myc-blue-line); }

/* ===== Рабочий режим (Жоогазын 30.11.2026, Izi.CRM #5403): строка «чей кабинет», настройки режима и доступа, «Клиенты и бухгалтеры» ===== */
.myc-scope { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 24px; background: var(--myc-card); border-bottom: 1px solid var(--myc-line); font-size: 13px; }
.myc-scope-l { font-size: 12.5px; font-weight: 700; color: var(--myc-muted); }
.myc-scope-v { color: var(--myc-faint); }
.myc .myc-who { height: 34px; min-width: 220px; max-width: 100%; border: 1px solid var(--myc-line); border-radius: 9px; background-color: var(--myc-card); color: var(--myc-ink); font: inherit; font-size: 13.5px; font-weight: 600; padding: 0 32px 0 12px; }
.myc .myc-who:hover { border-color: var(--myc-blue-line); }
.myc .myc-who:focus { outline: none; border-color: var(--myc-blue); box-shadow: 0 0 0 3px rgba(31, 78, 156, .14); }
.myc-scope-hint { color: var(--myc-muted); font-size: 12.5px; min-width: 0; }
.myc-scope-gear { margin-left: auto; }
.myc-btn.ghost.myc-scope-gear span { font-weight: 600; }
.myc-empty-scope svg { color: var(--myc-blue); }
.myc-empty-scope b { max-width: 520px; }
.myc-empty-scope span { max-width: 560px; }
.myc-rowstate.bad { color: var(--myc-bad); font-weight: 600; }
.myc-rowstate.bad svg { color: var(--myc-bad); }
.myc-rowstate.wait svg { color: var(--myc-wait); }
/* подпись режима в окнах: пилот — жёлтая, рабочий режим — спокойная синяя */
.myc-shadow-note.live { background: var(--myc-blue-bg); border-color: var(--myc-blue-line); color: var(--myc-text); }
.myc-shadow-note.live svg { color: var(--myc-blue); flex: none; }
body[data-theme="dark"] .myc-shadow-note.live { color: var(--myc-text); }
.myc-dlg.xl { width: 980px; }
/* окно настроек: режим */
.myc-modebox { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--myc-yel-line); border-radius: 12px; background: var(--myc-yel); }
.myc-modebox.live { border-color: var(--myc-ok-line); background: var(--myc-ok-bg); }
.myc-modebox-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 280px; }
.myc-modebox-t b { color: var(--myc-ink); font-size: 14px; }
.myc-modebox-t span { color: var(--myc-muted); font-size: 12.5px; line-height: 1.4; }
.myc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.myc-two .myc-field { margin-bottom: 6px; }
.myc-clist.sm { max-height: 190px; }
/* «Клиенты и бухгалтеры» */
.myc-asg .myc-pills { gap: 6px; }
.myc-asg .myc-pill { height: 30px; padding: 0 12px; font-size: 12.5px; }
.myc-asg-list { max-height: min(52vh, 520px); overflow-y: auto; border: 1px solid var(--myc-line); border-radius: 10px; }
.myc-asg-list .myc-crow { align-items: flex-start; }
.myc-asg-list .myc-crow input { margin-top: 2px; }
.myc-asg-list .myc-crow.head { position: sticky; top: 0; z-index: 1; background: var(--myc-soft); font-weight: 700; color: var(--myc-muted); font-size: 12px; align-items: center; }
.myc-asg-list .myc-crow.head input { margin-top: 0; }
.myc-crow .nm small, .myc-crow .rs small { display: block; color: var(--myc-faint); font-size: 11.5px; font-weight: 400; }
.myc-asg-list .myc-crow .rs { text-align: right; white-space: normal; max-width: 46%; }
.myc-asg-list .myc-crow .rs b { color: var(--myc-ink); font-weight: 600; font-size: 12.5px; }
.myc-asg-list .myc-crow .rs b.warn { color: var(--myc-warn); }
.myc-asg-to { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--myc-muted); font-weight: 600; }
.myc-asg-to select { height: 38px; width: auto; min-width: 200px; max-width: 100%; border: 1px solid var(--myc-line); border-radius: 9px; background-color: var(--myc-card); color: var(--myc-ink); font: inherit; font-size: 13.5px; padding: 0 32px 0 12px; }
.myc-asg-hist summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--myc-muted); padding: 4px 0; }
.myc-asg-hist .myc-plist { margin-top: 8px; }
/* строки с галочкой в окнах (полисы в «Отправить QR») */
.myc-plist > label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--myc-line2); font-size: 13px; cursor: pointer; }
.myc-plist > label:first-child { border-top: 0; }
.myc-plist > label input { width: 16px; height: 16px; flex: none; margin: 0; }
@media (max-width: 760px) {
    .myc-scope { padding: 8px 16px; }
    .myc .myc-who { flex: 1 1 100%; min-width: 0; }
    .myc-scope-gear { margin-left: 0; }
    .myc-two { grid-template-columns: minmax(0, 1fr); }
    .myc-asg-to { display: flex; flex: 1 1 100%; }
    .myc-asg-to span { display: none; }
    .myc-asg-to select { flex: 1 1 auto; width: 100%; min-width: 0; }
    .myc-dlg-f .myc-btn { flex: 1 1 auto; }
    .myc-asg-list .myc-crow .rs { max-width: 50%; }
}
/* Задачи этапов ЛК2 в листе клиента (Жоогазын 30.11.2026, #5409–5411): чья задача у строки, ответственный, «Передать задачу» */
.myc-ob-note.other { color: var(--myc-warn); }
.myc-team { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--myc-line); border-radius: 10px; background: var(--myc-soft); }
.myc-team-l { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 320px; min-width: 0; font-size: 13px; color: var(--myc-text); }
.myc-team-l svg { color: var(--myc-blue); flex: none; margin-top: 1px; }
.myc-team-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.myc-team-l b { color: var(--myc-ink); }
.myc-team-l small { color: var(--myc-faint); font-size: 11.5px; }
.myc-team-last { font-size: 12px; color: var(--myc-muted); }
.myc-team-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .myc-team-acts { width: 100%; } .myc-team-acts .myc-btn { flex: 1; } }
.myc-plist > label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--myc-line2); font-size: 13px; cursor: pointer; }
.myc-plist > label:first-child { border-top: 0; }
.myc-plist > label:hover { background: var(--myc-soft); }
