:root {
    color-scheme: dark;
    --bg: #0c0e0f;
    --surface: #131617;
    --surface-raised: #191c1d;
    --line: #2b3031;
    --line-soft: #202526;
    --text: #f0eee8;
    --muted: #929997;
    --accent: #d8ff68;
    --accent-strong: #bff03a;
    --accent-ink: #111508;
    --danger: #ff8d80;
    --success: #bfe972;
    --radius: 22px;
    --shadow: 0 32px 90px rgba(0, 0, 0, .28);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 12%, rgba(216, 255, 104, .045), transparent 25rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button,
.button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(22px, 4vw, 68px);
    border-bottom: 1px solid rgba(255, 255, 255, .065);
    background: rgba(12, 14, 15, .78);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 19px;
    font-weight: 720;
    letter-spacing: -.035em;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid #424847;
    border-radius: 50%;
}

.brand-mark::before {
    width: 8px;
    height: 8px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    content: "";
}

.brand-mark span {
    position: absolute;
    top: 4px;
    left: 14px;
    width: 1px;
    height: 7px;
    background: #5b6260;
    transform-origin: 50% 11px;
}

.brand-mark span:nth-child(2) {
    transform: rotate(120deg);
}

.brand-mark span:nth-child(3) {
    transform: rotate(240deg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav form {
    display: contents;
}

.nav-link {
    padding: 9px 12px;
    color: #afb5b3;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #c7ccca;
    font-size: 13px;
}

.user-avatar {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent-ink);
    background: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

main {
    min-height: calc(100vh - 162px);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 0 22px;
    border: 1px solid #343a38;
    border-radius: 7px;
    color: #d8ddda;
    background: #191d1c;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button svg {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--accent);
}

.button-primary {
    color: #d8ddda;
    border-color: #343a38;
    background: #191d1c;
}

.button-primary:hover {
    border-color: #77834d;
    color: #f0f3eb;
    background: #222725;
}

.button-secondary {
    color: #d8ddda;
    border-color: #343a38;
    background: #191d1c;
}

.button-secondary:hover,
.button-ghost:hover {
    border-color: #77834d;
    color: #f0f3eb;
    background: #222725;
}

.button-ghost {
    color: #d8ddda;
    border-color: #343a38;
    background: #191d1c;
}

.button-danger {
    color: var(--danger);
    border-color: rgba(255, 141, 128, .3);
    background: rgba(255, 141, 128, .035);
}

.button-danger:hover {
    border-color: rgba(255, 141, 128, .52);
    background: rgba(255, 141, 128, .09);
}

.button-danger-ghost {
    color: var(--danger);
    border-color: rgba(255, 141, 128, .25);
    background: rgba(255, 141, 128, .035);
}

.button-danger-ghost:hover {
    border-color: rgba(255, 141, 128, .52);
    background: rgba(255, 141, 128, .09);
}

.button-small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

.button-wide {
    width: 100%;
    justify-content: space-between;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.flash-stack {
    position: fixed;
    z-index: 20;
    top: 96px;
    right: clamp(18px, 4vw, 68px);
    display: grid;
    width: min(390px, calc(100vw - 36px));
    gap: 8px;
}

.flash {
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: 12px;
    box-shadow: 0 16px 46px rgba(0, 0, 0, .35);
    background: #1a1e1f;
    font-size: 13px;
}

.flash-success {
    border-left-color: var(--success);
}

.flash-error {
    border-left-color: var(--danger);
}

.auth-shell {
    display: grid;
    width: min(1280px, calc(100% - 44px));
    min-height: calc(100vh - 162px);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
    align-items: center;
    gap: clamp(55px, 9vw, 140px);
    padding: 72px 0 86px;
}

.auth-intro {
    position: relative;
}

.auth-intro h1 {
    max-width: 730px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5.7vw, 88px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .99;
}

.auth-intro h1 em {
    color: var(--accent);
    font-weight: 400;
}

.lead {
    max-width: 590px;
    margin: 30px 0 0;
    color: #9ea5a2;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.75;
}

.auth-card {
    position: relative;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 45%),
        var(--surface);
}

.auth-card::before {
    position: absolute;
    top: -1px;
    left: 32px;
    width: 72px;
    height: 1px;
    background: var(--accent);
    content: "";
}

.auth-card-heading h2,
.panel-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -.035em;
}

.auth-card-heading > p:last-child {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: #d7dad8;
    font-size: 13px;
    font-weight: 650;
}

.auth-form input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #323839;
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: #0e1112;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-form input:focus {
    border-color: #99b94b;
    box-shadow: 0 0 0 3px rgba(216, 255, 104, .08);
}

.auth-form small {
    color: #747c79;
    font-size: 11px;
    font-weight: 450;
}

