.ssspace-pc-wrap{
  width:100%;
  max-width:760px;
  margin:24px auto;
  padding:24px;
  border:1px solid #e8ddd1;
  border-radius:18px;
  background:#fffaf6;
  box-sizing:border-box;
  overflow:hidden;
}
.ssspace-pc-form,
.ssspace-pc-grid,
.ssspace-pc-field,
.ssspace-pc-field input,
.ssspace-pc-checkbox-wrap{
  box-sizing:border-box;
}
.ssspace-pc-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:16px;
  width:100%;
  min-width:0;
  align-items:end;
}
.ssspace-pc-field{
  min-width:0;
  width:100%;
}
.ssspace-pc-field label{
  display:block;
  margin-bottom:8px;
  font-weight:600;
  color:#6e5647;
}
.ssspace-pc-field input[type="number"]{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  padding:12px 14px;
  border:1px solid #dccabb;
  border-radius:12px;
  background:#fff;
}
.ssspace-pc-checkbox-wrap{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:48px;
  width:100%;
  padding:12px 14px;
  border:1px solid #dccabb;
  border-radius:12px;
  background:#fff;
}
.ssspace-pc-checkbox-label{
  display:flex !important;
  align-items:center !important;
  gap:10px;
  margin:0 !important;
  line-height:1.2 !important;
  cursor:pointer;
}
.ssspace-pc-checkbox-label input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0 !important;
  padding:0 !important;
  flex:0 0 18px;
  align-self:center;
  vertical-align:middle;
  position:relative;
  top:0;
}
.ssspace-pc-checkbox-label span{
  line-height:1.2;
}
.ssspace-pc-checkbox-note{
  margin-top:6px;
  padding-left:28px;
  font-size:13px;
  color:#8a7464;
  line-height:1.45;
}
.ssspace-pc-btn{
  margin-top:18px;
  border:none;
  border-radius:999px;
  padding:12px 20px;
  background:#c69c6d;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.ssspace-pc-result{
  margin-top:22px;
  padding:18px;
  border-radius:16px;
  background:#fff;
  border:1px solid #eadfd4;
}
.ssspace-pc-best{
  font-size:20px;
  font-weight:800;
  color:#7b5a42;
  margin-bottom:12px;
  line-height:1.6;
}
.ssspace-pc-conditional-list{
  margin-bottom:8px;
}
.ssspace-pc-conditional-item{
  padding:10px 12px;
  margin-bottom:10px;
  border-radius:12px;
  background:#f9f2eb;
  color:#6c5646;
  line-height:1.6;
}
.ssspace-pc-item{
  padding:10px 0;
  border-top:1px solid #f0e7df;
  color:#5f5148;
  line-height:1.6;
}
.ssspace-pc-item:first-child{border-top:none;}
.ssspace-pc-error{
  margin-top:16px;
  margin-bottom:16px;
  padding:12px 14px;
  border-radius:12px;
  background:#fff1f0;
  border:1px solid #ffccc7;
  color:#b42318;
  font-weight:700;
  line-height:1.7;
}
.ssspace-pc-error ul{
  margin:0 0 0 1.2em;
  padding:0;
}
.ssspace-pc-error li{
  margin:4px 0;
}
@media (max-width: 640px){
  .ssspace-pc-wrap{padding:18px;}
  .ssspace-pc-grid{grid-template-columns:1fr;}
}
.ssspace-pc-formula-note-list{
  margin-top:16px;
  margin-bottom:16px;
  padding:12px 14px;
  border-radius:12px;
  background:#f9f2eb;
  border:1px solid #eadfd4;
  color:#6c5646;
  font-weight:500;
  line-height:1.7;
}
.ssspace-pc-formula-note-list ul{
  margin:0 0 0 1.2em;
  padding:0;
}
.ssspace-pc-formula-note-list li{
  margin:4px 0;
}

/* v2.0: formula reminder levels */
.ssspace-pc-formula-note-list{
  background:transparent !important;
  border:none !important;
  padding:0 !important;
  color:inherit !important;
  font-weight:500;
}
.ssspace-pc-formula-note-list ul,
.ssspace-pc-error ul{
  margin:0;
  padding:0;
  list-style:none;
}
.ssspace-pc-alert-item{
  display:block;
  margin:8px 0;
  padding:12px 14px;
  border-radius:12px;
  line-height:1.7;
  font-weight:600;
  box-sizing:border-box;
}
.ssspace-pc-alert-error{
  background:#fff1f0 !important;
  border:1px solid #ffccc7 !important;
  color:#b42318 !important;
}
.ssspace-pc-alert-warning{
  background:#fff8e6 !important;
  border:1px solid #f3d27b !important;
  color:#8a5a00 !important;
}
.ssspace-pc-alert-note{
  background:#f7f3ef !important;
  border:1px solid #e3d7cb !important;
  color:#6c5646 !important;
}
.ssspace-pc-alert-error::before{content:"❌ ";}
.ssspace-pc-alert-warning::before{content:"⚠️ ";}
.ssspace-pc-alert-note::before{content:"ℹ️ ";}

/* v2.1: group basic inputs and option parameters separately */
.ssspace-pc-section{
  width:100%;
  box-sizing:border-box;
}
.ssspace-pc-section + .ssspace-pc-section{
  margin-top:16px;
}
.ssspace-pc-general-grid{
  align-items:end;
}
.ssspace-pc-section-options{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.ssspace-pc-option-group{
  width:100%;
  box-sizing:border-box;
}
.ssspace-pc-option-group-title{
  margin:0 0 8px;
  font-weight:700;
  color:#6e5647;
  font-size:15px;
}
.ssspace-pc-option-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  align-items:stretch;
}
.ssspace-pc-option-card{
  display:flex;
}
.ssspace-pc-option-card .ssspace-pc-checkbox-wrap{
  min-height:64px;
  height:100%;
  cursor:pointer;
}
.ssspace-pc-option-card .ssspace-pc-checkbox-label{
  align-items:flex-start !important;
}
.ssspace-pc-option-card .ssspace-pc-checkbox-label input[type="checkbox"],
.ssspace-pc-option-card .ssspace-pc-checkbox-label input[type="radio"]{
  width:18px;
  height:18px;
  margin-top:1px !important;
  flex:0 0 18px;
}
.ssspace-pc-option-card .ssspace-pc-checkbox-label span{
  font-weight:700;
  color:#6e5647;
}
.ssspace-pc-option-group-radio .ssspace-pc-checkbox-wrap{
  background:#fffdfb;
}
.ssspace-pc-option-card:has(input:checked) .ssspace-pc-checkbox-wrap{
  border-color:#c69c6d;
  box-shadow:0 0 0 2px rgba(198,156,109,.12);
  background:#fffaf3;
}
@supports not selector(:has(*)){
  .ssspace-pc-option-card .ssspace-pc-checkbox-wrap{background:#fff;}
}
@media (max-width: 640px){
  .ssspace-pc-option-grid{grid-template-columns:1fr;}
}
