/* "Run every team from its own page": a chat's dashboard as the app draws it (stage, Waiting for your OK, progress, numbers), played by teamshow.js. Made-up shop. */
.ts-win { max-width: 1120px; margin: 44px auto 0; }
.ts-app { background: #131419; padding: 0 0 22px; text-align: left; }
.ts-app p, .ts-app h4, .ts-app h5 { max-width: none; letter-spacing: normal; }
.ts-hd { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--line); font: 600 14px var(--sans); color: var(--text); position: relative; }
.ts-hd .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(60,207,122,.14); flex: none; }
.ts-hd .wk { color: var(--green); font-size: 12.5px; }
.ts-hd .wk.idle { color: var(--muted); }
.ts-hd.idle .dot { background: #6B6878; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.ts-hd .st { color: var(--muted); font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: opacity .3s; }
.ts-hd .mt { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, transparent, var(--green)); transition: width 2.4s cubic-bezier(.3,.7,.3,1); }
.ts-hd .mt.on { width: 100%; }

.ts-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; padding: 18px 22px 0; }
.ts-col { display: grid; gap: 16px; align-content: start; }
.ts-blk { background: #1B1C22; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 18px; }
.ts-blk > h4 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 13px; font: 600 13px var(--sans); color: var(--soft); }
.ts-blk > h4 small { font-weight: 500; font-size: 12px; color: var(--muted); }
.ts-ok { grid-column: 1 / -1; }

