/* apply.css: the open-call apply and claim flow, walls.link/apply/<call> (CTO-4070).
   Drawn after the design package's renders (prototype v57, 390 and 1440 px): Inter Tight for
   text, Owners XBlack for the WALLS wordmark, a 480 px column with 16 px gutters on phones.
   Sizes: 22 titles, 20 code digits, 15 body and buttons, 16 typed text, 14 bids and the
   dropzone, 13 sublines and the footer, 12 hints and counters, 11 the "claimed" pill. */

@font-face {
  font-family: "InterTight";
  src: url("/walls-link-landing-deploy/assets/fonts/InterTight.ttf") format("truetype-variations"),
       url("/walls-link-landing-deploy/assets/fonts/InterTight.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Owners";
  src: url("/assets/fonts/Owners_XBlack.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --ink: #000;
  --grey: #6B6B6B;
  --light: #9A9A9A;
  --placeholder: #767676;
  --mark: #404243;
  --line: #CFCFCF;
  --card: #E6E6E6;
  --divider: #EFEFEF;
  --box: #F4F4F4;
  --off-bg: #E2E2E2;
  --off-ink: #8A8A8A;
  --piccoli: #132A55;
  --error: #D62D20;
  --saved: #1E9E5A;
  --code: #5AA61E;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.apply {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: "InterTight", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
/* The page's own resets carry no weight (:where), so every class below wins over them. */
:where(.apply) p { margin: 0; }
:where(.apply) a { color: inherit; }
:where(.apply) button { font: inherit; color: inherit; }
.apply-sr, .apply-sr:focus {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.apply :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.apply .apply-search input:focus-visible, .apply .apply-input:focus-visible, .apply .apply-digit:focus-visible { outline: none; }

/* WALLS in running text: the wordmark at the text's own size (decision 22). */
.apply-w { font-family: "Owners", "InterTight", sans-serif; font-weight: 900; font-size: 1em; }

/* The masked contact, bar C (R34). */
.mask-bar {
  display: inline-block; width: 1.5em; height: 0.32em; border-radius: 0.16em;
  background: currentColor; vertical-align: 0.2em; margin: 0 0.14em;
}
.apply-masked { white-space: nowrap; }
.apply-strong { font-weight: 600; color: var(--ink); }

/* ── Header ── */
.apply-header {
  display: flex; align-items: center; justify-content: space-between;
  height: clamp(64px, 2.7vw + 53.5px, 88px);
  padding: 0 16px;
}
.apply-header-mark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: "Owners", sans-serif; font-weight: 900; font-size: clamp(18px, 0.4vw + 16.5px, 22px);
  letter-spacing: 0.01em; color: var(--mark); text-decoration: none;
}
.apply-pill {
  display: inline-flex; align-items: center; min-height: 34px;
  font-family: "Owners", sans-serif; font-weight: 900; font-size: 13px; color: var(--mark); text-decoration: none;
  padding: 0.55rem 1.05rem; border-radius: 4rem;
  background-color: rgba(255, 255, 255, 0.38);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(0,0,0,0.06), rgba(255,255,255,0.12));
  border: 0.5px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  backdrop-filter: blur(9px) saturate(150%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 0 6px rgba(255,255,255,0.55), inset 0 1px 1px rgba(255,255,255,0.95),
    inset 0 2px 7px rgba(255,255,255,0.50), inset 0 -1px 2px rgba(255,255,255,0.55), inset 0 0 3px rgba(0,0,0,0.05);
}
.apply-pill::after { content: ""; position: absolute; }
@media (min-width: 900px) { .apply-pill { font-size: 14px; } }

/* ── Main column and footer ── */
.apply-main { flex: 1 0 auto; width: 100%; max-width: 512px; margin: 0 auto; padding: 0 16px 32px; }
.apply-noscript { text-align: center; color: var(--grey); padding: 40px 0; }

.apply-footer { padding: 24px 16px 32px; text-align: center; color: var(--grey); font-size: 13px; line-height: 1.5; }
/* The footer line's WALLS is drawn smaller than elsewhere, in the line's own grey (S01 and every step screen). */
.apply-footer-line .apply-w { font-size: 0.87em; }
.apply-footer-long { display: none; }
@media (min-width: 640px) {
  .apply-footer-short { display: none; }
  .apply-footer-long { display: inline; }
}
/* The partner row (S01): each mark in its logo's box from the design, all one height, top-aligned, so
   the three share a top and a baseline; "studios" hangs below WILHELM and moves nothing. */
.apply-partners {
  list-style: none; margin: 0 0 23.33px; padding: 0;
  display: flex; justify-content: center; align-items: flex-start; gap: 20px; color: var(--mark);
  transition: opacity 150ms ease;
}
.apply-partner { position: relative; line-height: 0; }
.apply-mark, .apply-mark-studios { display: block; fill: currentColor; overflow: visible; }
.apply-mark { height: 13.67px; }
.apply-partner-wilhelm .apply-mark { width: 94px; }
.apply-partner-fvf .apply-mark { width: 27px; }
.apply-partner-passage .apply-mark { width: 65px; }
.apply-mark-sans { font-family: "InterTight", sans-serif; font-weight: 800; }
.apply-mark-serif { font-family: "Times New Roman", Times, Georgia, serif; font-weight: 400; font-size-adjust: cap-height 0.6621; }
.apply-mark-studios { position: absolute; left: 50%; top: calc(100% + 3.33px); width: 18.33px; height: 3px; transform: translateX(-50%); }
.apply-mark-studios text { font-family: "InterTight", sans-serif; font-weight: 500; }
@media (min-width: 640px) {
  .apply-partners { gap: 25px; margin-bottom: 24.25px; }
  .apply-mark { height: 17.25px; }
  .apply-partner-wilhelm .apply-mark { width: 121px; }
  .apply-partner-fvf .apply-mark { width: 35px; }
  .apply-partner-passage .apply-mark { width: 83.5px; }
  .apply-mark-studios { top: calc(100% + 4px); width: 24px; height: 4.5px; }
}
.apply-footer-links { margin-top: -2px; transition: opacity 150ms ease; }
.apply-footer-links a { color: rgba(0, 0, 0, 0.4); display: inline-block; padding: 6px 2px; text-underline-offset: 2.9px; }
.apply-footer-links span { display: inline-block; margin: 0 8.5px; color: rgba(0, 0, 0, 0.4); transform: scale(1.6); }
body[data-screen-kind="step"] [data-landing-only] { display: none; }
body[data-screen-kind="landing"] .apply-footer { padding-bottom: 26px; }
body.apply-typing [data-landing-only] { opacity: 0; pointer-events: none; }
@media (max-width: 639px) { body.apply-typing [data-landing-only] { display: none; } }
@media (min-width: 1100px) {
  body[data-screen-kind="landing"] .apply-footer { position: relative; padding-bottom: 32px; }
  body[data-screen-kind="landing"] .apply-footer-links { position: absolute; right: 14px; bottom: 25.3px; margin: 0; }
}

/* ── The landing (S01) and the search (S02) ── */
.apply-landing { padding-top: 73px; }
.apply-hero { text-align: center; }
.apply-piccoli, .apply-lockup {
  font-family: "InterTight", sans-serif; font-weight: 800; color: var(--piccoli); line-height: 1;
}
.apply-piccoli { display: inline-block; font-size: 51px; letter-spacing: -0.045em; margin: 0 0 15.85px -0.046em; }
/* The backslash of P\CCOLI as the design draws it: a bar as thick as the stems, leaning 21°, exactly
   the capitals' height (the type's own backslash reaches above and below them). */
.apply-slash {
  display: inline-block; width: 0.17em; height: 0.7275em; margin: 0 0.0531em 0 0.0773em;
  background: currentColor; transform: skewX(21deg);
}
.apply-hero-lines { color: var(--grey); font-size: 15px; line-height: 1.55; }
.apply-hero-applied { color: var(--grey); margin-top: 8px; }
.apply-find { margin-top: 37px; }
.apply-tabs { display: flex; justify-content: center; gap: 56px; margin-bottom: 11px; }
.apply-tab {
  background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--grey); position: relative;
}
.apply-tab[aria-selected="true"] { color: var(--ink); }
.apply-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--ink); border-radius: 1px; }
.apply-search-wrap { position: relative; }
.apply-search {
  display: flex; align-items: center; height: 48px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 0 14px;
  background: #fff; transition: box-shadow 150ms ease;
}
.apply-search:focus-within { box-shadow: 0 0 0 4px var(--divider); }
.apply-search-icon { width: 20px; height: 20px; flex: none; margin-right: 12px; color: var(--ink); }
.apply-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0;
  font: inherit; font-size: 16px; color: var(--ink);
}
.apply-search input::placeholder { color: var(--placeholder); font-size: 15px; }
.apply-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.apply-search-error { margin-top: 8px; }
.apply-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5;
  background: #fff; border: 1px solid var(--card); border-radius: 12px; overflow: auto;
  max-height: min(70vh, calc(100vh - 200px)); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  display: flex; flex-direction: column;
}
.apply-search-error + .apply-results { top: auto; }
.apply-rows { list-style: none; margin: 0; padding: 0; }
.apply-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 0; padding: 14px 20px; cursor: pointer; min-height: 44px;
}
.apply-row:hover { background: #FAFAFA; }
.apply-row-inert { cursor: default; }
.apply-row-inert:hover { background: #fff; }
.apply-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.apply-row-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.apply-row-name u { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.apply-row-sub { font-size: 13px; color: var(--grey); }
.apply-row-recent { font-size: 13px; color: var(--grey); font-style: italic; }
.apply-row-arrow { color: var(--light); font-size: 16px; flex: none; }
.apply-pill-claimed { flex: none; font-size: 11px; color: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.apply-row-last { position: sticky; bottom: 0; background: var(--box); border-top: 1px solid var(--card); padding: 16px 20px; font-size: 15px; }
.apply-row-last:hover { background: #EDEDED; }
.apply-row-last strong { font-weight: 600; }
@media (max-width: 639px) { .apply-row-last-1::after { content: ""; display: block; } .apply-row-last .apply-row-text { display: block; } }
.apply-row-last .apply-row-text { display: block; }
.apply-nomatch { padding: 18px 20px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.apply-nomatch .apply-btn { margin-top: 10px; }
/* Phones: once the search has focus or text, the two lines give way (the wordmark keeps its width), so
   the results have the room; with text they stay away after a tap on a row, so nothing shifts under it. */
@media (max-width: 639px) {
  body.apply-search-focus .apply-hero-lines, body.apply-search-focus .apply-hero-applied,
  body.apply-typing .apply-hero-lines, body.apply-typing .apply-hero-applied { display: none; }
  body.apply-search-focus .apply-landing, body.apply-typing .apply-landing { padding-top: 9.25px; }
  body.apply-search-focus .apply-piccoli, body.apply-typing .apply-piccoli { margin-bottom: 0; }
  body.apply-search-focus .apply-find, body.apply-typing .apply-find { margin-top: 16.06px; }
}
@media (min-width: 640px) { .apply-landing { padding-top: 0; } }
@media (min-width: 900px) { .apply-main { max-width: 512px; } }

/* ── Step screens (S03-S13) ── */
.apply-step { padding-top: 13px; }
/* From 640 px the card is centred between the header and the window's foot (walls-apply.js centreStep), never closer than 24 px. */
@media (min-width: 640px) { .apply-step { padding-top: 24px; } }
.apply-lockup { display: inline-block; font-size: 25.5px; letter-spacing: -0.045em; margin: 0 0 12.5px -0.041em; }
@media (min-width: 640px) { .apply-lockup { margin-bottom: 16.5px; } }
.apply-card { border: 1px solid var(--card); border-radius: 12px; padding: 20px; background: #fff; }
.apply-centred .apply-card { text-align: center; }
.apply-top { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; margin: -10px -10px 14px -12px; min-height: 44px; }
.apply-back {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--grey); font-size: 22px; line-height: 1;
}
.apply-back-space { width: 44px; }
.apply-bars { display: flex; gap: 6px; justify-content: center; }
.apply-bar { width: 18px; height: 3px; border-radius: 2px; background: var(--off-bg); }
.apply-bar.is-on { background: var(--ink); }
.apply-step-name { font-size: 15px; color: var(--grey); text-align: right; padding-right: 10px; }

.apply-heading { margin: 0 0 6px; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; outline: none; }
.apply-sub { font-size: 13px; color: var(--grey); line-height: 1.5; }
.apply-sub strong, .apply-sub .apply-strong { color: var(--ink); font-weight: 600; }
.apply-eyebrow { font-size: 15px; color: var(--grey); margin-bottom: 2px; }
.apply-note { font-size: 13px; color: var(--grey); text-align: center; line-height: 1.5; margin-top: 4px; }
.apply-note a { color: inherit; }
.apply-error { color: var(--error); font-size: 13px; margin-top: 10px; }
.apply-notice { font-size: 13px; color: var(--ink); background: var(--box); border-radius: 12px; padding: 12px 14px; margin-top: 16px; }

/* S03 */
.apply-shows { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--divider); }
.apply-shows li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.apply-show-title { font-size: 15px; font-weight: 600; }
.apply-show-line { font-size: 13px; color: var(--grey); }
.apply-more { font-size: 13px; color: var(--grey); margin-top: 12px; }

/* Buttons */
.apply-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 20px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ink); background: var(--ink); color: #fff !important;
  font-size: 15px; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 150ms ease, color 150ms ease;
}
.apply-btn .apply-w { color: inherit; }
.apply-arrow { font-size: 16px; font-weight: 600; }
.apply-btn[aria-disabled="true"], .apply-btn:disabled { background: var(--off-bg); border-color: var(--off-bg); color: var(--off-ink) !important; cursor: default; }
.apply-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.apply-btn-secondary { background: #fff; color: var(--ink) !important; border-color: var(--line); margin-top: 12px; }
.apply-sub + .apply-btn { margin-top: 24px; }
.apply-btn-secondary + .apply-btn-secondary { margin-top: 12px; }
.apply-btn-outline-black { border: 1.5px solid var(--ink); }
.apply-btn-black { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.apply-btn-small { width: auto; min-height: 40px; padding: 8px 16px; font-size: 14px; margin-top: 12px; }
.apply-btn-grow { height: auto; }
.apply-btn-grow .apply-btn-label { overflow-wrap: anywhere; }
.apply-btn-icon { width: 20px; height: 20px; flex: none; }
.apply-textlink {
  display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 0; background: none; border: 0;
  color: var(--grey); font-size: 15px; text-align: center; cursor: pointer;
}
.apply-textlink[aria-disabled="true"] { color: var(--off-ink); opacity: 0.6; cursor: default; }
.apply-underline { display: inline-block; width: auto; text-align: left; color: var(--ink); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; margin: 0; min-height: 0; }
.apply-inline-link { display: inline; width: auto; padding: 0; min-height: 0; margin: 0; font-size: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.apply-or { display: flex; align-items: center; gap: 14px; color: var(--light); font-size: 12px; margin: 16px 0 4px; }
.apply-or::before, .apply-or::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.apply-terms { font-size: 13px; color: var(--grey); text-align: center; margin-top: 6px; }
.apply-terms a { color: var(--grey); text-underline-offset: 3px; }
.apply-terms a .apply-w { color: var(--grey); }

/* Fields */
.apply-fields { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.apply-field { display: flex; flex-direction: column; gap: 8px; }
.apply-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.apply-label-note { font-weight: 400; color: var(--grey); }
.apply-input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: box-shadow 150ms ease, border-color 150ms ease;
  -webkit-appearance: none; appearance: none;
}
.apply-input::placeholder { color: var(--placeholder); font-size: 15px; opacity: 1; }
.apply-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--divider); }
.apply-input:disabled { background: #FAFAFA; color: var(--off-ink); }
.apply-textarea { min-height: 112px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.apply-affix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: box-shadow 150ms ease, border-color 150ms ease; }
.apply-affix:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--divider); }
.apply-affix .apply-input { border: 0; box-shadow: none; min-width: 0; }
.apply-affix .apply-input:focus { box-shadow: none; }
.apply-prefix { padding-left: 14px; color: var(--grey); font-size: 15px; }
.apply-prefix + .apply-input { padding-left: 6px; }
.apply-suffix { padding-right: 14px; color: var(--grey); font-size: 15px; }
.apply-hint { font-size: 12px; color: var(--grey); line-height: 1.45; }
.apply-hint.is-error, .apply-field-error { color: var(--error); font-size: 12px; }
.apply-field.is-invalid .apply-input, .apply-affix.is-invalid { border-color: var(--error); }
.apply-counter { font-size: 12px; color: var(--grey); text-align: right; }
.apply-warn { color: var(--ink); }
.apply-centre { text-align: center; }

/* S04 proof and consent */
.apply-prove { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.apply-greybox { background: var(--box); border-radius: 12px; padding: 14px; font-size: 13px; line-height: 1.55; text-align: left; }
.apply-greybox strong { font-weight: 600; }
.apply-masked-line { font-size: 15px; font-weight: 600; margin-top: 6px !important; }
.apply-consent { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; margin-top: 20px; font-size: 13px; line-height: 1.5; }
.apply-consent label { cursor: pointer; padding-top: 1px; }
.apply-consent.is-invalid .apply-check { border-color: var(--error); }
.apply-consent-privacy { grid-column: 2; justify-self: start; color: var(--grey) !important; text-underline-offset: 3px; padding: 6px 0; }
.apply-check {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--light); border-radius: 4px;
  background: #fff; cursor: pointer; position: relative; flex: none;
}
/* The tick's hit area is its own box and its whole label beside it (label for). */
.apply-check:checked { background: var(--ink); border-color: var(--ink); }
.apply-check:checked::after { content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* S06 */
.apply-digits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 22px; }
.apply-digit {
  width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: 0;
  font: inherit; font-size: 20px; font-weight: 600; color: var(--code); outline: none; background: #fff;
}
.apply-digit:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--divider); }
.apply-digits.is-wrong .apply-digit { border-color: var(--error); }
.apply-code-help { margin-top: 8px; }
.apply-code-help a { color: var(--ink); }

/* S13 */
.apply-codebox { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-top: 22px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.apply-code { font-size: 20px; font-weight: 600; color: var(--code); letter-spacing: 0.02em; user-select: all; }
.apply-code-copy { font-weight: 600; font-size: 13px; padding: 12px 0 12px 12px; }
.apply-waiting { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--grey); margin-top: 14px; }
.apply-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--divider); border-top-color: var(--ink); border-radius: 50%; animation: apply-spin 0.9s linear infinite; }
@keyframes apply-spin { to { transform: rotate(360deg); } }
.apply-verified { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: 13px; }
.apply-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); position: relative; margin-top: 1px; }
.apply-tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* S07 */
.apply-segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.apply-seg {
  min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px; color: var(--ink);
  transition: background-color 150ms ease, color 150ms ease;
}
.apply-seg[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.apply-seg:disabled { opacity: 0.5; cursor: default; }
.apply-bids .apply-seg { font-size: 14px; }

/* S08 */
.apply-part { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--divider); }
.apply-part-heading { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.apply-rule { font-size: 13px; color: var(--ink); margin-top: 4px !important; }
.apply-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 180px; margin-top: 16px;
  border: 1px dashed var(--line); border-radius: 12px; background: #FAFAFA; cursor: pointer; padding: 16px; overflow: hidden;
}
.apply-drop.is-over { border-color: var(--ink); background: var(--box); }
.apply-drop:disabled { cursor: default; opacity: 0.5; }
.apply-drop-title { font-size: 14px; font-weight: 600; }
.apply-drop-hint { font-size: 12px; color: var(--grey); max-width: 260px; }
.apply-progress { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 3px; background: var(--divider); border-radius: 2px; overflow: hidden; }
.apply-progress-bar { display: block; height: 100%; width: 0; background: var(--ink); transition: width 150ms linear; }
.apply-preview { position: relative; margin-top: 16px; border-radius: 12px; overflow: hidden; background: var(--box); }
.apply-preview img { display: block; width: 100%; height: 180px; object-fit: cover; }
.apply-replace {
  position: absolute; right: 12px; bottom: 12px; min-height: 32px; padding: 4px 14px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.92); font-size: 13px; font-weight: 600; cursor: pointer;
}
.apply-replace::before { content: ""; position: absolute; inset: -6px; }
.apply-size { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.apply-places { list-style: none; margin: -2px 0 0; padding: 4px; border: 1px solid var(--card); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
.apply-place { display: block; width: 100%; min-height: 44px; text-align: left; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font-size: 15px; cursor: pointer; }
.apply-place:hover, .apply-place:focus { background: var(--box); }
.apply-part2.is-locked { opacity: 0.3; pointer-events: none; }
.apply-tiles { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.apply-tile {
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 8px; border: 0; padding: 0;
  background: var(--box); overflow: hidden; cursor: pointer;
}
.apply-tile img { width: 100%; height: 100%; object-fit: cover; }
.apply-tile.is-open { box-shadow: 0 0 0 2px var(--ink); }
.apply-tile-add { background: #fff; border: 1px dashed var(--line); color: var(--grey); font-size: 22px; }
.apply-tiles + .apply-counter { margin-top: 6px; }
.apply-tile-detail { margin-top: 12px; padding: 14px; border: 1px solid var(--card); border-radius: 12px; display: flex; flex-direction: column; gap: 14px; }
.apply-tile-detail .apply-btn { align-self: flex-start; margin-top: 0; }
.apply-part2 .apply-btn-outline-black { margin-top: 16px; }
.apply-part2 .apply-hint.apply-centre { margin-top: 8px; }
.apply-pdfs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.apply-pdf { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--card); border-radius: 12px; }
.apply-pdf-icon { flex: none; width: 40px; height: 48px; border-radius: 6px; background: var(--box); color: var(--grey); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.apply-pdf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.apply-pdf-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.apply-pdf-row { font-size: 13px; color: var(--grey); }
.apply-pdf-remove { flex: none; width: 44px; height: 44px; margin: -8px -8px -8px 0; border: 0; background: none; color: var(--light); font-size: 20px; cursor: pointer; }
.apply-saved { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 12px 14px; background: var(--box); border-radius: 12px; font-size: 13px; }
.apply-saved-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--saved); margin-top: 6px; }
.apply-btn.is-locked { opacity: 0.3; }

/* S09 */
.apply-eye-wrap { display: flex; justify-content: center; margin: 8px 0 24px; }
.apply-eye { width: 94px; height: auto; aspect-ratio: 720 / 406; object-fit: contain; display: block; }
.apply-task { margin-top: 20px; }
.apply-task p + p { margin-top: 2px; }
.apply-centred .apply-sub { text-align: center; }
.apply-centred .apply-heading { text-align: center; }

/* S10's withdraw and its confirm step */
.apply-withdraw .apply-textlink { margin-top: 0; }
.apply-btn-danger { color: var(--error) !important; border-color: var(--error); }

/* S10, S12: the work card, the timeline and the checklist */
.apply-workcard { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px; border: 1px solid var(--card); border-radius: 12px; }
.apply-work-thumb { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--box); display: block; }
.apply-work-title { font-size: 15px; font-weight: 600; }
.apply-work-line { font-size: 13px; color: var(--grey); }
.apply-timeline { list-style: none; margin: 22px 0 0; padding: 0; }
.apply-tl { position: relative; display: grid; grid-template-columns: 20px 1fr; column-gap: 14px; padding-bottom: 20px; }
.apply-tl:last-child { padding-bottom: 0; }
.apply-tl::before { content: ""; position: absolute; left: 9px; top: 24px; bottom: 2px; width: 2px; background: var(--divider); }
.apply-tl:last-child::before { display: none; }
.apply-tl-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: #fff; position: relative; margin-top: 1px; }
.apply-tl.is-done .apply-tl-dot { background: var(--ink); border-color: var(--ink); }
.apply-tl.is-done .apply-tl-dot::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.apply-tl.is-current .apply-tl-dot { border-color: var(--ink); }
.apply-tl.is-current .apply-tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.apply-tl-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.apply-tl.is-todo .apply-tl-title { color: var(--light); font-weight: 500; }
.apply-tl-text { font-size: 13px; color: var(--grey); }
.apply-tl .apply-underline { padding: 6px 0; }
.apply-checklist .apply-tl { padding-bottom: 16px; }
.apply-days { font-size: 13px; color: var(--grey); text-align: center; margin-top: 14px; }

/* Reduced motion: no transitions, and the spinner holds still. */
@media (prefers-reduced-motion: reduce) {
  .apply *, .apply *::before, .apply *::after { transition: none !important; animation: none !important; }
}
