.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; }
.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); }
.small-btn.copied { background:#3A7D44 !important; color:#fff !important; border-color:#3A7D44 !important; }
.field-label { display:block; margin-bottom:6px; font-size:11px; font-weight:600; color:var(--ink-light); letter-spacing:.06em; }
.readable-input,.readable-textarea {
  width:100%; background:#fff; color:var(--ink); border:1px solid var(--border); border-radius:0;
  font-family:"Noto Sans JP", Consolas, "Courier New", monospace; font-size:14px; font-weight:400;
  line-height:1.75; letter-spacing:0; box-sizing:border-box;
}
.readable-input { min-height:44px; padding:10px 14px; }
.readable-textarea { min-height:260px; padding:18px 20px; resize:vertical; }
.readable-input::placeholder,.readable-textarea::placeholder { color:var(--ink-light); font-weight:400; }
.readable-input:focus,.readable-textarea:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 2px rgba(37,99,235,.08); }
.metric-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; }
.metric-card { border:1px solid var(--border); background:#fff; border-radius:10px; padding:12px; }
.metric-label { font-size:10px; letter-spacing:.16em; color:var(--ink-light); text-transform:uppercase; margin-bottom:4px; }
.metric-value { font-size:22px; font-weight:700; color:var(--ink); line-height:1.2; }
.metric-sub { font-size:11px; color:var(--ink-light); margin-top:4px; line-height:1.6; }
.result-box { min-height:220px; white-space:pre-wrap; word-break:break-word; background:#fff; border:1px solid var(--border); border-radius:8px; padding:14px 16px; font-size:13px; line-height:1.75; color:var(--ink); font-family:"Noto Sans JP", Consolas, "Courier New", monospace; overflow:auto; }
.table-wrap { overflow:auto; border:1px solid var(--border); border-radius:8px; background:#fff; }
.result-table { width:100%; border-collapse:collapse; min-width:620px; }
.result-table th,.result-table td { border-bottom:1px solid var(--border); padding:9px 10px; font-size:12px; text-align:left; vertical-align:top; }
.result-table th { background:var(--bg); color:var(--ink-light); font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.result-table tr:last-child td { border-bottom:none; }
.option-line { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--ink); line-height:1.6; cursor:pointer; }
.notice { margin-top:10px; font-size:12px; color:var(--ink-light); line-height:1.7; }
@media (max-width:900px){ .readable-textarea{min-height:220px;} }

.sidebar-section .apply-btn,
.sidebar-section .download-btn,
.sidebar-section .reset-btn,
.sidebar-section .small-btn {
  width: 100%;
  margin-top: 10px;
}
.sidebar-section .field-label + .readable-input,
.sidebar-section .field-label + .readable-select,
.sidebar-section .field-label + .readable-textarea {
  margin-bottom: 10px;
}
.sidebar-section .option-line + .option-line {
  margin-top: 8px;
}
.sidebar-section .sidebar-title + .tool-form,
.sidebar-section .sidebar-title + .metric-grid,
.sidebar-section .sidebar-title + .notice,
.sidebar-section .sidebar-title + .option-line {
  margin-top: 10px;
}
.sidebar-section .download-btn.hidden {
  display: none !important;
}
.sidebar-section button:first-child,
.sidebar-section a:first-child {
  margin-top: 0;
}
