/* Parrot Key CMS operations shell. Every rule is scoped to .pk-cms-ops. */
.pk-cms-ops {
  --pco-ink: #14213a; --pco-muted: #52637c; --pco-line: #dbe5f1; --pco-blue: #2264bc;
  --pco-head: #5b6f8c; --pco-tint: #f4f7fb; --pco-selected: #eaf2fc;
  position: relative; isolation: isolate; box-sizing: border-box; min-width: 0;
  padding: 16px; background: #eef2f7; color: var(--pco-ink);
  font-size: 16px; line-height: 1.45; text-align: left;
}
.pk-cms-ops *, .pk-cms-ops *::before, .pk-cms-ops *::after { box-sizing: border-box; min-width: 0; }
.pk-cms-ops [hidden] { display: none !important; }
.pk-cms-ops button, .pk-cms-ops input, .pk-cms-ops select, .pk-cms-ops textarea { font: inherit; color: inherit; max-width: 100%; }
.pk-cms-ops input, .pk-cms-ops select, .pk-cms-ops textarea { font-size: 16px; }
.pk-cms-ops label { font-size: 14px; }
.pk-cms-ops :focus-visible { outline: 3px solid var(--pco-blue); outline-offset: 2px; }
.pk-cms-ops .pco-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Frame */
.pk-cms-ops .pco-frame { background: #fff; border: 1px solid var(--pco-line); border-radius: 12px; }
.pk-cms-ops:not(.pco-role-admin) .pco-frame { max-width: 1328px; margin: 0 auto; }

/* Header */
.pk-cms-ops .pco-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 16px 28px; background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--pco-line); border-radius: 11px 11px 0 0;
}
.pk-cms-ops .pco-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pco-blue); }
.pk-cms-ops .pco-title { margin: 2px 0 0; font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--pco-ink); }
.pk-cms-ops .pco-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-cms-ops .pco-account { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; color: var(--pco-muted); font-size: 14px; }
.pk-cms-ops .pco-account-name { overflow-wrap: anywhere; }
.pk-cms-ops .pco-btn {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--pco-line); border-radius: 8px;
  background: #fff; color: var(--pco-ink); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.pk-cms-ops .pco-btn:hover { border-color: var(--pco-blue); color: var(--pco-blue); }
