/* Экран команды: пункт программы общий для всей команды на всех ширинах.
   На телефоне своя карточка: время → задача → место; «Дальше» без повторов. */
  html.kg-team-screen #slotNote{display:none}
  /* Пункт программы под линией времени; подробности раскрываются по нажатию. */
  .kg-team-program{margin:10px 0 0;border:1px solid var(--line);border-radius:12px;background:var(--card)}
  .kg-team-program[hidden]{display:none}
  .kg-team-program>details{margin:0}
  .kg-team-program .tg-head{list-style:none;display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:44px;box-sizing:border-box}
  .kg-team-program summary.tg-head{cursor:pointer}
  .kg-team-program .tg-head::-webkit-details-marker{display:none}
  .kg-team-program .tg-head:focus-visible{outline:2px solid var(--yellow);outline-offset:2px;border-radius:12px}
  .kg-team-program .tg-k{flex:none;position:relative;width:8px;height:8px;margin:0 2px;border-radius:50%;background:#35c46f}
  .kg-team-program .tg-k::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid #35c46f;opacity:0;animation:tg-pulse 2s ease-out infinite}
  .kg-team-program .tg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .kg-team-program .tg-t{flex:1;min-width:0;font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kg-team-program .tg-i{flex:none;width:16px;height:16px;color:var(--ink-3);transition:transform .15s}
  .kg-team-program details[open] .tg-i{transform:rotate(180deg)}
  .kg-team-program .tg-b{padding:0 12px 12px;font-size:13px;line-height:1.45;color:var(--ink-2)}
  .kg-team-program .tg-b b{color:var(--ink)}
  .kg-team-program .tg-b a{color:var(--link);text-underline-offset:2px}
  .kg-team-program .tg-t{white-space:normal;line-height:1.35;overflow-wrap:anywhere}
  .kg-team-program .tg-b p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
  .kg-team-program .tg-b p:first-child{margin-top:0}

@media (max-width:759px){
  /* шапка: выбор времени — нажатием на большие часы; «Вид карточки» дублирует «Развернуть карточку» */
  html.kg-team-screen .clock{position:relative}
  html.kg-team-screen .clock #timeInput{position:absolute;left:0;top:0;width:var(--tidy-time-width,48%);height:100%;opacity:0;z-index:2;cursor:pointer}
  html.kg-team-screen .clock #bigTime{text-decoration:underline dotted;text-decoration-thickness:2px;text-underline-offset:8px;text-decoration-color:var(--ink-3)}
  html.kg-team-screen #teamCardViews{display:none!important}

  /* своя карточка: время → пометка → задача → место */
  .kgcp-hero .kgcp-current{display:flex;flex-direction:column}
  .kgcp-current>.kgcp-time-row{order:0}
  .kgcp-current>.kgcp-task-content{order:2}
  .kgcp-current>.kgcp-place{order:3;margin-top:8px}
  .kgcp-current>*{order:4}.kgcp-current>.kgcp-progress{order:9}
  .tidy-off{display:none!important}
  html .kgcp-hero .kgcp-next>h3.tidy-cap{font-size:12px;line-height:1.3;font-weight:600;letter-spacing:.04em;text-transform:uppercase;opacity:.65;margin:6px 0 0}
  .tidy-kicker{display:block;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;opacity:.65;margin-bottom:3px}
  html[data-card-view=compact] .kgcp-hero .kgcp-current .kgcp-task-content{font-size:18px;line-height:1.32;font-weight:600;margin-top:8px}
  .kgcp-current .tidy-kicker{font-weight:600}

  /* «Дальше»: время + задача, место — только если другое */
  .kgcp-next .kgcp-next-head{display:flex;gap:8px;justify-content:flex-start}
  .kgcp-next .kgcp-next-head time{margin-left:0}
  html[data-card-view=compact] .kgcp-hero .kgcp-next .kgcp-task-content{font-size:15px;line-height:1.35;margin-top:4px;color:var(--ink)}

  /* «Развернуть карточку» — тихой ссылкой внизу карточки */
  .hero.kgcp-hero{display:flex;flex-direction:column}
  .kgcp-hero>*{order:0}
  .kgcp-hero>.kgcp-card-view{order:9;padding:0 12px 8px}
  .kgcp-hero>.tgrow{order:10}
  .kgcp-card-view button{min-height:32px;border:0;padding:4px 2px;justify-content:center;gap:6px;font-size:12px}
}
@keyframes tg-pulse{0%{opacity:.6;transform:scale(.6)}100%{opacity:0;transform:scale(1.6)}}
@media (prefers-reduced-motion:reduce){.kg-team-program .tg-i{transition:none}.kg-team-program .tg-k::after{animation:none}}
@media (min-width:760px){
  .kg-team-program{margin:12px 0 18px}
  .kg-team-program .tg-head{min-height:48px;padding:12px 16px}
  .kg-team-program .tg-t{font-size:15px}
  .kg-team-program .tg-b{padding:0 16px 16px;font-size:14px;max-width:80ch}
}
@media(max-width:759px){.kgcp-current>.kgcp-task-content{overflow-wrap:anywhere}}
