/* Cinque passaggi dell'app dal punto di vista dell'operatore, con gli stessi font e marchi del minisito. */
.handover-team__stage { height: 560px; min-height: 0; padding: 24px; }
.handover-team__flow { display: grid; grid-template-rows: 78px minmax(0, 1fr) 26px; gap: 10px; width: 100%; height: 100%; min-height: 0; }
.handover-team__caption { position: relative; padding-bottom: 27px; text-align: center; font: 500 clamp(12px, 1.2vw, 16px)/1.4 'JetBrains Mono', monospace; }
.handover-team__caption p { display: none; margin: 0; }
.handover-team__arrow { position: absolute; bottom: 0; left: 0; right: 0; font-size: 25px; line-height: 1; }
[data-team-phase="0"] [data-team-caption="0"], [data-team-phase="1"] [data-team-caption="1"], [data-team-phase="2"] [data-team-caption="2"], [data-team-phase="3"] [data-team-caption="3"], [data-team-phase="4"] [data-team-caption="4"] { display: block; }
.handover-team__app { min-height: 0; overflow: hidden; border: 1px solid #d0d0d0; border-radius: 13px; background: #fff; box-shadow: 0 16px 32px rgb(0 0 0 / 10%); container-type: inline-size; }
.handover-team__interface { display: flex; flex-direction: column; height: 100%; color: #111; font: 400 clamp(10px, 2.8cqi, 13px)/1.4 'Montserrat', sans-serif; }
.handover-team__chrome { display: flex; align-items: center; gap: 10px; flex: 0 0 32px; padding: 0 11px; border-bottom: 1px solid #e5e5e5; }
.handover-team__chrome img { width: 76px; height: auto; }
.handover-team__workspace { margin-left: auto; font-size: .8em; color: #888; }
.handover-team__avatar { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #ddd; border-radius: 50%; font-size: 8px; }
.handover-team__viewport { position: relative; flex: 1; min-height: 0; }
.handover-team__scene { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 12px; background: #fff; opacity: 0; visibility: hidden; transition: opacity .2s; }
[data-team-phase="0"] .handover-team__scene--notification, [data-team-phase="1"] .handover-team__scene--inbox, [data-team-phase="2"] .handover-team__scene--conversation, [data-team-phase="3"] .handover-team__scene--conversation, [data-team-phase="4"] .handover-team__scene--conversation { opacity: 1; visibility: visible; }
.handover-team__page-title { display: block; font-size: clamp(15px, 4cqi, 19px); font-weight: 700; }
.handover-team__page-description { margin: 4px 0 12px; font-size: .85em; color: #888; }
.handover-team__scene--notification { background: #fafafa; }
.handover-team__ghost { display: flex; gap: 8px; opacity: .5; }
.handover-team__ghost span { width: 33.33%; height: 65px; border: 1px solid #ddd; border-radius: 7px; background: #fff; }
.handover-team__notification { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 30px; color: #fff; background: #111; white-space: nowrap; box-shadow: 0 6px 20px rgb(0 0 0 / 12%); }
.handover-team__notification svg { width: 15px; height: 15px; }
.handover-team__notification b { margin-left: 5px; font-weight: 600; }
.handover-team__search { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #ddd; border-radius: 7px; color: #888; font-size: .9em; }
.handover-team__search svg { width: 14px; height: 14px; }
.handover-team__filters { display: flex; gap: 5px; margin: 9px 0 12px; font-size: .76em; white-space: nowrap; }
.handover-team__filters span { padding: 5px 6px; border: 1px solid #ddd; border-radius: 6px; }
.handover-team__filters span:first-child { color: #fff; background: #111; border-color: #111; }
.handover-team__filters span:nth-child(2) { border-color: #888; }
.handover-team__row { position: relative; display: flex; align-items: flex-start; gap: 9px; padding: 12px 9px; border-radius: 8px; }
.handover-team__row--pending { border-left: 3px solid #111; background: #f2f2f2; }
.handover-team__row--muted { margin-top: 8px; opacity: .55; }
.handover-team__row > div { min-width: 0; }
.handover-team__row strong { display: block; font-size: .96em; font-weight: 600; }
.handover-team__row p { margin: 5px 0 7px; color: #777; font-size: .85em; }
.handover-team__visitor-avatar { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 50%; background: #f0f0f0; font-size: 9px; }
.handover-team__badge { display: inline-block; width: fit-content; padding: 2px 7px; border: 1px solid #ddd; border-radius: 20px; background: #f5f5f5; color: #777; font-size: .75em; line-height: 1.5; white-space: nowrap; }
.handover-team__badge--dark { color: #fff; background: #111; border-color: #111; }
.handover-team__badge svg { display: inline-block; width: 1em; height: 1em; vertical-align: -.1em; }
.handover-team__unread { display: grid; place-items: center; flex: 0 0 16px; height: 16px; margin-left: auto; border-radius: 50%; color: #fff; background: #111; font-size: 9px; }
.handover-team__scene--conversation { padding: 0; }
.handover-team__contact { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px; border-bottom: 1px solid #eee; }
.handover-team__contact > div { min-width: 0; margin-right: auto; }
.handover-team__contact strong { display: block; font-size: .95em; font-weight: 600; }
.handover-team__contact small { display: block; margin-top: 3px; font-size: .7em; color: #888; }
.handover-team__resolve { padding: 6px 7px; border-radius: 6px; color: #fff; background: #111; font-size: .7em; }
.handover-team__operator { padding: 6px 10px; background: #f4f4f4; color: #777; font-size: .73em; }
.handover-team__thread { flex: 1; min-height: 0; padding: 12px; overflow: hidden; }
.handover-team__bubble { width: fit-content; max-width: 88%; margin: 0; padding: 9px 10px; font-size: 1em; line-height: 1.45; }
.handover-team__bubble--visitor { border-radius: 12px 12px 12px 2px; background: #f1f1f1; }
.handover-team__event { display: flex; align-items: center; gap: 8px; margin: 13px 0; font-size: .72em; color: #888; text-align: center; white-space: nowrap; }
.handover-team__event::before, .handover-team__event::after { content: ''; flex: 1; height: 1px; background: #eee; }
.handover-team__sent { margin-top: 9px; }
.handover-team__sent small { display: block; margin-bottom: 5px; text-align: right; color: #888; font-size: .75em; }
.handover-team__bubble--marco { margin-left: auto; border-radius: 12px 12px 2px 12px; color: #fff; background: #111; }
.handover-team__claim { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 11px; border-top: 1px solid #eee; font-size: .85em; }
.handover-team__claim > span { color: #888; }
.handover-team__claim strong { padding: 9px 12px; border-radius: 7px; background: #111; color: #fff; font-weight: 500; }
.handover-team__composer { flex-shrink: 0; padding: 9px 10px; border-top: 1px solid #eee; font-size: .78em; }
.handover-team__reply-label { display: block; margin-bottom: 6px; }
.handover-team__compose-row { display: flex; align-items: flex-end; gap: 7px; }
.handover-team__editor { flex: 1; min-width: 0; min-height: 44px; padding: 7px 8px; border: 1px solid #ccc; border-radius: 7px; font-size: 1.1em; }
.handover-team__draft::after { content: ''; display: inline-block; height: 1em; margin-left: 1px; border-left: 1px solid #111; vertical-align: -.1em; }
.handover-team__placeholder { color: #999; }
.handover-team__send { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; border-radius: 7px; color: #fff; background: #111; }
.handover-team__send svg { width: 18px; height: 18px; }
.handover-team__composer > small { display: block; margin-top: 5px; color: #999; font-size: .85em; }
.handover-team__operator, .handover-team__status--owned, .handover-team__resolve, .handover-team__event--claimed, .handover-team__sent, .handover-team__composer, .handover-team__placeholder { display: none; }
[data-team-phase="3"] :is(.handover-team__status--waiting, .handover-team__event--request, .handover-team__claim), [data-team-phase="4"] :is(.handover-team__status--waiting, .handover-team__event--request, .handover-team__claim, .handover-team__draft) { display: none; }
[data-team-phase="3"] :is(.handover-team__operator, .handover-team__status--owned, .handover-team__resolve, .handover-team__composer), [data-team-phase="4"] :is(.handover-team__operator, .handover-team__status--owned, .handover-team__resolve, .handover-team__sent, .handover-team__composer, .handover-team__placeholder) { display: block; }
[data-team-phase="3"] .handover-team__event--claimed, [data-team-phase="4"] .handover-team__event--claimed { display: flex; }
.handover-team__cursor { position: absolute; z-index: 2; width: 22px; height: 30px; pointer-events: none; opacity: 0; }
[data-team-animated][data-team-phase="0"] .handover-team__cursor { animation: team-pointer-notification var(--team-duration) linear both; }
[data-team-animated][data-team-phase="1"] .handover-team__cursor { animation: team-pointer-list var(--team-duration) linear both; }
[data-team-animated][data-team-phase="2"] .handover-team__cursor { animation: team-pointer-claim var(--team-duration) linear both; }
[data-team-animated][data-team-phase="3"] .handover-team__cursor { animation: team-pointer-send var(--team-duration) linear both; }
[data-team-animated][data-team-phase="4"] .handover-team__sent { animation: team-message .4s ease-out both; }
[data-team-manual] .handover-team__cursor { display: none; }
[data-team-manual] .handover-team__app * { animation: none !important; transition: none; }
[data-team-paused="true"] .handover-team__app * { animation-play-state: paused !important; }
.handover-team__controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.handover-team__steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.handover-team__steps button { display: block; width: 25px; height: 25px; padding: 0; border: 1px solid #bbb; border-radius: 50%; background: transparent; color: #777; font: 400 9px 'JetBrains Mono', monospace; cursor: pointer; }
.handover-team__steps button[aria-current="step"] { border-color: #111; background: #111; color: #fff; }
.handover-team__toggle { padding: 0; border: 0; background: transparent; color: #555; font: 400 10px/1.4 'JetBrains Mono', monospace; cursor: pointer; white-space: nowrap; }
.handover-team__toggle[hidden] { display: none; }
.handover-team__controls button:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
@keyframes team-pointer-notification { 0%,30% { opacity: 0; transform: translate(24px, 18px); } 60%,83% { opacity: 1; transform: translate(0, 0); } 87% { opacity: 1; transform: scale(.8); } 93% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes team-pointer-list { 0%,35% { opacity: 0; transform: translate(20px, 14px); } 65%,83% { opacity: 1; transform: translate(0, 0); } 87% { opacity: 1; transform: scale(.8); } 93% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes team-pointer-claim { 0%,40% { opacity: 0; transform: translate(12px, 10px); } 70%,83% { opacity: 1; transform: translate(0, 0); } 87% { opacity: 1; transform: scale(.8); } 93% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes team-pointer-send { 0%,65% { opacity: 0; transform: translate(12px, 10px); } 80%,86% { opacity: 1; transform: translate(0, 0); } 90% { opacity: 1; transform: scale(.8); } 95% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes team-message { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 768px) and (max-width: 1023px) {
  .handover-team__stage { height: 440px; padding: 20px; }
  .handover-team__flow { grid-template-rows: 66px minmax(0, 1fr) 26px; gap: 8px; }
  .handover-team__chrome { flex-basis: 28px; }
  .handover-team__contact { padding-block: 6px; }
  .handover-team__operator { padding-block: 4px; }
  .handover-team__thread { padding: 9px; }
  .handover-team__composer { padding-block: 6px; }
  .handover-team__composer > small { display: none; }
  .handover-team__event { margin-block: 8px; }
}
@media (max-width: 767px) {
  .handover-team__stage { height: 560px; min-height: 0; padding: 20px 16px; }
  .handover-team__caption { font-size: 13px; }
  .handover-team__workspace { display: none; }
  .handover-team__avatar { margin-left: auto; }
  .handover-team__contact { gap: 6px; padding-inline: 8px; }
  .handover-team__contact strong { font-size: .88em; }
  .handover-team__resolve { padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-handover-team] * { animation: none !important; transition: none !important; }
  [data-handover-team] .handover-team__cursor, [data-handover-team] [data-team-toggle] { display: none; }
}
