/* tiwizi.app/join: the site's world (styles.css tokens) narrowed to a task.
   White surfaces on the cool canvas, ink for weight, citrus for the moment
   something is done. No shadows, no glass, no gradients. */

/* ---------- Icons (the app's set) ---------- */
.ic-camera { --i: url("/join/icons/camera.svg"); }
.ic-image { --i: url("/join/icons/image.svg"); }
.ic-person { --i: url("/join/icons/person.svg"); }
.ic-lock { --i: url("/join/icons/lock.svg"); }
.ic-info { --i: url("/join/icons/info.svg"); }
.ic-copy { --i: url("/join/icons/copy.svg"); }
.ic-exit { --i: url("/join/icons/exit.svg"); }
.ic-refresh { --i: url("/join/icons/refresh.svg"); }
.ic-time { --i: url("/join/icons/time.svg"); }
.ic-check-circle { --i: url("/join/icons/check-circle.svg"); }
.ic-edit { --i: url("/join/icons/edit.svg"); }
.ic-warning { --i: url("/join/icons/warning.svg"); }
.ic-home { --i: url("/join/icons/home.svg"); }
.ic-cleaning { --i: url("/join/icons/cleaning.svg"); }
.ic-electrical { --i: url("/join/icons/electrical.svg"); }
.ic-plumbing { --i: url("/join/icons/plumbing.svg"); }
.ic-painting { --i: url("/join/icons/painting.svg"); }
.ic-carpentry { --i: url("/join/icons/carpentry.svg"); }
.ic-beauty { --i: url("/join/icons/beauty.svg"); }
.ic-lessons { --i: url("/join/icons/lessons.svg"); }
.ic-photography { --i: url("/join/icons/photography.svg"); }
.ic-other, .ic-service { --i: url("/join/icons/service.svg"); }
.ic-instagram { --i: url("/join/icons/instagram.svg"); }
.ic-facebook { --i: url("/join/icons/facebook.svg"); }
.ic-tiktok { --i: url("/join/icons/tiktok.svg"); }
.ic-youtube { --i: url("/join/icons/youtube.svg"); }
.ic-x { --i: url("/join/icons/x.svg"); }
.ic-store { --i: url("/join/icons/store.svg"); }
.ic-pin { --i: url("/join/icons/pin.svg"); }
.ic-add { --i: url("/join/icons/add.svg"); }
.ic-back { --i: url("/join/icons/back.svg"); }
.ic-whatsapp { --i: url("/join/icons/whatsapp.svg"); }
.ic-aim { --i: url("/join/icons/aim.svg"); }
.ic-idcard { --i: url("/join/icons/idcard.svg"); }
.ic-close { --i: url("/join/icons/close.svg"); }
.ic-check { --i: url("/join/icons/check.svg"); }
.ic-google { --i: url("/join/icons/google.svg"); }
/* Back points against the reading direction; the row chevron with it. */
html[dir="rtl"] .ic-back.dir { transform: scaleX(-1); }
.ic-back.chev { transform: scaleX(-1); }
html[dir="rtl"] .ic-back.chev { transform: none; }