/* stage: the newest work, big */
.ts-stage { display: flex; flex-direction: column; }
.ts-frame { position: relative; border-radius: 12px; overflow: hidden; height: 268px; flex: 1 0 268px; background: #FFF6F1; }
.ts-sale .foot { position: absolute; left: 24px; right: 24px; bottom: 14px; display: flex; justify-content: space-between; font: 11.5px var(--sans); color: #A27B72; }
.ts-frame .open { position: absolute; top: 9px; right: 9px; z-index: 2; padding: 4px 9px; border-radius: 8px; font: 500 11.5px var(--sans); color: #F3F1F7; background: rgba(28,24,30,.78); }
.ts-pg { position: absolute; inset: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.ts-pg.out { opacity: 0; transform: translateY(10px); pointer-events: none; }
.ts-sale .ts-hero { padding: 22px 24px 20px; background: linear-gradient(135deg, #F6C9B4, #E58C7A 58%, #B95A6A); color: #fff; }
.ts-sale .brand { font: 700 12px/1 Georgia, "Times New Roman", serif; letter-spacing: .02em; opacity: .9; }
.ts-app .ts-sale h5 { margin: 12px 0 6px; font: 700 27px/1.1 Georgia, "Times New Roman", serif; color: #fff; text-align: left; }
.ts-app .ts-sale p { margin: 0; font: 13px/1.45 var(--sans); color: rgba(255,255,255,.94); }
.ts-sale .cta { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: #fff; color: #9E4A57; font: 600 12px var(--sans); }
.ts-sale .prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 24px; }
.ts-sale .prods div { background: #fff; border-radius: 10px; padding: 10px 10px 9px; display: flex; align-items: center; gap: 9px; box-shadow: 0 1px 0 #F2DDD2; font: 12px/1.3 var(--sans); color: #4A2B2A; }
.ts-sale .prods i { width: 18px; height: 30px; border-radius: 6px 6px 4px 4px; flex: none; background: linear-gradient(180deg, #F2B79F, #D9826F); }
.ts-sale .prods div:nth-child(2) i { width: 26px; height: 20px; border-radius: 6px; background: linear-gradient(180deg, #CFC3B6, #A99A8A); }
.ts-sale .prods div:nth-child(3) i { width: 24px; height: 22px; border-radius: 11px 11px 6px 6px; background: linear-gradient(180deg, #E9D8F2, #B9A0CE); }
.ts-sale .prods b { display: block; font-weight: 600; }
.ts-sale .prods s { color: #B49088; margin-right: 4px; }
.ts-mail { padding: 18px 22px; background: #F4F1EE; height: 100%; box-sizing: border-box; }
.ts-mail .card { background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 0 #E5DED7; font: 12.5px/1.5 var(--sans); color: #3F302E; }
.ts-mail .row { display: flex; gap: 8px; color: #8B7B77; font-size: 11.5px; } .ts-mail .row b { color: #3F302E; font-weight: 600; }
.ts-mail .sub { margin: 8px 0 10px; padding-bottom: 10px; border-bottom: 1px solid #EFE8E2; font: 700 15px/1.3 Georgia, "Times New Roman", serif; color: #2E2120; }
.ts-app .ts-mail p { margin: 0 0 7px; color: #3F302E; font: 12.5px/1.5 var(--sans); } .ts-mail .cta { display: inline-block; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: #B95A6A; color: #fff; font-weight: 600; font-size: 12px; }
.ts-cap { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ts-cap .t { flex: 1; min-width: 0; }
.ts-cap b { display: block; font: 600 14.5px var(--sans); color: var(--text); }
.ts-cap span { font: 12.5px var(--sans); color: var(--muted); }

/* buttons, the app's own */
.ts-b { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: #EEECF4; font: 600 12.5px var(--sans); cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s; }
.ts-b:hover { background: rgba(255,255,255,.05); }
.ts-b:active, .ts-b.press { transform: scale(.94); }
.ts-b.ap { color: var(--green); border-color: rgba(60,207,122,.45); background: rgba(60,207,122,.06); }
.ts-b.ap.done { color: #0F2A1B; background: var(--green); border-color: var(--green); }
.ts-b.go { border: 0; color: #2A1550; background: linear-gradient(180deg, #C6A6FF, #A97EF8); box-shadow: 0 0 0 1px rgba(185,150,255,.35), 0 6px 16px -6px rgba(141,79,238,.7); }
.ts-b.go:hover { background: linear-gradient(180deg, #D2B8FF, #B48CFA); }
.ts-b:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }

/* Waiting for your OK */
.ts-list { display: grid; gap: 9px; }
.ts-it { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 16px; border-radius: 12px; background: #17181D; border: 1px solid var(--line); position: relative;
  transition: opacity .45s, transform .5s cubic-bezier(.2,.8,.2,1), max-height .5s ease .15s, padding .5s ease .15s, margin .5s ease .15s, border-color .3s; max-height: 240px; overflow: hidden; }
.ts-it::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--purple2); }
.ts-it .t { flex: 1; min-width: 0; }
.ts-it b { display: block; font: 600 13.5px/1.35 var(--sans); color: var(--text); }
.ts-it span { display: block; margin-top: 2px; font: 12.5px/1.4 var(--sans); color: var(--muted); }
.ts-it .ac { display: flex; gap: 7px; flex: none; }
.ts-it .run { display: none; align-items: center; gap: 7px; font: 600 12.5px var(--sans); color: var(--green); flex: none; }
.ts-it .run i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: tsPulse 1.2s ease-in-out infinite; }
.ts-it.started { border-color: rgba(60,207,122,.35); } .ts-it.started::before { background: var(--green); }
.ts-it.started .ac { display: none; } .ts-it.started .run { display: flex; }
.ts-it.gone { opacity: 0; transform: translateX(18px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -9px; border-width: 0; }
.ts-it.fresh { animation: tsIn .6s cubic-bezier(.2,.8,.2,1); }
@keyframes tsPulse { 50% { opacity: .3; } }
@keyframes tsIn { from { opacity: 0; transform: translateY(-8px); } }

/* the team: who does what (a table block the chat keeps current) */
.ts-team { display: grid; gap: 2px; }
.ts-team div { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font: 12.5px/1.35 var(--sans); color: var(--muted); }
.ts-team div:first-child { border-top: 0; padding-top: 0; }
.ts-team b { width: 74px; flex: none; font-weight: 600; color: var(--text); }
.ts-team span { flex: 1; min-width: 0; }
.ts-team em { font-style: normal; flex: none; font-variant-numeric: tabular-nums; }
.ts-team em.on { color: var(--green); display: flex; align-items: center; gap: 6px; } .ts-team em.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: tsPulse 1.2s ease-in-out infinite; }

/* progress + numbers */
.ts-pr .lb { display: flex; justify-content: space-between; font: 600 13px var(--sans); color: var(--text); }
.ts-pr .lb em { font-style: normal; font-variant-numeric: tabular-nums; }
.ts-pr .bar { height: 7px; margin: 10px 0 8px; border-radius: 99px; background: #26272F; overflow: hidden; }
.ts-pr .bar i { display: block; height: 100%; width: 62.5%; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--lav)); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.ts-pr small { font: 12px var(--sans); color: var(--muted); }
.ts-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.ts-nums > div { background: #17181D; border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; min-width: 0; }
.ts-nums .l { font: 12px var(--sans); color: var(--muted); }
.ts-nums .v { margin-top: 4px; font: 650 21px/1.1 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ts-nums .d { display: inline-block; margin-top: 6px; padding: 1px 6px; border-radius: 6px; font: 600 11px var(--sans); color: var(--green); background: rgba(60,207,122,.1); }

@media (max-width: 900px) {
  .ts-frame { flex: none; }
  .ts-grid { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 0; gap: 12px; }
  .ts-col { gap: 12px; }
  .ts-app { padding-bottom: 14px; }
  .ts-hd { padding: 12px 14px; }
}
@media (max-width: 600px) {
  .ts-blk { padding: 14px 13px 14px; border-radius: 14px; }
  .ts-frame { height: 236px; }
  .ts-sale .ts-hero { padding: 16px 16px 14px; } .ts-sale h5 { font-size: 22px; } .ts-sale p { font-size: 12px; }
  .ts-sale .prods { grid-template-columns: repeat(2, 1fr); padding: 10px 16px; } .ts-sale .prods div:nth-child(3), .ts-sale .foot { display: none; }
  .ts-cap { flex-wrap: wrap; } .ts-cap .t { flex-basis: 100%; }
  .ts-it { flex-wrap: wrap; padding: 11px 11px 11px 15px; } .ts-it .t { flex-basis: 100%; } .ts-it .ac, .ts-it .run { margin-left: auto; }
  .ts-nums .v { font-size: 18px; }
  .ts-hd .st { display: none; }
}
@media (max-width: 480px) {
  .ts-frame { height: 330px; }
  .ts-sale .prods { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 16px 16px; }
  .ts-sale .prods span { min-width: 0; } .ts-sale .prods b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { .ts-pg, .ts-it, .ts-pr .bar i, .ts-hd .mt { transition: none; } .ts-it.fresh { animation: none; } }
