.pub {
  --pub-outline: #dce3d5;
}
.pub-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  padding: 17px;
  margin-bottom: 15px;
}
.pub-top,
.pub-summary,
.pub-link-actions,
.pub-bind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pub-top h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
}
.pub-top > div {
  display: flex;
  gap: 5px;
}
.pub-top > div .btn {
  padding: 3px 10px;
  font-size: 11px;
}
.pub-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}
.pub-week button {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 5px;
  text-align: left;
  background: #fafcf7;
}
.pub-week button.selected,
.pub-week button:hover {
  border-color: #829c66;
  background: #f1f6e9;
}
.pub-week button.today strong {
  color: #527531;
}
.pub-week small,
.pub-week span,
.pub-notice small,
.pub-job small,
.pub-summary,
.pub-detail dt,
.pub-bind small,
.pub-scenes small {
  font-size: 11px;
  color: var(--muted, #677164);
}
.pub-week strong {
  font-size: 19px;
}
.pub-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr);
  gap: 15px;
  align-items: start;
}
.pub-filters,
.pub-link-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.pub-filters select {
  font-size: 12px;
  padding: 6px;
}
.pub-job,
.pub-notice {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  background: transparent;
  text-align: left;
}
.pub-job {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.pub-job time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.pub-job span strong,
.pub-job span small,
.pub-bind strong,
.pub-bind small,
.pub-scenes strong,
.pub-scenes small {
  display: block;
  overflow-wrap: anywhere;
}
.pub-job strong,
.pub-notice strong,
.pub-bind strong,
.pub-scenes strong {
  font-size: 13px;
}
.pub-notice strong,
.pub-notice small {
  display: block;
}
.pub-notice.new strong:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #789d51;
  margin-right: 6px;
}
.pub-badge {
  display: inline-block;
  padding: 3px 7px;
  background: #eef1e8;
  color: #526149;
  border-radius: 20px;
  white-space: nowrap;
  font-size: 11px;
}
.pub-badge.status-ready,
.pub-badge.status-published,
.pub-badge.status-scheduled {
  background: #e6f2d8;
  color: #47642e;
}
.pub-badge.status-rejected,
.pub-badge.status-failed,
.pub-badge.status-uncertain {
  background: #f8e9e0;
  color: #9c492d;
}
.pub-empty,
.pub-tip {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 12px 0;
}
.pub-error {
  color: #9e352b;
  font-size: 13px;
  background: #fff0ed;
  border-radius: 6px;
  padding: 8px;
  margin: 9px 0;
}
.pub [hidden],
.pub-form [hidden],
.pub-detail [hidden] {
  display: none !important;
}
.pub-form {
  display: grid;
  gap: 12px;
}
.pub-form .modal-actions {
  margin: 0;
}
.pub-detail h3 {
  font-size: 19px;
  margin: 9px 0;
}
.pub-detail dl {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr);
  gap: 8px;
  background: #f6f8f2;
  padding: 12px;
  border-radius: 7px;
}
.pub-detail dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.pub-proof {
  margin: 12px 0;
  font-size: 13px;
}
.pub-proof summary {
  cursor: pointer;
  font-weight: 600;
}
.pub-proof p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
  line-height: 1.65;
}
.pub-scenes {
  max-height: 185px;
  overflow-y: auto;
}
.pub-scenes > div,
.pub-bind {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.pub-scenes img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  object-fit: contain;
}
.pub-check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  line-height: 1.65;
}
.pub-check input {
  margin: 4px 0;
}
.pub-link-actions {
  justify-content: flex-start;
}
.pub-bind > span {
  flex: 1;
}
.pub-detail .field {
  margin-top: 10px;
}
.pub-detail .pub-link-actions {
  margin: 5px 0;
}
@media (max-width: 920px) {
  .pub-lower {
    grid-template-columns: 1fr;
  }
  .pub-card {
    padding: 13px;
  }
  .pub-week {
    gap: 4px;
  }
  .pub-week button {
    padding: 7px 5px;
  }
  .pub-job {
    grid-template-columns: 82px minmax(0, 1fr) auto;
  }
}
@media (max-width: 560px) {
  .pub .page-intro {
    flex-wrap: wrap;
  }
  .pub .intro-actions {
    gap: 6px;
  }
  .pub-week {
    gap: 3px;
  }
  .pub-week button {
    padding: 6px 3px;
    justify-content: center;
    text-align: center;
  }
  .pub-week strong {
    font-size: 13px;
  }
  .pub-week small,
  .pub-week span {
    font-size: 9px;
  }
  .pub-job {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .pub-job time {
    grid-column: 1/-1;
  }
  .pub-card {
    padding: 10px;
  }
  .pub-detail dl {
    grid-template-columns: 95px 1fr;
  }
}
