/* Zapros Partner. Shared visual identity for the cabinet and phone sign-in. */
:root {
  --green: #4e7053;
  --green-dark: #324c38;
  --green-soft: #e7ecdf;
  --ink: #22251f;
  --muted: #777a6f;
  --line: #e1e3d8;
  --surface: #fffefb;
  --soft: #f6f5ef;
  --danger: #b45648;
  --warning: #976d32;
  --blue: #526d79;
  --shadow: 0 8px 28px rgba(45, 55, 36, .045);
  --shell-ink: var(--ink);
  --shell-muted: var(--muted);
  --shell-line: var(--line);
  --shell-green: var(--green);
  --shell-green-dark: var(--green-dark);
  --shell-green-soft: var(--green-soft);
  --sidebar-width: 254px;
  --sidebar-collapsed: 86px;
}

html { color-scheme: light; scroll-padding-top: 90px; }
body { font-family: Manrope, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--soft); }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #7e986e; outline-offset: 4px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(78,112,83,.1); }
::selection { background: #d7e1c9; color: var(--ink); }
.button, .btn { min-height: 48px; padding: 12px 19px; border-radius: 14px; font-size: .84rem; font-weight: 800; gap: 12px; }
.button.primary { background: var(--green); color: #fff; box-shadow: 0 4px 0 rgba(37,61,42,.08); }
.button.primary:hover { background: var(--green-dark); box-shadow: 0 7px 18px rgba(50,76,56,.14); }
.button.secondary { color: var(--green-dark); background: var(--green-soft); }
.button.outline { border: 1px solid #cfd6c5; background: var(--surface); }
.button:disabled { opacity: .5; box-shadow: none; }
.muted { color: var(--muted); line-height: 1.65; }
.eyebrow { color: var(--green); font-size: .67rem; font-weight: 800; letter-spacing: .11em; }
.brand-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: .73rem; font-weight: 800; }
.brand-kicker i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); }

