/* Главная по концепту c8 (14.10.2026). Перенесено из правок концепта docs/concepts/home/c8-original.html
   (ветка concepts/home); встроенные стили концепта заменены классами и CSS-переменными — CSP портала. */

/* Приветствие и быстрые действия: компактные кнопки (значок + название) */
.home-hero{margin-bottom:0}
.home-greeting p{max-width:none}
.home-quick{align-self:center;justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px}
.home-quick .quick-tile{flex-direction:row;align-items:center;gap:10px;min-height:0;height:48px;padding:0 16px 0 7px;border-radius:16px;white-space:nowrap;box-shadow:none}
.home-quick .quick-tile strong{margin-top:0;font-size:14px}
.home-quick .quick-icon{width:34px;height:34px;border-radius:11px}
.home-quick .quick-icon svg{width:18px;height:18px}
.home-quick .quick-tile:hover{transform:translateY(-2px);box-shadow:0 12px 24px -16px #2a184745}
.hcfg{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:1px solid #e6e3ee;border-radius:12px;background:#fff;font:600 13px/1 inherit;font-family:inherit;color:#52357e;cursor:pointer}
.hcfg:hover{background:#f4f0f9}
.hcfg[aria-pressed="true"]{background:#52357e;color:#fff;border-color:#52357e}
.hcfg.ghost{border-color:transparent;background:none;color:#68636e}
.home-edit-hint{margin:0;padding:8px 14px;border-radius:12px;background:#f4f0f9;color:#52357e;font-size:13px}
.home-grid{gap:16px}
@media(max-width:980px){.home-quick{justify-self:start;justify-content:flex-start}}
@media(max-width:760px){.home-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-self:stretch;gap:8px}.home-quick .quick-tile{flex-direction:column;justify-content:center;height:auto;padding:10px 4px;gap:6px;text-align:center;white-space:normal}.home-quick .quick-tile strong{font-size:12px;line-height:1.25}.hcfg{display:none}}

/* Мой день */
.c6day{--line:#e7e1ec;--muted:#68636e;--violet:#52357e;--soft:#f4f0f9;--soft-2:#eee9f6;--paper:#faf8fc;--ink:#26242a;--now:#e03131;display:flex;flex:1;min-width:0}
.c6day>.card{flex:1;min-width:0;border:1px solid var(--line);border-radius:22px;padding:18px 20px 14px;background:linear-gradient(180deg,#eef4fd 0,#fff 96px)}
.c6day .k-event{--k:#d6336c;--kb:#ffe3ec;--kt:#8f1d45}
.c6day .k-meet{--k:#1c7ed6;--kb:#e3f0ff;--kt:#0b4a86}
.c6day .k-due{--k:#f08c00;--kb:#fff3dc;--kt:#8a4b00}
.c6day .k-away{--k:#15aabf;--kb:#e0f8fb;--kt:#0b6876}
.c6day .empty{margin:0;padding:10px 2px;font-size:13px;color:var(--muted)}
.c6day .c6h{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.c6day .c6h h2{margin:0;font-size:17px;letter-spacing:-.01em}
.c6day .c6h .spacer{flex:1}
.c6day .c6h .ci{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#e1ecfb;color:#2f6fb0;flex-shrink:0}
.c6day .pill{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 11px;border-radius:999px;background:var(--soft);color:var(--violet);font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}
.c6day .pill:hover{background:var(--soft-2)}
.c6day .week6{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:12px}
.c6day .d6{display:grid;justify-items:center;gap:3px;padding:8px 0 7px;border:0;border-radius:14px;background:var(--paper);font:inherit;font-size:11.5px;color:var(--muted);cursor:pointer;transition:background 140ms}
.c6day .d6:hover{background:var(--soft)}
.c6day .d6 b{font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums}
.c6day .d6.today{background:#52357e;color:#e9e1f7}
.c6day .d6.today b{color:#fff}
.c6day .d6.sel:not(.today){box-shadow:inset 0 0 0 1.5px #52357e}
.c6day .d6 i{display:flex;gap:2px;height:5px}
.c6day .d6 i u{width:5px;height:5px;border-radius:50%;background:var(--k)}
.c6day .tl6-list{max-height:260px;overflow:auto}
.c6day .tl6{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;width:100%;padding:4px 0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
.c6day .tl6 .t{padding-top:7px;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.c6day .tl6 .t small{display:block;font-size:11.5px;font-weight:500;color:var(--muted)}
.c6day .tl6 .c{display:grid;gap:2px;padding:7px 10px;border-radius:10px;background:var(--kb);color:var(--kt)}
.c6day .tl6 .c b{font-size:13.5px;font-weight:600}
.c6day .tl6 .c small{font-size:12px;opacity:.85}
.c6day .tl6.past{opacity:.5}
.c6day .tl6.late .c{background:#fde9e3;color:#b2391a}
.c6day .now6{position:relative;height:2px;margin:6px 0 6px 58px;background:var(--now)}
.c6day .now6 b{position:absolute;left:-58px;top:-8px;padding:0 5px;border-radius:5px;background:var(--now);color:#fff;font-size:11px;line-height:17px}

/* Плашки 2×2: красный — горит, фиолетовый — отдел, синий — мои, зелёный — ждут ответа */
.home-stats.st2x2{grid-template-columns:repeat(2,minmax(0,1fr));height:100%;gap:14px}
.st2x2 .stat-tile{padding:14px 16px}
.st2x2 .stat-tile small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st2x2 .stat-hot{--tone:#fdecea;--accent:#c62f22}
.st2x2 .stat-dep{--tone:#efe8fb;--accent:#52357e}
.st2x2 .stat-mine{--tone:#e7effc;--accent:#2862b8}
.st2x2 .stat-wait{--tone:#e3f5e8;--accent:#2b7a3d}

/* Жду от других */
.x9-wait,.x9-team{flex:1;min-width:0;display:block;padding:18px 20px}
.x9-h{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.x9-h h2{font-size:17px;margin:0}
.x9-h a,.x9-more{font-size:12.5px;font-weight:600;color:#52357e;padding:4px 10px;border-radius:999px;background:#f4f0f9;text-decoration:none}
.x9-more{display:inline-block;margin-top:8px}
.x9-sp{flex:1}
.x9-sub{font-size:12.5px;color:#68636e}
.x9-c{min-width:22px;height:20px;padding:0 6px;border-radius:10px;background:#eee9f6;color:#52357e;font-size:11.5px;font-weight:700;display:inline-grid;place-items:center}
.x9-alert{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;border-radius:999px;background:#fde9e3;color:#b2391a;font-size:12px;font-weight:700}
.x9-alert::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.x9-r{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center;width:calc(100% + 16px);padding:8px;margin:0 -8px;border:0;border-radius:12px;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
.x9-r:hover{background:#f7f4fb}
.x9-r+.x9-r{margin-top:2px}
.x9-r.bad{background:#fff4f0}
.x9-i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center}
.x9-i.ticket,.x9-key i.ticket{background:#fbe7f4;color:#a3268d}
.x9-i.sign,.x9-key i.sign{background:#e6effb;color:#2f6fb0}
.x9-i.task,.x9-key i.task{background:#efe8fb;color:#52357e}
.x9-r.bad .x9-i{background:#fde3da;color:#b2391a}
.x9-m{display:grid;min-width:0}
.x9-m b{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x9-m small{font-size:12px;color:#68636e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x9-d{display:grid;justify-items:end;text-align:right}
.x9-d b{font-size:13.5px;font-weight:700;color:#26242a;font-variant-numeric:tabular-nums}
.x9-d small{font-size:11.5px;color:#68636e}
.x9-d small.bad{color:#b2391a;font-weight:600}
.x9-d small.warn{color:#9a5a00;font-weight:600}
.x9-r.bad .x9-d b{color:#b2391a}
.x9-key{display:flex;gap:14px;margin-top:12px;font-size:11.5px;color:#68636e}
.x9-key span{display:inline-flex;align-items:center;gap:5px}
.x9-key i{width:10px;height:10px;border-radius:3px}

/* Мой отдел. Статусы: зелёный — готово, оранжевый — на проверке, синий — в работе, серый — план */
.d9{--g-done:#3f9a4a;--g-review:#f08a24;--g-progress:#3b7ddd;--g-plan:#b8b4c0}
.d9.x9-team{padding:14px 20px}
.d9 .x9-h{margin-bottom:8px}
.d9-top{display:flex;align-items:center;gap:14px}
.d9-pr{display:grid;flex:none}
.d9-pr b{font-size:24px;line-height:1.1;color:#2e7a37}
.d9-pr small{font-size:12px;color:#68636e}
.d9-bar{flex:1;display:flex;gap:3px;height:10px;border-radius:5px;overflow:hidden;min-width:0}
.d9-bar.empty{background:#efeef2}
.d9-bar i{flex:var(--f,1)}
.d9-bar .g-done{background:var(--g-done)}.d9-bar .g-review{background:var(--g-review)}.d9-bar .g-progress{background:var(--g-progress)}.d9-bar .g-plan{background:var(--g-plan)}
.d9-st{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.d9-s{display:inline-flex;gap:5px;align-items:center;padding:4px 10px;border-radius:999px;font-size:12.5px;font-weight:600;text-decoration:none}
.d9-s:hover{filter:brightness(.96)}
.d9-s.g-done{background:#e5f4e6;color:#2e7a37}.d9-s.g-review{background:#fdeedd;color:#b45f0c}.d9-s.g-progress{background:#e3edfb;color:#2862b8}.d9-s.g-plan{background:#efeef2;color:#5f5a68}
.d9-alert{padding:6px 12px;border-radius:10px;background:#fff4f0;color:#7a2a12;font-size:12.5px;margin-bottom:6px}
.d9-alert a{color:#b2391a;font-weight:700}
/* Нагрузку не показываем (решение директора 15.10.2026): сотрудник и ближайший срок */
.d9-h,.d9-r{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,1.4fr);gap:12px;align-items:center}
.d9-h{font-size:11.5px;color:#8a8590;padding:0 8px 2px}
.d9-h span:first-child{padding-left:42px}
.d9-r{position:relative;padding:4px 8px;border-radius:10px;text-decoration:none;color:#26242a}
.d9-r:hover{background:#f7f4fb}
.d9-r>u{display:grid;position:absolute;left:8px;width:32px;height:32px;border-radius:50%;place-items:center;font-size:11.5px;font-weight:700;text-decoration:none;background:#eee9f6;color:#52357e}
.d9-r>u.busy{background:#fde4ef;color:#a0237f}
.d9-r>u.away{background:#dff4f8;color:#1f6f80}
.d9-n{display:grid;grid-template-columns:32px 1fr;column-gap:10px;min-width:0}
.d9-n b,.d9-n small{grid-column:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d9-n b{font-size:13.5px}
.d9-n small{font-size:12px;color:#68636e}
.d9-n small.busy{color:#a0237f}
.d9-n small.away{color:#1f6f80}
.d9-l{display:grid;grid-template-columns:auto 1fr;gap:4px 6px;align-items:center;font-size:12.5px;color:#68636e}
.d9-l b{color:#26242a}
.d9-l i{grid-column:1/-1;display:block;height:5px;border-radius:3px;background:#efe8fb}
.d9-l i u{display:block;width:var(--w,0);height:100%;border-radius:3px;background:#8b6cc4}
.d9-x{font-size:12.5px;color:#26242a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d9-x.bad,.d9-x .bad{color:#b2391a;font-weight:600}
@media(max-width:600px){.d9-h{display:none}.d9-r{grid-template-columns:1fr auto}.d9-x{grid-column:1/-1;padding-left:42px}.d9-top{flex-wrap:wrap}.d9-bar{flex-basis:100%}}

/* Режим «Настроить»: ширина блока и перетаскивание */
.home-widget{position:relative}
.wsz{position:absolute;top:-12px;right:14px;z-index:5;display:flex;gap:2px;padding:3px;border-radius:10px;background:#fff;box-shadow:0 4px 14px rgba(60,40,120,.16)}
.wsz button{border:0;background:none;padding:4px 9px;border-radius:7px;font:600 12px/1.2 inherit;font-family:inherit;color:#68636e;cursor:pointer}
.wsz button:hover{background:#f4f0f9}
.wsz button.on{background:#52357e;color:#fff}
.wsz .wsz-hide{margin-left:4px;border-left:1px solid #eee9f6;border-radius:0 7px 7px 0}
.hedit .home-grid>.home-widget[data-widget]{outline:2px dashed #c9b8e8;outline-offset:4px;border-radius:22px;cursor:grab;touch-action:none;user-select:none}
.hedit .home-grid>.home-widget[data-widget]>:not(.wsz){pointer-events:none}
.hedit .home-widget.is-hidden>:not(.wsz){opacity:.4}
.home-widget.drag{opacity:.35;outline-style:solid}
.dghost{position:fixed;z-index:1000;pointer-events:none;margin:0;cursor:grabbing;transform:rotate(1.2deg) scale(1.02);box-shadow:0 24px 50px rgba(60,40,120,.28);border-radius:22px;outline:none}
.dghost .wsz{display:none}
/* Телефон: все блоки на всю ширину, переключателя ширины нет */
@media(max-width:760px){.home-grid>.home-widget[data-widget]{grid-column:1/-1}.wsz button[data-widget-size]{display:none}.wsz .wsz-hide{margin:0;border:0}}

/* «Мой отдел» руководителя: строки подчинённых раскрываются в их ветку (15.10.2026) */
.d9-line{display:grid;grid-template-columns:minmax(0,1fr) 52px;align-items:center;gap:6px}
.d9-line .d9-more{justify-self:end}
.d9-more{display:inline-flex;align-items:center;gap:3px;height:26px;padding:0 8px;border:0;border-radius:999px;background:#f4f0f9;color:#52357e;font:600 12px/1 inherit;font-family:inherit;cursor:pointer}
.d9-more svg{transition:transform .16s}
.d9-g.open>.d9-line>.d9-more svg{transform:rotate(180deg)}
.d9-sub{margin:2px 0 6px 22px;padding-left:10px;border-left:2px solid #eee9f6}
.d9-others{color:#68636e;font-size:13px;padding-left:50px!important}

/* Показ директору 21.10.2026: «Жду от других» и «Ждут ответа» — вкладки «я» / «команда», как вкладки браузера. */
.hb-tabs{display:flex;gap:4px;margin:-2px 0 0;padding:0 2px;border-bottom:1px solid #eee9f6}
.hb-tab{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 14px;margin-bottom:-1px;border:1px solid transparent;border-bottom:0;border-radius:12px 12px 0 0;background:none;font:inherit;font-size:13px;font-weight:600;color:#68636e;cursor:pointer}
.hb-tab:hover{color:#26242a;background:#faf8fd}
.hb-tab.on{color:#26242a;background:#fff;border-color:#eee9f6}
.hb-tab.on::after{content:'';position:absolute;left:12px;right:12px;bottom:0;height:2px;border-radius:2px;background:#52357e}
.hb-tab:focus-visible{outline:2px solid #6b46a9;outline-offset:2px}
.hb-n{min-width:22px;height:20px;padding:0 6px;border-radius:10px;background:#eee9f6;color:#52357e;font-size:11.5px;font-weight:700;display:inline-grid;place-items:center;font-variant-numeric:tabular-nums}
.hb-n.bad{background:#fde3da;color:#b2391a}
.hb-panel{padding-top:10px}
.hb-card .home-blank{min-height:120px}
.st2x2 .stat-teamhot{--tone:#fdf1e3;--accent:#a8560b}
