.opc-page,.opc-form{min-width:0}
.opc-actions,.opc-row-actions,.opc-section-heading,.opc-preview{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap
}
.opc-actions{justify-content:flex-end}
.opc-summary{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px
}
.opc-summary article{padding:13px 15px}
.opc-summary article>div{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
.opc-summary strong{font-size:23px;line-height:1}
.opc-summary small{font-size:12px;margin-left:3px;color:var(--muted)}
.opc-filters{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:12px;padding:0 20px 14px}
.opc-filters .field{min-width:0}
.opc-table{min-width:870px}
.opc-table small{display:block;margin-top:3px;color:var(--muted)}
.opc-table th:first-child,.opc-table td:first-child{position:sticky;left:0;z-index:1;min-width:160px;max-width:230px;white-space:normal;background:var(--surface,#fff);box-shadow:1px 0 0 var(--line)}
.opc-table td:first-child strong,.opc-table td:first-child small{overflow-wrap:anywhere}
.opc-page .panel-head span{font-size:12px}
.opc-discovery{margin-bottom:18px}
.opc-discovery .panel-head{gap:12px;flex-wrap:wrap}
.opc-discovery-body{padding:0 20px 18px;min-width:0}
.opc-discovery-empty{margin:0;padding:13px 0;color:var(--muted);font-size:13px;line-height:1.7}
.opc-discovery-meta,.opc-discovery-item-head,.opc-discovery-item-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.opc-discovery-meta{font-size:12px;color:var(--muted);margin-bottom:12px}
.opc-discovery-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 11px}
.opc-discovery-summary>div{padding:12px 14px;border:1px solid var(--line);background:var(--canvas);border-radius:10px}
.opc-discovery-summary dt{font-size:12px;color:var(--muted)}
.opc-discovery-summary dd{margin:6px 0 0;font-size:25px;line-height:1.2;font-weight:700;color:var(--brand)}
.opc-discovery-summary small{font-size:12px;margin-left:4px;color:var(--muted);font-weight:400}
.opc-discovery-details{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.opc-discovery-details summary{font-size:13px;font-weight:600;cursor:pointer}
.opc-discovery-list{display:grid;gap:9px;margin:12px 0 0;padding:0;list-style:none}
.opc-discovery-list>li{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--canvas);min-width:0}
.opc-discovery-item-head>div{min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.opc-discovery-item-head strong{font-size:13px;overflow-wrap:anywhere}
.opc-discovery-platform{font-size:10px;border:1px solid var(--line);padding:3px 6px;border-radius:6px;color:var(--muted);background:var(--surface,#fff)}
.opc-discovery-list p{margin:8px 0;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.opc-discovery-list a{color:var(--brand);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.opc-discovery-item-foot{justify-content:flex-start;font-size:11px;color:var(--muted)}
.opc-discovery-item-foot .btn{margin-left:auto;font-size:12px}
.opc-form{display:grid;gap:12px}
.opc-form-section{
  min-width:0;display:grid;gap:11px;padding:14px;border:1px solid var(--line);border-radius:11px
}
.opc-form-section h3{margin:0;font-size:15px;overflow-wrap:anywhere}
.opc-section-heading{justify-content:space-between}
.opc-section-heading p,.opc-csv-ready p{margin:3px 0 0;color:var(--muted);font-size:12px}
.opc-form .field{min-width:0}
.opc-platform-hint{margin:0;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.opc-ai-review{background:#f7fcf9;border-color:#e6f6ec}
.opc-ai-status{margin:0;border-radius:8px;background:var(--brand-soft);padding:10px 11px;color:var(--brand);font-size:13px;line-height:1.6}
.opc-ai-account{margin:0;font-size:12px;overflow-wrap:anywhere}
.opc-ai-account a,.opc-ai-evidence a{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.opc-ai-evidence{min-width:0;font-size:12px}
.opc-ai-evidence summary{cursor:pointer;font-weight:700;padding-block:4px}
.opc-ai-evidence>ul{margin:7px 0;padding-left:19px}
.opc-ai-evidence li+li{margin-top:5px}
.opc-ai-evidence table{min-width:460px}
.opc-ai-evidence table td{white-space:normal;vertical-align:top;overflow-wrap:anywhere}
.opc-ai-evidence table td p{margin:0 0 4px;max-width:270px}
.opc-capture-methods{display:flex;gap:7px;flex-wrap:wrap}
.opc-capture-methods .btn{white-space:normal;flex:1 1 150px}
.opc-evidence-preview{max-height:300px;overflow:auto;border-radius:9px}
.opc-evidence-preview img{display:block;max-width:100%;height:auto}
.opc-instructions{margin:0;padding-left:22px;font-size:13px;line-height:1.8}
.opc-instructions li+li{margin-top:5px}
.opc-crop-scroll{max-width:100%;max-height:420px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#ddece2}
.opc-crop-scroll canvas{display:block;max-width:100%;height:auto;touch-action:none;cursor:crosshair}
.opc-crop-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.opc-crop-fields .field{font-size:11px}
.opc-crop-fields input{min-width:0}
.opc-crop-preview{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:50px}
.opc-crop-preview canvas{max-width:100px;max-height:100px;border-radius:8px;background:var(--canvas)}
.opc-crop-preview .btn{white-space:normal}
.opc-wide{grid-column:1/-1}
.opc-notice,.opc-import-errors,.opc-csv-ready{
  margin:0;padding:10px 11px;border-radius:8px;background:var(--brand-soft,#f7fcf9);font-size:12px
}
.opc-error,.opc-import-errors{color:#8b3428;background:#fff1ed}
.opc-error{margin:0;border-radius:8px;padding:9px 11px;font-size:12px}
.opc-error[hidden]{display:none}
.opc-import-errors ul{margin:6px 0 0;padding-left:18px}
.opc-preview img{display:block;width:70px;height:70px;object-fit:cover;border-radius:9px;background:var(--canvas)}
.opc-preview [role=status]{font-size:12px;color:var(--muted)}
.opc-repeat{display:grid;gap:6px;padding:10px;margin-top:7px;border:1px solid var(--line);border-radius:8px;background:var(--canvas)}
.opc-repeat:first-child{margin-top:0}
.opc-repeat>.btn{justify-self:end}
.opc-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:0}
.opc-review dt{font-size:12px;color:var(--muted)}
.opc-review dd{margin:3px 0 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.opc-agree{display:flex;align-items:flex-start;gap:8px;font-size:13px}
.opc-agree input{margin-top:3px}
.opc-csv-table{margin-top:7px;max-height:250px}
.opc-csv-table table{min-width:430px}
.opc-api-seeds,.opc-api-queue{display:grid;gap:9px;margin:0;padding:0;list-style:none}
.opc-api-seeds li,.opc-api-queue li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:11px;border:1px solid var(--line);border-radius:9px;background:var(--canvas)}
.opc-api-seeds li>a,.opc-api-queue p>a{color:var(--brand);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.opc-api-seeds .btn,.opc-api-queue .btn{flex-shrink:0;white-space:normal}
.opc-api-queue li>div{min-width:0}
.opc-api-queue strong{display:block;font-size:13px}
.opc-api-queue p{margin:5px 0;font-size:12px;overflow-wrap:anywhere}
.opc-api-queue span{font-size:12px}
.opc-official-metrics{background:#f7fcf9;border-color:#e6f6ec}
.opc-metric-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.opc-metric-summary>div{padding:12px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:10px}
.opc-metric-summary small{display:block;color:var(--muted);font-size:11px}
.opc-metric-summary strong{display:block;margin-top:6px;font-size:25px;line-height:1.2;color:var(--brand)}
.opc-metric-summary strong span{margin-left:3px;font-size:12px;font-weight:500;color:var(--muted)}
.opc-post-metrics{min-width:520px}
.opc-post-metrics td:first-child{white-space:normal;min-width:220px;max-width:380px;overflow-wrap:anywhere}
.opc-post-metrics small{display:block;color:var(--muted);margin-top:4px;font-size:11px}
.opc-evaluation-dialog{display:grid;gap:14px;min-width:0}
.opc-evaluation-panel{background:#f7fcf9;border-color:#e6f6ec}
.opc-evaluation-summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.opc-evaluation-summary strong{font-size:23px;color:var(--brand)}
.opc-evaluation-summary span{font-size:11px;color:var(--muted)}
.opc-evaluation-criteria{display:grid;gap:10px;margin:13px 0}
.opc-evaluation-criteria>div{border:1px solid var(--line);border-radius:9px;padding:12px;background:var(--surface,#fff)}
.opc-evaluation-criteria dt{display:flex;justify-content:space-between;gap:8px;font-size:13px;flex-wrap:wrap}
.opc-evaluation-criteria dt strong{color:var(--brand)}
.opc-evaluation-criteria dd{margin:7px 0 0;font-size:12px;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}
.opc-evaluation-criteria dd small{display:block;margin-top:5px;color:var(--muted);font-size:11px}
.opc-evaluation-notes{padding-top:12px;border-top:1px solid var(--line);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.opc-evaluation-notes h3{margin:0;font-size:15px}
.opc-evaluation-notes h4{margin:12px 0 4px;font-size:12px;color:var(--muted)}
.opc-evaluation-notes ul{margin:4px 0;padding-left:19px}
.opc-evaluation-notes p{margin:4px 0;white-space:pre-wrap}
.opc-evaluation-jobs{display:grid;gap:9px;padding:0;margin:0;list-style:none;max-height:360px;overflow:auto}
.opc-evaluation-jobs li{display:flex;align-items:baseline;justify-content:space-between;gap:7px;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;padding:10px;font-size:13px}
.opc-evaluation-jobs li strong{overflow-wrap:anywhere}
.opc-evaluation-jobs li span{color:var(--muted);font-size:12px}
.opc-evaluation-jobs .opc-error{flex-basis:100%}
@media(max-width:650px){
  .opc-page .page-head{align-items:flex-start}
  .opc-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .opc-summary article{padding:10px}
  .opc-discovery-body{padding:0 12px 14px}
  .opc-discovery-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .opc-discovery-summary>div{padding:10px}
  .opc-summary article>div{align-items:flex-start;flex-direction:column}
  .opc-summary strong{font-size:19px}
  .opc-filters{padding-inline:12px}
  .opc-filters>label:first-child{grid-column:1/-1}
  .opc-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .opc-form-section{padding:11px}
  .opc-crop-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .opc-api-seeds li,.opc-api-queue li{flex-direction:column;gap:8px}
  .opc-api-seeds .btn,.opc-api-queue .btn{align-self:flex-end}
  .opc-metric-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
