/* ==========================================================================
   Qasem Workers — components on top of the shared QasemOS style.css
   ========================================================================== */
:root {
  --ok: #138a3c; --ok-bg: #e5f5ea;
  --info: #1d4ed8; --info-bg: #e8efff;
  --warn: #b45309; --warn-bg: #fdf3e3;
  --bad: #c0262d; --bad-bg: #fdeaea;
  --side-w: 264px;
}

.w-full { width: 100%; }
.block { display: block; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.t-right { text-align: right; }
.narrow { max-width: 720px; }
.narrow-wide { max-width: 980px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.js .no-js-only { display: none; }
.link-sm { font-size: .88rem; font-weight: 700; color: var(--brand-600); display: inline-flex; align-items: center; gap: .35em; }
.link-sm:hover { color: var(--brand-800); text-decoration: underline; }
.link-sm .icon { width: 16px; height: 16px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .28em .7em; border-radius: 999px; font-size: .75rem; font-weight: 750; line-height: 1.2; white-space: nowrap; background: var(--brand-100); color: var(--brand-700); }
.badge .icon { width: 13px; height: 13px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-muted { background: #f0edf4; color: var(--muted); }
.badge-brand { background: var(--brand-100); color: var(--brand-700); }

/* ---------- Compact hero ---------- */
.page-hero.compact { padding: clamp(36px, 5vw, 60px) 0 clamp(40px, 5vw, 64px); }
.page-hero.compact h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.page-hero.compact .breadcrumb { margin-bottom: 18px; }
.page-hero .glance { animation: none; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-stats > div { padding: 22px 18px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); text-align: center; }
.hero-stats strong { display: flex; justify-content: center; color: #fff; font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.hero-stats strong .icon { width: 34px; height: 34px; color: #4fd18b; }
.hero-stats span { display: block; margin-top: 8px; font-size: .85rem; color: #c3b2d4; }

/* ---------- Catalogue ---------- */
.catalogue { padding-top: 40px; }
.catalogue-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters-panel { position: sticky; top: 96px; display: grid; gap: 16px; }
.filter-form { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.filter-form .field { gap: 5px; }
.filter-form select, .filter-form input[type=search] { padding: .65em .9em; font-size: .92rem; }
.fp-head { display: flex; justify-content: space-between; align-items: center; }
.fp-head strong { display: inline-flex; gap: .5em; align-items: center; color: var(--ink); }
.fp-head .icon { color: var(--brand-500); }
.fp-help { padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(140deg, var(--brand-100), #fff); border: 1px solid var(--brand-100); }
.fp-help strong { color: var(--ink); }
.fp-help p { color: var(--muted); font-size: .9rem; margin: 4px 0 12px; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 2.4em !important; }
.input-icon.right input { padding-left: 1em !important; padding-right: 3em !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; translate: 0 -50%; border: 0; background: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { background: var(--brand-50); color: var(--brand-700); }

.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: .92rem; color: var(--ink); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #ddd5e6; transition: background .25s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch input:checked + .track { background: var(--brand-600); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--brand-300); outline-offset: 2px; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-bar p { color: var(--muted); }
.results-bar strong { color: var(--ink); }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.sort-form select { padding: .55em .9em; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 650; }

.worker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.worker-grid.three { grid-template-columns: repeat(3, 1fr); }
.worker-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.worker-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.wc-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #8d55c0 0%, transparent 55%), linear-gradient(135deg, var(--brand-700), var(--brand-900)); }
.wc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .8s var(--ease); }
.worker-card:hover .wc-media img { transform: scale(1.05); }
.wc-avatar { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: #fff; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.3); transition: transform .5s var(--ease); }
.worker-card:hover .wc-avatar { transform: scale(1.08); }
.wc-avatar.lg { width: 140px; height: 140px; font-size: 3rem; }
.wc-ref { position: absolute; top: 12px; left: 12px; padding: .3em .75em; border-radius: 999px; background: rgba(18, 6, 28, .72); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .04em; backdrop-filter: blur(6px); }
.wc-ref.static { position: static; display: inline-block; background: var(--brand-100); color: var(--brand-700); }
.wc-media .badge { position: absolute; top: 12px; right: 12px; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.wc-verified { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: .3em .7em .3em .5em; border-radius: 999px; background: #fff; color: var(--ok); font-size: .74rem; font-weight: 800; }
.wc-verified .icon { width: 15px; height: 15px; }
.wc-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; flex: 1; }
.wc-head { display: flex; justify-content: space-between; gap: 8px 10px; align-items: flex-start; flex-wrap: wrap; }
.wc-head > div { min-width: 0; }
.wc-head h3 { font-size: 1.15rem; }
.wc-nat { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; font-weight: 600; margin-top: 4px; }
.wc-nat .icon { width: 15px; height: 15px; color: var(--brand-500); }
.wc-role { flex: none; font-size: .74rem; font-weight: 750; padding: .3em .7em; border-radius: 8px; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.wc-facts { display: grid; gap: 7px; margin: 0; }
.wc-facts > div { display: flex; justify-content: space-between; gap: 12px; font-size: .87rem; }
.wc-facts dt { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.wc-facts dt .icon { width: 15px; height: 15px; }
.wc-facts dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.wc-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-skills span { font-size: .75rem; font-weight: 650; padding: .3em .7em; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.wc-skills .more { background: var(--brand-100); border-color: var(--brand-100); color: var(--brand-700); }
.wc-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 4px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.pager a:hover { border-color: var(--brand-300); }
.pager a[aria-current] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.empty { text-align: center; padding: 56px 24px; border-radius: var(--radius-lg); border: 1.5px dashed var(--brand-200); background: #fff; }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--brand-100); color: var(--brand-600); margin-bottom: 16px; }
.empty-icon .icon { width: 34px; height: 34px; }
.empty h2 { font-size: 1.35rem; }
.empty p { color: var(--muted); max-width: 460px; margin: 8px auto 20px; }
.empty-sm { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 10px 0; }
.empty-sm .icon { color: var(--ok); }
.how-strip { background: linear-gradient(180deg, #fff, var(--brand-50)); padding-top: clamp(56px, 7vw, 90px); }

/* ---------- Profile ---------- */
.profile-section { padding-top: 0; margin-top: -36px; position: relative; z-index: 2; }
.profile-layout { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.profile-card { position: sticky; top: 96px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.pc-media { position: relative; aspect-ratio: 1 / .95; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #8d55c0 0%, transparent 55%), linear-gradient(135deg, var(--brand-700), var(--brand-900)); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.pc-media .badge { position: absolute; top: 14px; right: 14px; font-size: .82rem; }
.pc-body { padding: 22px; display: grid; gap: 12px; }
.pc-body h1 { font-size: 1.7rem; }
.pc-sub { color: var(--muted); font-weight: 600; margin-top: -6px; }
.pc-quick { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc-quick li { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); text-align: center; }
.pc-quick .icon { color: var(--brand-500); }
.pc-quick span { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.pc-quick strong { display: block; font-size: 1.05rem; color: var(--ink); }
.verified-box { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--ok-bg); color: #0c5c28; }
.verified-box .icon { width: 24px; height: 24px; flex: none; }
.verified-box strong { display: block; color: #0b4d22; }
.verified-box span { font-size: .85rem; }
.profile-main { display: grid; gap: 24px; min-width: 0; }
.bio-card { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bio-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bio-head h2 { font-size: 1.5rem; }
.bio-head .muted { font-size: .85rem; }
.bio-group { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-600); margin: 24px 0 12px; display: flex; align-items: center; gap: 10px; }
.bio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.bio-grid > div { padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.bio-grid dt { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.bio-grid dt .icon { width: 15px; height: 15px; color: var(--brand-400); }
.bio-grid dd { margin: 4px 0 0; font-weight: 750; color: var(--ink); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { display: inline-flex; align-items: center; gap: 6px; padding: .45em .9em; border-radius: 999px; background: var(--ok-bg); color: #0c5c28; font-weight: 700; font-size: .88rem; }
.tag-list span .icon { width: 15px; height: 15px; }
.tag-list.soft span { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.about-text { color: var(--text); line-height: 1.75; max-width: 70ch; }

/* ---------- Forms ---------- */
.form-card-head { display: flex; gap: 16px; align-items: flex-start; }
.form-card-head .service-icon { width: 52px; height: 52px; flex: none; }
.form-card-head p { color: var(--muted); margin-top: 4px; }
.form-sub { margin: 28px 0 0; font-size: 1.05rem; padding-top: 20px; border-top: 1px solid var(--line); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.field .label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.req { color: var(--bad); }
.hint { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--bad); font-size: .84rem; font-weight: 650; margin: 0; }
.field-error .icon { width: 15px; height: 15px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad) !important; background: #fffafa !important; }
.has-error .checks span { border-color: #f1b8bb; }
.checks .tick { width: 0; height: 15px; opacity: 0; transition: width .2s, opacity .2s; }
.checks input:checked + span .tick { width: 15px; opacity: 1; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--brand-50); border: 1.5px solid var(--brand-100); cursor: pointer; font-size: .92rem; }
.consent input { width: 20px; height: 20px; accent-color: var(--brand-600); margin-top: 2px; flex: none; }
.consent.has-error { border-color: #f1b8bb; background: #fffafa; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin: 16px 0; font-size: .93rem; line-height: 1.55; }
.alert > .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-error { background: var(--bad-bg); color: #8f1b20; }
.alert-ok { background: var(--ok-bg); color: #0b4d22; }
.alert-info { background: var(--info-bg); color: #1e3a8a; }
.alert-warn { background: var(--warn-bg); color: #7c3a06; }
.alert a { font-weight: 750; text-decoration: underline; }
.alert code { background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 6px; }
.dropzone { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1.5px dashed var(--brand-200); background: var(--brand-50); cursor: pointer; transition: border-color .25s, background .25s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand-500); background: var(--brand-100); }
.dropzone.filled { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-600); flex: none; overflow: hidden; }
.dz-icon img { width: 100%; height: 100%; object-fit: cover; }
.dz-text { display: grid; min-width: 0; }
.dz-text strong { color: var(--ink); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-text small { color: var(--muted); font-size: .8rem; }
.privacy-box { display: flex; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--info-bg); color: #1e3a8a; font-size: .9rem; }
.privacy-box .icon { flex: none; margin-top: 2px; }

/* Multi-step application */
.apply-section { padding-top: 40px; }
.apply-form { padding: clamp(22px, 4vw, 40px); }
.stepper { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 700; color: var(--muted); cursor: default; }
.js .stepper li.reachable { cursor: pointer; }
.stepper .sn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg); border: 1.5px solid var(--line); font-size: .82rem; transition: all .35s var(--ease); }
.stepper li.current { color: var(--ink); }
.stepper li.current .sn { background: var(--brand-700); border-color: var(--brand-700); color: #fff; box-shadow: 0 0 0 5px var(--brand-100); }
.stepper li.done .sn { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.has-error .sn { background: var(--bad); border-color: var(--bad); color: #fff; }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 26px; }
.progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--brand-500), var(--ok)); border-radius: 4px; transition: width .5s var(--ease); }
.js .apply-form .step { display: none; }
.js .apply-form .step.active { display: block; animation: panelIn .5s var(--ease) both; }
.step { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.step-title { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; padding: 0; }
.step-title > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); }
.step-nav { display: flex; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-count { margin-right: auto; color: var(--muted); font-size: .88rem; font-weight: 650; }
.step-nav [data-prev] { order: -1; }
.no-js-step-nav .step-nav [data-prev], .no-js-step-nav .step-nav [data-next] { display: none; }
.exp-block { margin-top: 26px; padding: 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.exp-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.exp-head h4 { font-size: 1.02rem; }
.exp-head small { color: var(--muted); }
.exp-rows { display: grid; gap: 12px; margin-bottom: 14px; }
.exp-row { display: grid; grid-template-columns: 1.2fr .6fr 1fr 2fr auto; gap: 10px; align-items: end; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); animation: panelIn .4s var(--ease) both; }
.exp-row .field input { padding: .65em .85em; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: all .2s; flex: none; }
.icon-btn:hover { color: var(--brand-700); border-color: var(--brand-200); background: var(--brand-50); }
.icon-btn.danger:hover { color: var(--bad); border-color: #f1b8bb; background: var(--bad-bg); }
.icon-btn .icon { width: 18px; height: 18px; }

/* Done / status */
.done-section { padding: clamp(56px, 8vw, 100px) 0; background: radial-gradient(700px 400px at 50% 0%, var(--brand-100), transparent 70%); }
.done-card { text-align: center; padding: clamp(30px, 5vw, 56px); border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.done-check { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 0 0 10px var(--ok-bg); margin-bottom: 26px; animation: pop .7s var(--ease) both; }
.done-check.muted { background: var(--brand-600); box-shadow: 0 0 0 10px var(--brand-100); }
.done-check .icon { width: 40px; height: 40px; stroke-width: 3; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.done-card h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lead-dark { color: var(--muted); font-size: 1.08rem; margin: 12px auto 0; max-width: 520px; }
.ref-box { display: inline-grid; gap: 2px; margin: 26px auto; padding: 16px 32px; border-radius: 18px; background: var(--brand-50); border: 1.5px dashed var(--brand-300); }
.ref-box span { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.ref-box strong { font-size: 2rem; letter-spacing: .04em; color: var(--brand-700); }
.ref-box small { color: var(--muted); }
.mini-timeline { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 420px; text-align: left; display: grid; gap: 10px; }
.mini-timeline li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.mini-timeline span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--line); font-size: .82rem; font-weight: 800; flex: none; }
.mini-timeline li.done { color: var(--ink); }
.mini-timeline li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.mini-timeline .icon { width: 16px; height: 16px; stroke-width: 3; }
.status-card { margin-top: 24px; padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.status-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.status-head small { display: block; color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.status-head strong { display: block; font-size: 1.5rem; color: var(--ink); }
.status-head span:not(.badge) { color: var(--muted); }
.track { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.track li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .86rem; font-weight: 700; color: var(--muted); position: relative; }
.track li span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line); position: relative; z-index: 1; }
.track li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: 60%; width: 80%; height: 2px; background: var(--line); }
.track li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.track li.done::after { background: var(--ok); }
.track li.current { color: var(--ink); }
.track li.current span { border-color: var(--brand-600); color: var(--brand-700); box-shadow: 0 0 0 5px var(--brand-100); }
.track .icon { width: 17px; height: 17px; stroke-width: 3; }
.side-info .checklist li { font-weight: 600; }

/* Toasts */
.toasts { position: fixed; top: 16px; left: 50%; translate: -50% 0; z-index: 300; display: grid; gap: 10px; width: min(560px, calc(100% - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-weight: 600; color: var(--ink); animation: toastIn .5s var(--ease) both; }
.toast > .icon { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.toast-success > .icon { color: var(--ok); }
.toast-error > .icon { color: var(--bad); }
.toast-info > .icon { color: var(--info); }
.toast span { flex: 1; }
.toast-close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 6px; }
.toast-close .icon { width: 16px; height: 16px; }
.toast.hide { animation: toastOut .4s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

/* ==========================================================================
   Admin
   ========================================================================== */
body.admin { background: #f6f3f9; }
.admin-shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: var(--brand-950); color: #cbbcd9;
  background-image: radial-gradient(400px 300px at 0% 0%, rgba(116, 56, 166, .35), transparent 70%); }
.sidebar .brand { padding: 4px 8px 10px; }
.sidebar .brand img { width: 44px; }
.side-nav { display: grid; gap: 3px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 650; font-size: .94rem; color: #cbbcd9; transition: background .2s, color .2s; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a[aria-current] { background: linear-gradient(90deg, rgba(154, 99, 204, .35), rgba(154, 99, 204, .12)); color: #fff; box-shadow: inset 3px 0 0 var(--brand-300); }
.side-nav .icon { width: 19px; height: 19px; }
.side-nav span { flex: 1; }
.count-pill { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: #f59e0b; color: #1c1103; font-size: .74rem; display: grid; place-items: center; }
.side-label { margin: 16px 12px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a77a0; }
.side-site { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); font-weight: 650; font-size: .9rem; }
.side-site:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-site .icon { width: 17px; height: 17px; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 32px); background: rgba(246, 243, 249, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.side-toggle { display: none; }
.admin-search { position: relative; flex: 1; max-width: 520px; }
.admin-search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.admin-search input[type=search] { width: 100%; padding: .7em 1em .7em 2.7em; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .92rem; }
.admin-search input:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-100); }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-user .who { display: grid; line-height: 1.2; }
.admin-user .who strong { color: var(--ink); font-size: .9rem; }
.admin-user .who small { color: var(--muted); font-size: .76rem; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: .88rem; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); }
.avatar.img { object-fit: cover; background: var(--line); }
.avatar.soft { background: var(--brand-100); color: var(--brand-700); }
.avatar.soft .icon { width: 19px; height: 19px; }
.avatar.xl { width: 72px; height: 72px; border-radius: 20px; font-size: 1.5rem; }
.admin-content { padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; align-content: start; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h1 .badge { font-size: .8rem; }
.page-head .muted { margin-top: 4px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.person-head { display: flex; align-items: center; gap: 18px; }
.crumbs { font-size: .84rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.crumbs a { color: var(--brand-600); }
.crumbs a:hover { text-decoration: underline; }

.panel { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-head h2 { font-size: 1.08rem; letter-spacing: -.01em; }
.panel > .field + .field, .panel form > .field + .field { margin-top: 14px; }
.panel .field + .btn, .panel .field + .switch, .panel .switch + .hint { margin-top: 14px; }
.panel .hint + .btn { margin-top: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { position: relative; display: grid; gap: 4px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--cbg); opacity: .7; }
.stat .service-icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 10px; position: relative; z-index: 1; }
.stat strong { font-size: 2.1rem; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span:last-child { color: var(--muted); font-weight: 600; font-size: .9rem; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.dash-grid + .dash-grid { grid-template-columns: 1fr 1fr; }

.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 190px; }
.bar { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.bar > span { align-self: end; height: max(4px, var(--h)); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--brand-400), var(--brand-700)); position: relative; transform-origin: bottom; animation: grow .9s var(--ease) both; }
.bar:nth-child(n) > span { animation-delay: calc(.03s * var(--i, 1)); }
.bar b { position: absolute; top: -20px; left: 50%; translate: -50% 0; font-size: .72rem; color: var(--ink); }
.bar small { font-size: .7rem; color: var(--muted); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pipeline a { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: .92rem; margin-bottom: 6px; }
.pipeline a b { margin-left: auto; color: var(--ink); }
.pipeline a:hover { color: var(--brand-700); }
[class^="dot-"] { width: 10px; height: 10px; border-radius: 50%; }
.dot-ok, .tone-ok { background: var(--ok); } .dot-info, .tone-info { background: var(--info); } .dot-warn, .tone-warn { background: #f59e0b; } .dot-bad, .tone-bad { background: var(--bad); } .dot-muted, .tone-muted { background: #b4a9c0; } .dot-brand, .tone-brand { background: var(--brand-500); }
.meter { display: block; height: 7px; border-radius: 7px; background: #f0ebf5; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--ok)); transition: width .8s var(--ease); }
.meter.big { height: 9px; margin-bottom: 14px; }
.mini-meter { display: inline-block; width: 54px; height: 6px; border-radius: 6px; background: #f0ebf5; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.mini-meter i { display: block; height: 100%; background: var(--ok); }

.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-radius: 12px; transition: background .2s; }
.list a:hover { background: var(--brand-50); }
.li-main { display: grid; min-width: 0; flex: 1; }
.li-main strong { color: var(--ink); font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-main small, .li-side small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-side { display: grid; justify-items: end; gap: 4px; flex: none; }

.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.activity li { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.activity li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.act-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex: none; }
.act-icon .icon { width: 17px; height: 17px; }
.activity p { font-size: .9rem; }
.activity p strong { color: var(--ink); }
.activity a { color: var(--brand-600); font-weight: 650; }
.activity small { color: var(--muted); font-size: .78rem; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-line { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs-line a { padding: .5em .9em; border-radius: 10px; font-weight: 700; font-size: .88rem; color: var(--muted); transition: background .2s, color .2s; }
.tabs-line a span { font-size: .75rem; padding: 1px 7px; border-radius: 99px; background: #f0ebf5; margin-left: 4px; }
.tabs-line a:hover { color: var(--brand-700); background: var(--brand-50); }
.tabs-line a[aria-current] { background: var(--brand-800); color: #fff; }
.tabs-line a[aria-current] span { background: rgba(255,255,255,.2); }
.search-inline { position: relative; display: flex; align-items: center; gap: 8px; }
.search-inline.grow { flex: 1; max-width: 520px; }
.search-inline .icon { position: absolute; right: auto; width: 17px; height: 17px; color: var(--muted); pointer-events: none; margin-left: 12px; }
.search-inline select + .icon { position: static; margin-left: 4px; }
.search-inline input[type=search] { padding: .6em .9em .6em 2.4em; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); min-width: 240px; }
.search-inline select + .icon + input[type=search] { padding-left: .9em; }
.search-inline select { padding: .6em .8em; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 650; }

.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr:hover { background: var(--brand-50); }
.table.compact td, .table.compact th { padding: 8px 10px; }
.table small { font-size: .8rem; }
.cell-person { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-person > span { display: grid; }
.cell-person strong { color: var(--ink); }
.cell-person small { color: var(--muted); font-size: .8rem; }
.cell-person.big { align-items: center; flex-wrap: wrap; }
.cell-person.big > span { gap: 4px; }

.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.review-main { display: grid; gap: 22px; min-width: 0; }
.review-side { position: sticky; top: 84px; display: grid; gap: 18px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 18px; margin: 0; }
.kv > div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv dt { font-size: .78rem; color: var(--muted); font-weight: 650; }
.kv dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.panel .bio-group:first-of-type { margin-top: 4px; }
.private { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); }
.private .icon { width: 12px; height: 12px; }
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.doc { display: grid; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--bg); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
a.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.doc-thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #efe9f5; color: var(--brand-500); position: relative; overflow: hidden; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-thumb .icon { width: 34px; height: 34px; }
.doc-thumb b { position: absolute; bottom: 10px; font-size: .7rem; letter-spacing: .1em; }
.doc-label { display: flex; align-items: center; gap: 6px; padding: 10px 12px; font-size: .84rem; font-weight: 700; color: var(--ink); background: #fff; }
.doc-label .icon { width: 15px; height: 15px; color: var(--brand-500); }
.doc-label .end { margin-left: auto; color: var(--muted); }
.doc.missing { opacity: .6; }
.doc.missing .doc-thumb { color: var(--muted); }
.edit-panel { padding: 0; }
.edit-panel > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 750; color: var(--ink); }
.edit-panel > summary::-webkit-details-marker { display: none; }
.edit-panel > summary span { display: inline-flex; align-items: center; gap: 10px; }
.edit-panel > summary .icon { color: var(--brand-500); }
.edit-panel .chev { transition: transform .3s var(--ease); }
.edit-panel[open] .chev { transform: rotate(180deg); }
.edit-form { padding: 0 22px 22px; border-top: 1px solid var(--line); }
.edit-form .form-grid { margin-top: 18px; }
.edit-form .form-actions { justify-content: flex-end; align-items: center; gap: 18px; }

.verify-count { font-weight: 800; color: var(--brand-700); background: var(--brand-100); padding: 2px 10px; border-radius: 99px; font-size: .85rem; }
.checklist-admin { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.checklist-admin label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background .2s; font-size: .9rem; font-weight: 600; color: var(--ink); }
.checklist-admin label:hover { background: var(--brand-50); }
.checklist-admin label { position: relative; }
.checklist-admin input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.checklist-admin .cb { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #cfc4da; display: grid; place-items: center; flex: none; color: transparent; transition: all .25s var(--ease); margin-top: 1px; }
.checklist-admin .cb .icon { width: 14px; height: 14px; stroke-width: 3.2; }
.checklist-admin input:checked + .cb { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.05); }
.checklist-admin input:focus-visible + .cb { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.checklist-admin small { display: block; color: var(--ok); font-size: .76rem; font-weight: 650; margin-top: 2px; }
.req-tag { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .05em; color: var(--warn); text-transform: uppercase; margin-left: 4px; }
.decide { display: grid; gap: 12px; }
.decide .hint { margin-top: 0; }
.decide-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.decide-more summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--text); list-style: none; padding: 6px 0; }
.decide-more summary::-webkit-details-marker { display: none; }
.decide-more summary .icon { width: 18px; height: 18px; color: var(--warn); }
.decide-more.danger summary .icon { color: var(--bad); }
.decide-more form { display: grid; gap: 10px; margin-top: 10px; }
.decide-more textarea, .row-menu-pop input { width: 100%; padding: .7em .9em; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-size: .92rem; resize: vertical; }
.btn-danger { background: var(--bad); }
.btn-danger:hover { box-shadow: 0 12px 24px -10px rgba(192, 38, 45, .55); }
.switch-row { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 20px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.tips h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 10px; }
.tips h2 .icon { color: #f59e0b; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); font-size: .88rem; }
.tips strong { color: var(--ink); }
.row-menu { position: relative; display: inline-block; }
.row-menu summary { list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 240px; display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.row-menu-pop form { display: grid; gap: 8px; }
.narrow-panel { max-width: 520px; display: grid; gap: 14px; }

/* Auth */
.auth-page { min-height: 100vh; background: var(--brand-950); }
.auth-bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.auth-bg .hero-grid-bg { opacity: .3; }
.auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(440px, 100%); padding: clamp(28px, 5vw, 40px); border-radius: var(--radius-xl); background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: windowIn .8s var(--ease) both; display: grid; gap: 16px; }
.auth-card h1 { font-size: 1.8rem; margin-top: 10px; }
.auth-card .muted { margin-top: -10px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card .back { justify-self: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .review-layout, .dash-grid, .dash-grid + .dash-grid { grid-template-columns: 1fr; }
  .review-side { position: static; }
  .form-grid.three { grid-template-columns: repeat(2, 1fr); }
  .worker-grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .catalogue-layout, .profile-layout { grid-template-columns: 1fr; }
  .filters-panel, .profile-card { position: static; }
  .filter-form { grid-template-columns: 1fr 1fr; }
  .filter-form .fp-head, .filter-form .field:first-of-type, .filter-form .switch { grid-column: 1 / -1; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 120; transform: translateX(-100%); transition: transform .4s var(--ease); }
  .sidebar.open { transform: none; }
  .side-backdrop { position: fixed; inset: 0; background: rgba(18, 6, 28, .5); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .sidebar.open ~ .side-backdrop, body.side-open .side-backdrop { opacity: 1; pointer-events: auto; }
  .side-toggle { display: grid; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; place-items: center; cursor: pointer; }
  .admin-user .who { display: none; }
  .exp-row { grid-template-columns: 1fr 1fr; }
  .exp-row .wide { grid-column: 1 / -1; }
  .exp-row .icon-btn { grid-column: 2; justify-self: end; }
  .stepper .sl { display: none; }
  .stepper li { justify-content: center; }
  .hero-stats { margin-top: 8px; }
}
@media (max-width: 640px) {
  .worker-grid.three, .form-grid.three, .stat-grid { grid-template-columns: 1fr; }
  .filter-form { grid-template-columns: 1fr; }
  .wc-actions { grid-template-columns: 1fr; }
  .pc-quick { grid-template-columns: repeat(3, 1fr); }
  .admin-search { display: none; }
  .bars { gap: 3px; height: 150px; }
  .track li { font-size: .76rem; }
  .step-nav { flex-wrap: wrap; }
  .step-nav .btn { flex: 1; }
  .step-count { width: 100%; order: -2; text-align: center; margin: 0; }
  .search-inline input[type=search] { min-width: 0; width: 100%; }
  .search-inline { width: 100%; }
  .person-head { align-items: flex-start; }
  .avatar.xl { width: 56px; height: 56px; }
  .hero-stats strong { font-size: 1.7rem; }
  .ref-box strong { font-size: 1.6rem; }
}

/* ==========================================================================
   Website editor
   ========================================================================== */
.page-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.page-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, background .2s; }
.page-card:hover { border-color: var(--brand-200); background: #fff; }
.page-card .service-icon { width: 46px; height: 46px; flex: none; }
.pc-text { display: grid; min-width: 0; flex: 1; }
.pc-text strong { color: var(--ink); }
.pc-text small { color: var(--muted); font-size: .82rem; }
.pc-text small.edited { color: var(--brand-500); font-weight: 650; margin-top: 2px; }
.pc-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.badge-btn { border: 0; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 750; }
.badge-btn:hover { filter: brightness(.95); }
.order-btns { display: flex; gap: 4px; }
.order-btns .icon-btn { width: 34px; height: 34px; }
.order-btns .icon-btn:disabled { opacity: .35; cursor: default; }
.mega-icon.big { width: 64px; height: 64px; border-radius: 18px; }
.mega-icon.big .icon { width: 30px; height: 30px; }

.editor { display: grid; gap: 22px; }
.editor .panel > .field + .repeater, .editor .panel > .field + .form-grid { margin-top: 16px; }
.editor .panel > .field { max-width: 720px; }
.save-bar { position: sticky; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(45,17,68,.35); }
.save-bar.dirty { border-color: var(--brand-300); }
.save-bar.dirty .muted::before { content: "● Unsaved changes · "; color: #d97706; font-weight: 750; }
.suffix-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.suffix-input input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; box-shadow: none !important; }
.suffix-input span { display: grid; place-items: center; padding: 0 12px; background: #f0ebf5; color: var(--muted); font-weight: 650; font-size: .88rem; white-space: nowrap; }
.suffix-input:focus-within { border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-100); }
.color-input { height: 46px; padding: 4px !important; cursor: pointer; }
.icon-pick { position: relative; display: flex; align-items: center; }
.icon-pick img { position: absolute; left: 10px; width: 22px; height: 22px; pointer-events: none; }
.icon-pick input { padding-left: 40px !important; width: 100%; }

.repeater { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.rep-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.rep-head strong { color: var(--ink); font-size: .95rem; }
.rep-head small { color: var(--muted); }
.rep-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.rep-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); animation: panelIn .35s var(--ease) both; }
.rep-row.flash { animation: repFlash .6s var(--ease); }
@keyframes repFlash { from { box-shadow: 0 0 0 3px var(--brand-300); } to { box-shadow: 0 0 0 0 transparent; } }
.rep-handle { color: #c9bfd4; padding-top: 26px; }
.rep-handle .icon { width: 18px; height: 18px; }
.rep-fields { display: grid; gap: 10px; min-width: 0; }
.rep-fields.cols-2 { grid-template-columns: 1fr 1.6fr; }
.rep-fields.cols-3 { grid-template-columns: minmax(150px, .7fr) 1fr 1.6fr; }
.rep-field { display: grid; gap: 5px; min-width: 0; }
.rep-field > span:first-child { font-size: .78rem; font-weight: 700; color: var(--muted); }
.rep-field input, .rep-field textarea { width: 100%; padding: .6em .8em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); font-size: .92rem; resize: vertical; }
.rep-field input:focus, .rep-field textarea:focus { outline: none; border-color: var(--brand-400); background: #fff; box-shadow: 0 0 0 3px var(--brand-100); }
.rep-tools { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; }
.rep-tools .icon-btn { width: 32px; height: 32px; }
.rep-tools .icon-btn .icon { width: 15px; height: 15px; }
.sub-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; }
.sub-panel > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 0; cursor: pointer; font-weight: 750; color: var(--ink); }
.sub-panel > summary::-webkit-details-marker { display: none; }
.sub-panel > summary .chev { transition: transform .3s var(--ease); color: var(--brand-500); }
.sub-panel[open] > summary .chev { transform: rotate(180deg); }
.sub-panel[open] { padding-bottom: 16px; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px; border: 1.5px dashed #f1b8bb; background: #fffafa; }
.danger-zone strong { color: var(--bad); }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; }
.auth-card.wide { width: min(560px, 100%); }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: .9rem; }
.req-list li .icon { flex: none; margin-top: 2px; }
.req-list li.pass .icon { color: var(--ok); }
.req-list li.fail { background: var(--bad-bg); } .req-list li.fail .icon { color: var(--bad); }
.req-list li.warn .icon { color: var(--info); }
.req-list span { display: grid; }
.req-list small { color: var(--muted); }
@media (max-width: 960px) {
  .page-cards { grid-template-columns: 1fr; }
  .rep-fields.cols-2, .rep-fields.cols-3 { grid-template-columns: 1fr; }
  .rep-handle { display: none; }
  .rep-row { grid-template-columns: 1fr auto; }
  .danger-zone { flex-direction: column; align-items: flex-start; }
}
.field { align-content: start; }

/* ==========================================================================
   Mobile polish (workers site + admin)
   ========================================================================== */
.filter-toggle { display: none; }
@media (max-width: 960px) {
  .js .filter-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 750; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
  .filter-toggle .icon { color: var(--brand-500); }
  .filter-toggle .chev { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease); }
  .filters-open .filter-toggle .chev { transform: rotate(180deg); }
  .js .filters-panel:not(.filters-open) .filter-form, .js .filters-panel:not(.filters-open) .fp-help { display: none; }
  .filters-panel { gap: 12px; }
  .js .fp-head strong { display: none; }
  .js .fp-head { justify-content: flex-end; }
  .js .fp-head:not(:has(a)) { display: none; }
  .catalogue { padding-top: 24px; }
}
@media (max-width: 640px) {
  .wc-media { aspect-ratio: 16 / 8; }
  .pc-media { aspect-ratio: 4 / 3; }
  .profile-section { margin-top: -28px; }
  .hero-stats > div { padding: 16px 8px; }
  .hero-stats span { font-size: .78rem; }
  .bio-grid { grid-template-columns: 1fr 1fr; }

  /* Admin */
  .admin-content { padding: 18px 14px; gap: 18px; }
  .panel { padding: 18px 16px; border-radius: 18px; }
  .page-head { align-items: flex-start; }
  .page-actions { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat strong { font-size: 1.7rem; }
  .stat span:last-child { font-size: .82rem; }
  .stat .service-icon { width: 40px; height: 40px; margin-bottom: 6px; }
  .stat::after { width: 80px; height: 80px; right: -24px; top: -24px; }
  .tabs-line { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .tabs-line::-webkit-scrollbar { display: none; }
  .tabs-line a { flex: none; }

  /* Tables become stacked cards */
  .table-wrap { margin: 0; padding: 0; overflow: visible; }
  .table thead { display: none; }
  .table, .table tbody { display: block; width: 100%; }
  .table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { display: block; padding: 0; border: 0; font-size: .86rem; color: var(--muted); }
  .table td:first-child { flex: 1 1 100%; color: var(--text); font-size: .92rem; }
  .table td.t-right { margin-left: auto; }
  .table td small.block { display: inline; margin-left: 4px; }
  .table tbody tr:hover { background: none; }
  .table.compact tr { padding: 10px 0; }
  .cell-person { min-width: 0; }

  .page-cards .page-card { flex-wrap: wrap; }
  .page-card .pc-actions { width: 100%; padding-left: 60px; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr 1fr; }
  .save-bar { padding: 12px 14px; border-radius: 14px; }
  .save-bar .muted { display: none; }
  .save-bar .btn { width: 100%; }
  .rep-row { padding: 12px; }
  .person-head { gap: 12px; }
  .page-head h1 { font-size: 1.45rem; }
}

/* ==========================================================================
   Tadbeer portal (maids.qasem.ae)
   ========================================================================== */
.portal-hero { position: relative; overflow: hidden; isolation: isolate; color: #ddd0ea; padding: clamp(56px, 8vw, 96px) 0 clamp(90px, 10vw, 130px);
  background: radial-gradient(1100px 600px at 85% -10%, #4a1d6e 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #2d1144 0%, transparent 60%), var(--brand-950); }
.portal-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.portal-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; margin-top: 22px; max-width: 720px; }
.search-card { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; margin-top: 32px; padding: 8px; border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 30px 60px -24px rgba(0,0,0,.55); animation: windowIn .9s var(--ease) .15s both; }
.sc-field { position: relative; display: flex; align-items: center; }
.sc-field > .icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--brand-500); pointer-events: none; }
.sc-field select { width: 100%; height: 54px; padding: 0 14px 0 42px; border: 0; border-radius: 16px; background: var(--brand-50); font-weight: 650; color: var(--ink); appearance: none; cursor: pointer; transition: background .2s; }
.sc-field select:hover, .sc-field select:focus { background: var(--brand-100); outline: none; }
.search-card .btn { height: 54px; border-radius: 16px; padding: 0 1.6em; }
.ph-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 30px; }
.ph-stats div { display: grid; }
.ph-stats strong { color: #fff; font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ph-stats span { color: #bba9cc; font-size: .86rem; margin-top: 6px; }
.ph-visual { position: relative; min-height: 470px; }
.ph-ring { position: absolute; inset: 50% auto auto 50%; width: 300px; height: 300px; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(154,99,204,.35), transparent 65%); }
.ph-ring::before, .ph-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(193,156,230,.35); animation: spin 40s linear infinite; }
.ph-ring::after { inset: -46px; border-style: solid; border-color: rgba(255,255,255,.07); animation: none; }
.ph-ring img { width: 120px; opacity: .9; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); animation: bob 6s ease-in-out infinite; }
.float-card { position: absolute; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; width: 270px; padding: 14px; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); animation: cardFloat 7s ease-in-out infinite, windowIn .9s var(--ease) both; }
.fc-1 { top: 6%; left: 0; animation-delay: 0s, .3s; }
.fc-2 { top: 40%; right: -4%; animation-delay: -2.3s, .45s; }
.fc-3 { bottom: 4%; left: 10%; animation-delay: -4.6s, .6s; }
@keyframes cardFloat { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }
.fc-avatar { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.3rem; background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); }
.fc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fc-text { display: grid; min-width: 0; }
.fc-text strong { font-size: 1rem; }
.fc-text small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-badge { color: var(--ok); }
.fc-meta { grid-column: 2 / -1; display: flex; gap: 10px; font-size: .76rem; font-weight: 700; color: var(--muted); }
.fc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.fc-meta .icon { width: 13px; height: 13px; }
.fc-meta .ok { color: var(--ok); }
.fc-meta .ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(19,138,60,.5); animation: ping 2s infinite; }
.ph-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: .8rem; font-weight: 750; color: #fff; box-shadow: 0 14px 28px -12px rgba(0,0,0,.5); animation: bob 5s ease-in-out infinite; }
.ph-chip .icon { width: 16px; height: 16px; }
.ph-chip.c1 { top: 0; right: 6%; background: var(--green-600); }
.ph-chip.c2 { bottom: 26%; left: -4%; background: var(--brand-500); animation-delay: -2s; }
.narrow-center { max-width: 820px; text-align: center; margin-inline: auto; }
.narrow-center .hero-lead { margin-inline: auto; }
.join-hero { padding-bottom: clamp(70px, 8vw, 100px); }

/* Sponsored banner slider */
.ad-section { position: relative; z-index: 3; margin-top: -56px; }
.slider { position: relative; border-radius: 28px; overflow: hidden; background: var(--brand-900); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 5.6; }
.slider.strip { aspect-ratio: 16 / 3.4; border-radius: 22px; margin-bottom: 24px; }
.slides, .slide { position: absolute; inset: 0; }
.slide { display: block; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; color: #fff; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,6,28,.88) 0%, rgba(18,6,28,.55) 45%, rgba(18,6,28,0) 75%); }
.slide-copy { position: absolute; z-index: 2; left: clamp(20px, 5%, 56px); top: 50%; translate: 0 -50%; max-width: min(560px, 60%); display: grid; gap: 10px; justify-items: start; }
.slide.is-active .slide-copy > * { animation: panelIn .7s var(--ease) both; }
.slide.is-active .slide-copy > *:nth-child(2) { animation-delay: .08s; } .slide.is-active .slide-copy > *:nth-child(3) { animation-delay: .16s; } .slide.is-active .slide-copy > *:nth-child(4) { animation-delay: .24s; }
.slide-copy strong { font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
.slider.strip .slide-copy strong { font-size: clamp(1.1rem, 2vw, 1.6rem); }
.slide-sub { color: #e0d2ee; font-size: 1rem; }
.sponsored { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); font-size: .72rem; font-weight: 750; letter-spacing: .04em; }
.sponsored .icon { width: 13px; height: 13px; }
.slider-dots { position: absolute; z-index: 3; right: 22px; bottom: 18px; display: flex; gap: 8px; }
.slider-dots button { position: relative; width: 26px; height: 6px; border-radius: 6px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; overflow: hidden; transition: width .4s var(--ease); }
.slider-dots button.is-active { width: 46px; }
.slider-dots button i { position: absolute; inset: 0; width: 0; background: #fff; }
.slider-dots button.is-active i { animation: dotFill var(--dur, 6s) linear forwards; }
.slider.paused .slider-dots button.is-active i { animation-play-state: paused; }
@keyframes dotFill { to { width: 100%; } }
.slider-nav { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); cursor: pointer; opacity: 0; transition: opacity .3s, background .2s; }
.slider:hover .slider-nav, .slider-nav:focus-visible { opacity: 1; }
.slider-nav:hover { background: rgba(255,255,255,.3); }
.slider-nav.prev { left: 14px; } .slider-nav.next { right: 14px; }

/* Browse by job */
.role-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.role-tile { position: relative; display: grid; justify-items: start; gap: 14px; padding: 22px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); font-weight: 750; color: var(--ink); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.role-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.rt-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); transition: transform .45s var(--ease), background .3s, color .3s; }
.role-tile:hover .rt-icon { background: var(--brand-700); color: #fff; transform: rotate(-8deg) scale(1.06); }
.rt-icon .icon { width: 24px; height: 24px; }
.rt-arrow { position: absolute; top: 18px; right: 16px; width: 18px; height: 18px; color: var(--muted); opacity: 0; transform: translate(-4px, 4px); transition: all .35s var(--ease); }
.role-tile:hover .rt-arrow { opacity: 1; transform: none; color: var(--brand-600); }
.featured-maids { background: linear-gradient(180deg, var(--brand-50), #fff); }
.worker-grid.four { grid-template-columns: repeat(4, 1fr); }
.wc-center { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); margin: -4px 0 0; }
.wc-center .icon { width: 14px; height: 14px; color: var(--brand-400); }
.wc-center a, .wc-center strong { color: var(--brand-700); font-weight: 750; }
.wc-center a:hover { text-decoration: underline; }
.verified-dot { display: inline-flex; color: var(--ok); margin-left: 2px; }
.verified-dot .icon { width: 15px; height: 15px; }
.via { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-600); font-weight: 700; }
.via .icon { width: 12px; height: 12px; }

/* Nationalities */
.nat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nat-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.nat-chip:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow); }
.nat-chip .flag { font-size: 1.25rem; line-height: 1; }
.nat-chip b { min-width: 26px; padding: 2px 8px; border-radius: 99px; background: var(--brand-100); color: var(--brand-700); font-size: .78rem; text-align: center; }

/* Centers */
.centers-section { background: var(--brand-50); }
.center-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.center-card { display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.center-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.cc-logo, .cp-logo { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); color: #fff; font-weight: 800; font-size: 1.2rem; box-shadow: 0 10px 20px -12px rgba(65,22,96,.6); }
.cc-logo img, .cp-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.cc-body { display: grid; gap: 4px; }
.cc-body strong { display: flex; align-items: center; gap: 4px; font-size: 1.05rem; }
.cc-body small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .84rem; }
.cc-body small .icon { width: 14px; height: 14px; }
.cc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .86rem; color: var(--muted); }
.cc-foot b { color: var(--ink); }
.center-search { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.center-search .input-icon { flex: 1 1 280px; }
.center-search input, .center-search select { width: 100%; padding: .8em 1em; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; }
.center-search select { width: auto; min-width: 180px; }
.center-hero { position: relative; overflow: hidden; isolation: isolate; height: 260px; padding-top: 28px;
  background: radial-gradient(800px 400px at 80% 0%, #5a2585 0%, transparent 60%), var(--brand-950); }
.center-hero.has-cover { background: linear-gradient(180deg, rgba(18,6,28,.55), rgba(18,6,28,.75)), var(--cover) center / cover no-repeat; }
.center-hero .breadcrumb a, .center-hero .breadcrumb span { color: #e2d6ee; }
.center-profile { padding-top: 0; margin-top: -110px; position: relative; z-index: 2; }
.cp-card { display: flex; align-items: center; gap: 24px; padding: 26px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; }
.cp-card .cp-logo { width: 104px; height: 104px; border-radius: 26px; font-size: 2rem; border: 4px solid #fff; }
.cp-main { flex: 1 1 320px; min-width: 0; }
.cp-main h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cp-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--muted); font-size: .92rem; }
.cp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cp-meta .icon { width: 16px; height: 16px; color: var(--brand-500); }
.cp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-about { display: grid; grid-template-columns: 1fr auto; gap: 24px; margin-top: 22px; padding: 26px; border-radius: 22px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.cp-about h2 { font-size: 1.15rem; margin-bottom: 8px; }
.cp-about p { color: var(--text); line-height: 1.75; max-width: 75ch; }
.cp-address { display: flex; gap: 10px; align-items: flex-start; max-width: 320px; }
.cp-address .icon { color: var(--brand-500); margin-top: 3px; }
.cp-address span { display: grid; color: var(--muted); font-size: .92rem; }
.cp-address strong { color: var(--ink); }

/* Partner band & dashboard mock */
.partner-band { background: var(--brand-950); color: #cdbfdb; overflow: hidden; isolation: isolate; }
.partner-band .section-title { color: #fff; }
.partner-band .section-lead { color: #b6a3c9; }
.partner-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.partner-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.partner-points li { display: flex; gap: 14px; align-items: flex-start; }
.partner-points li > .icon { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(193,156,230,.14); color: var(--brand-300); }
.partner-points span { display: grid; color: #b6a3c9; font-size: .94rem; }
.partner-points strong { color: #fff; font-size: 1rem; }
.dash-mock { border-radius: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); backdrop-filter: blur(12px); }
.dm-bar { display: flex; align-items: center; gap: 14px; color: #cbb9de; font-size: .82rem; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.dm-stats div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); }
.dm-stats b { display: block; color: #fff; font-size: 1.4rem; }
.dm-stats small { color: #a993bf; font-size: .74rem; }
.dm-rows { display: grid; gap: 8px; }
.dm-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); color: #e2d6ee; font-size: .86rem; font-weight: 650; animation: panelIn .6s var(--ease) both; animation-delay: calc(.3s + var(--i) * .15s); }
.dm-row span:nth-child(2) { flex: 1; }
.dm-av { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); }
.dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dual-card { display: grid; gap: 10px; padding: 30px; border-radius: 26px; background: linear-gradient(140deg, var(--brand-100), #fff); border: 1px solid var(--brand-100); transition: transform .45s var(--ease), box-shadow .45s; }
.dual-card.green { background: linear-gradient(140deg, var(--green-100), #fff); border-color: #cfead9; }
.dual-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.dual-card strong { font-size: 1.35rem; color: var(--ink); }
.dual-card > span:not(.service-icon) { color: var(--muted); }
.dual-card em { font-style: normal; font-weight: 750; color: var(--brand-700); display: inline-flex; align-items: center; gap: 6px; }
.dual-card.green em { color: var(--green-600); }
.dual-card em .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.dual-card:hover em .icon { transform: translateX(4px); }

/* Plans */
.why-grid.light .why-card { background: #fff; border-color: var(--line); }
.why-grid.light .why-card h3 { color: var(--ink); }
.why-grid.light .why-card p { color: var(--muted); }
.why-grid.light .service-icon { background: var(--brand-100); color: var(--brand-700); }
.why-grid.light { grid-template-columns: repeat(3, 1fr); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 26px; border-radius: 26px; background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan-card.highlight { background: linear-gradient(160deg, var(--brand-800), var(--brand-600)); border-color: transparent; color: #e2d6ee; box-shadow: 0 30px 60px -24px rgba(65,22,96,.6); }
.plan-card.highlight h3, .plan-card.highlight .plan-price { color: #fff; }
.plan-card.highlight .plan-period, .plan-card.highlight .plan-price small { color: var(--brand-200); }
.plan-card.highlight li .icon { color: #7fd49b; }
.plan-card.highlight .btn { background: #fff; color: var(--brand-800); }
.plan-flag { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: #f59e0b; color: #1c1103; font-size: .72rem; font-weight: 800; }
.plan-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); margin-bottom: 10px; }
.plan-card.highlight .plan-icon { background: rgba(255,255,255,.14); color: #fff; }
.plan-card h3 { font-size: 1.3rem; }
.plan-period { color: var(--muted); font-size: .86rem; font-weight: 650; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 10px 0 4px; }
.plan-price small { font-size: .9rem; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.plan-card ul { list-style: none; margin: 10px 0 22px; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.plan-card li { display: flex; gap: 10px; align-items: flex-start; }
.plan-card li .icon { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 3px; stroke-width: 2.6; }
.plan-card .btn, .plan-card form { margin-top: auto; }
.plan-grid.compact .plan-card { padding: 22px 20px; }
.plan-grid.compact .plan-price { font-size: 1.6rem; }
.plan-pick, .placement-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.plan-option { position: relative; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option > span { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); transition: all .25s var(--ease); }
.plan-option strong { color: var(--ink); }
.plan-option small { color: var(--muted); font-size: .82rem; }
.plan-option b { color: var(--brand-700); font-size: .95rem; margin-top: 4px; }
.plan-option input:checked + span { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 4px var(--brand-100); }
.plan-option input:focus-visible + span { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.ad-options { display: grid; gap: 12px; }
.ad-option { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.ad-option div { flex: 1; display: grid; }
.ad-option strong { color: var(--ink); }
.ad-option small { color: var(--muted); font-size: .84rem; }
.ad-option > b { color: var(--brand-700); font-size: 1.05rem; white-space: nowrap; }
.ad-option > b small { font-weight: 600; }
.ad-preview { flex: none; width: 78px; height: 56px; border-radius: 10px; background: var(--brand-50); border: 1px solid var(--line); padding: 6px; display: block; }
.ad-preview i { display: block; border-radius: 5px; background: linear-gradient(90deg, var(--brand-600), var(--brand-300)); }
.ad-preview.hero i { height: 60%; }
.ad-preview.catalogue i { height: 22%; margin-top: 30%; }
.placement-pick .ad-preview { margin-bottom: 8px; }

/* ---------- Center dashboard ---------- */
.side-center { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.06); }
.sc-logo { width: 40px; height: 40px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--brand-500); color: #fff; font-weight: 800; font-size: .85rem; }
.sc-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.side-center > span:last-child { display: grid; min-width: 0; }
.side-center strong { color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-center small { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: #b6a3c9; }
.top-add { margin-left: 0; }
.onboard-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.onboard-steps li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-weight: 650; font-size: .9rem; }
.onboard-steps li > span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-size: .8rem; font-weight: 800; }
.onboard-steps li.done { background: var(--ok-bg); border-color: #cfead9; }
.onboard-steps li.done > span { background: var(--ok); border-color: var(--ok); color: #fff; }
.onboard-steps li.done a { color: #0b4d22; }
.onboard-steps .icon { width: 14px; height: 14px; stroke-width: 3; }
.plan-now { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.plan-now strong { font-size: 1.3rem; color: var(--ink); }
.usage { font-size: 1.1rem; color: var(--muted); margin: 2px 0 8px; }
.usage b { font-size: 1.8rem; color: var(--ink); }
.avail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.avail-btn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .86rem; cursor: pointer; transition: all .2s; color: var(--text); }
.avail-btn i { width: 9px; height: 9px; border-radius: 50%; background: #b4a9c0; }
.avail-btn.tone-ok i { background: var(--ok); } .avail-btn.tone-info i { background: var(--info); } .avail-btn.tone-warn i { background: #f59e0b; }
.avail-btn:hover:not(:disabled) { border-color: var(--brand-300); background: var(--brand-50); }
.avail-btn.on { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); cursor: default; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stats div { text-align: center; }
.mini-stats b { display: block; font-size: 1.6rem; color: var(--ink); }
.mini-stats small { color: var(--muted); }
.doc-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.brand-preview { position: relative; height: 150px; border-radius: 18px; margin-bottom: 52px; background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); background-image: var(--cover, none); background-size: cover; background-position: center; }
.brand-preview .cp-logo { position: absolute; left: 22px; bottom: -40px; width: 86px; height: 86px; border-radius: 22px; border: 4px solid #fff; font-size: 1.6rem; }
.invoice-list { display: grid; gap: 10px; }
.invoice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.inv-main { display: grid; flex: 1 1 200px; }
.inv-main strong { color: var(--ink); }
.inv-main span { color: var(--muted); font-size: .86rem; }
.inv-amount { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.inv-proof { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 100%; }
.inv-proof input[type=text] { flex: 1 1 200px; padding: .6em .9em; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn.filled { border-color: var(--ok); color: var(--ok); }
.estimate { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--brand-50); color: var(--brand-800); font-weight: 650; }
.banner-list { display: grid; gap: 10px; }
.banner-row { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; flex-wrap: wrap; }
a.banner-row:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.br-thumb { width: 120px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: var(--brand-100); }
.br-thumb img { width: 100%; height: 100%; object-fit: cover; }
.br-stats { display: flex; gap: 16px; font-size: .78rem; color: var(--muted); }
.br-stats span { display: grid; text-align: center; }
.br-stats b { color: var(--ink); font-size: 1rem; }
.br-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.banner-preview { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 5.6; margin-bottom: 20px; background: var(--brand-900); }
.banner-preview.catalogue { aspect-ratio: 16 / 3.4; }
.banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.banner-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,6,28,.85), transparent 70%); }
.banner-preview span { position: absolute; z-index: 1; left: 22px; top: 50%; translate: 0 -50%; color: #e0d2ee; display: grid; gap: 4px; max-width: 60%; }
.banner-preview strong { color: #fff; font-size: 1.4rem; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.plan-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.plan-edit.live { border-color: #cfead9; box-shadow: 0 0 0 3px var(--ok-bg); }
.plan-edit .form-grid { margin-top: 0; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat-grid.three .stat strong { font-size: 1.6rem; }

@media (max-width: 1200px) {
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .worker-grid.four, .center-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .portal-hero-inner, .partner-inner { grid-template-columns: 1fr; }
  .ph-visual { min-height: 400px; max-width: 560px; margin-inline: auto; width: 100%; }
  .worker-grid.four, .center-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid.light { grid-template-columns: repeat(2, 1fr); }
  .onboard-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .search-card { grid-template-columns: 1fr; }
  .slider { aspect-ratio: 4 / 3.2; border-radius: 22px; }
  .slider.strip { aspect-ratio: 16 / 7; }
  .slide::after { background: linear-gradient(0deg, rgba(18,6,28,.92) 0%, rgba(18,6,28,.5) 55%, rgba(18,6,28,.05) 100%); }
  .slide-copy { top: auto; bottom: 46px; translate: none; max-width: calc(100% - 40px); }
  .slider-dots { left: 20px; right: auto; bottom: 18px; }
  .slider-nav { display: none; }
  .ad-section { margin-top: -40px; }
  .cp-about { grid-template-columns: 1fr; }
  .dual-cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ph-visual { min-height: 360px; }
  .float-card { width: 238px; padding: 12px; }
  .fc-2 { right: 0; }
  .ph-ring { width: 220px; height: 220px; }
  .ph-chip.c2 { left: 0; }
  .ph-stats { gap: 12px 26px; }
  .ph-stats strong { font-size: 1.6rem; }
  .role-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .role-tile { padding: 16px; gap: 10px; font-size: .92rem; }
  .rt-icon { width: 44px; height: 44px; }
  .worker-grid.four, .center-grid { grid-template-columns: 1fr; }
  .why-grid.light { grid-template-columns: 1fr; }
  .center-hero { height: 200px; }
  .center-profile { margin-top: -80px; }
  .cp-card { padding: 20px; gap: 16px; }
  .cp-card .cp-logo { width: 80px; height: 80px; }
  .cp-actions { width: 100%; }
  .cp-actions .btn { flex: 1; }
  .center-search select { width: 100%; }
  .onboard-steps { grid-template-columns: 1fr; }
  .stat-grid.three { grid-template-columns: 1fr; }
  .avail-grid { grid-template-columns: 1fr 1fr; }
  .br-stats { order: 3; width: 100%; justify-content: space-around; }
  .br-thumb { width: 90px; height: 44px; }
  .plan-admin-grid { grid-template-columns: 1fr; }
  .top-add { padding: .55em .9em; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card, .ph-chip, .ph-ring img, .ph-ring::before { animation: none !important; }
}

/* Portal refinements */
.ph-ring img { height: auto; }
@media (min-width: 761px) { .search-card { grid-template-columns: .9fr 1.1fr 1.05fr auto; } }
.sc-field select { padding-left: 38px; font-size: .94rem; text-overflow: ellipsis; }
.wc-center { display: block; line-height: 1.5; }
.wc-center > .icon { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.wc-center .verified-dot { vertical-align: -3px; }
@media (max-width: 640px) {
  .featured-maids .worker-grid.four, .centers-section .center-grid {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none; }
  .featured-maids .worker-grid.four::-webkit-scrollbar, .centers-section .center-grid::-webkit-scrollbar { display: none; }
  .featured-maids .worker-card, .centers-section .center-card { scroll-snap-align: start; }
  .ph-visual { min-height: 330px; }
}
@media (max-width: 760px) {
  .slider.strip { aspect-ratio: 16 / 10; }
  .slider.strip .slide-copy { bottom: 40px; gap: 8px; }
  .slider.strip .slide-copy strong { font-size: 1.15rem; }
}
.listed-by { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s, background .2s; }
a.listed-by:hover { border-color: var(--brand-300); background: var(--brand-50); }
.listed-by > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.listed-by small { color: var(--muted); font-size: .76rem; }
.listed-by strong { font-size: .96rem; }
.listed-by .end { color: var(--muted); width: 18px; height: 18px; }

/* ---------- Compact worker cards (details live on the profile) ---------- */
.worker-grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 16px; }
.worker-grid.four { grid-template-columns: repeat(5, 1fr); }
.worker-grid.three { grid-template-columns: repeat(4, 1fr); }
.worker-card.compact { border-radius: 20px; }
.worker-card.compact .wc-media { aspect-ratio: 5 / 4; }
.worker-card.compact .wc-avatar { width: 72px; height: 72px; font-size: 1.6rem; }
.worker-card.compact .wc-media .badge { top: 10px; right: 10px; font-size: .7rem; }
.worker-card.compact .wc-ref { top: auto; bottom: 10px; left: 10px; font-size: .68rem; }
.worker-card.compact .wc-body { gap: 6px; padding: 14px 14px 14px; }
.worker-card.compact h3 { display: flex; align-items: center; gap: 4px; font-size: 1.05rem; min-width: 0; }
.worker-card.compact h3 a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker-card.compact h3 a:hover { color: var(--brand-700); }
.worker-card.compact .wc-nat { margin: 0; font-size: .84rem; }
.wc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.wc-tags .wc-role { font-size: .72rem; padding: .25em .6em; }
.wc-exp { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 750; padding: .25em .6em; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.wc-exp .icon { width: 12px; height: 12px; color: var(--brand-500); }
.worker-card.compact .wc-center { margin: 0; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worker-card.compact .wc-actions { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding-top: 6px; }
.worker-card.compact .wc-actions .btn { padding: .55em .8em; font-size: .84rem; }
.wc-book { width: 38px; padding: 0 !important; }
.wc-book .icon { width: 17px; height: 17px; }
@media (max-width: 1200px) { .worker-grid.four { grid-template-columns: repeat(4, 1fr); } .worker-grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1080px) { .worker-grid.four, .worker-grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .worker-grid, .worker-grid.four, .worker-grid.three { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 640px) {
  .worker-card.compact .wc-body { padding: 12px 10px; }
  .worker-card.compact h3 { font-size: .98rem; }
  .worker-card.compact .wc-actions .btn { font-size: .8rem; padding: .5em .5em; }
  .wc-book { width: 34px; }
  .featured-maids .worker-grid.four { grid-auto-columns: 46%; }
}
.wc-tags { flex-wrap: nowrap; min-width: 0; }
.wc-tags .wc-role { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-exp { flex: none; white-space: nowrap; }
.worker-card.compact .wc-media { aspect-ratio: 16 / 11; }
.wc-tags .wc-role { flex: 0 1 auto; }
@media (max-width: 640px) { .exp-word { display: none; } .wc-tags { gap: 4px; } }

/* ---------- Admin → eLearning ---------- */
.lmsa-mods { display: grid; gap: 14px; }
.lmsa-mod { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--bg); }
.lmsa-mod-head { display: flex; align-items: center; gap: 10px; }
.lmsa-num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-700); color: #fff; font-weight: 800; font-size: .85rem; }
.lmsa-rename { flex: 1; display: flex; gap: 6px; min-width: 0; }
.lmsa-rename input { flex: 1; min-width: 0; font: inherit; font-weight: 800; color: var(--ink); padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; }
.lmsa-rename input:hover, .lmsa-rename input:focus { border-color: var(--brand-200); background: #fff; outline: 0; }
.lmsa-tools { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.lmsa-tools form { margin: 0; }
.lmsa-tools .icon-btn { width: 32px; height: 32px; }
.lmsa-lessons { list-style: none; margin: 10px 0; padding: 0 0 0 40px; display: grid; gap: 4px; }
.lmsa-lessons li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.lmsa-lessons li > .icon { width: 17px; height: 17px; color: var(--brand-500); flex: none; }
.lmsa-lessons li > a { flex: 1; font-weight: 600; min-width: 0; }
.lmsa-lessons li > a:hover { color: var(--brand-600); }
.lmsa-add { margin-left: 40px; }
.lmsa-newmod { display: flex; gap: 8px; margin-top: 16px; }
.lmsa-newmod input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.lmsa-editor { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: start; }
.lmsa-editor textarea { width: 100%; min-height: 480px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; font: 400 .95rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.lmsa-preview { min-height: 480px; padding: 22px; border: 1px dashed var(--brand-200); border-radius: 14px; background: #fff; }
.lmsa-help { position: sticky; top: 90px; padding: 16px; border-radius: 14px; background: var(--brand-50); border: 1px solid var(--brand-100); font-size: .88rem; }
.lmsa-help h3 { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin-bottom: 10px; }
.lmsa-help h3 .icon { width: 18px; height: 18px; color: var(--brand-500); }
.lmsa-help dl { display: grid; gap: 8px; margin: 0 0 12px; }
.lmsa-help dl div { display: grid; gap: 2px; }
.lmsa-help dt code { font-size: .82rem; padding: 2px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--brand-100); }
.lmsa-help dd { margin: 0; color: var(--muted); }
.lmsa-q.is-new { border-style: dashed; background: var(--bg); }
.lmsa-del { color: #b42318; font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.lmsa-cats input:not([type=color]):not([type=checkbox]) { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; min-width: 0; }
.lmsa-cats .icon-pick input { width: 150px; }
/* lesson text (shared with learn.<domain> preview) */
.prose-lx { color: var(--text); font-size: 1rem; line-height: 1.7; }
.prose-lx > * + * { margin-top: .9em; }
.prose-lx h2 { font-size: 1.3rem; margin-top: 1.5em; }
.prose-lx h3 { font-size: 1.1rem; margin-top: 1.3em; }
.prose-lx ul, .prose-lx ol { padding-left: 1.3em; display: grid; gap: .35em; }
.prose-lx .lx-tip { display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #f0dfaf; }
.prose-lx .lx-tip p { margin: 0; }
@media (max-width: 900px) {
  .lmsa-editor { grid-template-columns: 1fr; }
  .lmsa-help { position: static; }
  .lmsa-lessons { padding-left: 0; }
  .lmsa-add { margin-left: 0; }
  .lmsa-lessons li { flex-wrap: wrap; }
}

/* ---------- responsive polish (audit) ---------- */
.page-card > :not(.pc-actions) { min-width: 0; }
@media (max-width: 1180px) {
  .page-cards .page-card { flex-wrap: wrap; }
  .page-card .pc-actions { width: 100%; padding-left: 60px; }
}
@media (max-width: 640px) {
  .table td:first-child, .cell-person > span { min-width: 0; }
  .cell-person small, .cell-person a { overflow-wrap: anywhere; }
  .field, .form-grid > * { min-width: 0; }
  .lmsa-mod { padding: 12px 10px; }
  .lmsa-mod-head { flex-wrap: wrap; }
  .lmsa-rename { flex: 1 1 calc(100% - 44px); }
  .lmsa-mod-head .lmsa-tools { margin-left: 40px; }
  .lmsa-lessons li > a { flex: 1 1 60%; }
  .lmsa-lessons li .lmsa-tools { width: 100%; justify-content: flex-end; }
  .lmsa-newmod { flex-direction: column; }
}
@media (max-width: 380px) {
  .worker-card.compact .wc-actions .btn { padding: .55em .55em; font-size: .8rem; letter-spacing: -.01em; }
}
/* bigger invisible tap area around slider dots */
.slider-dots button { overflow: visible; }
.slider-dots button::before { content: ""; position: absolute; inset: -14px -4px; }
.slider-dots button i { border-radius: inherit; overflow: hidden; }
/* very small phones (320–380px): slimmer buttons so labels never get cut */
@media (max-width: 380px) {
  .btn { padding-left: .95em; padding-right: .95em; gap: .45em; }
  .btn-sm { padding: .55em .7em; font-size: .84rem; }
  .wc-actions .btn { padding: .55em .5em; font-size: .8rem; }
  .cp-actions .btn { padding-left: .7em; padding-right: .7em; }
}
@media (max-width: 380px) {
  .worker-card.compact .wc-actions { grid-template-columns: 1fr; }
  .worker-card.compact .wc-actions .wc-book { display: none; }
  .step-nav .icon-arrow { display: none; }
  .cp-actions .btn { flex: 1 1 auto; }
}
/* portal search bar with the custom dropdowns */
.search-card > * { min-width: 0; }
.sc-field > .icon { z-index: 2; }
.sc-field .sel { flex: 1; min-width: 0; }
.sc-field .sel-btn { border-color: transparent; box-shadow: none; }
.sc-field .sel-btn:hover, .sc-field .sel.open .sel-btn { background-color: var(--brand-100) !important; }
.sc-field .sel-btn { gap: 6px; }
