/* 공통 컴포넌트: 버튼 / 카드 / 표 */
.btn, .tb-btn, button, .run-btn {
  transition:background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:active, .tb-btn:active, button:active { transform:translateY(1px); }
.card, .cpcard, .sc, .panel, .tbl-wrap {
  border-color:var(--hm-line-soft) !important;
}
table th, .gtable th {
  font-weight:700 !important;
}
input:focus, select:focus, textarea:focus {
  outline:none;
  box-shadow:0 0 0 3px rgba(30,58,138,.12);
}


/* 공통 앱 커버: H-BEAM / BH-BEAM 상단 타이틀 통일 */
.app-cover {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin: 0 0 14px 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(220,38,38,.22), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #15233f 48%, #1e3a5f 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-left: 6px solid #dc2626;
  box-shadow: 0 12px 28px rgba(15,23,42,.22);
  color: #fff;
}
.app-cover-main { min-width: 260px; }
.app-kicker {
  margin-bottom: 4px;
  color: #f87171;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
}
.app-cover h1 {
  margin: 0;
  color: #fff !important;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800 !important;
  letter-spacing: -.7px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.app-cover p {
  margin: 5px 0 0 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.2px;
}
.app-version {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.app-status-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}
.app-cover-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.app-cover-actions .btn,
.app-cover-actions .tb-btn {
  height: 32px;
  padding: 0 12px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.10) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.app-cover-actions .btn:hover,
.app-cover-actions .tb-btn:hover {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.28) !important;
}
.app-cover-actions .btn-p,
.app-cover-actions .primary,
.app-cover-actions button[onclick*="Run"],
.app-cover-actions button[onclick*="run"] {
  background: #dc2626 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}
.app-action-sep {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: rgba(255,255,255,.18);
}
/* 기존 헤더/타이틀바 잔여 스타일보다 공통 커버를 우선 적용 */
.titlebar.app-cover,
.hdr.app-cover { height: auto !important; }
body:has(.app-cover--hbeam) { padding: 0 !important; }
.app-cover--hbeam {
  flex-shrink: 0;
  margin: 10px 10px 8px 10px;
  width: calc(100% - 20px);
}
.app-cover--bhbeam { margin-bottom: 16px; }
@media (max-width: 980px) {
  .app-cover { align-items: flex-start; flex-direction: column; }
  .app-cover-actions { justify-content: flex-start; }
}
