*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

:root {
    --black: #000;
    --white: #fff;
    --grey-panel: #f1f1f1;
    --grey-border: #cfcfcf;
    --grey-input: #8f8f8f;
    --grey-text: #7d7d7d;
    --error: #c0182b;
    --gutter: 32px;
}

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--black);
    background: var(--white);
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 28px var(--gutter);
}
.site-menu { display: contents; }
.menu-toggle { display: none; }
.site-footer-mobile { display: none; }
.site-logo { display: inline-flex; }
.site-logo img { display: block; height: 27px; width: auto; }
.site-nav, .site-actions { display: flex; gap: 32px; font-size: 14px; font-weight: 600; }
.site-actions { justify-content: flex-end; gap: 28px; }
.site-nav a:hover, .site-actions a:hover { text-decoration: underline; }

/* Main */
.site-main { flex: 1; padding: 0 var(--gutter) 96px; }
.page-section { max-width: 1440px; margin: 0 auto; padding-top: 48px; }

.display {
    margin: 0 0 24px;
    font-size: clamp(56px, 9vw, 120px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
}
.h2 { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 18px; line-height: 1.35; }
.hint, .eyebrow { margin: 6px 0 0; font-size: 13px; color: var(--grey-text); }
.eyebrow { margin: 0 0 6px; }

.link-underlined { text-decoration: underline; text-underline-offset: 2px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--black);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-outline { background: transparent; color: var(--black); font-weight: 500; }
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .5; cursor: default; }

.chev {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: -2px;
}
.chev-left { transform: rotate(-135deg); margin: 0 4px 0 2px; }

/* Fields */
.field label, .field-label {
    display: block;
    /* margin-bottom: 6px; */
    font-size: 13px;
    font-weight: 500;
}

#logo-button {
    padding: 6px 12px!important;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--grey-input);
    border-radius: 0;
    background: var(--white);
    font: inherit;
    font-size: 14px;
    color: var(--black);
    appearance: none;
    -webkit-appearance: none;
}
input::placeholder { color: var(--grey-text); }
input:focus, select:focus { outline: 2px solid var(--black); outline-offset: -1px; }
input.has-error, select.has-error { border-color: var(--error); }
.field-error { margin: 4px 0 0; min-height: 0; font-size: 12px; color: var(--error); }
.field-error:empty { display: none; }
.form-message { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--error); color: var(--error); font-size: 14px; }

.select-wrap { position: relative; }
.select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 14px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--black);
    border-bottom: 1.5px solid var(--black);
    transform: rotate(45deg);
    pointer-events: none;
}
select { padding-right: 36px; color: var(--grey-text); }
select:valid { color: var(--black); }
select:required:invalid { color: var(--grey-text); }

/* Sign in */
.signin-form {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 32px;
}
.signin-form .field { flex: 0 1 32%; min-width: 0; }
.signin-form .btn { margin-top: 23px; }
.forgot { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 500; }
.signin-form + .form-message { max-width: 640px; }

.panel { background: var(--grey-panel); }
.register-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 56px;
    padding: 48px 8%;
}
.register-cta .h2 { margin-bottom: 12px; font-size: 24px; }
.register-cta .lead { max-width: 420px; font-size: 16px; }
.star-list { margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; }
.star-list li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.star-list li::before { content: '\2731'; position: absolute; left: 0; font-size: 12px; top: 1px; }

/* Sign up */
.back-link { display: inline-flex; align-items: center; margin-bottom: 32px; font-size: 13px; font-weight: 500; }
.page-section > .lead { margin-bottom: 40px; }
.success-panel .btn { margin-top: 8px; }

.form-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    padding: 24px 0 40px;
    border-top: 1px solid var(--grey-border);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--grey-border);
    font-size: 14px;
}
.info-box svg { flex: none; }

.form-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--grey-border);
}
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.checkbox input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--black); }
.checkbox.has-error { color: var(--error); }

.success-panel { margin-top: 32px; padding: 48px 8%; }
.success-panel .h2 { margin-bottom: 12px; }

