.case-showcase-settings-card { padding: 0; overflow: hidden; }
.case-management-shortcut { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.case-management-shortcut[hidden] { display: none; }
.case-management-shortcut h2 { margin: 0; font-size: 16px; }
.case-management-shortcut p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.case-management-shortcut button { flex: none; }
@media (max-width: 700px) { .case-management-shortcut { flex-wrap: wrap; } }
.case-showcase-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.case-showcase-heading h2, .case-showcase-heading p, .case-editor-title h3, .case-editor-title p, .case-publication-panel h3, .case-publication-panel p { margin: 0; }
.case-showcase-heading h2 { color: var(--navy-900); font-size: 18px; }
.case-showcase-heading p, .case-editor-title p, .case-publication-panel p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.case-showcase-workspace { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
.case-showcase-list-panel { padding: 16px; border-right: 1px solid var(--line); background: var(--action-softer); }
.case-showcase-filter { display: grid; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.case-showcase-filter select { width: 100%; min-height: var(--control-height); border: 1px solid var(--control-border); border-radius: var(--control-radius); background: var(--surface); color: var(--ink); padding: 0 var(--control-padding-x); }
.case-showcase-list { display: grid; gap: 7px; }
.case-list-item { width: 100%; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.case-list-item:hover { background: var(--surface); }
.case-list-item.is-current { border-color: var(--action); background: var(--surface); box-shadow: 0 5px 15px rgba(23,77,122,.08); }
.case-list-item > span:first-child { min-width: 0; display: grid; gap: 4px; }
.case-list-item strong, .case-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-list-item strong { font-size: 13px; }
.case-list-item small { color: var(--muted); }
.case-list-item .status { flex: none; max-width: 92px; white-space: normal; text-align: center; }
.case-list-empty { display: grid; gap: 5px; padding: 28px 12px; color: var(--muted); text-align: center; }
.case-list-empty strong { color: var(--ink); font-size: 13px; }
.case-showcase-page-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.case-showcase-page-actions[hidden] { display: none; }
.case-showcase-page-actions [data-case-page-status].is-error { color: var(--red); line-height: 1.5; }
.case-showcase-page-actions button { flex: none; min-height: 34px; padding: 0 12px; }
.case-showcase-editor-panel { min-width: 0; background: var(--surface); }
.case-showcase-editor-panel > .form-message:not(:empty) { margin: 16px 20px 0; }
.case-overview[hidden], .case-display-settings[hidden], .case-showcase-form[hidden], .case-editor-empty[hidden] { display: none; }
.case-overview { padding: 20px; }
.case-overview-heading, .case-overview-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.case-result { margin: 24px 0 18px; }
.case-result.is-success h3 { color: var(--green); }
.case-result h3 { margin: 0; font-size: 24px; color: var(--navy-900); }
.case-result p { margin: 6px 0 0; color: var(--muted); }
.case-result p:empty { display: none; }
.case-workflow { display: flex; gap: 24px; padding: 0 0 20px; margin: 0 0 22px; border-bottom: 1px solid var(--line); list-style: none; color: var(--muted); font-size: 12px; }
.case-workflow li.is-complete { color: var(--action); }
.case-workflow li.is-current { color: var(--ink); font-weight: 700; }
.case-overview-title h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.case-overview-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 22px 0; }
.case-overview-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.case-overview-facts dd { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.case-content-preview { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-content-preview summary { padding: 16px 0; color: var(--action); font-weight: 700; cursor: pointer; }
.case-preview-angle h4 { margin: 16px 0 10px; }
.case-preview-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-preview-pair figure { margin: 0; min-width: 0; }
.case-preview-pair img { display: block; width: 100%; height: 320px; object-fit: contain; background: var(--canvas); }
.case-preview-pair figcaption { padding: 8px 0; color: var(--muted); font-size: 12px; }
.case-preview-table { overflow-x: auto; margin-top: 16px; }
.case-preview-table table { min-width: 0; }
.case-preview-table th, .case-preview-table td { padding: 10px 6px; white-space: normal; overflow-wrap: anywhere; }
.case-preview-table caption { text-align: left; padding: 12px 0; font-weight: 700; }
.case-preview-copy { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.case-display-settings { grid-column: 1 / -1; }
.case-display-settings h4 { margin: 0 0 16px; }
.case-display-settings .case-publication-settings { justify-content: flex-start; margin-bottom: 20px; }
.case-detail-actions:empty { display: none; }
.case-editor-empty { min-height: 430px; display: grid; place-content: center; gap: 8px; padding: 32px; color: var(--muted); text-align: center; }
.case-editor-empty strong { color: var(--ink); font-size: 16px; }
.case-showcase-form { padding: 18px 20px 22px; }
.case-editor-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.case-editor-title h3 { color: var(--navy-900); font-size: 18px; }
.case-editor-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.case-editor-tools button { min-width: 64px; min-height: 36px; }
.case-cancel-confirm { width: min(460px, calc(100vw - 32px)); box-sizing: border-box; padding: 24px; background: var(--surface); }
.case-cancel-confirm:not([open]) { display: none; }
body:has(.case-cancel-confirm[open]) { overflow: hidden; }
.case-cancel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.case-cancel-header h3 { margin: 0; color: var(--navy-900); font-size: 20px; line-height: 1.4; }
.case-cancel-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.case-cancel-close:hover { background: var(--canvas); color: var(--ink); }
.case-cancel-confirm p { margin: 16px 0 28px; font-size: 15px; line-height: 1.7; }
.case-cancel-actions { display: flex; justify-content: flex-end; gap: 12px; }
.case-cancel-actions button { min-height: 40px; padding: 0 18px; font-size: 14px; }
.case-cancel-actions .case-discard-button { background: var(--red); border-color: var(--red); color: #fff; box-shadow: none; }
.case-cancel-actions .case-discard-button:hover { background: #932e2e; border-color: #932e2e; }
.case-cancel-confirm button:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
@media (max-width: 480px) {
  .case-cancel-confirm { padding: 20px; }
  .case-cancel-confirm p { font-size: 16px; }
  .case-cancel-actions button { flex: 1; min-height: 44px; padding: 0 12px; }
}
.case-editor-section { min-width: 0; margin: 0; padding: 18px 0 20px; border: 0; border-top: 1px solid var(--line); }
.case-editor-section > legend { padding: 0 14px 0 0; color: var(--navy-900); font-size: 14px; font-weight: 800; }
.case-editor-section label, .case-publication-settings label { display: grid; align-content: start; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.case-editor-section input, .case-editor-section select, .case-editor-section textarea, .case-publication-settings input { width: 100%; min-height: 36px; border: 1px solid var(--control-border); border-radius: var(--control-radius); background: var(--surface); color: var(--ink); padding: 7px 10px; }
.case-editor-section textarea { resize: vertical; line-height: 1.6; }
.case-member-field { width: min(330px, 100%); }
.case-source-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.case-source-column { min-width: 0; display: grid; gap: 10px; }
.case-photo-stage { min-height: 172px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; padding: 8px; border: 1px dashed var(--control-border); border-radius: 10px; background: var(--canvas); }
.case-photo-stage > span { grid-column: 1 / -1; align-self: center; color: var(--muted); text-align: center; font-size: 12px; }
.case-photo-stage figure { min-width: 0; position: relative; margin: 0; overflow: hidden; border-radius: 7px; background: #e7edf2; }
.case-photo-stage img { width: 100%; height: 100%; min-height: 154px; display: block; object-fit: cover; }
.case-photo-stage figcaption { position: absolute; left: 5px; bottom: 5px; padding: 3px 6px; border-radius: 4px; background: rgba(2,13,29,.8); color: white; font-size: 10px; }
.case-photo-stage figure.is-error::after { content: "暂时无法读取"; position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; background: var(--red-soft); color: var(--red); text-align: center; font-size: 11px; }
.case-choice-field { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.case-choice-field > legend { padding: 0; color: var(--ink); font-size: 12px; font-weight: 800; }
.case-choice-field > p { margin: 4px 0 8px; color: var(--muted); font-size: 11px; }
.case-inline-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.case-inline-choices label { display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; min-height: 34px; padding: 5px 10px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--surface); cursor: pointer; }
.case-inline-choices input { width: 15px; min-height: 15px; margin: 0; accent-color: var(--action); }
.case-choice-empty { color: var(--muted); font-size: 12px; line-height: 34px; }
.case-copy-grid { display: grid; grid-template-columns: minmax(160px, 230px) minmax(220px, 1fr) minmax(150px, 190px); gap: 14px; align-items: start; }
.case-copy-wide { grid-column: 1 / -1; }
.case-edit-warning { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #f0c987; border-radius: 8px; background: var(--amber-soft); color: var(--amber); font-size: 12px; line-height: 1.65; }
.case-editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.case-editor-actions .form-message { flex: 1; margin: 0; line-height: 1.6; }
.case-publication-panel { display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: center; gap: 16px 24px; margin-top: 20px; padding: 16px; border-radius: 10px; background: var(--action-softer); }
.case-publication-panel h3 { color: var(--navy-900); font-size: 15px; }
.case-publication-settings { display: flex; align-items: end; justify-content: flex-end; gap: 16px; }
.case-publication-settings .inline-check { display: inline-flex; align-items: center; min-height: 36px; gap: 8px; }
.case-publication-settings .inline-check input { width: 16px; min-height: 16px; accent-color: var(--action); }
.case-publication-settings label:last-child { width: 96px; }
.case-publication-panel .row-actions { grid-column: 1 / -1; justify-content: flex-end; }
@media (max-width: 1000px) {
  .case-showcase-workspace { grid-template-columns: 1fr; }
  .case-showcase-list-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-showcase-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-copy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-copy-wide { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .case-overview { padding: 16px; }
  .case-workflow { gap: 16px; flex-wrap: wrap; }
  .case-preview-pair { gap: 8px; }
  .case-preview-pair img { height: 220px; }
  .case-overview-heading button { min-height: 40px; }
  .case-editor-tools { justify-content: space-between; }
  .case-editor-tools button { min-height: 40px; }
  .case-showcase-heading, .case-editor-title, .case-editor-actions { align-items: stretch; flex-direction: column; }
  .case-showcase-heading .row-actions, .case-publication-panel .row-actions { width: 100%; }
  .case-showcase-heading .row-actions button, .case-publication-panel .row-actions button, .case-editor-actions button { flex: 1; min-height: 40px; }
  .case-showcase-list { grid-template-columns: 1fr; }
  .case-showcase-page-actions { align-items: stretch; flex-direction: column; }
  .case-showcase-page-actions button { width: 100%; min-height: 40px; }
  .case-showcase-form { padding: 16px; }
  .case-source-pair, .case-copy-grid, .case-publication-panel { grid-template-columns: 1fr; }
  .case-copy-wide, .case-publication-panel .row-actions { grid-column: auto; }
  .case-photo-stage { min-height: 150px; }
  .case-photo-stage img { min-height: 132px; }
  .case-publication-settings { align-items: stretch; justify-content: start; flex-direction: column; }
  .case-publication-settings label:last-child { width: min(140px, 100%); }
}
