/* idontcommu-3t admin v1
 * vanilla CSS only. 1인 운영자용. fancy X.
 * 상단 탭 nav + 본문 영역. 회색 톤.
 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo",
               "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: #f4f4f5;
  color: #1f2024;
}

#app-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === 상단 탭 nav === */
#sidebar {
  width: 100%;
  background: #2c2e33;
  color: #e6e7eb;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  height: 52px;
  gap: 1.5rem;
  border-bottom: 1px solid #1f2024;
}

#sidebar .brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  white-space: nowrap;
}
#sidebar .brand span {
  font-weight: 400;
  color: #a3a4ab;
  margin-left: 2px;
}

#nav {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  flex: 1;
  align-items: center;
}
#nav a {
  display: block;
  padding: 0.55rem 0.95rem;
  color: #c8cad1;
  text-decoration: none;
  font-size: 0.92rem;
  border-radius: 4px;
}
#nav a:hover { background: #3a3c43; color: #fff; }
#nav a.active {
  background: #44464d;
  color: #fff;
  border-bottom: 2px solid #6b8afb;
  border-radius: 4px 4px 0 0;
}
#nav button#logoutBtn {
  margin-left: auto;
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid #5a5c63;
  color: #c8cad1;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}
#nav button#logoutBtn:hover {
  background: #3a3c43;
  color: #fff;
}

/* === main === */
#main {
  flex: 1;
  padding: 1.5rem 2rem;
  min-width: 0;
}

#main h1 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 1px solid #d8d9dc;
  padding-bottom: 0.5rem;
}
#main h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
}

.loading, .empty {
  color: #888;
  padding: 2rem;
  text-align: center;
}

/* === 로그인 화면 === */
.login-screen {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f4f4f5;
}
.login-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #d8d9dc;
  width: 320px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.login-card h1 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  padding: 0;
}
.login-card label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.4rem;
}
.login-card input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c5c6ca;
  border-radius: 4px;
  font: inherit;
  margin-bottom: 0.85rem;
}
.login-card button {
  width: 100%;
  padding: 0.6rem;
  background: #2c2e33;
  color: #fff;
  border: none;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}