/* Footer */
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px var(--gutter);
    background: var(--black);
    color: #8a8a8a;
    font-size: 14px;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 900px) {
    :root { --gutter: 20px; }
    .site-header { grid-template-columns: 1fr auto; padding-top: 20px; padding-bottom: 20px; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 28px; height: 28px; padding: 0 2px; border: 0; background: none; cursor: pointer; }
    .menu-toggle span { display: block; height: 2px; background: var(--black); }
    .site-menu { display: none; grid-column: 1 / -1; flex-direction: column; gap: 16px; padding-top: 20px; }
    .site-menu.is-open { display: flex; }
    .site-nav, .site-actions { flex-direction: column; gap: 12px; justify-content: flex-start; }
    .site-actions { padding-top: 16px; border-top: 1px solid var(--grey-border); }
    .site-footer { display: none; }
    .site-footer-mobile { display: block; padding: 40px var(--gutter) 24px; background: var(--black); color: #8a8a8a; font-size: 13px; }
    .footer-star { display: block; margin-bottom: 48px; transform: rotate(-8deg); }
    .footer-address { margin: 0 0 40px; font-style: normal; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--white); }
    .footer-social { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
    .footer-legal { display: flex; justify-content: space-between; gap: 16px; }
    .footer-social a:hover, .footer-legal a:hover { color: var(--white); }
    .display { font-size: clamp(48px, 15vw, 64px); }
    .signin-form { flex-direction: column; align-items: stretch; gap: 16px; }
    .signin-form .field { flex-basis: auto; }
    .signin-form .btn { margin-top: 0; align-self: flex-start; }
    .register-cta { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
    .form-section { grid-template-columns: 1fr; gap: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-footer { flex-direction: column; }
}

/* Header (signed in) */
.studio-name { font-weight: 500; }

/* Submissions */
.display-split { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.25em; margin-bottom: 20px; }
.display-split .muted { color: #808080; }
.year-picker { position: relative; display: inline-block; }
.year-picker-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    letter-spacing: inherit;
    color: var(--black);
    cursor: pointer;
}
.year-picker-toggle .chev { width: 0.18em; height: 0.18em; border-width: 3px; margin: 0 0 0.12em 0.08em; }
.chev-down { transform: rotate(135deg); }
.year-picker-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    min-width: 140px;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--grey-border);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
}
.year-picker-menu a { display: block; padding: 8px 16px; }
.year-picker-menu a:hover, .year-picker-menu a[aria-current] { background: var(--grey-panel); }

.muted-text { color: var(--grey-text); }
.step-text { margin: 0; font-size: 16px; }
.actions { margin: 20px 0 0; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.note { margin-top: 20px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fine-print { margin: 14px 0 0; max-width: 560px; font-size: 14px; line-height: 1.35; color: var(--grey-text); }
.submissions-page .display-split { margin-bottom: 56px; }
.submissions-page > .form-message { max-width: none; margin: 0 0 24px; }

.tag {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid var(--grey-border);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--black);
    white-space: nowrap;
}

/* Steps */
.step-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 64px; border: 1px solid var(--grey-border); }
.step-tab { display: flex; align-items: center; gap: 20px; min-height: 80px; padding: 14px 20px; border-left: 1px solid var(--grey-border); }
.step-tab:first-child { border-left: 0; }
.step-tab:hover { background: var(--grey-panel); }
.step-tab.is-active, .step-tab.is-active:hover { background: var(--black); color: var(--white); }
.step-tab-num { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.step-tab-text { display: flex; flex-direction: column; gap: 2px; }
.step-tab-title { font-size: 20px; line-height: 1.2; font-weight: 500; }
.step-tab-meta { font-size: 12px; color: var(--grey-text); }
.step-tab.is-active .step-tab-meta { color: #d0d0d0; }
.step-panel .lead { max-width: 640px; }
.step-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 40px; }
.step-intro .lead { max-width: none; }
.step-intro-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Project lists */
.project-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.project-table th {
    padding: 0 12px 10px;
    border-bottom: 1px solid #333;
    text-align: left;
    font-size: 16px;
    font-weight: 400;
}
.project-table td { padding: 10px 12px; border-bottom: 1px solid var(--grey-border); vertical-align: middle; }
.project-table .col-thumb { width: 116px; padding-left: 0; padding-right: 0; }
.project-table th.col-thumb { padding: 0; }
.project-table th:nth-child(2), .project-table td:nth-child(2) { padding-left: 28px; }
.project-table tr.is-muted td { color: var(--grey-text); }
.project-title { font-weight: 700; }
.col-action { text-align: right; white-space: nowrap; padding-right: 0 !important; }
.row-link { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; }
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 32px; }
.row-actions form { margin: 0; }
.row-action { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.row-action.is-disabled { color: #c4c4c4; cursor: default; }
.thumb { display: block; width: 90px; height: 65px; object-fit: cover; }
.thumb-empty { background: var(--grey-panel); }
.project-table + .actions { margin-top: 28px; }
.doc-links { display: inline-flex; flex-wrap: wrap; gap: 8px 16px; }
.samples-table td form { margin: 0; }
.project-cards { display: none; }

.empty-card { padding: 40px; border: 1px solid var(--grey-border); margin-bottom: 64px; }
.empty-card .h2 { margin-bottom: 20px; }
.empty-card p { margin: 0 0 24px; max-width: 640px; }

.needs .eyebrow { margin-bottom: 14px; font-size: 16px; }
.needs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 16px; }
.needs-grid strong { font-weight: 700; }
.needs-grid .hint { margin: 2px 0 0; font-size: 16px; }
.needs .actions { margin-top: 28px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.three-col > div { padding-top: 16px; border-top: 1px solid var(--grey-border); }
.three-col .hint { font-size: 14px; }
.three-col p { margin: 8px 0 0; font-size: 20px; line-height: 1.3; }

.section-block { padding: 40px 0; border-top: 1px solid var(--grey-border); }
.section-plain { border-top: 0; padding-top: 0; }
.before-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; margin: 24px 0 64px; }
.before-text { max-width: 560px; margin-top: 40px; }
.countdown { display: flex; align-items: flex-start; gap: 20px; }
.countdown-num { font-size: 140px; line-height: 0.85; font-weight: 700; letter-spacing: -0.05em; }
.countdown-label { font-size: 20px; line-height: 1.25; }
.key-dates { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--black); }
.key-dates > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--grey-border); font-size: 20px; }
.key-dates dt, .key-dates dd { margin: 0; }
.key-dates dd { color: var(--grey-text); text-align: right; }
.before-grid .eyebrow { font-size: 16px; }