.auth-form .button {
    margin-top: 5px;
}

.auth-switch {
    margin: 25px 0 0;
    color: #818986;
    font-size: 13px;
    text-align: center;
}

.auth-switch a {
    color: var(--text);
    text-underline-offset: 3px;
}

.form-errors {
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 141, 128, .25);
    border-radius: 10px;
    color: #ffc2bb;
    background: rgba(255, 141, 128, .06);
    font-size: 13px;
}

.form-errors p {
    margin: 0;
}

.form-errors p + p {
    margin-top: 6px;
}

.process-preview {
    position: relative;
    display: flex;
    height: 156px;
    align-items: flex-end;
    margin-top: 58px;
    padding-left: 16px;
}

.preview-frame,
.preview-result {
    position: relative;
    width: 142px;
    height: 104px;
    overflow: hidden;
    border: 1px solid #353b3b;
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
    background:
        linear-gradient(134deg, transparent 46%, rgba(255, 255, 255, .13) 47%, transparent 48%),
        linear-gradient(45deg, #383c3b 0 38%, #272b2b 38% 62%, #141718 62%);
}

.preview-frame + .preview-frame {
    margin-left: -30px;
}

.preview-dark {
    opacity: .48;
    transform: rotate(-5deg) translateY(4px);
}

.preview-normal {
    z-index: 2;
    opacity: .76;
    transform: rotate(1deg) translateY(-4px);
}

.preview-bright {
    z-index: 3;
    filter: brightness(1.2);
    transform: rotate(5deg);
}

.preview-frame span,
.preview-result > span:last-child {
    position: absolute;
    right: 8px;
    bottom: 6px;
    color: rgba(255, 255, 255, .68);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.preview-result {
    width: 180px;
    height: 132px;
    margin-left: 50px;
    border-color: rgba(216, 255, 104, .36);
    filter: brightness(1.25);
}

.preview-result::before {
    position: absolute;
    top: 50%;
    left: -37px;
    width: 25px;
    height: 1px;
    background: #68705d;
    content: "";
}

.preview-result::after {
    position: absolute;
    top: calc(50% - 3px);
    left: -15px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #68705d;
    border-right: 1px solid #68705d;
    content: "";
    transform: rotate(45deg);
}

.preview-glow {
    position: absolute;
    top: 20%;
    left: 18%;
    width: 42%;
    height: 50%;
    background: rgba(255, 248, 200, .18);
    filter: blur(11px);
}

.privacy-points {
    display: grid;
    max-width: 670px;
    margin-top: 50px;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.privacy-points > div {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.point-number {
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 13px;
}

.privacy-points p {
    margin: 12px 0 0;
    color: #858d8a;
    font-size: 12px;
    line-height: 1.65;
}

.privacy-points strong {
    color: #dce0dd;
    font-size: 13px;
}

.workspace-shell {
    width: min(1280px, calc(100% - 44px));
    margin: 0 auto;
    padding: 64px 0 86px;
}

.workspace-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.workspace-heading-actions {
    display: grid;
    justify-items: end;
    gap: 9px;
}

.total-ai-spending {
    color: #929997;
    font-size: 12px;
    text-decoration: none;
}

.total-ai-spending strong {
    margin-left: 5px;
    color: var(--accent);
}

.workspace-heading h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: 1.05;
}

.workspace-heading > div > p:last-child {
    margin: 14px 0 0;
    color: var(--muted);
}

.workspace-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 7px;
}

.workspace-stat > span {
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 38px;
}

.workspace-stat small {
    color: #7f8784;
    font-size: 12px;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    gap: 20px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .018), transparent 48%),
        var(--surface);
}

.upload-panel,
.workflow-panel {
    padding: clamp(24px, 3vw, 36px);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading h2 {
    font-size: 27px;
}

.step-badge,
.privacy-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #343a39;
    border-radius: 999px;
    color: #929996;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.upload-form {
    margin-top: 27px;
}

.upload-form[aria-busy="true"] > :not([data-upload-progress]) {
    display: none;
}

.workspace-grid.is-uploading > .workflow-panel,
.workspace-shell.is-uploading .workspace-heading > .button,
.workspace-shell.is-uploading .workspace-heading > div > p:not(.eyebrow),
.workspace-shell.is-uploading .upload-panel > .panel-heading {
    display: none;
}

.workspace-grid.is-uploading {
    grid-template-columns: minmax(0, 1fr);
}

.upload-progress {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.upload-progress[hidden] {
    display: none;
}

.upload-progress-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid rgba(216, 255, 104, .24);
    border-radius: 10px;
    color: #c3cbbd;
    background: rgba(216, 255, 104, .055);
    font-size: 12px;
}

