/*
 * IMPERIUM Build442 R1 — Account GUI & Form Controls Hardening
 */

body:not(.no-auth) input[type="checkbox"],
body:not(.no-auth) input[type="radio"]{
  box-sizing:border-box!important;
  display:inline-block!important;
  flex:0 0 22px!important;
  width:22px!important;
  min-width:22px!important;
  max-width:22px!important;
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  vertical-align:middle!important;
  accent-color:#52dfe8!important;
}

.aic442-create-details{
  border:1px solid rgba(102,199,224,.18);
  background:#051a27;
  border-radius:17px;
  overflow:hidden;
}
.aic442-create-details>summary{
  padding:14px 16px;
  cursor:pointer;
  font-weight:900;
  color:#edfaff;
  background:linear-gradient(180deg,rgba(9,43,60,.88),rgba(5,28,41,.9));
}
.aic442-create-form{
  padding:15px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.aic442-create-form>label{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  color:#d9e9f1!important;
}
.aic442-create-form>label>span{
  font-size:.8rem;
  font-weight:800;
  color:#9fb4c2;
}
.aic442-create-form input:not([type="checkbox"]),
.aic442-create-form select{
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  height:auto!important;
  padding:10px 12px!important;
  border-radius:13px!important;
  border:1px solid rgba(105,197,222,.23)!important;
  background:#03151f!important;
  color:#f3fbff!important;
  font-size:1rem!important;
  line-height:1.25!important;
  box-sizing:border-box!important;
}
.aic442-create-form .wide,
.aic442-structures,
.aic442-create-actions{grid-column:1/-1}

.aic442-structures{
  margin:0!important;
  padding:13px!important;
  min-width:0!important;
  border:1px solid rgba(105,197,222,.2)!important;
  border-radius:16px!important;
  background:#041923!important;
}
.aic442-structures legend{
  padding:0 7px!important;
  color:#d8e9f2!important;
  font-weight:900!important;
}
.aic442-structure-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
}
.aic442-structure-option{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  min-width:0!important;
  min-height:58px!important;
  margin:0!important;
  padding:11px 12px!important;
  border:1px solid rgba(93,194,220,.18)!important;
  border-radius:14px!important;
  background:#06202e!important;
  color:#eefaff!important;
  cursor:pointer!important;
}
.aic442-structure-option span{
  min-width:0!important;
  font-weight:850!important;
  font-size:.92rem!important;
  line-height:1.2!important;
  overflow-wrap:anywhere!important;
}
.aic442-create-actions{display:flex;flex-wrap:wrap;gap:8px}

/* Legacy /admin/pannello/users-legacy */
.admin174-form .admin238-structures{
  min-width:0!important;
  margin:0!important;
  padding:13px!important;
  border:1px solid rgba(102,196,222,.22)!important;
  border-radius:17px!important;
  background:#041923!important;
  color:#e9f7fc!important;
}
.admin174-form .admin238-structures>legend{
  padding:0 7px!important;
  color:#e1eff6!important;
  font-weight:900!important;
}
.admin174-form .admin238-checkgrid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
}
.admin174-form .admin238-checkgrid>label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  width:auto!important;
  min-width:0!important;
  min-height:58px!important;
  height:auto!important;
  margin:0!important;
  padding:11px 12px!important;
  border:1px solid rgba(95,194,221,.19)!important;
  border-radius:14px!important;
  background:#06202e!important;
  color:#edf9ff!important;
  box-shadow:none!important;
}
.admin174-form .admin238-checkgrid>label>input[type="checkbox"]{
  flex:0 0 22px!important;
  width:22px!important;
  min-width:22px!important;
  max-width:22px!important;
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
}
.admin174-form .admin238-checkgrid>label>span{
  min-width:0!important;
  color:#e7f4fa!important;
  font-size:.92rem!important;
  font-weight:850!important;
  line-height:1.2!important;
}
.admin174-form :where(input:not([type="checkbox"]),select){
  min-width:0!important;
  max-width:100%!important;
}
.admin174-form select{
  font-size:.94rem!important;
  text-overflow:ellipsis!important;
}
.aic440-shell,.admin267-fragment{
  padding-bottom:max(116px,calc(96px + env(safe-area-inset-bottom,0px)))!important;
}

@media(max-width:760px){
  .aic442-create-form{grid-template-columns:1fr;padding:13px}
  .aic442-create-form .wide,
  .aic442-structures,
  .aic442-create-actions{grid-column:auto}
  .aic442-structure-grid,
  .admin174-form .admin238-checkgrid{grid-template-columns:1fr!important}
  .aic442-structure-option,
  .admin174-form .admin238-checkgrid>label{min-height:54px!important}
  .aic442-create-actions{display:grid;grid-template-columns:1fr}
  .aic442-create-actions>*{width:100%!important}
}

@media(max-width:420px){
  body:not(.no-auth) input[type="checkbox"],
  body:not(.no-auth) input[type="radio"]{
    flex-basis:21px!important;
    width:21px!important;min-width:21px!important;max-width:21px!important;
    height:21px!important;min-height:21px!important;max-height:21px!important;
  }
}