.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding: 32px;
    border: 1px solid var(--grey-border);
}
.banner p { margin: 0; font-size: 20px; }

/* Payments */
.payments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--grey-border); }
.payments-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.payments-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.payments-table th { padding: 0 12px 10px 0; border-bottom: 1px solid #333; text-align: left; font-weight: 400; }
.payments-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--grey-border); }
.payments-table .hint-cell { color: var(--black); }
.payments-table th:nth-child(1) { width: 233px; }
.payments-table th:nth-child(2) { width: 467px; }
.col-docs { white-space: nowrap; }
.sep { margin: 0 4px; color: var(--grey-text); }
.payments-cards { display: none; }

/* Samples and results */
.packing { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--grey-border); }
.packing p { margin: 12px 0 0; max-width: 1000px; color: var(--grey-text); }
.packing .h2 { margin-bottom: 20px; }
.waiting { display: flex; align-items: flex-start; gap: 64px; }
.waiting-count { display: flex; flex-direction: column; gap: 12px; }
.waiting-count .countdown-num { font-size: 96px; line-height: 0.9; }
.waiting-text { margin-top: 12px; max-width: 520px; }
.award-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: 48px 30px; }
.award-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.star-gold { color: #d3a64b; }
.star-silver { color: #7e8a96; }
.star-bronze { color: #b4753f; }
.star-finalist { color: #999; }
.award-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.award-category { margin: 14px 0 0; font-size: 14px; }
.award-title { margin: 6px 0 16px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.award-card .row-link { font-size: 14px; }
.badges { margin-top: 64px; }
.badges-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.badges-head .h3 { margin: 0; font-size: 20px; }
.badge-card p { margin: 12px 0 4px; font-size: 14px; }
.badge-card .link-underlined { font-size: 14px; }
.badge-image { display: block; width: 100%; aspect-ratio: 8 / 5; }
.badges-note { max-width: 640px; margin: 28px 0 0; font-size: 14px; }
.festival-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--grey-border); }
.festival-line p { margin: 0; font-size: 20px; }

@media (max-width: 900px) {
    .step-tabs { grid-template-columns: 1fr; margin-bottom: 40px; }
    .step-tab { border-left: 0; border-top: 1px solid var(--grey-border); min-height: 80px; }
    .step-tab:first-child { border-top: 0; }
    .step-tab-num { width: 36px; font-size: 36px; }
    .needs-grid { grid-template-columns: 1fr; gap: 16px; }
    .three-col, .before-grid { grid-template-columns: 1fr; gap: 0; }
    .three-col > div { margin-top: 0; padding: 14px 0 18px; }
    .before-grid { margin-bottom: 40px; }
    .countdown-num { font-size: 120px; }
    .before-text { margin-top: 32px; }
    .before-grid > div + div { margin-top: 48px; }
    .key-dates { margin-bottom: 40px; }
    .step-intro { flex-direction: column; align-items: flex-start; gap: 20px; }
    .step-intro-actions { flex-direction: column; align-items: flex-start; }
    .banner, .festival-line { flex-direction: column; align-items: flex-start; }
    .empty-card { padding: 24px; }
    .waiting { flex-direction: column; gap: 8px; }
    .waiting-count { gap: 4px; }
    .waiting-count .countdown-num { font-size: 56px; }
    .award-grid { grid-template-columns: 1fr; gap: 36px; }
    .badges-head { flex-direction: column; align-items: flex-start; }

    .project-table, .payments-table { display: none; }
    .project-cards, .payments-cards { display: block; border-top: 1px solid var(--black); }
    .project-card { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--grey-border); }
    .project-card.is-muted { color: var(--grey-text); }
    .project-card .thumb { flex: 0 0 90px; }
    .project-card-main { flex: 1; min-width: 0; font-size: 16px; }
    .project-card-main .hint, .project-card-wide .hint { margin: 2px 0 0; font-size: 14px; }
    .project-card-head { display: flex; justify-content: space-between; gap: 12px; }
    .project-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin: 10px 0 0; }
    .project-card-foot .row-actions { flex-basis: 100%; justify-content: flex-start; gap: 24px; }
    .submissions-page .display-split { margin-bottom: 32px; }
    .project-card-wide { flex-basis: 100%; }
    .project-card-wide .doc-links { margin: 6px 0 12px; }
    .sample-status { display: flex; align-items: center; gap: 16px; }
    .sample-status form { margin: 0; }
    .payment-card { padding: 14px 0; border-bottom: 1px solid var(--grey-border); }
    .payment-card-head { display: flex; justify-content: space-between; }
    .payment-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 6px; margin: 10px 0 0; }
    .payments { margin-top: 40px; }
    .payments-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
    .packing { margin-top: 48px; }
}