.upload-progress-notice > span {
    display: inline-grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    border-radius: 50%;
    color: #171b15;
    background: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.upload-progress-heading,
.upload-progress-file-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.upload-progress-heading h3 {
    margin: 0;
    color: #e4e8e3;
    font-size: 14px;
}

.upload-progress-stats {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.upload-progress-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #39423e;
    border-radius: 999px;
    color: #d8ddda;
    background: #1b211e;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    white-space: nowrap;
}

.upload-progress-pill:first-child {
    width: 64px;
    border-color: rgba(216, 255, 104, .38);
    color: var(--accent);
    background: rgba(216, 255, 104, .08);
}

.upload-progress-pill:nth-child(2) {
    width: 190px;
}

.upload-progress-pill:last-child {
    width: 96px;
}

.upload-progress-file-state,
.upload-progress-file-size {
    color: #929b96;
    font-size: 11px;
}

.upload-progress-table-wrap {
    overflow-x: auto;
    border: 1px solid #303735;
    border-radius: 10px;
}

.upload-progress-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    text-align: left;
}

.upload-progress-table thead {
    background: #1b211e;
}

.upload-progress-table th,
.upload-progress-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #292f2c;
    font-size: 11px;
}

.upload-progress-table thead th {
    color: #909a94;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.upload-progress-table tbody tr:last-child > * {
    border-bottom: 0;
}

.upload-progress-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, .018);
}

.upload-progress-file-name {
    width: 44%;
    color: #d8ddda;
    font-weight: 600;
    text-align: left;
}

.upload-progress-file-name > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-progress-file-state {
    color: #929b96;
}

