.publish-hero-actions {
  grid-template-columns: minmax(220px, 260px) minmax(190px, 220px) minmax(150px, 172px);
  align-items: stretch;
}
.publish-link-box,
.publish-action-box {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.publish-link-box .primary-action,
.publish-action-box .primary-action {
  width: 100%;
}
.publish-meta-box .status-chip strong {
  min-width: 4em;
}
.publish-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 0;
}
.publish-feishu-card {
  align-items: stretch;
  gap: 12px;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.92));
  border: 1px solid rgba(34, 197, 94, 0.22);
}
.publish-material-card {
  align-items: stretch;
  gap: 12px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(224, 242, 254, 0.92));
  border: 1px solid rgba(14, 165, 233, 0.22);
}
.publish-face-card {
  align-items: stretch;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 243, 199, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.publish-feishu-head {
  flex: 1 1 100% !important;
}
.publish-feishu-head strong {
  display: block;
  color: #0f172a;
  font-size: 0.98rem;
}
.publish-feishu-head span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.78rem;
}
.publish-feishu-tabs {
  flex: 1 1 100% !important;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  gap: 3px;
}
.publish-feishu-tabs button {
  height: 32px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  background: transparent;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
}
.publish-feishu-tabs button.active {
  color: #065f46;
  background: white;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}
.publish-feishu-panel {
  flex: 1 1 100% !important;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.publish-secret,
.publish-bot-grid label,
.publish-link-row {
  display: grid;
  gap: 5px;
}
.publish-secret {
  flex: 1 1 260px;
  max-width: 360px;
}
.publish-secret span,
.publish-bot-grid span,
.publish-link-row span {
  color: #1e3a8a;
  font-size: 0.74rem;
  font-weight: 700;
}
.publish-secret input,
.publish-bot-grid input,
.publish-link-row input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 10px;
  padding: 0 10px;
  outline: none;
  background: white;
  font-size: 0.82rem;
}
.publish-bot-grid,
.publish-link-grid,
.publish-month-link-grid {
  flex: 1 1 100% !important;
  display: grid;
  gap: 10px;
}
.publish-bot-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 10px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.72);
}
.publish-link-grid,
.publish-month-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.publish-link-row {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 13px;
  background: white;
}
.feishu-cache-meta {
  grid-column: 2 / -1;
  min-width: 0;
  color: #166534;
  font-size: 0.74rem;
  font-style: normal;
  line-height: 1.45;
  word-break: break-word;
}
.publish-link-row button,
.publish-feishu-actions button {
  height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  color: white;
  background: #2563eb;
  font-weight: 700;
  font-size: 0.8rem;
}
.publish-feishu-actions {
  flex: 1 1 100% !important;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.publish-feishu-actions .action-green {
  background: #059669;
}
.publish-feishu-actions .ghost {
  color: #64748b;
  background: #f1f5f9;
}
.publish-asset-actions {
  flex: 1 1 100% !important;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.face-setting-row {
  flex: 1 1 100% !important;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 13px;
  background: rgba(255, 251, 235, 0.86);
}
.face-setting-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 800;
}
.face-setting-row input {
  width: 78px;
  height: 32px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 10px;
  padding: 0 8px;
  outline: none;
  background: white;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 800;
}
.face-setting-row em {
  color: #92400e;
  font-style: normal;
}
.publish-asset-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 0 13px;
  color: white;
  background: #2563eb;
  font-weight: 700;
  font-size: 0.8rem;
}
.publish-asset-actions button:disabled,
.publish-asset-actions button.is-disabled {
  cursor: not-allowed;
  color: #94a3b8;
  background: #e2e8f0 !important;
  box-shadow: none;
  opacity: 0.72;
}
.publish-asset-actions .action-green { background: #059669; }
.publish-asset-actions .ghost {
  color: #64748b;
  background: #f1f5f9;
}
.attachment-progress {
  flex: 1 1 100% !important;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #14532d;
  font-size: 0.82rem;
  line-height: 1.5;
}
.attachment-progress-head,
.attachment-progress-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.attachment-progress-head strong {
  color: #0f172a;
  font-size: 0.92rem;
}
.attachment-progress-head span {
  color: #047857;
  font-size: 0.84rem;
  font-weight: 800;
}
.attachment-progress-track {
  height: 9px;
  margin: 8px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.attachment-progress-track i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #2563eb);
  transition: width 0.25s ease;
}
.attachment-progress-detail span {
  color: #475569;
  font-size: 0.76rem;
}
.attachment-progress p {
  margin: 8px 0 0;
  color: #334155;
}
.attachment-progress-syncing .attachment-progress-track i,
.attachment-progress-pausing .attachment-progress-track i,
.attachment-progress-scanning .attachment-progress-track i {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}
.attachment-progress-pausing .attachment-progress-track i,
.attachment-progress-scanning .attachment-progress-track i,
.attachment-progress-syncing .attachment-progress-track i {
  animation: attachment-progress-pulse 1.15s ease-in-out infinite alternate;
}
@keyframes attachment-progress-pulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}
.attachment-progress-pausing .attachment-progress-head span,
.attachment-progress-paused .attachment-progress-head span,
.attachment-progress-ready .attachment-progress-head span {
  color: #b45309;
}
.attachment-progress-failed .attachment-progress-head span,
.attachment-progress-partial .attachment-progress-head span {
  color: #b91c1c;
}
.attachment-metrics {
  flex: 1 1 100% !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.attachment-metric {
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 12px;
  background: white;
}
.attachment-metric span {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
}
.attachment-metric strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.12rem;
}
.face-file-grid {
  flex: 1 1 100% !important;
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}
.face-filter-bar {
  flex: 1 1 100% !important;
  display: grid;
  gap: 8px;
}
.face-filter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.face-filter-row > span {
  width: 38px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 900;
}
.face-filter-row button {
  min-height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 0 11px;
  color: #475569;
  background: white;
  font-size: 0.78rem;
  font-weight: 800;
}
.face-filter-row button.active {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.34);
  background: #eff6ff;
}
.face-filter-row b {
  margin-left: 3px;
}
.face-doc-list {
  display: grid;
  gap: 12px;
}
.face-doc-group {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 12px;
  background: white;
}
.face-doc-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
  background: #f8fafc;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}
