/* ==========================================================================
   SHVEDOFF · тема «Светлый премиум»
   Почти белый тёплый фон, белые карточки без рамок с мягкой тенью,
   золото — единственный главный цвет, крупные плотные заголовки (Inter 800).
   Подключается последней и перекрывает старое оформление.
   ========================================================================== */
:root{
 --t-bg:#F2F4F8;--t-card:#FFFFFF;--t-ink:#15171C;--t-ink2:#475467;--t-muted:#667085;--t-line:#EEF0F4;--t-soft:#EEF1F5;
 --t-gold:#BE8F33;--t-gold-d:#BE8F33;--t-gold-dd:#A97D25;--t-gold-soft:#F6ECD6;--t-gold-ink:#8A6420;--t-gold-ring:#D4A64A;
 --t-red:#B42318;--t-red-soft:#FFE2DE;--t-green:#146C2E;--t-green-soft:#E3F4E6;--t-yellow-soft:#FFF1CF;--t-yellow-ink:#7A4E08;
 --t-dark:#16181D;--t-dark-ink:#B9BEC9;
 --t-shadow:0 1px 2px rgba(21,23,28,.04),0 6px 18px rgba(21,23,28,.05);--t-shadow-lg:0 2px 4px rgba(21,23,28,.04),0 16px 40px rgba(21,23,28,.10);
 --t-r:22px;--t-r-sm:14px;
}
html body{background:var(--t-bg)!important;color:var(--t-ink)}
body .workspace,body main,body .app-main{background:transparent!important}
body h1,body h2,body .mobile-title,body .product-heading h1,body .chat-nav-title{color:var(--t-ink)!important;letter-spacing:-.025em}
body h1,body .mobile-title{font-weight:700!important}
body h2{font-weight:700!important}