.upload-progress-file-pill {
    display: inline-flex;
    min-width: 64px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid #343c38;
    border-radius: 999px;
    color: #aeb8b1;
    background: #1b211e;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.upload-progress-file-size {
    min-width: 130px;
    color: #aeb8b1;
    background: linear-gradient(to right, rgba(216, 255, 104, .24) var(--upload-progress, 0%), #1b211e var(--upload-progress, 0%));
    transition: background .12s linear;
}

.upload-progress-file-percentage {
    min-width: 52px;
    color: var(--accent);
}

.upload-progress-size-bar {
    background: linear-gradient(to right, rgba(216, 255, 104, .24) var(--upload-progress, 0%), #1b211e var(--upload-progress, 0%));
    transition: background .12s linear;
}

.upload-form[aria-busy="true"] > .button[type="submit"] {
    cursor: wait;
    opacity: .7;
}

.drop-zone {
    display: grid;
    min-height: 272px;
    place-items: center;
    align-content: center;
    padding: 30px;
    border: 1px dashed #3c4442;
    border-radius: 16px;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(216, 255, 104, .035), transparent 44%),
        #101314;
    text-align: center;
    transition: border-color .18s ease, background .18s ease;
}

.drop-zone:hover,
.drop-zone:focus-within,
.drop-zone.is-dragging {
    border-color: #78913b;
    background-color: #121616;
}

.drop-zone-status:empty {
    display: none;
}

.drop-zone .drop-zone-status {
    max-width: 100%;
    margin-top: 16px;
    padding: 10px 16px;
    border: 1px solid rgba(216, 255, 104, .42);
    border-radius: 10px;
    background: rgba(216, 255, 104, .12);
    color: var(--accent);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.upload-icon {
    position: relative;
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid #414846;
    border-radius: 50%;
}

.upload-icon::before,
.upload-icon::after,
.upload-icon span::before,
.upload-icon span::after {
    position: absolute;
    content: "";
}

.upload-icon::before {
    width: 16px;
    height: 18px;
    border: 1px solid var(--accent);
    border-top: 0;
    border-radius: 0 0 3px 3px;
}

.upload-icon::after {
    width: 1px;
    height: 22px;
    background: var(--accent);
    transform: translateY(-6px);
}

.upload-icon span::before {
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    transform: translate(-4px, -14px) rotate(45deg);
}

.drop-zone strong {
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
}

.drop-zone > span:not(.upload-icon) {
    margin-top: 4px;
    color: #838b88;
    font-size: 13px;
}

.drop-zone small {
    margin-top: 15px;
    color: #59615f;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.upload-form .button {
    margin-top: 14px;
}

.workflow-list {
    display: grid;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.workflow-list li {
    position: relative;
    display: grid;
    min-height: 72px;
    grid-template-columns: 44px 1fr;
    color: #656d6a;
}

.workflow-list li:not(:last-child)::before {
    position: absolute;
    top: 24px;
    bottom: -5px;
    left: 11px;
    width: 1px;
    background: #303635;
    content: "";
}

.workflow-list li > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid #343a39;
    border-radius: 50%;
    background: var(--surface);
    font-size: 8px;
}

.workflow-list strong,
.workflow-list small {
    display: block;
}

.workflow-list strong {
    color: #a4aaa8;
    font-size: 13px;
}

.workflow-list small {
    margin-top: 3px;
    color: #656d6a;
    font-size: 11px;
}

.workflow-list .is-current > span {
    border-color: var(--accent);
    color: var(--accent-ink);
    background: var(--accent);
}

.workflow-list .is-current strong {
    color: var(--text);
}

.files-panel {
    margin-top: 20px;
    padding: clamp(24px, 3vw, 36px);
}

.series-panel {
    margin-top: 20px;
    padding: clamp(24px, 3vw, 36px);
}

.job-list {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.job-card {
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: #101314;
}

.job-heading,
.job-title-line,
.series-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.job-heading > div {
    min-width: 0;
}

.job-heading h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
}

.job-heading p {
    margin: 6px 0 0;
    color: #7f8784;
    font-size: 12px;
}

.job-percent {
    flex: 0 0 auto;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
}

.job-progress-summary {
    display: grid;
    justify-items: end;
    gap: 3px;
}

.job-progress-summary small {
    color: #929997;
    font-size: 10px;
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.status-badge::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-queued {
    color: #9ba19f;
}

.status-processing {
    color: var(--accent);
}

.status-completed {
    color: var(--success);
}

.status-warning {
    color: #f2c977;
}

.status-error {
    color: var(--danger);
}

.progress-track {
    height: 5px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #282d2d;
}

.progress-value {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width .3s ease;
}

.progress-0 { width: 0; }
.progress-5 { width: 5%; }
.progress-10 { width: 10%; }
.progress-15 { width: 15%; }
.progress-20 { width: 20%; }
.progress-25 { width: 25%; }
.progress-30 { width: 30%; }
.progress-35 { width: 35%; }
.progress-40 { width: 40%; }
.progress-45 { width: 45%; }
.progress-50 { width: 50%; }
.progress-55 { width: 55%; }
.progress-60 { width: 60%; }
.progress-65 { width: 65%; }
.progress-70 { width: 70%; }
.progress-75 { width: 75%; }
.progress-80 { width: 80%; }
.progress-85 { width: 85%; }
.progress-90 { width: 90%; }
.progress-95 { width: 95%; }
.progress-100 { width: 100%; }

.detected-series {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.series-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    grid-template-columns: 190px minmax(0, 1fr);
    border: 1px solid #292f2e;
    border-radius: 13px;
    background: var(--surface);
}

.series-preview,
.series-placeholder {
    position: relative;
    display: grid;
    min-height: 155px;
    overflow: hidden;
    place-items: center;
    border-right: 1px solid #292f2e;
    background:
        radial-gradient(circle at 68% 28%, rgba(216, 255, 104, .13), transparent 24%),
        linear-gradient(145deg, #252a29, #121515);
}

.series-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.series-preview:hover img {
    transform: scale(1.025);
}

.series-placeholder::before,
.series-placeholder::after,
.series-placeholder span {
    position: absolute;
    border: 1px solid #434a48;
    border-radius: 6px;
    content: "";
}

.series-placeholder::before {
    width: 58px;
    height: 43px;
    transform: translateX(-18px) rotate(-7deg);
}

.series-placeholder::after {
    width: 58px;
    height: 43px;
    transform: translateX(18px) rotate(7deg);
}

.series-placeholder span {
    z-index: 1;
    width: 64px;
    height: 47px;
    border-color: #71804d;
    background: rgba(216, 255, 104, .035);
}

.series-body {
    min-width: 0;
    padding: 18px 20px;
}

.series-name {
    margin: 0;
    color: #e2e4df;
    font-family: Georgia, serif;
    font-size: 16px;
}

.series-title > div > span,
.series-stage {
    color: #747c79;
    font-size: 11px;
}

.progress-track-small {
    height: 3px;
    margin-top: 13px;
}

.series-stage {
    margin: 7px 0 0;
}

.series-files {
    display: flex;
    overflow: hidden;
    gap: 5px;
    margin-top: 12px;
}

.series-files span {
    overflow: hidden;
    padding: 3px 6px;
    border: 1px solid #303635;
    border-radius: 4px;
    color: #69716e;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

.result-actions .button,
.detail-actions > form > .button,
.detail-actions > a.button-danger-ghost {
    min-height: 36px;
    gap: 7px;
    padding: 0 11px;
    border-color: #343a38;
    border-radius: 7px;
    color: #d8ddda;
    background: #191d1c;
    font-size: 11px;
    font-weight: 600;
}

.result-actions .button:hover,
.detail-actions > form > .button:hover,
.detail-actions > a.button-danger-ghost:hover {
    border-color: #77834d;
    color: #f0f3eb;
    background: #222725;
}

.result-actions .button-danger-ghost,
.detail-actions > a.button-danger-ghost {
    color: var(--danger);
    border-color: rgba(255, 141, 128, .3);
    background: rgba(255, 141, 128, .035);
}

.result-actions .button-danger-ghost:hover,
.detail-actions > a.button-danger-ghost:hover {
    border-color: rgba(255, 141, 128, .52);
    color: var(--danger);
    background: rgba(255, 141, 128, .09);
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.download-actions .download-button,
.result-actions .download-button {
    min-height: 36px;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #343a38;
    border-radius: 7px;
    color: #d8ddda;
    background: #191d1c;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.download-actions .download-button:hover,
.result-actions .download-button:hover {
    border-color: #77834d;
    color: #f0f3eb;
    background: #222725;
}

.download-button svg {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--accent);
}

.ai-model-picker {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ai-model-picker legend {
    margin-bottom: 9px;
    color: #e4e8e3;
    font-size: 14px;
    font-weight: 700;
}

.ai-model-table-wrap {
    overflow-x: auto;
    border: 1px solid #303735;
    border-radius: 10px;
    background: #121615;
}

.ai-model-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    text-align: left;
}

.ai-model-table th {
    padding: 10px 12px;
    color: #929b96;
    background: #191e1c;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .035em;
    white-space: nowrap;
}

.ai-model-table td {
    padding: 11px 12px;
    border-top: 1px solid #252c29;
    color: #aab1ad;
    font-size: 11px;
    white-space: nowrap;
}

.ai-model-row {
    cursor: pointer;
    transition: background .15s ease;
}

.ai-model-row:hover {
    background: #1b211e;
}

.ai-model-row:hover > td {
    background: #1b211e;
}

.ai-model-row.is-selected {
    background: rgba(216, 255, 104, .075);
}

.ai-model-row.is-selected > td {
    background: rgba(216, 255, 104, .075);
}

.upload-ai-model-picker {
    margin-top: 24px;
}

.ai-model-name {
    min-width: 195px;
}

.ai-model-name input {
    width: 15px;
    height: 15px;
    margin: 0 8px 0 0;
    accent-color: var(--accent);
    vertical-align: -3px;
}

.ai-model-name label {
    color: #edf1eb;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.ai-model-name label small {
    display: block;
    margin: 3px 0 0 23px;
    color: #8d9691;
    font-size: 10px;
    font-weight: 500;
}

.ai-model-estimate {
    color: var(--accent) !important;
    font-size: 13px !important;
    font-weight: 750;
}

.ai-model-picker > small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.retry-dialog {
    width: min(900px, calc(100vw - 32px));
    max-width: 900px;
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 22px;
    border: 1px solid #3a423d;
    border-radius: 16px;
    color: var(--text);
    background: #151918;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.retry-dialog::backdrop {
    background: rgba(4, 7, 6, .72);
    backdrop-filter: blur(3px);
}

.retry-dialog form {
    display: grid;
    gap: 18px;
}

.retry-dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.retry-dialog-heading .eyebrow {
    margin-bottom: 5px;
}

.retry-dialog-heading h2 {
    margin: 0;
    font-size: clamp(19px, 3vw, 25px);
}

.retry-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

.retry-model-empty {
    margin: 0;
    color: var(--muted);
}

.job-error {
    margin: 12px 0 0;
    color: #f3a49b;
    font-size: 11px;
}

.retry-form {
    margin-top: 14px;
}

.result-actions form {
    display: contents;
}

.result-variant-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

.result-variant-tab {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid #333b39;
    border-radius: 6px;
    color: #d9ded7;
    background: #151918;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.result-variant-tab-retouch {
    border-color: rgba(216, 255, 104, .35);
    color: #e8f7ba;
}

.result-variant-tab-ai {
    border-color: rgba(126, 194, 255, .32);
    color: #cfe8ff;
}

.series-info-images {
    display: grid;
    gap: 7px;
    margin-top: 13px;
}

.series-info-image {
    display: grid;
    min-width: 0;
    overflow: hidden;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    border: 1px solid rgba(0, 230, 100, .25);
    border-radius: 8px;
    color: inherit;
    background: rgba(0, 230, 100, .035);
    text-decoration: none;
}

.series-info-image img {
    display: block;
    width: 72px;
    height: 52px;
    object-fit: cover;
}

.series-info-image > span {
    display: grid;
    min-width: 0;
    gap: 2px;
    padding: 7px 10px;
}

.series-info-image strong {
    color: #d9f6e2;
    font-size: 10px;
}

.series-info-image small {
    overflow: hidden;
    color: #71827a;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.result-variant {
    display: grid;
    overflow: hidden;
    border: 1px solid #303635;
    border-radius: 14px;
    background: #0d1011;
    color: inherit;
    text-decoration: none;
}

.result-variant-image {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #101414;
}

.result-variant-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-variant-meta {
    display: grid;
    gap: 3px;
    padding: 12px 13px 13px;
}

.result-variant-meta strong {
    color: #e2e4df;
    font-size: 13px;
}

.result-variant-meta small {
    color: #7d8581;
    font-size: 10px;
}

.information-image-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #282e2d;
}

.information-image-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.information-image-heading > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid rgba(0, 230, 100, .38);
    border-radius: 50%;
    color: #b9f7ce;
    font-family: Georgia, serif;
    font-style: italic;
}

.information-image-heading > div {
    display: grid;
    gap: 2px;
}

.information-image-heading strong,
.information-image-card strong {
    color: #dce5df;
    font-size: 12px;
}

.information-image-heading small,
.information-image-card small {
    color: #77817c;
    font-size: 10px;
}

.information-image-grid {
    display: grid;
    gap: 12px;
    margin-top: 13px;
}

.processing-stage-gallery {
    margin-top: 24px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: clamp(20px, 3vw, 36px);
    box-sizing: border-box;
}

.processing-stage {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #303635;
}

.processing-stage-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.processing-stage-heading small {
    color: #77817c;
}

.processing-stage-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.processing-stage-images a {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.processing-stage-images img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: min(60vh, 540px);
    object-fit: contain;
    border-radius: 8px;
    background: #0d1011;
}

.processing-stage-images span {
    color: #d9ded7;
    font-size: 12px;
}

.information-image-card {
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(170px, .8fr) minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid rgba(0, 230, 100, .24);
    border-radius: 12px;
    color: inherit;
    background: #0d1210;
    text-decoration: none;
}

.information-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.information-image-card > span {
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 16px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
    gap: 20px;
}

.detail-grid > * {
    min-width: 0;
}

.detail-summary,
.cost-panel,
.process-steps-panel,
.reports-panel {
    padding: clamp(24px, 3vw, 36px);
}

.detail-preview {
    display: block;
    overflow: hidden;
    margin-top: 26px;
    border: 1px solid #303635;
    border-radius: 14px;
    background: #0d1011;
}

.detail-preview img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.detail-files {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 20px 0;
}

.detail-files span {
    padding: 5px 8px;
    border: 1px solid #303635;
    border-radius: 5px;
    color: #818986;
    font-size: 10px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-actions form {
    display: contents;
}

.process-steps-panel {
    margin-top: 20px;
}

.process-step-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.process-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
    border: 1px solid #292f2e;
    border-radius: 10px;
    background: #121616;
}

.process-step-number {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #343b39;
    border-radius: 8px;
    color: #a4ada8;
    background: #171c1b;
    font-size: 11px;
    font-weight: 800;
}

.process-step.is-completed .process-step-number {
    border-color: rgba(216, 255, 104, .38);
    color: #e8f7ba;
    background: rgba(216, 255, 104, .06);
}

.process-step.is-processing .process-step-number {
    border-color: rgba(126, 194, 255, .38);
    color: #cfe8ff;
    background: rgba(126, 194, 255, .06);
}

.process-step.is-skipped {
    opacity: .58;
}

.process-step-main {
    min-width: 0;
}

.process-step-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.process-step-heading strong {
    display: block;
    color: #e2e4df;
    font-size: 13px;
}

.process-step-heading small {
    display: block;
    margin-top: 3px;
    color: #7d8581;
    font-size: 11px;
    line-height: 1.4;
}

.process-step-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.process-step-details span {
    padding: 4px 7px;
    border: 1px solid #303635;
    border-radius: 5px;
    color: #818986;
    background: #101414;
    font-size: 10px;
}

.cost-total {
    display: grid;
    margin-top: 34px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line-soft);
}

.cost-total strong {
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 400;
    letter-spacing: -.045em;
}

.cost-total span {
    margin-top: 3px;
    color: #8b9390;
    font-size: 13px;
}

.cost-breakdown {
    display: grid;
    margin-top: 10px;
}

.cost-breakdown > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}

.cost-breakdown span,
.cost-breakdown small {
    display: block;
}

.cost-breakdown strong {
    color: #d7dad8;
    font-size: 12px;
}

.cost-breakdown small {
    margin-top: 3px;
    color: #707875;
    font-size: 10px;
}

.cost-breakdown b {
    flex: 0 0 auto;
    color: #cdd2cf;
    font-size: 11px;
    font-weight: 650;
}

.cost-rate,
.cost-note,
.empty-cost p {
    color: #737b78;
    font-size: 11px;
    line-height: 1.65;
}

.cost-rate {
    margin: 18px 0 0;
}

.cost-note {
    margin: 7px 0 0;
}

.empty-cost {
    margin-top: 24px;
    padding: 22px;
    border: 1px dashed #3a403f;
    border-radius: 11px;
    text-align: center;
}

.empty-cost p {
    margin: 6px 0 0;
}

.reports-panel {
    margin-top: 20px;
}

.delete-shell {
    display: grid;
    min-height: calc(100vh - 290px);
    place-items: center;
}

.delete-card {
    width: min(680px, 100%);
    padding: clamp(28px, 5vw, 54px);
}

.delete-card h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: 1.05;
}

.delete-card > p:not(.eyebrow) {
    margin: 22px 0 0;
    color: #a5aca9;
}

.delete-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #0e1112;
}

