:root{
  --pc-card: #fffdf3;
  --pc-bg: #fff7d6;
  --pc-border: rgba(0,0,0,.10);
  --pc-fg: #1a1a1a;
  --pc-muted: rgba(0,0,0,.65);
  --pc-accent: #f2c200;

  --pc-ok-bg:#e6f7e6;
  --pc-ok-border:#35a853;

  --pc-danger-bg:#fff0f0;
  --pc-danger-border:#ff6b6b;

  --pc-radius: 16px;
  --pc-shadow: 0 8px 22px rgba(0,0,0,.07);
}

.pf-tool-main{
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.pc-card{
  background: var(--pc-card);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  padding: 14px 14px;
}

.pc-sec h2{
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.pc-intro{
  margin: 0 0 12px;
  color: var(--pc-muted);
  line-height: 1.45;
}

.pc-toolbar{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}

.pc-progress{
  display:flex;
  gap: 10px;
  align-items: baseline;
  color: var(--pc-muted);
}
.pc-progress__label{ font-weight: 800; }
.pc-progress__value{ font-weight: 900; color: var(--pc-fg); }

.pc-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pc-btn{
  border: 1px solid var(--pc-border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.pc-btn:hover{ transform: translateY(-1px); }
.pc-btn:active{ transform: translateY(0); }

.pc-btn--ghost{ background: transparent; }
.pc-btn--danger{
  background: var(--pc-danger-bg);
  border-color: var(--pc-danger-border);
}

.pc-success{
  display:none;
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--pc-ok-bg);
  border: 2px solid var(--pc-ok-border);
  font-weight: 900;
}

.pc-group{
  margin-top: 14px;
}
.pc-group h3{
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.pc-list{
  list-style:none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.pc-item{
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  padding: 10px 12px;
}

.pc-line{
  display:flex;
  gap: 10px;
  align-items:flex-start;
}

.pc-check{
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--pc-accent);
}

.pc-title{
  font-weight: 900;
  cursor: pointer;
  user-select:none;
}

.pc-help{
  margin: 6px 0 0;
  color: var(--pc-muted);
  font-size: .95rem;
  line-height: 1.35;
}

/* Explanation accordion */
.pc-explain{
  display:none;
  margin: 10px 0 0 28px;
  padding: 10px 12px;
  background: #fffbe6;
  border-left: 4px solid var(--pc-accent);
  border-radius: 12px;
  line-height: 1.45;
}
.pc-item.is-open .pc-explain{ display:block; }

.pc-explain a{
  font-weight: 900;
  color: #0b5bd3;
  text-decoration: none;
}
.pc-explain a:hover{ text-decoration: underline; }

@media (max-width: 520px){
  .pc-btn{ width: 100%; }
  .pc-actions{ width: 100%; }
}

.pc-topbar{
  display: grid;
  gap: 12px;
  margin: 10px 0 14px;
}

.pc-mode{
  background: rgba(255,247,214,.65);
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  padding: 10px 12px;
}

.pc-mode__label{
  display:block;
  font-weight: 900;
  margin: 0 0 6px;
}

.pc-mode__select{
  width: 100%;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  font-weight: 800;
}

.pc-mode__hint{
  margin: 8px 0 0;
  color: var(--pc-muted);
  font-size: .95rem;
  line-height: 1.35;
}

.pc-line{
  justify-content: space-between;
}

.pc-left{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  flex: 1;
  min-width: 0;
}

.pc-right{
  display:flex;
  gap: 8px;
  align-items:center;
}

.pc-q{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--pc-border);
  background: #fffbe6;
  font-weight: 1000;
  cursor: pointer;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.pc-q:hover{
  transform: translateY(-1px);
}

.pc-q:active{
  transform: translateY(0);
}