/* Account / profile */
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--grey-input);
    border-radius: 0;
    background: var(--white);
    font: inherit;
    font-size: 14px;
    color: var(--black);
    resize: vertical;
}
textarea::placeholder { color: var(--grey-text); }
textarea:focus { outline: 2px solid var(--black); outline-offset: -1px; }
textarea.has-error { border-color: var(--error); }
input[readonly] { background: #fafafa; color: var(--grey-text); cursor: default; }
input[readonly]:focus { outline: none; }

.studio-name:hover { text-decoration: underline; }
.form-message.is-success { border-color: var(--black); color: var(--black); }
.password-panel .form-message { margin-top: 12px; }
.password-panel { padding: 16px; background: var(--grey-panel); }
.password-panel input { background: var(--white); }

.h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; }
.hint-inline { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--grey-text); }
.subsection { margin-top: 12px; }
.subsection .hint { margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
    padding: 8px 12px;
    border: 0;
    background: var(--grey-panel);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); }
.chip:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }

.logo-box { width: 82px; height: 82px; background: #b3b3b3; }
.logo-box img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-action { display: flex; align-items: flex-end; }
.logo-buttons { display: flex; gap: 8px; }
.logo-btn.is-busy { opacity: .5; pointer-events: none; }
.form-footer-start { justify-content: flex-start; gap: 8px; }

/* Review and pay */
.step-label { margin: 0 0 8px; font-size: 18px; color: var(--grey-text); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 140px; margin-top: 56px; align-items: start; }
.checkout-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.checkout-table th { padding: 0 12px 10px; border-bottom: 1px solid #333; text-align: left; font-size: 16px; font-weight: 400; }
.checkout-table td { padding: 12px; border-bottom: 1px solid var(--grey-border); vertical-align: middle; }
.checkout-table .col-check { width: 100px; padding-left: 0; }
.checkout-table .col-thumb { width: 116px; padding: 12px 24px 12px 0; }
.checkout-table th.col-thumb { padding: 0; }
.checkout-table .col-fee { text-align: left; white-space: nowrap; width: 90px; }
.checkout-table input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: var(--black); }
.checkout-table input[type="checkbox"]:disabled { opacity: .4; }
.checkout-table td .hint { margin: 2px 0 0; }
.thumb-lg { width: 90px; height: 65px; }
.checkout-table tr.is-incomplete td { color: #a8a8a8; }
.checkout-table tr.is-incomplete .thumb { opacity: .7; }
.checkout-table tr.is-incomplete .hint a { color: var(--grey-text); }
.checkout-table .col-services { width: 200px; }
.check { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 16px; cursor: pointer; }
.check:has(input:disabled) { color: var(--grey-text); cursor: default; }

.pay-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 48px; }
.paid-projects { margin-top: 0; }
.paid-projects summary { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--grey-border); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.paid-projects summary::-webkit-details-marker { display: none; }
.paid-projects summary .chev { width: 6px; height: 6px; }
.paid-projects[open] summary .chev { transform: rotate(-45deg); }
.checkout-table-paid { margin-top: 8px; }
.checkout-table-paid td { color: var(--grey-text); }

.summary { padding: 24px 16px 16px; border: 1px solid var(--grey-border); font-size: 13px; }
.summary-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary-lines dt, .summary-lines dd { margin: 0; }
.summary-lines dd { color: var(--grey-text); }
.summary-total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid #333; font-size: 16px; font-weight: 700; }
.summary-note { margin: 12px 0 0; padding: 8px 10px; background: var(--grey-panel); }
.link-button { padding: 0; margin: 14px 0 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.coupon-box { margin-top: 10px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { height: 32px; font-size: 13px; }
.coupon-message { margin: 6px 0 0; min-height: 1em; font-size: 12px; color: var(--grey-text); }
.payment-methods { margin: 16px 0 0; padding: 0; border: 0; }
.payment-methods legend { padding: 0; margin-bottom: 6px; font-size: 12px; font-weight: 500; }
.radio { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; cursor: pointer; }
.radio input { width: 14px; height: 14px; margin: 0; accent-color: var(--black); }
.btn-block { width: 100%; justify-content: space-between; margin-top: 16px; height: 40px; }
.summary #pay-button { margin-top: 16px; }
.summary .form-message { margin-top: 12px; font-size: 13px; }

.modal { width: min(520px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--black); background: var(--white); color: var(--black); font-size: 14px; }
.modal::backdrop { background: rgba(0, 0, 0, .45); }
.modal-wide { width: min(620px, calc(100vw - 32px)); }
.modal p { margin: 12px 0 0; }
.modal .form-grid { margin-top: 16px; }
.modal-actions { display: flex; gap: 8px; margin-top: 20px; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
.result-panel { padding: 24px; }
.detail-list { margin: 16px 0 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--grey-border); }
.detail-list dt, .detail-list dd { margin: 0; }
.detail-list dd { text-align: right; font-weight: 500; }
.plain-list { margin: 8px 0 0; padding: 0; list-style: none; }
.plain-list li { padding: 4px 0; }
.spaced { margin-top: 12px; }
.result-panel .step-text { margin-top: 20px; }

@media (max-width: 900px) {
    .checkout-grid, .result-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
    .checkout-table:not(.checkout-table-paid) thead { display: none; }
    .checkout-table:not(.checkout-table-paid), .checkout-table:not(.checkout-table-paid) tbody { display: block; border-top: 1px solid var(--black); }
    .checkout-table:not(.checkout-table-paid) tr { display: grid; grid-template-columns: 28px 90px minmax(0, 1fr) auto; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--grey-border); }
    .checkout-table:not(.checkout-table-paid) td { padding: 0; border: 0; }
    .checkout-table:not(.checkout-table-paid) .col-check { width: auto; grid-row: 1 / span 2; padding-top: 2px; }
    .checkout-table:not(.checkout-table-paid) .col-thumb { width: auto; grid-row: 1 / span 2; padding: 0; }
    .checkout-table:not(.checkout-table-paid) .col-project { grid-column: 3; grid-row: 1; }
    .checkout-table:not(.checkout-table-paid) .col-fee { grid-column: 4; grid-row: 1; width: auto; }
    .checkout-table:not(.checkout-table-paid) .col-services { grid-column: 3 / 5; grid-row: 2; width: auto; margin-top: 4px; }
    .pay-foot { margin-top: 32px; }
}

/* Invoices */
.invoices-page .back-link { margin-bottom: 36px; font-size: 16px; }
.invoice-tools { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 56px 0 48px; }
.filter-picker { position: relative; }
.filter-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0 0 6px; border: 0; border-bottom: 1px solid var(--grey-border); background: none; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.filter-toggle .chev { width: 8px; height: 8px; margin: -4px 0 0 4px; }
.invoice-search { display: flex; align-items: center; gap: 10px; width: 320px; padding-bottom: 6px; border-bottom: 1px solid var(--grey-input); color: var(--grey-text); }
.invoice-search svg { flex: none; }
.invoice-search input { width: 100%; height: auto; padding: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--black); -webkit-appearance: none; appearance: none; }
.invoice-search input::placeholder { color: var(--grey-text); }
.invoice-search input:focus { outline: none; }
.invoice-search:focus-within { border-bottom-color: var(--black); }

.invoice-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 16px; }
.invoice-table .col-number, .invoice-table .col-date { width: 17%; }
.invoice-table .col-covers { width: 34%; }
.invoice-table .col-total, .invoice-table .col-status { width: 8.5%; }
.invoice-table > thead th { padding: 0 12px 12px 0; border-bottom: 1px solid var(--black); text-align: left; font-weight: 400; }
.invoice-row td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--grey-border); vertical-align: middle; }
.invoice-row .col-action { text-align: left; white-space: nowrap; padding-right: 0; }
.invoice-items .thumb-empty { background: #e0e0e0; }
.invoice-row .link-button { margin: 0; font-size: inherit; font-weight: 400; }
.invoice.is-open .invoice-row td { border-bottom: 0; }
.sep { margin: 0 4px; color: var(--grey-text); }
.invoice-table .tag { padding: 3px 7px; border-color: #bdbdbd; border-radius: 2px; font-size: 13px; font-weight: 400; }
.invoice-detail > td { padding: 0 0 20px; border-bottom: 1px solid var(--grey-border); }
.invoice-detail-box { padding: 0 30px 20px 8.5%; background: var(--grey-panel); }
.invoice-items { width: 100%; table-layout: fixed; border-collapse: collapse; }
.invoice-items th { padding: 18px 12px 10px 0; border-bottom: 1px solid var(--black); text-align: left; font-weight: 400; }
.invoice-items td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--grey-border); vertical-align: middle; }
.invoice-items .col-thumb { width: 9.5%; }
.invoice-items .col-project { width: 57.2%; }
.invoice-items .col-service { width: 19%; }
.invoice-items .project-title { font-weight: 700; }
.invoice-items .thumb { width: 87px; height: 65px; }
.invoice-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 20px; }
.invoice-foot-actions { display: flex; align-items: center; gap: 20px; }
.invoice-foot-actions .btn { height: 38px; font-size: 16px; font-weight: 500; }
.invoice-totals { width: 14.3%; min-width: 150px; margin: 0; white-space: nowrap; }
.invoice-totals > div { display: flex; justify-content: space-between; gap: 24px; padding: 2px 0; font-size: 14px; }
.invoice-totals dt, .invoice-totals dd { margin: 0; }
.invoice-totals .invoice-total { display: block; padding: 0; font-size: 20px; font-weight: 700; }
.invoice-totals .invoice-total dt, .invoice-totals .invoice-total dd { display: inline; }
.invoice-totals .invoice-total dd::before { content: ' '; }
.invoices-empty { margin-top: 32px; }