.delete-file-list span {
    padding: 5px 8px;
    border: 1px solid #353b3a;
    border-radius: 5px;
    color: #969d9a;
    font-size: 10px;
}

.delete-card .delete-note {
    color: #747c79;
    font-size: 11px;
    line-height: 1.7;
}

.delete-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 32px;
}

.delete-actions form {
    display: contents;
}

.spending-shell {
    display: grid;
    gap: 28px;
}

.spending-heading {
    align-items: end;
}

.spending-total {
    display: grid;
    min-width: min(260px, 100%);
    padding: 24px 28px;
    text-align: right;
}

.spending-total span,
.spending-total small,
.spending-entry-total small {
    color: #747c79;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.spending-total strong {
    margin: 4px 0 2px;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
}

.spending-warning {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 197, 112, .2);
    border-radius: 10px;
    color: #d9b778;
    background: rgba(255, 197, 112, .05);
    font-size: 12px;
}

.spending-list {
    display: grid;
    gap: 14px;
}

.spending-entry {
    padding: 26px 30px;
}

.spending-entry > header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.spending-entry h2 {
    margin: 5px 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
}

.spending-entry header p:not(.eyebrow) {
    margin: 0;
    color: #747c79;
    font-size: 11px;
}

.spending-entry-total {
    display: grid;
    flex: 0 0 auto;
    text-align: right;
}

