:root {
  --suite-accent: #a51f2b;
  --suite-accent-deep: #76151d;
  --suite-ink: #22242a;
  --suite-body: #5f6672;
  --suite-line: #e1e4e8;
  --suite-panel: #fff;
  --suite-bg: #f6f7f9;
  --suite-shadow: 0 1px 2px rgb(34 36 42 / .05), 0 10px 30px rgb(34 36 42 / .07);
}

body { background: var(--suite-bg); color: var(--suite-ink); }
.app-shell { width: min(100% - 44px, 1080px); padding: 34px 0 64px; }
.suite-header { padding: 0 0 24px; border-bottom: 1px solid var(--suite-line); }
.greeting-panel {
  margin: 24px 0 56px; padding: 24px;
  border: 1.5px solid var(--suite-accent); border-radius: 12px;
  background: #f8f9fb;
}
.greeting-panel h1 { color: var(--suite-accent-deep); font-size: clamp(3rem, 6vw, 4.5rem); }
.suite-tool-row {
  display: grid; grid-template-columns: 58px 1fr 24px; gap: 18px;
  align-items: center; min-height: 112px; margin-bottom: 12px; padding: 18px 22px;
  border: 1px solid var(--suite-line); border-radius: 12px;
  background: var(--suite-panel); box-shadow: var(--suite-shadow); text-decoration: none;
}
.suite-status { padding: 3px 8px; border-radius: 999px; color: var(--suite-accent-deep); background: #fbecef; font-size: .67rem; font-weight: 800; }
.suite-meta { color: var(--suite-body); font-size: .77rem; font-weight: 650; }
.suite-tool-row:hover, .suite-tool-row:focus-visible { border-color: var(--suite-accent); outline: none; transform: translateY(-2px); }
.suite-tool-copy { display: grid; gap: 5px; }
.suite-tool-copy strong { font-size: 1.04rem; letter-spacing: -.012em; }
.suite-tool-copy > span:not(.suite-status):not(.suite-meta) { color: var(--suite-body); font-size: .9rem; font-weight: 580; }
@media (max-width: 680px) {
  .suite-tool-row { grid-template-columns: 50px 1fr; }
  .suite-tool-arrow { display: none; }
}

/* Production dashboard and New Listing Automation workspace. */
.dashboard-shell, .listing-shell { width: min(100% - 48px, 1180px); }
.dashboard-shell .suite-header, .listing-shell .suite-header { border-color: #d9dce0; }
.dashboard-hero {
  min-height: 310px; margin: 34px 0 58px; padding: clamp(28px, 5vw, 54px);
  border: 0; border-radius: 18px; color: #fff;
  background: linear-gradient(132deg, #22252a 0%, #3b292d 58%, #981c27 100%);
  box-shadow: 0 22px 52px rgb(38 29 31 / .18);
}
.dashboard-hero .eyebrow { color: rgb(255 255 255 / .66); }
.dashboard-hero h1 { max-width: 820px; margin: 10px 0 12px; color: #fff; font-size: clamp(3.2rem, 7vw, 5.6rem); overflow-wrap: break-word; }
.dashboard-hero > p:not(.eyebrow) { margin-bottom: 28px; color: rgb(255 255 255 / .82); font-size: 1.04rem; font-weight: 600; }
.next-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 650px; padding: 16px 18px; border: 1px solid rgb(255 255 255 / .2); border-radius: 10px; background: rgb(255 255 255 / .1); text-decoration: none; backdrop-filter: blur(6px); }
.next-action small, .next-action strong { display: block; }
.next-action small { margin-bottom: 2px; color: rgb(255 255 255 / .65); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.next-action strong { color: #fff; font-size: .95rem; }
.next-action-arrow { font-size: 1.45rem; transition: transform 180ms ease; }
.next-action:hover .next-action-arrow, .next-action:focus-visible .next-action-arrow { transform: translateX(4px); }
.next-action:focus-visible { outline: 3px solid rgb(255 255 255 / .55); outline-offset: 3px; }
.dashboard-shell .section-heading { align-items: end; gap: 28px; }
.dashboard-shell .section-heading .eyebrow { margin-bottom: 4px; }
.queue-summary { margin: 0; color: var(--suite-body); font-size: .8rem; font-weight: 700; text-align: right; }
.dashboard-shell .tool-list { border: 0; }
.dashboard-shell .suite-tool-row { min-height: 126px; margin-bottom: 14px; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.dashboard-shell .suite-tool-copy { min-width: 0; }
.tool-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.suite-status.is-queued { color: #555b64; background: #eff0f2; }
.suite-tool-lock { color: var(--suite-body); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.queued-tool { cursor: default; }
.queued-tool:hover { border-color: #caced3; }

.spotlight-surface {
  --spotlight-x: 50%; --spotlight-y: 50%; --translate-x: 0px; --translate-y: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  transform: translate(var(--translate-x), var(--translate-y));
}
.spotlight-surface::before { position: absolute; z-index: -1; inset: 0; content: ""; opacity: 0; pointer-events: none; background: radial-gradient(330px circle at var(--spotlight-x) var(--spotlight-y), rgb(184 23 31 / .1), transparent 65%); transition: opacity 180ms ease; }
.dashboard-hero.spotlight-surface::before { background: radial-gradient(420px circle at var(--spotlight-x) var(--spotlight-y), rgb(255 255 255 / .14), transparent 65%); }
.spotlight-surface.spot-on::before, .spotlight-surface:hover::before, .spotlight-surface:focus-visible::before, .spotlight-surface:focus-within::before { opacity: 1; }
.spotlight-surface > * { position: relative; z-index: 1; }

.listing-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin: 40px 0 24px; }
.listing-heading > div { max-width: 780px; }
.listing-heading h1 { margin: 6px 0 12px; font-size: clamp(3rem, 6vw, 5rem); overflow-wrap: break-word; }
.listing-heading > div > p:last-child { margin: 0; color: var(--suite-body); font-weight: 600; }
.workspace-message { min-height: 24px; margin: 0 0 12px; color: var(--suite-body); font-size: .84rem; font-weight: 650; }
.workspace-message.is-error, .form-message { color: var(--suite-accent-deep); }
.listing-workspace { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); gap: 18px; align-items: start; min-width: 0; }
.queue-panel, .detail-panel { min-width: 0; border: 1px solid var(--suite-line); border-radius: 14px; background: var(--suite-panel); box-shadow: var(--suite-shadow); }
.queue-panel { position: sticky; top: 18px; overflow: hidden; }
.queue-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 20px 20px 14px; }
.queue-panel-heading .eyebrow { margin-bottom: 4px; }
.queue-panel-heading h2 { font-size: 1.75rem; }
.queue-count { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--suite-accent); font-size: .76rem; font-weight: 800; }
.queue-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 15px; border-bottom: 1px solid var(--suite-line); }
.queue-filters button { padding: 6px 9px; border: 1px solid var(--suite-line); border-radius: 999px; color: var(--suite-body); background: #fff; font-size: .7rem; font-weight: 800; }
.queue-filters button:hover, .queue-filters button:focus-visible, .queue-filters button[aria-pressed="true"] { border-color: var(--suite-accent); color: #fff; background: var(--suite-accent); outline: none; }
.listing-queue { display: grid; max-height: calc(100vh - 210px); overflow-y: auto; }
.listing-queue-row { display: grid; gap: 6px; width: 100%; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--suite-line); color: var(--suite-ink); background: #fff; text-align: left; }
.listing-queue-row:last-child { border-bottom: 0; }
.listing-queue-row:hover, .listing-queue-row:focus-visible, .listing-queue-row.is-selected { background: #fbf7f7; outline: none; }
.listing-queue-row.is-selected { box-shadow: inset 3px 0 0 var(--suite-accent); }
.queue-row-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.queue-row-top strong { min-width: 0; font-size: .83rem; line-height: 1.35; overflow-wrap: anywhere; }
.stage-pill { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; color: var(--suite-accent-deep); background: #fbecef; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.queue-row-meta, .queue-row-activity { color: var(--suite-body); font-size: .69rem; font-weight: 650; line-height: 1.4; }
.queue-empty { margin: 0; padding: 28px 20px; color: var(--suite-body); font-size: .82rem; }
.detail-panel { padding: clamp(17px, 3vw, 28px); }
.detail-empty { display: grid; min-height: 430px; place-items: center; place-content: center; text-align: center; }
.detail-empty .tool-mark { margin-bottom: 18px; }
.detail-empty h2 { margin-bottom: 8px; }
.detail-empty p { max-width: 380px; margin: 0; color: var(--suite-body); }
.detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 4px 2px 20px; border-bottom: 1px solid var(--suite-line); }
.detail-heading h2 { margin: 4px 0 7px; font-size: clamp(2rem, 4vw, 3rem); overflow-wrap: anywhere; }
.detail-heading p:not(.eyebrow) { margin: 0; color: var(--suite-body); font-size: .84rem; font-weight: 650; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 6px; border: 1px solid var(--suite-line); border-radius: 11px; background: #f1f2f3; }
.workflow-steps button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 10px 9px; border: 0; border-radius: 8px; color: var(--suite-body); background: transparent; font-size: .75rem; font-weight: 800; }
.workflow-steps button span { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border: 1px solid #c8cbd0; border-radius: 50%; font-size: .63rem; }
.workflow-steps button:hover { color: var(--suite-accent-deep); background: #fff; }
.workflow-steps button:focus-visible { outline: 3px solid var(--suite-accent-deep); outline-offset: 2px; }
.workflow-steps button[aria-pressed="true"] { color: #fff; background: var(--suite-accent); box-shadow: 0 5px 14px rgb(111 13 23 / .18); }
.workflow-steps button[aria-pressed="true"] span { border-color: rgb(255 255 255 / .55); }
.listing-detail-card { margin-top: 14px; padding: 21px; border: 1px solid var(--suite-line); border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgb(34 36 42 / .03); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.listing-detail-card:hover, .listing-detail-card:focus-within { border-color: #d0b1b5; box-shadow: 0 10px 28px rgb(34 36 42 / .07); }
.listing-supporting-details { margin-top: 14px; border: 1px solid var(--suite-line); border-radius: 10px; background: #f7f7f7; }
.listing-supporting-details > summary { padding: 13px 16px; color: var(--suite-body); cursor: pointer; font-size: .75rem; font-weight: 800; }
.listing-supporting-details > summary:hover { color: var(--suite-accent-deep); }
.listing-supporting-details > summary:focus-visible { outline: 3px solid var(--suite-accent-deep); outline-offset: 2px; }
.listing-supporting-details[open] { padding: 0 14px 14px; }
.listing-supporting-details[open] > summary { margin: 0 -14px; border-bottom: 1px solid var(--suite-line); }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.card-heading .eyebrow { margin-bottom: 3px; }
.card-heading h3 { margin: 0; font: 650 1.55rem/1.05 var(--display); letter-spacing: -.025em; }
.read-only-badge, .card-note { color: var(--suite-body); font-size: .68rem; font-weight: 750; text-align: right; }
.read-only-badge { padding: 4px 7px; border-radius: 999px; background: #eef0f2; text-transform: uppercase; }
.source-meta { display: grid; grid-template-columns: minmax(100px, .4fr) 1fr; gap: 7px 14px; margin: 0 0 17px; padding: 13px; border-radius: 8px; background: #f6f7f8; font-size: .76rem; }
.source-meta dt { color: var(--suite-body); font-weight: 750; }
.source-meta dd { min-width: 0; margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.source-history { display: grid; gap: 9px; margin-bottom: 16px; }
.source-alert-record { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--suite-line); border-radius: 8px; background: #fff; }
.source-alert-record strong { font-size: .8rem; }
.source-alert-record small { color: var(--suite-body); font-size: .68rem; }
.source-alert-record p { margin: 3px 0 0; color: var(--suite-body); font-size: .76rem; line-height: 1.5; }
.source-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--suite-line); border-left: 1px solid var(--suite-line); }
.source-fields > div { min-width: 0; padding: 10px 11px; border-right: 1px solid var(--suite-line); border-bottom: 1px solid var(--suite-line); }
.source-fields span, .source-fields strong { display: block; }
.source-fields span { color: var(--suite-body); font-size: .64rem; font-weight: 750; text-transform: uppercase; }
.source-fields strong { margin-top: 2px; font-size: .78rem; overflow-wrap: anywhere; }
.shell-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.warning-list { margin-bottom: 14px; padding: 10px 12px; border-left: 3px solid var(--suite-accent); color: var(--suite-accent-deep); background: #fff7f8; font-size: .76rem; font-weight: 700; }
.revision-diff { margin-bottom: 16px; padding: 13px; border: 1px solid var(--suite-line); border-radius: 8px; background: #f6f7f8; }
.revision-diff-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.revision-diff-heading strong { font-size: .78rem; }
.revision-diff-heading span { color: var(--suite-body); font-size: .67rem; font-weight: 700; }
.revision-diff-list { display: grid; gap: 6px; }
.revision-diff-row { display: grid; grid-template-columns: minmax(100px, .8fr) 1fr auto 1fr; gap: 9px; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--suite-line); font-size: .72rem; }
.revision-diff-row span { color: var(--suite-body); overflow-wrap: anywhere; }
.form-message { min-height: 22px; margin: 10px 0 7px; font-size: .76rem; font-weight: 700; }
.matches-list, .teaser-list { display: grid; gap: 11px; }
.match-card { padding: 14px; border: 1px solid var(--suite-line); border-left: 3px solid #777d85; border-radius: 8px; background: #fbfcfd; }
.match-card.is-matched { border-left-color: #27815f; }
.match-card.is-review { border-left-color: #bd7c10; }
.match-card.is-excluded { border-left-color: #9b4e54; }
.match-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.match-heading strong { font-size: .82rem; overflow-wrap: anywhere; }
.match-status { flex: 0 0 auto; color: var(--suite-body); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.match-card ul { margin: 11px 0 0; padding-left: 18px; color: var(--suite-body); font-size: .75rem; }
.match-card li + li { margin-top: 4px; }
.match-note { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--suite-line); color: var(--suite-accent-deep); font-size: .72rem; font-weight: 700; }
.teaser-form { padding: 16px; border: 1px solid var(--suite-line); border-radius: 9px; background: #fbfcfd; }
.teaser-recipient { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.teaser-recipient span { color: var(--suite-body); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.teaser-recipient strong { font-size: .78rem; text-align: right; overflow-wrap: anywhere; }
.teaser-form .field + .field { margin-top: 10px; }
.teaser-form textarea { min-height: 230px; }
.activity-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.activity-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; min-width: 0; padding: 10px 0; }
.activity-list li + li { border-top: 1px solid var(--suite-line); }
.activity-marker { width: 9px; height: 9px; margin-top: 5px; border: 2px solid #fff; border-radius: 50%; background: var(--suite-accent); box-shadow: 0 0 0 1px var(--suite-accent); }
.activity-list strong, .activity-list small { display: block; }
.activity-list strong { font-size: .77rem; overflow-wrap: anywhere; }
.activity-list small { margin-top: 3px; color: var(--suite-body); font-size: .66rem; overflow-wrap: anywhere; }
.feedback-dialog { position: relative; width: min(100% - 28px, 520px); padding: 28px; border: 1px solid var(--suite-line); border-radius: 14px; color: var(--suite-ink); background: #fff; box-shadow: 0 24px 70px rgb(22 24 29 / .24); }
.feedback-dialog::backdrop { background: rgb(29 31 35 / .45); }
.feedback-dialog .dialog-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.feedback-dialog .dialog-heading h2 { margin-top: 4px; }
.feedback-dialog .dialog-close { position: static; align-self: start; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }

@media (max-width: 860px) {
  .listing-workspace { grid-template-columns: 1fr; }
  .queue-panel { position: static; }
  .listing-queue { max-height: 420px; }
}

@media (max-width: 620px) {
  .dashboard-shell, .listing-shell { width: min(100% - 28px, 1180px); }
  .dashboard-hero { min-height: 0; margin: 24px 0 42px; padding: 28px 22px; }
  .dashboard-hero h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .dashboard-shell .section-heading, .listing-heading, .detail-heading { align-items: stretch; flex-direction: column; }
  .queue-summary { text-align: left; }
  .listing-heading { margin-top: 30px; }
  .listing-heading .primary-button, .detail-heading .secondary-button { width: 100%; }
  .source-fields, .shell-fields { grid-template-columns: 1fr; }
  .revision-diff-heading { align-items: flex-start; flex-direction: column; }
  .revision-diff-row { grid-template-columns: 1fr; }
  .revision-diff-row span:nth-of-type(2) { display: none; }
  .detail-panel, .listing-detail-card { padding: 15px; }
  .listing-detail-card { overflow: hidden; }
}

@media (max-width: 480px) {
  .workflow-steps { gap: 4px; padding: 4px; }
  .workflow-steps button { gap: 4px; padding: 9px 5px; font-size: .69rem; }
  .workflow-steps button span { display: none; }
  .dashboard-shell .header-actions, .listing-shell .header-actions { width: auto; align-items: center; flex-direction: row; }
  .dashboard-shell .header-actions button, .listing-shell .header-actions button { width: auto; }
  .dashboard-shell .suite-tool-row { grid-template-columns: 44px minmax(0, 1fr); gap: 13px; padding: 16px; }
  .dashboard-shell .tool-mark { width: 44px; height: 44px; border-radius: 11px; }
  .dashboard-shell .tool-mark img { width: 25px; height: 25px; }
  .dashboard-shell .suite-tool-arrow { display: none; }
  .suite-tool-lock { grid-column: 2; }
  .next-action { align-items: flex-start; }
  .listing-heading h1 { font-size: 2.75rem; }
  .queue-filters { display: grid; grid-template-columns: 1fr; }
  .queue-filters button { width: 100%; }
  .card-heading, .match-heading, .teaser-recipient { align-items: stretch; flex-direction: column; }
  .card-note, .read-only-badge, .teaser-recipient strong { align-self: flex-start; text-align: left; }
  .source-meta { grid-template-columns: 1fr; }
  .source-meta dd + dt { margin-top: 5px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .spotlight-surface { --translate-x: 0px !important; --translate-y: 0px !important; transform: none !important; }
  .suite-tool-row:hover, .suite-tool-row:focus-visible, .listing-detail-card:hover, .next-action:hover .next-action-arrow, .next-action:focus-visible .next-action-arrow { transform: none !important; }
}