/* Entry: illustration and a focused, single-action form. */
.auth-page { display: flex; min-height: 100svh; flex-direction: column; padding: 0 48px; background: var(--soft); }
.auth-top, .auth-footer { display: flex; width: min(1240px,100%); align-items: center; justify-content: space-between; gap: 20px; margin-inline: auto; }
.auth-top { padding: 30px 0; }
.auth-brand { position: static; display: flex; flex-direction: column; font-size: 2rem; font-weight: 800; letter-spacing: -.08em; line-height: 1.05; }
.auth-brand::first-letter { color: inherit; }
.auth-brand span { margin-top: 8px; color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: .035em; }
.auth-site-link { display: flex; align-items: center; gap: 15px; font-size: .8rem; font-weight: 700; }
.auth-site-link span { font-size: 1.2rem; }
.auth-card, .auth-card-register { display: grid; width: min(1150px,100%); flex: 1; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: center; gap: clamp(40px,6vw,100px); margin: 12px auto 28px; background: transparent; }
.auth-hero { display: block; position: relative; min-width: 0; }
.auth-hero h2 { margin: 18px 0 18px; font-size: clamp(3rem,5.4vw,5.1rem); font-weight: 800; line-height: 1.03; letter-spacing: -.07em; }
.auth-hero h2 > span { color: var(--green); }
.auth-hero > p { margin: 0; color: #74776c; font-size: .96rem; line-height: 1.75; }
.auth-art { position: relative; width: 100%; height: 340px; margin: 16px 0; isolation: isolate; }
.auth-art-orbit { position: absolute; z-index: -1; width: 300px; height: 280px; bottom: 12px; left: 16%; border-radius: 44% 56% 60% 40%; background: #e6eadb; transform: rotate(-8deg); }
.auth-art > img { display: block; position: relative; width: 100%; height: 100%; object-fit: contain; }
.auth-art-note { position: absolute; right: 0; bottom: 38px; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); font-size: .7rem; font-weight: 800; transform: rotate(-4deg); }
.auth-art-note b { display: grid; width: 25px; height: 25px; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 50%; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 17px; border-top: 1px solid var(--line); }
.auth-benefits > span { display: grid; gap: 3px; color: #6e7466; font-size: .67rem; }
.auth-benefits b { color: var(--green); font-size: .77rem; }
.auth-form, .auth-card-register .auth-form { width: 100%; padding: clamp(28px,3.5vw,48px); border: 1px solid #e3e5db; border-radius: 28px; background: var(--surface); box-shadow: 0 18px 60px rgba(44,57,31,.055); }
.auth-form::before { display: none; }
.auth-step-mark { display: grid; width: 54px; height: 54px; margin-bottom: 28px; place-items: center; border: 1px solid #dce4cf; border-radius: 17px; color: var(--green); background: var(--green-soft); font-size: 1.8rem; font-weight: 700; }
.auth-form .eyebrow { display: block; margin: 0 0 10px; }
.auth-form h1 { margin: 0 0 14px; font-size: clamp(1.75rem,2.8vw,2.5rem); line-height: 1.13; letter-spacing: -.05em; font-weight: 800; }
.auth-form > .muted { font-size: .88rem; line-height: 1.7; }
.auth-form form { gap: 8px; margin-top: 30px; }
.auth-form label { gap: 10px; font-size: .78rem; font-weight: 700; color: var(--ink); }
.auth-form input { min-height: 58px; border-color: #d7dcce; border-radius: 13px; background: #fafbf6; font-size: 1.08rem; padding: 15px 17px; }
.auth-form input::placeholder { color: #9ba28f; }
.auth-form .button.primary { justify-content: space-between; min-height: 54px; }
.auth-form > .button { margin-top: 24px; }
.auth-form #otp-code { letter-spacing: .45em; font-size: 1.8rem; font-weight: 800; text-align: center; }
.form-error { min-height: 18px; margin: 0 0 5px; font-size: .73rem; }
.auth-reassurance { display: flex; align-items: flex-start; gap: 11px; margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); }
.auth-reassurance > span { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: .8rem; }
.auth-reassurance p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.auth-reassurance strong { display: block; margin-bottom: 4px; color: #4b5645; font-size: .75rem; }
.auth-note { margin: 24px 0 0; font-size: .69rem; }
.auth-back-button { width: 100%; margin-top: 8px; padding: 10px; }
.auth-footer { padding: 22px 0; border-top: 1px solid var(--line); color: #8a8e80; font-size: .68rem; }

/* Workspace shell. */
.dashboard-body, .dashboard-body .app-content { background: var(--soft); }
.sidebar { padding: 24px 18px 15px; border-color: #dce1d3; color: var(--ink); background: #eef1e7; }
.sidebar-brand { gap: 10px; padding: 0 3px; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; color: #fff; background: var(--green); font-size: 1.5rem; font-weight: 800; letter-spacing: -.08em; }
.brand-copy strong { font-size: 1.52rem; font-weight: 800; letter-spacing: -.07em; line-height: 1.1; }
.brand-copy small { margin-top: 4px; color: #7d8673; font-size: .63rem; }
.partner-mini { gap: 10px; margin: 28px 0 8px; padding: 12px 8px; border: 0; border-top: 1px solid #dce2d1; border-bottom: 1px solid #dce2d1; border-radius: 0; background: transparent; }
.partner-mini .avatar { width: 36px; height: 36px; flex: 0 0 36px; color: var(--green-dark); background: #dfe7d5; border-radius: 50%; }
.partner-mini strong { font-size: .77rem; color: var(--ink); }
.partner-mini small { color: var(--muted); font-size: .63rem; }
.sidebar-section-label { margin: 23px 8px 11px; color: #8b917f; font-size: .55rem; letter-spacing: .08em; }
.sidebar-nav { flex: 0; gap: 7px; }
.sidebar-link, .sidebar-logout, .sidebar-collapse { min-height: 49px; gap: 12px; padding: 0 13px; color: #748068; border-radius: 13px; font-size: .8rem; }
.sidebar-label { font-weight: 700; }
.sidebar-link:hover { color: var(--green-dark); background: #e4e9db; }
.sidebar-link.active { color: #fff; background: var(--green); box-shadow: 0 4px 10px rgba(61,91,59,.09); }
.sidebar-companion { display: flex; flex-direction: column; margin: auto 0 18px; padding-top: 26px; text-align: center; }
.sidebar-companion img { width: 150px; height: 100px; margin: 0 auto 8px; object-fit: contain; mix-blend-mode: multiply; }
.sidebar-companion strong { font-size: .87rem; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; }
.sidebar-companion > span { margin-top: 8px; color: #8a907f; font-size: .61rem; }
.sidebar-logout, .sidebar-collapse { min-height: 40px; border: 0; background: transparent; font-size: .7rem; }
.sidebar-logout .sidebar-icon { color: #969d8b; }
.sidebar-collapse { border-top: 1px solid #dce2d1; border-radius: 0; }
.app-shell.sidebar-collapsed .sidebar-companion, html.sidebar-is-collapsed .sidebar-companion { display: none; }
.app-shell.sidebar-collapsed .sidebar-nav, html.sidebar-is-collapsed .sidebar-nav { flex: 1; }
.topbar { min-height: 82px; padding: 16px 38px; border-color: var(--line); background: rgba(246,245,239,.96); }
.topbar-eyebrow { margin-bottom: 3px; color: #939984; font-size: .59rem; letter-spacing: .06em; }
.topbar-title { font-size: 1.05rem; font-weight: 800; }
.topbar-label { margin-right: 12px; color: #8a907e; font-size: .68rem; }
.icon-button { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: #68765d; }
.content { max-width: 1240px; padding: 30px 38px 48px; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 38px; padding: 21px 0; border-top: 1px solid var(--line); font-size: .66rem; }
.app-footer strong { color: #65735c; font-size: 1rem; letter-spacing: -.06em; }

/* Each section has a real heading; the mascot sits outside the work cards. */
.hero-panel { display: flex; gap: 24px; margin-bottom: 24px; padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
.hero-panel .eyebrow { color: var(--green); }
.hero-panel h2 { margin: 9px 0 9px; font-size: clamp(1.8rem,2.8vw,2.65rem); font-weight: 800; line-height: 1.15; letter-spacing: -.055em; overflow-wrap: anywhere; }
.hero-panel p { max-width: 620px; color: var(--muted); font-size: .83rem; line-height: 1.7; }
.hero-icon { flex: 0 0 62px; width: 62px; height: 62px; border: 1px solid var(--line); border-radius: 20px; color: var(--green); background: #ecefe3; font-size: 1.5rem; }
.availability-banner { min-height: 42px; margin-bottom: 12px; padding: 4px 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.availability-banner.is-offline { background: transparent; color: #857048; }
.availability-copy strong { font-size: .78rem; font-weight: 800; }
.availability-copy small { margin-top: 3px; color: #8b917f; font-size: .64rem; }
.availability-icon { width: 30px; height: 30px; background: #e6ecdb; }
.availability-switch span { background: #d0d5c7; }
.availability-switch input:checked + span { background: var(--green); }
.availability-switch b { color: #879177; font-size: .57rem; }
.compact-filters { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 10px; margin-bottom: 16px; }
.filter-trigger-city { grid-column: 1 / -1; }
.filter-trigger-grid { gap: 10px; }
.filter-trigger, .filter-trigger-wide { min-height: 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 8px 12px; }
.filter-trigger:hover, .filter-trigger-wide:hover { background: #eef1e7; border-color: #bdcbb1; }
.filter-trigger small { color: #8c947f; font-size: .59rem; letter-spacing: .025em; }
.filter-trigger strong { color: var(--ink); font-size: .77rem; font-weight: 700; }
.filter-trigger > span { color: #859574; }

/* Request cards. */
.card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.card, .section-card, .app-card { border-color: var(--line); border-radius: 20px; background: var(--surface); }
.lead-card { position: relative; display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .18s, box-shadow .18s, transform .18s; }
.lead-card:hover { border-color: #aebb9e; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(46,62,33,.07); }
.lead-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 11px; }
.lead-card__identity { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.lead-card__mascot { display: block; width: 36px; height: 36px; flex: 0 0 36px; overflow: hidden; border-radius: 50%; background: #edf1e5; }
.lead-card__mascot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lead-card__badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; min-width: 0; }
.detail-heading .lead-card__badges { justify-content: flex-start; }
.request-number { color: #8c9381; font-size: .66rem; font-weight: 700; letter-spacing: .05em; }
.request-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; color: #707767; background: #edf0e7; font-size: .62rem; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.request-status::before { display: block; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; content: ""; }
.request-status.request-status--new { color: #44704a; background: #eaf2e3; }
.request-status.request-status--viewed { color: #496b89; background: #eaf1f8; }
.request-status.request-status--responded { color: #75558f; background: #f1eaf7; }
.request-status.request-status--declined { color: #99574f; background: #f8ece8; }
.request-status.request-status--expired { color: #93642b; background: #fff1d9; }
.request-status.request-status--closed, .request-status.request-status--neutral { color: #697260; background: #e9ede4; }
.lead-card__content, .lead-card__content--without-city { flex: 1; margin: 0; padding: 0; }
.lead-card__content h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.05rem; font-weight: 800; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.lead-card__description, .request-card-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 10px; color: #777f6d; font-size: .77rem; line-height: 1.65; }
.lead-card__city { display: inline-flex; width: fit-content; gap: 5px; margin: 0 0 8px; padding: 0; border: 0; color: #8d9580; background: transparent; font-size: .67rem; }
.lead-card__city b { display: none; }
.lead-card__budget { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin: 9px 0 11px; padding: 0; border-radius: 0; background: transparent; }
.lead-card__budget span { color: #8a927f; font-size: .69rem; }
.lead-card__budget strong { color: #6c795f; font-size: .76rem; font-weight: 650; letter-spacing: 0; }
.lead-card__budget--amount strong { color: var(--green-dark); font-size: .91rem; font-weight: 800; }
.lead-card__budget--unspecified strong { color: #7e8972; font-weight: 500; }
.lead-card__offer { display: block; margin: 8px 0; padding: 0; color: var(--green); font-size: .74rem; font-weight: 700; }
.lead-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.lead-card__time { display: grid; min-width: 0; gap: 5px; }
.lead-card__time strong { display: inline-block; justify-self: start; padding: 5px 8px; border: 1px solid #bfd2b7; border-radius: 7px; color: #355d3d; background: #eaf3e4; font-size: .72rem; font-weight: 800; line-height: 1.35; }
.lead-card__time small { color: #707964; font-size: .64rem; }
.lead-card__responses { display: flex; min-width: 0; align-items: center; gap: 12px; }
.lead-card__responses > strong { color: #7e8872; font-size: .66rem; font-weight: 700; }
.lead-card__open { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid #dce4d1; border-radius: 50%; color: var(--green); background: #eef2e5; font-size: 1.15rem; }
.order-card .lead-card__offer { color: var(--green-dark); font-size: .85rem; }
.order-tabs { display: flex; width: fit-content; gap: 5px; margin-bottom: 23px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: #ebeee3; }
.order-tabs .button { min-height: 42px; background: transparent; font-size: .75rem; }
.order-tabs .button.primary { color: var(--green-dark); background: var(--surface); box-shadow: 0 2px 7px #35432b0a; }

/* Application: readable brief plus a separate response panel. */
.app-detail-page { width: 100%; gap: 20px; }
.detail-titlebar { display: flex; justify-content: flex-start; gap: 10px; }
.detail-titlebar > strong { color: #859177; text-align: left; font-size: .72rem; font-weight: 700; }
.app-icon-back { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--green); }
.detail-heading { padding: 6px 0 2px; }
.detail-heading .app-back-row { justify-content: flex-start; gap: 12px; }
.detail-heading .app-back-row > strong { color: #87917c; font-size: .67rem; font-weight: 700; letter-spacing: .04em; }
.detail-heading h2 { max-width: 900px; margin: 13px 0 9px; font-size: clamp(1.8rem,3.2vw,2.75rem); line-height: 1.17; font-weight: 800; letter-spacing: -.05em; overflow-wrap: anywhere; }
.detail-heading > p { margin: 0; color: #909784; font-size: .69rem; }
.app-status-pill { padding: 5px 9px; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: .61rem; }
.detail-columns { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 22px; }
.detail-main, .detail-aside { display: grid; min-width: 0; gap: 18px; }
.detail-aside { position: sticky; top: 102px; }
.app-card, .section-card { padding: 25px; box-shadow: none; }
.section-card > h3, .app-card > h3 { margin: 0 0 18px; font-size: 1rem; font-weight: 800; letter-spacing: -.025em; }
.request-summary { padding: 27px; border: 1px solid var(--line); }
.request-full-description { color: #616858; font-size: .89rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-photos { padding: 24px; border: 1px solid var(--line); }
.app-fact-line { align-items: baseline; gap: 15px; padding: 10px 0; }
.app-fact-line span { font-size: .73rem; }
.app-fact-line strong, .app-fact-line a { font-size: .77rem; font-weight: 700; overflow-wrap: anywhere; }
.detail-budget { display: grid; gap: 6px; padding: 25px; border: 1px solid #d8e1c9; border-radius: 20px; background: #eaf0e0; }
.detail-budget > small { color: #7c8d6a; font-size: .66rem; }
.detail-budget > strong { color: var(--green-dark); font-size: 1.75rem; font-weight: 800; line-height: 1.25; letter-spacing: -.035em; }
.detail-budget > p { margin: 9px 0 4px; color: #859576; font-size: .7rem; line-height: 1.7; }
.detail-budget .app-detail-actions { margin-top: 12px; }
.detail-budget--unspecified { gap: 3px; padding: 20px; background: var(--surface); border-color: var(--line); }
.detail-budget--unspecified > strong { color: var(--muted); font-size: .86rem; font-weight: 600; letter-spacing: 0; }
.detail-budget--unspecified > p { margin-top: 6px; }
.detail-budget .app-primary-action { padding-inline: 12px; font-size: .76rem; }
.app-deadline { gap: 10px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: #687e56; }
.app-deadline strong { font-size: .73rem; }
.app-deadline small { color: #919c84; font-size: .62rem; }
.app-communication { grid-template-columns: 1fr; }
.app-secondary-action { min-height: 48px; border-radius: 13px; background: var(--surface); font-size: .75rem; }
.response-capacity { padding: 17px 19px; border-radius: 15px; }
.response-capacity strong, .response-capacity b { font-size: .73rem; }
.app-section-title { align-items: center; gap: 10px; font-size: .88rem; }
.app-offer-price { margin: 12px 0; font-size: 1.35rem; font-weight: 800; }
.offer-summary > p { color: #737c67; font-size: .82rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-locked { align-items: flex-start; padding: 17px; font-size: .72rem; line-height: 1.7; background: #f0f2e8; border: 0; }
.app-text-button, .app-decline-action { font-size: .7rem; font-weight: 700; }
.app-unavailable { font-size: .73rem; line-height: 1.65; }
.detail-companion { display: flex; align-items: center; gap: 12px; padding: 12px 3px; }
.detail-companion img { width: 85px; height: 65px; object-fit: contain; mix-blend-mode: multiply; }
.detail-companion p { margin: 0; color: #8a957c; font-size: .67rem; line-height: 1.7; }
.detail-companion strong { display: block; color: #5d7050; }

/* Profile, registration, conversation and dialogs. */
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; }
.profile-row { padding: 15px 0; border-color: var(--line); gap: 16px; }
.profile-row small { margin-bottom: 4px; font-size: .67rem; color: #8c9680; }
.profile-row strong { font-size: .83rem; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.response-balance-card { background: var(--green); color: #fff; border-color: transparent; }
.response-balance-card .price { color: #fff; font-size: 3.1rem; font-weight: 800; line-height: 1.2; letter-spacing: -.07em; }
.response-balance-card .muted { color: #dce5cf; font-size: .74rem; }
.response-balance-card .profile-row { border-color: #ffffff26; font-size: .73rem; }
.response-balance-card .profile-row strong { color: #fff; }
.balance-buy-button { width: 100%; min-height: 44px; margin-top: 18px; border-color: #ffffff50; border-radius: 12px; font-size: .75rem; }
.profile-help-card { border-color: var(--line); background: #eef1e5; }
.profile-help-card__icon { background: #dfe8d2; color: var(--green); }
.profile-help-card h3 { font-size: .87rem; }
.profile-help-card p { margin-top: 5px; color: #849275; font-size: .73rem; }
.profile-photo-view, .profile-photo-current { margin-bottom: 12px; border-radius: 16px; background: var(--soft); }
.form-grid, .offer-form { gap: 18px; }
.form-grid label, .offer-form label, .inline-form label, .field, .package-phone { gap: 8px; color: #637256; font-size: .76rem; font-weight: 700; }
.form-grid input:not([type=radio]):not([type=checkbox]):not([type=range]), .form-grid select, .form-grid textarea, .offer-form input, .offer-form textarea, .inline-form input, .inline-form textarea, .package-phone input { min-height: 50px; padding: 12px 14px; border: 1px solid #d8dfcd; border-radius: 12px; background: #fbfcf7; color: var(--ink); font-size: .86rem; }
textarea { resize: vertical; }
.profile-progress { gap: 14px; margin-bottom: 16px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.profile-progress__item { gap: 9px; font-size: .75rem; }
.profile-progress__item b { width: 32px; height: 32px; background: #ecefe3; color: #98a18a; }
.profile-progress__item.active { color: var(--green); }
.profile-progress__item.active b { background: var(--green); }
.profile-progress > i { background: #e1e7d7; }
.step-heading h3 { font-weight: 800; letter-spacing: -.02em; }
.step-heading p { font-size: .76rem; }
.profile-photo-field small { color: #8a947e; font-size: .68rem; }
.direction-search input, .form-grid .direction-search input { min-height: 48px; border-color: #d9e0cc; background: #f8faf3; padding-left: 39px; font-size: .84rem; }
.direction-list, .subcategory-picker, .direction-custom, .filter-check-list { border-color: var(--line); border-radius: 13px; background: var(--surface); }
.direction-option, .direction-custom, .subcategory-option, .filter-check { min-height: 45px; font-size: .8rem; font-weight: 600; }
.direction-option:has(input:checked), .subcategory-option:has(input:checked), .direction-custom:has(input:checked), .filter-check:has(input:checked) { color: var(--green-dark); background: #eaf0df; }
.direction-picker .direction-option input, .subcategory-picker .subcategory-option input { min-height: 17px; flex: 0 0 17px; }
.subcategory-picker__head { padding: 13px 14px; background: #f5f7ee; }
.subcategory-picker__head strong { font-size: .76rem; }
.city-nationwide { border-color: #d1dfc0; background: #ecf2e1; color: var(--green); }
.city-nationwide small { color: #879776; }
.modal-backdrop { padding: 24px; background: rgba(36,43,29,.36); backdrop-filter: blur(5px); }
.modal { border: 1px solid #e3e7d9; border-radius: 25px; background: var(--surface); padding: 30px; box-shadow: 0 26px 90px rgba(32,44,23,.16); }
.modal-close { display: grid; width: 32px; height: 32px; margin: -9px -9px 0 4px; place-items: center; border-radius: 50%; background: #eff2e7; color: #748762; font-size: 1.3rem; }
.modal h2 { font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.modal .muted { font-size: .81rem; line-height: 1.75; }
.offer-sheet { gap: 17px; }
.offer-sheet h2 { padding-right: 18px; font-size: 1.6rem; }
.offer-method { min-height: 92px; border-color: #dee5d1; border-radius: 17px; background: #f9fbf4; }
.offer-method.accent { border-color: #c6d4b5; background: #eaf1df; }
.offer-method i { background: #e9eddc; color: var(--green); }
.offer-method.accent i { background: var(--green); }
.offer-method small { margin-top: 3px; color: #8a967b; font-size: .7rem; }
.voice-hints { background: #eff3e6; }
.voice-record-button { box-shadow: 0 0 0 13px #edf2e2; }
.package-plan-option:has(input:checked), .package-plan-option--best:has(input:checked) { background: #edf3e3; box-shadow: 0 0 0 2px #d2dec5; }
.package-plan-option { border-radius: 15px; padding: 16px 13px; }
.package-plan-option--best { padding-top: 43px; }
.package-plan-title strong { font-size: .87rem; }
.package-plan-price b { font-size: 1.1rem; }
.profile-confirmation-modal { width: min(620px,100%); padding: 30px; }
.profile-confirmation-modal > h2 { margin-bottom: 10px; padding-right: 24px; font-size: 1.75rem; }
.profile-confirmation-modal > .muted { margin-bottom: 23px; }
.profile-confirmation-modal .form-grid { gap: 15px; }
.profile-confirmation-modal .form-grid label { gap: 7px; font-size: .75rem; color: #697b59; }
.profile-confirmation-modal .form-grid input:not([type=radio]):not([type=checkbox]):not([type=range]), .profile-confirmation-modal .form-grid select, .profile-confirmation-modal .form-grid textarea { min-height: 48px; padding: 11px 13px; background: #fbfcf7; border-color: #dae2ce; font-size: .84rem; }
.profile-confirmation-modal .direction-option:has(input:checked), .profile-confirmation-modal .subcategory-option:has(input:checked) { color: var(--green); background: #edf3e3; }
.profile-confirmation-modal .direction-option, .profile-confirmation-modal .subcategory-option { font-size: .8rem; }
.onboarding-mascot { display: block; width: 120px; height: 88px; margin: -4px 0 12px; object-fit: contain; mix-blend-mode: multiply; }
.conversation { gap: 16px; }
.message { max-width: 85%; padding: 15px 18px; border-radius: 17px; font-size: .82rem; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.message.client { background: #f1f2e9; }
.message.zapros, .message.partner { background: #e5edda; }
.message small { font-size: .62rem; }
.offer { padding: 18px; border-radius: 15px; }
.offer.mine { border-color: #cad8b9; background: #f3f7ec; }
.offer p { font-size: .8rem; color: #748266; white-space: pre-wrap; overflow-wrap: anywhere; }
.photo-modal { background: #242a1f; }
.photo-modal .modal-close { color: #fff; background: #ffffff24; }
.empty-state, .loading-state { padding: 48px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.empty-state > img { display: block; width: 215px; height: 145px; margin: 0 auto 22px; object-fit: contain; mix-blend-mode: multiply; }
.empty-state h3 { margin: 0 0 10px; color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; }
.empty-state p { max-width: 420px; margin: 0 auto 22px; color: #8a977b; font-size: .82rem; line-height: 1.8; }
.loading-state { min-height: 220px; padding-top: 72px; color: #8d997d; font-size: .8rem; }
.toast { padding: 15px 20px; border-radius: 14px; background: var(--green-dark); font-size: .8rem; line-height: 1.6; }
.toast.error { background: var(--danger); }
.partner-result-page { display: grid; min-height: 100svh; justify-items: center; align-content: center; gap: 28px; padding: 35px 20px; }
.result-wordmark { font-size: 1.8rem; font-weight: 800; letter-spacing: -.07em; }
.partner-result-card { width: min(470px,100%); padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); text-align: center; box-shadow: var(--shadow); }
.partner-result-card > img { display: block; max-width: 100%; height: 180px; margin: 0 auto 20px; object-fit: contain; mix-blend-mode: multiply; }
.partner-result-card h1 { margin: 12px 0; font-size: 1.9rem; font-weight: 800; line-height: 1.15; letter-spacing: -.045em; }
.partner-result-card p { margin-bottom: 25px; font-size: .85rem; }

@media (min-width: 901px) and (max-height: 800px) {
  .sidebar-companion img { width: 105px; height: 70px; }
  .sidebar-companion { padding-top: 18px; margin-bottom: 10px; }
  .sidebar-companion > span { display: none; }
  .auth-art { height: 255px; }
  .auth-art-orbit { height: 215px; width: 230px; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  :root { --sidebar-width: 218px; }
  .sidebar { padding-inline: 12px; }
  .content { padding-inline: 25px; }
  .topbar { padding-inline: 25px; }
  .detail-columns { grid-template-columns: minmax(0,1fr) 270px; gap: 16px; }
  .profile-layout { grid-template-columns: minmax(0,1fr) 270px; }
  .lead-card { padding: 17px; }
}
@media (max-width: 900px) {
  .auth-page { padding-inline: 26px; }
  .auth-card { grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); gap: 26px; }
  .auth-hero h2 { font-size: 3.1rem; }
  .auth-hero > p { font-size: .83rem; }
  .auth-art { height: 255px; }
  .auth-art-orbit { width: 220px; height: 215px; left: 10%; }
  .auth-art-note { display: none; }
  .auth-benefits { gap: 10px; }
  .auth-benefits > span { font-size: .59rem; }
  .auth-form { padding: 28px; }
  .sidebar, .app-shell.sidebar-collapsed .sidebar, html.sidebar-is-collapsed .sidebar { height: calc(74px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #dce2d1; background: var(--surface); box-shadow: 0 -6px 24px #38462e08; }
  .sidebar-companion { display: none; }
  .sidebar-nav { flex: 1; }
  .sidebar-link, .app-shell.sidebar-collapsed .sidebar-link, html.sidebar-is-collapsed .sidebar-link { padding: 8px 5px !important; gap: 4px; color: #909981 !important; background: transparent !important; box-shadow: none; }
  .sidebar-link.active { color: var(--green) !important; }
  .sidebar-link.active .sidebar-icon { width: 54px; height: 30px; border-radius: 10px; color: var(--green); background: #e7eedb; }
  .sidebar-label { font-size: .64rem; }
  .app-main, .app-shell.sidebar-collapsed .app-main, html.sidebar-is-collapsed .app-main { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 70px; padding: 13px 24px; border-color: var(--line); background: rgba(246,245,239,.97); }
  .mobile-wordmark { color: var(--ink); font-size: 1.75rem; font-weight: 800; letter-spacing: -.065em; }
  .mobile-wordmark span { color: var(--green); }
  .topbar .icon-button { color: var(--green); background: var(--surface); }
  .topbar .icon-button:hover { color: var(--green-dark); background: var(--green-soft); }
  .topbar-label { display: none; }
  .content { padding: 24px; }
  .hero-panel { display: flex; }
  .availability-copy small { display: block; }
  .availability-copy strong { font-size: .76rem; }
  .availability-switch span { width: 44px; height: 26px; }
  .availability-switch span::after { width: 20px; height: 20px; }
  .availability-switch input:checked + span::after { transform: translateX(18px); }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-columns { grid-template-columns: minmax(0,1fr) 270px; gap: 16px; }
  .detail-aside { top: 88px; }
  .profile-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 16px; }
  .toast-region { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 680px) {
  .auth-page { padding-inline: 20px; }
  .auth-top { padding: 22px 0; }
  .auth-brand { font-size: 1.8rem; }
  .auth-brand span { font-size: .58rem; }
  .auth-site-link { font-size: .66rem; gap: 8px; }
  .auth-card { width: min(470px,100%); flex: initial; grid-template-columns: 1fr; gap: 22px; margin-top: 12px; }
  .auth-hero { min-height: 156px; padding: 6px 140px 10px 0; }
  .auth-hero .brand-kicker { max-width: 210px; font-size: .61rem; gap: 6px; line-height: 1.6; }
  .auth-hero h2 { margin: 12px 0 0; font-size: clamp(2.1rem,7.6vw,3rem); }
  .auth-hero > p, .auth-benefits { display: none; }
  .auth-art { position: absolute; top: 5px; right: -7px; width: 150px; height: 166px; margin: 0; }
  .auth-art-orbit { left: 8px; bottom: 5px; width: 136px; height: 123px; }
  .auth-form { padding: 28px 25px; border-radius: 22px; }
  .auth-step-mark { display: none; }
  .auth-form h1 { font-size: 1.95rem; }
  .auth-form form { margin-top: 25px; }
  .auth-form input { font-size: 16px; }
  .auth-reassurance { margin-top: 23px; padding-top: 20px; }
  .auth-footer { margin-top: auto; font-size: .59rem; }
  .topbar { padding-inline: 18px; min-height: 66px; }
  .content { padding: 19px 17px 28px; }
  .availability-banner { min-height: 40px; gap: 10px; margin-bottom: 11px; padding: 0 0 9px; }
  .availability-copy strong { font-size: .69rem; }
  .availability-copy small { max-width: 230px; font-size: .58rem; }
  .availability-icon { display: none; }
  .compact-filters { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); margin-bottom: 13px; gap: 8px; }
  .filter-trigger-grid { gap: 8px; }
  .filter-trigger { min-height: 48px; padding: 8px 10px; }
  .filter-trigger-wide { min-height: 47px; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .lead-card { padding: 16px; border-radius: 17px; }
  .lead-card__top { margin-bottom: 10px; }
  .lead-card__content h3 { font-size: 1.04rem; }
  .lead-card__description { font-size: .78rem; }
  .lead-card__budget { margin-top: 8px; }
  .hero-panel { align-items: flex-start; gap: 12px; margin-bottom: 19px; padding-bottom: 19px; }
  .hero-panel h2 { font-size: 1.9rem; }
  .hero-panel p { font-size: .75rem; }
  .hero-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 14px; font-size: 1.1rem; }
  .detail-columns, .profile-layout { grid-template-columns: 1fr; gap: 17px; }
  .detail-aside { position: static; }
  .detail-heading h2 { font-size: 1.85rem; line-height: 1.25; }
  .app-card, .section-card { padding: 22px; }
  .request-full-description { font-size: .86rem; line-height: 1.9; }
  .detail-budget { padding: 22px; }
  .detail-budget .app-primary-action { min-height: 52px; font-size: .85rem; }
  .detail-companion { max-width: 360px; margin: 0 auto; }
  .profile-layout > aside { display: grid; gap: 17px; }
  .profile-help-card { margin-top: 0; }
  .form-grid, .offer-form__row { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: 1; }
  .form-grid input:not([type=radio]):not([type=checkbox]):not([type=range]), .form-grid select, .form-grid textarea, .offer-form input, .offer-form textarea, .package-phone input, .profile-confirmation-modal .form-grid input:not([type=radio]):not([type=checkbox]):not([type=range]), .profile-confirmation-modal .form-grid textarea, .profile-confirmation-modal .form-grid select { font-size: 16px; }
  .direction-search input, .form-grid .direction-search input { font-size: 16px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal, .modal.offer-modal, .modal.filter-modal, .modal.profile-confirmation-modal { width: 100%; max-height: calc(100dvh - 26px); padding: 25px 22px calc(25px + env(safe-area-inset-bottom)); border: 0; border-radius: 26px 26px 0 0; }
  .modal-close { margin: -6px -4px 0 4px; }
  .modal.offer-modal .modal-close { top: 22px; right: 17px; }
  .offer-sheet h2 { font-size: 1.45rem; }
  .profile-confirmation-modal > h2 { font-size: 1.55rem; }
  .profile-confirmation-modal .wizard-actions { bottom: calc(-25px - env(safe-area-inset-bottom)); margin: 16px -22px calc(-25px - env(safe-area-inset-bottom)); padding: 15px 22px calc(15px + env(safe-area-inset-bottom)); background: var(--surface); border-color: var(--line); }
  .profile-confirmation-modal .wizard-actions .button { min-height: 48px; }
  .sheet-handle { background: #dce4cf; margin-top: -11px; margin-bottom: 5px; }
  .message { max-width: 93%; font-size: .8rem; }
  .empty-state { padding: 35px 22px; }
  .empty-state h3 { font-size: 1.3rem; }
  .empty-state > img { width: 185px; height: 125px; }
  .partner-result-card { padding: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Compact request header and consistent icon alignment. */
.topbar .icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; line-height: 1; }
.topbar .icon-button svg { display: block; width: 21px; height: 21px; }
.app-icon-back { padding: 0; flex-shrink: 0; line-height: 1; }
.detail-titlebar { flex-wrap: wrap; row-gap: 8px; }
.detail-conversation-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-left: auto; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--green); background: var(--surface); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.detail-conversation-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 7px; background: var(--green-soft); line-height: 1; }
@media (max-width: 900px) {
  .sidebar-link .sidebar-icon, .sidebar-link.active .sidebar-icon { display: grid; place-items: center; width: 54px; height: 30px; flex: 0 0 30px; }
  .sidebar-link .sidebar-icon svg { display: block; width: 21px; height: 21px; }
}
@media (max-width: 680px) {
  .content:has(.app-detail-page) { padding-top: 12px; }
  .app-detail-page { gap: 12px; }
  .detail-heading { padding: 0; }
  .detail-heading h2 { margin: 8px 0 6px; font-size: 1.6rem; line-height: 1.2; }
  .detail-heading .app-back-row { flex-wrap: wrap; gap: 8px; }
}
/* Compact mobile profile. */
@media (max-width: 680px) {
  .content:has(.profile-layout) { padding-top: 12px; }
  .content:has(.profile-layout) > .hero-panel { gap: 10px; margin-bottom: 12px; padding: 0 0 10px; }
  .content:has(.profile-layout) > .hero-panel .eyebrow { margin-bottom: 4px; }
  .content:has(.profile-layout) > .hero-panel h2 { margin: 4px 0; font-size: 1.55rem; line-height: 1.2; }
  .content:has(.profile-layout) > .hero-panel p { margin: 4px 0 0; }
  .content:has(.profile-layout) > .hero-panel .hero-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
  .profile-layout, .profile-layout > aside { gap: 12px; }
  .profile-layout .section-card { padding: 16px; border-radius: 16px; }
  .profile-layout .section-card > h3 { margin: 0 0 10px; }
  .profile-layout .profile-row { padding: 9px 0; gap: 10px; }
  .profile-layout .profile-row small { margin-bottom: 2px; }
  .profile-layout .profile-row strong { line-height: 1.45; }
  .profile-layout .section-card > .actions { margin-top: 12px !important; }
  .profile-layout .balance-buy-button { margin-top: 12px; }
}
/* Request facts and conversation in a single compact card. */
.detail-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.detail-overview .app-deadline, .detail-overview .response-capacity { min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.detail-overview .response-capacity > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; justify-content: space-between; }
.detail-overview .detail-companion { margin: 0; padding: 0; gap: 8px; }
.detail-overview .detail-companion img { width: 48px; height: 38px; }
.detail-overview .detail-conversation-button { width: 100%; margin: 0; }
@media (max-width: 680px) {
  .detail-overview { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px; }
  .detail-overview .detail-companion { max-width: none; }
  .detail-overview .detail-conversation-button { min-height: 40px; }
}
/* Balance and support above profile details on phones. */
@media (max-width: 680px) {
  .profile-layout > aside { order: -1; gap: 10px; }
  .profile-layout .response-balance-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 12px 14px; }
  .profile-layout .response-balance-card > h3 { margin: 0; font-size: .85rem; }
  .profile-layout .response-balance-card > .price { margin: 0; font-size: 1.8rem; line-height: 1; }
  .profile-layout .response-balance-card > .profile-row { grid-column: 1 / -1; padding: 5px 0; }
  .profile-layout .response-balance-card > .muted { grid-column: 1 / -1; margin: 0; line-height: 1.35; }
  .profile-layout .response-balance-card > .balance-buy-button { grid-column: 1 / -1; min-height: 40px; margin: 0; padding: 8px 10px; }
  .profile-layout .profile-help-card { padding: 12px 14px; margin-top: 0; }
  .profile-layout .profile-help-card__head { gap: 8px; }
  .profile-layout .profile-help-card__icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
  .profile-layout .profile-help-card h3 { margin: 0; font-size: .8rem; }
  .profile-layout .profile-help-card p { margin: 3px 0 0; font-size: .68rem; line-height: 1.35; }
  .profile-layout .profile-help-card__button { min-height: 40px; margin-top: 8px; padding: 8px 10px; font-size: .75rem; }
}
/* Clear rectangular photo picker and compact introduction form. */
.profile-photo-upload-row { display: flex; align-items: center; gap: 12px; }
.profile-photo-field .profile-photo-upload { position: relative; display: flex; flex: 0 0 112px; width: 112px; min-height: 74px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px; overflow: hidden; border: 1px dashed var(--green); border-radius: 10px; background: var(--green-soft); cursor: pointer; text-align: center; }
.profile-photo-upload img { display: block; width: 96px; height: 54px; object-fit: contain; border-radius: 5px; }
.profile-photo-placeholder { font-size: 24px; line-height: 1; color: var(--green); }
.profile-photo-upload > span:last-of-type { font-size: .68rem; font-weight: 800; }
.profile-photo-field .profile-photo-upload input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.profile-photo-upload:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.profile-photo-field:has(.profile-photo-editor:not(.hidden)) .profile-photo-upload img { display: none; }
.profile-photo-upload-row > small { line-height: 1.4; }
.profile-photo-field .profile-photo-editor canvas { width: min(100%, 280px); }
.profile-confirmation-modal:has(#profile-confirm-form) > .onboarding-mascot { float: left; width: 44px; height: 44px; margin: 0 10px 6px 0; }
.profile-confirmation-modal:has(#profile-confirm-form) > h2 { margin: 0 0 5px; font-size: 1.3rem; }
.profile-confirmation-modal:has(#profile-confirm-form) > .muted { margin-bottom: 12px; font-size: .72rem; line-height: 1.4; }
#profile-confirm-form { clear: both; }
#profile-confirm-form .profile-progress { padding-bottom: 10px; margin-bottom: 10px; gap: 10px; }
#profile-confirm-form .profile-progress__item b { width: 26px; height: 26px; }
#profile-confirm-form .form-grid { gap: 10px; }
#profile-confirm-form .form-grid label { gap: 4px; }
#profile-confirm-form .form-grid input:not([type=file]):not([type=radio]):not([type=checkbox]):not([type=range]) { min-height: 42px; padding: 8px 10px; }
#profile-confirm-form textarea { min-height: 76px; padding: 8px 10px; }
#profile-confirm-form .profile-photo-field { gap: 5px; }
#profile-confirm-form .actions { margin-top: 0; }
@media (max-width: 680px) {
  .modal.profile-confirmation-modal:has(#profile-confirm-form) { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
  #profile-confirm-form .wizard-actions { bottom: calc(-16px - env(safe-area-inset-bottom)); margin: 10px -18px calc(-16px - env(safe-area-inset-bottom)); padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
}
/* Compact request list header and page indicator. */
.quotes-page-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; color: var(--muted); font-size: .67rem; line-height: 1.3; }
.quotes-page-caption > span { margin-left: auto; text-align: right; }
.quotes-first-page { padding: 4px 0; border: 0; background: transparent; color: var(--green); font: inherit; font-weight: 700; cursor: pointer; }
.quotes-first-page:hover { text-decoration: underline; }
.content:has(> .availability-banner) > .compact-filters { margin-bottom: 8px; }
@media (max-width: 680px) {
  .content:has(> .availability-banner) { padding-top: 10px; }
  .content > .availability-banner { min-height: 32px; margin-bottom: 8px; padding: 0 0 6px; }
  .content:has(> .availability-banner) .filter-trigger { min-height: 44px; padding-top: 7px; padding-bottom: 7px; }
}
/* Consistent typography for profile values and input hints. */
#profile-confirm-form input:not([type=file]):not([type=radio]):not([type=checkbox]):not([type=range]),
#profile-confirm-form textarea,
#profile-confirm-form select { font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: normal; }
#profile-confirm-form input::placeholder,
#profile-confirm-form textarea::placeholder { font-family: inherit; font-size: inherit; font-weight: 400; line-height: inherit; color: #7b8474; opacity: 1; }
/* Smaller profile form with a pinned phone label. */
#profile-confirm-form .profile-confirm-phone { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 6px 0; margin-bottom: 7px; background: var(--surface); font-size: .75rem; }
.profile-confirm-phone > span { color: var(--muted); }
.profile-confirm-phone > strong { color: var(--green-dark); font-weight: 700; }
#profile-confirm-form .form-grid { gap: 8px; }
#profile-confirm-form .form-grid label { font-size: .7rem; gap: 3px; }
#profile-confirm-form .form-grid input:not([type=file]):not([type=radio]):not([type=checkbox]):not([type=range]),
#profile-confirm-form .form-grid select,
#profile-confirm-form .form-grid textarea { min-height: 38px; padding: 7px 9px; font-size: 14px; }
#profile-confirm-form .form-grid textarea { min-height: 62px; }
#profile-confirm-form .profile-progress { padding-bottom: 7px; margin-bottom: 8px; }
#profile-confirm-form .profile-photo-upload { min-height: 62px; flex-basis: 100px; width: 100px; }
#profile-confirm-form .actions .button { min-height: 42px; padding: 9px 12px; }
#profile-confirm-form .wizard-actions { margin-top: 18px; }
.profile-confirmation-modal[data-saving="1"] { position: relative; }
.profile-confirmation-modal[data-saving="1"] > form { display: none; }
.profile-confirmation-modal[data-saving="1"] > .loading-state { margin-top: 20px; }
.profile-confirmation-modal:has(#profile-confirm-form) > h2 { font-size: 1.15rem; }
.profile-confirmation-modal:has(#profile-confirm-form) > .muted { font-size: .68rem; margin-bottom: 7px; }
.profile-photo-field:has(.profile-photo-editor:not(.hidden)) > .profile-photo-upload-row { display: none; }
.profile-photo-replace { align-self: flex-start; padding: 5px 0; border: 0; background: transparent; color: var(--green); font: inherit; font-size: .75rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.profile-photo-replace:hover { color: var(--green-dark); }
.app-response-dock > .app-primary-action { width: 100%; }
@media (max-width: 680px) {
  .app-detail-page:has(.app-response-dock) { padding-bottom: 80px; }
  .app-detail-page .app-response-dock { position: fixed; z-index: 1990; right: 0; left: 0; bottom: calc(74px + env(safe-area-inset-bottom)); padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -4px 16px rgba(32,44,23,.08); }
  .app-detail-page .app-response-dock > .app-primary-action { min-height: 48px; margin: 0; }
}
/* Keep short offer fields paired, including on phones. */
#quote-modal-form .offer-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#quote-modal-form .offer-form__row > label,
#quote-modal-form .offer-form__row input { min-width: 0; }
.offer-mastery-tip { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); }
.offer-mastery-tip img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.offer-sheet .offer-mastery-tip p { margin: 0; color: #52644b; font-size: .72rem; line-height: 1.45; }
.offer-mastery-tip strong { color: var(--green-dark); font-weight: 700; }
/* Compact offer entry without shrinking readable input text. */
.offer-sheet:has(#quote-modal-form) { gap: 10px; }
.offer-sheet:has(#quote-modal-form) .offer-mastery-tip { margin: 0; padding: 8px 10px; }
#quote-modal-form { gap: 10px; }
#quote-modal-form label { gap: 4px; font-size: .71rem; }
#quote-modal-form input { min-height: 40px; height: 40px; padding: 7px 10px; }
#quote-modal-form textarea { min-height: 88px; height: 88px; padding: 8px 10px; line-height: 1.4; }
#quote-modal-form > .button { min-height: 42px; padding: 9px 12px; }
@media (max-width: 680px) {
  .modal.offer-modal:has(#quote-modal-form) { padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); }
  .offer-sheet:has(#quote-modal-form) h2 { font-size: 1.3rem; }
  .offer-sheet:has(#quote-modal-form) .sheet-handle { margin: -6px auto 0; }
}
.voice-record-button > span { display: grid; place-items: center; line-height: 1; }
.voice-record-button svg { display: block; width: 42px; height: 42px; }
.voice-sheet { gap: 12px; }
.voice-sheet .voice-record-button { width: 94px; height: 94px; margin: 14px 0 7px; box-shadow: 0 0 0 10px #edf2e2; }
.voice-sheet .offer-mastery-tip { width: 100%; margin: 4px 0 0; text-align: left; }
.voice-sheet .voice-hints { margin-top: 0; padding: 12px 14px; gap: 6px; }
/* Read the task independently while recording an offer. */
.voice-task { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.voice-task > strong { display: block; margin-bottom: 6px; color: var(--green-dark); font-size: .75rem; }
.voice-task-scroll { max-height: 150px; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; scrollbar-gutter: stable; padding-right: 6px; }
.voice-task-scroll h3 { margin: 0 0 6px; font-size: .85rem; line-height: 1.35; overflow-wrap: anywhere; }
.voice-task-scroll p { margin: 0; font-size: .78rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.voice-task > small { display: block; margin-top: 7px; color: var(--muted); font-size: .65rem; }
.voice-guidance { width: 100%; text-align: left; }

.voice-guidance .voice-hints { grid-template-columns: 44px minmax(0, 1fr); margin-top: 0; gap: 5px 10px; }
.voice-guidance-mascot { grid-column: 1; grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.voice-guidance .voice-hints > strong, .voice-guidance .voice-hints > p, .voice-guidance .voice-hints > small { grid-column: 2; }
.voice-guidance .voice-hints p { margin: 0; font-size: .75rem; line-height: 1.45; }
.voice-guidance .voice-hints b { color: var(--green-dark); font-weight: 800; }
.voice-guidance .voice-hints small { color: #637256; font-size: .68rem; line-height: 1.4; }
@media (max-width: 680px) {
  .modal.voice-modal { padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); }
  .voice-sheet { gap: 10px; padding-top: 0; }
  .voice-sheet h2 { font-size: 1.25rem; }
  .voice-sheet .voice-record-button { width: 78px; height: 78px; margin: 10px 0 6px; box-shadow: 0 0 0 8px #edf2e2; }
}
