/* Crew Print Bridge: inherits Crew's fonts and theme (--accent, --muted, --border, --surface from styles.css). */
.cp-card { --cp-accent: var(--accent, #1f7a4d); --cp-muted: var(--muted, #6b7280); --cp-line: var(--border, #e5e7eb);
  --cp-bg: var(--surface, #fff); --cp-on: #15803d; --cp-off: #9ca3af; --cp-warn: #b45309;
  background: var(--cp-bg); border: 1px solid var(--cp-line); border-radius: var(--radius, 14px); padding: 18px; margin: 12px 0; }
@media (prefers-color-scheme: dark) { .cp-card { --cp-bg: var(--surface, #17191c); --cp-line: var(--border, #2a2e33); --cp-muted: var(--muted, #9aa3ad); } }
.cp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cp-head h3 { margin: 0; }
.cp-card h4 { margin: 18px 0 8px; }
.cp-muted { color: var(--cp-muted); font-size: .9em; }
.cp-err { color: #b91c1c; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.cp-btn { display: inline-block; background: var(--cp-accent); color: var(--accent-ink, #fff); border: 0; border-radius: 10px; padding: 10px 14px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.cp-btn.ghost { background: transparent; color: inherit; border: 1px solid var(--cp-line); }
.cp-link { background: none; border: 0; padding: 0; color: var(--cp-accent); font: inherit; text-decoration: underline; cursor: pointer; }
.cp-pill { display: inline-block; font-size: .78em; font-weight: 600; padding: 2px 8px; border-radius: 99px; color: #fff; background: var(--cp-off); vertical-align: middle; }
.cp-pill.on { background: var(--cp-on); } .cp-pill.warn { background: var(--cp-warn); }
.cp-list { list-style: none; padding: 0; margin: 0; }
.cp-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cp-line); flex-wrap: wrap; }
.cp-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.cp-table th, .cp-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--cp-line); vertical-align: top; }
@media (max-width: 640px) { .cp-table thead { display: none; } .cp-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--cp-line); }
  .cp-table td { display: block; border: 0; padding: 2px 0; } }
.cp-switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.cp-switch input { opacity: 0; width: 0; height: 0; }
.cp-switch span { position: absolute; inset: 0; background: var(--cp-off); border-radius: 99px; transition: .2s; cursor: pointer; }
.cp-switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.cp-switch input:checked + span { background: var(--cp-on); } .cp-switch input:checked + span::before { transform: translateX(18px); }
.cp-job { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 800px) { .cp-job { grid-template-columns: 1fr; } }
.cp-preview { width: 100%; min-height: 460px; border: 1px solid var(--cp-line); border-radius: 10px; background: #fff; }
.cp-form { display: grid; gap: 12px; align-content: start; }
.cp-form select, .cp-form input[type=number] { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid var(--cp-line); font: inherit; background: transparent; color: inherit; }
.cp-form input[type=number] { width: 80px; }
.cp-form fieldset { border: 1px solid var(--cp-line); border-radius: 10px; display: grid; gap: 6px; }
.cp-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cp-dialog { background: var(--surface, #fff); color: var(--text, inherit); max-width: 640px; width: calc(100% - 32px); border: 0; border-radius: 16px; padding: 24px; max-height: 85vh; overflow: auto; }
.cp-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.cp-dialog h2 { margin-top: 0; } .cp-dialog li { margin: 6px 0; }
.cp-x { position: sticky; float: right; top: 0; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: inherit; }
