/* Role-specific actions work in each studio's existing palette. */
html:has(.rd-page, [data-wm-root]) { scroll-behavior:auto; }
.rd-page {
  --rd-ink: var(--wm-deep,#253535);
  --rd-action: color-mix(in srgb, var(--wm-accent,#264d4b) 60%, #152629);
  --rd-paper: #fff;
  --rd-soft: color-mix(in srgb, var(--wm-tint,#eef1ed) 65%, #fff);
  --rd-line: color-mix(in srgb, var(--wm-accent,#345959) 20%, #cdd2d1);
  --rd-muted: #465555;
  color: var(--rd-ink);
  display: grid;
  gap: clamp(16px,2.2vw,28px);
  margin-block: clamp(20px,3vw,42px) clamp(44px,6vw,80px);
  max-inline-size: 100%;
  min-inline-size: 0;
}
.rd-page *, .rd-page { box-sizing: border-box; }
.rd-page :is(h1,h2,p,form) { margin: 0; }
.rd-page .rd-head { display: grid; gap: 10px; }
.rd-head h1 { font: inherit; font-size: clamp(28px,3.6vw,50px); line-height:1.09; font-weight:700; letter-spacing:-.035em; text-wrap:balance; }
.rd-page .rd-head p, .rd-card p, .rd-card small { color:var(--rd-muted); line-height:1.5; max-width:69ch; }
.rd-page h2 { font-size: clamp(19px,1.8vw,25px); line-height:1.2; }
.rd-crumb, .rd-tabs, .rd-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.rd-tabs { gap:8px; }
.rd-crumb a, .rd-tabs a, .rd-page .rd-link { min-block-size:44px; display:inline-flex; align-items:center; justify-content:center; max-width:100%; text-align:start; white-space:normal; overflow-wrap:anywhere; font:inherit; font-size:15px; line-height:1.35; font-weight:630; text-decoration:none; color:var(--rd-action); }
.rd-crumb { gap:16px; }
.rd-crumb .rd-link { border:0; padding:4px 0; background:transparent; }
.rd-tabs a, .rd-page .rd-link { border:1px solid var(--rd-line); background:var(--rd-paper); border-radius:7px; padding:9px 14px; cursor:pointer; }
.rd-page :is(.rd-tabs [aria-current="page"],.rd-link.primary) { color:white; background:var(--rd-action); border-color:var(--rd-action); }
.rd-page :is(a,button):hover { text-decoration:underline; text-underline-offset:.2em; }
.rd-page :is(a,button,input,textarea,select,summary):focus-visible { outline:3px solid #176aab; outline-offset:2px; }
.rd-page :is(.rd-actions-panel,.rd-cards,.rd-layout) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(16px,2vw,26px); align-items:start; }
.rd-page .rd-layout { grid-template-columns:minmax(0,1.45fr) minmax(0,.85fr); }
.rd-card { display:grid; gap:16px; padding:clamp(16px,2vw,28px); min-width:0; border:1px solid var(--rd-line); border-radius:12px; background:var(--rd-paper); overflow-wrap:anywhere; }
.rd-card.rd-aside { background:var(--rd-soft); }
.rd-card > .rd-link { justify-self:start; }
.rd-page .rd-fields, .rd-page .rd-fields label, .rd-page .rd-pub-grid label, .rd-page .rd-pair { display:grid; min-width:0; gap:6px; }
.rd-page .rd-fields { gap:16px; }
.rd-page .rd-pair { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
:is(.rd-fields,.rd-pub-grid) label { color:var(--rd-ink); font-size:15px; font-weight:650; }
:is(.rd-fields,.rd-pub-grid) :is(input,select,textarea) { width:100%; min-width:0; min-height:44px; font:400 16px/1.45 system-ui,sans-serif; color:var(--rd-ink); border:1px solid var(--rd-line); border-radius:6px; padding:9px 11px; background:var(--rd-paper); }
:is(.rd-fields,.rd-pub-grid) textarea { resize:vertical; }
.rd-page :is(.rd-note,.rd-fields small) { font-size:13px; line-height:1.5; }
.rd-page .rd-topic summary { cursor:pointer; padding:10px 0; min-height:44px; }
.rd-page [hidden], .rd-page [data-rd-feedback]:empty { display:none; }
.rd-page [role="alert"] { font-weight:650; }
@media (max-width:760px) {
  .rd-page :is(.rd-actions-panel,.rd-cards,.rd-layout) { grid-template-columns:minmax(0,1fr); }
  .rd-page .rd-tabs a,.rd-page .rd-link { padding-inline:11px; }
}
@media (max-width:480px) { .rd-page .rd-pair { grid-template-columns:minmax(0,1fr); } }
html[data-theme="dark"] .rd-page { --rd-paper:#202729;--rd-soft:#283335;--rd-ink:#f1f3f2;--rd-muted:#c1cdcb;--rd-line:#667577;--rd-action:#c4dfd9; }
html[data-theme="dark"] .rd-page :is(.rd-link.primary,.rd-tabs [aria-current="page"]) { color:#1d2927; }

.rd-out { width:9px; height:9px; flex:none; margin-inline-start:6px; position:relative; border-top:1.5px solid currentColor; border-right:1.5px solid currentColor; }
.rd-out::after { content:""; position:absolute; width:11px; border-top:1.5px solid currentColor; inset-block-start:3px; inset-inline-end:-1px; transform:rotate(-45deg); }

.rd-page .rd-import { min-width:0; border:1px solid var(--rd-line); border-radius:8px; background:var(--rd-soft); }
.rd-import > summary { padding:14px 16px; cursor:pointer; color:var(--rd-action); font-weight:650; }
.rd-page .rd-import-body { display:grid; gap:16px; padding:0 16px 16px; }
.rd-import-body .rd-link { justify-self:start; }
.rd-page .rd-import-body [data-import-check] { font-size:14px; line-height:1.5; }
.rd-import-body ul { margin:0; padding-inline-start:20px; }
.rd-import-body li+li { margin-top:5px; }

@media (min-width:761px) and (min-height:650px) {
  .rd-page .rd-layout > .rd-aside-group { position:sticky; top:94px; }
}

.rd-page .rd-aside-group { min-width:0; display:grid; gap:16px; align-content:start; }
.rd-product-guide details > summary { cursor:pointer; min-height:44px; padding-block:10px; }
.rd-product-guide ul { padding-inline-start:20px; margin:4px 0 0; }
.rd-product-guide li+li { margin-block-start:6px; }
.rd-template-list { margin:0; }

.rd-page .rd-aside-group:has(.rd-product-guide details[open]) { position:static; }

.rd-publication {margin-block:16px;}
.rd-publication > summary, .rd-component > summary {cursor:pointer;min-height:44px;padding:12px 0;}
.rd-page .rd-pub-body, .rd-page [data-pub-parts] {display:grid;gap:16px;}
.rd-page .rd-pub-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px 16px;margin-block:12px;}
.rd-page .rd-component {padding:0 14px 8px;border:1px solid var(--rd-line);border-radius:8px;min-width:0;}
.rd-page .rd-publication .rd-actions {margin-top:12px;}
.rd-page .rd-publication [hidden],.rd-page [data-rd-pricing][hidden] {display:none;}
.rd-page [data-pub-status] {font-size:14px;line-height:1.5;overflow-wrap:anywhere;}

.rd-page .rd-option-editor {display:grid;gap:10px;margin:18px 0;min-width:0;}
.rd-page .rd-option-editor h4 {margin:0;font:650 1rem/1.4 system-ui,sans-serif;color:var(--rd-ink);}
.rd-page .rd-option-editor button {justify-self:start;}
.rd-page .rd-option-editor small:empty,.rd-page [data-option-list]:empty {display:none;}
.rd-page [data-option-list] {display:grid;gap:8px;}
.rd-page .rd-option-row {min-width:0;padding:0 12px;background:var(--rd-soft);border:1px solid var(--rd-line);border-radius:8px;}
.rd-page .rd-option-row[open] {padding-bottom:12px;}
.rd-page .rd-option-row summary {cursor:pointer;min-height:44px;padding:11px 0;overflow-wrap:anywhere;}
.rd-page .rd-option-price:not(:empty) {display:inline-block;margin-inline-start:12px;font-size:0.9em;font-variant-numeric:tabular-nums;}
.rd-page .rd-option-row label {min-width:0;}
.rd-page .rd-option-example {margin-block:10px;font-size:14px;}

.rd-page .rd-forecast {margin-block:16px;padding:0 14px;border:1px solid var(--rd-line);border-radius:8px;min-width:0;}
.rd-page .rd-forecast > summary {cursor:pointer;min-height:44px;padding-block:12px;font-weight:650;}
.rd-page .rd-forecast[open] {padding-bottom:12px;}
.rd-page .rd-evidence dl {display:grid;gap:12px;margin:6px 0 14px;}
.rd-page .rd-evidence dt {font-weight:650;}
.rd-page .rd-evidence dd {margin:4px 0 0;line-height:1.5;overflow-wrap:anywhere;}

.rd-page .rd-review-tools {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px 24px;align-items:start;}
.rd-seller {display:grid;gap:4px;justify-items:start;}
.rd-seller .rd-link {margin-top:4px;}
.rd-check-fields p {font-weight:650;color:var(--rd-ink);}
.rd-check-fields ul {display:flex;flex-wrap:wrap;gap:4px 12px;margin:4px 0 0;padding:0;list-style:none;}
.rd-page .rd-field-link {display:inline-flex;align-items:center;min-height:36px;padding:4px 2px;color:var(--rd-action);font-weight:600;text-decoration:underline;text-underline-offset:.2em;}
.rd-buyer-preview {min-width:0;grid-column:1/-1;border-block-start:1px solid var(--rd-line);scroll-margin-block-start:7rem;}
.rd-buyer-preview > summary {min-height:44px;padding-block:12px;cursor:pointer;color:var(--rd-action);font-weight:650;}
.rd-page [data-rd-preview-body] {display:grid;gap:10px;max-width:74ch;padding:clamp(12px,2vw,20px);border:1px solid var(--rd-line);border-radius:8px;background:var(--rd-soft);}
.rd-page [data-rd-preview-body] :is(h3,h4,p,ol,dl,dd) {margin:0;}
.rd-page [data-rd-preview-body] h3 {font-size:clamp(18px,2vw,23px);line-height:1.2;}
.rd-page .rd-preview-kind {font-size:.85rem;color:var(--rd-muted);}
.rd-preview-terms {display:grid;gap:0;}
.rd-preview-terms > div {display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:6px 12px;padding-block:7px;border-block-start:1px solid var(--rd-line);}
.rd-preview-terms dt {font-weight:650;}
.rd-preview-terms dd,.rd-preview-result {white-space:pre-line;overflow-wrap:anywhere;}
.rd-page [data-rd-preview-body] ol {padding-inline-start:1.4em;}
@media(max-width:760px){.rd-page .rd-review-tools{grid-template-columns:minmax(0,1fr);}.rd-page .rd-field-link{min-height:44px;}}
@media(max-width:480px){.rd-preview-terms > div{grid-template-columns:minmax(0,1fr);gap:2px;}}

.rd-page [data-rd-preview-body] { max-width: 100%; min-width: 0; gap: 13px; padding: clamp(14px,2vw,22px); background: var(--rd-paper); }
.rd-sheet-title { display: grid; gap: 5px; min-width: 0; }
.rd-page .rd-sheet-title h3 { font-size: clamp(20px,2.3vw,28px); overflow-wrap: anywhere; }
.rd-sheet-title .rd-preview-kind { color: var(--rd-action); font-weight: 650; }
.rd-page .rd-figures { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; gap: 1px; background: var(--rd-line); border: 1px solid var(--rd-line); border-radius: 7px; overflow: hidden; }
.rd-figures > div { padding: 10px 12px; min-width: 0; background: var(--rd-soft); }
.rd-figures dt { color: var(--rd-muted); font-size: 13px; }
.rd-figures dd { color: var(--rd-ink); font-size: 16px; font-weight: 680; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rd-page .rd-parts-table { width: 100%; max-width: 100%; border-collapse: collapse; color: var(--rd-ink); background: var(--rd-paper); font-size: 14px; table-layout: fixed; }
.rd-parts-table caption, .rd-sheet-options h4 { text-align: start; font-size: 16px; font-weight: 680; padding-block: 4px; }
.rd-parts-table :is(td,th) { padding: 8px; vertical-align: top; text-align: start; border-bottom: 1px solid var(--rd-line); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rd-parts-table thead { background: var(--rd-soft); font-size: 13px; }
.rd-parts-table th:first-child { width: 39%; }
.rd-parts-table th[scope=row] { font-size: 15px; }
.rd-parts-table small { display: block; color: var(--rd-muted); font-size: 12px; }
.rd-parts-table td:last-child, .rd-parts-table thead th:last-child { text-align: end; }
.rd-page .rd-part-terms, .rd-sheet-extra { font-size: 13px; font-weight: 400; }
.rd-page :is(.rd-part-terms,.rd-sheet-extra) > summary { padding-block: 5px; cursor: pointer; color: var(--rd-action); font-weight: 600; }
.rd-page .rd-part-terms .rd-preview-terms > div { display: block; }
.rd-page .rd-sheet-options ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rd-page .rd-sheet-options li { padding: 7px 10px; background: var(--rd-soft); border-radius: 5px; }
.rd-option-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; }
.rd-option-head span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd-page .rd-sheet-copy { display: grid; justify-items: start; gap: 6px; margin-block-start: 10px; }
.rd-sheet-copy :is(textarea,p), .rd-page .rd-criteria { width: 100%; min-width: 0; }
.rd-sheet-copy textarea { display: block; min-height: 88px; padding: 9px; font: inherit; color: var(--rd-ink); background: var(--rd-paper); border: 1px solid var(--rd-line); }
.rd-page .rd-criteria { margin-top: -3px; border-inline-start: 2px solid var(--rd-action); padding-inline-start: 11px; }
.rd-criteria > summary { min-height: 36px; align-content: center; cursor: pointer; color: var(--rd-action); font-weight: 650; font-size: 14px; }
.rd-criteria ul { list-style: none; margin: 0; padding: 0; }
.rd-criteria li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 12px; border-top: 1px solid var(--rd-line); padding-block: 6px; font-size: 14px; overflow-wrap: anywhere; }
.rd-criteria li .rd-link { min-height: 36px; padding: 4px 10px; font-size: 13px; }
.rd-criteria button[aria-disabled=true] { color: var(--rd-muted); border-color: var(--rd-line); background: var(--rd-soft); }
.rd-page :is(.rd-criteria,.rd-buyer-preview) :is(summary,button,textarea):focus-visible { outline: 3px solid var(--rd-action); outline-offset: 2px; }
.rd-page :is([data-rd-copy-status],[data-rd-criteria-status]):empty { display: none; }
@media(max-width: 700px) {
  .rd-page .rd-figures { grid-template-columns: minmax(0,1fr); }
  .rd-figures > div { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: baseline; gap: 8px; padding: 7px 9px; }
  .rd-page .rd-parts-table { table-layout: auto; }
  .rd-parts-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rd-page .rd-parts-table :is(tbody,tr,td,th[scope=row]) { display: block; width: 100%; }
  .rd-page .rd-parts-table tr { border-bottom: 1px solid var(--rd-line); padding: 7px 0; }
  .rd-page .rd-parts-table :is(td,th[scope=row]) { padding: 4px 0; border: 0; text-align: start; }
  .rd-page .rd-parts-table td { display: grid; grid-template-columns: minmax(76px,.8fr) minmax(0,1.2fr); gap: 2px 9px; }
  .rd-parts-table td::before { content: attr(data-label); color: var(--rd-muted); font-size: 12px; }
  .rd-parts-table td small { grid-column: 2; }
  .rd-page :is(.rd-criteria,.rd-part-terms,.rd-sheet-extra) :is(summary,button) { min-height: 44px; align-content: center; }
}

.rd-page .rd-transfer { gap: 10px; align-content: start; }
.rd-transfer h2 { scroll-margin-block-start: 85px; }
.rd-transfer h2:focus-visible, .rd-page .rd-issue-link:focus-visible, .rd-transfer summary:focus-visible { outline: 3px solid var(--rd-action); outline-offset: 3px; }
.rd-transfer .rd-transfer-mode { color: var(--rd-ink); font-size: 14px; font-weight: 700; }
.rd-transfer .rd-actions { gap: 6px; }
.rd-transfer .rd-note, .rd-page .rd-transfer-list, .rd-delivery small { font-size: 14px; line-height: 1.45; }
.rd-transfer-list { min-width: 0; padding-top: 5px; border-top: 1px solid var(--rd-line); }
.rd-transfer-list summary { min-height: 32px; align-content: center; cursor: pointer; font-weight: 650; color: var(--rd-action); }
.rd-transfer-list ul { display: grid; gap: 3px; padding: 0; margin: 5px 0; list-style: none; }
.rd-transfer-list li { overflow-wrap: anywhere; }
.rd-page .rd-issue-link { display: block; width: 100%; padding: 6px 0; border: 0; background: transparent; color: var(--rd-action); cursor: pointer; font: inherit; text-align: start; text-decoration: underline; text-underline-offset: 2px; }
.rd-page .rd-transfer-list .rd-link { min-height: 34px; padding: 5px 9px; }
.rd-page .rd-delivery > .rd-fields { padding-block: 8px; }
.rd-page [data-transfer-feedback]:empty { display: none; }
.rd-page .rd-drafts-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--rd-paper); color: var(--rd-ink); font-size: 14px; }
.rd-drafts-table th, .rd-drafts-table td { padding: 9px 12px; border-block-end: 1px solid var(--rd-line); background: transparent; text-align: start; overflow-wrap: anywhere; }
.rd-drafts-table thead th { color: var(--rd-muted); background: var(--rd-soft); }
.rd-drafts-table th:first-child { width: 38%; }
.rd-drafts-table th:nth-child(2) { width: 24%; }
.rd-drafts-table th[scope=row] span, .rd-drafts-table th[scope=row] small { display: block; }
.rd-drafts-table th[scope=row] small { margin-top: 2px; font-size: 12px; color: var(--rd-muted); font-weight: 400; }
.rd-draft-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.rd-page .rd-draft-actions .rd-link { padding: 4px 0; min-height: 32px; border: 0; background: transparent; color: var(--rd-action); font-size: 14px; }
.rd-page .rd-draft-actions .rd-link:first-child { font-weight: 750; }
.rd-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width: 700px) {
  .rd-page .rd-drafts-table, .rd-drafts-table :is(tbody,tr,td,th[scope=row]) { display: block; width: 100%; }
  .rd-drafts-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rd-drafts-table tbody tr { padding: 8px 12px; border-bottom: 1px solid var(--rd-line); }
  .rd-drafts-table :is(td,th[scope=row]) { border: 0; padding: 2px 0; }
  .rd-drafts-table .rd-draft-mode { color: var(--rd-muted); }
  .rd-page .rd-draft-actions .rd-link, .rd-transfer-list summary, .rd-page .rd-issue-link { min-height: 44px; }
}

.rd-page .rd-field-error { color: var(--rd-ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.rd-page [aria-invalid="true"] { border-color: var(--rd-action); box-shadow: inset 3px 0 0 var(--rd-action); }

.rd-published { display:grid; gap:16px; width:min(100%,840px); min-width:0; justify-self:start; overflow-wrap:anywhere; }
.rd-published .rd-head { gap:5px; }
.rd-published .rd-head h1 { font-size:clamp(26px,2.6vw,38px); }
.rd-published .rd-head p { font-size:16px; }
.rd-published .rd-card { padding:clamp(14px,2vw,22px); gap:12px; }
.rd-published-input form { display:grid; min-width:0; gap:12px; }
.rd-published-input .rd-fields { gap:5px; }
.rd-published-input label { font-size:15px; font-weight:650; }
.rd-published-input .rd-fields small { color:var(--rd-muted); }
.rd-published-input [role=alert]:empty, .rd-published [role=status]:empty, .rd-published [data-catalog-result]:empty { display:none; }
.rd-published-nav { display:flex; flex-wrap:wrap; gap:0 18px; border-top:1px solid var(--rd-line); }
.rd-page .rd-published-nav .rd-link { border:0; background:transparent; padding:2px 0; }
.rd-published button:disabled { opacity:.62; cursor:default; }
.rd-published .rd-catalog-notice { border-inline-start:3px solid var(--rd-action); padding:10px 14px; background:var(--rd-soft); font-size:15px; line-height:1.45; }
.rd-catalog-heading { display:grid; gap:4px; }
.rd-catalog-receipt table { border-collapse:collapse; width:100%; table-layout:fixed; font-size:14px; line-height:1.35; }
.rd-catalog-receipt caption { text-align:start; font-weight:650; padding:3px 0 8px; }
.rd-catalog-receipt :is(th,td) { padding:8px 10px; border-bottom:1px solid var(--rd-line); text-align:start; vertical-align:top; color:var(--rd-ink); }
.rd-catalog-receipt thead { background:var(--rd-soft); }
.rd-catalog-receipt th:first-child { width:27%; }
.rd-catalog-receipt td small { display:block; color:var(--rd-action); font-weight:700; }
@media(max-width:560px) {
  .rd-published { gap:12px; }
  .rd-published .rd-actions { gap:6px; }
  .rd-catalog-receipt :is(th,td) { padding:7px 4px; }
  .rd-catalog-receipt th:first-child { width:30%; }
}
