/* Главный экран шефа: «Требует внимания» и 4 раздела */
.att { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.att h2 { margin: 0 0 6px; }
.att-row { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.att-row > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.att-row strong { font-size: 1.1rem; }
.att-problem { background: var(--problem-bg); }
.att-problem > .icon:first-child { color: var(--problem); }
.att-check { background: var(--check-bg); }
.att-check > .icon:first-child { color: var(--check); }
.att-ok { background: var(--ok-bg); }
.att-ok > .icon:first-child { color: var(--ok); }
.att-row > .icon:last-child { color: var(--muted); }
.sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.section-tile { display: flex; gap: 20px; align-items: flex-start; padding: 28px; min-height: 150px; border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); }
.section-tile:active { background: var(--surface-pressed); }
.section-tile .tile-icon { width: 44px; height: 44px; color: var(--accent); flex: none; }
.section-tile > div { display: flex; flex-direction: column; gap: 6px; }
.section-tile .tile-name { font-size: 1.5rem; }
.section-sub { font-weight: 600; }
.section-inside { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .sections { grid-template-columns: 1fr; } }

/* Главная: сначала работа, затем компактная сводка задач. */
.dashboard { max-width: 1040px; margin: 0 auto; }
.dashboard-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dashboard-heading h1 { margin: 0; font-size: 1.6rem; }
.dashboard-heading time { white-space: nowrap; font-size: .9rem; }
.dashboard-grid { margin-bottom: 24px; }
.dashboard-grid .section-tile { position: relative; min-width: 0; min-height: 160px; padding: 26px 42px 26px 26px; gap: 18px; }
.dashboard-grid .section-tile:hover { background: var(--surface-pressed); }
.dashboard-grid .section-tile > div { min-width: 0; gap: 8px; }
.dashboard-grid .tile-icon { width: 38px; height: 38px; }
.dashboard-grid .tile-name { font-size: 1.35rem; font-weight: 700; }
.dashboard-description { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.dashboard-grid .dashboard-metric { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.dashboard-tile-arrow { position: absolute; right: 20px; top: 30px; width: 18px; height: 18px; color: var(--muted); }
.dashboard-attention { margin: 0; }
.dashboard-tasks, .dashboard-status { background: var(--surface); border-radius: 20px; }
.dashboard-task-summary { display: flex; align-items: center; gap: 14px; padding: 20px 22px; cursor: pointer; list-style: none; }
.dashboard-task-summary::-webkit-details-marker { display: none; }
.dashboard-task-summary:focus-visible, .dashboard-customize > summary:focus-visible, .dashboard-grid .section-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.dashboard-status-icon { display: inline-flex; flex: none; justify-content: center; align-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--field); color: var(--muted); }
.dashboard-status-problem { background: var(--problem-bg); color: var(--problem); }
.dashboard-status-check { background: var(--check-bg); color: var(--check); }
.dashboard-status-ok { background: var(--ok-bg); color: var(--ok); }
.dashboard-task-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.dashboard-task-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.dashboard-task-count { display: inline-flex; justify-content: center; align-items: center; min-width: 26px; min-height: 26px; padding: 2px 7px; background: var(--field); border-radius: 9px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.dashboard-task-lead { font-size: .85rem; line-height: 1.45; overflow-wrap: anywhere; }
.dashboard-task-chevron { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.dashboard-tasks[open] .dashboard-task-chevron { transform: rotate(90deg); }
.dashboard-task-list { padding: 0 14px 14px; }
.dashboard-task-list .att-card + .att-card { margin-top: 8px; }
.dashboard-task-list .att-row { padding: 14px 16px; gap: 12px; }
.dashboard-task-list .att-row strong { font-size: 1rem; line-height: 1.4; }
.dashboard-task-list .att-row .muted { font-size: .85rem; }
.dashboard-task-note { font-size: .8rem; margin: 14px 8px 0; line-height: 1.5; }
.dashboard-status { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.dashboard-status > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dashboard-status strong { font-size: 1rem; }
.dashboard-status .muted { font-size: .85rem; }
.dashboard-customize { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.dashboard-customize > summary { cursor: pointer; padding: 12px 0; min-height: 44px; width: fit-content; }
.dashboard-customize .reorder-footer { margin: 8px 0 0; }
@media (max-width: 480px) { .dashboard-topbar-title { display: none; } }
@media (max-width: 700px) {
  .dashboard-heading { margin-bottom: 18px; gap: 10px; }
  .dashboard-heading h1 { font-size: 1.3rem; }
  .dashboard-heading time { font-size: .8rem; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
  .dashboard-grid .section-tile { min-height: 164px; padding: 18px; flex-direction: column; gap: 12px; }
  .dashboard-grid .section-tile > div { gap: 5px; }
  .dashboard-grid .tile-icon { width: 30px; height: 30px; }
  .dashboard-grid .tile-name { font-size: 1.05rem; }
  .dashboard-description { font-size: .8rem; }
  .dashboard-grid .dashboard-metric { display: none; }
  .dashboard-tile-arrow { top: 24px; right: 16px; width: 16px; height: 16px; }
  .dashboard-task-summary, .dashboard-status { padding: 16px; gap: 12px; }
  .dashboard-status-icon { width: 36px; height: 36px; border-radius: 12px; }
  .dashboard-task-title { font-size: .95rem; }
  .dashboard-task-lead { font-size: .8rem; }
  .dashboard-task-list { padding: 0 8px 12px; }
  .dashboard-task-list .att-row { padding: 12px; }
  .dashboard-task-list .att-row > .icon:last-child { display: none; }
}
