:root {
  --ws-ink: #000;
  --ws-paper: #fff;
  --ws-white: #fff;
  --ws-amber: #FFCB73;
  --ws-mist: #BCD9DD;
  --ws-line: rgb(188 217 221 / 82%);
  --ws-muted: rgb(0 0 0 / 62%);
}

.workspace-service-shell {
  --ws-display: Georgia, "Times New Roman", serif;
  --ws-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  width: min(1080px, 100%);
  margin: 0 auto;
  color: var(--ws-ink);
  font-family: var(--ws-body);
}
.workspace-service-shell *, .workspace-service-shell *::before, .workspace-service-shell *::after { box-sizing: border-box; }
.ws-back { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 19px; color: var(--ws-ink); font-size: 12px; font-weight: 700; text-decoration-color: var(--ws-amber); text-underline-offset: 4px; }
.ws-workspace-return { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--ws-ink); font-size: 10px; font-weight: 800; text-decoration-color: var(--ws-amber); text-underline-offset: 3px; }
.ws-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 6px 0 22px; border-bottom: 1px solid var(--ws-line); }
.ws-page-heading h1 { margin: 7px 0 9px; font: 500 clamp(32px, 5vw, 48px)/1.03 var(--ws-display); letter-spacing: -.035em; }
.ws-eyebrow { margin: 0; color: rgb(0 0 0 / 68%); font-size: 9px; font-weight: 800; letter-spacing: .13em; line-height: 1.45; }
.ws-intro { max-width: 620px; margin: 0; color: var(--ws-muted); font-size: 13px; line-height: 1.55; }
.ws-client-chip { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 8px 11px 8px 8px; border: 1px solid var(--ws-line); border-radius: 999px; background: var(--ws-white); font-size: 11px; font-weight: 700; }
.ws-chip-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--ws-amber); font-size: 12px; font-weight: 850; }
.ws-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 25px 0 12px; }
.ws-section-heading h2, .ws-calendar-head h2 { margin: 4px 0 0; font: 500 24px/1.1 var(--ws-display); letter-spacing: -.02em; }
.ws-fixed-label, .ws-service-count { color: var(--ws-muted); font-size: 10px; font-weight: 700; }
.ws-core-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.ws-core-card { display: flex; align-items: flex-start; gap: 13px; min-height: 91px; padding: 15px; border: 1px solid var(--ws-line); border-radius: 9px; background: rgb(188 217 221 / 24%); }
.ws-card-index { color: rgb(0 0 0 / 58%); font-size: 9px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.ws-core-card h3 { margin: 0 0 5px; font-size: 13px; }
.ws-core-card p { margin: 0; color: var(--ws-muted); font-size: 11px; line-height: 1.45; }
.ws-fixed-dot { flex: 0 0 8px; width: 8px; height: 8px; margin: 2px 0 0 auto; border-radius: 50%; background: var(--ws-ink); }
.ws-service-section { margin-top: 29px; }
.ws-client-name-field { display: block; max-width: 520px; margin: 18px 0 0; color: var(--ws-ink); font-size: 10px; font-weight: 800; }
.ws-client-name-field input { margin-top: 5px; }
.ws-config-form .ws-section-heading { margin-top: 21px; }
.ws-config-form .ws-service-section { margin-top: 19px; }
.ws-config-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.ws-config-card { padding: 12px; border: 1px solid var(--ws-line); border-radius: 7px; background: var(--ws-white); }
.ws-config-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ws-toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.ws-toggle input { position: absolute; inset: 0 auto auto 0; width: 34px; min-width: 34px; height: 20px; min-height: 20px; margin: 0; padding: 0; opacity: 0; z-index: 1; cursor: pointer; }
.ws-toggle-track { position: relative; width: 34px; height: 20px; border: 1px solid rgb(0 0 0 / 55%); border-radius: 99px; background: rgb(188 217 221 / 30%); transition: background .15s ease; }
.ws-toggle-track::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--ws-white); box-shadow: 0 1px 2px #0002; content: ""; transition: transform .15s ease; }
.ws-toggle input:checked + .ws-toggle-track { border-color: var(--ws-ink); background: var(--ws-ink); }
.ws-toggle input:checked + .ws-toggle-track::after { transform: translateX(14px); background: var(--ws-amber); }
.ws-toggle input:focus-visible + .ws-toggle-track { outline: 3px solid var(--ws-mist); outline-offset: 2px; }
.ws-toggle-copy { font-size: 11px; font-weight: 750; }
.service-visibility-notice { padding: 10px 12px; border-left: 3px solid #FFCB73; background: rgba(255,203,115,.12); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.ws-service-key { color: var(--ws-muted); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.ws-field-label { display: block; margin: 11px 0 5px; font-size: 10px; font-weight: 800; }
.ws-text-input { display: block; width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid rgb(188 217 221 / 90%); border-radius: 5px; color: var(--ws-ink); background: #fff; font: 12px var(--ws-body); }
.ws-text-input:focus { border-color: var(--ws-ink); outline: 2px solid var(--ws-mist); outline-offset: 1px; }
.ws-textarea { min-height: 59px; resize: vertical; line-height: 1.4; }
.ws-retention-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 17px; padding: 13px 15px; border-left: 3px solid var(--ws-amber); background: rgb(255 203 115 / 20%); }
.ws-note-mark { display: grid; flex: 0 0 19px; width: 19px; height: 19px; place-items: center; border: 1px solid var(--ws-ink); border-radius: 50%; font: 700 12px var(--ws-display); }
.ws-retention-note p { margin: 0; color: rgb(0 0 0 / 78%); font-size: 11px; line-height: 1.55; }
.ws-retention-note strong { color: var(--ws-ink); }
.ws-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--ws-line); }
.ws-confirm-deactivation { display: flex; align-items: flex-start; gap: 8px; max-width: 520px; color: var(--ws-muted); font-size: 10px; line-height: 1.45; }
.ws-confirm-deactivation input[type="checkbox"] { width: 16px; min-width: 16px; height: 16px; flex: 0 0 16px; margin: 1px 0 0; padding: 0; accent-color: var(--ws-ink); }
.ws-confirm-deactivation span { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.ws-primary-button, .ws-secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 40px; padding: 0 15px; border: 1px solid var(--ws-ink); border-radius: 5px; background: var(--ws-ink); color: #fff; font: 700 11px var(--ws-body); cursor: pointer; }
.ws-primary-button span { color: var(--ws-amber); font-size: 16px; }
.ws-primary-button:hover { background: #000; }
.client-overview-heading { padding-top: 11px; }
.ws-overview-section { margin-top: 27px; }
.ws-section-rule { height: 1px; flex: 1; margin: 0 0 5px 10px; background: var(--ws-line); }
.ws-overview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.ws-overview-card { position: relative; display: flex; min-height: 148px; flex-direction: column; align-items: flex-start; padding: 15px; overflow: hidden; border: 1px solid var(--ws-line); border-radius: 8px; background: var(--ws-white); color: var(--ws-ink); text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.ws-overview-card:hover { transform: translateY(-2px); border-color: var(--ws-ink); text-decoration: none; }
.ws-overview-feature { background: rgb(188 217 221 / 24%); }
.ws-overview-arrow { position: absolute; top: 14px; right: 15px; font-size: 14px; }
.ws-overview-card > div { margin-top: auto; padding: 18px 0 10px; }
.ws-overview-card h3 { margin: 0 0 5px; font: 500 20px var(--ws-display); }
.ws-overview-card p { max-width: 270px; margin: 0; color: var(--ws-muted); font-size: 11px; line-height: 1.45; }
.ws-card-action { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 10px; font-weight: 800; }
.ws-card-action span { color: rgb(0 0 0 / 70%); }
.ws-enabled-services { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ws-service-overview-card { min-height: 159px; }
.ws-empty-state { display: flex; align-items: center; gap: 15px; min-height: 91px; padding: 18px; border: 1px dashed rgb(188 217 221 / 95%); border-radius: 8px; background: rgb(188 217 221 / 16%); }
.ws-empty-rule { flex: 0 0 4px; height: 42px; background: var(--ws-amber); }
.ws-empty-state h3 { margin: 0 0 4px; font-size: 13px; }
.ws-empty-state p { margin: 0; color: var(--ws-muted); font-size: 11px; line-height: 1.5; }
.ws-project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.ws-project-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px; border: 1px solid var(--ws-line); border-radius: 7px; color: var(--ws-ink); background: var(--ws-white); text-decoration: none; }
.ws-project-card:hover { border-color: var(--ws-ink); text-decoration: none; }
.ws-project-mark { display: grid; flex: 0 0 36px; height: 36px; place-items: center; background: var(--ws-mist); font-size: 9px; font-weight: 850; }
.ws-project-copy { display: grid; min-width: 0; gap: 3px; }
.ws-project-copy strong { overflow-wrap: anywhere; font-size: 12px; }
.ws-project-copy span { overflow: hidden; color: var(--ws-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ws-project-arrow { margin-left: auto; font-size: 13px; }
.ws-project-empty { margin-bottom: 8px; }
.service-page-heading { align-items: center; }
.ws-service-live { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--ws-line); border-radius: 99px; background: rgb(188 217 221 / 24%); font-size: 10px; font-weight: 800; }
.ws-service-live span { width: 7px; height: 7px; border-radius: 50%; background: #000; }
.ws-service-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0 0; }
.ws-service-links a { display: inline-flex; align-items: center; gap: 16px; padding: 9px 11px; border: 1px solid var(--ws-line); border-radius: 5px; color: var(--ws-ink); background: #fff; font-size: 10px; font-weight: 750; text-decoration: none; }
.ws-service-links a:hover { border-color: var(--ws-ink); }
.ws-deliverables-section { margin-top: 24px; }
.ws-deliverable-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.ws-deliverable-card { display: flex; min-height: 165px; flex-direction: column; padding: 14px; border: 1px solid var(--ws-line); border-radius: 8px; background: #fff; }
.ws-deliverable-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ws-file-mark { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border-radius: 3px; background: var(--ws-mist); font-size: 8px; font-weight: 850; letter-spacing: .07em; }
.ws-file-status { color: rgb(0 0 0 / 68%); font-size: 9px; font-weight: 800; }
.ws-deliverable-card h3 { margin: 16px 0 10px; font-size: 13px; line-height: 1.35; }
.ws-deliverable-card h3 a { color: var(--ws-ink); text-decoration-color: var(--ws-amber); text-underline-offset: 3px; }
.ws-deliverable-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; color: var(--ws-muted); font-size: 9px; }
.ws-deliverable-meta span + span::before { margin-right: 5px; content: "·"; }
.ws-deliverable-card .ws-card-action { margin-top: auto; }
.ws-calendar-filter { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; }
.ws-calendar-filter label { font-size: 10px; font-weight: 800; }
.ws-calendar-filter select { min-width: 190px; height: 34px; padding: 0 28px 0 9px; border: 1px solid var(--ws-line); border-radius: 4px; background: #fff; color: var(--ws-ink); font: 11px var(--ws-body); }
.ws-secondary-button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.ws-calendar-panel { margin-top: 20px; border: 1px solid var(--ws-line); border-radius: 9px; overflow: hidden; background: #fff; }
.ws-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; border-bottom: 1px solid var(--ws-line); }
.ws-calendar-head h2 { font-size: 23px; }
.ws-calendar-nav { display: flex; gap: 7px; }
.ws-calendar-nav a { padding: 7px 9px; border: 1px solid var(--ws-line); border-radius: 4px; color: var(--ws-ink); font-size: 10px; font-weight: 750; text-decoration: none; }
.ws-calendar-nav a:hover { border-color: var(--ws-ink); }
.ws-calendar-weekdays, .ws-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.ws-calendar-weekdays { background: rgb(188 217 221 / 24%); }
.ws-calendar-weekdays span { padding: 8px 9px; color: rgb(0 0 0 / 68%); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.ws-calendar-day { min-width: 0; min-height: 109px; padding: 8px; border-top: 1px solid var(--ws-line); border-right: 1px solid var(--ws-line); }
.ws-calendar-day:nth-child(7n) { border-right: 0; }
.ws-calendar-day.is-outside-month { background: rgb(188 217 221 / 10%); color: rgb(0 0 0 / 42%); }
.ws-calendar-date { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.ws-day-word { color: rgb(0 0 0 / 55%); font-size: 8px; font-weight: 700; }
.ws-day-number { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 750; }
.ws-calendar-day.has-posts .ws-day-number { background: var(--ws-amber); color: var(--ws-ink); }
.ws-calendar-post { display: grid; gap: 2px; margin: 4px 0; padding: 6px; border-left: 2px solid var(--ws-amber); border-radius: 2px; background: rgb(255 203 115 / 18%); color: var(--ws-ink); text-decoration: none; }
.ws-calendar-post:hover { background: rgb(255 203 115 / 40%); text-decoration: none; }
.ws-post-time { color: rgb(0 0 0 / 65%); font-size: 8px; }
.ws-calendar-post strong { overflow: hidden; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; }
.ws-post-client { overflow: hidden; color: rgb(0 0 0 / 55%); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ws-post-open { color: rgb(0 0 0 / 78%); font-size: 8px; font-weight: 800; }
.ws-calendar-blank { display: block; height: 24px; }
.ws-calendar-mobile-list { display: none; }
.ws-unscheduled-section { margin-top: 25px; }
.ws-unscheduled-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.ws-unscheduled-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px; border: 1px solid var(--ws-line); border-radius: 6px; background: #fff; }
.ws-unscheduled-card div { display: grid; min-width: 0; gap: 3px; }
.ws-unscheduled-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ws-unscheduled-card div span { color: var(--ws-muted); font-size: 9px; }
.ws-unscheduled-card a { margin-left: auto; color: var(--ws-ink); font-size: 9px; font-weight: 750; white-space: nowrap; }
.ws-calendar-footnote { margin: 14px 0 0; color: var(--ws-muted); font-size: 10px; line-height: 1.5; }
.ws-pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ws-pagination a, .ws-pagination span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; border: 1px solid var(--ws-line); border-radius: 4px; color: var(--ws-ink); font-size: 10px; font-weight: 750; text-decoration: none; }
.ws-pagination a:hover { border-color: var(--ws-ink); }
.ws-pagination .is-disabled { color: rgb(0 0 0 / 38%); background: #fff; }
.client-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.client-group-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.client-overview-link { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--ws-line); border-radius: 5px; color: var(--ws-ink); background: #fff; font-size: 10px; font-weight: 800; text-decoration-color: var(--ws-amber); text-underline-offset: 3px; }
.client-overview-link:hover { border-color: var(--ws-ink); }
.ws-admin-badge { padding: 7px 10px; border: 1px solid var(--ws-ink); border-radius: 99px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.manage-client-services-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px 56px; color: var(--ws-ink); font-size: 10px; font-weight: 800; text-decoration-color: var(--ws-amber); text-underline-offset: 3px; }
.manage-client-services-link:hover { text-decoration-thickness: 2px; }
.workspace-nav-feature { font-weight: 800; text-decoration-color: var(--ws-amber) !important; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .workspace-service-shell { width: 100%; }
  .ws-page-heading { align-items: flex-start; }
  .ws-client-chip { margin-top: 4px; }
  .ws-core-grid { grid-template-columns: 1fr; }
  .ws-core-card { min-height: 74px; }
  .ws-overview-grid, .ws-enabled-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ws-deliverable-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ws-calendar-weekdays, .ws-calendar-grid { display: none; }
  .ws-calendar-mobile-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ws-mobile-date { min-width: 0; padding: 10px; border-top: 1px solid var(--ws-line); border-right: 1px solid var(--ws-line); }
  .ws-mobile-date:nth-child(2n) { border-right: 0; }
  .ws-mobile-date-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding-bottom: 7px; border-bottom: 1px solid var(--ws-line); }
  .ws-mobile-date-heading span { color: var(--ws-muted); font-size: 9px; }
  .ws-mobile-date-heading strong { font-size: 10px; }
  .ws-mobile-post { display: grid; gap: 3px; margin-top: 7px; padding: 7px; border-left: 2px solid var(--ws-amber); background: rgb(255 203 115 / 18%); color: var(--ws-ink); text-decoration: none; }
  .ws-mobile-post span, .ws-mobile-post small { color: var(--ws-muted); font-size: 8px; }
  .ws-mobile-post strong { font-size: 10px; line-height: 1.3; }
  .ws-no-posts { margin: 9px 0 0; color: rgb(0 0 0 / 42%); font-size: 9px; }
}
@media (max-width: 520px) {
  .client-group-heading { align-items: flex-start; flex-direction: column; }
  .client-overview-link { align-self: flex-start; }
  .ws-page-heading { flex-direction: column; gap: 13px; }
  .ws-page-heading h1 { font-size: 35px; }
  .ws-config-grid, .ws-overview-grid, .ws-enabled-services, .ws-project-grid, .ws-deliverable-grid, .ws-unscheduled-grid { grid-template-columns: 1fr; }
  .ws-overview-card { min-height: 128px; }
  .ws-form-footer { align-items: stretch; flex-direction: column; gap: 13px; }
  .ws-primary-button { width: 100%; }
  .ws-calendar-filter { align-items: stretch; flex-wrap: wrap; }
  .ws-calendar-filter label { width: 100%; }
  .ws-calendar-filter select { flex: 1; min-width: 0; }
  .ws-calendar-nav a span { display: none; }
  .ws-calendar-head { padding: 13px; }
  .ws-calendar-mobile-list { grid-template-columns: 1fr; }
  .ws-mobile-date { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-overview-card, .ws-toggle-track, .ws-toggle-track::after { transition: none; }
}

/* Compact, image-led review inventory */
.workspace-content-group-grid { align-items: start; }
.workspace-content-group-card { min-width: 0; }
.workspace-content-group-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 7px 0; font-size: 11px; line-height: 1.4; }
.workspace-asset-grid,
.workspace-deliverable-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 174px), 1fr));
  gap: 9px;
  margin-top: 12px;
}
.workspace-content-group-card .workspace-asset-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); }
.workspace-asset-card,
.workspace-deliverable-row {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(188 217 221 / 82%);
  border-radius: 7px;
  background: #f8faf8;
}
.workspace-deliverable-row { position: relative; overflow: visible; }
.workspace-deliverable-row:has(.item-actions-overflow[open]) { z-index: 5; }
.workspace-asset-card-link,
.section-deliverable-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.workspace-asset-card-link { padding: 7px; }
.workspace-asset-card-link:hover,
.section-deliverable-link:hover { text-decoration: none; }
.workspace-asset-card-link:hover .workspace-asset-thumb,
.section-deliverable-link:hover .workspace-asset-thumb { border-color: #8faeb2; }
.workspace-asset-thumb,
.ws-asset-thumb {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(188 217 221 / 70%);
  border-radius: 4px;
  background: #e7efed;
}
.workspace-asset-thumb img,
.ws-asset-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.workspace-asset-thumb.is-no-preview::before,
.ws-asset-thumb.is-no-preview::before {
  position: absolute;
  width: 25px;
  height: 32px;
  border: 1px solid #91a9a6;
  border-radius: 2px;
  background: linear-gradient(135deg, transparent 0 7px, #d6e3df 7px);
  content: "";
}
.workspace-asset-type,
.ws-asset-type {
  position: absolute;
  bottom: 5px;
  left: 5px;
  z-index: 1;
  max-width: calc(100% - 10px);
  overflow: hidden;
  padding: 3px 5px;
  border-radius: 2px;
  background: rgb(28 48 48 / 78%);
  color: #f8faf8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-asset-count,
.ws-asset-count {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 1;
  min-width: 20px;
  padding: 3px 5px;
  border-radius: 99px;
  background: #f2c876;
  color: #263536;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}
.workspace-asset-copy { display: grid; min-width: 0; gap: 3px; }
.workspace-asset-copy strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.workspace-asset-copy > span { overflow: hidden; color: rgb(0 0 0 / 60%); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-asset-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 7px 0; }
.workspace-asset-card-top .eyebrow { font-size: 7px; }
.workspace-asset-card-top .pill { flex: 0 0 auto; font-size: 8px; }
.workspace-asset-card .workspace-asset-grid { margin-top: 8px; }
.workspace-asset-card > .item-actions-overflow { margin: 0 7px 7px auto; }
.workspace-asset-card > .item-actions-overflow > summary { min-height: 26px; padding: 4px 8px; font-size: 10px; }
.workspace-asset-card > .item-actions-overflow[open] { position: relative; z-index: 3; }
.workspace-content-group-card > ul { display: none; }
.workspace-content-group-card .workspace-approved-items { margin-top: 8px; }
.workspace-approved-items > .workspace-asset-grid { margin-bottom: 8px; }
.workspace-deliverable-list { align-items: start; }
.workspace-deliverable-list > .workspace-approved-items { grid-column: 1 / -1; }
.workspace-approved-items > .workspace-deliverable-row { margin: 8px 0; }
.workspace-deliverable-row .workspace-asset-card-top { padding: 8px 9px 0; }
.workspace-deliverable-row .section-deliverable-head { display: flex; align-items: center; gap: 7px; padding: 8px; }
.workspace-deliverable-row .section-deliverable-link { flex: 1; }
.workspace-deliverable-row .workspace-asset-thumb { aspect-ratio: 16 / 9; }
.workspace-deliverable-row .micro { font-size: 11px; }
.workspace-deliverable-row .item-actions-overflow {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  z-index: 3;
}
.workspace-deliverable-row .item-actions-overflow[open] { position: relative; z-index: 6; }
.workspace-deliverable-row .item-actions-overflow .item-actions-menu {
  position: absolute;
  top: calc(100% + .45rem);
  right: 0;
  z-index: 7;
  box-sizing: border-box;
  width: min(13.5rem, calc(100vw - 24px));
  min-width: min(13.5rem, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: .7rem;
  border: 1px solid rgb(0 0 0 / 13%);
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 12px 32px rgb(0 0 0 / 14%);
}
.workspace-deliverable-row .item-actions-menu .item-actions { display: grid; gap: .55rem; margin: 0; }
.workspace-deliverable-row .item-actions-menu .item-action-form { display: grid; gap: .4rem; }
.workspace-deliverable-row .item-actions-menu .item-action-button { width: 100%; }

/* Admin draft review: one compact selection rail, shared by overview and category cards. */
.workspace-review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--ws-line);
  border-left: 3px solid var(--ws-amber);
  border-radius: 5px;
  background: rgb(188 217 221 / 20%);
}
.workspace-review-toolbar-copy { display: grid; gap: 2px; }
.workspace-review-toolbar-copy strong { font-size: 11px; }
.workspace-review-toolbar-copy span { color: var(--ws-muted); font-size: 10px; }
.workspace-review-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.workspace-review-utility, .workspace-review-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid var(--ws-line);
  border-radius: 4px;
  background: #f8faf8;
  color: var(--ws-ink);
  font: 700 9px var(--ws-body);
  text-decoration: none;
  cursor: pointer;
}
.workspace-review-utility:hover, .workspace-review-send:hover { border-color: var(--ws-ink); }
.workspace-review-bulk-button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid var(--ws-ink);
  border-radius: 4px;
  background: var(--ws-ink);
  color: #f8faf8;
  font: 750 9px var(--ws-body);
  cursor: pointer;
}
.workspace-review-bulk-button span { color: var(--ws-amber); font-size: 13px; }
.workspace-review-bulk-button:disabled, .workspace-review-send:disabled,
.workspace-review-utility:disabled { opacity: .48; cursor: not-allowed; }
.workspace-review-select { display: inline-grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; }
.workspace-review-select input { width: 15px; height: 15px; margin: 0; accent-color: #263536; cursor: pointer; }
.workspace-review-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 0 7px 7px; }
.workspace-review-single { display: flex; margin: 0; }
.workspace-review-send { min-height: 26px; border-color: rgb(38 53 54 / 25%); }
.workspace-deliverable-row .section-deliverable-head > .workspace-review-select { margin-left: 1px; }
.workspace-deliverable-row .workspace-review-single { flex: 0 0 auto; }
.workspace-review-status {
  margin: -7px 0 12px;
  padding: 8px 10px;
  border-left: 3px solid #658a73;
  background: rgb(101 138 115 / 12%);
  color: #284533;
  font-size: 11px;
  line-height: 1.45;
}
.workspace-review-status[data-error="true"] { border-color: #a44e43; background: rgb(164 78 67 / 10%); color: #71362e; }
.workspace-review-status[hidden] { display: none; }
.workspace-review-toolbar [aria-busy="true"] { cursor: progress; }
.workspace-review-card-actions + .item-actions-overflow { margin-top: 0; }
.workspace-review-select input:focus-visible, .workspace-review-utility:focus-visible,
.workspace-review-bulk-button:focus-visible, .workspace-review-send:focus-visible {
  outline: 2px solid #658a73;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .workspace-review-toolbar { align-items: stretch; flex-direction: column; }
  .workspace-review-toolbar-actions { justify-content: flex-start; }
}

.ws-deliverable-card { min-width: 0; overflow: hidden; padding: 0; background: #f8faf8; }
.ws-deliverable-card-link { display: flex; min-width: 0; height: 100%; flex-direction: column; padding: 9px; color: inherit; text-decoration: none; }
.ws-deliverable-card-link:hover { color: inherit; text-decoration: none; }
.ws-deliverable-card-link:hover .ws-asset-thumb { border-color: #8faeb2; }
.ws-deliverable-card .ws-deliverable-top { min-height: 22px; }
.ws-deliverable-card .ws-file-status { font-size: 11px; }
.ws-asset-thumb { margin: 7px 0 1px; aspect-ratio: 16 / 10; }
.ws-asset-title { display: -webkit-box; min-height: 2.6em; margin: 5px 0 7px; overflow: hidden; font-size: 13px; font-weight: 750; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ws-deliverable-card .ws-deliverable-meta { margin-bottom: 11px; font-size: 11px; }
.ws-deliverable-card .ws-card-action { margin-top: auto; }
.ws-deliverable-card .ws-card-action { font-size: 11px; }
.ws-deliverable-card > .item-actions-overflow { margin: 0 9px 9px auto; }
.ws-deliverable-card > .item-actions-overflow > summary { min-height: 27px; padding: 4px 9px; font-size: 10px; }
.ws-deliverable-card > .item-actions-overflow[open] { position: relative; z-index: 3; }
.ws-deliverable-card > .social-lifecycle-controls,
.ws-deliverable-card > form,
.ws-deliverable-card > .social-platform-controls { margin: 0 9px 9px; }

@media (max-width: 600px) {
  .workspace-content-group-grid { grid-template-columns: 1fr; }
  .workspace-content-group-card .workspace-asset-grid,
  .workspace-asset-grid,
  .workspace-deliverable-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .workspace-deliverable-list > .workspace-approved-items { grid-column: 1 / -1; }
  .workspace-content-group-card .workspace-asset-copy strong,
  .workspace-asset-copy strong { font-size: 13px; }
  .workspace-deliverable-row .section-deliverable-head { align-items: stretch; flex-direction: column; }
  .workspace-deliverable-row .item-actions-overflow { align-self: flex-end; }
}
@media (max-width: 350px) {
  .workspace-content-group-card .workspace-asset-grid,
  .workspace-asset-grid,
  .workspace-deliverable-list { grid-template-columns: 1fr; }
}

/* Keep the preview full-width; action controls must never squeeze it to zero. */
.workspace-deliverable-row .section-deliverable-head {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.workspace-deliverable-row .section-deliverable-head > .section-deliverable-link {
  flex: 1 0 100%;
  width: 100%;
  order: 0;
}
.workspace-deliverable-row .section-deliverable-head > .workspace-review-select { order: 1; }
.workspace-deliverable-row .section-deliverable-head > .workspace-review-single {
  flex: 1 1 auto;
  min-width: 0;
  order: 2;
}
.workspace-deliverable-row .section-deliverable-head > .item-actions-overflow { order: 3; margin-left: auto; }
.workspace-review-select { flex-basis: 32px; width: 32px; height: 32px; }
.workspace-review-send, .workspace-review-utility, .workspace-review-bulk-button {
  min-height: 32px;
  font-size: 11px;
}

/* Bind menus to the card, not the tiny More button in a narrow grid column. */
.workspace-deliverable-row .item-actions-overflow[open] { position: static; }
.workspace-deliverable-row .item-actions-overflow .item-actions-menu {
  top: calc(100% - 6px);
  right: 8px;
  left: auto;
  width: min(13.5rem, calc(100% - 16px));
  min-width: 0;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
}
.workspace-deliverable-row .workspace-asset-card-top { flex-wrap: wrap; }
.workspace-deliverable-row .workspace-asset-card-top > span { min-width: 0; max-width: 100%; }
.workspace-deliverable-row .workspace-asset-card-top .pill { white-space: normal; overflow-wrap: anywhere; }
.workspace-deliverable-row .workspace-review-send { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