@media (max-width: 900px) {
    .invoices-page { padding-top: 32px; }
    .invoices-page .back-link { margin-bottom: 28px; }
    .invoice-tools { flex-direction: column; align-items: flex-start; gap: 16px; margin: 32px 0 40px; }
    .invoice-search { width: 100%; }
    .filter-toggle { padding-bottom: 4px; }

    .invoice-table, .invoice-table > tbody, .invoice-table .invoice-row, .invoice-table .invoice-detail, .invoice-table .invoice-detail > td { display: block; }
    .invoice-table > thead { display: none; }
    .invoice-table > tbody.invoice { padding: 16px 0; border-top: 1px solid var(--grey-border); }
    .invoice-table > tbody.invoice:last-of-type { border-bottom: 1px solid var(--grey-border); }
    .invoice-table > tbody.invoice[hidden] { display: none; }
    .invoice-row { display: grid !important; grid-template-columns: 1fr auto; align-items: start; }
    .invoice-table .invoice-row td { width: auto; padding: 0; border: 0; }
    .invoice-row .col-number { grid-column: 1; grid-row: 1; }
    .invoice-row .col-status { grid-column: 2; grid-row: 1 / span 4; justify-self: end; }
    .invoice-row .col-date, .invoice-row .col-covers, .invoice-row .col-total { grid-column: 1; font-size: 13px; line-height: 1.25; color: var(--grey-text); }
    .invoice-table .invoice-row .col-action { grid-column: 1 / -1; padding-top: 10px; }
    .invoice-table .invoice-row .col-number { padding-bottom: 6px; }
    .invoice-row .col-status:empty { display: none; }
    .invoice-detail > td { padding: 16px 0 0; border: 0; }
    .invoice-detail-box { padding: 4px 16px 16px; }
    .invoice-items, .invoice-items > tbody { display: block; }
    .invoice-items > thead { display: none; }
    .invoice-items tr { display: grid; grid-template-columns: 87px 1fr; column-gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--grey-border); }
    .invoice-items td { padding: 0; border: 0; }
    .invoice-items .col-thumb { grid-column: 1; grid-row: 1 / span 3; width: auto; }
    .invoice-items .col-project, .invoice-items .col-service, .invoice-items .col-fee { grid-column: 2; width: auto; }
    .invoice-items .col-service, .invoice-items .col-fee { font-size: 13px; line-height: 1.25; color: var(--grey-text); }
    .invoice-items tr { align-content: center; }
    .invoice-foot { padding-top: 16px; }
    .invoice-totals { width: auto; min-width: 0; }
}