.pk-cms-ops .pco-nav .pco-btn[aria-current=page] { background: var(--pco-blue); border-color: var(--pco-blue); color: #fff; }

/* Ribbon: 30 / 21 / 24 / 25 */
.pk-cms-ops .pco-ribbon { display: flex; height: 5px; border-bottom: 1px solid var(--pco-line); }
.pk-cms-ops .pco-ribbon span { display: block; height: 100%; }
.pk-cms-ops .pco-ribbon-blue { flex: 0 0 30%; background: #2264bc; }
.pk-cms-ops .pco-ribbon-green { flex: 0 0 21%; background: #2e9d5b; }
.pk-cms-ops .pco-ribbon-yellow { flex: 0 0 24%; background: #f2c230; }
.pk-cms-ops .pco-ribbon-red { flex: 0 0 25%; background: #d64545; }

.pk-cms-ops .pco-status { margin: 16px 28px 0; padding: 8px 12px; border: 1px solid var(--pco-line); border-radius: 8px; background: var(--pco-tint); font-size: 14px; }
.pk-cms-ops .pco-status:empty { margin: 0; padding: 0; border: 0; }
.pk-cms-ops .pco-status-error { border-color: #e3a9a9; background: #fdf1f1; color: #8a1f1f; }

/* Layout */
.pk-cms-ops .pco-body { display: grid; gap: 24px; padding: 28px; }
.pk-cms-ops.pco-role-admin.pco-has-detail .pco-queue { display: none; }
.pk-cms-ops.pco-role-admin:not(.pco-has-detail) .pco-detail { display: none; }
.pk-cms-ops.pco-role-admin .pco-detail { width: 100%; max-width: 920px; margin: 0 auto; }
@media (min-width: 1100px) {
  .pk-cms-ops:not(.pco-role-admin) .pco-body { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
}

/* Queue */
.pk-cms-ops .pco-queue { border: 1px solid var(--pco-line); border-radius: 10px; background: #fff; }
.pk-cms-ops .pco-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px;
  padding: 12px 16px; background: var(--pco-tint); border-bottom: 1px solid var(--pco-line); border-radius: 9px 9px 0 0;
}
.pk-cms-ops .pco-toolbar-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pk-cms-ops .pco-queue-title { margin: 0; font-size: 18px; line-height: 1.3; }
.pk-cms-ops .pco-count { color: var(--pco-muted); font-size: 14px; }
.pk-cms-ops .pco-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.pk-cms-ops .pco-selects { display: contents; }
.pk-cms-ops .pco-field { display: flex; flex-direction: column; gap: 2px; }
.pk-cms-ops .pco-label { color: var(--pco-muted); font-weight: 600; }
.pk-cms-ops .pco-input { min-height: 44px; padding: 8px 10px; border: 1px solid #c5d3e4; border-radius: 8px; background: #fff; }
.pk-cms-ops .pco-field-search .pco-input { width: 240px; }
.pk-cms-ops select.pco-input { min-width: 140px; }

/* Table: horizontal scroll is scoped to the wrapper on wide layouts only. */
.pk-cms-ops .pco-table-wrap { overflow-x: auto; }
.pk-cms-ops .pco-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pk-cms-ops .pco-table th {
  padding: 10px 12px; background: #f7f9fc; color: var(--pco-head); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--pco-line);
}
.pk-cms-ops .pco-table td { padding: 10px 12px; border-bottom: 1px solid var(--pco-line); vertical-align: middle; overflow-wrap: break-word; }
.pk-cms-ops .pco-table tbody tr:last-child td { border-bottom: 0; }
.pk-cms-ops .pco-table tbody tr:hover td { background: #f9fbfe; }
.pk-cms-ops .pco-table tr.pco-selected td { background: var(--pco-selected); }
.pk-cms-ops .pco-table tr.pco-selected td:first-child { box-shadow: inset 3px 0 0 var(--pco-blue); }
.pk-cms-ops .pco-cell-action { width: 1%; text-align: right; white-space: nowrap; }
.pk-cms-ops .pco-empty { padding: 24px 16px; text-align: center; color: var(--pco-muted); }
.pk-cms-ops .pco-empty-text { margin: 0 0 12px; }

/* Detail */
.pk-cms-ops .pco-detail { border: 1px solid var(--pco-line); border-radius: 10px; background: #fff; padding: 16px 20px; }
.pk-cms-ops .pco-detail-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.pk-cms-ops .pco-detail-titles { flex: 1 1 200px; }
.pk-cms-ops .pco-detail-title { margin: 0; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.pk-cms-ops .pco-detail-subtitle { margin: 4px 0 0; color: var(--pco-muted); font-size: 14px; overflow-wrap: anywhere; }
.pk-cms-ops .pco-placeholder { margin: 0; color: var(--pco-muted); }
.pk-cms-ops .pco-detail-slot > * { max-width: 100%; min-width: 0; }
.pk-cms-ops .pco-detail-slot input, .pk-cms-ops .pco-detail-slot select, .pk-cms-ops .pco-detail-slot textarea { max-width: 100%; }
.pk-cms-ops .pco-detail-slot input[type=file] { width: 100%; white-space: normal; }
.pk-cms-ops .pco-detail-slot img, .pk-cms-ops .pco-detail-slot video { max-width: 100%; height: auto; }
.pk-cms-ops .pco-detail-slot pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Shallow glass header, desktop only */
@media (min-width: 761px) {
  @supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
    .pk-cms-ops .pco-header { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  }
}

/* Mobile: detail replaces queue, rows become labelled key/value blocks. */
@media (max-width: 760px) {
  .pk-cms-ops { padding: 8px; }
  .pk-cms-ops .pco-header { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .pk-cms-ops .pco-account { margin-left: 0; }
  .pk-cms-ops .pco-status { margin: 12px 12px 0; }
  .pk-cms-ops .pco-body { padding: 12px; gap: 12px; }
  .pk-cms-ops.pco-has-detail .pco-queue { display: none; }
  .pk-cms-ops:not(.pco-has-detail) .pco-detail { display: none; }
  .pk-cms-ops .pco-toolbar { display: block; padding: 12px; }
  .pk-cms-ops .pco-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
  .pk-cms-ops .pco-field-search, .pk-cms-ops .pco-clear { grid-column: 1 / -1; }
  .pk-cms-ops .pco-field .pco-input { width: 100%; min-width: 0; }
  .pk-cms-ops .pco-table-wrap { overflow: visible; }
  .pk-cms-ops .pco-table, .pk-cms-ops .pco-table tbody, .pk-cms-ops .pco-table tr, .pk-cms-ops .pco-table td { display: block; width: 100%; }
  .pk-cms-ops .pco-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pk-cms-ops .pco-table tr { padding: 10px 12px; border-bottom: 1px solid var(--pco-line); }
  .pk-cms-ops .pco-table tbody tr:last-child { border-bottom: 0; }
  .pk-cms-ops .pco-table td {
    display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 8px;
    padding: 3px 0; border: 0; overflow-wrap: anywhere;
  }
  .pk-cms-ops .pco-table td::before {
    content: attr(data-label);
    content: attr(data-label) / '';
    color: var(--pco-head); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  }
  .pk-cms-ops .pco-table td.pco-cell-action { display: block; width: 100%; padding-top: 8px; text-align: left; }
  .pk-cms-ops .pco-table td.pco-cell-action::before { content: none; }
  .pk-cms-ops .pco-open { width: 100%; }
  .pk-cms-ops .pco-table tbody tr:hover td, .pk-cms-ops .pco-table tr.pco-selected td { background: none; box-shadow: none; }
  .pk-cms-ops .pco-table tr.pco-selected { background: var(--pco-selected); box-shadow: inset 3px 0 0 var(--pco-blue); }
  .pk-cms-ops .pco-detail { padding: 14px; }
}

@media (forced-colors: active) {
  .pk-cms-ops :focus-visible { outline: 3px solid CanvasText; }
  .pk-cms-ops .pco-nav .pco-btn[aria-current=page] { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .pk-cms-ops .pco-table tr.pco-selected { outline: 2px solid Highlight; outline-offset: -2px; }
  .pk-cms-ops .pco-ribbon { border-bottom-color: CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  .pk-cms-ops *, .pk-cms-ops *::before, .pk-cms-ops *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Actionable admin work views and one job workspace. */
.pk-cms-ops .pco-work-views { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--pco-line); }
.pk-cms-ops .pco-work-view[aria-pressed=true] { background: var(--pco-blue); border-color: var(--pco-blue); color: #fff; }
.pk-cms-ops .admin-next-step { border-left: 4px solid #35a75c; padding: 12px 18px; background: #f0f8f3; border-radius: 8px; }
.pk-cms-ops .admin-next-step h3 { margin: 0 0 6px; color: var(--pco-ink); }
.pk-cms-ops .admin-next-step p { margin: 0; color: var(--pco-muted); overflow-wrap: anywhere; }
.pk-cms-ops .admin-job-section { border-top: 1px solid var(--pco-line); padding-top: 20px; margin-top: 20px; }
.pk-cms-ops .admin-job-section h3 { margin: 0 0 12px; }
.pk-cms-ops .admin-job-section h4 { margin: 14px 0 8px; }
.pk-cms-ops .admin-job-section button { margin: 4px 8px 4px 0; min-height: 44px; white-space: normal; }
.pk-cms-ops .admin-job-section label { display: block; margin: 12px 0; }
.pk-cms-ops .admin-job-section label select, .pk-cms-ops .admin-job-section label textarea { display: block; margin-top: 6px; width: 100%; }
.pk-cms-ops .admin-job-section summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 600; }
.pk-cms-ops .admin-preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.pk-cms-ops .admin-source-link { display: inline-block; margin-right: 16px; padding: 10px 0; color: var(--pco-blue); text-decoration: underline; }
.pk-cms-ops .admin-current-delivery { background: #f0f8f3; border: 1px solid #b7d9c2; border-radius: 8px; padding: 12px; }
.pk-cms-ops .review-submission { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--pco-line); }
@media (min-width: 761px) { .pk-cms-ops.pco-role-admin .pco-table { min-width: 1120px; } }
@media (max-width: 760px) { .pk-cms-ops .pco-work-views { padding: 12px; gap: 6px; } .pk-cms-ops .pco-work-view { flex: 1 1 145px; } }
@media (forced-colors: active) { .pk-cms-ops .pco-work-view[aria-pressed=true] { border: 3px solid Highlight; } }
