.home-v2{background:#fff}.home-header{height:104px;padding:0 3.4vw;gap:24px}.home-logo{width:330px;display:flex;flex-direction:column;flex:0 0 auto}.home-logo img{width:290px;height:59px;object-fit:cover;object-position:top left;display:block}.home-logo small{font-size:14px;color:#273443;margin:0 0 0 10px;line-height:1.2}.home-nav{gap:10px;margin-left:auto}.home-nav .nav-tile{min-height:48px;padding:0 16px;border:1px solid #d5dce5;border-radius:8px;display:inline-flex;align-items:center;gap:8px;background:#fff;color:#162333;font-size:14px;white-space:nowrap;transition:.18s ease}.home-nav .nav-tile:hover{border-color:#8ab5ef;background:#f5f9ff;color:var(--blue);box-shadow:0 3px 10px rgba(5,93,201,.09)}.home-nav .create-account{min-height:48px;padding:0 24px;border-radius:8px}.home-hero{height:590px;background-position:center 46%;overflow:visible}.home-hero .hero-overlay{z-index:1;background:linear-gradient(90deg,#f4f8fc 0%,rgba(244,248,252,.99) 31%,rgba(244,248,252,.78) 45%,rgba(244,248,252,.10) 67%,rgba(0,0,0,.04) 100%)}.home-hero::after{content:"";position:absolute;z-index:1;left:0;right:0;bottom:0;height:315px;background:linear-gradient(180deg,rgba(244,247,250,.92) 0%,#f4f7fa 24%,#f4f7fa 100%);pointer-events:none}.home-hero-content{padding:44px 3.7vw;color:#142237;max-width:660px}.home-hero-content h1{font-size:49px;line-height:1.1;letter-spacing:-1.8px;margin:0 0 18px}.home-hero-content h1 span{color:var(--blue)}.home-hero-content p{font-size:19px;line-height:1.45;margin:0;color:#263647}.smart-search-wrap{position:absolute;z-index:8;left:3.7vw;right:3.7vw;top:257px}.home-search-tabs{height:56px;display:flex;align-items:flex-end;gap:0}.home-search-tab{height:56px;min-width:190px;padding:0 27px;border:0;font-size:17px;font-weight:750;border-radius:10px 10px 0 0;background:var(--blue);color:#fff;box-shadow:none}.home-search-tab.is-active{background:#fff;color:#172536;box-shadow:0 -4px 16px rgba(0,0,0,.06)}.home-search-card{border-radius:0 13px 13px 13px;background:rgba(255,255,255,.985);box-shadow:0 12px 32px rgba(17,39,64,.21);min-height:278px}.smart-panel{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.78fr);padding:25px 29px 26px;gap:29px}.smart-copy{min-width:0}.smart-title-row{display:flex;gap:13px;align-items:flex-start;margin-bottom:12px}.smart-icon{width:34px;height:34px;border-radius:10px;background:#eef5ff;color:var(--blue);display:grid;place-items:center;font-size:20px}.smart-title-row h2{margin:1px 0 4px;font-size:23px}.smart-title-row p{margin:0;color:#536274;font-size:15px}.smart-input-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 7px}.smart-form label{display:block;font-size:13px;font-weight:700;margin:0}.smart-input-header #smart-counter{flex:0 0 auto;color:#718093;font-size:12px;font-weight:600;line-height:1}.smart-form textarea{display:block;width:100%;height:109px;border:1px solid #c8d2de;border-radius:8px;padding:14px 16px;resize:vertical;line-height:1.45;color:#172536;background:#fff}.smart-form textarea:focus{outline:3px solid rgba(6,105,232,.13);border-color:var(--blue)}.smart-submit{width:100%;height:47px;border:0;border-radius:7px;margin-top:12px;color:#fff;font-weight:750;font-size:16px;background:linear-gradient(180deg,#0877ef,#005bcf);box-shadow:0 5px 12px rgba(0,82,190,.16)}.smart-note{margin:10px 0 0;color:#657487;font-size:12px}.smart-presets{border-left:1px solid #e0e5ec;padding-left:29px}.smart-presets h3{font-size:15px;margin:7px 0 14px}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.preset-grid button{min-height:49px;padding:8px 13px;text-align:left;border:1px solid #d6dee7;border-radius:8px;background:#fff;color:#263343;font-weight:650;transition:.17s}.preset-grid button:hover{border-color:#7eace7;background:#f6faff;color:var(--blue);transform:translateY(-1px)}.exact-panel[hidden],.smart-panel[hidden]{display:none!important}.home-exact-form{border-radius:0 13px 13px 13px;box-shadow:none;background:transparent;min-height:278px}.home-source-strip{padding:22px 4vw 18px;border-bottom:1px solid #e6eaf0;text-align:center}.home-source-strip small{display:block;margin-bottom:14px;color:#586678}.source-logos{display:flex;justify-content:center;align-items:center;gap:42px;flex-wrap:wrap}.source-logos b{font-size:22px;letter-spacing:-.6px}.source-logos span{width:1px;height:26px;background:#d8dee6}.source-rj{color:#e00000;font-style:italic}.source-kamux{color:#111}.source-saka{color:#111;font-style:italic}.home-latest-section{padding-top:30px}.home-feature-row{margin-top:15px}.home-v2 .loading-message{width:100%;text-align:center;color:#667486;padding:28px;border:1px solid #e1e6ec;border-radius:9px}.home-v2 .error-message{color:#a7362e;background:#fff6f5}.home-v2 .car-grid{min-height:170px}
@media(max-width:1260px){.home-logo{width:260px}.home-logo img{width:235px;height:49px}.home-logo small{font-size:12px}.home-nav .nav-tile{padding:0 11px}.home-nav{gap:7px}.smart-search-wrap{left:3vw;right:3vw}.smart-panel{grid-template-columns:1.35fr .75fr}.home-hero-content{padding-left:3vw}.home-hero-content h1{font-size:44px}}
@media(max-width:980px){.home-header{height:86px}.home-logo{width:235px}.home-logo img{width:215px;height:44px}.home-nav{display:none}.mobile-menu{display:block}.home-hero{height:auto;min-height:760px;background-position:66% center}.home-hero-content{padding:38px 6vw 0}.home-hero-content h1{font-size:40px}.smart-search-wrap{position:relative;left:auto;right:auto;top:auto;margin:30px 5vw 0}.smart-panel{grid-template-columns:1fr}.smart-presets{border-left:0;border-top:1px solid #e0e5ec;padding:20px 0 0}.home-search-card{border-radius:0 12px 12px 12px}.desktop-break{display:none}}
@media(max-width:650px){.home-header{padding:0 18px}.home-logo{width:210px}.home-logo img{width:190px;height:39px}.home-logo small{font-size:11px;margin-left:4px}.home-hero-content{padding:28px 20px 0}.home-hero-content h1{font-size:35px}.home-hero-content p{font-size:16px}.smart-search-wrap{margin:25px 12px 0}.home-search-tab{min-width:0;flex:1;padding:0 11px;font-size:15px}.smart-panel{padding:20px 16px}.preset-grid{grid-template-columns:1fr}.smart-presets{padding-top:15px}.home-exact-form{grid-template-columns:1fr!important;padding:20px 16px!important}.source-logos{gap:18px}.source-logos span{display:none}.home-source-strip{padding-left:16px;padding-right:16px}}

/* V5.4.2: clean hero artwork, source spacing and unified footer logo */
.home-logo img{object-fit:contain!important;object-position:left center!important;background:transparent!important}
.home-hero::before{content:"";position:absolute;z-index:2;left:0;top:0;bottom:0;width:52%;background:linear-gradient(90deg,#f3f7fb 0%,#f3f7fb 68%,rgba(243,247,251,.96) 82%,rgba(243,247,251,0) 100%);pointer-events:none}
.home-hero::after{top:47%!important;bottom:0!important;height:auto!important;background:#f4f7fa!important;z-index:2!important}
.home-hero .hero-overlay{z-index:1!important}
.home-hero-content{position:relative;z-index:4!important}
.smart-search-wrap{z-index:8!important}
.home-source-strip{position:relative;z-index:9;padding-top:58px!important;padding-bottom:26px!important;background:#fff}
.footer-logo-card{display:inline-flex;align-items:center;justify-content:center;width:min(360px,100%);padding:12px 16px;background:#fff;border-radius:10px}
.footer-logo-card img{display:block;width:100%;height:auto;max-height:92px;object-fit:contain}
.footer-brand p{margin-top:16px}
@media(max-width:980px){.home-hero::before{width:100%;background:linear-gradient(90deg,rgba(243,247,251,.97),rgba(243,247,251,.82) 58%,rgba(243,247,251,.18))}.home-hero::after{top:44%!important}.home-source-strip{padding-top:42px!important}}
@media(max-width:650px){.home-hero::before{width:100%;background:linear-gradient(180deg,rgba(243,247,251,.98) 0%,rgba(243,247,251,.92) 36%,rgba(243,247,251,.35) 62%,rgba(243,247,251,.08) 100%)}.home-hero::after{top:38%!important}.home-source-strip{padding-top:34px!important}.footer-logo-card{width:280px}}


/* V5.4.3: logo slogan and smart-search example polish */
.home-logo {
  align-items: flex-start;
}
.home-logo small {
  width: 290px;
  margin: 7px 0 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: .05px;
  color: #3f4c5b;
}
.footer-logo-card {
  flex-direction: column;
}
.footer-brand p {
  width: min(360px, 100%);
  margin: 12px 0 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  color: #c4d2e3;
}
.smart-title-row p {
  max-width: 760px;
  line-height: 1.45;
}
.smart-presets h3 {
  margin-bottom: 15px;
}
.preset-grid button {
  min-height: 50px;
  padding: 10px 16px;
  text-align: center;
  border: 1px solid #d6e3f2;
  border-radius: 10px;
  background: #f2f7fd;
  color: #26384c;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(18, 51, 88, .03);
}
.preset-grid button:hover {
  border-color: #a9c9ee;
  background: #e9f3ff;
  color: #075fc7;
  box-shadow: 0 5px 12px rgba(23, 105, 224, .08);
  transform: translateY(-1px);
}
.preset-grid button:focus-visible {
  outline: 3px solid rgba(23, 105, 224, .18);
  outline-offset: 2px;
}
.preset-grid button:active {
  transform: translateY(0);
  background: #dfeeff;
}
@media(max-width:1260px){
  .home-logo small{width:235px;font-size:14px;margin-top:6px}
}
@media(max-width:980px){
  .home-logo small{width:215px;font-size:13px}
}
@media(max-width:650px){
  .home-logo small{width:190px;font-size:12px;margin:5px 0 0;text-align:center}
  .footer-brand p{width:280px;font-size:15px}
}


/* V5.4.4: dynamic smart-search room and stable source spacing */
@media (min-width:981px){
  .home-hero{height:680px!important;}
  .home-source-strip{padding-top:30px!important;}
}
.smart-panel{min-height:0!important;}
.smart-title-row p{overflow-wrap:anywhere;}

/* AutoHaku V5.4.5 – latest listings refresh and promoted slot */
.home-promoted-section{padding:8px 5.2vw 20px;background:#fff}
.home-promoted-section .section-title{align-items:flex-end}
.home-promoted-section .section-title h2{margin-bottom:4px}
.section-kicker{margin:0;color:#6b7786;font-size:13px}
.promoted-placeholder{margin-top:18px;min-height:132px;border:1px dashed #bfd0e4;border-radius:10px;background:linear-gradient(180deg,#f8fbff,#f4f8fc);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;color:#647286}
.promoted-placeholder strong{color:#26384c;font-size:16px}
.home-latest-section{padding-bottom:22px}
.home-feature-row{margin-top:4px}
@media(max-width:760px){
  .home-promoted-section{padding:6px 16px 18px}
  .promoted-placeholder{min-height:120px;padding:20px 16px}
}

/* V5.4.6: official dealer marks and unified AutoHaku branding */
.home-logo img{content:url("autohaku-logo-transparent.png");background:transparent!important}
.home-logo small{display:block;text-align:center;width:290px;margin:7px 0 0!important;font-size:15px!important;line-height:1.25;color:#263445;font-weight:500}
.source-logos{gap:28px!important}
.source-logos .dealer-logo{height:58px;min-width:210px;padding:10px 18px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e0e6ed;border-radius:11px;background:#fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;text-decoration:none}
.source-logos .dealer-logo:hover{transform:translateY(-2px);border-color:#b9d1ee;box-shadow:0 6px 16px rgba(20,58,96,.10)}
.source-logos .dealer-logo img{display:block;max-width:180px;max-height:38px;width:auto;height:auto;object-fit:contain}
.source-logos .dealer-rj img{max-width:190px;max-height:36px}
.source-logos .dealer-kamux img{max-width:165px;max-height:40px}
.source-logos .dealer-saka img{max-width:155px;max-height:39px}
.footer-logo-card{background:transparent!important;padding:0!important;width:min(390px,100%)!important;border-radius:0!important}
.footer-logo-card img{content:url("autohaku-logo-footer.png");max-height:95px!important;width:100%;object-fit:contain}
.footer-brand>p{text-align:center;width:min(390px,100%);font-size:17px;line-height:1.3;margin:9px 0 0;color:#c7d4e2}
@media(max-width:1260px){.home-logo small{width:235px;font-size:13px!important}.source-logos .dealer-logo{min-width:185px}}
@media(max-width:650px){.home-logo small{width:190px;font-size:12px!important}.source-logos{gap:12px!important}.source-logos .dealer-logo{width:100%;min-width:0;height:54px}.source-logos .dealer-logo img{max-height:34px}.footer-brand>p{font-size:15px}}

/* AH-UI-003.1: align homepage header controls with the shared blue treatment */
.home-nav .nav-tile,.home-nav .create-account{border:1px solid #0669e8;color:#fff;background:#0669e8;box-shadow:0 5px 12px rgba(0,88,194,.18)}
.home-nav .nav-tile:hover,.home-nav .create-account:hover{border-color:#0054c7;color:#fff;background:#0054c7;box-shadow:0 6px 14px rgba(0,72,170,.24)}
.home-nav a[aria-current="page"]{border-color:#004aa6;color:#fff;background:#004aa6;box-shadow:inset 0 0 0 2px rgba(255,255,255,.28),0 5px 12px rgba(0,64,150,.25)}
.home-nav a:active{border-color:#003d89;color:#fff;background:#003d89;box-shadow:inset 0 2px 4px rgba(0,24,72,.35)}
.home-nav a:focus-visible{outline:3px solid #f0b429;outline-offset:3px}


/* V5.5.1 – viralliset autoliikelogot etusivulle */
.home-source-strip .source-logos{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}
.home-source-strip .source-logo-card{
  width:226px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border:1px solid #dfe5ec;
  border-radius:12px;
  background:#fff;
  box-shadow:0 1px 2px rgba(16,36,58,.03);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.home-source-strip .source-logo-card:hover{
  transform:translateY(-2px);
  border-color:#bfd3ec;
  box-shadow:0 7px 18px rgba(16,50,86,.09);
}
.home-source-strip .source-logo-card img{
  display:block;
  max-width:100%;
  max-height:43px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.home-source-strip .source-logo-rj img{max-width:187px;max-height:39px}
.home-source-strip .source-logo-kamux img{max-width:174px;max-height:42px}
.home-source-strip .source-logo-saka img{max-width:164px;max-height:39px}
@media(max-width:760px){
  .home-source-strip .source-logos{gap:12px}
  .home-source-strip .source-logo-card{width:calc(50% - 8px);min-width:145px;height:58px;padding:9px 13px}
  .home-source-strip .source-logo-card:last-child{width:min(226px,100%)}
}
@media(max-width:430px){
  .home-source-strip .source-logo-card{width:100%;max-width:250px}
}

/* V5.6 – ohjattu älyhaku */
.smart-chat{margin-top:18px;border-top:1px solid #dbe5f1;padding-top:18px}.smart-chat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.smart-chat-head>div{display:flex;align-items:center;gap:10px}.smart-chat-head h3{margin:0;font-size:18px}.smart-chat-badge{font-size:10px;font-weight:800;letter-spacing:.08em;color:#075bc9;background:#e8f2ff;border:1px solid #c9def8;border-radius:999px;padding:4px 7px}.smart-chat-reset{border:0;background:transparent;color:#075bc9;font-weight:700;cursor:pointer}.smart-chat-messages{max-height:300px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:4px 2px 12px}.smart-chat-message{max-width:84%;border-radius:14px;padding:10px 13px}.smart-chat-message span{display:block;font-size:11px;font-weight:800;margin-bottom:3px}.smart-chat-message p{margin:0;line-height:1.45}.smart-chat-message.is-assistant{align-self:flex-start;background:#edf5ff;border:1px solid #d5e6fb;color:#10243e}.smart-chat-message.is-user{align-self:flex-end;background:#086fe8;color:white}.smart-chat-message.is-user span{color:#dbeaff}.smart-chat-choices{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}.smart-chat-choices button{border:1px solid #cbdced;background:#f3f7fc;color:#12243b;border-radius:10px;padding:9px 13px;font-weight:700;cursor:pointer}.smart-chat-choices button:hover{background:#e5f0ff;border-color:#8fb8ea}.smart-chat-choices .smart-chat-results{width:100%;background:#086fe8;color:#fff;border-color:#086fe8;font-size:16px}.smart-chat-form{display:grid;grid-template-columns:1fr auto;gap:10px}.smart-chat-form input{min-width:0;border:1px solid #cbd7e4;border-radius:10px;padding:12px 14px;font:inherit}.smart-chat-form button{border:0;border-radius:10px;background:#086fe8;color:#fff;padding:0 20px;font-weight:800;cursor:pointer}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:700px){.smart-chat-head{align-items:flex-start}.smart-chat-message{max-width:94%}.smart-chat-form{grid-template-columns:1fr}.smart-chat-form button{padding:12px}.smart-chat-messages{max-height:360px}}

/* V5.6.1 – ohjatun haun dynaaminen korkeus */
@media(min-width:981px){
  .home-hero{height:var(--smart-hero-height,680px)!important;transition:height .18s ease}
  .home-search-card{overflow:visible}
}


/* V5.6.4: open-ended smart-search refinement */
.smart-chat-actions{margin-top:10px}
.smart-chat-actions .smart-chat-results{width:100%;min-height:44px;border:0;border-radius:10px;background:#086fe8;color:#fff;font-size:16px;font-weight:800;cursor:pointer;padding:11px 16px}
.smart-chat-actions .smart-chat-results:hover{background:#075fca}
.smart-chat-form input::placeholder{color:#748397}

/* AH-0022: production homepage AIH conversation */
.home-v2 .smart-panel {
  display: block;
  padding: 24px 28px 28px;
}
.home-aih-heading {
  min-width: 0;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: start;
  gap: 12px;
}
.home-aih-heading h2 { margin: 0 0 4px; font-size: 23px; }
.home-aih-heading p { margin: 0; color: #536274; line-height: 1.45; }
.home-aih-service {
  max-width: 250px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: #40566d !important;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.home-aih-workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(300px,.75fr);
  align-items: start;
  gap: 20px;
}
.home-aih-conversation,
.home-aih-profile {
  min-width: 0;
  padding: 18px;
  border: 1px solid #d8e2ed;
  border-radius: 12px;
  background: #fff;
}
.home-aih-conversation { display: flex; flex-direction: column; }
.home-aih-conversation > h3,
.home-aih-profile-heading h3 { margin: 0; color: #1d334b; font-size: 17px; }
.home-aih-history {
  min-height: 190px;
  max-height: 320px;
  margin: 14px 0;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  list-style: none;
}
.home-aih-history:empty::before {
  content: "Keskustelu alkaa, kun palvelu on käytettävissä ja lähetät ensimmäisen viestin.";
  margin: auto;
  padding: 18px;
  color: #69798a;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.home-aih-turn {
  width: fit-content;
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.home-aih-turn strong { display: block; margin-bottom: 3px; font-size: 11px; }
.home-aih-turn p { margin: 0; line-height: 1.45; white-space: pre-wrap; }
.home-aih-turn--user { margin-left: auto; background: #086fe8; color: #fff; }
.home-aih-turn--assistant { border: 1px solid #d6e2ef; background: #f3f7fc; color: #17304a; }
.home-aih-error,
.home-aih-clarification {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
}
.home-aih-error { border: 1px solid #c74a3e; background: #fff1ef; color: #7b1f18; }
.home-aih-clarification { border: 1px solid #82afe0; background: #edf6ff; color: #173f68; font-weight: 700; }
.home-aih-clarification-choices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 8px;
}
.home-aih-clarification-choices[hidden] { display: none; }
.home-aih-clarification-choice {
  border: 0;
  border-radius: 3px;
  padding: 1px 0;
  background: transparent;
  color: #245a91;
  font: inherit;
  font-style: italic;
  font-weight: 650;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(36, 90, 145, .45);
  text-underline-offset: 3px;
}
.home-aih-clarification-choice:hover {
  color: #0a5fb5;
  text-decoration-color: currentColor;
}
.home-aih-clarification-choice:focus-visible {
  outline: 3px solid #f5a623;
  outline-offset: 3px;
}
.home-aih-clarification-choice:disabled { opacity: .55; }
.home-aih-form { margin-top: 14px; }
.home-aih-form label { font-size: 13px; font-weight: 700; }
.home-aih-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid #aebdcd;
  border-radius: 9px;
  color: #172536;
  background: #fff;
  font: inherit;
  line-height: 1.45;
}
.home-aih-form-actions {
  min-height: 50px;
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-aih-form-actions #home-aih-loading { color: #54687c; font-size: 12px; font-weight: 700; }
.home-aih-form .smart-submit {
  width: auto;
  min-width: 180px;
  min-height: 46px;
  margin: 0;
  padding: 0 18px;
}
.home-aih-form .smart-submit:disabled { cursor: not-allowed; opacity: .58; transform: none; }
.home-aih-profile { max-height: 580px; overflow-y: auto; }
#home-aih-profile-toggle {
  width: 100%;
  min-height: 46px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #173b61;
  font-weight: 800;
  text-align: left;
}
#home-aih-profile-toggle[hidden] { display: none; }
#home-aih-profile-toggle span { float: right; }
#home-aih-profile-toggle:focus-visible,
.home-aih-form textarea:focus-visible,
.home-aih-form button:focus-visible {
  outline: 3px solid #f5a623;
  outline-offset: 2px;
}
.home-aih-profile-content[hidden] { display: none; }
.home-aih-profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-aih-profile-heading > span { color: #65778a; font-size: 11px; font-weight: 700; }
.home-aih-profile-content section { padding: 14px 0 0; margin-top: 14px; border-top: 1px solid #e3eaf2; }
.home-aih-profile-content h4 { margin: 0 0 8px; color: #40576e; font-size: 12px; }
.home-aih-profile-content section > p { margin: 0; font-size: 12px; line-height: 1.4; }
.home-aih-readiness { margin-bottom: 4px !important; color: #0a6937; font-size: 15px !important; font-weight: 800; }
.home-aih-start-search {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: #086fe8;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.home-aih-start-search[hidden] { display: none; }
.home-aih-start-search:hover { background: #075fc8; }
.home-aih-start-search:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.home-aih-start-search:disabled { cursor: not-allowed; opacity: .58; }
.home-aih-profile-list { margin: 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.home-aih-profile-list li {
  min-width: 0;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 7px;
  background: #f4f7fa;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.home-aih-profile-list li > strong { color: #075fc8; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.home-aih-conditions-button {
  width: 100%;
  min-height: 40px;
  margin-top: 9px;
  border: 1px solid #aac0d8;
  border-radius: 7px;
  background: #fff;
  color: #075fc8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.home-aih-conditions-button:focus-visible,
.home-aih-condition-remove:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.home-aih-conditions-button:disabled { cursor: not-allowed; opacity: .58; }
.home-aih-new-search {
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  border: 0;
  background: transparent;
  color: #526b85;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-aih-new-search:hover { color: #075fc8; }
.home-aih-new-search:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.home-aih-new-search[hidden] { display: none; }
.home-aih-new-search:disabled { cursor: not-allowed; opacity: .58; }
.home-aih-condition-remove {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.home-aih-profile-value--explicit { border-left: 4px solid #086fe8; }
.home-aih-profile-value--derived { border-left: 4px solid #6b4eb3; }
.home-aih-profile-value--suggested { border-left: 4px solid #c58400; }
.home-aih-pending-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.home-aih-pending-actions button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #9bb6d2;
  border-radius: 6px;
  background: #fff;
  color: #075fc8;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.home-aih-pending-actions button[data-decision="accept"] { border-color: #08783f; color: #08783f; }
.home-aih-pending-actions button:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.home-aih-pending-actions button:disabled { cursor: not-allowed; opacity: .58; }
.home-aih-semantic-class { color: #526b85; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.home-aih-section-help { margin: -2px 0 8px; color: #526b85; font-size: 11px; }
.home-aih-semantic-details { border-top: 1px solid #d8e2ed; padding-top: 10px; }
.home-aih-semantic-details summary { color: #3f5871; cursor: pointer; font-size: 12px; font-weight: 800; }
.home-aih-semantic-details[open] summary { margin-bottom: 8px; }
#home-aih-pending-section[hidden],
#home-aih-semantic-section[hidden] { display: none; }
#home-aih-unresolved li { border-left: 4px solid #a33a30; }
.home-aih-profile-empty { color: #637284; font-style: italic; }
.home-aih-edit-feedback {
  min-height: 18px;
  margin: 10px 0 0;
  color: #17643a;
  font-size: 12px;
  font-weight: 700;
}
.home-aih-editor[hidden] { display: none; }
.home-aih-editor {
  padding: 13px !important;
  border: 1px solid #9dbce0 !important;
  border-radius: 9px;
  background: #f5f9fe;
}
.home-aih-editor h4 { color: #173b61 !important; font-size: 14px !important; }
.home-aih-editor label:not(.home-aih-editor-confirm) { display: block; margin: 10px 0 5px; font-size: 12px; font-weight: 800; }
.home-aih-editor input:not([type="checkbox"]) { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #9eafc1; border-radius: 7px; font: inherit; }
.home-aih-editor-confirm { margin-top: 10px; display: flex; align-items: flex-start; gap: 8px; color: #3a4e63; font-size: 12px; font-weight: 700; }
.home-aih-editor-confirm input { width: 20px; height: 20px; flex: 0 0 auto; }
.home-aih-editor-error { min-height: 17px; margin: 8px 0 0; color: #8b241c; font-size: 12px; font-weight: 700; }
.home-aih-editor-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.home-aih-editor-actions button,
.home-aih-edit-action { min-height: 40px; padding: 7px 10px; border: 1px solid #aac0d8; border-radius: 7px; background: #fff; color: #075fc8; font-size: 11px; font-weight: 800; cursor: pointer; }
.home-aih-editor-actions button[type="submit"] { border-color: #086fe8; background: #086fe8; color: #fff; }
.home-aih-profile-actions { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.home-aih-profile-actions small { max-width: 120px; color: #6a7480; font-size: 9px; line-height: 1.2; }
.home-aih-edit-action:focus-visible,
.home-aih-editor input:focus-visible,
.home-aih-editor button:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.home-aih-edit-action:disabled,
.home-aih-editor button:disabled { cursor: not-allowed; opacity: .58; }

@media(max-width:1100px) {
  .home-aih-workspace { grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); }
}
@media(max-width:900px) {
  .home-aih-heading { grid-template-columns: auto minmax(0,1fr); }
  .home-aih-service { grid-column: 2; max-width: none; justify-self: start; }
  .home-aih-workspace { min-width: 0; grid-template-columns: minmax(0,1fr); }
  .home-aih-conversation { order: 1; }
  .home-aih-profile { order: 2; max-height: none; }
  #home-aih-profile-toggle { display: block; }
}
@media(max-width:520px) {
  .home-v2 .smart-panel { padding: 18px 13px; }
  .home-aih-heading { grid-template-columns: 1fr; }
  .home-aih-heading .smart-icon { display: none; }
  .home-aih-service { grid-column: 1; }
  .home-aih-conversation,
  .home-aih-profile { padding: 14px; }
  .home-aih-history { min-height: 220px; padding: 0; }
  .home-aih-turn { max-width: 94%; }
  .home-aih-form-actions { align-items: stretch; flex-direction: column; }
  .home-aih-form .smart-submit { width: 100%; }
  .home-aih-profile-list li { align-items: flex-start; flex-direction: column; }
  .home-aih-profile-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .home-aih-editor-actions { flex-direction: column; }
  .home-aih-editor-actions button { width: 100%; }
}