/* Add / edit a project */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.project-head .display { margin-bottom: 0; font-size: clamp(40px, 5vw, 72px); }
.project-tag { flex: none; margin-top: 8px; }
.project-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px; font-size: 13px; }
.project-status-label { color: var(--grey-text); font-size: 11px; }
.project-status .dot { color: var(--grey-text); }

.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 96px; align-items: start; margin-top: 48px; }
.project-main { grid-column: 1; grid-row: 1; min-width: 0; margin: 0; padding: 0; border: 0; }
.progress-card { grid-column: 2; grid-row: 1; position: sticky; top: 24px; padding: 16px; border: 1px solid var(--grey-border); font-size: 13px; }
.progress-title { margin: 0; font-size: 16px; font-weight: 700; }
.progress-count { margin: 2px 0 12px; font-size: 12px; color: var(--grey-text); }
.progress-list { margin: 0 0 16px; padding: 0; list-style: none; }
.progress-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--grey-border); }
.progress-list li:last-child { border-bottom: 0; }
.progress-list a { text-decoration: underline; text-underline-offset: 2px; }
.progress-box { position: relative; flex: none; width: 12px; height: 12px; border: 1px solid #333; }
.progress-list li.is-done .progress-box { background: var(--black); }
.progress-list li.is-done .progress-box::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    width: 3px;
    height: 7px;
    border: solid var(--white);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.progress-card .btn { margin-top: 8px; }
.btn-center { width: 100%; justify-content: center; }

.sub-section { padding: 24px 0 56px; border-top: 1px solid var(--grey-border); }
.sub-section > .h2 { margin-bottom: 24px; }
.project-main .field label { margin-bottom: 4px; font-size: 12px; }
.project-main .field-action { align-self: end; }
.browse-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.extra-rows:not(:empty) { margin-top: 16px; }
.extra-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px 24px; align-items: end; margin-bottom: 16px; }
.extra-row-video { grid-template-columns: calc(50% - 12px) auto; }

