/* White Gold safe UI polish preview — branch only */
:root{
  --wg-navy:#17324d;
  --wg-navy-2:#10283d;
  --wg-gold:#bd9022;
  --wg-bg:#f4f6f8;
  --wg-border:#d9dee5;
  --wg-text:#17202a;
  --wg-muted:#667085;
  --wg-green:#247a45;
  --wg-polish-card-shadow:0 10px 28px rgba(23,50,77,.08);
}

body[data-workshop-ui-version]{
  background:linear-gradient(180deg,#f7f9fb 0,#f3f6f8 100%);
  color:var(--wg-text);
}

body[data-workshop-ui-version] header{
  position:sticky;
  top:0;
  z-index:80;
  padding:calc(10px + env(safe-area-inset-top)) 14px 10px!important;
  background:linear-gradient(135deg,var(--wg-navy-2),var(--wg-navy))!important;
  border-bottom:3px solid var(--wg-gold)!important;
  box-shadow:0 8px 22px rgba(16,40,61,.14);
}

body[data-workshop-ui-version] header .logo{
  width:48px!important;
  height:48px!important;
}

body[data-workshop-ui-version] header h1{
  margin:5px 0 2px!important;
  font-size:17px!important;
  line-height:1.15;
}

body[data-workshop-ui-version] header p{
  font-size:12px!important;
  opacity:.86;
}

body[data-workshop-ui-version] main{
  width:100%;
  max-width:820px!important;
  padding:14px 12px calc(100px + env(safe-area-inset-bottom))!important;
}

body[data-workshop-ui-version] .card,
body[data-workshop-ui-version] .panel,
body[data-workshop-ui-version] .intro{
  border:1px solid var(--wg-border)!important;
  border-radius:18px!important;
  box-shadow:var(--wg-polish-card-shadow)!important;
  background:#fff!important;
}

body[data-workshop-ui-version] .card{
  padding:16px!important;
}

body[data-workshop-ui-version] .field{
  margin-bottom:14px!important;
}

body[data-workshop-ui-version] label{
  font-size:12px!important;
  letter-spacing:.15px;
}

body[data-workshop-ui-version] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
body[data-workshop-ui-version] select,
body[data-workshop-ui-version] textarea{
  min-height:46px;
  border-radius:11px!important;
  border:1px solid #ccd4dc!important;
  font-size:14px!important;
  padding:11px 12px!important;
  background:#fff!important;
  outline:none;
}

body[data-workshop-ui-version] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
body[data-workshop-ui-version] select:focus,
body[data-workshop-ui-version] textarea:focus{
  border-color:#caa842!important;
  box-shadow:0 0 0 3px rgba(189,144,34,.11);
}

body[data-workshop-ui-version] textarea{
  min-height:88px!important;
}

/* theme.js applies a 42px min-height to every input, including native checkboxes.
   Keep service checklists tappable without stretching each checkbox. */
html[data-wg-theme] body[data-workshop-ui-version] input[type="checkbox"],
html[data-wg-theme] body[data-workshop-ui-version] input[type="radio"]{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  padding:0!important;
  border-radius:4px!important;
  accent-color:var(--wg-gold);
}


body[data-workshop-ui-version] .save-btn{
  min-height:50px;
  border-radius:13px!important;
  box-shadow:0 7px 18px rgba(36,122,69,.16);
}

body[data-workshop-ui-version] .bottom-links{
  position:sticky;
  bottom:calc(8px + env(safe-area-inset-bottom));
  z-index:70;
  margin:16px -2px 0!important;
  padding:8px!important;
  border:1px solid rgba(217,222,229,.95);
  border-radius:15px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 8px 24px rgba(23,50,77,.12);
}

body[data-workshop-ui-version] .bottom-links a{
  min-height:42px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  border-radius:11px!important;
  padding:9px 12px!important;
  font-size:12px!important;
  flex:1 1 140px;
}

body[data-workshop-ui-version] .module-grid{
  gap:12px!important;
}

body[data-workshop-ui-version] .module{
  min-height:136px!important;
  border-radius:18px!important;
  box-shadow:var(--wg-shadow)!important;
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;
}

body[data-workshop-ui-version] .module:active{
  transform:scale(.985);
}

body[data-workshop-ui-version] .module-icon{
  font-size:31px!important;
}

body[data-workshop-ui-version] .module h3{
  font-size:14px!important;
}

body[data-workshop-ui-version] .module p{
  font-size:12px!important;
  line-height:1.45!important;
}

/* Alerts: keep information dense but readable on phone */
body.wg-alerts-polish .alert-filter-bar button,
body.wg-alerts-polish .status-filter-bar button,
body.wg-alerts-polish .type-filter-bar button{
  font-size:12px!important;
}

body.wg-alerts-polish header{
  position:sticky;
  top:0;
  z-index:80;
  padding:calc(10px + env(safe-area-inset-top)) 14px 10px!important;
  box-shadow:0 8px 22px rgba(16,40,61,.12);
}

body.wg-alerts-polish header .logo{
  width:46px!important;
  height:46px!important;
}

body.wg-alerts-polish header h1{
  margin:5px 0 2px!important;
  font-size:17px!important;
}

body.wg-alerts-polish main{
  padding:12px 10px calc(90px + env(safe-area-inset-bottom))!important;
}

body.wg-alerts-polish .summary-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}

body.wg-alerts-polish .summary-card{
  padding:10px!important;
  border-radius:15px!important;
  text-align:center;
  box-shadow:0 5px 16px rgba(23,50,77,.06);
}

body.wg-alerts-polish .summary-card span{
  font-size:11px!important;
}

body.wg-alerts-polish .summary-card strong{
  font-size:22px!important;
}

body.wg-alerts-polish .alert-filter-bar,
body.wg-alerts-polish .status-filter-bar,
body.wg-alerts-polish .type-filter-bar{
  margin-bottom:9px!important;
}

body.wg-alerts-polish .panel{
  border-radius:15px!important;
  overflow:hidden;
}

body.wg-alerts-polish .panel-title{
  padding:11px 12px!important;
  font-size:12px!important;
}

body.wg-alerts-polish .alert-list{
  padding:8px!important;
}

body.wg-alerts-polish .alert-item{
  padding:10px!important;
  margin-bottom:7px!important;
  border-radius:12px!important;
  background:#fff;
}

body.wg-alerts-polish .alert-name{
  font-size:12px!important;
}

body.wg-alerts-polish .alert-sub{
  font-size:12px!important;
}

body.wg-alerts-polish .badge{
  padding:5px 8px!important;
  font-size:11px!important;
}

@media(max-width:560px){
  body[data-workshop-ui-version] .two{
    grid-template-columns:1fr!important;
    gap:0!important;
  }

  body[data-workshop-ui-version] .module-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  body[data-workshop-ui-version] .module{
    padding:13px 10px!important;
  }

  body[data-workshop-ui-version] .card{
    padding:14px!important;
  }
}