.spending-entry-total strong {
    color: var(--accent);
    font-size: 18px;
}

.spending-breakdown {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.spending-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #8e9693;
    font-size: 11px;
}

.spending-breakdown strong {
    color: #c5cac8;
    font-weight: 500;
}

.spending-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.spending-files span {
    padding: 4px 7px;
    border: 1px solid #303635;
    border-radius: 5px;
    color: #6f7774;
    font-size: 9px;
}

.spending-empty {
    min-height: 300px;
}

.report-list {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.report-list details {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: #0e1112;
}

.report-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
}

.report-list summary::-webkit-details-marker {
    display: none;
}

.report-list summary > span:first-child,
.report-list summary small {
    display: block;
}

.report-list summary strong {
    font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.report-list summary small {
    margin-top: 2px;
    color: #6f7774;
    font-size: 10px;
}

.report-list summary > span:last-child {
    color: var(--accent);
    font-size: 21px;
    transition: transform .18s ease;
}

.report-list details[open] summary > span:last-child {
    transform: rotate(45deg);
}

.report-list pre {
    overflow: auto;
    max-height: 650px;
    margin: 0;
    padding: 18px;
    border-top: 1px solid var(--line-soft);
    color: #b8bfbb;
    background: #090b0c;
    font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre;
}

.no-series-state {
    margin-top: 18px;
    padding: 18px;
    border: 1px dashed #3a403f;
    border-radius: 11px;
    text-align: center;
}

.no-series-state strong {
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 400;
}

.no-series-state p {
    margin: 5px 0 0;
    color: #747c79;
    font-size: 11px;
}

.empty-state-compact {
    min-height: 220px;
}

.privacy-label span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(191, 233, 114, .08);
}