.requirements { margin-bottom: 20px; font-size: 13px; }
.requirements p { margin: 0 0 6px; }
.requirements .requirements-title { margin-bottom: 8px; font-weight: 700; }

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 24px;
    border: 1px dashed #8f8f8f;
    background: var(--grey-panel);
    text-align: center;
    cursor: pointer;
}
.dropzone:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.dropzone.is-over { background: #e4e4e4; border-color: var(--black); }
.dropzone-title { margin: 0; font-size: 13px; font-weight: 500; }
.dropzone-hint { max-width: 420px; margin: 6px 0 0; font-size: 11px; color: var(--grey-text); }

.file-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.file-grid:empty { display: none; }
.file-tile { position: relative; aspect-ratio: 16 / 9; background: repeating-conic-gradient(#ececec 0% 25%, #f7f7f7 0% 50%) 0 0 / 16px 16px; }
.file-preview { display: block; width: 100%; height: 100%; }
.file-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.file-preview-pdf { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 10px; font-size: 12px; }
.file-kind { font-weight: 700; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--grey-text); }
.file-delete {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 8px;
    border: 1px solid var(--grey-border);
    background: var(--white);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}
.file-delete:hover { background: var(--grey-panel); }
.file-tile.is-uploading::after { content: 'Uploading\2026'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .7); font-size: 12px; }
.file-tile.is-failed { outline: 1px solid var(--error); }
#file-error { margin-top: 12px; }

.info-note { margin: 16px 0 0; padding: 12px 16px; background: var(--grey-panel); font-size: 12px; }
.link-button + .info-note, .extra-rows + .info-note { margin-top: 16px; }
#add-video { display: block; margin-top: 8px; }

.toast {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 10;
    max-width: calc(100vw - 48px);
    padding: 12px 16px;
    background: var(--black);
    color: var(--white);
    font-size: 14px;
}
.toast.is-error { background: var(--error); }

@media (max-width: 900px) {
    .project-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .project-tag { margin-top: 0; }
    .project-layout { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
    .project-main, .progress-card { grid-column: 1; }
    .progress-card { grid-row: 1; position: static; }
    .project-main { grid-row: 2; }
    .extra-row, .extra-row-video { grid-template-columns: 1fr; }
    .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
