/* Approved task center presentation; production records only. */
.tc-dialog .dialog-header { flex-shrink: 0; padding: 20px 26px; border-bottom: 1px solid var(--border); background: var(--surface); }
.tc-dialog .dialog-header h2 { margin: 0; font-size: 20px; }
.tc-dialog .dialog-body { overflow-y: auto; padding: 22px 26px; min-height: 0; }
.tc-dialog .dialog-footer { flex-shrink: 0; padding: 14px 26px; border-top: 1px solid var(--border); background: var(--surface); }
.tc-detail-title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.tc-progress { margin-top: 18px; font-size: 12px; color: var(--muted); }
.tc-progress summary { cursor: pointer; padding: 6px 0; }
.tc-feedback { min-height: 18px; color: var(--lime); font-size: 12px; padding-top: 12px; }
.tc-result-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tc-result-choices button { font-size: 11px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--muted); }
.tc-result-choices button[aria-pressed="true"] { color: var(--lime); border-color: var(--lime); background: #dfff4008; }
.tc-result-media audio { width: 100%; height: 42px; margin: 30px 0; }
.tc-reference-placeholder { display: flex; justify-content: center; align-items: center; width: 100px; height: 66px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); }
.tc-reference small { font-size: 10px; }
.tc-reference-refresh { font-size: 10px; color: var(--lime); }
.tc-lightbox { width: min(1000px,calc(100vw - 24px)); max-height: 90dvh; border-radius: 14px; padding: 18px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.tc-lightbox::backdrop { background: #050508cf; }
.tc-lightbox-heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tc-lightbox-heading h2 { font-size: 14px; margin: 0; }
.tc-lightbox img,.tc-lightbox video { display: block; max-width: 100%; max-height: 72dvh; object-fit: contain; margin: 0 auto; }
.tc-lightbox audio { width: 100%; }
.tc-lightbox button { font-size: 12px; }
.tc-icon-button:focus-visible,.tc-detail-button:focus-visible,.tc-id-text:focus-visible,.tc-reference button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.tc-list-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.tc-table-scroll { overflow-x: auto; }
.tc-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
.tc-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tc-table th { padding: 16px 20px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; background: #ffffff02; border-bottom: 1px solid var(--border); }
.tc-table th:first-child { width: 29%; }
.tc-table th:nth-child(2) { width: 15%; }
.tc-table th:nth-child(3) { width: 17%; }
.tc-table th:nth-child(4) { width: 11%; }
.tc-table th:nth-child(5) { width: 10%; }
.tc-table th:nth-child(6) { width: 13%; }
.tc-table th:last-child { width: 72px; }
.tc-table th .tc-hint { display: inline-block; vertical-align: middle; margin-left: 4px; cursor: help; color: #717587; }
.tc-table td { height: 66px; padding: 10px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tc-table tbody tr:last-child td { border-bottom: 0; }
.tc-table tbody tr:hover { background: #ffffff03; }
.tc-id { display: flex; align-items: center; gap: 9px; }
.tc-id-text { color: #c8c9d5; font: 11px/1.65 Consolas, "SFMono-Regular", monospace; white-space: nowrap; padding: 0; text-align: left; }
.tc-id-text:hover { color: var(--lime); }
.tc-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; color: #8c8f9f; flex-shrink: 0; }
.tc-icon-button:hover { background: var(--surface-3); color: var(--text); }
.tc-type { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.tc-type-icon { display: inline-flex; color: #b29aff; }
.tc-sub { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.tc-type .tc-sub { font-size: 10px; }
.tc-time, .tc-duration, .tc-credits { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-duration { color: #d9dae3; }
.tc-credits { font-weight: 600; }
.tc-credits.tc-zero { color: var(--muted); font-weight: 400; }
.tc-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; font-size: 11px; line-height: 1.4; background: #ffffff06; color: #b6b8c7; }
.tc-status::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.tc-status-completed { color: #54dba6; background: #35d39a13; }
.tc-status-processing { color: #b8a2ff; background: #8a65ff17; }
.tc-status-awaiting_verification, .tc-status-result_error { color: #efbe67; background: #efbe6712; }
.tc-status-failed { color: #ff8b8b; background: #ff6b6b12; }
.tc-detail-button { color: var(--lime); font-size: 12px; white-space: nowrap; padding: 6px 0; }
.tc-detail-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.tc-dialog { width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: min(900px, 90vh); border: 1px solid var(--border-strong); padding: 0; border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: 0 25px 100px #0008; }
.tc-dialog[open] { display: flex; flex-direction: column; }
.tc-dialog::backdrop { background: #050508bd; }
.tc-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 26px 18px; border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.tc-dialog-title-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tc-dialog-title-line h2 { margin: 0; font-size: 20px; }
.tc-dialog-id { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 12px/1.5 Consolas, "SFMono-Regular", monospace; word-break: break-all; }
.tc-dialog-scroll { overflow-y: auto; padding: 22px 26px 26px; }
.tc-facts { display: grid; grid-template-columns: 1.5fr 1fr .75fr 1fr; padding: 0 0 22px; gap: 16px; }
.tc-fact { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tc-fact-label { font-size: 11px; color: var(--muted); }
.tc-fact strong { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tc-fact .tc-charge { font-size: 18px; font-weight: 600; }
.tc-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tc-section { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tc-section-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.tc-section-head h3 { margin: 0; font-size: 14px; }
.tc-section-head small { font-size: 11px; color: var(--muted); }
.tc-section-body { padding: 18px; }
.tc-param { margin-bottom: 18px; }
.tc-param:last-child { margin-bottom: 0; }
.tc-param-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.tc-prompt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.9; margin: 0; }
.tc-params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 20px 0 0; }
.tc-params dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.tc-params dd { margin: 0; color: #dbdce5; font-size: 12px; overflow-wrap: anywhere; }
.tc-json { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 13px; }
.tc-json summary { font-size: 11px; color: #b5b8c8; cursor: pointer; padding: 4px 0; }
.tc-json pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; max-height: 240px; overflow-y: auto; background: var(--bg); border-radius: 8px; font-size: 11px; line-height: 1.7; color: #bec1d4; }
.tc-json .btn { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.tc-references { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tc-reference { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 0; font-size: 10px; color: var(--muted); max-width: 110px; text-align: left; }
.tc-reference img { width: 100px; height: 66px; object-fit: cover; border-radius: 7px; border: 1px solid var(--border); }
.tc-reference span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-result-media { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; }
.tc-result-media img { width: 100%; max-height: 320px; object-fit: contain; }
.tc-result-media video { display: block; width: 100%; max-height: 320px; background: #000; }
.tc-image-open { padding: 0; display: block; width: 100%; }
.tc-image-open:hover img { filter: brightness(1.04); }
.tc-result-caption { color: var(--muted); font-size: 10px; margin: 10px 0 12px; }
.tc-result-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 12px; }
.tc-result-meta span { color: var(--muted); font-size: 11px; }
.tc-result-actions { display: flex; align-items: center; gap: 9px; }
.tc-result-actions .btn { padding: 8px 11px; font-size: 11px; min-height: 34px; }
.tc-result-note { border: 1px solid #efbe672a; background: #efbe6707; padding: 11px 13px; border-radius: 8px; color: #d2b07a; font-size: 11px; margin: 16px 0 0; }
.tc-result-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 18px; text-align: center; }
.tc-result-state h4 { margin: 0; font-size: 14px; }
.tc-result-state p { margin: 0; font-size: 12px; color: var(--muted); max-width: 270px; }
.tc-result-state .btn { margin-top: 8px; font-size: 12px; }
.tc-result-state small { color: var(--muted); font-size: 11px; }
.tc-result-page { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.tc-result-page button { display: inline-flex; align-items: center; justify-content: center; padding: 5px 7px; border: 1px solid var(--border); border-radius: 6px; }
.tc-result-page-controls { display: flex; gap: 10px; align-items: center; }
.tc-audio { display: grid; justify-items: center; padding: 24px 12px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.tc-audio-art { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 22px; color: #b39aff; background: #241a44; margin-bottom: 16px; }
.tc-audio h4 { font-size: 13px; margin: 0 0 5px; }
.tc-audio small { color: var(--muted); font-size: 11px; }
.tc-audio audio { width: 100%; height: 40px; margin-top: 22px; }
.tc-billing { margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 15px 18px; }
.tc-billing summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.tc-billing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.tc-billing-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.tc-billing-grid dd { margin: 0; font-size: 12px; }
.tc-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.tc-detail-footer small { color: var(--muted); font-size: 10px; }
.tc-detail-footer .btn { font-size: 12px; min-height: 36px; }
.tc-media-dialog { width: min(1000px, calc(100vw - 36px)); }
.tc-media-dialog .tc-dialog-scroll { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.tc-media-dialog img { max-height: 65vh; object-fit: contain; }
.tc-media-dialog video { max-width: 100%; max-height: 65vh; }
.tc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; }
@media (min-width: 1440px) { .tc-table td, .tc-table th { padding-left: 24px; padding-right: 24px; } .tc-id-text { font-size: 12px; } }
@media (max-width: 1200px) { [data-task-center-live] .a-main { padding: 28px 24px 40px; } .tc-table { min-width: 960px; } .tc-toolbar { gap: 12px; } .tc-tools { margin-left: 0; } }
@media (max-width: 800px) {
  [data-task-center-live] .a-main { padding: 24px 20px 90px; }
  .tc-heading { margin-bottom: 22px; gap: 12px; }
  .tc-heading h1 { font-size: 26px; }
  .tc-heading p { font-size: 12px; max-width: 230px; }
  .tc-heading .btn { font-size: 12px; min-height: 38px; padding: 9px 12px; }
  .tc-filters { gap: 4px; }
  .tc-filter { font-size: 11px; padding: 8px 9px; min-height: 34px; }
  .tc-tools { width: 100%; gap: 8px; }
  .tc-search { flex: 1; width: auto; min-width: 0; }
  .tc-source select { width: 113px; }
  .tc-table { min-width: 0; display: block; }
  .tc-table thead { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
  .tc-table tbody { display: block; }
  .tc-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; border-bottom: 1px solid var(--border); padding: 18px; }
  .tc-table tbody tr:last-child { border-bottom: 0; }
  .tc-table td { display: block; border: 0; padding: 0; height: auto; min-width: 0; }
  .tc-table td::before { content: attr(data-label); display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
  .tc-table td:first-child { grid-column: 1 / -1; }
  .tc-id { justify-content: space-between; }
  .tc-id-text { font-size: 10.5px; white-space: normal; overflow-wrap: anywhere; }
  .tc-table td:nth-child(2) { grid-column: 1; }
  .tc-table td:nth-child(6) { grid-column: 2; grid-row: 2; }
  .tc-table td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .tc-table td:nth-child(4) { grid-column: 2; grid-row: 3; }
  .tc-table td:last-child { display: flex; align-items: flex-end; justify-content: flex-end; }
  .tc-table td:last-child::before { display: none; }
  .tc-pagination { padding: 14px 18px; gap: 14px; }
  .tc-pagination-controls { flex-wrap: wrap; gap: 12px; }
  .tc-review { align-items: flex-start; gap: 8px; }
  .tc-review > span { width: 100%; }
  .tc-review label { margin-left: 0; }
  .tc-dialog { width: calc(100vw - 20px); max-height: 94dvh; border-radius: 12px; }
  .tc-dialog-head, .tc-dialog-scroll { padding: 18px; }
  .tc-dialog-title-line { gap: 9px; }
  .tc-dialog-title-line h2 { font-size: 18px; }
  .tc-dialog-id { font-size: 10px; }
  .tc-facts { grid-template-columns: 1fr 1fr; gap: 18px; }
  .tc-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tc-section-body { padding: 16px; }
  .tc-billing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-detail-footer { padding: 12px 18px; }
  .tc-detail-footer small { max-width: 180px; }
  [data-task-center-live] .a-bottomnav a { display: flex; flex-direction: column; gap: 3px; align-items: center; padding: 5px 20px; color: var(--muted); font-size: 11px; }
  [data-task-center-live] .a-bottomnav a[aria-current="page"] { color: var(--lime); }
  .tc-header-control { padding: 7px 9px; font-size: 11px; gap: 5px; }
  .tc-header-account { display: none; }
}
@media (prefers-reduced-motion: reduce) { [data-task-center-live] *, [data-task-center-live] *::before, [data-task-center-live] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