.login-card button:hover { background: #1f2024; }
.login-card button:disabled { background: #888; cursor: not-allowed; }
.login-card .err {
  color: #b00020;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* === 테이블 === */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d8d9dc;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
  font-size: 0.88rem;
}
thead th {
  background: #ececef;
  text-align: left;
  padding: 0.5rem 0.7rem;
  font-weight: 600;
  border-bottom: 1px solid #d8d9dc;
  white-space: nowrap;
}
tbody td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid #ececef;
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafafa; }

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.signal-error { color: #b00020; font-weight: 500; }
td.signal-warn  { color: #b07700; }

/* === 카드 / 박스 === */
.card {
  background: #fff;
  border: 1px solid #d8d9dc;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
}

/* === 엔진 폼 === */
.engine-row {
  background: #fff;
  border: 1px solid #d8d9dc;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.engine-row h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.engine-row .desc {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.engine-row form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: end;
}
.engine-row label.field {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: #555;
  gap: 0.2rem;
}
.engine-row label.field input,
.engine-row label.field select {
  padding: 0.35rem 0.5rem;
  border: 1px solid #c5c6ca;
  border-radius: 4px;
  font: inherit;
  font-size: 0.88rem;
  min-width: 100px;
}
.engine-row label.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #555;
  padding-bottom: 0.35rem;
}
.engine-row button.run-btn {
  padding: 0.45rem 1rem;
  background: #2c2e33;
  color: #fff;
  border: none;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}
.engine-row button.run-btn:hover { background: #1f2024; }
.engine-row button.run-btn:disabled { background: #888; cursor: not-allowed; }

.engine-row pre.result {
  margin-top: 0.85rem;
  background: #1f2024;
  color: #e6e7eb;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.engine-row pre.result.err {
  background: #3a1414;
  color: #ffd0d0;
}

/* === 필터 드롭다운 === */
.filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: #555;
}
.filter-row select {
  padding: 0.3rem 0.5rem;
  border: 1px solid #c5c6ca;
  border-radius: 4px;
  font: inherit;
  font-size: 0.88rem;
}

/* === Studio placeholder === */
.studio-placeholder {
  background: #fff;
  border: 1px dashed #c5c6ca;
  border-radius: 6px;
  padding: 3rem 2rem;
  text-align: center;
  color: #888;
}
.studio-placeholder h2 {
  margin: 0 0 0.5rem;
  color: #555;
  border: none;
  padding: 0;
}

/* === badge === */
.status-active   { color: #097a3a; }
.status-inactive { color: #777; }
.tier-1 { color: #555; }

/* === Studio (Phase 3 — N안 비교판) === */
#main p.desc {
  color: #666;
  font-size: 0.88rem;
  margin: -0.5rem 0 1rem;
}

.studio-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid #d8d9dc;
  margin-bottom: 1rem;
}
.studio-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  color: #555;
  cursor: pointer;
  margin-bottom: -1px;
}
.studio-tab:hover:not(.disabled) {
  color: #1f2024;
}
.studio-tab.active {
  color: #1f2024;
  border-bottom-color: #6b8afb;
  font-weight: 600;
}
.studio-tab.disabled {
  color: #aaa;
  cursor: not-allowed;
}

.studio-body {
  margin-top: 0.5rem;
}

.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.studio-btn {
  padding: 0.4rem 0.85rem;
  background: #fff;
  color: #1f2024;
  border: 1px solid #c5c6ca;
  border-radius: 4px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.studio-btn:hover:not(:disabled) {
  background: #f4f4f5;
}
.studio-btn:disabled {
  background: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}
.studio-btn.primary {
  background: #2c2e33;
  color: #fff;
  border-color: #2c2e33;
}
.studio-btn.primary:hover:not(:disabled) {
  background: #1f2024;
}
.studio-btn.small {
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
}
.studio-btn.ok      { color: #097a3a; border-color: #b6d9c4; }
.studio-btn.ok:hover:not(:disabled)      { background: #ecf6f0; }
.studio-btn.warn    { color: #b07700; border-color: #e2cd9b; }
.studio-btn.warn:hover:not(:disabled)    { background: #faf3e2; }
.studio-btn.danger  { color: #b00020; border-color: #e0b6be; }
.studio-btn.danger:hover:not(:disabled)  { background: #faecef; }

.studio-empty {
  padding: 2rem;
  text-align: center;
  color: #888;
  background: #fff;
  border: 1px dashed #d8d9dc;
  border-radius: 6px;
}
.studio-error {
  padding: 1rem;
  background: #faecef;
  color: #b00020;
  border: 1px solid #e0b6be;
  border-radius: 4px;
}

.studio-table-area { margin-top: 0.5rem; }
.studio-table {
  font-size: 0.85rem;
}
.studio-table th.narrow,
.studio-table td.narrow {
  width: 36px;
  text-align: center;
}
.studio-table tbody tr.studio-alt-row { cursor: pointer; }
.studio-table tbody tr.studio-alt-row.expanded > td {
  background: #f6f7fa;
}

.studio-desc {
  color: #666;
  font-size: 0.78rem;
  margin-top: 0.2rem;
  white-space: pre-wrap;
}

.studio-status {
  font-weight: 500;
  font-size: 0.82rem;
}
.studio-status.status-draft    { color: #555; }
.studio-status.status-tested   { color: #1f5fb0; }
.studio-status.status-adopted  { color: #097a3a; font-weight: 600; }
.studio-status.status-rejected { color: #888; text-decoration: line-through; }

.studio-metrics-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.studio-metrics-summary .muted,
.muted { color: #999; }

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  white-space: nowrap;
}

.studio-detail-row > td {
  background: #fafafa !important;
  padding: 0.75rem 1rem !important;
}
.studio-detail {
  border-left: 3px solid #6b8afb;
  padding-left: 0.75rem;
}
.studio-runs-table {
  font-size: 0.8rem;
  margin: 0;
}
.studio-runs-table thead th { background: #e6e7eb; }

/* 모달 */
.studio-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.studio-modal {
  background: #fff;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.studio-modal.wide {
  width: 800px;
}
.studio-modal h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #1f2024;
}
.studio-modal-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: #555;
}
.studio-modal-form label > span {
  display: block;
  margin-bottom: 0.25rem;
}
.studio-modal-form input[type="text"],
.studio-modal-form textarea {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid #c5c6ca;
  border-radius: 4px;
  font: inherit;
  font-size: 0.88rem;
}
.studio-modal-form textarea {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 0.82rem;
  resize: vertical;
}
.studio-modal-err {
  color: #b00020;
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
}
.studio-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.studio-compare-table {
  font-size: 0.85rem;
}
.studio-compare-table thead th {
  text-align: left;
}
.studio-compare-table .studio-compare-key {
  background: #ececef;
  font-weight: 500;
  color: #444;
}

/* 새 안 등록 모달 — config_json 도움말 박스 */
.studio-modal-help {
  background: #f5f7fa;
  border: 1px solid #d8dde3;
  border-radius: 4px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: #333;
}
.studio-modal-help-title {
  margin-bottom: 0.35rem;
  color: #444;
}
.studio-modal-help-example {
  margin: 0;
  padding: 0.4rem 0.5rem;
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 0.78rem;
  color: #224;
  white-space: pre;
  overflow-x: auto;
}

/* Phase 3.3 — 라이브 적용 카드 */
.studio-live-card { padding: 0.75rem 1rem; margin-bottom: 1rem; }
.studio-live-card h3 { margin: 0 0 0.5rem 0; font-size: 0.95rem; }
.studio-live-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.85rem;
}
.studio-live-row { display: flex; gap: 0.4rem; align-items: baseline; }
.studio-live-label { color: #666; font-weight: 500; }
.studio-live-link {
  color: #097a3a;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.studio-live-link:hover { text-decoration: underline; }
.studio-live-default { color: #999; font-style: italic; }

@keyframes studioAltRowFlash {
  0%   { background-color: #fff7c2; }
  100% { background-color: transparent; }
}
.studio-table tbody tr.studio-alt-row.studio-alt-row-flash > td {
  animation: studioAltRowFlash 1.2s ease-out;
}

/* ===================================================================
 * Phase 2.7 — admin v2 (운영 필수 도구)
 *   - 사이트 편집 폼
 *   - 출처성적표
 *   - 발행본
 *   - 안전필터 (SFW 룰 CRUD)
 * =================================================================== */

/* === 사이트 sub-nav (성적표 링크) === */
.sites-subnav {
  display: flex;
  gap: 1rem;
  margin: -0.5rem 0 0.75rem;
  font-size: 0.88rem;
}
.sites-subnav a {
  color: #1f5fb0;
  text-decoration: none;
}
.sites-subnav a:hover { text-decoration: underline; }

/* === 사이트 편집 === */
.sites-table tbody tr.site-row { cursor: pointer; }
.sites-table tbody tr.site-row.expanded > td { background: #f6f7fa; }
.sites-table td.site-board-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-detail-row > td {
  background: #fafafa !important;
  padding: 0.85rem 1rem !important;
}
.site-edit-form {
  border-left: 3px solid #6b8afb;
  padding: 0.5rem 0.75rem;
}
.site-edit-form h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}
.site-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}
.site-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: #555;
}
.site-edit-grid label.wide { grid-column: span 2; }
.site-edit-grid label > span {
  color: #444;
  font-weight: 500;
}
.site-edit-grid input[type="text"],
.site-edit-grid input[type="number"],
.site-edit-grid select,
.site-edit-grid textarea {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid #c5c6ca;
  border-radius: 4px;
  font: inherit;
  font-size: 0.88rem;
}
.site-edit-grid textarea {
  resize: vertical;
  min-height: 50px;
}
.site-edit-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #555;
}
.site-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.site-edit-err {
  color: #b00020;
  font-size: 0.82rem;
  min-height: 1.1em;
  margin-top: 0.4rem;
}
.site-edit-ok {
  color: #097a3a;
  font-size: 0.82rem;
  min-height: 1.1em;
  margin-top: 0.4rem;
}

/* === 출처성적표 === */
.sites-report-holder { margin-top: 0.5rem; }
.sites-report-table { font-size: 0.85rem; }
.sites-report-table tbody td { white-space: nowrap; }

/* === 발행본 === */
.issue-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 800px) {
  .issue-wrap { grid-template-columns: 1fr; }
}
.issue-date-col {
  position: sticky;
  top: 64px;
  background: #fff;
  border: 1px solid #d8d9dc;
  border-radius: 6px;
  padding: 0.6rem;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.issue-date-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #444;
  padding: 0 0.4rem 0.4rem;
  border-bottom: 1px solid #ececef;
  margin-bottom: 0.4rem;
}
.issue-date-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.issue-date-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #333;
  font-variant-numeric: tabular-nums;
}
.issue-date-item:hover { background: #f4f4f5; }
.issue-date-item.active {
  background: #2c2e33;
  color: #fff;
}
.issue-date-item.active .issue-date-count { color: #c8cad1; }
.issue-date-count {
  color: #888;
  font-size: 0.78rem;
}

.issue-card-col { min-width: 0; }
.issue-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.issue-head-date {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2024;
}
.issue-head-meta {
  display: flex;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}
.issue-empty {
  background: #fff;
  border: 1px dashed #d8d9dc;
  border-radius: 6px;
  padding: 3rem 1rem;
  text-align: center;
  color: #888;
}

.issue-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.issue-card {
  display: grid;
  grid-template-columns: 40px 200px 1fr;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid #d8d9dc;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  align-items: start;
}
@media (max-width: 700px) {
  .issue-card {
    grid-template-columns: 40px 1fr;
  }
  .issue-thumb { display: none; }
}
.issue-rank {
  font-weight: 700;
  font-size: 1rem;
  color: #6b8afb;
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.issue-thumb {
  width: 200px;
  aspect-ratio: 16 / 9;
  background: #ececef;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.issue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.issue-thumb.empty { background: repeating-linear-gradient(45deg, #f0f0f1, #f0f0f1 6px, #ececef 6px, #ececef 12px); }

.issue-meta { min-width: 0; }
.issue-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #1f2024;
  text-decoration: none;
  display: block;
  line-height: 1.35;
  word-break: keep-all;
}
.issue-title:hover { text-decoration: underline; }
.issue-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.issue-source { color: #444; }
.issue-source-count { color: #097a3a; font-weight: 500; }
.issue-snippet {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.issue-also-in {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.78rem;
}
.issue-also-label {
  color: #888;
  margin-right: 0.15rem;
}
.issue-chip {
  background: #ececef;
  color: #444;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.75rem;
}
.issue-chip:hover {
  background: #d8d9dc;
  color: #1f2024;
}

/* === 안전필터 (SFW 룰) === */
.rules-new-form { background: #fff; }
.rules-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
  align-items: end;
}
.rules-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: #555;
}
.rules-form-grid label.wide { grid-column: span 2; }
.rules-form-grid label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  padding-top: 1rem;
}
.rules-form-grid label > span {
  color: #444;
  font-weight: 500;
}
.rules-form-grid input[type="text"],
.rules-form-grid select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid #c5c6ca;
  border-radius: 4px;
  font: inherit;
  font-size: 0.88rem;
}
.rules-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.rules-err {
  color: #b00020;
  font-size: 0.82rem;
  min-height: 1.1em;
  margin-top: 0.4rem;
}

.rules-table { font-size: 0.85rem; }
.rules-table input[type="text"] {
  width: 100%;
  padding: 0.3rem 0.45rem;
  border: 1px solid #d8d9dc;
  border-radius: 3px;
  font: inherit;
  font-size: 0.85rem;
}
.rules-table input.rules-pattern-input { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace; }
.rules-table select {
  padding: 0.3rem 0.4rem;
  border: 1px solid #d8d9dc;
  border-radius: 3px;
  font: inherit;
  font-size: 0.85rem;
}
.rules-table .rules-actions {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.rules-row-err {
  color: #b00020;
  font-size: 0.78rem;
}
.rules-re-badge {
  display: inline-block;
  background: #1f5fb0;
  color: #fff;
  padding: 0 0.35rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.3rem;
  vertical-align: middle;
}