.file-list {
    margin-top: 25px;
    border-top: 1px solid var(--line-soft);
}

.file-row {
    display: grid;
    min-height: 72px;
    align-items: center;
    grid-template-columns: 52px minmax(0, 1fr) 100px 110px;
    gap: 15px;
    border-bottom: 1px solid var(--line-soft);
}

.file-type {
    display: grid;
    width: 38px;
    height: 42px;
    place-items: center;
    border: 1px solid #38403e;
    border-radius: 6px;
    color: var(--accent);
    background: #101313;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .09em;
}

.file-name {
    min-width: 0;
}

.file-name strong,
.file-name small {
    display: block;
}

.file-name strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-name small,
.file-size {
    margin-top: 3px;
    color: #747c79;
    font-size: 11px;
}

.file-status {
    color: var(--success);
    font-size: 11px;
    text-align: right;
}

.file-status::before {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    vertical-align: 1px;
}

.empty-state {
    display: grid;
    min-height: 250px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.empty-orbit {
    position: relative;
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid #353b3a;
    border-radius: 50%;
}

.empty-orbit::before {
    position: absolute;
    width: 86px;
    height: 28px;
    border: 1px solid #2d3332;
    border-radius: 50%;
    content: "";
    transform: rotate(-28deg);
}

.empty-orbit span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.empty-state h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 400;
}

