/* ShikAuto profile — shared visual language with the desktop catalogue.
   Standalone stylesheet: no changes to API, auth or the main app layout. */
:root {
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --blue:#0047a0; --blue-hover:#125bb4; --blue-soft:#edf5ff;
  --ink:#1b2432; --muted:#75808e; --line:#e4e9f0;
  --page:#f4f6f9; --surface:#fff;
  color:var(--ink); background:var(--page);
}
* {box-sizing:border-box}
html {scroll-behavior:smooth}
body {margin:0;min-height:100dvh;background:var(--page);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
[hidden] {display:none!important}
a {color:var(--blue);text-decoration:none}
a:hover {text-decoration:none}
button,input {font:inherit}
button {cursor:pointer}
img,svg {display:block}
svg {width:20px;height:20px}
:focus-visible {outline:3px solid rgba(0,87,184,.55);outline-offset:3px}

/* The same compact brand treatment used in the catalogue sidebar. */
.topbar {position:relative;z-index:10;border-bottom:1px solid var(--line);background:rgba(255,255,255,.97)}
.topbar-inner {height:82px;max-width:1490px;margin:auto;padding:0 clamp(18px,3.5vw,56px);display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand {display:flex;align-items:center;gap:12px;color:var(--ink);min-width:0}
.brand img {width:46px;height:46px;object-fit:contain;border:1px solid var(--line);border-radius:13px;background:#fff}
.brand strong {display:block;color:#1e2734;line-height:1.1;font-size:18px;font-weight:850;letter-spacing:-.045em}
.brand small {display:block;color:#8a95a2;font-size:10px;margin-top:4px;white-space:nowrap}
.back {display:inline-flex;align-items:center;gap:9px;color:var(--blue);font-weight:750;font-size:13px;padding:10px 12px;border-radius:11px;white-space:nowrap}
.back:hover {background:var(--blue-soft)}
.back svg {width:18px;height:18px}

/* Editorial hero: premium but restrained, like catalogue home screen. */
.shell {max-width:1490px;margin:0 auto;padding:31px clamp(18px,3.5vw,56px) 74px}
.headline {
  display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,.75fr);
  position:relative;overflow:hidden;min-height:304px;
  border:1px solid var(--line);border-radius:28px;background:#fff;
  box-shadow:0 13px 38px rgba(27,39,55,.043);
}
.headline-copy {position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:41px clamp(26px,4.2vw,65px)}
.eyebrow,.section-eyebrow {color:var(--blue);font-size:10px;font-weight:850;letter-spacing:.15em}
.eyebrow {display:inline-flex;align-items:center;gap:10px}
.eyebrow-dot {height:8px;width:8px;border-radius:50%;background:#4fa879;box-shadow:0 0 0 4px #e9f5ed}
h1 {margin:15px 0 14px;font-size:clamp(34px,3.6vw,54px);font-weight:850;letter-spacing:-.05em;line-height:1.06}
h1 span {color:var(--blue)}
.headline p {margin:0;max-width:635px;color:#75808f;font-size:15px;line-height:1.65}
.headline-actions {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:23px}
.headline-art {position:relative;display:grid;place-items:center;overflow:hidden;min-height:255px;background:linear-gradient(143deg,#eaf3ff,#f6f9fd 52%,#e8eff7)}
.headline-art:before {content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 43%,rgba(0,71,160,.13),transparent 60%)}
.art-ring {position:absolute;width:420px;height:420px;border:1px solid rgba(0,71,160,.10);border-radius:50%}
.ring-one {transform:translate(17%,14%)}
.ring-two {transform:translate(17%,14%) scale(.69)}
.art-panel {position:relative;z-index:1;width:min(70%,255px);aspect-ratio:1.32;background:#fff;border:1px solid #d8e4f2;border-radius:19px;box-shadow:0 22px 50px rgba(33,77,128,.13);transform:rotate(-5deg);padding:19px;display:flex;flex-direction:column}
.art-panel-top,.art-panel-bottom {display:flex;justify-content:space-between;align-items:center;gap:8px;color:#a3adba;letter-spacing:.12em;font-size:7px;font-weight:800}
.art-signal {width:7px;height:7px;border-radius:50%;background:#64ba8e}
.art-logo {color:#0047a0;font-size:55px;font-weight:900;line-height:1.1;letter-spacing:-.1em;margin:auto 0 10px}
.art-line {height:7px;width:80%;border-radius:8px;background:#e7eef7;margin-bottom:8px}
.art-line.short {width:52%}
.art-panel-bottom {margin-top:10px;color:#8e9baa}

.benefits {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:17px 0 24px}
.benefit {display:flex;align-items:center;gap:15px;min-width:0;padding:17px 20px;border:1px solid var(--line);border-radius:18px;background:#fff}
.benefit-icon {flex:0 0 43px;width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:var(--blue-soft);color:var(--blue)}
.benefit-icon svg {width:23px;height:23px}
.benefit strong {display:block;font-size:14px;line-height:1.25;font-weight:800}
.benefit p {color:var(--muted);font-size:12px;margin:4px 0 0}

.panel {border:1px solid var(--line);border-radius:23px;background:#fff;padding:27px 30px;margin-bottom:17px;box-shadow:0 11px 32px rgba(24,42,72,.035)}
.panel h2 {font-size:clamp(19px,2vw,23px);line-height:1.23;letter-spacing:-.035em;margin:6px 0 9px;font-weight:830}
.panel h3 {font-size:15px;letter-spacing:-.02em;margin:0 0 8px}
.muted {color:var(--muted)}
.small {font-size:12px}
.note {font-size:12px;color:#8994a3;margin:15px 0 0}
.panel p {line-height:1.6}
.button {display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:43px;padding:11px 16px;border-radius:12px;border:1px solid #dce4ed;background:#fff;color:#34485f;font-size:12px;font-weight:800;text-align:center;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.button:hover {background:#f4f8fd;border-color:#bdcce2}
.button:active {transform:translateY(1px)}
.button.primary {color:#fff;background:var(--blue);border-color:var(--blue)}
.button.primary:hover {background:var(--blue-hover)}
.button.outline {border-color:#d9e6f6;color:var(--blue);background:#f7faff}
.button.outline:hover {background:#eaf3ff}
.button.subtle {background:#f7f9fc}
.button.danger {color:#a53b43;border-color:#f1ced3;background:#fff7f7}
.button.danger:hover {background:#fff0f1}
.button:disabled {opacity:.5;cursor:default}
.button.wide {width:100%}
.flash {padding:14px 17px;border-radius:13px;background:#eaf4ff;color:#1b4c92;border:1px solid #cde1fa;margin-bottom:18px;font-size:13px}
.flash.error {background:#fff1f2;border-color:#f5cfd5;color:#a43849}

/* Honest feature-off state; never imitate an authenticated account. */
.state-panel {display:flex;align-items:center;gap:21px;min-height:150px}
.state-panel h2 {margin:0 0 6px}
.state-panel p {margin:0;color:var(--muted);max-width:720px}
.state-copy {min-width:0}
.state-copy .button {margin-top:21px}
.state-icon {flex:0 0 58px;width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:var(--blue-soft);color:var(--blue)}
.state-icon svg {width:27px;height:27px}
.state-tag {display:inline-block;margin-bottom:13px;font-size:10px;font-weight:850;letter-spacing:.1em;color:var(--blue)}
.unavailable-panel {border-color:#dce6f2}
.loading-ring {flex:0 0 32px;width:32px;height:32px;border-radius:50%;border:3px solid #e3ebf6;border-top-color:var(--blue);animation:rotate .8s linear infinite}
@keyframes rotate {to {transform:rotate(360deg)}}

.login-panel {display:grid;grid-template-columns:minmax(0,.82fr) minmax(320px,1fr);gap:30px;align-items:start}
.login-description {padding:5px 4px}
.login-description h2 {font-size:clamp(25px,2.6vw,33px);margin:9px 0 13px}
.login-description > p {color:var(--muted);max-width:375px}
.login-form {padding:23px;border-radius:17px;border:1px solid #e8edf3;background:#f9fbfd;min-width:0}
.login-trust {display:flex;align-items:center;gap:9px;margin-top:26px;color:#648071;font-size:12px;line-height:1.5}
.trust-check {display:grid;place-items:center;flex:0 0 22px;height:22px;width:22px;background:#edf8f1;color:#378d61;border-radius:50%;font-weight:900}
.separate {display:flex;align-items:center;gap:12px;margin:10px 0 18px;color:#929caa;font-size:12px}
.separate:before,.separate:after {content:"";height:1px;flex:1;background:#dde4ed}
label:not(.switch) {display:block;margin:12px 0 8px;color:#506073;font-size:12px;font-weight:750}
input:not([type=checkbox]) {width:100%;min-width:0;min-height:44px;background:#fff;border:1px solid #dce4ec;border-radius:11px;padding:10px 13px;font-size:14px;color:var(--ink)}
input:not([type=checkbox]):focus {outline:2px solid #bcd5f4;border-color:#80a9e1;outline-offset:0}
.inline {display:flex;align-items:stretch;gap:9px;margin:6px 0 12px}
.inline input {flex:1 1 auto}
.inline .button {flex:0 0 auto}

/* Signed-in profile remains a real API-driven page, not a static mock. */
.profile-layout {display:grid;grid-template-columns:minmax(0,1.75fr) minmax(285px,.85fr);gap:18px;align-items:start}
.profile-main,.profile-aside {min-width:0}
.section-heading {display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:18px}
.section-heading h2 {margin:7px 0 4px}
.section-heading p {font-size:12px;margin:0}
.active-label {display:inline-flex;align-items:center;white-space:nowrap;gap:7px;padding:7px 10px;border-radius:9px;background:#edf8f2;color:#3d8762;font-size:11px;font-weight:800}
.active-label i {width:7px;height:7px;border-radius:50%;background:#44af79}
.account-actions {display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
.email-link-area {padding:18px;background:#f7faff;border:1px solid #e3ecf9;border-radius:14px;margin-top:8px}
.email-link-area .small {margin:0 0 11px}
.email-link-area .inline {flex-wrap:wrap}
.preferences-choice {display:flex;flex-direction:column;gap:13px}
.preferences-choice h3 {margin:0 0 6px}
.preferences-choice p {font-size:12px;margin:0;color:var(--muted)}
.switch {display:inline-flex;position:relative;width:49px;height:28px;flex:0 0 28px}
.switch input {position:absolute;inset:0;opacity:0;cursor:pointer;z-index:1;margin:0}
.switch span {position:absolute;inset:0;background:#ced7e2;border-radius:99px;transition:background .2s}
.switch span:after {content:"";position:absolute;top:4px;left:4px;width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.14);transition:transform .2s}
.switch input:checked+span {background:var(--blue)}
.switch input:checked+span:after {transform:translateX(21px)}
.switch input:focus-visible+span {outline:3px solid rgba(0,87,184,.35);outline-offset:3px}
.privacy-detail {padding-top:15px;margin:17px 0 0;border-top:1px solid var(--line);color:#85909c;font-size:11px}
.settings-panel h2 {margin-bottom:20px}
.danger-zone {border-color:#f1e5e6}
.danger-zone h2 {font-size:18px}
.danger-zone .muted {margin:8px 0 16px}
.chips {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.chip {display:inline-flex;align-items:center;border-radius:10px;background:#edf5ff;color:#315c96;padding:8px 11px;font-size:12px;font-weight:700;max-width:100%;overflow-wrap:anywhere}
.chip.link {background:#f7faff;border:1px solid #dbe8f6}
.chip.link:hover {background:#e9f3ff}
.cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.car {display:block;min-width:0;overflow:hidden;background:#fff;border:1px solid #e3e8ef;border-radius:15px;color:var(--ink);transition:box-shadow .16s,border-color .16s}
.car:hover {border-color:#bad5f0;box-shadow:0 14px 25px rgba(22,55,94,.08)}
.car img,.car-photo-placeholder {height:170px;width:100%;object-fit:contain;background:#f1f4f8}
.car-photo-placeholder {display:grid;place-items:center;font-weight:850;color:#a5afbd;letter-spacing:.12em}
.car-info {padding:15px}
.car-info strong {display:block;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.car-info small {display:block;color:#8793a1;font-size:11px;margin:5px 0}
.car-info span {font-size:12px;font-weight:800;color:var(--blue)}
.footer {max-width:1430px;margin:0 auto;padding:4px 24px 28px;display:flex;justify-content:center;flex-wrap:wrap;gap:12px 19px;color:#98a3af;font-size:11px}
.footer a {color:#7289ac}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

@media (max-width:1100px) {
  .headline {grid-template-columns:minmax(0,1.2fr) minmax(220px,.75fr)}
  .benefit {padding:15px}
  .profile-layout {grid-template-columns:minmax(0,1fr) 300px}
}
@media (max-width:850px) {
  .headline {grid-template-columns:1fr}
  .headline-copy {padding:33px 30px}
  .headline-art {display:none}
  .benefits {grid-template-columns:1fr;gap:9px}
  .benefit {padding:13px 17px}
  .profile-layout {grid-template-columns:minmax(0,1fr)}
  .profile-aside {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .profile-aside .panel {min-width:0}
  .login-panel {gap:18px}
}
@media (max-width:620px) {
  .topbar-inner {height:64px;padding:0 15px}
  .brand img {width:38px;height:38px}
  .brand strong {font-size:15px}
  .brand small {font-size:9px}
  .back {font-size:0;padding:9px}
  .back svg {width:22px;height:22px}
  .shell {padding:16px 13px 40px}
  .headline {border-radius:22px;min-height:0}
  .headline-copy {padding:29px 21px 26px}
  .headline h1 {font-size:clamp(30px,9vw,42px);margin:13px 0}
  .headline p {font-size:13px}
  .headline-actions {width:100%;gap:9px}
  .headline-actions .button {flex:1 1 100%;width:100%}
  .eyebrow {font-size:9px;letter-spacing:.10em}
  .benefits {margin:12px 0 17px}
  .benefit-icon {width:38px;height:38px;flex-basis:38px}
  .benefit p {font-size:11px}
  .panel {padding:20px 18px;border-radius:18px}
  .state-panel {align-items:flex-start;gap:13px;flex-wrap:wrap}
  .state-icon {flex-basis:47px;width:47px;height:47px;border-radius:13px}
  .state-panel .state-copy {flex:1 1 190px}
  .login-panel {grid-template-columns:minmax(0,1fr)}
  .login-form {padding:16px}
  .inline {flex-direction:column}
  .inline .button {width:100%}
  .section-heading {flex-wrap:wrap}
  .profile-aside {grid-template-columns:minmax(0,1fr);gap:0}
  .cards {gap:9px}
  .car img,.car-photo-placeholder {height:125px}
  .car-info {padding:11px}
  .car-info strong {font-size:12px}
  .footer {padding-bottom:25px}
}
/* Very narrow phones: keep input/buttons and status cards comfortably touchable. */
@media(max-width:560px) {
  .login-form .inline .button { min-height:46px; }
  .state-panel .button { width:100%; }
  .profile-identity .account-actions .button { flex:1 1 150px; }
}
@media (max-width:380px) {
  .cards {grid-template-columns:1fr}
  .car img,.car-photo-placeholder {height:175px}
}
@media (prefers-reduced-motion:reduce) {
  *,*:before,*:after {animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* Mobile account task-first composition: reach sign-in/status without
   scrolling past three decorative benefit cards. */
@media (max-width:620px) {
  .shell {display:flex;flex-direction:column;}
  .shell > .headline {order:0;}
  .shell > .flash {order:1;}
  .shell > #loading,
  .shell > #unavailable,
  .shell > #login,
  .shell > #profile {order:2;}
  .shell > .benefits {
    order:3; display:grid; grid-auto-flow:column;
    grid-auto-columns:minmax(218px,78vw);grid-template-columns:none;
    gap:9px;overflow-x:auto;scroll-snap-type:x proximity;
    scrollbar-width:none;margin:2px 0 20px;
    padding:1px 1px 8px;
  }
  .shell > .benefits::-webkit-scrollbar {display:none;}
  .benefit {scroll-snap-align:start;}
  .headline-actions .button {flex:1 1 auto;}
  .state-panel {margin-bottom:15px;}
  #recommendationCars {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:380px) {
  #recommendationCars {grid-template-columns:minmax(0,1fr);}
}

/* Unified customer identity, responsive progressive authentication. */
.is-authenticated .headline {min-height:178px}
.is-authenticated .headline-copy {padding-block:22px}
.is-authenticated .headline h1 {font-size:clamp(26px,2.8vw,39px);margin:8px 0}
.is-authenticated .headline-art {min-height:170px}
.is-authenticated .benefits {display:none}
.login-methods {display:grid;gap:9px;margin-bottom:16px}
.login-provider {display:flex;width:100%;min-height:47px;justify-content:flex-start;
  background:#fff;color:#172b43;border:1px solid #dce5ef;font-size:13px}
.login-provider:hover {background:#eff6ff}
.login-provider .provider-mark {display:grid;place-items:center;flex:0 0 27px;
  width:27px;height:27px;margin-right:11px;border-radius:9px;
  background:#eaf2fe;color:#1659af;font-weight:900;font-size:18px}
.login-provider.telegram .provider-mark {background:#e9f7fe;color:#228ac1}
.login-provider.whatsapp .provider-mark {background:#e7faf0;color:#148551}
.otp-flow {padding:16px;border-radius:14px;background:#f4f8fd;
  border:1px solid #e1eaf6;margin:10px 0 17px}
.otp-flow label {display:block;margin-bottom:7px;font-size:12px;font-weight:750}
.otp-flow .inline {display:flex;flex-wrap:wrap;gap:8px}
.otp-flow .inline input {flex:1 1 160px;min-width:0}
.linked-methods {border-top:1px solid #e6ebf0;padding:18px 0 13px;margin-top:18px}
.linked-methods h3 {margin-bottom:4px}
.linked-methods p {margin:0 0 12px}
.linked-methods .chips {margin-bottom:12px}
.linked-method-actions {display:flex;flex-wrap:wrap;gap:8px}
.linked-method-actions .button {font-size:12px}
@media(max-width:640px) {
  .login-form {padding:16px}
  .login-methods {gap:8px}
  .login-provider {min-height:51px}
  .is-authenticated .headline {min-height:auto;grid-template-columns:1fr}
  .is-authenticated .headline-art {display:none}
  .is-authenticated .headline-copy {padding:24px}
}

/* Live, account-owned saved vehicle summaries */
#favoriteList {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:13px}
.saved-car {display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);
  border-radius:17px;background:#fff;min-width:0}
.saved-car-photo {display:block;aspect-ratio:1.65;background:#f0f3f8}
.saved-car-photo img {width:100%;height:100%;object-fit:cover}
.saved-car-content {padding:14px;display:flex;flex-direction:column;gap:8px;flex:1}
.saved-car-content strong {font-size:14px;line-height:1.35}
.saved-car-content small {font-size:11px;color:var(--muted);line-height:1.5}
.saved-car-bottom {display:flex;align-items:center;justify-content:space-between;
  margin-top:auto;gap:7px;flex-wrap:wrap}
.saved-car-bottom a {font-size:12px;font-weight:750}
.saved-car-remove {padding:6px 8px;border:0;border-radius:8px;background:#f4f6fa;
  font-size:11px;color:#657487}
.saved-car-remove:hover {background:#ffe6e9;color:#a52e42}
.unavailable-tag {font-size:11px;font-weight:750;color:#ad6638}
@media (max-width:480px) {
  #favoriteList {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .saved-car-content {padding:10px}
}


/* Account overview and session management; no remote avatars or device tracking. */
.profile-overview {display:flex;align-items:center;gap:15px;padding:15px 17px;
  margin:6px 0 13px;border:1px solid #e0eaf7;border-radius:17px;background:#f7faff}
.profile-avatar {flex:0 0 58px;width:58px;height:58px;border-radius:17px;
  display:grid;place-items:center;background:#d8eafd;color:#1659ab;
  font-size:21px;font-weight:850;letter-spacing:-.04em}
.profile-overview-copy {min-width:0;display:flex;flex-direction:column;gap:3px}
.profile-overview-copy strong {font-size:17px;line-height:1.3;overflow-wrap:anywhere}
.profile-overview-copy span {font-size:11px}
.profile-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;margin:0 0 19px}
.profile-metrics > div {min-width:0;padding:13px;border:1px solid var(--line);
  border-radius:13px;background:#fafbfd;display:flex;flex-direction:column;gap:3px}
.profile-metrics strong {font-size:21px;line-height:1.1;font-weight:850}
.profile-metrics span {color:var(--muted);font-size:10px;line-height:1.4}
#favoriteCounter {margin:2px 0 11px}
.guest-import-hint {padding:13px 15px;margin:6px 0 10px;border-radius:12px;
  background:#edf5ff;border:1px solid #d7e7fc;color:#345981;
  line-height:1.55;font-size:12px}
.guest-import-action {margin:0 0 19px;min-height:44px;
  background:#f4f9ff;color:#1754a0;border-color:#bfd7f5}
.guest-import-action:hover {background:#e9f3ff;border-color:#a8c8ef}
@media(max-width:620px){
  .guest-import-action {width:100%}
  .saved-car-remove {min-height:40px;padding:9px 11px}
  .linked-method-actions .button {flex:1 1 150px;min-height:44px}
  .session-item button {min-height:42px}
}

#favoriteLoadMore {margin:17px 0 8px}
.session-list {display:grid;gap:8px;margin:16px 0}
.session-item {display:flex;align-items:center;justify-content:space-between;
  gap:9px;border:1px solid var(--line);border-radius:12px;
  background:#fafbfd;padding:12px;min-width:0}
.session-item div {min-width:0}
.session-item strong {display:block;overflow-wrap:anywhere;font-size:12px}
.session-item small {display:block;color:var(--muted);font-size:11px;margin-top:4px}
.session-item button {padding:7px 9px;min-height:35px;flex-shrink:0}
.session-current {font-size:10px;color:#247c53;font-weight:850;white-space:nowrap}
@media (max-width:480px) {
  .profile-metrics {gap:6px}
  .profile-metrics > div {padding:10px 8px}
  .profile-metrics strong {font-size:19px}
  .profile-metrics span {font-size:9px}
  .profile-overview {padding:12px}
}

/* Optional name and encrypted search collections */
.nickname-form {padding:16px 0;border-top:1px solid var(--line);margin-top:18px}
.nickname-form label,.saved-search-form label {display:block;font-size:12px;font-weight:780;margin-bottom:7px}
.nickname-form .inline {display:flex;gap:8px;flex-wrap:wrap}
.nickname-form input {min-width:0;flex:1 1 190px}
.nickname-form p {margin:8px 0 0}
.saved-search-grid {display:grid;gap:11px;margin:16px 0}
.saved-search-item {display:flex;gap:12px;align-items:center;justify-content:space-between;
  flex-wrap:wrap;border:1px solid var(--line);border-radius:13px;padding:14px 16px;
  background:#f9fbfd}
.saved-search-item strong {display:block;font-size:13px}
.saved-search-item small {display:block;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.5}
.saved-search-actions {display:flex;gap:7px;flex-shrink:0}
.saved-search-form {border-top:1px solid var(--line);padding-top:18px}
.saved-search-inputs {display:grid;grid-template-columns:minmax(170px,2fr) 1fr minmax(90px,1fr) auto;gap:9px}
.saved-search-inputs input,.saved-search-inputs select {
  box-sizing:border-box;min-width:0;width:100%;min-height:54px;
  border:1px solid #dce4ec;border-radius:12px;background-color:#fff;
  color:var(--ink);font:inherit;font-size:14px;font-weight:500;
  padding:12px 15px;line-height:1.35;transition:border-color .16s ease,box-shadow .16s ease;
}
.saved-search-inputs input::placeholder {color:#8390a2;opacity:1}
.saved-search-inputs input:hover,.saved-search-inputs select:hover {border-color:#b6c8dc}
.saved-search-inputs input:focus,.saved-search-inputs select:focus {
  outline:none;border-color:#568dd8;box-shadow:0 0 0 3px rgba(29,96,184,.14)
}
.saved-search-inputs select {
  appearance:none;-webkit-appearance:none;cursor:pointer;
  padding-right:39px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23546a85' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position:right 14px center;background-repeat:no-repeat;background-size:16px 16px;
}
.saved-search-inputs input[type=number] {
  appearance:textfield;-moz-appearance:textfield;font-variant-numeric:tabular-nums
}
.saved-search-inputs input[type=number]::-webkit-outer-spin-button,
.saved-search-inputs input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance:none;margin:0
}
.saved-search-inputs .button {min-height:54px;padding-inline:20px}
.saved-search-form > p {margin:10px 0 0}
@media(max-width:720px) {
  .saved-search-inputs {grid-template-columns:repeat(2,minmax(0,1fr))}
  .saved-search-inputs > :first-child {grid-column:span 2}
}
@media(max-width:420px) {
  .saved-search-actions {width:100%}
  .saved-search-actions .button {flex:1}
}
@media(max-width:420px) {
  .saved-search-inputs {grid-template-columns:minmax(0,1fr)}
  .saved-search-inputs > :first-child {grid-column:auto}
  .saved-search-inputs .button {width:100%}
}


/* Profile hub 2026-11-16: tasks before settings; no large signed-in hero. */
.is-authenticated .headline,
.is-authenticated .benefits {display:none}
.is-authenticated .shell {padding-top:20px}
.profile-layout {
  grid-template-columns:minmax(0,1fr) minmax(265px,305px);
  gap:20px;
  align-items:start
}
.profile-workspace,.profile-main,.profile-aside {min-width:0}
.profile-nav {
  display:flex;align-items:center;gap:7px;overflow-x:auto;
  scrollbar-width:thin;padding:1px 0 15px;margin-bottom:5px;
  scroll-snap-type:x proximity
}
.profile-nav a {
  display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;
  min-height:40px;padding:9px 15px;border:1px solid #e2e9f2;
  border-radius:11px;background:#fff;color:#50637a;font-size:12px;
  font-weight:760;white-space:nowrap;scroll-snap-align:start
}
.profile-nav a:hover,.profile-nav a:focus-visible {
  color:var(--blue);background:#edf5ff;border-color:#cbdcf5
}
#overview,#recommendations,#saved,#searches,#account,#privacy,#sessionsHeading {
  scroll-margin-top:24px
}
.profile-home {
  position:relative;overflow:hidden;
  background:linear-gradient(115deg,#fff 48%,#f6faff 100%);
  border-color:#dce7f5;padding:26px 29px 25px
}
.profile-home-top {display:flex;align-items:flex-start;justify-content:space-between;gap:15px;flex-wrap:wrap}
.profile-home-identity {display:flex;align-items:center;gap:15px;min-width:0}
.profile-home .profile-avatar {flex-basis:60px;width:60px;height:60px}
.profile-home-heading {min-width:0}
.profile-home h2 {font-size:clamp(23px,2.3vw,31px);margin:4px 0 6px;line-height:1.18}
.profile-meta {display:flex;flex-wrap:wrap;align-items:center;gap:4px 13px}
.profile-meta span {font-size:11px;color:#7a8798}
.personalized-badge {
  display:inline-flex;align-items:center;gap:6px;max-width:100%;
  border:1px solid #cce9dd;border-radius:99px;padding:8px 12px;
  font-weight:790;font-size:11px;color:#217652;background:#eefaf4
}
.personalized-badge span {font-size:14px}
.home-lede {color:#536781;font-size:13px;max-width:660px;margin:16px 0 19px}
.profile-home .profile-metrics {margin:0 0 19px;gap:10px}
.profile-home .profile-metrics > a {
  display:flex;flex-direction:column;gap:5px;min-width:0;padding:15px 16px;
  border:1px solid #e2eaf6;border-radius:15px;background:#fff;color:var(--ink);
  transition:box-shadow .16s,border-color .16s,transform .16s
}
.profile-home .profile-metrics > a:hover {
  border-color:#abcafa;box-shadow:0 9px 23px rgba(10,78,157,.08);
  transform:translateY(-1px)
}
.profile-home .profile-metrics strong {font-size:26px}
.profile-home .profile-metrics span {color:#61718b;font-size:11px;font-weight:680}
.personalization-prompt {
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:19px 20px;background:#f0f6ff;border:1px solid #d8e7fa;
  border-radius:16px
}
.personalization-prompt-copy {flex:1 1 380px;min-width:0}
.prompt-kicker {color:#1b5baa;font-size:10px;font-weight:850;letter-spacing:.13em}
.personalization-prompt h3 {font-size:16px;line-height:1.3;margin:6px 0}
.personalization-prompt p {font-size:12px;color:#516783;line-height:1.55;margin:0 0 10px}
.personalization-status {
  display:inline-flex;align-items:center;gap:7px;font-size:11px;
  font-weight:770;color:#516783
}
.personalization-status:before {
  content:'';width:7px;height:7px;background:#9babbd;border-radius:50%
}
.personalization-status.is-enabled {color:#22734b}
.personalization-status.is-enabled:before {background:#3da575}
.personalization-optin {
  display:flex!important;align-items:center;justify-content:space-between;
  gap:14px;flex:0 0 185px;padding:12px 14px;border-radius:12px;
  background:#fff;border:1px solid #d3e2f4;margin:0!important;
  color:#223e64!important;font-size:11px!important;line-height:1.35;
  font-weight:800!important;cursor:pointer
}
.personalization-optin .switch {flex:0 0 49px}
.home-quick-actions {display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:18px}
.home-quick-actions .button {min-height:45px}
#recommendations .section-heading,#saved .section-heading,#searches .section-heading {margin-bottom:11px}
.profile-aside {position:sticky;top:16px;align-self:start}
.profile-aside .panel {padding:21px;margin-bottom:14px}
.profile-aside .panel h2 {font-size:18px}
.profile-aside .settings-panel {background:#fbfcff}
.profile-aside .settings-panel p {margin:8px 0;font-size:12px;line-height:1.5}
.profile-aside .privacy-detail {padding-top:12px;margin-top:12px;font-size:11px}
.profile-identity #accountIdentity {overflow-wrap:anywhere}
.account-disclosure {margin-top:15px;border-top:1px solid var(--line)}
.account-disclosure summary {
  list-style:none;display:flex;gap:8px;align-items:center;
  justify-content:space-between;min-height:47px;padding:10px 0;
  color:var(--blue);font-size:12px;font-weight:770;cursor:pointer
}
.account-disclosure summary::-webkit-details-marker {display:none}
.account-disclosure summary span {font-size:18px;transition:transform .2s}
.account-disclosure[open] summary span {transform:rotate(180deg)}
.account-disclosure-content {padding-bottom:8px}
.account-disclosure-content .nickname-form {margin-top:5px}
.account-disclosure-content .linked-methods {margin-top:9px}
.account-disclosure-content .email-link-area {padding:13px}
.account-disclosure-content .email-link-area .inline {flex-direction:column}
.account-disclosure-content .email-link-area .button {width:100%}
.account-disclosure-content .nickname-form .inline {flex-direction:column}
.account-disclosure-content .nickname-form .button {width:100%}
.profile-aside .danger-zone {background:#fff}
.empty-state {
  grid-column:1/-1;padding:22px 20px;border:1px dashed #cbdbee;
  background:#f8fbff;border-radius:15px
}
.empty-state strong {display:block;color:#304660;font-size:14px}
.empty-state p {margin:7px 0 13px;color:#6a7a8f;font-size:12px}
.empty-state .button {min-height:40px}
@media(max-width:1100px) {
  .profile-layout {grid-template-columns:minmax(0,1fr) 265px}
  .profile-aside .panel {padding:18px}
}
@media(max-width:900px) {
  .profile-layout {grid-template-columns:minmax(0,1fr)}
  .profile-aside {position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .profile-aside .panel {margin:0}
  .profile-aside .danger-zone {grid-column:span 2}
}
@media(max-width:620px) {
  .is-authenticated .shell {padding-top:12px}
  .profile-nav {margin-inline:-2px;padding-bottom:11px}
  .profile-nav a {min-height:40px;padding:10px 12px}
  .profile-home {padding:20px 17px}
  .profile-home .profile-avatar {flex-basis:50px;width:50px;height:50px;font-size:19px}
  .profile-home-top {gap:12px}
  .profile-home-identity {gap:11px;align-items:flex-start}
  .profile-home h2 {font-size:24px}
  .personalized-badge {font-size:10px}
  .home-lede {margin:14px 0}
  .profile-home .profile-metrics {gap:7px}
  .profile-home .profile-metrics > a {padding:12px 9px}
  .profile-home .profile-metrics strong {font-size:22px}
  .profile-home .profile-metrics span {font-size:10px}
  .personalization-prompt {flex-wrap:wrap;padding:16px;gap:13px}
  .personalization-optin {flex:1 1 100%;max-width:none}
  .home-quick-actions .button {flex:1 1 100%}
  .profile-aside {grid-template-columns:minmax(0,1fr)}
  .profile-aside .danger-zone {grid-column:auto}
  .empty-state {padding:17px}
}
/* Corporate logo on the standalone profile page. */
.brand img {
  width:185px !important;
  height:62px !important;
  max-width:min(46vw,185px);
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  object-fit:contain;
}
@media (max-width:620px) {
  .brand img {
    width:145px !important;
    height:49px !important;
    max-width:min(58vw,145px);
  }
}
