@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #132821;
  --teal: #0f6b5b;
  --teal-deep: #0a4c42;
  --lime: #dfff56;
  --paper: #fbfaf5;
  --canvas: #f4f6f2;
  --panel: #ffffff;
  --cream: #f3eee4;
  --muted: #6f7d76;
  --line: #e2e7e1;
  --line-strong: #ced8d1;
  --blue: #477f9a;
  --blue-soft: #eaf2f7;
  --red: #b9574d;
  --red-soft: #fff0ed;
  --orange: #bd6b2f;
  --orange-soft: #fff2df;
  --green: #2d825f;
  --green-soft: #e9f5ea;
  --shadow: 0 18px 45px rgba(19, 40, 33, .08);
  --radius: 16px;
  --button-height: 48px;
  --button-radius: 999px;
  --button-padding-x: 21px;
  --focus-ring: 0 0 0 3px rgba(15, 107, 91, .2);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { min-width: 320px; max-width: 100%; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--canvas); font: 400 14px/1.5 "DM Sans", sans-serif; }
img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus-ring); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.portal-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: calc(78px + var(--safe-top)); padding: var(--safe-top) max(24px, calc((100vw - 1180px) / 2)) 0; border-bottom: 1px solid rgba(226, 231, 225, .9); background: rgba(244, 246, 242, .92); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 23px/1 "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.brand-mark { display: inline-flex; align-items: end; gap: 3px; width: 25px; height: 25px; }
.brand-mark span { display: block; width: 5px; border-radius: 2px 2px 0 0; transform: skewX(-14deg); }
.brand-mark span:nth-child(1) { height: 16px; background: var(--teal); }
.brand-mark span:nth-child(2) { height: 21px; background: #ef7d50; }
.brand-mark span:nth-child(3) { height: 25px; background: var(--lime); }
.portal-header-right { display: flex; align-items: center; gap: 12px; }
.portal-context { color: var(--muted); font-size: 12px; font-weight: 600; }

.button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: max(44px, var(--button-height)); padding: 0 var(--button-padding-x); border: 1px solid transparent; border-radius: var(--button-radius); font-size: 14px; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(19, 40, 33, .15); }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: var(--teal-deep); }
.button-primary > span { color: var(--lime); font-size: 18px; }
.button-soft { color: var(--ink); border-color: var(--line); background: var(--panel); }
.button-soft:hover { border-color: var(--line-strong); background: var(--paper); }
.button-compact { min-height: 44px; padding: 0 15px; font-size: 12px; }
.button-wide { width: 100%; }
.text-button { appearance: none; min-height: 44px; margin: -10px 0; padding: 10px 0; border: 0; color: var(--teal); background: transparent; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.back-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-bottom: 17px; padding: 0; border: 0; color: var(--teal); background: transparent; font-size: 13px; font-weight: 700; }
.back-button:hover { color: var(--teal-deep); }