.empty-state p {
    margin: 7px 0 0;
    color: #747c79;
    font-size: 12px;
}

.error-shell {
    display: grid;
    min-height: calc(100vh - 162px);
    place-items: center;
    align-content: center;
    padding: 60px 22px;
    text-align: center;
}

.error-code {
    margin: 0;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 80px;
    line-height: 1;
}

.error-shell h1 {
    margin: 24px 0 0;
    font-family: Georgia, serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 400;
}

.error-shell > p:not(.error-code) {
    max-width: 520px;
    margin: 13px 0 28px;
    color: var(--muted);
}

.debug-shell {
    width: min(1180px, calc(100% - 44px));
    min-height: calc(100vh - 162px);
    margin: 0 auto;
    padding: 56px 0 80px;
}

.debug-shell header {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.debug-shell h1 {
    margin: 10px 0 14px;
    overflow-wrap: anywhere;
    color: #ff6b6b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(24px, 4vw, 42px);
}

.debug-shell header > p:last-child {
    margin: 0;
    color: #e7e9e8;
    font-size: 18px;
    line-height: 1.6;
}

.debug-shell dl {
    display: grid;
    margin: 28px 0;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 8px 18px;
}

.debug-shell dt {
    color: var(--muted);
}

.debug-shell dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.debug-shell h2 {
    margin: 34px 0 12px;
    font-size: 18px;
}

.debug-shell pre {
    overflow: auto;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0b0d0e;
    color: #cfd4d1;
    font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
}

.site-footer {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(22px, 4vw, 68px);
    border-top: 1px solid rgba(255, 255, 255, .055);
    color: #626966;
    font-size: 10px;
    letter-spacing: .04em;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
        gap: 55px;
        padding-top: 58px;
    }

    .auth-intro {
        text-align: center;
    }

    .auth-intro .lead {
        margin-right: auto;
        margin-left: auto;
    }

    .auth-card {
        width: min(530px, 100%);
        margin: 0 auto;
    }

    .process-preview {
        justify-content: center;
        padding-left: 0;
    }

    .privacy-points {
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .workflow-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .workflow-list li {
        min-height: auto;
        grid-template-columns: 33px 1fr;
    }

    .workflow-list li::before {
        display: none;
    }
}

@media (max-width: 680px) {
    .site-header {
        min-height: 68px;
    }

    .site-nav .nav-link,
    .site-nav .user-chip {
        display: none;
    }

    .auth-shell,
    .workspace-shell {
        width: min(100% - 28px, 1280px);
    }

    .auth-shell {
        min-height: calc(100vh - 138px);
        padding: 45px 0 60px;
    }

    .auth-intro h1 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .auth-card {
        padding: 27px 20px;
        border-radius: 17px;
    }

    .process-preview {
        height: 126px;
        margin-top: 42px;
        transform: scale(.78);
        transform-origin: center;
    }

    .preview-result {
        margin-left: 25px;
    }

    .privacy-points {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .workspace-shell {
        padding: 44px 0 60px;
    }

    .workspace-heading {
        display: block;
    }

    .workspace-stat {
        margin-top: 17px;
    }

    .workflow-list {
        grid-template-columns: 1fr;
    }

    .workflow-list li {
        min-height: 67px;
        grid-template-columns: 44px 1fr;
    }

    .workflow-list li:not(:last-child)::before {
        display: block;
    }

    .privacy-label {
        display: none;
    }

    .file-row {
        grid-template-columns: 47px minmax(0, 1fr) auto;
    }

    .job-card {
        padding: 17px;
    }

    .job-heading {
        align-items: flex-start;
    }

    .job-title-line {
        display: block;
    }

    .job-title-line .status-badge {
        margin-top: 7px;
    }

    .series-card {
        grid-template-columns: 1fr;
    }

    .series-preview,
    .series-placeholder {
        min-height: 180px;
        border-right: 0;
        border-bottom: 1px solid #292f2e;
    }

    .information-image-card {
        grid-template-columns: 1fr;
    }

    .information-image-card img {
        aspect-ratio: 3 / 2;
        min-height: 0;
    }

    .file-size {
        display: none;
    }

    .file-status {
        font-size: 0;
    }

    .file-status::before {
        width: 7px;
        height: 7px;
        margin: 0;
    }

    .site-footer {
        min-height: 70px;
        justify-content: center;
        text-align: center;
    }

    .site-footer span:last-child {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