/* ---------- шапка и нижняя панель ---------- */
body .site-header{background:rgba(251,250,247,.86)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:0!important;box-shadow:none!important}
body .mobile-title{font-size:24px!important}
body #profileAvatar{background:var(--t-gold-soft)!important;color:var(--t-gold-ink)!important;border:0!important;font-weight:700}
body .bottom-nav{background:rgba(255,255,255,.92)!important;border-top:0!important;box-shadow:0 -1px 0 var(--t-line),0 -10px 30px rgba(28,27,25,.05)}
body .bottom-nav button{color:#A39E92!important}
body .bottom-nav button.active{color:var(--t-gold-d)!important}
body .bottom-nav button.active:before{background:var(--t-gold)!important;width:28px!important;height:4px!important;border-radius:0 0 4px 4px!important}

/* ---------- кнопки: золото вместо зелёного ---------- */
body .big-btn.ok,body button.success,body .ui-button.primary,body button.primary,body .check-actions .ok,body .send-button,body .deck-yes{background:var(--t-gold-d)!important;border-color:var(--t-gold-d)!important;color:#fff!important;box-shadow:0 6px 16px rgba(169,128,42,.25)!important}
body .big-btn.ok:hover,body .ui-button.primary:hover,body button.primary:hover{background:var(--t-gold-dd)!important}
body .big-btn,body .ui-button{border-radius:16px!important;font-weight:700!important}
body .big-btn.plain,body .ui-button.secondary,body button.secondary,body .quiet-button{background:var(--t-soft)!important;border:0!important;color:var(--t-ink)!important;box-shadow:none!important}
body .big-btn.warn{background:var(--t-red)!important;border-color:var(--t-red)!important;color:#fff!important}
body .ui-button.danger-soft{background:var(--t-red-soft)!important;border:0!important;color:var(--t-red)!important}
body .link-btn{color:var(--t-gold-d)!important}
body .team-actions .big-btn.ok{box-shadow:0 8px 20px rgba(169,128,42,.28)!important}

/* ---------- карточки: белые, без рамок, мягкая тень ---------- */
body .big-card,body .dept-tile,body .check-card,body .swipe-card,body .ui-card,body .chat-office,body .chat-dept,body .chat-person,body .login-card,body .vm-card,body .proposal-card,body .orbit-side,body .execution,body .result-block,body .expected-block,body .deck-empty,body .big-empty{background:var(--t-card)!important;border:0!important;box-shadow:var(--t-shadow)!important;border-radius:var(--t-r)!important}
body .dept-tile:hover,body .big-card:hover,body .chat-dept:hover,body .chat-person:hover,body .orbit-side:hover{box-shadow:var(--t-shadow-lg)!important;transform:translateY(-1px)}
body .dept-tile,body .big-card,body .chat-dept,body .chat-person,body .orbit-side{transition:box-shadow .2s ease,transform .2s ease}
body .dept-tile .dept-name,body .dept-name{font-weight:800!important;letter-spacing:-.02em;color:var(--t-ink)!important}
body .dept-all{background:transparent!important;border:1.5px dashed #DDD6C6!important;box-shadow:none!important;color:var(--t-ink2)!important;border-radius:var(--t-r)!important}
body .chat-office.active,body .chat-person.active{box-shadow:0 0 0 2px var(--t-gold),var(--t-shadow)!important}

/* ---------- статусы: мягкие пастельные плашки ---------- */
body .dept-counts span,body .dept-tile .dept-counts>*{border-radius:99px!important;border:0!important}
body .tab-work,body [class*="g-work"] .check-status{--tone:var(--t-yellow-soft);--tone-ink:var(--t-yellow-ink)}
body .status-tabs button{border:0!important;border-radius:18px!important;background:var(--t-card)!important;box-shadow:var(--t-shadow)!important}
body .status-tabs button.tab-work{color:var(--t-yellow-ink)!important}
body .status-tabs button.tab-overdue{color:var(--t-red)!important}
body .status-tabs button.tab-done{color:var(--t-green)!important}
body .status-tabs button.tab-work.active{background:var(--t-yellow-soft)!important;box-shadow:0 0 0 2px #E9C979!important}
body .status-tabs button.tab-overdue.active{background:var(--t-red-soft)!important;box-shadow:0 0 0 2px #EBA79E!important}
body .status-tabs button.tab-done.active{background:var(--t-green-soft)!important;box-shadow:0 0 0 2px #9FCDB0!important}
body .status-tabs button *{color:inherit!important}
body .big-card{border-left:0!important}
body .big-card.g-work{box-shadow:inset 4px 0 0 #E5BE62,var(--t-shadow)!important}
body .big-card.g-overdue{box-shadow:inset 4px 0 0 #D9796C,var(--t-shadow)!important}
body .big-card.g-done{box-shadow:inset 4px 0 0 #7DBB92,var(--t-shadow)!important}
body .check-card{padding:22px!important}
body .check-status{border-radius:99px!important;border:0!important}
body .big-avatar,body .member-avatar,body .conversation-avatar{background:var(--t-gold-soft)!important;color:var(--t-gold-ink)!important;border:0!important;font-weight:700}
body .back-big{background:var(--t-card)!important;border:0!important;box-shadow:var(--t-shadow)!important;border-radius:99px!important;color:var(--t-ink)!important}

/* ---------- поиск и поля ---------- */
body input[type=search],body #search,body .login-card input:not([type=radio]):not([type=checkbox]),body .password-form input,body .ui-field input,body .ui-field select,body .ui-field textarea,body dialog input:not([type=radio]):not([type=checkbox]),body dialog textarea,body dialog select{background:var(--t-soft)!important;border:1.5px solid transparent!important;border-radius:14px!important;box-shadow:none!important;color:var(--t-ink)!important}
body input:focus,body textarea:focus,body select:focus{border-color:var(--t-gold)!important;background:#fff!important;outline:0!important;box-shadow:0 0 0 4px rgba(196,154,58,.15)!important}
body .dept-choice label{background:var(--t-soft)!important;border:1.5px solid transparent!important;border-radius:14px!important}
body .dept-choice label:has(input:checked){background:var(--t-gold-soft)!important;border-color:var(--t-gold)!important}
body .dept-choice input{accent-color:var(--t-gold-d)}
body input.en-bad{border-color:#D9796C!important;background:#FFF6F4!important}

/* ---------- главный экран начальника ---------- */
body .boss-launch{background:var(--t-bg)!important}
body .boss-launch>img{width:132px!important;margin:0 0 18px!important;align-self:flex-start}
body .launch-head{align-self:stretch;margin:0 4px 6px}
body .launch-hello{margin:0;color:var(--t-muted);font-size:16px}
body .launch-name{margin:2px 0 0;font-size:34px!important;font-weight:800!important;letter-spacing:-.035em;line-height:1.1;color:var(--t-ink)}
body .launch-voice .orbit-icon{background:var(--t-gold)!important;border:0!important;box-shadow:0 0 0 16px var(--t-gold-soft),0 18px 40px rgba(169,128,42,.30)!important;color:#fff!important}
body .launch-voice strong{color:var(--t-ink)!important;font-weight:700!important;font-size:17px!important}
body .boss-launch.vm-live .launch-voice .orbit-icon{background:#D4A443!important;box-shadow:0 0 0 calc(16px + var(--lvl,0)*26px) #F1DFB0,0 0 46px #E8B84D88,0 18px 50px #AA874140!important}
body .orbit-side{padding:16px 6px 14px!important}
body .orbit-side .orbit-icon{background:var(--t-gold-soft)!important;color:var(--t-gold-ink)!important;border:0!important;box-shadow:none!important}
body .orbit-side strong{color:var(--t-ink)!important;font-weight:700!important}
body .launch-count{position:absolute;top:8px;right:8px;min-width:24px;height:24px;padding:0 7px;border-radius:12px;font:800 13px/24px Inter,sans-serif;text-align:center;color:#fff}
body .launch-count.gold{background:var(--t-gold-d)}
body .launch-count.red{background:var(--t-red)}
body .orbit-side{position:relative}

/* ---------- сотрудник: колода и списки ---------- */
body .swipe-card{border-radius:26px!important}
body .swipe-card h3{font-weight:800!important;letter-spacing:-.02em;color:var(--t-ink)!important}
body .swipe-due{background:var(--t-yellow-soft)!important;color:var(--t-yellow-ink)!important;border:0!important;border-radius:99px!important}
body .swipe-due.late{background:var(--t-red-soft)!important;color:var(--t-red)!important}
body .swipe-from{color:var(--t-gold-d)!important}
body .deck-no{background:var(--t-card)!important;color:var(--t-red)!important;border:0!important;box-shadow:var(--t-shadow)!important}
body .mini-done{background:var(--t-gold-d)!important;border:0!important;color:#fff!important}

/* ---------- меню «Ещё», окна ---------- */
body dialog,body .more-sheet,body .code-dialog{background:var(--t-card)!important;border:0!important;box-shadow:var(--t-shadow-lg)!important}
body .more-icon{background:var(--t-gold-soft)!important;color:var(--t-gold-ink)!important;border:0!important}
body .more-item{border-radius:14px!important}
body .more-item:hover{background:var(--t-soft)!important}
body .more-leave{border-top:1px dashed var(--t-line)!important}
body .more-address{background:var(--t-soft)!important;border:0!important}
body .qr-box{border:0!important;box-shadow:var(--t-shadow)!important;border-radius:22px!important}
body .invite-link{background:var(--t-soft)!important;border:0!important;border-radius:12px!important}

/* ---------- экраны входа ---------- */
body .login-screen{background:var(--t-bg)!important}
body .login-card{box-shadow:var(--t-shadow-lg)!important;border-radius:28px!important}
body .login-card h1{font-weight:800!important;letter-spacing:-.03em}
body .login-remember{background:var(--t-soft)!important;border:0!important;border-radius:16px!important}

/* ---------- таблицы команды и отчётов ---------- */
body .ui-table th{background:transparent!important;color:var(--t-muted)!important;border-bottom:1px solid var(--t-line)!important}
body .ui-table td{border-color:var(--t-line)!important}
body .eyebrow,body .product-heading .eyebrow{color:var(--t-gold-d)!important}

/* ---------- компьютер: светлая боковая панель ---------- */
@media(min-width:761px){
 body .app-sidebar{background:#F5F2EB!important;color:var(--t-ink2)!important;border-right:0!important;box-shadow:inset -1px 0 0 var(--t-line)}
 body .app-sidebar .brand{background:transparent!important;box-shadow:none!important;border:0!important}
 body .app-sidebar a,body .app-sidebar button:not(.side-btn){color:var(--t-ink2)!important}
 body .app-sidebar .nav-caption,body .app-sidebar .office-label small{color:var(--t-muted)!important}
 body .app-sidebar .active,body .app-sidebar [aria-current=page]{background:#fff!important;color:var(--t-ink)!important;box-shadow:var(--t-shadow)!important;border:0!important;border-radius:14px!important}
 body .app-sidebar b[data-count],body .app-sidebar .nav-badge{background:var(--t-gold-soft)!important;color:var(--t-gold-ink)!important}
 body .app-sidebar .sidebar-bottom{background:#F5F2EB!important;box-shadow:0 -14px 18px -6px #F5F2EB!important;border-top:0!important;color:var(--t-ink2)!important}
 body .side-btn{background:#fff!important;border:0!important;box-shadow:var(--t-shadow)!important;color:var(--t-ink)!important}
 body .side-btn>span:first-child{background:var(--t-gold-soft)!important;color:var(--t-gold-ink)!important}
 body .side-btn.side-invite{background:var(--t-gold-d)!important;color:#fff!important}
 body .side-btn.side-invite>span:first-child{background:rgba(255,255,255,.2)!important;color:#fff!important}
 body .sidebar-help{color:var(--t-muted)!important}
 body .app-sidebar .office-mark,body .app-sidebar .office-label>span:first-child{background:var(--t-gold-soft)!important;color:var(--t-gold-ink)!important;border:0!important}
 body.boss-start .boss-launch>img{align-self:center}
 body.boss-start .launch-head{text-align:center}
 body.boss-start .bottom-nav{border:0!important;box-shadow:var(--t-shadow-lg)!important;background:#fff!important}
}
@media (prefers-reduced-motion:reduce){body .dept-tile:hover,body .big-card:hover{transform:none}}
/* главный экран: шапка сверху, кнопка голоса по центру, плитки ниже */
body .boss-launch{justify-content:flex-start!important;padding-top:max(26px,env(safe-area-inset-top))!important}
body .boss-launch .launch-head{margin:0 4px 0!important}
body .boss-launch .launch-orbit{flex:1;align-content:space-evenly!important;width:100%;row-gap:30px!important;padding-top:18px}
body .boss-launch .launch-orbit .orbit-side{border:0!important;box-shadow:var(--t-shadow)!important;background:var(--t-card)!important;border-radius:20px!important}
body .boss-launch .launch-orbit .orbit-side:hover{box-shadow:var(--t-shadow-lg)!important}
@media(min-width:761px){body.boss-start .boss-launch{justify-content:center!important}body.boss-start .boss-launch .launch-orbit{flex:0 0 auto}body.boss-start .launch-name{font-size:40px!important}}
@media(min-width:761px){
 body .app-sidebar strong,body .app-sidebar .office-label,body .app-sidebar .office-label *{color:var(--t-ink)!important}
 body .app-sidebar .office-label small{color:var(--t-muted)!important}
 body.boss-start .boss-launch{gap:0!important;padding-top:56px!important}
 body.boss-start .boss-launch>img{margin-bottom:22px!important}
 body.boss-start .launch-head{margin-bottom:34px!important}
 body.boss-start .boss-launch .launch-orbit{row-gap:44px!important;padding-top:0}
}
body .boss-launch .vm-panel .vm-actions .big-btn.ok{background:var(--t-gold-d)!important;border-color:var(--t-gold-d)!important;color:#fff!important}
body .boss-launch .vm-panel .vm-actions .big-btn.plain{background:var(--t-soft)!important;border:0!important;color:var(--t-ink)!important}
body .boss-launch .vm-panel .vm-card{box-shadow:var(--t-shadow-lg)!important}
body .vm-card[data-done=ok]{box-shadow:0 0 0 2px #9FCDB0,var(--t-shadow)!important}
body label.search{background:var(--t-card)!important;border:0!important;box-shadow:var(--t-shadow)!important;border-radius:16px!important}
body label.search input,body label.search #search{background:transparent!important;box-shadow:none!important;border:0!important}
body .header-button,body #quickHome{background:var(--t-card)!important;border:0!important;box-shadow:var(--t-shadow)!important;border-radius:12px!important;color:var(--t-ink)!important}
/* длинные ответы помощника (письма, планы) — с переносами строк и прокруткой */
body .vm-said{white-space:pre-line;max-height:38vh;overflow:auto;text-align:left}
body .chat-message p{white-space:pre-line}

/* Цвета отделов */
body .dept-tile.dept-colored{position:relative;overflow:hidden;background:var(--dbg)!important;border:1.5px solid transparent!important;padding-left:28px!important}
body .dept-tile.dept-colored::before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:var(--dc)}
body .dept-tile.dept-colored:hover,body .dept-tile.dept-colored:focus-visible{border-color:var(--dc)!important}
.dept-head{display:flex;align-items:center;gap:14px}
.dept-ico{display:inline-grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:var(--dc);color:#fff}
.dept-ico svg{width:26px;height:26px}
.dept-ico.small{width:34px;height:34px;border-radius:10px}.dept-ico.small svg{width:19px;height:19px}
body .dept-tile.dept-colored .dept-counts>span{background:rgba(255,255,255,.85)!important;color:#3d3a33!important}
body .dept-tile.dept-colored .dept-counts>.c-overdue.has{background:#FDE4E2!important;color:#B42318!important}
body .dept-tile.dept-colored .dept-counts>.c-overdue:not(.has){color:#9a958a!important}
.dept-bar h2.dept-colored{display:flex;align-items:center;gap:12px}
.dept-bar h2 .dept-ico{width:40px;height:40px;border-radius:12px}.dept-bar h2 .dept-ico svg{width:22px;height:22px}
body .chat-dept.dept-colored{display:flex;align-items:center;gap:12px;border-left:5px solid var(--dc)!important}
@media (max-width:700px){.dept-ico{width:42px;height:42px;border-radius:12px}.dept-ico svg{width:23px;height:23px}}


/* ==========================================================================
   Дизайн «Б»: холодный светлый фон, тёмное меню, цвет у каждого отдела.
   Зелёный, жёлтый, красный — только состояния заданий.
   Золото — главное действие; золотая рамка — «ждёт проверки руководителя».
   ========================================================================== */
body .site-header{background:rgba(242,244,248,.88)!important}
body .big-card{box-shadow:var(--t-shadow)!important;border-radius:20px!important}
body .big-card.g-work,body .big-card.g-overdue,body .big-card.g-done{box-shadow:var(--t-shadow)!important}
body .big-card.is-review{box-shadow:0 0 0 2px var(--t-gold-ring),var(--t-shadow)!important}
body .big-avatar,body .member-avatar{background:var(--dbg,var(--t-soft))!important;color:var(--dc,var(--t-ink))!important}
body .tag-check{background:#fff!important;color:var(--t-gold-ink)!important;box-shadow:inset 0 0 0 1.5px var(--t-gold-ring)!important;border:0!important;border-radius:9px!important;font-weight:700}
body .tag-bad{background:var(--t-red-soft)!important;color:var(--t-red)!important;border:0!important;border-radius:9px!important}
body .launch-count.gold{background:#fff;color:var(--t-gold-ink);box-shadow:inset 0 0 0 2px var(--t-gold-ring)}

/* --- главная руководителя --- */
body .boss-launch #launchReview,body .boss-launch #launchHome{display:none!important}
body .boss-launch .launch-orbit{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important;row-gap:10px!important}
body .boss-launch #launchText{order:2;background:transparent!important;box-shadow:none!important;padding:6px 12px!important;min-height:44px}
body .boss-launch #launchText .orbit-icon{display:none!important}
body .boss-launch #launchText strong{color:var(--t-gold-ink)!important;font-weight:600!important;font-size:15px!important}
body .boss-launch .launch-voice{order:1}
body .boss-launch .vm-panel{order:3;width:100%}
body .launch-voice .orbit-icon{background:var(--t-gold)!important;color:#fff!important;box-shadow:0 0 0 12px #F1E2C2,0 0 0 26px #F8F0DF,0 14px 30px 10px rgba(190,143,51,.28)!important}
body .boss-launch.vm-live .launch-voice .orbit-icon{background:var(--t-gold)!important;box-shadow:0 0 0 calc(12px + var(--lvl,0)*16px) #F1E2C2,0 0 0 calc(26px + var(--lvl,0)*26px) #F8F0DF,0 14px 30px 10px rgba(190,143,51,.32)!important}
body .boss-launch .launch-voice strong{margin-top:22px}
.lx-stats{align-self:stretch;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 0}
.lx-stat{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px;border:0;border-radius:18px;background:#fff;box-shadow:var(--t-shadow);font:inherit;text-align:left;cursor:pointer;color:var(--t-ink2)}
.lx-stat b{font-size:26px;line-height:1;font-weight:700}
.lx-stat>span:last-child{font-size:12px}
.lx-i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px}
.lx-i svg{width:17px;height:17px}
.lx-stat.over b{color:var(--t-red)}.lx-stat.over .lx-i{background:var(--t-red-soft);color:var(--t-red)}
.lx-stat.review{box-shadow:inset 0 0 0 2px var(--t-gold-ring),var(--t-shadow)}.lx-stat.review b{color:var(--t-gold-ink)}.lx-stat.review .lx-i{background:var(--t-gold-soft);color:#9A6E1C}
.lx-stat.done b{color:var(--t-green)}.lx-stat.done .lx-i{background:var(--t-green-soft);color:var(--t-green)}
.lx-stat:hover{box-shadow:var(--t-shadow-lg)}.lx-stat.review:hover{box-shadow:inset 0 0 0 2px var(--t-gold-ring),var(--t-shadow-lg)}
.lx-depts{align-self:stretch;margin:6px 0 0}
.lx-dhead{display:flex;justify-content:space-between;align-items:center;margin:0 2px 8px;font-size:15px;font-weight:600;color:var(--t-ink)}
.lx-dhead button{border:0;background:none;color:var(--t-gold-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:36px}
.lx-drow{display:flex;gap:10px;overflow-x:auto;padding:6px 2px 4px;scrollbar-width:none}.lx-drow::-webkit-scrollbar{display:none}
.lx-dept{position:relative;flex:0 0 72px;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;font:inherit;cursor:pointer;padding:0}
.lx-dico{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:var(--dc);color:#fff;transition:transform .15s ease}
.lx-dico svg{width:26px;height:26px}
.lx-dept:hover .lx-dico{transform:translateY(-2px)}
.lx-dept b{position:absolute;top:-6px;right:2px;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:10px;background:#E5372B;color:#fff;font-size:11px;line-height:16px;border:2px solid var(--t-bg)}
.lx-dname{font-size:12px;font-weight:500;color:#344054;white-space:nowrap}
@media(min-width:761px){.lx-stats,.lx-depts{width:min(620px,100%);align-self:center}.lx-drow{justify-content:center;flex-wrap:wrap}}

/* --- отделы: цветные карточки --- */
.dx-sum{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.dx-sum>span{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:10px;font-size:13px;font-weight:600}
.dx-sum i{width:8px;height:8px;border-radius:4px}
.dx-sum .s-done{background:var(--t-green-soft);color:var(--t-green)}.dx-sum .s-done i{background:#22A447}
.dx-sum .s-work{background:var(--t-yellow-soft);color:var(--t-yellow-ink)}.dx-sum .s-work i{background:#E9A400}
.dx-sum .s-over{background:var(--t-red-soft);color:var(--t-red)}.dx-sum .s-over i{background:#E5372B}
.dx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.dx-card{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:14px;padding:16px;border:0;border-radius:24px;background:var(--dc);color:#fff;font:inherit;text-align:left;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.dx-card:hover,.dx-card:focus-visible{transform:translateY(-2px);box-shadow:0 14px 30px -10px var(--dc);outline:0}
.dx-wm{position:absolute;right:-16px;top:-24px;width:124px;height:124px;color:#fff;opacity:.12;pointer-events:none}
.dx-wm svg{width:100%;height:100%;stroke-width:1.5}
.dx-head{position:relative;display:flex;align-items:center;gap:12px}
.dx-ico{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.2);color:#fff}
.dx-ico svg{width:22px;height:22px}
.dx-name{font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1.25}
.dx-arrow{margin-left:auto;font-size:26px;line-height:1;opacity:.7}
.dx-stats{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.dx-stats>span{display:flex;flex-direction:column;gap:1px;padding:8px 10px;border-radius:12px;font-size:12px;font-weight:600}
.dx-stats b{font-size:19px;line-height:1.15;font-weight:700}
.dx-stats .st-done{background:var(--t-green-soft);color:var(--t-green)}
.dx-stats .st-work{background:var(--t-yellow-soft);color:var(--t-yellow-ink)}
.dx-stats .st-over{background:rgba(255,255,255,.2);color:rgba(255,255,255,.92)}
.dx-stats .st-over.has{background:var(--t-red-soft);color:var(--t-red)}
@media(max-width:760px){.dx-grid{grid-template-columns:1fr;gap:10px}}
.dx-band{position:relative;overflow:hidden;flex:1 1 100%;display:flex;align-items:center;gap:14px;padding:18px 20px;border-radius:24px;background:var(--dc);color:#fff}
.dx-band .dx-wm{width:160px;height:160px;right:-20px;top:-30px}
.dx-band .dx-ico{width:50px;height:50px;border-radius:15px}.dx-band .dx-ico svg{width:27px;height:27px}
.dx-bt{position:relative;display:flex;flex-direction:column;gap:2px}
body .dx-band h2{margin:0!important;color:#fff!important;font-size:24px!important}
.dx-bt small{color:rgba(255,255,255,.82);font-size:13px}
body .dept-bar{flex-wrap:wrap}

/* --- кнопки --- */
body .big-btn.ok,body button.success,body .ui-button.primary,body button.primary,body .check-actions .ok,body .send-button,body .deck-yes,body .side-btn.side-invite{background:var(--t-gold)!important;border-color:var(--t-gold)!important;color:#fff!important;box-shadow:0 8px 20px rgba(190,143,51,.28)!important}

/* --- телефон: тёмное плавающее меню снизу --- */
@media(max-width:760px){
 body .bottom-nav,body.boss-start .bottom-nav{left:12px!important;right:12px!important;bottom:calc(10px + var(--safe-b,0px))!important;height:var(--nav-h,64px)!important;padding:0 4px!important;border-radius:22px!important;background:var(--t-dark)!important;box-shadow:0 12px 30px rgba(21,23,28,.25)!important;backdrop-filter:none!important}
 body .bottom-nav button{color:#9AA1AD!important}
 body .bottom-nav button.active{color:#fff!important}
 body .bottom-nav button.active svg{color:var(--t-gold-ring)}
 body .bottom-nav button.active:before{display:none!important}
 body .bottom-nav button b{background:#E5372B!important;box-shadow:0 0 0 2px var(--t-dark)}
 body main,body .workspace{padding-bottom:calc(var(--nav-h,64px) + 34px + var(--safe-b,0px))!important}
}

/* --- компьютер: тёмная боковая панель --- */
.app-sidebar .logo-light{display:none}
@media(min-width:761px){
 body .app-sidebar{background:var(--t-dark)!important;color:var(--t-dark-ink)!important;box-shadow:none!important}
 body .app-sidebar .brand img:not(.logo-light){display:none}
 body .app-sidebar .brand .logo-light{display:block}
 body .app-sidebar .brand small{color:#8C93A1!important}
 body .app-sidebar a,body .app-sidebar button:not(.side-btn),body .app-sidebar strong,body .app-sidebar .office-label,body .app-sidebar .office-label *{color:var(--t-dark-ink)!important}
 body .app-sidebar .nav-caption,body .app-sidebar .office-label small,body .sidebar-help{color:#7D8492!important}
 body .app-sidebar .active,body .app-sidebar [aria-current=page]{background:rgba(255,255,255,.09)!important;color:#fff!important;box-shadow:none!important}
 body .app-sidebar .active *,body .app-sidebar [aria-current=page] *{color:#fff!important}
 body .app-sidebar b[data-count],body .app-sidebar .nav-badge{background:rgba(255,255,255,.1)!important;color:#E4E7EE!important}
 body .app-sidebar .sidebar-bottom{background:var(--t-dark)!important;box-shadow:0 -14px 18px -6px var(--t-dark)!important}
 body .side-btn{background:rgba(255,255,255,.06)!important;box-shadow:none!important;color:#E4E7EE!important}
 body .side-btn *{color:inherit!important}
 body .side-btn>span:first-child{background:rgba(255,255,255,.1)!important;color:var(--t-gold-ring)!important}
 body .side-btn.side-invite{color:#fff!important}
 body .side-btn.side-invite>span:first-child{background:rgba(255,255,255,.2)!important;color:#fff!important}
 body .app-sidebar .office-mark,body .app-sidebar .office-label>span:first-child{background:rgba(255,255,255,.1)!important;color:var(--t-gold-ring)!important}
}
body .boss-launch .launch-orbit .launch-voice .orbit-icon{width:138px!important;height:138px!important}
body .boss-launch.has-card .launch-orbit .launch-voice .orbit-icon{width:110px!important;height:110px!important}
body .boss-launch .launch-orbit .launch-voice .orbit-icon>svg{width:50px!important;height:50px!important}
body .boss-launch .launch-orbit{padding-top:44px!important;padding-bottom:8px!important}
body .boss-launch .launch-voice strong{margin-top:34px!important}
@media(min-width:761px){body.boss-start .boss-launch .launch-orbit{row-gap:10px!important;padding-top:54px!important;padding-bottom:18px!important}body.boss-start .launch-head{margin-bottom:6px!important}}
body .swipe-from{color:var(--t-muted)!important}

/* --- отчёт о выполнении и вложения --- */
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body .report-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:22px;border-radius:26px!important;box-sizing:border-box}
body .report-dialog::backdrop{background:rgba(21,23,28,.45)}
.report-form{display:flex;flex-direction:column;gap:12px}
body .report-form h2{margin:0;font-size:24px!important}
.report-task{margin:-6px 0 0;color:var(--t-muted);font-size:14px}
body .report-form textarea{width:100%;box-sizing:border-box;min-height:110px;padding:14px 16px;border:0!important;border-radius:16px!important;background:var(--t-soft)!important;font:400 16px/1.45 Inter,system-ui,sans-serif;color:var(--t-ink);resize:vertical}
.report-files{display:flex;flex-direction:column;gap:6px}
.report-files:empty{display:none}
.report-chip{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 8px;border-radius:14px;background:var(--t-soft)}
.report-chip img,.report-chip>svg{flex:none;width:40px;height:40px;border-radius:10px;object-fit:cover}
.report-chip>svg{padding:9px;box-sizing:border-box;background:#fff;color:var(--t-ink2)}
.report-chip>span{flex:1;min-width:0;display:flex;flex-direction:column;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-chip small{font-weight:400;color:var(--t-muted);font-size:12px}
.report-chip button{flex:none;width:40px;height:40px;border:0;border-radius:12px;background:transparent;color:var(--t-muted);font-size:16px;cursor:pointer}
.report-attach{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border:1.5px dashed #C9CED8;border-radius:16px;color:var(--t-ink);font-size:15px;font-weight:600;cursor:pointer}
.report-attach[hidden]{display:none}
.report-attach svg{width:20px;height:20px;color:var(--t-gold-ink)}
.report-attach:hover{border-color:var(--t-gold-ring);background:#FFFCF5}
.report-error{margin:0;min-height:0;color:var(--t-red);font-size:14px;font-weight:600}
.report-error:empty{display:none}
.report-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:8px;margin-top:4px}
.report-actions button{min-height:52px;border-radius:16px!important;font:600 15px Inter,system-ui,sans-serif!important}
.report-actions button[disabled]{opacity:.7}
.report-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.att-img{display:block;width:96px;height:96px;border-radius:14px;overflow:hidden;background:var(--t-soft)}
.att-img img{width:100%;height:100%;object-fit:cover}
.att-file{display:flex;align-items:center;gap:10px;max-width:100%;padding:10px 14px 10px 10px;border-radius:14px;background:var(--t-soft);color:var(--t-ink)!important;text-decoration:none;font-size:14px;font-weight:600}
.att-file svg{flex:none;width:20px;height:20px;color:var(--t-gold-ink)}
.att-file span{display:flex;flex-direction:column;min-width:0;overflow:hidden;text-overflow:ellipsis}
.att-file small{font-weight:400;color:var(--t-muted);font-size:12px}
body .tag-files{background:var(--t-soft)!important;color:var(--t-ink2)!important;border-radius:9px!important;padding:2px 8px}
body .check-status.is-review{background:#fff!important;color:var(--t-gold-ink)!important;box-shadow:inset 0 0 0 2px var(--t-gold-ring)!important}
.check-report dd p{margin:4px 0 0;font-size:16px;line-height:1.5;white-space:pre-line;color:var(--t-ink)}
body .att-file>span{display:flex!important;flex-direction:column!important;align-items:flex-start}
body .att-file small{display:block!important;margin:0!important}

/* --- память помощника --- */
.memory-box h2{margin:0 0 6px}
.memory-list{list-style:none;margin:14px 0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:46vh;overflow:auto}
.memory-list li{display:flex;align-items:center;gap:10px;padding:10px 6px 10px 14px;border-radius:14px;background:var(--t-soft)}
.memory-list li>span{flex:1;display:flex;flex-direction:column;gap:2px;font-size:15px;line-height:1.4;color:var(--t-ink)}
.memory-list small{color:var(--t-muted);font-size:12px}
.memory-list button{flex:none;width:40px;height:40px;border:0;border-radius:12px;background:transparent;color:var(--t-muted);font-size:16px;cursor:pointer}
.memory-list button:hover{background:#fff;color:var(--t-red)}
.memory-empty{margin:14px 0;padding:14px;border-radius:14px;background:var(--t-soft);color:var(--t-ink2);font-size:14px;line-height:1.5}
.memory-list li{text-align:left}.memory-empty{text-align:left}

/* Telegram: ссылки-кнопки */
a.big-btn{display:flex;align-items:center;justify-content:center;text-decoration:none}

/* Вышедшие */
.gone-block{margin-top:22px}.gone-block>summary{cursor:pointer;font-weight:700;color:var(--muted,#5b6270);padding:6px 0 12px}
