.acrc{
  max-width: 1100px;
  margin: 14px auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.acrc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  user-select:none;

  border:1px solid rgba(0,0,0,0.15);   /* 外框 */
  border-radius:30px;
  background:#FFCCFF;
  padding:12px 16px;
}
.acrc-toggle{ cursor:pointer; }

.acrc-head-left{ min-width:0; }

.acrc-title{ font-size: 14px; font-weight: 600; }
.acrc-sub{ font-size: 10px; color#330000; margin-top: 4px; }

.acrc-foldbtn{
  border:1px solid rgba(0,0,0,0.18);
  background:#FFCCFF;
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  cursor:pointer;
  flex:0 0 auto;
}
.acrc-foldbtn:hover{ background: rgba(0,0,0,0.03); }

.acrc-grid{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 860px){
  .acrc-grid{ grid-template-columns: 1fr; }
}

.acrc-panel{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.acrc-row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.acrc-row label{
  font-size: 12px;
  color: #333;
  font-weight: 700;
}
.acrc-row input[type="text"], .acrc-row input[type="number"], .acrc-row select{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  outline: none;
}
.acrc-row input[type="color"]{
  width: 56px;
  height: 40px;
  border: none;
  padding: 0;
  background: transparent;
}

.acrc-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.acrc-btn{
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}
.acrc-btn:hover{ background: rgba(0,0,0,0.03); }

.acrc-note{
  margin-top: 10px;
  font-size: 12px;
  color: #444;
  min-height: 16px;
}

.acrc-palette{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 520px){
  .acrc-palette{ grid-template-columns: repeat(2, 1fr); }
}

.acrc-swatch{
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 10px;
  height: 72px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  box-sizing: border-box;
}
.acrc-hex{
  background: rgba(255,255,255,0.86);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,0.10);
}

.acrc-json{
  width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
  outline: none;
  resize: vertical;
}

.acrc-aiout{
  margin-top: 10px;
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  white-space: pre-wrap;
  min-height: 42px;
}

/* ===== 70/20/10 + meters ===== */
.acrc-metrics{ margin-top: 12px; }
.acrc-metrics-title{
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #222;
}

.acrc-roles{ display: grid; gap: 8px; margin-bottom: 10px; }
.acrc-role-row{
  display: grid;
  grid-template-columns: 90px 1fr 26px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
}
.acrc-role-tag{
  font-size: 12px;
  font-weight: 800;
  color: #333;
}
.acrc-role-hex{
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: #222;
}
.acrc-role-swatch{
  width: 26px;
  height: 18px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.18);
}

.acrc-meter{ margin-top: 10px; }
.acrc-meter-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.acrc-meter-name{
  font-size: 12px;
  font-weight: 800;
  color: #333;
}
.acrc-meter-val{
  font-size: 12px;
  color: #333;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.acrc-meter-bar{
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  overflow: hidden;
}
.acrc-meter-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
}

/* 去掉点击后浏览器的黑色 focus 外框 */
.acrc-toggle:focus,
.acrc-toggle:focus-visible,
.acrc-foldbtn:focus,
.acrc-foldbtn:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

/* 有些主题会给 button 加黑框，顺便压掉 */
.acrc-foldbtn:active{
  box-shadow: none !important;
}

/* 打开 / 收起 按钮 */
.acrc-foldbtn{
  border:1px solid #9ad0d0;
  border-radius:999px;
  padding:6px 14px;
  background:#FFCCFF;
  color:#006666;
  font-size:13px;
  cursor:pointer;
}

.acrc-foldbtn:hover{
  background:#E5FFFF;
}