.subtitle { font-size: 12px; color: var(--ink-light); font-weight: 300; letter-spacing: 0.1em; border-left: 2px solid var(--accent); padding-left: 10px; }
.panel-header { padding:10px 16px; border-bottom:1px solid var(--border); background:var(--bg); display:flex; justify-content:space-between; align-items:center; gap:12px; }
.panel-label { font-size:10px; letter-spacing:.2em; color:var(--ink-light); text-transform:uppercase; }
.panel-body { padding:18px; }
.hidden { display:none !important; }
.tool-form { display:flex; flex-direction:column; gap:12px; }
.tool-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.tool-note { font-size:12px; color:var(--ink-light); line-height:1.7; }
.result-list { display:flex; flex-direction:column; gap:8px; }
.file-item { border:1px solid var(--border); border-radius:8px; background:#fff; padding:10px 12px; display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:13px; }
.file-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); font-weight:500; }
.file-meta { color:var(--ink-light); font-size:12px; white-space:nowrap; }
.preview-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.preview-card { border:1px solid var(--border); background:#fff; border-radius:10px; padding:10px; display:flex; flex-direction:column; gap:8px; }
.preview-card img, .preview-card canvas { width:100%; height:110px; object-fit:contain; background:#f7f7f7; border:1px solid var(--border); border-radius:6px; }
.textarea-tall { min-height:420px; padding:18px 20px; font-size:14px; line-height:1.8; font-weight:400; font-family:"Noto Sans JP", Consolas, monospace; }
.output-box { min-height:240px; white-space:pre-wrap; word-break:break-word; background:#fff; border:1px solid var(--border); padding:18px 20px; font-size:14px; line-height:1.8; }
.small-btn { border:1px solid var(--border); background:#fff; color:var(--ink); border-radius:6px; padding:8px 12px; font-size:12px; font-weight:700; cursor:pointer; }
.small-btn:hover { border-color:var(--blue); color:var(--blue); background:var(--blue-light); }
.copy-btn.copied { background:#3A7D44 !important; }
.color-sample { width:100%; min-height:90px; border:1px solid var(--border); border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:700; }
.contrast-summary { border:1px solid var(--border); border-radius:12px; background:#fff; padding:16px; }
.contrast-ratio { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.contrast-ratio-label { font-size:12px; color:var(--ink-light); font-weight:700; }
.contrast-ratio-value { font-size:28px; line-height:1; font-weight:900; color:var(--ink); }
.contrast-overall { display:inline-flex; align-items:center; border-radius:999px; padding:5px 10px; font-size:12px; font-weight:800; background:var(--blue-light); color:var(--blue); }
.contrast-overall.is-warn { background:#FFF3D6; color:#8A5A00; }
.contrast-judge-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.contrast-judge { border:1px solid var(--border); border-radius:10px; padding:11px 12px; background:#FAFAFA; }
.contrast-judge-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:6px; }
.contrast-judge-title { font-size:13px; font-weight:800; color:var(--ink); }
.contrast-status { border-radius:999px; padding:3px 8px; font-size:11px; line-height:1.2; font-weight:900; white-space:nowrap; }
.contrast-status.ok { background:#E8F6EE; color:#247047; }
.contrast-status.ng { background:#FDECEC; color:#B42318; }
.contrast-judge-desc { font-size:12px; line-height:1.65; color:var(--ink-light); }
.contrast-tip { margin-top:12px; border-top:1px solid var(--border); padding-top:12px; font-size:13px; line-height:1.7; color:var(--ink); }
.contrast-presets { margin-left:62px; margin-bottom:12px; }
.contrast-hex-input {
  width: 82px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 2px;
  cursor: text;
  font-family: inherit;
}
.contrast-hex-input:focus {
  outline: none;
  border-bottom-color: var(--blue);
  box-shadow: 0 1px 0 var(--blue);
}
.contrast-hex-input.is-invalid {
  border-bottom-color: #B42318;
  color: #B42318;
}
@media (max-width:700px){ .contrast-judge-grid{grid-template-columns:1fr;} }
@media (max-width:900px){ .textarea-tall{min-height:300px;} }


  
/* ── Added tool button spacing fix ── */
.sidebar-section > .apply-btn,
.sidebar-section > .reset-btn,
.sidebar-section > .download-btn,
.sidebar-section > .small-btn {
  margin-top: 10px;
}

.sidebar-section > .sidebar-title + .apply-btn,
.sidebar-section > .sidebar-title + .reset-btn,
.sidebar-section > .sidebar-title + .download-btn,
.sidebar-section > .sidebar-title + .small-btn {
  margin-top: 12px;
}

.sidebar-section > .apply-btn + .reset-btn,
.sidebar-section > .apply-btn + .download-btn,
.sidebar-section > .apply-btn + .small-btn,
.sidebar-section > .reset-btn + .small-btn,
.sidebar-section > .reset-btn + .download-btn,
.sidebar-section > .small-btn + .small-btn,
.sidebar-section > .small-btn + .download-btn,
.sidebar-section > .download-btn + .reset-btn,
.sidebar-section > .download-btn + .small-btn {
  margin-top: 10px;
}

.sidebar-section .download-btn.hidden {
  display: none !important;
}

.sidebar-section .tool-form + .apply-btn,
.sidebar-section .tool-form + .reset-btn,
.sidebar-section .tool-form + .small-btn {
  margin-top: 12px;
}



.notice.tool-description{
  display:flex;
  align-items:flex-start;
  gap:12px;
  background:#EFF6FF;
  border:1px solid #BFDBFE;
  border-left:3px solid var(--blue);
  border-radius:6px;
  padding:12px 16px;
  margin:0 0 18px;
  color:var(--ink-mid);
  font-size:12.5px;
  font-weight:400;
  line-height:1.75;
}
.notice.tool-description strong{
  font-weight:700;
  color:var(--ink);
}