.eyebrow { margin: 0 0 9px; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #ef7d50; vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.055em; line-height: 1.04; }

.auth-view { width: min(1180px, calc(100% - 48px)); min-height: calc(100vh - 158px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 480px); align-items: center; gap: clamp(50px, 8vw, 125px); margin: 0 auto; padding: 68px 0; }
.auth-intro { max-width: 570px; }
.auth-intro h1 { margin: 0 0 23px; font-size: clamp(48px, 6vw, 78px); letter-spacing: -.08em; }
.auth-intro h1 em { color: var(--teal); font-style: normal; }
.auth-intro-copy { max-width: 470px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.auth-visual { position: relative; max-width: 450px; margin: 30px 0 0; overflow: hidden; border-radius: 18px; background: var(--cream); box-shadow: 0 14px 30px rgba(19, 40, 33, .1); }
.auth-visual img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 62% 58%; }
.auth-visual figcaption { position: absolute; right: 12px; bottom: 12px; max-width: 205px; padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 9px; color: #fff; background: rgba(19, 40, 33, .78); font-size: 11px; font-weight: 700; line-height: 1.3; }
.auth-promises { display: grid; gap: 14px; margin-top: 38px; }
.auth-promises > div { display: flex; align-items: center; gap: 11px; }
.promise-mark { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 13px; font-weight: 800; }
.auth-promises strong, .auth-promises small { display: block; }
.auth-promises strong { font-size: 13px; }
.auth-promises small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.auth-card { padding: 31px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.auth-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-card-topline .eyebrow { margin: 0; }
.auth-step { color: var(--muted); font-size: 11px; }
.auth-panel h2 { margin: 23px 0 9px; font-size: 32px; }
.auth-panel-copy { margin: 0 0 25px; color: var(--muted); font-size: 13px; }
.portal-form { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: #4f6057; font-size: 12px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; color: var(--ink); background: #fff; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-toggle { position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.password-toggle:hover { color: var(--teal); background: #f0f5ef; }
.password-toggle-icon { display: inline-flex; width: 19px; height: 19px; }
.password-toggle-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.password-toggle-eye-off, .password-toggle.is-visible .password-toggle-eye { display: none; }
.password-toggle.is-visible .password-toggle-eye-off { display: inline-flex; }
.form-field textarea { min-height: 126px; resize: vertical; line-height: 1.55; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #9aa59e; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 107, 91, .1); }
.check-row { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; padding: 4px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.check-row input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--teal); }
.form-error { min-height: 17px; margin: -3px 0 0; color: #ae493c; font-size: 12px; }
.auth-switch { margin: 20px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-forgot-link { display: block; min-height: 34px; margin: -4px auto -8px; font-size: 12px; }
.auth-panel [data-forgot-confirmation] strong { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.prototype-note { margin: 24px 0 0; padding: 11px 13px; border-left: 3px solid var(--lime); color: #5d6b64; background: #f0f4e5; font-size: 11px; line-height: 1.45; }

.portal-view { flex: 1; padding: 54px 0 70px; background: var(--canvas); }
.portal-container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.portal-welcome { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.portal-welcome h1 { margin: 0; font-size: clamp(38px, 4.4vw, 58px); }
.portal-welcome h1 span { color: var(--teal); }
.portal-welcome > div > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.portal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.portal-summary article { min-height: 118px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.portal-summary article > span, .portal-summary small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.portal-summary strong { display: block; margin: 13px 0 2px; font: 700 30px/1 "Space Grotesk", sans-serif; letter-spacing: -.07em; }
.portal-summary small { color: var(--teal); font-weight: 700; }
.portal-dashboard { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(340px, .88fr); gap: 18px; align-items: start; }
.portal-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 5px 15px rgba(19, 40, 33, .025); }
.services-panel, .request-panel, .request-form-view, .request-detail-view { padding: 24px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 21px; }
.panel-heading h2, .view-heading h2 { margin: 0; font-size: 25px; }
.panel-heading p:not(.eyebrow), .view-heading > p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.service-card { display: flex; align-items: flex-start; gap: 12px; min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-align: left; background: var(--paper); transition: transform .2s, border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: var(--line-strong); box-shadow: 0 8px 18px rgba(19, 40, 33, .08); transform: translateY(-2px); }
.service-glyph { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); background: var(--lime); font: 700 22px/1 "Space Grotesk", sans-serif; }
.service-card:nth-child(2) .service-glyph { background: #c9e5ed; }
.service-card:nth-child(3) .service-glyph { background: #f6ced0; }
.service-card:nth-child(4) .service-glyph { background: #cbe4be; }
.service-card:nth-child(5) .service-glyph { background: #ddd5ee; }
.service-card:nth-child(6) .service-glyph { background: #f6d1a7; }
.service-card strong { display: block; margin-top: 1px; font: 700 16px/1.1 "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.service-card small { display: block; max-width: 190px; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.request-list { display: grid; gap: 0; }
.request-empty { padding: 22px 0 6px; color: var(--muted); font-size: 12px; }
.request-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.request-item:first-child { padding-top: 0; border-top: 0; }
.request-item:last-child { padding-bottom: 0; }
.request-item-info { min-width: 0; }
.request-item-info button { display: block; min-height: 44px; overflow: hidden; max-width: 100%; padding: 10px 0; border: 0; color: var(--ink); background: transparent; font: 700 13px/1.2 "Space Grotesk", sans-serif; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.request-item-info small { display: block; margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-badge::before { width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-submitted { color: var(--blue); background: var(--blue-soft); }
.status-pending { color: var(--red); background: var(--red-soft); }
.status-progress { color: var(--orange); background: var(--orange-soft); }
.status-completed { color: var(--green); background: var(--green-soft); }

.request-form-view { max-width: 990px; margin: 0 auto; }
.view-heading { margin-bottom: 28px; }
.view-heading > .eyebrow { margin-bottom: 8px; }
.request-form { display: grid; gap: 24px; }
.request-form-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 25px; }
.request-form-main, .request-form-side { display: grid; align-content: start; gap: 18px; }
.request-form-side { padding-left: 25px; border-left: 1px solid var(--line); }
.input-with-action { position: relative; }
.input-with-action input { padding-right: 125px; }
.location-button { position: absolute; top: 2px; right: 2px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--teal); background: #edf5ea; font-size: 11px; font-weight: 700; }
.location-button:hover { color: var(--teal-deep); background: #e2efdf; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.4; }
.optional { color: var(--muted); font-weight: 400; }
.upload-box { display: grid; place-items: center; min-height: 160px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 11px; color: var(--muted); text-align: center; background: var(--paper); cursor: pointer; transition: border-color .2s, background-color .2s; }
.upload-box:hover, .upload-box:focus-within { border-color: var(--teal); background: #f6faf4; box-shadow: var(--focus-ring); }
.upload-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 50%; color: var(--teal); background: #e8f2e6; font-size: 22px; }
.upload-box strong { color: var(--ink); font-size: 12px; }
.upload-box small { margin-top: 3px; font-size: 10px; }
.upload-files { max-width: 100%; margin-top: 10px; overflow: hidden; color: var(--teal); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-preview { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 11px; font-weight: 700; }
.account-preview span:not(.avatar), .account-preview strong, .account-preview small { display: block; }
.account-preview span:not(.avatar) { color: var(--muted); font-size: 10px; }
.account-preview strong { margin-top: 2px; font-size: 12px; }
.account-preview small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 2px; border-top: 1px solid var(--line); }

.request-detail-view { max-width: 1100px; margin: 0 auto; }
.detail-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.detail-title-row h2 { margin: 0; }
.detail-title-row p { margin: 7px 0 0; color: var(--muted); }
.tracking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.customer-stepper { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; gap: 0; margin: 6px 0 26px; padding: 0; list-style: none; }
.customer-stepper::before { position: absolute; top: 17px; right: 9%; left: 9%; height: 2px; background: var(--line); content: ""; }
.customer-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; color: var(--muted); text-align: center; }
.customer-step-dot { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); background: var(--panel); font-size: 11px; font-weight: 700; }
.customer-step strong { font-size: 12px; }
.customer-step small { display: block; max-width: 110px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.customer-step.is-complete .customer-step-dot { border-color: var(--teal); color: #fff; background: var(--teal); }
.customer-step.is-current .customer-step-dot { border-color: var(--lime); color: var(--ink); background: var(--lime); box-shadow: 0 0 0 4px rgba(223, 255, 86, .28); }
.customer-step.is-complete strong, .customer-step.is-current strong { color: var(--ink); }
.detail-card { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.detail-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-card-heading h3 { margin: 0; font-size: 19px; }
.detail-card-heading time { color: var(--muted); font-size: 10px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 17px 0 0; }
.detail-facts div { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.detail-facts dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.detail-facts dd { margin: 4px 0 0; font-size: 13px; font-weight: 700; }
.detail-description { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.next-step-card { padding: 21px; border: 1px solid #e5edcf; border-left: 3px solid var(--lime); border-radius: 12px; background: #f0f4e5; }
.next-step-card h3 { margin: 0; font-size: 20px; }
.next-step-card > p:not(.eyebrow) { margin: 9px 0 21px; color: #5d6b64; font-size: 12px; line-height: 1.55; }

.portal-footer { display: flex; justify-content: space-between; gap: 18px; padding: 22px max(24px, calc((100vw - 1180px) / 2)) max(22px, calc(22px + var(--safe-bottom))); border-top: 1px solid var(--line); color: var(--muted); background: var(--paper); font-size: 11px; }
.portal-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); font-weight: 700; }
.toast { position: fixed; z-index: 20; right: 22px; bottom: 22px; max-width: 340px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .auth-view { grid-template-columns: 1fr; max-width: 620px; gap: 42px; }
  .auth-intro { max-width: none; }
  .auth-intro h1 { font-size: clamp(45px, 8vw, 68px); }
  .portal-dashboard, .tracking-layout { grid-template-columns: 1fr; }
  .request-form-layout { grid-template-columns: 1fr; }
  .request-form-side { padding: 0; border-top: 1px solid var(--line); border-left: 0; padding-top: 22px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 72px; }
  body { font-size: 15px; }
  .portal-header { min-height: calc(64px + var(--safe-top)); padding: var(--safe-top) max(16px, var(--safe-right)) 8px max(16px, var(--safe-left)); }
  .brand { font-size: 20px; }
  .brand-mark { width: 22px; height: 22px; }
  .brand-mark span:nth-child(1) { height: 14px; }
  .brand-mark span:nth-child(2) { height: 18px; }
  .brand-mark span:nth-child(3) { height: 22px; }
  .portal-header-right { gap: 7px; }
  .portal-context { display: none; }
  .portal-header-right > a { display: none; }
  .auth-view, .portal-container { width: min(100% - 32px, 540px); }
  .auth-view { min-height: auto; gap: 30px; padding: 34px 0 calc(42px + var(--safe-bottom)); }
  .auth-card { padding: 20px 17px; border-radius: 17px; }
  .auth-intro h1 { font-size: clamp(40px, 12vw, 48px); }
  .auth-intro-copy { font-size: 15px; }
  .auth-visual { margin-top: 24px; }
  .auth-promises { gap: 12px; margin-top: 26px; }
  .auth-panel h2 { font-size: 29px; }
  .auth-panel-copy { margin-bottom: 21px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  .form-row, .portal-summary, .service-grid, .detail-facts { grid-template-columns: 1fr; }
  .portal-view { padding: 28px 0 calc(55px + var(--safe-bottom)); }
  .portal-welcome { align-items: flex-start; flex-direction: column; gap: 21px; }
  .portal-welcome { margin-bottom: 22px; }
  .portal-welcome h1 { font-size: clamp(36px, 11vw, 42px); }
  .portal-welcome .button { width: 100%; }
  .portal-summary { gap: 9px; margin-bottom: 13px; }
  .portal-summary article { min-height: 92px; padding: 15px; }
  .portal-summary strong { margin-top: 8px; font-size: 27px; }
  .services-panel, .request-panel, .request-form-view, .request-detail-view { padding: 17px; border-radius: 14px; }
  .panel-heading { margin-bottom: 17px; }
  .panel-heading h2, .view-heading h2 { font-size: 23px; }
  .service-grid { gap: 9px; }
  .service-card { min-height: 96px; padding: 14px; }
  .service-card strong { font-size: 15px; }
  .request-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 15px 0; }
  .request-item-info button { min-height: 44px; white-space: normal; }
  .request-item-info small { white-space: normal; }
  .status-badge { margin-top: 0; }
  .detail-title-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .customer-stepper { grid-template-columns: 1fr; gap: 18px; margin-left: 10px; }
  .customer-stepper::before { top: 17px; bottom: 17px; left: 16px; width: 2px; height: auto; }
  .customer-step { grid-template-columns: 34px minmax(0, 1fr); align-items: center; justify-items: start; gap: 8px 10px; text-align: left; }
  .customer-step strong, .customer-step small { grid-column: 2; align-self: end; }
  .customer-step small { align-self: start; margin-top: -7px; }
  .input-with-action { display: grid; gap: 8px; }
  .input-with-action input { padding-right: 13px; }
  .location-button { position: static; width: 100%; min-height: 44px; font-size: 12px; }
  .upload-box { min-height: 142px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; gap: 8px; }
  .form-actions .button { width: 100%; }
  .portal-footer { align-items: flex-start; flex-direction: column; padding: 20px max(16px, var(--safe-left)) calc(20px + var(--safe-bottom)) max(16px, var(--safe-right)); }
  .toast { right: max(16px, var(--safe-right)); bottom: calc(16px + var(--safe-bottom)); left: max(16px, var(--safe-left)); max-width: none; }
}

@media (max-width: 390px) {
  .portal-container, .auth-view { width: min(100% - 24px, 540px); }
  .auth-card { padding: 18px 14px; }
  .portal-welcome h1 { font-size: 35px; }
  .services-panel, .request-panel, .request-form-view, .request-detail-view { padding: 15px; }
  .detail-card, .next-step-card { padding: 16px; }
  .customer-stepper { margin-left: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