/* ---------- Page ---------- */
body.join { background: var(--canvas); display: flex; flex-direction: column; min-height: 100dvh; }
body.join main { flex: 1; }
.join .site-header { background: var(--canvas); border-bottom-color: var(--line); }
.join .header-row { gap: 12px; }
.account-bar { margin-inline-start: auto; display: flex; align-items: center; }
.join .language { margin-inline-start: 0; }
.logout {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 6px;
  border-radius: 99px; background: var(--surface); font: 600 15px/1 var(--font); color: var(--ink);
  transition: background-color .2s, color .2s;
}
html[dir="rtl"] .logout { padding: 0 6px 0 16px; }
.logout .me { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--sunken); }
.logout > .ic-person { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--sunken); }
.logout > .ic-exit { font-size: 17px; color: var(--ink-3); }
.logout:hover { background: var(--ink); color: #fff; }
.logout:hover > .ic-exit { color: var(--citrus); }

.join-wrap { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.join-footer { padding-block: 28px 36px; }
.noscript { padding: 20px; border-radius: 20px; background: var(--surface); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-3); }
input, textarea { caret-color: var(--ink); }
::placeholder { color: var(--ink-3); opacity: 1; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1:focus { outline: none; }
#screen > * { animation: rise .42s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 99px;
  font: 700 16px/1.2 var(--font); text-align: center;
  transition: background-color .2s, color .2s, transform .3s var(--ease), opacity .2s;
}
.btn .ic { font-size: 19px; }
.btn-block { width: 100%; min-height: 58px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; gap: 7px; }
.btn-sm .ic { font-size: 16px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark .ic { color: var(--citrus); }
.btn-dark:hover:not(:disabled) { transform: translateY(-1px); background: #24262a; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--sunken); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; background: var(--surface); font-size: 20px; transition: background-color .2s;
}
.icon-btn:hover:not(:disabled) { background: var(--sunken); }
.icon-btn.sm { width: 36px; height: 36px; font-size: 17px; }
.icon-btn:disabled { opacity: .45; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--sunken); border-top-color: var(--ink); animation: spin .8s linear infinite; flex: none; }
.spinner.lg { width: 30px; height: 30px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.intro h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.25; }
html[lang="en"] .intro h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.04; }
.intro h1 .line { display: block; }
.intro mark { background: var(--ink); color: var(--citrus); padding: 0 .16em; border-radius: .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.intro .lede { max-width: 44ch; margin-top: 22px; }
.signin {
  display: grid; gap: 14px; justify-items: start; margin-top: 32px; padding: 24px;
  max-width: 460px; border-radius: var(--radius); background: var(--surface);
}
.google-slot { width: 100%; max-width: 400px; min-height: 44px; }
.signing { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; }
.fine { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
html[lang="en"] .fine { line-height: 1.55; }
.how { display: grid; gap: 18px; margin-top: 36px; max-width: 460px; }
.how li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.how-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--citrus); font: 800 17px/1 var(--latin); }
.how b { display: block; font-size: 17px; line-height: 1.5; }
.how p { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.intro-photo { position: relative; border-radius: 34px; overflow: hidden; background: var(--sunken); aspect-ratio: 4 / 5; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }
.intro-chips { position: absolute; inset-inline-start: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 99px; background: var(--surface); font-size: 15px; font-weight: 700; line-height: 1.2; }
html[dir="rtl"] .chip { padding: 8px 8px 8px 16px; }
.chip .ic { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--citrus); }

/* ---------- Flow panels ---------- */
.panel { width: min(640px, 100%); margin-inline: auto; }
.title { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.3; }
html[lang="en"] .title { font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.body { margin-top: 10px; font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.sub { font-size: 21px; line-height: 1.4; }
.who { margin-top: 28px; font-size: 14px; text-align: center; overflow-wrap: anywhere; }
.flow-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; min-height: 44px; }
.flow-label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.segments { display: flex; gap: 4px; flex-basis: 100%; }
.segments span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s var(--ease); }
.segments span.on { background: var(--ink); }
.step-content { margin-top: 28px; }
.step-body > .form-error { margin-top: 14px; }

