/* Reference task board; scoped away from the fortune wheel. */
.app .topbar { padding-top: calc(15px + var(--safe-top)); padding-bottom: 16px; }
.app .topbar .avatar { width: 38px; height: 38px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(140deg, var(--accent), var(--accent-dark)); box-shadow: 0 7px 18px rgba(var(--accent-rgb), .15); font-size: 18px; }
.app .topbar .profile-copy { display: grid; gap: 3px; }
.app .topbar .profile-copy small { color: #7786a5; font-size: 8px; letter-spacing: .01em; }
.app .topbar .profile-copy strong { font-size: 15px; font-weight: 720; }
.app .topbar .notification-button { width: 38px; height: 38px; border: 0; border-radius: 13px; }
.app .notification-symbol { color: var(--accent); }
.app .topbar .balance-button { display: flex; align-items: center; gap: 9px; width: auto; min-width: 0; height: 40px; min-height: 40px; padding: 10px 12px; border: 0; border-radius: 14px; background: #fff; }
.app .topbar .balance-button #topBalanceLabel,
.app .topbar .balance-button #topBalanceHint { display: none; }
.app .topbar .balance-button strong { max-width: 150px; font-size: 16px; font-weight: 750; }
.app .topbar .balance-button .header-wallet-icon { display: flex; margin: 0; color: var(--accent); opacity: 1; }
.app .header-wallet-icon .studio-icon { width: 21px; height: 21px; stroke-width: 2; }
.app .topbar .balance-button .header-wallet-chevron { margin: 0; color: #7481a0; opacity: 1; font-size: 22px; font-weight: 400; }
.app .task-page { padding-top: 3px; }
.app .task-page-heading { display: flex; justify-content: space-between; align-items: center; margin: 7px 0 14px; gap: 12px; }
.app .task-page-heading h1 { margin: 0; color: #071237; font-size: 34px; line-height: 1.2; letter-spacing: -.045em; font-weight: 780; }
.app .task-page-heading > div { display: flex; gap: 9px; }
.app .task-page-heading button { position: relative; display: grid; place-items: center; width: 37px; height: 37px; padding: 0; border: 1px solid #e4ecf8; border-radius: 13px; color: #163e9b; background: rgba(255,255,255,.75); cursor: pointer; }
.app .task-page-heading .studio-icon { width: 21px; height: 21px; }
.app .task-page-heading button.has-filter::after { content: ''; position: absolute; right: 6px; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.app .task-search { margin: 0 0 13px; }
.app .task-search label { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border: 1px solid #e0e8f5; border-radius: 13px; color: #909bb2; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(34,74,130,.025); }
.app .task-search input { min-width: 0; flex: 1; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.app .task-search label:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.app .task-search input::placeholder { color: #919bb3; }
.app .task-search .studio-icon { width: 18px; height: 18px; }
.app .task-owner-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 1px; margin: 0 0 13px; border: 1px solid #dfe8f5; border-radius: 12px; background: rgba(255,255,255,.35); }
.app .task-owner-tabs button { height: 33px; border: 0; border-radius: 11px; color: #6c7b9b; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.app .task-owner-tabs button.is-active { color: white; background: linear-gradient(120deg,var(--accent),var(--accent)); box-shadow: 0 6px 17px rgba(var(--accent-rgb),.13); }
.app .task-people { display: flex; gap: 7px; overflow: auto; padding: 0 0 5px; margin: 0 0 9px; scrollbar-width: none; }
.app .task-people::-webkit-scrollbar { display: none; }
.app .task-people > button { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; gap: 7px; min-width: 58px; min-height: 39px; padding: 5px 7px; border: 1px solid transparent; border-radius: 14px; color: #1b3356; background: #fff; box-shadow: 0 6px 18px rgba(36,65,118,.025); cursor: pointer; }
.app .task-people > button.is-active { border-color: var(--accent); background: linear-gradient(120deg,#fff,var(--accent-soft)); color: var(--accent); }
.app .task-people strong { max-width: 73px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 620; }
.app .task-person-avatar,
.sheet:not([class*="fortune"]) .task-person-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%; color: #143b84; background: #edf4ff; font-size: 11px; font-weight: 650; }
.app .task-person-avatar.person-0,
.sheet:not([class*="fortune"]) .task-person-avatar.person-0 { background: #d5ceff; }
.app .task-person-avatar.person-1,
.sheet:not([class*="fortune"]) .task-person-avatar.person-1 { background: #91e8dc; }
.app .task-person-avatar.person-2,
.sheet:not([class*="fortune"]) .task-person-avatar.person-2 { background: #ffd4a9; }
.app .task-person-avatar.everyone { background: transparent; color: var(--accent); }
.app .task-person-avatar .studio-icon { width: 19px; height: 19px; }
.app .task-controls { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 19px; }
.app .task-status-tabs { display: flex; gap: 6px; min-width: 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.app .task-status-tabs::-webkit-scrollbar { display: none; }
.app .task-status-tabs button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px; height: 32px; padding: 0 9px; border: 1px solid #e9eff7; border-radius: 12px; color: #667896; background: #fff; font-size: 10px; font-weight: 630; white-space: nowrap; cursor: pointer; }
.app .task-status-tabs button.is-active { border-color: var(--accent); color: #fff; background: var(--accent); box-shadow: 0 5px 13px rgba(var(--accent-rgb),.1); }
.app .task-view-tabs { display: flex; flex: 0 0 auto; border: 1px solid #eaf0fa; border-radius: 12px; background: #fff; }
.app .task-view-tabs button { display: flex; align-items: center; justify-content: center; gap: 5px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 11px; color: #6b7a98; background: transparent; font-size: 9px; font-weight: 600; cursor: pointer; }
.app .task-view-tabs .studio-icon { width: 15px; height: 15px; }
.app .task-view-tabs button.is-active { color: var(--accent); border-color: rgba(var(--accent-rgb),.2); background: var(--accent-soft); }
.app .task-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 11px; }
.app .task-results-heading h2 { min-width: 0; margin: 0; color: #152c50; font-size: 17px; font-weight: 740; }
.app .task-results-heading select { max-width: 175px; padding: 5px 0 5px 3px; border: 0; color: #7182a2; background: transparent; font-size: 9px; }
.app .studio-task-list { display: grid; gap: 9px; }
.app .studio-task { position: relative; display: grid; grid-template-columns: 37px minmax(0,1fr) auto 6px; grid-template-rows: auto auto; column-gap: 10px; row-gap: 3px; width: 100%; min-height: 67px; padding: 11px 12px; border: 1px solid transparent; border-radius: 15px; color: var(--ink); background: #fff; box-shadow: 0 9px 23px rgba(28,57,105,.035); text-align: left; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; }
.app .studio-task::before { content: ''; position: absolute; left: 4px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--blue); pointer-events: none; }
.app .studio-task[data-task-stage="wait"]::before { background: var(--purple); }
.app .studio-task[data-task-stage="review"]::before { background: var(--orange); }
.app .studio-task[data-task-stage="done"]::before { background: var(--green); }
.app .studio-task[data-task-stage="overdue"]::before { background: var(--red); }
.app .studio-home .status-card { --stage-color: var(--blue); position: relative; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-left: 16px; padding-right: 10px; }
.app .studio-home .status-card::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--stage-color); pointer-events: none; }
.app .studio-home .status-card.violet { --stage-color: var(--purple); }
.app .studio-home .status-card.rose { --stage-color: var(--orange); }
.app .studio-home .status-card.green { --stage-color: var(--green); }
.app .studio-home .status-card.dark { --stage-color: var(--red); }
.app .studio-home .status-card .status-copy strong { white-space: normal; font-size: 13px; line-height: 1.2; }
.app .studio-task:active { transform: scale(.987); }
.app .studio-task.is-readonly { cursor: default; }
.app .studio-project-mark { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 37px; height: 40px; border-radius: 11px; background: #f2f0fa; overflow: hidden; }
.app .project-icon { display: block; width: 100%; height: 100%; object-fit: cover; }
.app .studio-project-mark:has(img[src$="shorts.svg"]) { padding: 7px; background: #f5edf9; }
.app .studio-project-mark img[src$="shorts.svg"] { object-fit: contain; }
.app .studio-task-copy { min-width: 0; display: grid; align-content: center; gap: 3px; }
.app .studio-task-copy > strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: #071333; font-size: 14px; font-weight: 720; line-height: 1.25; letter-spacing: -.025em; }
.app .studio-task-type { color: #7f8ca9; font-size: 11px; font-weight: 560; text-transform: uppercase; }
.app .studio-task-status { display: inline-flex; gap: 4px; align-items: center; justify-content: center; align-self: start; margin-top: 2px; padding: 4px 7px; border-radius: 15px; color: #3b7dd9; background: #e9f3ff; font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.app .studio-task-status.wait { color: #8059ec; background: #ece7ff; }
.app .studio-task-status.review { color: #b87418; background: #fff1d6; }
.app .studio-task-status.done { color: #139371; background: #e2f6ee; }
.app .studio-task-status.overdue { color: #df4454; background: #ffebed; }
.app .studio-task-chevron { grid-column: 4; grid-row: 1 / 3; align-self: center; color: #8e9db6; font-size: 21px; font-weight: 400; }
.app .studio-task-details { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: center; min-width: 0; color: #7c8ba9; font-size: 11px; line-height: 1.4; }
.app .studio-task-details > span { display: inline-flex; align-items: center; gap: 5px; }
.app .studio-task-details .studio-icon { width: 12px; height: 12px; }
.app .task-advanced { display: flex; align-items: end; gap: 10px; padding: 13px; margin-bottom: 13px; border: 1px solid #e2e9f5; border-radius: 14px; background: #fff; }
.app .task-advanced[hidden] { display: none; }
.app .task-advanced label { min-width: 0; flex: 1; display: grid; gap: 6px; color: #7786a5; font-size: 10px; }
.app .task-advanced select { min-width: 0; width: 100%; padding: 7px 3px; border: 0; border-bottom: 1px solid #dfe7f4; color: #27385e; background: #fff; font-size: 11px; }
.app .task-advanced > button { padding: 8px 0; border: 0; color: var(--accent); background: transparent; font-size: 10px; cursor: pointer; }
.app .task-calendar { padding: 15px; margin-bottom: 17px; border: 1px solid #e1e9f5; border-radius: 18px; background: #fff; }
.app .task-calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.app .task-calendar-heading strong { color: #263657; font-size: 14px; text-transform: capitalize; }
.app .task-calendar-heading > button { width: 29px; height: 29px; border: 0; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: 20px; cursor: pointer; }
.app .task-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.app .task-calendar-grid > small { padding: 6px 0; color: #91a0b8; font-size: 10px; text-align: center; }
.app .task-calendar-grid > button { display: grid; justify-items: center; gap: 3px; min-height: 39px; padding: 5px 0; border: 1px solid transparent; border-radius: 9px; color: #354568; background: #f5f8fd; font-size: 12px; cursor: pointer; }
.app .task-calendar-grid button b { color: var(--accent); font-size: 8px; }
.app .task-calendar-grid button i { height: 8px; }
.app .task-calendar-grid button.is-today { border-color: var(--accent); }
.app .task-calendar-grid button.is-selected { color: #fff; background: var(--accent); }
.app .task-calendar-grid button.is-selected b { color: #fff; }
.app .task-calendar-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.app .task-calendar-foot small { color: #8a98b0; font-size: 9px; }
.app .task-calendar-foot button { border: 0; color: var(--accent); background: transparent; font-size: 10px; cursor: pointer; }
.sheet:not([class*="fortune"]) .task-editor-picker { display: grid; gap: 8px; }
.sheet:not([class*="fortune"]) .task-editor-picker > button { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 10px 12px; border: 1px solid #e3ebf6; border-radius: 14px; background: #fff; text-align: left; }
.sheet:not([class*="fortune"]) .task-editor-picker strong { flex: 1; }
@media (max-width: 550px) {
  .app .task-people { gap: 4px; }
  .app .task-people > button { min-width: 54px; padding: 5px 4px; gap: 5px; }
  .app .task-people strong { font-size: 9px; }
  .app .task-person-avatar { width: 22px; height: 22px; font-size: 10px; }
  .app .task-status-tabs { gap: 4px; }
  .app .task-status-tabs button { padding: 0 6px; gap: 4px; font-size: 9px; }
  .app .task-view-tabs button span { display: none; }
  .app .task-view-tabs button { width: 29px; padding: 0; }
  .app .task-controls { gap: 6px; }
}
@media (max-width: 359px) {
  .app .topbar { gap: 6px; }
  .app .topbar .avatar { width: 32px; height: 34px; font-size: 16px; }
  .app .topbar .profile-copy small { font-size: 7px; }
  .app .topbar .profile-copy strong { font-size: 12px; }
  .app .topbar .notification-button { width: 31px; height: 34px; }
  .app .topbar .balance-button { gap: 6px; padding: 8px; }
  .app .topbar .balance-button strong { font-size: 13px; }
  .app .header-wallet-icon .studio-icon { width: 17px; height: 17px; }
  .app .studio-task { grid-template-columns: 32px minmax(0,1fr) auto 5px; gap: 4px 7px; padding: 10px; }
  .app .studio-project-mark { width: 32px; height: 36px; }
  .app .studio-task-status { gap: 3px; padding: 4px 5px; font-size: 10px; }
  .app .task-status-tabs button { padding: 0 7px; font-size: 9px; }
  .app .task-results-heading select { max-width: 153px; font-size: 8px; }
}
@media (min-width: 700px) {
  .app .topbar .avatar { width: 44px; height: 44px; }
  .app .topbar .profile-copy strong { font-size: 18px; }
  .app .topbar .profile-copy small { font-size: 10px; }
  .app .topbar .balance-button { min-width: 180px; height: 48px; padding: 12px 17px; }
  .app .topbar .balance-button strong { font-size: 20px; }
  .app .task-page-heading { margin-bottom: 22px; }
  .app .task-page-heading h1 { font-size: 40px; }
  .app .task-page-heading button { width: 43px; height: 43px; }
  .app .task-search label { height: 49px; border-radius: 15px; }
  .app .task-search input { font-size: 15px; }
  .app .task-owner-tabs { margin: 20px 0; }
  .app .task-owner-tabs button { height: 42px; font-size: 14px; }
  .app .task-people { gap: 12px; margin-bottom: 18px; }
  .app .task-people > button { min-height: 55px; padding: 8px 15px; gap: 11px; }
  .app .task-person-avatar { width: 33px; height: 33px; font-size: 14px; }
  .app .task-people strong { max-width: 160px; font-size: 13px; }
  .app .task-status-tabs { gap: 10px; }
  .app .task-status-tabs button { height: 39px; padding: 0 14px; gap: 8px; font-size: 12px; }
  .app .task-view-tabs button { height: 39px; padding: 0 13px; font-size: 12px; }
  .app .task-results-heading { margin-top: 24px; margin-bottom: 14px; }
  .app .task-results-heading h2 { font-size: 21px; }
  .app .task-results-heading select { max-width: 250px; font-size: 12px; }
  .app .studio-task-list { gap: 12px; }
  .app .studio-task { grid-template-columns: 50px minmax(0,1fr) auto 10px; min-height: 92px; padding: 17px 20px; column-gap: 16px; border-radius: 19px; }
  .app .studio-project-mark { width: 46px; height: 49px; border-radius: 13px; }
  .app .studio-task-copy > strong { font-size: 17px; }
  .app .studio-task-type,.app .studio-task-details { font-size: 13px; }
  .app .studio-task-status { gap: 7px; padding: 5px 12px; font-size: 13px; }
  .app .studio-task-details .studio-icon { width: 16px; height: 16px; }
  .app .task-calendar { max-width: 680px; margin-right: auto; margin-left: auto; }
}
@media (hover: hover) {
  .app .studio-task:not(.is-readonly):hover { border-color: rgba(var(--accent-rgb),.3); box-shadow: 0 8px 26px rgba(28,57,105,.065); }
}
@media (prefers-reduced-motion: reduce) { .app .studio-task { transition: none; } }

/* Editor's current/available task: the same project artwork and quiet surfaces as the task list. */
.app .editor-work-card { --work-action: var(--accent); --work-stage: var(--blue); padding: 17px; border-color: var(--line); border-radius: 20px; box-shadow: 0 8px 24px rgba(28,57,105,.035); }
.app .editor-work-card[data-feature-stage="wait"] { --work-stage: var(--purple); }
.app .editor-work-card[data-feature-stage="review"] { --work-stage: var(--orange); }
.app .editor-work-card[data-feature-stage="done"] { --work-stage: var(--green); }
.app .editor-work-card[data-feature-stage="overdue"] { --work-stage: var(--red); }
.app .editor-work-card::after { display: none; }
.app .editor-work-card .editor-offer-head { justify-content: flex-start; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.app .editor-work-card .editor-offer-head > span:first-child { color: #7b89a5; font-size: 10px; line-height: 1.4; font-weight: 650; letter-spacing: .045em; }
.app .editor-work-card .editor-offer-head .editor-work-overdue { padding: 3px 7px; border-radius: 9px; color: #df4454; background: #ffebed; font-size: 10px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.app .editor-work-card .editor-offer-inline-nav { margin-left: auto; border-color: #e7edf7; background: #f5f8fd; box-shadow: none; }
.app .editor-work-card .editor-offer-inline-nav button { color: var(--work-action); }
.app .editor-work-project { position: relative; display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: 12px; padding-left: 9px; }
.app .editor-work-project::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 0; width: 3px; border-radius: 3px; background: var(--work-stage); }
.app .editor-work-project .studio-project-mark { grid-row: auto; width: 46px; height: 46px; border-radius: 13px; }
.app .editor-work-project > div { min-width: 0; }
.app .editor-work-card .editor-work-project h2 { margin: 0; color: #101d43; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; font-weight: 720; }
.app .editor-work-format { color: #7f8da9; font-size: 11px; line-height: 1.4; }
.app .editor-work-deadline { display: flex; align-items: center; gap: 9px; margin: 16px 0; padding-top: 13px; border-top: 1px solid #edf1f8; color: #233455; }
.app .editor-work-calendar { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 32px; border-radius: 9px; color: var(--work-action); background: var(--accent-soft); }
.app .editor-work-calendar .studio-icon { width: 18px; height: 18px; }
.app .editor-work-date { display: grid; min-width: 0; gap: 3px; }
.app .editor-work-date small { color: #8693ad; font-size: 10px; }
.app .editor-work-date time { font-size: 12px; font-weight: 600; line-height: 1.3; }
.app .editor-work-schedule { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.app .editor-work-time { display: inline-flex; align-items: center; gap: 4px; color: var(--work-action); white-space: nowrap; }
.app .editor-work-time .studio-icon { width: 14px; height: 14px; }
.app .editor-work-time strong { color: #253857; font-size: 13px; font-weight: 650; }
.app .editor-work-time small { color: #8a97ad; font-size: 9px; }
.app .editor-work-deadline.is-undated { color: #7b8aa5; font-size: 12px; }
.app .editor-work-card .editor-open-work,
.app .editor-work-card .editor-take-now { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border-radius: 13px; color: #fff; background: var(--work-action); box-shadow: 0 6px 16px rgba(var(--accent-rgb),.12); font-size: 13px; font-weight: 650; cursor: pointer; }
@media (min-width: 700px) {
  .app .editor-work-card { padding: 21px 23px; }
  .app .editor-work-card .editor-offer-head > span:first-child { font-size: 11px; }
  .app .editor-work-project { grid-template-columns: 52px minmax(0,1fr); gap: 14px; }
  .app .editor-work-project .studio-project-mark { width: 52px; height: 52px; }
  .app .editor-work-card .editor-work-project h2 { font-size: 21px; }
  .app .editor-work-format { font-size: 12px; }
  .app .editor-work-date time { font-size: 14px; }
  .app .editor-work-time strong { font-size: 15px; }
  .app .editor-work-card .editor-open-work,.app .editor-work-card .editor-take-now { min-height: 46px; font-size: 14px; }
}