.face-doc-group summary::-webkit-details-marker { display: none; }
.face-doc-group summary strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.face-doc-group summary span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
}
.face-doc-table-wrap {
  overflow-x: auto;
}
.face-doc-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
}
.face-doc-table th {
  height: 34px;
  padding: 0 10px;
  color: #64748b;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: left;
}
.face-doc-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.68);
  color: #334155;
  font-size: 0.78rem;
  vertical-align: middle;
}
.face-doc-table tr:last-child td {
  border-bottom: 0;
}
.face-doc-table tr:hover td {
  background: #f8fafc;
}
.face-doc-table th:nth-child(1),
.face-doc-table td:nth-child(1) { width: 92px; }
.face-doc-table th:nth-child(2),
.face-doc-table td:nth-child(2) { width: 33%; }
.face-doc-table th:nth-child(3),
.face-doc-table td:nth-child(3) { width: 190px; }
.face-doc-table th:nth-child(4),
.face-doc-table td:nth-child(4) { width: 84px; }
.face-doc-table th:nth-child(6),
.face-doc-table td:nth-child(6) { width: 76px; text-align: right; }
.face-row-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  color: #475569;
  background: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}
.face-doc-table tr.running .face-row-status { color: #1d4ed8; background: #eff6ff; }
.face-doc-table tr.has-face .face-row-status { color: #047857; background: #ecfdf5; }
.face-doc-table tr.group-photo .face-row-status { color: #6d28d9; background: #f3e8ff; }
.face-doc-table tr.no-face .face-row-status { color: #b45309; background: #fffbeb; }
.face-doc-table tr.failed .face-row-status { color: #b91c1c; background: #fef2f2; }
.face-row-file strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.face-row-file em {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #b91c1c;
  font-size: 0.7rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.face-row-meta,
.face-row-count {
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.face-row-names {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.face-row-names span {
  max-width: 120px;
  overflow: hidden;
  border-radius: 999px;
  padding: 2px 7px;
  color: #334155;
  background: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.face-row-names .more {
  color: #1d4ed8;
  background: #eff6ff;
}
.face-name-empty {
  color: #94a3b8 !important;
  background: #f8fafc !important;
  font-weight: 700 !important;
}
.face-doc-table tr.has-face .face-row-names span:not(.more):not(.face-name-empty) {
  color: #047857;
  background: #ecfdf5;
}
.face-doc-table tr.group-photo .face-row-names span:not(.more):not(.face-name-empty) {
  color: #6d28d9;
  background: #f3e8ff;
}
.face-row-action button {
  height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 0 9px;
  color: white;
  background: #2563eb;
  font-size: 0.72rem;
  font-weight: 850;
}
.face-row-action span {
  color: #94a3b8;
  font-size: 0.72rem;
}
.face-task-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.face-task-preview-modal.hidden {
  display: none;
}
.face-task-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(226, 232, 240, 0.82);
  backdrop-filter: blur(2px);
}
.face-task-preview-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1080px, 94vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 14px;
  background: white;
  box-shadow: 0 26px 76px rgba(15, 23, 42, 0.32);
}
.face-task-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.face-task-preview-head span,
.face-task-preview-head em {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
}
.face-task-preview-head strong {
  display: block;
  max-width: min(720px, 68vw);
  overflow: hidden;
  color: #0f172a;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.face-task-preview-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #475569;
  background: #f1f5f9;
}
.face-task-preview-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  max-height: calc(92vh - 220px);
  padding: 12px;
  background:
    linear-gradient(45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f8fafc 75%),
    linear-gradient(-45deg, transparent 75%, #f8fafc 75%),
    #e2e8f0;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}
.face-task-preview-stage img {
  max-width: 100%;
  max-height: calc(92vh - 244px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}
.face-task-preview-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.face-task-preview-overlay .face-box {
  fill: none;
  stroke-width: 2.5;
}
.face-task-preview-overlay .face-box.known,
.face-task-preview-overlay .face-line.known {
  stroke: #16a34a;
}
.face-task-preview-overlay .face-box.suspect,
.face-task-preview-overlay .face-line.suspect {
  stroke: #dc2626;
}
.face-task-preview-overlay .face-line {
  stroke-width: 1.8;
}
.face-task-preview-overlay .face-label-bg.known {
  fill: rgba(22, 163, 74, 0.92);
}
.face-task-preview-overlay .face-label-bg.suspect {
  fill: rgba(220, 38, 38, 0.94);
}
.face-task-preview-overlay .face-label-text {
  fill: white;
  font-size: 12px;
  font-weight: 800;
}
.face-task-editor {
  display: grid;
  gap: 6px;
  max-height: 132px;
  overflow: auto;
  padding: 10px 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #f8fafc;
}
.face-edit-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 180px) auto auto;
  gap: 6px;
  align-items: center;
}
.face-edit-row span {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.face-edit-row b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 999px;
  color: white;
  background: #2563eb;
  font-size: 0.68rem;
}
.face-edit-row input {
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 0 8px;
  background: white;
  color: #0f172a;
  font-size: 0.76rem;
}
.face-edit-row button {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 0 9px;
  color: white;
  background: #2563eb;
  font-size: 0.74rem;
  font-weight: 800;
}
.face-edit-row button.danger {
  background: #dc2626;
}
.face-edit-row button:disabled {
  color: #94a3b8;
  background: #e2e8f0;
}
.attachment-document-list {
  flex: 1 1 100% !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}
.attachment-plan-list {
  flex: 1 1 100% !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 440px;
  overflow: auto;
  padding-right: 2px;
}
.attachment-doc-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}
.attachment-doc-section[open] {
  border-color: rgba(37, 99, 235, 0.18);
}
.attachment-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
}
.attachment-doc-head::-webkit-details-marker { display: none; }
.attachment-doc-head::after {
  content: "展开";
  border-radius: 999px;
  padding: 3px 8px;
  color: #475569;
  background: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 800;
}
.attachment-doc-section[open] .attachment-doc-head::after {
  content: "收起";
}
.attachment-doc-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.attachment-doc-head strong {
  color: #0f172a;
  font-size: 0.9rem;
}
.attachment-doc-head em,
.attachment-doc-count {
  color: #64748b;
  font-size: 0.74rem;
  font-style: normal;
}
.attachment-row-list {
  display: grid;
  gap: 7px;
}
.attachment-row-result {
  display: grid;
  grid-template-columns: 14px minmax(74px, auto) auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 10px;
  background: white;
}
.attachment-row-light {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
}
.attachment-row-result.green .attachment-row-light {
  background: #10b981;
  box-shadow: 0 0 0 3px #d1fae5;
}
.attachment-row-result.red .attachment-row-light {
  background: #ef4444;
  box-shadow: 0 0 0 3px #fee2e2;
}
.attachment-row-result b {
  color: #111827;
  font-size: 0.78rem;
}
.attachment-row-result em {
  color: #64748b;
  font-size: 0.74rem;
  font-style: normal;
}
.attachment-row-files {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.attachment-row-files span,
.attachment-row-files a {
  max-width: 240px;
  overflow: hidden;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-row-files .green {
  color: #047857;
  background: #ecfdf5;
}
.attachment-row-files .red {
  color: #b91c1c;
  background: #fef2f2;
}
.attachment-plan-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: white;
}
.attachment-plan-row strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-plan-row span:not(.attachment-status),
.attachment-plan-row p,
.attachment-plan-row a {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.45;
  word-break: break-word;
}
.attachment-plan-row a {
  color: #2563eb;
  font-weight: 700;
}
.attachment-error-text {
  color: #b91c1c !important;
}
.attachment-document-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: white;
}
.attachment-document-card strong {
  color: #111827;
  font-size: 0.9rem;
}
.attachment-document-card p,
.attachment-document-card span {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.4;
}
.attachment-status {
  justify-self: start;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}
.attachment-status.synced,
.attachment-status.done,
.attachment-status.unchanged,
.attachment-status.existing,
.attachment-status.linked_existing,
.attachment-status.uploaded,
.attachment-status.reused_cos,
.attachment-status.reused_md5,
.attachment-status.reused_token {
  color: #047857;
  background: #ecfdf5;
}
.attachment-status.partial,
.attachment-status.needs_download,
.attachment-status.md5_candidate,
.attachment-status.paused {
  color: #b45309;
  background: #fffbeb;
}
.attachment-status.failed,
.attachment-status.risk {
  color: #b91c1c;
  background: #fef2f2;
}
.month-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: white;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 500;
}
.month-picker span { color: #64748b; }
.month-picker select {
  min-width: 92px;
  border: 0;
  outline: none;
  background: transparent;
  color: #111827;
  font-weight: 600;
}
.sort-picker select { min-width: 118px; }
.publish-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.publish-month-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: white;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}
.publish-month-card.active {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.08);
}
.publish-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.publish-month-head strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}
.status-badge.ok { color: #047857; background: #ecfdf5; }
.status-badge.warn { color: #b45309; background: #fffbeb; }
.publish-file-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-top: 7px;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
  color: #475569;
  font-size: 0.76rem;
}
.publish-file-line + .publish-file-line { margin-top: 7px; }
.publish-file-line b {
  color: #111827;
  font-weight: 700;
}
.publish-file-line span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.publish-file-line em {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-style: normal;
  font-size: 0.72rem;
}
.publish-errors {
  margin-bottom: 12px;
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-radius: 14px;
  background: #fff1f2;
  color: #9f1239;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
}
.publish-errors div + div { margin-top: 4px; }
.publish-toolbar { margin-bottom: 0; }
.toast {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 80;
  pointer-events: none;
  perspective: 900px;
}
.toast-inner {
  position: relative;
  overflow: hidden;
  max-width: min(440px, calc(100vw - 36px));
  padding: 12px 15px;
  border-radius: 14px;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.48));
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -18px 36px rgba(255,255,255,0.18), 0 18px 44px rgba(15,23,42,0.2);
  border: 1px solid rgba(255,255,255,0.78);
  border-left: 5px solid #334155;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.45;
}
.toast-inner::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 6px;
  height: 45%;
  border-radius: 12px 12px 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0));
  pointer-events: none;
}
.toast-inner::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: 46%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: rotate(18deg) translateX(-120%);
  pointer-events: none;
}
.toast-visible .toast-inner { animation: toast-pop-flash 760ms ease-out both; }
.toast-visible .toast-inner::after { animation: toast-liquid-sheen 920ms ease-out both; }
@keyframes toast-pop-flash {
  0% { opacity: 0; transform: translate3d(-8px, -4px, 0) scale(0.98); filter: brightness(1); }
  18% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.015); filter: brightness(1.22); }
  34% { transform: scale(0.995); filter: brightness(0.98); }
  52% { transform: scale(1.006); filter: brightness(1.12); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}
