/* =========================================================
   team.css — editing team pages (creator board + review, editor queue + job, admin team). Uses lab.css tokens.
   ========================================================= */
body.lab .tk-pillbtn { min-height: 44px !important; border-radius: 12px !important; padding: 0 16px !important; }
.tk-note { padding: 20px; }
.tk-note a { color: var(--accent); }

/* board cards (reuse .lab-board / .lab-bcol / .lab-bcard from lab.css) */
.tk-board { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; }
.tk-board.qa { grid-template-columns: repeat(6, minmax(200px, 1fr)); }
.tk-card { display: flex; flex-direction: column; gap: 8px; }
.tk-card-link { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.tk-card .h small.tk-creator { color: var(--lab-sub); font-weight: 600; overflow-wrap: anywhere; }
body.lab .tk-assign { width: 100%; min-height: 34px; font-size: 12.5px !important; border-radius: 9px !important; text-align: left; }
.tk-order { margin: 4px 0 0; color: #6EA8FF; font-size: 12.5px; font-weight: 700; }
.tk-bulk { margin: 2px 0 0; color: #FFD84D; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tk-overdue { background: #E85D4C !important; color: #14120E !important; }
.tk-due-line { margin: 0; }
.assign-order { margin: 0 0 4px; color: #6EA8FF; font-weight: 700; font-size: 14px; }
.assign-bulk { margin: 0 0 14px; color: #FFD84D; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.assign-field { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.assign-field small { display: block; margin-top: 3px; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12px; }
.assign-custom[hidden] { display: none; }
dialog [data-assign-clear] { margin-top: 4px; }
body.lab .tk-card-cta { width: 100%; min-height: 34px !important; font-size: 12.5px !important; }

/* ticket page */
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.tk-main, .tk-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tk-sec, .tk-review, .tk-cut, .tk-steps, .tk-people, .tk-thread { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.tk-sec h2, .tk-review h2, .tk-cut h2 { margin: 0; font-size: 15px; font-weight: 800; }
.tk-sec h2 small { color: var(--lab-dim); font-weight: 600; margin-left: 6px; }
.tk-side h3 { margin: 0; font-size: 13.5px; font-weight: 800; }
.tk-review { border-color: rgba(255,216,77,.5) !important; }
.tk-review textarea, .tk-compose textarea { width: 100%; resize: vertical; font: inherit; font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--lab-inner); border: 1px solid var(--lab-line); color: var(--text); }
.tk-cut { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tk-cut p { margin: 4px 0 0; font-size: 13px; }
.tk-vers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tk-ver { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: var(--lab-inner); border: 1px solid var(--border); }
.tk-ver.latest { border-color: rgba(255,216,77,.55); }
.tk-ver header { display: flex; flex-direction: column; gap: 1px; } .tk-ver header b { font-size: 13.5px; } .tk-ver header small { font-size: 11.5px; color: var(--lab-dim); }
.tk-ver video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 9px; background: #000; }
.tk-watch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 9 / 16; border-radius: 9px; background: repeating-linear-gradient(135deg, #1D1B18 0 9px, #181613 9px 18px); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 800; border: 1px solid var(--border); }
.tk-watch span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #14120E; font-size: 16px; }
.tk-watch small { font-size: 11.5px; font-weight: 600; color: var(--lab-dim); }
.tk-watch:hover { border-color: var(--accent); }
.tk-vnote { margin: 0; font-size: 12.5px; color: var(--lab-sub); white-space: pre-wrap; }
.tk-clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tk-clips article { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tk-clips video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; }
.tk-clips footer { display: flex; flex-direction: column; gap: 1px; font-size: 12px; }
.tk-clips footer span { font-weight: 700; } .tk-clips footer small { color: var(--lab-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-clips footer a { color: var(--accent); font-weight: 700; text-decoration: none; }
.tk-brief { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.55; color: var(--lab-sub); }
.tk-jobline { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.tk-jobline .tk-order, .tk-jobline .tk-bulk, .tk-jobline .tk-due-line { margin: 0; }
.tk-ref-list { display: flex; flex-direction: column; gap: 8px; }
a.tk-ref { color: var(--accent); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; line-height: 1.45; }
a.tk-ref:hover { text-decoration: underline; }
.tk-sec h3 { margin: 4px 0 0; font-size: 13px; }
.tk-support img, .tk-support audio, .tk-support video { width: 100%; border-radius: 10px; background: #000; }
.tk-support img { aspect-ratio: 1; object-fit: cover; }
.tk-support audio { height: 42px; }
.tk-support video { aspect-ratio: 9 / 16; object-fit: cover; }

/* side column */
.tk-steps div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--lab-dim); }
.tk-steps i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--lab-line); font-style: normal; font-size: 11.5px; font-weight: 800; flex: none; }
.tk-steps .done { color: var(--text); } .tk-steps .done i { background: var(--green); border-color: var(--green); color: #14120E; }
.tk-steps .cur { color: var(--text); font-weight: 700; } .tk-steps .cur i { border-color: var(--accent); color: var(--accent); }
.tk-people div { display: flex; flex-direction: column; gap: 1px; } .tk-people small { font-size: 11.5px; color: var(--lab-dim); } .tk-people b { font-size: 13.5px; overflow-wrap: anywhere; }
.tk-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.tk-msg { padding: 9px 11px; border-radius: 10px; background: var(--lab-inner); border: 1px solid var(--border); }
.tk-msg.creator { border-left: 3px solid var(--accent); } .tk-msg.editor, .tk-msg.admin { border-left: 3px solid var(--green); }
.tk-msg small { font-size: 11px; color: var(--lab-dim); } .tk-msg p { margin: 3px 0 0; font-size: 13px; white-space: pre-wrap; }
.tk-compose { display: flex; flex-direction: column; gap: 8px; } .tk-compose .lab-ghost { align-self: flex-end; }

/* team page */
.tk-team { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.tk-add, .tk-members { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.tk-add h2, .tk-members h2 { margin: 0; font-size: 15px; font-weight: 800; }
.tk-add-row { display: grid; grid-template-columns: 1.4fr 1fr .9fr auto; gap: 10px; align-items: end; }
.tk-member { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.tk-member .av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lab-hover); font-weight: 800; flex: none; }
.tk-member .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tk-member .nm small { color: var(--lab-dim); font-size: 12px; overflow-wrap: anywhere; }
.tk-member select { width: auto; min-height: 34px; }
.tk-fixed { font-style: normal; font-size: 12px; color: var(--lab-dim); }

.tk-revision { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 100%; margin-top: 12px; padding: 16px; border: 1px solid var(--lab-line); border-radius: 12px; background: var(--lab-inner); }
.tk-revision h3 { margin: 0; font-size: 15px; }
.tk-revision-voice { min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.tk-revision audio { min-width: 0; width: 100%; max-width: 480px; }
.tk-revision-shots { margin: 0; min-width: 0; }
.tk-revision-shots > div { display: flex; flex-direction: column; gap: 10px; }
.tk-revision-shots img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 8px; background: #000; }
.tk-revision figcaption, .tk-revision .tk-revision-note { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-revision figcaption { padding-top: 12px; }
.tk-cut > div:first-child { flex: 1 1 100%; min-width: 0; max-width: 100%; }

/* Creator review of a delivered cut: the video, then approve or a revision. */
.cr-screen { max-width: 560px; width: 100%; margin: 0 auto; min-width: 0; gap: 14px; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.cr-stage { background: #000; border-radius: 16px; overflow: hidden; min-width: 0; }
.cr-stage .cr-video, .cr-stage .cr-watch { width: 100%; max-height: min(78vh, 860px); aspect-ratio: 9 / 16; object-fit: contain; background: #000; display: block; }
.cr-editor { margin: 0; font-size: 14px; font-weight: 700; }
.cr-screen h2 { font-size: 16px; }
.cr-versions { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-version { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--lab-line); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cr-version.on { border-color: rgba(255,216,77,.75); color: #FFD84D; }
.cr-actions { display: flex; gap: 10px; }
.cr-actions > * { flex: 1 1 0; justify-content: center; min-width: 0; }
.cr-changes { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cr-changes textarea, .cr-changes audio { width: 100%; max-width: 100%; box-sizing: border-box; }
.cr-tools, .cr-fileline, .cr-shots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cr-hint { margin: 0; color: var(--lab-dim); font-size: 12.5px; }
label.cr-file { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--lab-line); cursor: pointer; font-weight: 700; font-size: 13px; overflow: hidden; }
label.cr-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cr-shots figure { margin: 0; display: flex; flex-direction: column; gap: 4px; width: 88px; }
.cr-shots img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; background: #000; }
.cr-fileline audio { flex: 1 1 180px; }
.cr-schedule { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cr-schedule label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--lab-dim); }
.cr-schedule input, .cr-schedule select { width: 100%; min-height: 44px; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--lab-line); background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 650; padding: 0 12px; }
.cr-when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-account { margin: 0; font-size: 14px; font-weight: 700; }
.cr-later { align-self: center; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--lab-dim); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; min-height: 36px; }
.cr-later:disabled, .cr-schedule .lab-btn:disabled { opacity: .55; cursor: default; }
.cr-boxes { max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.cr-box, .tk-box { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--lab-line); border-radius: 16px; background: var(--lab-card, transparent); }
.cr-box h2, .cr-box h3, .tk-box h2, .tk-box h3 { margin: 0; }
.cr-box h2, .tk-box h2 { font-size: 16px; }
.cr-box h3, .tk-box h3 { font-size: 13px; }
.tk-box header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tk-box header span, .tk-box-head p { color: var(--lab-dim); font-size: 13px; }
.tk-box video, .cr-box .cr-video { width: 100%; max-height: 420px; background: #000; border-radius: 12px; }
.tk-box .tk-script, .cr-box .tk-script { white-space: pre-wrap; max-height: 180px; overflow: auto; }
.tk-boxes { gap: 16px; }
.tk-box-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.tk-box-head h2 { margin: 0; }
@media (max-width: 640px) {
  .cr-screen { max-width: none; }
  .cr-actions { flex-direction: column; }
  .cr-when { grid-template-columns: 1fr; }
  .cr-stage .cr-video, .cr-stage .cr-watch { max-height: 70vh; }
}
@media (max-width: 1000px) { .tk-grid { grid-template-columns: minmax(0, 1fr); } .tk-add-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tk-add-row { grid-template-columns: 1fr; } .tk-member { flex-wrap: wrap; } }

/* invite codes (invites.js) */
.iv { padding: 20px 22px !important; margin-top: 16px; }
.iv-hd h2 { margin: 4px 0; font-size: 18px; }
.iv-new { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 14px 0; }
.iv-new label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--lab-dim); }
.iv-new label:first-child { flex: 1 1 220px; }
.iv-new input, .iv-new select { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--lab-inner); color: var(--text); font: inherit; font-size: 13.5px; }
.iv-fresh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,216,77,.45); background: rgba(255,216,77,.07); font-size: 13px; }
.iv-fresh span { color: var(--lab-dim); } .iv-fresh b { font-size: 16px; letter-spacing: .08em; }
.iv-fresh a { flex: 1; min-width: 180px; color: var(--lab-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-list { display: flex; flex-direction: column; }
.iv-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 150px 90px auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--lab-row); font-size: 13px; color: var(--lab-sub); }
.iv-row.th { font-size: 12px; font-weight: 600; color: var(--lab-faint); border-top: 0; }
.iv-row > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.iv-row b { color: var(--text); letter-spacing: .06em; }
.iv-row small { color: var(--lab-faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-row.off { opacity: .55; }
.iv-st.on { color: var(--green); } .iv-st.off { color: var(--lab-faint); }
.iv-acts { flex-direction: row !important; gap: 6px !important; justify-content: flex-end; }
@media (max-width: 800px) { .iv-row { grid-template-columns: minmax(0, 1fr) 70px; } .iv-row > span:nth-child(2), .iv-row > span:nth-child(4) { display: none; } }

.tk-footage-links { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--lab-line, rgba(255,255,255,.12)); border-radius: 12px; }
.tk-footage-links h3 { margin: 0; font-size: 13px; font-weight: 800; }
.tk-footage-links p { margin: 0; font-size: 12px; }
.tk-footage-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tk-footage-links li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tk-footage-links li small { color: var(--lab-dim); font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tk-upload-status:not([hidden]) { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--lab-line, #444); border-radius: 10px; margin: 12px 0; }
.tk-upload-status progress { width: 100%; height: 10px; accent-color: var(--lab-yellow, #f5d547); }
.tk-upload-error, .tk-upload-status.is-error { color: #ffaaa6; }
[data-timeline-label].is-error { outline: 1px solid #ffaaa6; outline-offset: 5px; border-radius: 4px; }

.tk-delivery-link{display:flex;flex-direction:column;gap:10px;padding:16px;min-width:0;border:1px solid var(--border);border-radius:12px;overflow-wrap:anywhere}.tk-delivery-link small{color:var(--muted)}
