* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #222;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #111827;
  color: white;
  padding: 24px 18px;
}

.sidebar h1 {
  font-size: 20px;
  margin: 0 0 28px;
}

.sidebar a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.sidebar a:hover {
  background: #1f2937;
  color: white;
}

.content {
  flex: 1;
  padding: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.card span {
  color: #6b7280;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  text-align: left;
}

th {
  background: #f9fafb;
  font-weight: 700;
}

.empty {
  text-align: center;
  color: #6b7280;
  padding: 30px;
}

.title-cell {
  max-width: 360px;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.ok {
  background: #dcfce7;
  color: #166534;
}

.badge.no {
  background: #fee2e2;
  color: #991b1b;
}

.priority {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.priority.high {
  background: #fee2e2;
  color: #991b1b;
}

.priority.medium {
  background: #fef3c7;
  color: #92400e;
}

.priority.low {
  background: #dcfce7;
  color: #166534;
}

.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px;
  border-radius: 10px;
  margin: 16px 0;
}

.success {
  background: #dcfce7;
  color: #166534;
  padding: 14px;
  border-radius: 10px;
  margin: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.brand h1 {
  margin: 0;
  font-size: 19px;
}

.brand span {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  margin-top: 3px;
}

.nav a {
  font-size: 15px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.topbar h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.topbar p {
  margin: 0;
  color: #6b7280;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.panel {
  background: white;
  margin-top: 24px;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.panel h3 {
  margin-top: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.stat-card span {
  display: block;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 34px;
  color: #111827;
}

.log-row {
  display: grid;
  grid-template-columns: 100px 1fr 180px;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
}

.log-row:last-child {
  border-bottom: none;
}

.log-status {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
}

.posts-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.posts-count {
  color: #4b5563;
}

.posts-count strong {
  color: #111827;
}

.posts-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.limit-form select {
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  background: white;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.pagination a,
.pagination .disabled,
.page-info {
  padding: 9px 13px;
  border-radius: 10px;
  background: white;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.pagination .disabled {
  color: #9ca3af;
  background: #f3f4f6;
}

.page-info {
  color: #4b5563;
}

.pagination-top {
  margin-top: 0;
  margin-bottom: 16px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  border: none;
  background: #111827;
  color: white;
  padding: 12px 15px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  z-index: 50;
}

.back-to-top:hover {
  background: #2563eb;
}

.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.filter-bar input,
.filter-bar select {
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  background: white;
  font-weight: 600;
}

.filter-bar input {
  min-width: 320px;
  flex: 1;
}

.btn.secondary {
  background: #6b7280;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn.secondary:hover {
  background: #4b5563;
}

.table-wrap {
  max-height: calc(100vh - 260px);
  overflow: auto;
  border-radius: 12px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 5;
}

th a {
  color: #111827;
  text-decoration: none;
}

th a:hover {
  color: #2563eb;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.back-link {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.detail-title-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.detail-title-card h1 {
  margin: 8px 0;
  font-size: 28px;
}

.muted {
  color: #6b7280;
}

.small {
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric-card {
  background: white;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.metric-card span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}

.metric-card strong {
  font-size: 26px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.issue-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.issue-row:last-child {
  border-bottom: none;
}

.issue-row p {
  margin: 0;
  font-weight: 600;
}

.quick-actions {
  position: sticky;
  top: 20px;
}

.action-btn {
  width: 100%;
  display: block;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-weight: 800;
  text-align: left;
}

.content-preview {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 20px;
  border-radius: 12px;
  max-height: 620px;
  overflow: auto;
}

.content-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.content-preview h2,
.content-preview h3 {
  margin-top: 28px;
}

.link-row {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.link-row:last-child {
  border-bottom: none;
}

.link-row strong {
  display: block;
  margin-bottom: 6px;
}

.link-row a,
.image-row a {
  color: #2563eb;
  word-break: break-all;
  font-size: 13px;
}

.image-row {
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

.image-row:last-child {
  border-bottom: none;
}

.image-row p {
  margin: 8px 0;
}

.seo-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
}

.seo-score.good {
  background: #dcfce7;
  color: #166534;
}

.seo-score.mid {
  background: #fef3c7;
  color: #92400e;
}

.seo-score.bad {
  background: #fee2e2;
  color: #991b1b;
}

.score-card {
  border: 2px solid #2563eb;
}

.score-card strong {
  color: #2563eb;
}

.deduction-row {
  display: grid;
  grid-template-columns: 90px 60px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.deduction-row:last-child {
  border-bottom: none;
}

.deduction-row p {
  margin: 0;
  font-weight: 600;
}

.deduction-row strong {
  color: #991b1b;
}

.deduction-group {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.page-number {
  min-width: 38px;
  text-align: center;
}

.page-number.active {
  background: #2563eb;
  color: white;
}

.doc-panel pre {
  white-space: pre-wrap;
  word-break: keep-all;
  line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  color: #111827;
}

.queue-status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.queue-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.queue-status.running {
  background: #dbeafe;
  color: #1d4ed8;
}

.queue-status.success {
  background: #dcfce7;
  color: #166534;
}

.queue-status.failed {
  background: #fee2e2;
  color: #991b1b;
}

.result-box {
  white-space: pre-wrap;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 18px;
  border-radius: 12px;
  line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.small-text {
  font-size: 15px !important;
  word-break: break-word;
}

.detail-title-card {
  align-items: flex-start;
}

.detail-title-card .queue-status {
  min-width: 96px;
  text-align: center;
  white-space: nowrap;
}

.metric-card {
  min-width: 0;
  overflow: hidden;
}

.metric-card strong {
  display: block;
  max-width: 100%;
  font-size: 24px;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.detail-header .btn,
.detail-header .btn.secondary {
  text-decoration: none;
}

.recommend-card {
  position: relative;
  padding: 20px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.recommend-card + .recommend-card {
  margin-top: 14px;
}

.recommend-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
}

.recommend-card p {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.65;
}

.recommend-card a {
  display: inline-flex;
  float: right;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 800;
  text-decoration: none;
}

.recommend-card a:hover {
  background: #e5e7eb;
}

.recommend-card::after {
  content: "";
  display: block;
  clear: both;
}

.company-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.company-form input {
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
}

.company-form button {
  width: fit-content;
}
/* ==========================
   Tooltip
========================== */

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tip);

  position: absolute;

  left: 105%;
  top: 50%;

  transform: translateY(-50%);

  width: 220px;

  background: #2d3748;
  color: #fff;

  padding: 10px 12px;

  border-radius: 8px;

  font-size: 13px;
  line-height: 1.5;

  box-shadow: 0 8px 20px rgba(0,0,0,.18);

  opacity: 0;
  visibility: hidden;

  transition: .18s;

  z-index: 9999;
}

.tooltip:hover::after{
  opacity:1;
  visibility:visible;
}

.brand-title {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: inherit;
  text-decoration: none;
}

.brand-title:hover {
  text-decoration: underline;
}

/* ==========================
   Sidebar Navigation
========================== */

.nav a{
    display:block;
    padding:12px 16px;
    margin:4px 0;
    border-radius:10px;

    color:#4b5563;
    text-decoration:none;

    font-weight:600;

    transition:.18s;
}

.nav a:hover{
    background:#eef5ff;
    color:#2563eb;
}

.nav a.active{
    background:#2563eb;
    color:#fff;

    box-shadow:0 8px 18px rgba(37,99,235,.25);
}


/* Breadcrumb */

.breadcrumb{
    margin-bottom:20px;
    font-size:13px;
    color:#6b7280;
}

.breadcrumb a{
    color:#2563eb;
    text-decoration:none;
}

.breadcrumb span{
    margin:0 8px;
}

.breadcrumb strong{
    color:#111827;
}


.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.nav a.active .nav-count {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.mini-badge.ok {
  background: #dcfce7;
  color: #166534;
}

.mini-badge.wait {
  background: #f3f4f6;
  color: #6b7280;
}

/* ==========================
   Sticky Table Header
========================== */

.table-wrap {
  position: relative;
  overflow: auto;
}

.table-wrap table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f9fafb;
  box-shadow: 0 1px 0 #e5e7eb;
}


/* Sticky table header - stronger */
.table-wrap {
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 2px solid #d1d5db;
}

.table-wrap thead th::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #d1d5db;
}

/* ==========================
   Posts Table v0.2
========================== */

.posts-table-wrap {
  max-height: calc(100vh - 330px);
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.posts-table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1500px;
}

.posts-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f8fafc;
  border-bottom: 2px solid #d1d5db;
}

/* Post ID 고정 */
.posts-table-wrap th:nth-child(1),
.posts-table-wrap td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 20;
  background: #fff;
}

/* 제목 고정 */
.posts-table-wrap th:nth-child(2),
.posts-table-wrap td:nth-child(2) {
  position: sticky;
  left: 90px;
  z-index: 20;
  background: #fff;
  box-shadow: 2px 0 0 #e5e7eb;
}

/* 헤더가 왼쪽 고정 컬럼보다 위에 오도록 */
.posts-table-wrap thead th:nth-child(1),
.posts-table-wrap thead th:nth-child(2) {
  z-index: 40;
  background: #f8fafc;
}

.posts-table-wrap th:nth-child(1),
.posts-table-wrap td:nth-child(1) {
  min-width: 90px;
}

.posts-table-wrap th:nth-child(2),
.posts-table-wrap td:nth-child(2) {
  min-width: 360px;
  max-width: 420px;
}


/* ==========================
   Posts v2 Table Compact
========================== */

.posts-v2-table {
  max-height: calc(100vh - 330px);
  overflow: auto;
}

.posts-v2-table table {
  min-width: 1050px;
}

.post-title-ellipsis {
  max-width: 430px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.issue-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.issue-dot {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.issue-dot.ok {
  background: #dcfce7;
  color: #166534;
}

.issue-dot.warn {
  background: #fef3c7;
  color: #92400e;
}

.issue-dot.bad {
  background: #fee2e2;
  color: #991b1b;
}

/* Posts row click */
.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: #f8fafc;
}

.sync-inline-form {
  display: inline-flex;
  margin-left: auto;
}

.filter-bar {
  align-items: center;
}

/* Bulk Actions */
.bulk-action-bar {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1e40af;
}

.post-checkbox {
  transform: scale(1.15);
  cursor: pointer;
}

/* ==========================
   Posts v2 Table Fix
========================== */

.posts-v2-table table {
  table-layout: fixed;
  width: 100%;
  min-width: 1180px;
}

/* 기존 sticky/freeze 컬럼 영향 제거 */
.posts-v2-table th,
.posts-v2-table td {
  position: static !important;
  left: auto !important;
  z-index: auto !important;
}

/* 헤더만 고정 */
.posts-v2-table thead th {
  position: sticky !important;
  top: 0;
  z-index: 10 !important;
  background: #f8fafc;
}

/* 컬럼 폭 재설정 */
.posts-v2-table th:nth-child(1),
.posts-v2-table td:nth-child(1) {
  width: 44px;
  text-align: center;
}

.posts-v2-table th:nth-child(2),
.posts-v2-table td:nth-child(2) {
  width: 76px;
}

.posts-v2-table th:nth-child(3),
.posts-v2-table td:nth-child(3) {
  width: 430px;
}

.posts-v2-table th:nth-child(4),
.posts-v2-table td:nth-child(4) {
  width: 130px;
}

.posts-v2-table th:nth-child(5),
.posts-v2-table td:nth-child(5) {
  width: 100px;
}

.posts-v2-table th:nth-child(6),
.posts-v2-table td:nth-child(6) {
  width: 80px;
  text-align: center;
}

.posts-v2-table th:nth-child(7),
.posts-v2-table td:nth-child(7) {
  width: 140px;
}

.posts-v2-table th:nth-child(8),
.posts-v2-table td:nth-child(8) {
  width: 110px;
}

.posts-v2-table .post-title-ellipsis {
  max-width: 410px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.posts-v2-table .issue-cell {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

/* Posts v2 column alignment fix */
.posts-v2-table table {
  table-layout: fixed !important;
  width: 100%;
  min-width: 1134px;
  border-collapse: collapse;
}

.posts-v2-table th,
.posts-v2-table td {
  box-sizing: border-box;
  vertical-align: middle;
  overflow: hidden;
}

.posts-v2-table th {
  white-space: nowrap;
}

.posts-v2-table td {
  white-space: normal;
}

.posts-v2-table td:nth-child(3) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.posts-v2-table th:nth-child(1),
.posts-v2-table td:nth-child(1),
.posts-v2-table th:nth-child(2),
.posts-v2-table td:nth-child(2),
.posts-v2-table th:nth-child(6),
.posts-v2-table td:nth-child(6),
.posts-v2-table th:nth-child(8),
.posts-v2-table td:nth-child(8) {
  text-align: center;
}

/* Posts v2 issue alignment final fix */
.posts-v2-table td.issue-cell {
  display: table-cell !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.posts-v2-table .issue-dot {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  vertical-align: middle;
}

/* Row click visual */
.posts-v2-table .clickable-row {
  cursor: pointer;
}

.posts-v2-table .clickable-row:hover td {
  background: #f8fafc !important;
}

/* Recommendation Bundle Work Queue */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bundle-card {
  display: block;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: .18s;
}

.bundle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.bundle-top,
.bundle-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.bundle-card h4 {
  margin: 14px 0;
  font-size: 16px;
  line-height: 1.45;
}

.bundle-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

.bundle-stats b {
  color: #111827;
}

.progress-bar {
  height: 9px;
  margin: 14px 0 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-bar div {
  height: 100%;
  background: #2563eb;
}

.bundle-footer {
  color: #6b7280;
  font-size: 12px;
}

.bundle-task-list {
  display: grid;
  gap: 12px;
}

.bundle-task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.bundle-task-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bulk-textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  margin-bottom: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-grid > div {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.info-grid .wide {
  grid-column: 1 / -1;
}

.info-grid span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 6px;
}

.info-grid strong {
  word-break: break-all;
}

.btn.danger {
  background: #dc2626;
  color: #fff;
}

.btn.danger:hover {
  background: #b91c1c;
}

.sync-status-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.last-sync-text {
  font-size: 13px;
  color: #64748b;
}

.last-sync-text strong {
  color: #111827;
}

.sync-inline-form {
  display: inline-flex;
  margin: 0;
}
