.history-page{max-width:1120px;margin:auto;padding:48px 32px 0}.history-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px}.back-link{display:inline-block;color:var(--brand);font-size:13px;margin-bottom:12px;min-height:32px}.history-heading h1{font-size:38px;line-height:1.35;letter-spacing:-.8px}.history-heading p{color:var(--muted);margin-top:10px;font-size:14px}.new-code{display:flex;align-items:center;gap:24px;flex-shrink:0;background:var(--brand);color:#fff;padding:14px 22px;border-radius:12px;font-weight:650}.new-code:hover{background:var(--brand-hover)}.history-account{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;font-size:13px}.history-account>div{display:flex;align-items:center;gap:10px;min-width:0;overflow-wrap:anywhere}.account-dot{width:8px;height:8px;background:var(--brand);border-radius:50%;flex-shrink:0}.history-account button{border:1px solid var(--line);background:var(--paper);color:var(--ink);min-height:44px;padding:8px 16px;border-radius:9px;flex-shrink:0}.history-message{color:var(--danger);font-size:13px;margin-bottom:16px}.history-message:empty{display:none}.history-overview{display:grid;grid-template-columns:repeat(3,1fr);padding:24px 0;margin-bottom:28px;border-block:1px solid var(--line)}.history-overview>div,.history-overview>a{display:flex;flex-direction:column;position:relative;padding:0 26px;border-right:1px solid var(--line)}.history-overview>:first-child{padding-left:0}.history-overview>:last-child{border:0}.history-overview span{font-size:12px;color:var(--muted)}.history-overview strong{white-space:nowrap;font-size:28px;font-weight:750;font-variant-numeric:tabular-nums;margin-top:3px}.history-overview small{color:var(--brand);position:absolute;right:0;bottom:7px;font-size:12px}.history-board{background:var(--paper);border:1px solid var(--line);border-radius:20px;overflow:hidden}.history-toolbar{display:flex;justify-content:space-between;align-items:center;padding:26px 28px 20px;gap:20px}.history-toolbar h2{font-size:20px}.history-toolbar p{font-size:12px;color:var(--muted);margin-top:5px}.history-toolbar button{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--brand);font-size:24px;flex-shrink:0}.history-controls{display:flex;justify-content:space-between;gap:18px;padding:0 28px 22px;border-bottom:1px solid var(--line);align-items:center}.history-filters{display:flex;gap:4px;flex-wrap:wrap}.history-filters button{min-height:44px;padding:9px 13px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13px}.history-filters button[aria-pressed=true]{background:var(--lavender);color:var(--brand);font-weight:700}.history-search{display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--line);border-radius:9px;max-width:230px;min-width:0;color:var(--muted)}.history-search input{border:0;background:transparent;min-height:44px;width:100%;font-size:13px;color:var(--ink);outline-offset:1px}.history-row{display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(180px,1fr) minmax(120px,.8fr) 44px;gap:24px;align-items:center;padding:23px 28px;border-bottom:1px solid #EEEBF2}.history-row:last-child{border-bottom:0}.history-row:hover{background:#FCFBFF}.history-code{background:transparent;border:0;padding:0;min-height:32px;display:block;color:var(--ink);font-size:17px;font-weight:750;letter-spacing:.6px;text-align:left}.history-row time{display:block;color:var(--muted);font-size:11px;margin-top:3px}.history-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--brand)}.history-status::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.history-status.completed{color:var(--success)}.history-status.failed{color:var(--danger)}.history-status.queued{color:#80602F}.history-progress{display:flex;align-items:center;gap:10px;margin-top:9px}.history-progress progress{appearance:none;width:90px;height:4px;border:0;background:var(--lavender);border-radius:4px;overflow:hidden}.history-progress progress::-webkit-progress-bar{background:var(--lavender)}.history-progress progress::-webkit-progress-value{background:var(--brand)}.history-progress progress::-moz-progress-bar{background:var(--brand)}.history-progress span{white-space:nowrap;flex-shrink:0;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.history-cost{font-size:14px;font-weight:700;text-align:right;white-space:nowrap}.history-cost small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}.history-detail-button{width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--brand);font-size:18px}.history-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 28px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.history-pagination>div{display:flex;gap:8px}.history-pagination button{border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:8px 14px;min-height:44px;border-radius:8px}.history-empty{padding:70px 24px;text-align:center}.history-empty svg{color:var(--brand);margin-bottom:18px}.history-empty h3{font-size:18px}.history-empty p{font-size:13px;color:var(--muted);margin:8px auto 20px;max-width:350px}.history-empty button,.history-empty a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;background:var(--brand);color:white;padding:10px 20px;border-radius:9px}.history-privacy{text-align:center;margin:20px 0 36px;font-size:12px;color:var(--muted)}.job-dialog{width:min(500px,calc(100% - 32px))}.job-detail-head{display:flex;justify-content:space-between;align-items:center;padding:26px;border-bottom:1px solid var(--line)}.job-detail-head h2{font-size:25px;letter-spacing:1px}.job-detail-head>button{width:44px;height:44px;background:transparent;border:0;color:var(--muted);font-size:25px}.job-detail-head span{font-size:12px;color:var(--brand)}#job-detail{padding:24px 26px}.detail-progress{font-size:30px;font-weight:750;margin-bottom:18px;color:var(--brand)}#job-detail dl{margin:0;display:grid;grid-template-columns:1fr auto;gap:12px 20px;font-size:13px}#job-detail dt{color:var(--muted)}#job-detail dd{margin:0;text-align:right;overflow-wrap:anywhere}#job-detail p{font-size:13px;color:var(--muted);background:var(--canvas);padding:13px;border-radius:10px;margin-top:22px}.job-detail-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 26px 26px}.job-detail-footer button{border:0;border-radius:10px;min-height:44px;background:var(--brand);color:#fff;padding:10px 16px}.job-detail-footer a{font-size:13px;color:var(--brand);min-height:44px;display:inline-flex;align-items:center}
@media(max-width:760px){.history-page{padding:28px 20px 0}.history-heading{align-items:flex-start}.history-heading h1{font-size:29px}.history-heading p{font-size:12px;max-width:260px}.new-code{padding:10px 14px;font-size:12px;gap:12px;min-height:44px}.history-overview{margin-bottom:22px}.history-overview>div,.history-overview>a{padding:0 16px}.history-overview strong{font-size:23px}.history-overview small{position:static;margin-top:3px}.history-controls{align-items:stretch;flex-direction:column;gap:12px}.history-search{max-width:none}.history-toolbar,.history-controls{padding-left:20px;padding-right:20px}.history-row{grid-template-columns:1fr 1fr 44px;gap:16px;padding:20px}.history-row>div:first-child{grid-column:1 / 3}.history-row>button{grid-column:3;grid-row:1 / 3;align-self:center}.history-row>div:nth-child(2){grid-column:1;grid-row:2}.history-cost{grid-column:2;grid-row:2}.history-pagination{padding:16px 20px}.history-account{font-size:12px}}
@media(max-width:420px){.history-page{padding-inline:16px}.history-heading{display:block}.new-code{display:inline-flex;margin-top:20px}.history-overview span{font-size:10px}.history-overview strong{font-size:21px}.history-overview>div,.history-overview>a{padding-inline:12px}.history-overview>:first-child{padding-left:0}.history-filters{gap:0}.history-filters button{font-size:11px;padding-inline:9px}.history-pagination{gap:8px;font-size:11px}.history-pagination button{padding-inline:11px}.history-row{gap:13px}}

@media(max-width:760px){.history-progress progress{width:60px;min-width:20px;flex-shrink:1}.history-progress{gap:6px}}.job-actions{display:flex;gap:8px;flex-wrap:wrap}.job-detail-footer .job-cancel{background:transparent;color:var(--danger);border:1px solid var(--line)}#cancel-confirm{background:var(--danger)}