@keyframes toast-liquid-sheen {
  0% { transform: rotate(18deg) translateX(-130%); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: rotate(18deg) translateX(300%); opacity: 0; }
}
.toast-info { border-left-color: #334155; }
.toast-success { border-left-color: #059669; }
.toast-error { border-left-color: #e11d48; }
.toast-warn { border-left-color: #d97706; }
.publish-table-wrap {
  max-height: clamp(420px, calc(100vh - 330px), 760px);
}
.publish-table {
  width: 100%;
  min-width: min(1240px, calc(100vw - 56px));
  table-layout: fixed;
}
.publish-table th:nth-child(1),
.publish-table td:nth-child(1),
.publish-table th:nth-child(2),
.publish-table td:nth-child(2),
.publish-table th:nth-child(3),
.publish-table td:nth-child(3) {
  white-space: nowrap !important;
  text-align: center !important;
}
.publish-table th:nth-child(1),
.publish-table td:nth-child(1) { width: 8%; }
.publish-table th:nth-child(2),
.publish-table td:nth-child(2) { width: 8%; }
.publish-table th:nth-child(3),
.publish-table td:nth-child(3) { width: 8%; }
.publish-table th:nth-child(4),
.publish-table td:nth-child(4) {
  width: 34%;
  min-width: 280px;
  text-align: left !important;
}
.publish-table th:nth-child(5),
.publish-table td:nth-child(5),
.publish-table th:nth-child(6),
.publish-table td:nth-child(6),
.publish-table th:nth-child(7),
.publish-table td:nth-child(7),
.publish-table th:nth-child(8),
.publish-table td:nth-child(8) { width: 9%; }
.publish-table th:nth-child(9),
.publish-table td:nth-child(9),
.publish-table th:nth-child(10),
.publish-table td:nth-child(10) { width: 7%; }
.publish-score-head {
  color: #111827 !important;
  font-weight: 700 !important;
}
.publish-score-cell {
  color: #111827;
  font-weight: 700 !important;
  text-align: center !important;
  border-left: 1px solid rgba(226, 232, 240, 0.55);
}
.publish-detail {
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
}
.detail-line {
  display: block;
  min-height: 1.45em;
}
.cap-line {
  color: #dc2626;
  font-weight: 800;
}
.detail-empty-line {
  min-height: 1.45em;
}
.publish-hidden-col {
  display: none;
}
.show-hidden-cols .publish-hidden-col {
  display: table-cell;
}
.mb-4 { margin-bottom: 1rem; }
.mt-3 { margin-top: 0.75rem; }
@media (max-width: 760px) {
  .publish-hero-actions { grid-template-columns: 1fr; }
  .publish-link-box, .publish-action-box { width: 100%; }
  .publish-controls > * { width: 100%; justify-content: center; }
  .publish-link-row { grid-template-columns: 1fr; }
  .month-picker select { flex: 1; }
  .publish-file-line span { white-space: normal; }
  .publish-table { min-width: 920px; }
}
