.hysi-selector,.hysi-preview{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border:1px solid rgba(15,23,42,.08);background:#fff;border-radius:26px;box-shadow:0 16px 44px rgba(15,23,42,.07);padding:18px;margin:14px 0}.hysi-selector-head span{display:inline-flex;border-radius:999px;background:rgba(109,40,217,.08);color:#6d28d9;padding:6px 10px;font-size:12px;font-weight:950;text-transform:uppercase}.hysi-selector-head h3{margin:10px 0 4px;font-size:28px;letter-spacing:-.04em;color:#0f172a}.hysi-selector-head p{margin:0 0 14px;color:#64748b;font-weight:750}.hysi-search-row{display:flex;gap:8px}.hysi-search-row input{flex:1;border:1px solid rgba(15,23,42,.12);border-radius:999px;padding:12px 14px;font:inherit;font-weight:800}.hysi-search-row button,.hysi-manual-choice,.hysi-result button{border:0;border-radius:999px;background:#6d28d9;color:#fff;padding:12px 15px;font-weight:950;cursor:pointer}.hysi-results{display:grid;gap:8px;margin-top:12px}.hysi-result{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid rgba(15,23,42,.08);background:#f8fafc;border-radius:20px;padding:12px}.hysi-result strong{display:block;color:#0f172a}.hysi-result small{color:#64748b;font-weight:800}.hysi-manual{margin-top:12px}.hysi-tree details{margin:6px 0;padding:8px;border:1px solid rgba(15,23,42,.06);border-radius:14px;background:#fff}.hysi-manual-choice{margin:5px;background:#0f172a;padding:8px 11px}.hysi-preview strong{display:block;color:#0f172a;font-size:18px}.hysi-preview p{color:#64748b;font-weight:750}.hysi-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.hysi-cards div{background:#fff;border:1px solid #dcdcde;border-radius:14px;padding:16px;box-shadow:0 8px 24px rgba(0,0,0,.04)}.hysi-cards strong{display:block;font-size:28px;color:#6d28d9}.hysi-cards span{color:#646970;font-weight:700}@media(max-width:720px){.hysi-search-row{display:grid}.hysi-result{display:grid}.hysi-cards{grid-template-columns:1fr 1fr}}


/* v0.2.0 dual selector + manual fallback */
.hysi-selector{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  border-radius:26px;
  padding:18px;
  box-shadow:0 16px 50px rgba(15,23,42,.07);
  max-width:920px;
  margin:16px auto;
}
.hysi-head span{
  display:inline-flex;
  border-radius:999px;
  padding:6px 10px;
  background:rgba(109,40,217,.09);
  color:#6d28d9;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}
.hysi-head h3{
  margin:10px 0 4px;
  font-size:clamp(26px,4vw,42px);
  line-height:1;
  letter-spacing:-.055em;
  color:#0f172a;
}
.hysi-head p{
  margin:0 0 14px;
  color:#64748b;
  font-weight:750;
}
.hysi-search-row{
  display:flex;
  gap:8px;
}
.hysi-search-row input{
  flex:1;
  min-width:0;
  border:1px solid rgba(15,23,42,.13);
  border-radius:18px;
  padding:13px 14px;
  font:inherit;
  font-weight:800;
}
.hysi-search-row button,
.hysi-manual-toggle{
  border:0;
  border-radius:999px;
  padding:12px 15px;
  background:#6d28d9;
  color:#fff;
  font-weight:950;
  cursor:pointer;
}
.hysi-manual-toggle{
  margin-top:8px;
  background:transparent;
  color:#6d28d9;
  border:1px solid rgba(109,40,217,.22);
  font-size:12px;
  padding:8px 11px;
}
.hysi-results{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.hysi-result-card{
  text-align:left;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  border-radius:18px;
  padding:12px;
  cursor:pointer;
  display:grid;
  gap:3px;
}
.hysi-result-card:hover,
.hysi-result-card.is-selected{
  border-color:rgba(109,40,217,.55);
  box-shadow:0 10px 28px rgba(109,40,217,.12);
}
.hysi-result-card strong{
  color:#0f172a;
  font-size:15px;
}
.hysi-result-card span{
  color:#6d28d9;
  font-size:12px;
  font-weight:900;
}
.hysi-result-card p{
  margin:0;
  color:#64748b;
  font-size:13px;
}
.hysi-result-card em{
  color:#94a3b8;
  font-size:11px;
  font-style:normal;
  font-weight:900;
}
.hysi-empty,.hysi-muted{
  border-radius:16px;
  background:#f8fafc;
  color:#64748b;
  padding:12px;
  font-weight:800;
}
.hysi-manual{
  margin-top:12px;
  border-top:1px solid rgba(15,23,42,.08);
  padding-top:12px;
}
.hysi-manual-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.hysi-manual-grid label{
  display:grid;
  gap:6px;
  color:#0f172a;
  font-weight:900;
  font-size:13px;
}
.hysi-manual-grid select{
  width:100%;
  border:1px solid rgba(15,23,42,.12);
  border-radius:15px;
  padding:10px;
  font:inherit;
  font-weight:750;
  background:#fff;
}
.hysi-picked{
  margin-top:10px;
  border-radius:18px;
  padding:12px;
  background:rgba(109,40,217,.07);
  color:#0f172a;
}
.hysi-picked strong{display:block}
.hysi-picked span{display:block;color:#6d28d9;font-weight:900;font-size:12px;margin-top:3px}
@media(max-width:760px){
  .hysi-search-row{display:grid}
  .hysi-search-row button{width:100%}
  .hysi-manual-grid{grid-template-columns:1fr}
}


/* v0.4.3-safe admin selector preview */
.hysi-admin-preview-layout{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:16px;
}
.hysi-admin-preview-panel{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  padding:14px;
  box-shadow:0 10px 32px rgba(15,23,42,.05);
}
.hysi-admin-preview-panel h3{
  margin:0 0 10px;
  color:#111827;
}
.hysi-admin-preview-panel .hysi-selector{
  margin:0;
  max-width:none;
  box-shadow:none;
}
.hysi-admin-test-terms{
  margin-top:18px;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  padding:14px;
}
.hysi-test-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.hysi-test-grid ul{
  margin:.4em 0 0 1em;
}
@media(max-width:1200px){
  .hysi-admin-preview-layout{grid-template-columns:1fr}
  .hysi-test-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .hysi-test-grid{grid-template-columns:1fr}
}


/* v0.5.0 missing service suggestion */
.hysi-missing-service{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(15,23,42,.14);
}
.hysi-missing-toggle{
  border:0;
  background:transparent;
  color:#6d28d9;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
  padding:6px 0;
  text-decoration:underline;
  text-underline-offset:3px;
}
.hysi-missing-box{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:center;
  margin-top:6px;
}
.hysi-missing-box input{
  border:1px solid rgba(15,23,42,.12);
  border-radius:14px;
  padding:10px 11px;
  font:inherit;
  font-weight:750;
}
.hysi-missing-box button{
  border:0;
  border-radius:999px;
  padding:10px 13px;
  background:#111827;
  color:#fff;
  font-weight:950;
  cursor:pointer;
}
.hysi-missing-box p{
  grid-column:1/-1;
  margin:0;
  font-size:12px;
  color:#64748b;
  font-weight:800;
}
@media(max-width:760px){
  .hysi-missing-box{grid-template-columns:1fr}
}


/* v0.5.1 responsive swatch + compact missing service action */
.hysi-quick-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.hysi-quick-actions .hysi-manual-toggle{
  margin-top:0;
}
.hysi-missing-service-inline{
  margin-top:0;
  padding-top:0;
  border-top:0;
  position:relative;
}
.hysi-missing-service-inline .hysi-missing-toggle{
  font-size:12px;
  padding:8px 2px;
  white-space:nowrap;
}
.hysi-missing-service-inline .hysi-missing-box{
  position:absolute;
  z-index:20;
  top:100%;
  left:0;
  width:min(420px, 88vw);
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
  border-radius:18px;
  padding:10px;
  box-shadow:0 16px 44px rgba(15,23,42,.14);
}
.hysi-device-switch{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0;
}
.hysi-device-switch button{
  border:1px solid rgba(109,40,217,.20);
  background:#fff;
  color:#6d28d9;
  border-radius:999px;
  padding:8px 12px;
  font-weight:950;
  cursor:pointer;
}
.hysi-device-switch button.is-active{
  background:#6d28d9;
  color:#fff;
}
.hysi-admin-device-frame{
  width:100%;
  margin:0 auto;
  transition:max-width .22s ease, box-shadow .22s ease, padding .22s ease;
}
.hysi-admin-device-frame[data-device="desktop"]{
  max-width:100%;
}
.hysi-admin-device-frame[data-device="tablet"]{
  max-width:820px;
  padding:14px;
  border-radius:28px;
  box-shadow:0 0 0 1px rgba(15,23,42,.08), 0 20px 60px rgba(15,23,42,.10);
  background:#f8fafc;
}
.hysi-admin-device-frame[data-device="mobile"]{
  max-width:420px;
  padding:12px;
  border-radius:30px;
  box-shadow:0 0 0 1px rgba(15,23,42,.10), 0 20px 60px rgba(15,23,42,.14);
  background:#f8fafc;
}
.hysi-admin-device-frame[data-device="tablet"] .hysi-admin-preview-layout,
.hysi-admin-device-frame[data-device="mobile"] .hysi-admin-preview-layout{
  grid-template-columns:1fr;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-selector{
  padding:14px;
  border-radius:22px;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-head h3{
  font-size:28px;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-search-row,
.hysi-admin-device-frame[data-device="mobile"] .hysi-manual-grid,
.hysi-admin-device-frame[data-device="mobile"] .hysi-missing-box{
  grid-template-columns:1fr;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-missing-service-inline{
  width:100%;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-missing-service-inline .hysi-missing-box{
  position:static;
  width:100%;
  box-shadow:none;
  margin-top:6px;
}
@media(max-width:760px){
  .hysi-quick-actions{
    align-items:flex-start;
  }
  .hysi-missing-service-inline{
    width:100%;
  }
  .hysi-missing-service-inline .hysi-missing-box{
    position:static;
    width:100%;
    box-shadow:none;
    margin-top:6px;
  }
}


/* v0.5.2 minimal missing service + mobile suggestions */
.hysi-missing-box{
  animation:hysiFadeIn .18s ease both;
}
@keyframes hysiFadeIn{
  from{opacity:0; transform:translateY(-4px)}
  to{opacity:1; transform:translateY(0)}
}
.hysi-missing-context{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  grid-column:1/-1;
  font-size:11px;
  color:#475569;
  font-weight:850;
}
.hysi-missing-context span{
  border:1px solid rgba(15,23,42,.08);
  background:#f8fafc;
  border-radius:999px;
  padding:5px 7px;
}
.hysi-missing-lock{
  grid-column:1/-1;
  margin:0;
  color:#64748b;
  font-size:12px;
  font-weight:850;
}
.hysi-missing-box input[hidden],
.hysi-missing-box button[hidden],
.hysi-missing-box p[hidden]{
  display:none!important;
}
@media(max-width:760px){
  .hysi-results{
    display:grid;
    gap:8px;
    max-height:none;
    overflow:visible;
  }
  .hysi-result-card{
    width:100%;
  }
  .hysi-result-card p{
    font-size:12px;
    line-height:1.35;
  }
}


/* v0.5.3 mode swatch */
.hysi-mode-switcher{
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg,#fff,#fbfdff);
  border-radius:28px;
  padding:14px;
  box-shadow:0 18px 55px rgba(15,23,42,.07);
}
.hysi-mode-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.hysi-mode-head h3{
  margin:0;
  font-size:clamp(22px,3.2vw,34px);
  line-height:1;
  letter-spacing:-.045em;
  color:#111827;
}
.hysi-mode-buttons{
  display:flex;
  gap:8px;
  padding:5px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid rgba(15,23,42,.07);
}
.hysi-mode-buttons button{
  border:0;
  border-radius:999px;
  padding:10px 13px;
  background:transparent;
  color:#475569;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}
.hysi-mode-buttons button.is-active{
  background:#6d28d9;
  color:#fff;
  box-shadow:0 10px 22px rgba(109,40,217,.20);
}
.hysi-mode-panel[hidden]{
  display:none!important;
}
.hysi-mode-panel .hysi-selector{
  margin:0;
  max-width:none;
  box-shadow:none;
  border-color:rgba(15,23,42,.06);
}
.hysi-admin-preview-layout-single{
  grid-template-columns:1fr;
}
@media(max-width:760px){
  .hysi-mode-head{
    display:grid;
    gap:10px;
  }
  .hysi-mode-buttons{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .hysi-mode-buttons button{
    padding:10px 8px;
    font-size:12px;
  }
}


/* v0.5.6 mobile UX refinement */
.hysi-missing-service[hidden],
.hysi-missing-box[hidden]{
  display:none!important;
}
.hysi-view-more{
  width:max-content;
  border:1px solid rgba(109,40,217,.22);
  background:#fff;
  color:#6d28d9;
  border-radius:999px;
  padding:8px 11px;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
}
@media(max-width:760px){
  .hysi-mode-head{
    display:block!important;
    text-align:center;
  }
  .hysi-mode-head h3{
    width:100%;
    display:block;
    text-align:center;
    margin:0 0 12px!important;
    font-size:26px!important;
    line-height:1.08!important;
  }
  .hysi-mode-buttons{
    width:100%;
    margin-top:8px;
  }
  .hysi-head{
    text-align:center;
  }
  .hysi-head span{
    margin-inline:auto;
  }
  .hysi-head h3,
  .hysi-head p{
    text-align:center;
  }
  .hysi-search-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .hysi-search-row input{
    width:100%!important;
    min-height:48px;
  }
  .hysi-search-row button{
    width:100%!important;
    min-height:46px;
  }
  .hysi-quick-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .hysi-quick-actions .hysi-manual-toggle{
    width:100%;
    justify-content:center;
    text-align:center;
  }
  .hysi-missing-service-inline{
    text-align:center;
  }
}


/* v0.5.7 hard mobile-preview fix */
[data-hysi-missing-wrap][hidden],
.hysi-missing-service[hidden],
.hysi-missing-box[hidden]{
  display:none!important;
}

/* Apply mobile layout inside admin simulated mobile frame, not only real viewport */
.hysi-admin-device-frame[data-device="mobile"] .hysi-mode-head{
  display:block!important;
  text-align:center!important;
  width:100%!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-mode-head h3{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  text-align:center!important;
  margin:0 0 12px!important;
  font-size:26px!important;
  line-height:1.08!important;
  letter-spacing:-.04em!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-mode-buttons{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  width:100%!important;
  margin-top:8px!important;
  gap:6px!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-mode-buttons button{
  width:100%!important;
  min-width:0!important;
  padding:10px 8px!important;
  font-size:12px!important;
  white-space:normal!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-head{
  text-align:center!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-head span{
  margin-left:auto!important;
  margin-right:auto!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-head h3,
.hysi-admin-device-frame[data-device="mobile"] .hysi-head p{
  text-align:center!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-search-row{
  display:grid!important;
  grid-template-columns:1fr!important;
  width:100%!important;
  gap:8px!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-search-row input,
.hysi-admin-device-frame[data-device="mobile"] .hysi-search-row button{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-search-row input{
  min-height:48px!important;
  padding:13px 14px!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-search-row button{
  min-height:46px!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-quick-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  width:100%!important;
  gap:7px!important;
  justify-items:stretch!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-manual-toggle{
  width:100%!important;
  text-align:center!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-missing-service-inline{
  width:100%!important;
  text-align:center!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-manual[hidden]{
  display:none!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-selector{
  overflow:hidden!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-manual-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
}
.hysi-admin-device-frame[data-device="mobile"] .hysi-manual-grid select{
  width:100%!important;
}

/* Same rules for actual mobile viewport */
@media(max-width:760px){
  .hysi-mode-head{
    display:block!important;
    text-align:center!important;
    width:100%!important;
  }
  .hysi-mode-head h3{
    display:block!important;
    width:100%!important;
    text-align:center!important;
    margin:0 0 12px!important;
    font-size:26px!important;
    line-height:1.08!important;
  }
  .hysi-mode-buttons{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    gap:6px!important;
  }
  .hysi-search-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:8px!important;
  }
  .hysi-search-row input,
  .hysi-search-row button{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .hysi-quick-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
  }
}


/* v0.5.8 manual hint */
.hysi-manual-hint{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  padding:9px 10px;
  border-radius:16px;
  background:#f8fafc;
  color:#64748b;
  font-size:12px;
  font-weight:850;
}
.hysi-manual-hint button{
  border:0;
  background:transparent;
  color:#6d28d9;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
  padding:0;
  text-decoration:underline;
  text-underline-offset:3px;
}
@media(max-width:760px){
  .hysi-manual-hint{
    justify-content:center;
    text-align:center;
  }
}


/* v0.6.0 export cards + missing guide */
.hysi-export-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
.hysi-export-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:20px;
  padding:14px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}
.hysi-export-card h3{
  margin:0 0 6px;
}
.hysi-export-card p{
  margin:0 0 12px;
  color:#64748b;
  font-weight:700;
}
.hysi-missing-guide{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  padding:8px;
  color:#475569;
  font-size:12px;
  font-weight:850;
}
.hysi-missing-guide[hidden]{
  display:none!important;
}
.hysi-missing-guide button{
  border:0;
  border-radius:999px;
  background:#111827;
  color:#fff;
  padding:8px 10px;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}
@media(max-width:900px){
  .hysi-export-grid{grid-template-columns:1fr}
  .hysi-missing-guide{
    display:grid;
    text-align:center;
  }
  .hysi-missing-guide button{
    width:100%;
  }
}


/* v0.6.1 AI helper guide export */
.hysi-export-card-wide{
  grid-column:1/-1;
  background:linear-gradient(135deg,#ffffff,#f8f5ff);
  border-color:rgba(109,40,217,.18);
}


/* v0.6.7-mobile-suggestions-safe — mobile suggestion panel above keyboard */
.hysi-mobile-suggest-panel,
.hysi-mobile-overlay{
  display:none;
}
@media (max-width: 760px){
  .hysi-mobile-suggest-panel{
    display:block;
    position:fixed;
    left:12px;
    right:12px;
    bottom:calc(12px + env(safe-area-inset-bottom));
    z-index:99990;
    border:1px solid rgba(15,23,42,.12);
    border-radius:20px;
    background:#fff;
    box-shadow:0 22px 70px rgba(15,23,42,.28);
    padding:10px;
  }
  .hysi-mobile-suggest-panel[hidden]{display:none!important;}
  .hysi-mobile-suggest-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
  }
  .hysi-mobile-suggest-head span{
    font-size:12px;
    color:#475569;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .hysi-mobile-suggest-head button,
  .hysi-mobile-overlay-head button{
    width:32px;
    height:32px;
    border:0;
    border-radius:999px;
    background:#0f172a;
    color:#fff;
    font-size:22px;
    line-height:1;
    cursor:pointer;
  }
  .hysi-mobile-suggest-list{
    display:grid;
    gap:7px;
  }
  .hysi-mobile-suggest-option,
  .hysi-mobile-overlay-option{
    width:100%;
    text-align:left;
    border:1px solid rgba(15,23,42,.10);
    border-radius:15px;
    background:#f8fafc;
    padding:10px 11px;
    cursor:pointer;
  }
  .hysi-mobile-suggest-option strong,
  .hysi-mobile-overlay-option strong{
    display:block;
    color:#0f172a;
    font-size:14px;
    line-height:1.25;
  }
  .hysi-mobile-suggest-option span,
  .hysi-mobile-overlay-option span{
    display:block;
    margin-top:3px;
    color:#64748b;
    font-size:11px;
    font-weight:800;
  }
  .hysi-mobile-overlay-option p{
    margin:6px 0 0;
    color:#475569;
    font-size:12px;
    line-height:1.35;
  }
  .hysi-mobile-more{
    width:100%;
    margin-top:8px;
    min-height:39px;
    border:0;
    border-radius:999px;
    background:#111827;
    color:#fff;
    font-weight:900;
    cursor:pointer;
  }
  .hysi-mobile-more[hidden]{display:none!important;}
  .hysi-mobile-overlay{
    display:block;
    position:fixed;
    inset:0;
    z-index:99995;
    background:rgba(15,23,42,.54);
    padding:14px;
  }
  .hysi-mobile-overlay[hidden]{display:none!important;}
  .hysi-mobile-overlay-card{
    height:100%;
    max-height:calc(100dvh - 28px);
    overflow:auto;
    border-radius:24px;
    background:#fff;
    box-shadow:0 28px 80px rgba(15,23,42,.34);
    padding:14px;
  }
  .hysi-mobile-overlay-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    position:sticky;
    top:0;
    z-index:2;
    background:#fff;
    padding-bottom:10px;
    border-bottom:1px solid rgba(15,23,42,.08);
  }
  .hysi-mobile-overlay-head strong{
    display:block;
    color:#0f172a;
    font-size:18px;
  }
  .hysi-mobile-overlay-head span{
    display:block;
    margin-top:3px;
    color:#64748b;
    font-size:12px;
    font-weight:800;
  }
  .hysi-mobile-overlay-list{
    display:grid;
    gap:8px;
    padding-top:12px;
  }
  html.hysi-mobile-overlay-open,
  html.hysi-mobile-overlay-open body{
    overflow:hidden!important;
  }
}


/* v0.6.9-focus-mode-selector-safe — central HYSI focus mode */
.hysi-focus-backdrop{
  position:fixed;
  inset:0;
  z-index:99980;
  background:rgba(15,23,42,.52);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.hysi-focus-backdrop[hidden]{display:none!important;}
html.hysi-focus-open,
html.hysi-focus-open body{
  overflow:hidden!important;
}
.hysi-selector.is-hysi-focus-panel{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:99991!important;
  width:min(920px,calc(100vw - 32px))!important;
  max-width:920px!important;
  max-height:calc(100dvh - 32px)!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  margin:0!important;
  box-shadow:0 30px 100px rgba(15,23,42,.38)!important;
  border-color:rgba(255,255,255,.42)!important;
  animation:hysiFocusIn .16s ease-out;
}
.hysi-focus-close{
  position:absolute;
  top:12px;
  right:12px;
  z-index:3;
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:24px;
  line-height:1;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(15,23,42,.20);
}
.hysi-focus-close span{display:block;transform:translateY(-1px);}
.hysi-selector:not(.is-hysi-focus-panel) .hysi-focus-close{display:none!important;}
.hysi-selector.is-hysi-focus-panel .hysi-head{padding-right:34px;}
@keyframes hysiFocusIn{
  from{opacity:.78;transform:translate(-50%,-48%) scale(.985);}
  to{opacity:1;transform:translate(-50%,-50%) scale(1);}
}
@media(max-width:760px){
  .hysi-focus-backdrop{
    background:rgba(15,23,42,.60);
    -webkit-backdrop-filter:blur(7px);
    backdrop-filter:blur(7px);
  }
  .hysi-selector.is-hysi-focus-panel{
    left:10px!important;
    right:10px!important;
    bottom:calc(10px + env(safe-area-inset-bottom))!important;
    top:auto!important;
    transform:none!important;
    width:auto!important;
    max-width:none!important;
    max-height:calc(100dvh - 20px - env(safe-area-inset-bottom))!important;
    border-radius:24px!important;
    padding:16px!important;
  }
  .hysi-focus-close{
    top:10px;
    right:10px;
    width:32px;
    height:32px;
  }
  .hysi-selector.is-hysi-focus-panel .hysi-head h3{
    font-size:24px!important;
    line-height:1.08!important;
  }
  .hysi-selector.is-hysi-focus-panel .hysi-head p{
    font-size:13px!important;
    line-height:1.35!important;
  }
}


/* v0.6.23 human emergency 112 alert */
.hysi-emergency-112{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  border:1px solid rgba(220,38,38,.24);
  background:linear-gradient(135deg,#fff1f2,#fff7ed);
  border-radius:18px;
  padding:13px;
  box-shadow:0 14px 34px rgba(185,28,28,.10);
}
.hysi-emergency-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#dc2626;
  color:#fff;
  font-weight:1000;
  font-size:20px;
  line-height:1;
}
.hysi-emergency-copy strong{
  display:block;
  color:#991b1b;
  font-size:14px;
  font-weight:1000;
  letter-spacing:-.01em;
}
.hysi-emergency-copy p{
  margin:3px 0 0;
  color:#7f1d1d;
  font-size:13px;
  line-height:1.35;
  font-weight:800;
}
.hysi-emergency-call{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  border-radius:999px;
  padding:9px 12px;
  background:#dc2626;
  color:#fff!important;
  text-decoration:none!important;
  font-size:12px;
  font-weight:1000;
  white-space:nowrap;
  box-shadow:0 10px 22px rgba(220,38,38,.20);
}
@media(max-width:760px){
  .hysi-emergency-112{grid-template-columns:auto 1fr;}
  .hysi-emergency-call{grid-column:1/-1;width:100%;}
}

/* v0.6.24 smart relevance selector */
.hysi-result-card .hysi-result-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  margin-top:8px;
}
.hysi-result-card .hysi-result-meta em{
  margin:0;
}
.hysi-result-card .hysi-result-meta small{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:3px 8px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.01em;
  background:rgba(17,24,39,.06);
  color:#111827;
}
.hysi-result-card.hysi-confidence-strong .hysi-result-meta small{
  background:rgba(22,163,74,.10);
  color:#166534;
}
.hysi-result-card.hysi-confidence-medium .hysi-result-meta small{
  background:rgba(37,99,235,.10);
  color:#1d4ed8;
}
.hysi-result-card.hysi-confidence-weak .hysi-result-meta small{
  background:rgba(245,158,11,.12);
  color:#92400e;
}
.hysi-result-reason{
  margin-top:7px;
  padding:7px 9px;
  border-radius:12px;
  background:rgba(17,24,39,.045);
  color:#374151;
  font-size:12px;
  font-weight:750;
  line-height:1.35;
}
.hysi-selector .hysi-empty + .hysi-manual-hint,
.hysi-selector .hysi-result-card + .hysi-manual-hint{
  margin-top:10px;
}
@media(max-width:760px){
  .hysi-result-reason{font-size:11px;padding:6px 8px;}
  .hysi-result-card .hysi-result-meta{gap:5px;}
}


/* v0.6.33-mobile-selector-manual-more-cleanup-safe */
@media (max-width:760px){
  .hysi-mobile-suggest-panel,
  .hysi-mobile-overlay{
    display:none!important;
  }
  .hysi-manual.is-open{
    display:block!important;
    margin-top:12px!important;
  }
  .hysi-selector.is-hysi-focus-panel .hysi-results{
    padding-bottom:8px;
  }
  .hysi-view-more{
    width:100%;
    min-height:42px;
    border-radius:999px;
    font-weight:900;
  }
}