.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; border-radius: 20px; background: var(--surface); font-size: 15px; line-height: 1.7; color: var(--ink-2); }
html[lang="en"] .notice { line-height: 1.5; }
.notice > .ic { font-size: 20px; margin-top: 2px; color: var(--ink); }
.notice.info { background: var(--citrus-soft); color: var(--ink); }
.notice.danger { background: var(--orange-soft); color: var(--ink); }
.notice.danger > .ic { color: var(--orange); }
.notice b { display: block; font-size: 15px; }
.notice p { color: var(--ink); }
.form-error { color: #b42318; font-size: 15px; font-weight: 600; line-height: 1.6; }

/* Sticky so the next step is always one tap away on a phone. */
.action-bar { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 10px; margin-top: 32px; padding: 14px 0 max(14px, env(safe-area-inset-bottom)); background: var(--canvas); }
.busy-label:empty { display: none; }
.busy-label { font-size: 14px; color: var(--ink-2); }
.progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--p, 0%); background: var(--ink); border-radius: inherit; transition: width .2s; }
.progress.indeterminate span { width: 35%; animation: slide 1.1s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
html[dir="rtl"] .progress.indeterminate span { animation-name: slide-rtl; }
@keyframes slide-rtl { from { transform: translateX(120%); } to { transform: translateX(-320%); } }

/* ---------- Role ---------- */
.role-list { display: grid; gap: 12px; margin-top: 28px; }
.role-option {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) 20px; gap: 16px; align-items: center;
  padding: 18px; border-radius: 24px; background: var(--surface); border: 1px solid transparent; text-align: start;
  transition: border-color .2s, transform .3s var(--ease);
}
.role-option:hover { border-color: var(--ink); transform: translateY(-1px); }
.role-tile { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; font-size: 28px; }
.role-store .role-tile { background: var(--citrus-soft); }
.role-provider .role-tile { background: var(--ink); color: var(--citrus); }
.role-text b { display: block; font-size: 18px; line-height: 1.4; }
.role-text span { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.role-option > .chev { font-size: 20px; color: var(--ink-3); }

/* ---------- Fields ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; }
.input {
  width: 100%; min-height: 58px; padding: 0 18px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--ink); font: 400 18px/1.6 var(--font);
  transition: border-color .2s;
}
textarea.input { padding: 14px 18px; min-height: 180px; resize: vertical; line-height: 1.8; }
html[lang="en"] textarea.input { line-height: 1.55; }
.input:hover { border-color: #c9ccd2; }
.input:focus { outline: none; border-color: var(--ink); }
.input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.field.invalid .input, .input[aria-invalid="true"] { border-color: #b42318; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.counter { font: 500 13px/1.6 var(--latin); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.counter.end { margin-top: 10px; text-align: end; }
.hint { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.hint .ic { margin-top: 4px; flex: none; }
.hint.center { justify-content: center; text-align: center; }
.phone-row { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.field.invalid .phone-row { border-color: #b42318; }
.phone-row:focus-within { border-color: var(--ink); }
.prefix { display: flex; align-items: center; gap: 8px; padding: 0 14px 0 16px; border-inline-end: 1px solid var(--line); font: 600 17px/1 var(--latin); }
.flag { font-size: 20px; }
.phone-input { border: 0; border-radius: 0; font-family: var(--latin); letter-spacing: .02em; }
.phone-input:focus, .phone-input:focus-visible { outline: none; }

/* Photo */
.avatar-field { display: grid; justify-items: center; gap: 16px; }
.avatar-pick {
  position: relative; display: grid; place-items: center; width: 148px; height: 148px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s;
}
.avatar-pick.square { border-radius: 36px; }
.avatar-pick > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-pick .placeholder { font-size: 52px; color: var(--ink-3); }
.avatar-pick.invalid { border: 2px solid #b42318; }
.avatar-pick:hover { border-color: var(--ink); }
.avatar-badge { position: absolute; inset-inline-end: 4px; bottom: 4px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--citrus); font-size: 18px; border: 3px solid var(--canvas); }
.avatar-pick.square .avatar-badge { inset-inline-end: -8px; bottom: -8px; }

/* Cover */
.cover-field { display: grid; gap: 14px; justify-items: start; }
.cover-pick { width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1.5px dashed #c3c7ce; transition: border-color .2s; }
.cover-pick.filled { border: 1px solid var(--line); }
.cover-pick.invalid { border-color: #b42318; }
.cover-pick:hover { border-color: var(--ink); }
.cover-pick > img { width: 100%; height: 100%; object-fit: cover; }
.cover-pick .empty { display: grid; place-items: center; gap: 12px; align-content: center; height: 100%; }
.empty-tile { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--citrus-soft); font-size: 26px; }

/* Place */
.place-field { display: grid; gap: 12px; }
.search-wrap { position: relative; }
.search-wrap > .ic { position: absolute; inset-inline-start: 18px; top: 50%; translate: 0 -50%; font-size: 19px; color: var(--ink-3); pointer-events: none; }
.search-wrap .search { padding-inline-start: 48px; }
.search::-webkit-search-cancel-button { cursor: pointer; }
.place-list { display: grid; gap: 4px; max-height: min(52vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); scrollbar-width: thin; }
.place-list.invalid { border-color: #b42318; }
.place { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 16px; text-align: start; transition: background-color .15s; }
.place:hover { background: var(--canvas); }
.place-name { flex: 1; min-width: 0; line-height: 1.35; }
.place-name b { display: block; font-size: 17px; }
.place-name small { display: block; font-size: 13px; color: var(--ink-3); }
.place-km { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.place.selected { background: var(--ink); color: #fff; }
.place.selected small, .place.selected .place-km { color: rgba(255, 255, 255, .72); }
.place .tick { font-size: 20px; color: var(--citrus); }
.empty-note { padding: 8px 4px; }
.attribution { font-size: 12px; color: var(--ink-3); }

/* Category */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: start; transition: border-color .2s, background-color .2s, color .2s; }
html[dir="rtl"] .cat { padding: 10px 10px 10px 14px; }
.cat:hover { border-color: var(--ink); }
.cat-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none; color: var(--trade); background: color-mix(in srgb, var(--trade) 12%, #fff); font-size: 21px; }
.cat-name { font-size: 16px; font-weight: 700; line-height: 1.35; }
.cat.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat.on .cat-tile { background: var(--citrus); color: var(--ink); }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.work-grid.invalid .work-add { border-color: #b42318; }
.work, .work-add { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--sunken); }
.work img { width: 100%; height: 100%; object-fit: cover; }
.work-remove { position: absolute; top: 6px; inset-inline-end: 6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); font-size: 15px; }
.work-remove:hover { background: var(--ink); color: #fff; }
.work-add { display: grid; place-items: center; align-content: center; gap: 8px; background: var(--surface); border: 1.5px dashed #c3c7ce; font-size: 14px; font-weight: 700; transition: border-color .2s; }
.work-add .ic { font-size: 26px; }
.work-add:hover { border-color: var(--ink); }

/* Location */
.location-field { display: grid; gap: 14px; }
.map-box { position: relative; height: clamp(300px, 48vh, 440px); border-radius: 22px; overflow: hidden; background: var(--sunken); border: 1px solid var(--line); isolation: isolate; }
.map-box.invalid { border: 2px solid #b42318; }
.map-box .leaflet-container { font: 13px/1.4 var(--latin); background: var(--sunken); }
.map-pin { position: absolute; z-index: 500; left: 50%; top: 50%; translate: -50% -100%; font-size: 44px; color: var(--ink); pointer-events: none; }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 8px; height: 8px; translate: -50% 0; border-radius: 50%; background: var(--ink); border: 2px solid #fff; }
.map-box.failed::before { content: ""; position: absolute; inset: 0; background: var(--sunken); }
.map-state { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.map-state .ic { margin-top: 3px; font-size: 19px; flex: none; }
.map-state.done { color: var(--success); font-weight: 700; }
.map-state.bad { color: #b42318; font-weight: 600; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-actions .btn { flex: 1 1 180px; }
.leaflet-control-zoom a { color: var(--ink) !important; }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: 14px !important; overflow: hidden; }
.leaflet-control-attribution { font-size: 11px; }

/* Documents */
.docs { display: grid; gap: 14px; }
.doc-list { display: grid; gap: 10px; }
.docs .sub { margin-top: 12px; }
.doc { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.doc.invalid { border-color: #b42318; }
.doc-thumb { display: grid; place-items: center; width: 96px; height: 66px; border-radius: 14px; overflow: hidden; background: var(--canvas); font-size: 26px; color: var(--ink-3); }
.doc-thumb.round { width: 72px; height: 72px; border-radius: 50%; justify-self: center; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-text { min-width: 0; display: grid; gap: 2px; }
.doc-text b { font-size: 16px; line-height: 1.4; }
.doc-text > span { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.doc-progress { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.doc-progress span { display: block; height: 100%; width: var(--p, 0%); background: var(--ink); }
.doc .ok { color: var(--success); }

/* ---------- Overview ---------- */
.ov-list { display: grid; gap: 8px; margin-top: 26px; }
.ov-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid transparent; text-align: start; transition: border-color .2s; }
.ov-row:hover { border-color: var(--ink); }
.ov-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--citrus); font-size: 17px; }
.ov-row.bad .ov-icon { background: var(--orange-soft); color: var(--orange); }
.ov-text { min-width: 0; display: grid; gap: 2px; }
.ov-text b { font-size: 16px; line-height: 1.4; }
.ov-value { font-size: 14px; color: var(--ink-2); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-value .missing { color: #b42318; font-weight: 600; white-space: normal; }
.ov-edit { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.mini-avatar, .mini-cover { display: inline-block; vertical-align: middle; overflow: hidden; background: var(--sunken); }
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; }
.mini-cover { width: 52px; height: 29px; border-radius: 6px; }
.mini-avatar img, .mini-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Status ---------- */
.status-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 700; }
.badge .ic { font-size: 17px; }
.badge.pending { background: var(--citrus); }
.badge.accepted { background: var(--ink); color: #fff; }
.badge.accepted .ic { color: var(--citrus); }
.badge.rejected { background: var(--orange-soft); color: #9a3412; }
.badge.draft { background: var(--sunken); }
.timeline { display: grid; gap: 0; margin-top: 28px; }
.timeline li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 17px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::before { background: var(--ink); }
.tl-dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 16px; color: var(--ink-3); }
.timeline .done .tl-dot { background: var(--ink); border-color: var(--ink); color: var(--citrus); }
.timeline .now .tl-dot { background: var(--citrus); border-color: var(--citrus); color: var(--ink); }
.timeline b { display: block; font-size: 16px; line-height: 2.2; }
.timeline .muted { display: block; font-size: 14px; margin-top: -4px; }
.status-view .notice + .btn, .status-view .reason + .btn { margin-top: 24px; }

.profile-card { margin-top: 28px; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pc-cover { aspect-ratio: 16 / 7; background: var(--sunken); }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.pc-main { display: flex; gap: 14px; align-items: center; padding: 18px 20px 0; }
.pc-avatar { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 50%; overflow: hidden; background: var(--sunken); font-size: 26px; color: var(--ink-3); }
.pc-avatar.square { border-radius: 18px; }
.pc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pc-text { min-width: 0; display: grid; }
.pc-text b { font-size: 19px; line-height: 1.45; overflow-wrap: anywhere; }
.pc-text .muted { font-size: 14px; line-height: 1.6; }
.id-row { display: flex; align-items: center; gap: 10px; margin: 16px 20px 20px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--canvas); }
html[dir="rtl"] .id-row { padding: 10px 16px 10px 10px; }
.id-row .muted { font-size: 14px; }
.id { margin-inline-start: auto; font: 700 17px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.center-state .id-row { margin: 20px auto 0; max-width: 360px; }

/* Accepted: the one loud moment. */
.stamp { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 22px; border-radius: 28px; background: var(--citrus); font-size: 40px; animation: stamp .7s var(--ease) both .1s; }
@keyframes stamp { from { transform: scale(.6) rotate(-12deg); opacity: 0; } }
.launch { margin-top: 28px; padding: 24px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.launch .sub { color: var(--citrus); }
.launch > p { margin-top: 8px; color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.75; }
html[lang="en"] .launch > p { line-height: 1.55; }
.launch .muted { color: rgba(255, 255, 255, .64); }
.launch-note { display: flex; gap: 12px; margin: 18px 0 0; padding: 16px 18px; border-radius: 18px; background: rgba(214, 248, 76, .12); }
.launch-note .ic { margin-top: 4px; font-size: 20px; color: var(--citrus); flex: none; }
.launch-note p { font-size: 17px; font-weight: 700; line-height: 1.75; color: #fff; }
html[lang="en"] .launch-note p { line-height: 1.5; }
.google-used { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 18px !important; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px !important; }
.google-used bdi { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.social { margin-top: 28px; }
.social-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; transition: border-color .2s, background-color .2s, color .2s; }
html[dir="rtl"] .social-link { padding: 0 14px 0 18px; }
.social-link .ic { font-size: 20px; }
.social-link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Message states */
.center-state { display: grid; justify-items: center; gap: 14px; text-align: center; padding-block: 24px; }
.center-state .body { margin-inline: auto; }
.center-state .btn { min-width: 220px; }
.state-tile { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--surface); font-size: 32px; }

/* ---------- Cover framing dialog ---------- */
.sheet { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.sheet::backdrop { background: rgba(14, 15, 17, .62); }
.crop { display: grid; gap: 14px; padding: 22px; }
.crop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crop-head h2 { font-size: 22px; }
.crop-head .icon-btn { background: var(--canvas); }
.crop-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: var(--ink); touch-action: none; cursor: grab; user-select: none; }
.crop-frame:active { cursor: grabbing; }
.crop-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; outline: 2px solid rgba(255, 255, 255, .9); outline-offset: -2px; pointer-events: none; }
.crop-img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.zoom-row { display: flex; align-items: center; gap: 12px; color: var(--ink-3); }
.zoom-row .small { font-size: 14px; }
.zoom-row .ic:last-child { font-size: 22px; }
.zoom-row input { flex: 1; accent-color: var(--ink); }
.crop-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.join-toast { position: fixed; z-index: 60; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 20px; padding: 12px 20px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, translate .35s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.join-toast.show { opacity: 1; translate: -50% 0; }
.join-toast:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  #screen > *, .stamp { animation: none; }
  .progress.indeterminate span { animation-duration: 3s; }
}

@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; }
  .intro-photo { aspect-ratio: 16 / 10; order: -1; border-radius: 28px; }
  .intro-photo img { object-position: 50% 40%; }
  .signin, .how { max-width: none; }
}

@media (max-width: 720px) {
  .join .header-row { gap: 8px; }
  .account-bar { margin-inline-start: auto; }
  .join .language { margin-inline-start: 0; }
  .logout-text { display: none; }
  .logout, html[dir="rtl"] .logout { padding: 0 12px 0 6px; gap: 8px; }
  html[dir="rtl"] .logout { padding: 0 6px 0 12px; }
  .join-wrap { padding-top: 20px; }
  .intro h1 { font-size: clamp(34px, 10vw, 46px); }
  html[lang="en"] .intro h1 { font-size: clamp(32px, 9vw, 42px); }
  .intro .lede { font-size: 17px; }
  .signin { padding: 18px; margin-top: 24px; }
  .intro-photo { aspect-ratio: 4 / 3; }
  .body { font-size: 17px; }
  .flow-head { margin-bottom: 18px; }
  .step-content { margin-top: 22px; }
  .doc { grid-template-columns: 76px minmax(0, 1fr); }
  .doc-thumb { width: 76px; height: 56px; }
  .doc-thumb.round { width: 60px; height: 60px; }
  .doc > .btn { grid-column: 1 / -1; width: 100%; }
  .launch { padding: 20px; }
  .crop { padding: 16px; }
  .sheet { width: calc(100% - 20px); }
  .status-top .btn-sm span { display: none; }
}
@media (max-width: 380px) {
  .cats { grid-template-columns: 1fr; }
}
