/* The Dojo App · dojo-buttons.css · v24 · 2026-12-05 */
/* v24: KEY button look (Editorial stack, Will 2026-12-05 — the app matches stabilizedflowstate.com). New value 'key' for BOTH pickers (data-button-primary / data-button-secondary): the website's machined key — brushed-metal face, hairline top light, real shadow, engraved label; pressed, it sinks. Primary keys carry the lit teal bar along the foot (drawn as an inset shadow, so no ::after is taken from any button); only the main calls to action (.cta-btn, .hero-btn) breathe, as on the site, because a list of breathing buttons would not be gentle. Colours are the v31 palette roles --key-*. The dashboard's .glance-scope-select-lg (white on teal, 3.0:1) joins the primary key list. Font, size and case stay with the Button element tokens (wired-only, invariant 7b). */
/* v23: .db-button (page-builder button block) enrolled in all Primary + Secondary button-surface :is() groups, so builder-page buttons follow the Button LOOK pickers like canonical buttons. */
/* v22: broaden the Primary/Secondary button-LOOK :is() lists to reach 10 more bespoke buttons the look pickers were missing (material coverage). Primary += comp/member-message/ds/auth; Secondary += logout/pf-close/wizard-avatar/composer-icon/bedit/magic-link. VISIBLE UNIFICATION (ruled by Will 2026-08-08): the live theme has Primary=Sunken / Secondary=Glass active, so every already-covered button already renders sunken/glass — these 10 were the last stragglers showing their own material, and now adopt the active looks to MATCH. The 6 destructive buttons (detail-delete/member-remove/pf-delete/member-suspend/test-danger/ev) are intentionally left out — they use --danger/--gold role material and shouldn't take a neutral surface look. */
/* v21: make the SUNKEN button look actually visible on the dark theme. It read as "no change" because its background was --surface-page — the SAME colour as the page behind it — with a weak inset shadow, so the button dissolved into the page. Now: a darker well (surface-page darkened 34%) + a strong inset shadow (inset 0 4px 10px .8 + inset 0 1px 2px .7) + a bright bottom lip, so it reads as genuinely pressed-in. Applied to both primary + secondary sunken recipes. */
/* v20: broaden the Primary/Secondary button-LOOK family selectors so the look pickers actually reach the app's real buttons (they were limited to .tool-btn/.cta-btn/… so most member buttons — .save-btn/.key-btn/.toggle-btn/etc. — didn't respond). Primary += save/key/hero/primary/push-enable/load-more/notif-mark-all/composer-send/submit/link-add/belt/dsc-add/ac-review/member-pw/pf-upload/mact; Secondary += toggle/detail-back/archive-sort/wizard-back/msg-edit/profile-muted. */
/* v19: SECONDARY button look system — data-button-secondary on <html> (Design Center "Secondary button" picker) restyles the secondary/subtle button family (outline/soft/ghost/cancel/modal-secondary/…) with the same sunken/flat/soft/glass/gradient recipes, INDEPENDENT of the primary picker. Byte-identical until chosen. Completes the two-picker button-look feature. */
/* v18: PRIMARY BUTTON LOOK system — data-button-primary on <html> (set by theme.js from the Design Center "Primary button" swatch picker) restyles the primary button family's material app-wide: sunken/flat/soft/glass/gradient (raised = default, no recipe). Byte-identical until a look is chosen. First half of the two-picker button-look feature (Secondary follows). */
/* v17: box-shadow now reads var(--el-button-boxfx, <raised>) so the Button "Sunken" effect (Design Center Button → Effect → Sunken) presses the button in. Byte-identical when the token is unset. */
/* v16: BUTTON LIBRARY — a defined, tokenised set to pick from (Will's directive: only use defined
   elements; ≥10 predesigned options). Beyond primary (.tool-btn) + secondary (.clickable) + danger
   (.danger-btn v15) this adds: .accent-btn (solid teal CTA) · .soft-btn (accent wash) · .outline-btn
   · .ghost-btn · .warning-btn (gold) · .success-btn (green) · .link-btn · .icon-btn, plus the .btn-pill
   shape modifier. Every one reads the same --el-button-* CHARACTER tokens (so the Design Center Button
   control styles them uniformly) and palette-role MATERIAL, with a light-theme variant. */
/* v15: + canonical tokenised DESTRUCTIVE button .danger-btn — the design system had a primary
   (.tool-btn) and a secondary (.clickable/.toggle-btn) but no defined destructive button, so pages
   rolled their own raw-hex red buttons (e.g. Admin_Backup .bk-restore-btn) that ignored the theme.
   .danger-btn uses the --danger palette ramp for MATERIAL and the same --el-button-* tokens as
   .tool-btn for CHARACTER (font/weight/tracking/case/size), so it follows the Design Center Button
   control AND the danger colours. Light-theme variant included. Repoint ad-hoc red buttons to it. */
/* v14: FIX a broken comment marker in the old v7 note text (it contained a comment-close
   sequence, from "--btn-" followed by a star-slash) which prematurely ended the header comment,
   corrupting the .tool-btn material rule so primary buttons rendered as unstyled default buttons
   AND ignored the Design Center Button control (--el-button-*). Broke the marker with spaces.
   Verified: the material rule parses and buttons respond to the Button control again. */
/* v13: colour literals snapped to palette roles var(--role, #roleHex) — ΔRGB≤16 consolidation; Design Center colour-token sweep (snap tier). */
/* v12: colour literals wired to palette roles — var(--role, #hex) fallback, byte-identical; Design Center colour-token sweep (exact tier). */
/* v11: the button label colour (dark + light base) now reads var(--el-button-color, <current>)
   so the Design Center per-element Colour control reaches the default/secondary button;
   primary (.solid) + hover keep their own colours. Absent = identical. */
/* v10: the button hover transition gained var(--motion-ease, ease) so the Design Center
   "Easing" control (Motion) retunes it; absent = ease (identical). */
/* v9: the button hover transition reads calc(0.2s * var(--motion-scale,1)) so the Design
   Center's Motion control scales it with the rest. Absent = 1 (identical). */
/* v8: + text-transform:var(--el-button-transform,none) so buttons get the Case control. */
/* v7: buttons are now a full Design-Center element. The shared button rule reads
   --el-button-font / -weight / -tracking / -lh / -scale / -shadow (each falling back
   to the old --btn-* / --font-body / literal), so the Design Center's "Button" element
   controls font, weight, letter-spacing, line-height, size + effect app-wide. */
/* v6: primary buttons gain a keyboard :focus-visible ring reading
   var(--focus-ring,#6FE3D6), editable from the Design Center (Highlights). */
/* v5: the dark primary-button MATERIAL now reads palette roles — background
   var(--surface-raised), text var(--text-primary), borders var(--border-strong)/
   var(--border-lip), hover var(--accent-text) — so buttons follow a saved theme
   (and it fixes the raw-hex invariant-7 breach). Character is tokenised too:
   font-weight var(--btn-weight,700), letter-spacing var(--btn-tracking,0.3px).
   Every literal is kept as the var fallback, so the default look is byte-
   identical. Light-theme block left hardcoded on purpose (dark-designed theme
   colours shouldn't repaint light buttons). */
/* v4: primary-button corner radius now reads var(--radius-control,7px) so the
   Design Center's button-roundness control applies app-wide. */
/* Shared button system — the ONE place primary buttons are styled site-wide.
   v3: unified to the accordion-bar look ("Option A" — full charcoal match). Every
   primary button now wears the same dimensional charcoal material as the
   .section-acc bars and lifts to teal on hover, exactly like a bar's open state,
   so buttons and section bars read as one calm family. Mirrors the bar's
   light-theme too. Load AFTER a page's inline <style> (just before </head>) so it
   wins the cascade.

   SCOPE: visual + font-size only. Width / padding / margin stay with each page so
   button layouts (full-width cards, button rows) are preserved. Destructive (red)
   and secondary (outline / translucent) buttons are intentionally left untouched. */

/* --- Charcoal accordion-bar material for every primary button (dark, the default) --- */
.tool-btn,
.cta-btn,
.wizard-next-btn,
.detail-save-btn,
.modal-btn-primary,
.dg-send-btn,
.bulk-process-btn {
  color: var(--el-button-color, var(--text-primary, #F2F6F5));
  background: var(--el-button-bg, var(--surface-raised, linear-gradient(to bottom, var(--surface-raised-1,#323B44) 0%, var(--surface-raised-2,#232B33) 40%, var(--surface-raised-3,#1A2128) 100%)));
  border: 1px solid var(--el-button-border, var(--border-strong, #3A434B));
  border-bottom: 2px solid var(--border-lip, #0E1216);
  border-radius: var(--radius-control, 7px);
  box-shadow: var(--el-button-boxfx, 0 1px 0 rgba(255,255,255,0.06) inset, 0 3px 4px rgba(0,0,0,0.45));
  font-weight: var(--el-button-weight, var(--btn-weight, 700));
  letter-spacing: var(--el-button-tracking, var(--btn-tracking, 0.3px));
  font-family: var(--el-button-font, var(--font-body,'Lato',sans-serif));
  line-height: var(--el-button-lh, 1.15);
  text-transform: var(--el-button-transform, none);
  text-shadow: var(--el-button-shadow, none);
  cursor: pointer;
  transition: color calc(0.2s * var(--motion-scale,1)) var(--motion-ease, ease), border-color calc(0.2s * var(--motion-scale,1)) var(--motion-ease, ease);text-align:var(--el-button-align,inherit);}

/* Readable label text — text buttons only (not the icon-only send button) */
.tool-btn,
.cta-btn,
.wizard-next-btn,
.detail-save-btn,
.modal-btn-primary,
.bulk-process-btn {
  font-size: calc(14px * var(--type-scale, 1) * var(--el-button-scale, 1));text-align:var(--el-button-align,inherit);}

/* Keyboard-focus ring — editable from the Design Center (Highlights & states). */
.tool-btn:focus-visible,
.cta-btn:focus-visible,
.wizard-next-btn:focus-visible,
.detail-save-btn:focus-visible,
.modal-btn-primary:focus-visible,
.dg-send-btn:focus-visible,
.bulk-process-btn:focus-visible {
  outline: 2px solid var(--focus-ring, #6FE3D6);
  outline-offset: 2px;
}

/* Light theme — mirror the bar's light treatment so buttons match it there too */
.light-theme .tool-btn,
.light-theme .cta-btn,
.light-theme .wizard-next-btn,
.light-theme .detail-save-btn,
.light-theme .modal-btn-primary,
.light-theme .dg-send-btn,
.light-theme .bulk-process-btn {
  background: linear-gradient(to bottom, #D5DDDB 0%, #FFFFFF 50%, #D5DDDB 100%);
  border: 1px solid var(--border, #DCE3E1);
  color: var(--el-button-color, #141B1E);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Hover — lift to teal, exactly like a section bar's open state (both themes) */
.tool-btn:hover,
.cta-btn:hover,
.wizard-next-btn:hover,
.detail-save-btn:hover,
.modal-btn-primary:hover,
.dg-send-btn:hover,
.bulk-process-btn:hover {
  color: var(--accent-text, #6FE3D6);
  border-color: color-mix(in srgb, var(--accent, #109F93) 50%, transparent);
}
.light-theme .tool-btn:hover,
.light-theme .cta-btn:hover,
.light-theme .wizard-next-btn:hover,
.light-theme .detail-save-btn:hover,
.light-theme .modal-btn-primary:hover,
.light-theme .dg-send-btn:hover,
.light-theme .bulk-process-btn:hover {
  color: var(--accent, #0B746B);
  border-color: color-mix(in srgb, var(--accent, #109F93) 55%, transparent);
}

.tool-btn:active,
.cta-btn:active,
.wizard-next-btn:active,
.detail-save-btn:active,
.modal-btn-primary:active,
.dg-send-btn:active,
.bulk-process-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.35) inset;
}

.tool-btn:disabled,
.cta-btn:disabled,
.wizard-next-btn:disabled,
.detail-save-btn:disabled,
.modal-btn-primary:disabled,
.dg-send-btn:disabled,
.bulk-process-btn:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

/* --- Canonical DESTRUCTIVE button. MATERIAL = the --danger ramp (theme-editable);
   CHARACTER = the same --el-button-* tokens as .tool-btn, so the Design Center's Button
   control (font/weight/tracking/case/size) styles it uniformly with every other button.
   Use for irreversible / overwriting actions (revert, restore, delete) instead of a
   page-local hardcoded red. --- */
.danger-btn {
  color: var(--danger-200, #F5BCBF);
  background: var(--danger-900, #451719);
  border: 1px solid var(--danger-700, #91272C);
  border-radius: var(--radius-control, 7px);
  font-family: var(--el-button-font, var(--font-body, 'Lato', sans-serif));
  font-weight: var(--el-button-weight, var(--btn-weight, 700));
  letter-spacing: var(--el-button-tracking, var(--btn-tracking, 0.3px));
  line-height: var(--el-button-lh, 1.15);
  text-transform: var(--el-button-transform, none);
  font-size: calc(13px * var(--type-scale, 1) * var(--el-button-scale, 1));
  padding: calc(9px * var(--density, 1)) calc(16px * var(--density, 1));
  cursor: pointer;
  transition: background calc(0.2s * var(--motion-scale, 1)) var(--motion-ease, ease), border-color calc(0.2s * var(--motion-scale, 1)) var(--motion-ease, ease);
}
.danger-btn:hover { background: var(--danger-800, #661E22); border-color: var(--danger-500, #E0575D); }
.danger-btn:active { transform: translateY(1px); }
.danger-btn:focus-visible { outline: 2px solid var(--danger-400, #E7747A); outline-offset: 2px; }
.danger-btn:disabled { opacity: 0.5; cursor: default; }
.light-theme .danger-btn { color: var(--danger-700, #91272C); background: var(--danger-50, #FCEEEE); border-color: var(--danger-200, #F5BCBF); }
.light-theme .danger-btn:hover { background: var(--danger-100, #FADCDD); border-color: var(--danger-400, #E7747A); }

/* ============================================================================
   BUTTON LIBRARY — shared CHARACTER (reads --el-button-* so the Design Center
   Button control styles the whole family uniformly); per-style MATERIAL uses
   palette roles. Light-theme variants follow each block. Pick one per action.
   ============================================================================ */
.accent-btn, .soft-btn, .outline-btn, .ghost-btn, .warning-btn, .success-btn {
  font-family: var(--el-button-font, var(--font-body, 'Lato', sans-serif));
  font-weight: var(--el-button-weight, var(--btn-weight, 700));
  letter-spacing: var(--el-button-tracking, var(--btn-tracking, 0.3px));
  line-height: var(--el-button-lh, 1.15);
  text-transform: var(--el-button-transform, none);
  font-size: calc(14px * var(--type-scale, 1) * var(--el-button-scale, 1));
  border-radius: var(--radius-control, 7px);
  padding: calc(10px * var(--density, 1)) calc(16px * var(--density, 1));
  border: 1px solid transparent;
  cursor: pointer;
  transition: background calc(0.2s * var(--motion-scale, 1)) var(--motion-ease, ease), border-color calc(0.2s * var(--motion-scale, 1)) var(--motion-ease, ease), color calc(0.2s * var(--motion-scale, 1)) var(--motion-ease, ease);
}
.accent-btn:active, .soft-btn:active, .outline-btn:active, .ghost-btn:active, .warning-btn:active, .success-btn:active { transform: translateY(1px); }
.accent-btn:disabled, .soft-btn:disabled, .outline-btn:disabled, .ghost-btn:disabled, .warning-btn:disabled, .success-btn:disabled { opacity: 0.5; cursor: default; }

/* 4 · Accent solid — the strong CTA */
.accent-btn { background: var(--accent, #109F93); color: var(--on-accent, #04241F); border-color: var(--accent, #109F93); }
.accent-btn:hover { background: var(--accent-quiet, #0B746B); border-color: var(--accent-quiet, #0B746B); }
.light-theme .accent-btn { color: #FFFFFF; }

/* 5 · Soft / wash — gentle accent */
.soft-btn { background: var(--accent-wash, rgba(16,159,147,.12)); color: var(--accent-text, #6FE3D6); border-color: color-mix(in srgb, var(--accent, #109F93) 38%, transparent); }
.soft-btn:hover { background: color-mix(in srgb, var(--accent, #109F93) 22%, transparent); }
.light-theme .soft-btn { color: var(--accent, #0B746B); }

/* 6 · Outline — medium emphasis */
.outline-btn { background: transparent; color: var(--accent-text, #6FE3D6); border-color: var(--accent, #109F93); }
.outline-btn:hover { background: var(--accent-wash, rgba(16,159,147,.12)); }
.light-theme .outline-btn { color: var(--accent, #0B746B); }

/* 7 · Ghost / text — low emphasis */
.ghost-btn { background: transparent; color: var(--accent-text, #6FE3D6); border-color: transparent; }
.ghost-btn:hover { background: var(--accent-wash, rgba(16,159,147,.12)); }
.light-theme .ghost-btn { color: var(--accent, #0B746B); }

/* 8 · Warning / gold — caution, non-destructive */
.warning-btn { background: var(--gold-900, #3E2D0F); color: var(--gold-200, #F2DDB5); border-color: var(--gold-700, #835F1B); }
.warning-btn:hover { background: var(--gold-800, #5D4314); border-color: var(--gold-500, #D9A441); }
.light-theme .warning-btn { background: var(--gold-50, #FBF7EF); color: var(--gold-700, #835F1B); border-color: var(--gold-200, #F2DDB5); }

/* 9 · Success — positive / confirming (belt-green role) */
.success-btn { background: color-mix(in srgb, var(--belt-green, #2DA967) 16%, transparent); color: var(--belt-green, #2DA967); border-color: color-mix(in srgb, var(--belt-green, #2DA967) 45%, transparent); }
.success-btn:hover { background: color-mix(in srgb, var(--belt-green, #2DA967) 26%, transparent); }
.light-theme .success-btn { color: var(--belt-green-rim-light, #2BA062); }

/* 10 · Pill — SHAPE modifier, combine with any button (e.g. class="accent-btn btn-pill") */
.btn-pill { border-radius: var(--radius-pill, 999px); }

/* 11 · Link — reads as a hyperlink */
.link-btn { background: transparent; border: none; padding: calc(4px * var(--density, 1)) calc(2px * var(--density, 1)); color: var(--accent-text, #6FE3D6); font-family: var(--el-button-font, var(--font-body, 'Lato', sans-serif)); font-weight: var(--el-button-weight, var(--btn-weight, 700)); font-size: calc(13px * var(--type-scale, 1) * var(--el-button-scale, 1)); letter-spacing: var(--el-button-tracking, var(--btn-tracking, 0.3px)); cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { opacity: 0.5; cursor: default; text-decoration: none; }
.light-theme .link-btn { color: var(--accent, #0B746B); }

/* 12 · Icon — square icon-only button (neutral raised) */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: calc(38px * var(--density, 1)); height: calc(38px * var(--density, 1)); padding: 0; border-radius: var(--radius-control, 7px); background: var(--surface-sunken, #171C1C); border: 1px solid var(--border-strong, #3A434B); color: var(--accent-text, #6FE3D6); cursor: pointer; transition: border-color calc(0.2s * var(--motion-scale, 1)) var(--motion-ease, ease), color calc(0.2s * var(--motion-scale, 1)) var(--motion-ease, ease); }
.icon-btn:hover { border-color: var(--accent, #109F93); }
.icon-btn:disabled { opacity: 0.5; cursor: default; }
.light-theme .icon-btn { background: var(--surface-sunken, #E8EDED); border-color: var(--border, #DCE3E1); color: var(--accent, #0B746B); }

/* ============================================================================
   PRIMARY BUTTON LOOK  (Design Center → Components & surfaces → Primary button)
   Mirrors the Bar/Card surface system: theme.js sets data-button-primary on <html>,
   these recipes restyle the primary button family's MATERIAL app-wide. `raised` is the
   default (the .tool-btn rule above) so it needs no recipe here. Byte-identical until a
   look is chosen. Two independent pickers — Secondary is a separate set (data-button-secondary).
   The :is() list is the canonical primary family + the common bespoke primaries. ============ */
html[data-button-primary="sunken"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button) {
  background: linear-gradient(rgba(0,0,0,.34), rgba(0,0,0,.34)), var(--surface-page, #171C1C); border: 1px solid var(--border-lip, #0E1216);
  box-shadow: inset 0 4px 10px rgba(0,0,0,.80), inset 0 1px 2px rgba(0,0,0,.70), inset 0 -1.5px 0 rgba(255,255,255,.09); }
html[data-button-primary="flat"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button) {
  background: var(--surface-page, #141B21); border: 1px solid var(--neutral-800, #2B353D); box-shadow: none; }
html[data-button-primary="soft"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button) {
  background: var(--surface-page, #1A2128); border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 6px 14px -8px rgba(0,0,0,.7); }
html[data-button-primary="glass"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button) {
  background: rgba(42,53,63,0.42); border: 1px solid rgba(255,255,255,0.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: none; }
html[data-button-primary="gradient"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button) {
  border: 1px solid transparent; box-shadow: none;
  background: linear-gradient(var(--surface-page, #141B21), var(--surface-page, #141B21)) padding-box, linear-gradient(90deg, rgba(111,227,214,.55), rgba(111,227,214,.06)) border-box; }

/* SECONDARY BUTTON LOOK (Design Center → Components & surfaces → Secondary button). Same look
   recipes, INDEPENDENT picker (data-button-secondary), applied to the secondary/subtle family. */
html[data-button-secondary="sunken"] :is(.outline-btn,.soft-btn,.ghost-btn,.bulk-secondary-btn,.cancel-btn,.modal-btn-secondary,.wizard-secondary-btn,.profile-action-btn.secondary,.product-btn.ghost,.toggle-btn,.detail-back-btn,.archive-sort-btn,.wizard-back-btn,.msg-edit-btn,.profile-action-btn.muted,.logout-btn,.pf-close-btn,.wizard-avatar-btn,.composer-icon-btn,.bedit-btn,.magic-link-btn,.db-button) {
  background: linear-gradient(rgba(0,0,0,.34), rgba(0,0,0,.34)), var(--surface-page, #171C1C); border: 1px solid var(--border-lip, #0E1216);
  box-shadow: inset 0 4px 10px rgba(0,0,0,.80), inset 0 1px 2px rgba(0,0,0,.70), inset 0 -1.5px 0 rgba(255,255,255,.09); }
html[data-button-secondary="flat"] :is(.outline-btn,.soft-btn,.ghost-btn,.bulk-secondary-btn,.cancel-btn,.modal-btn-secondary,.wizard-secondary-btn,.profile-action-btn.secondary,.product-btn.ghost,.toggle-btn,.detail-back-btn,.archive-sort-btn,.wizard-back-btn,.msg-edit-btn,.profile-action-btn.muted,.logout-btn,.pf-close-btn,.wizard-avatar-btn,.composer-icon-btn,.bedit-btn,.magic-link-btn,.db-button) {
  background: var(--surface-page, #141B21); border: 1px solid var(--neutral-800, #2B353D); box-shadow: none; }
html[data-button-secondary="soft"] :is(.outline-btn,.soft-btn,.ghost-btn,.bulk-secondary-btn,.cancel-btn,.modal-btn-secondary,.wizard-secondary-btn,.profile-action-btn.secondary,.product-btn.ghost,.toggle-btn,.detail-back-btn,.archive-sort-btn,.wizard-back-btn,.msg-edit-btn,.profile-action-btn.muted,.logout-btn,.pf-close-btn,.wizard-avatar-btn,.composer-icon-btn,.bedit-btn,.magic-link-btn,.db-button) {
  background: var(--surface-page, #1A2128); border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 6px 14px -8px rgba(0,0,0,.7); }
html[data-button-secondary="glass"] :is(.outline-btn,.soft-btn,.ghost-btn,.bulk-secondary-btn,.cancel-btn,.modal-btn-secondary,.wizard-secondary-btn,.profile-action-btn.secondary,.product-btn.ghost,.toggle-btn,.detail-back-btn,.archive-sort-btn,.wizard-back-btn,.msg-edit-btn,.profile-action-btn.muted,.logout-btn,.pf-close-btn,.wizard-avatar-btn,.composer-icon-btn,.bedit-btn,.magic-link-btn,.db-button) {
  background: rgba(42,53,63,0.42); border: 1px solid rgba(255,255,255,0.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: none; }
html[data-button-secondary="gradient"] :is(.outline-btn,.soft-btn,.ghost-btn,.bulk-secondary-btn,.cancel-btn,.modal-btn-secondary,.wizard-secondary-btn,.profile-action-btn.secondary,.product-btn.ghost,.toggle-btn,.detail-back-btn,.archive-sort-btn,.wizard-back-btn,.msg-edit-btn,.profile-action-btn.muted,.logout-btn,.pf-close-btn,.wizard-avatar-btn,.composer-icon-btn,.bedit-btn,.magic-link-btn,.db-button) {
  border: 1px solid transparent; box-shadow: none;
  background: linear-gradient(var(--surface-page, #141B21), var(--surface-page, #141B21)) padding-box, linear-gradient(90deg, rgba(111,227,214,.55), rgba(111,227,214,.06)) border-box; }

/* KEY (v24) — the website's machined key, for both pickers. Values: dojo-palette.css v31 --key-* roles. */
@keyframes dojoKeyBreathe {
  0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -3px 0 var(--key-bar, #6FE3D6), 0 2px 3px rgba(0,0,0,.6), 0 4px 10px -4px var(--key-bar, #6FE3D6); }
  50%     { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -3px 0 var(--key-bar-lit, #A8F4EC), 0 2px 3px rgba(0,0,0,.6), 0 4px 16px -4px var(--key-bar-lit, #A8F4EC); }
}
html[data-button-primary="key"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button,.glance-scope-select-lg),
html[data-button-secondary="key"] :is(.outline-btn,.soft-btn,.ghost-btn,.bulk-secondary-btn,.cancel-btn,.modal-btn-secondary,.wizard-secondary-btn,.profile-action-btn.secondary,.product-btn.ghost,.toggle-btn,.detail-back-btn,.archive-sort-btn,.wizard-back-btn,.msg-edit-btn,.profile-action-btn.muted,.logout-btn,.pf-close-btn,.wizard-avatar-btn,.composer-icon-btn,.bedit-btn,.magic-link-btn,.db-button) {
  background: linear-gradient(180deg, var(--key-face-1, #475057), var(--key-face-2, #22282D));
  border: 1px solid var(--key-edge, #0B0E10);
  color: var(--key-ink, #EEEDE8);
  text-shadow: 0 -1px 0 rgba(0,0,0,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 3px rgba(0,0,0,.6), 0 0 0 1px rgba(159,223,231,.06);
}
html[data-button-primary="key"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button,.glance-scope-select-lg) {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -3px 0 var(--key-bar, #6FE3D6), 0 2px 3px rgba(0,0,0,.6);
}
html[data-button-primary="key"] :is(.cta-btn,.hero-btn) {
  animation: dojoKeyBreathe calc(2.6s * var(--motion-scale, 1)) ease-in-out infinite;
}
@media (hover:hover) {
  html[data-button-primary="key"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button,.glance-scope-select-lg):hover,
  html[data-button-secondary="key"] :is(.outline-btn,.soft-btn,.ghost-btn,.bulk-secondary-btn,.cancel-btn,.modal-btn-secondary,.wizard-secondary-btn,.profile-action-btn.secondary,.product-btn.ghost,.toggle-btn,.detail-back-btn,.archive-sort-btn,.wizard-back-btn,.msg-edit-btn,.profile-action-btn.muted,.logout-btn,.pf-close-btn,.wizard-avatar-btn,.composer-icon-btn,.bedit-btn,.magic-link-btn,.db-button):hover { filter: brightness(1.12); color: var(--key-ink, #EEEDE8); }
}
html[data-button-primary="key"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button,.glance-scope-select-lg):active,
html[data-button-secondary="key"] :is(.outline-btn,.soft-btn,.ghost-btn,.bulk-secondary-btn,.cancel-btn,.modal-btn-secondary,.wizard-secondary-btn,.profile-action-btn.secondary,.product-btn.ghost,.toggle-btn,.detail-back-btn,.archive-sort-btn,.wizard-back-btn,.msg-edit-btn,.profile-action-btn.muted,.logout-btn,.pf-close-btn,.wizard-avatar-btn,.composer-icon-btn,.bedit-btn,.magic-link-btn,.db-button):active {
  transform: translateY(1px);
  background: linear-gradient(180deg, var(--key-sunk-1, #121518), var(--key-sunk-2, #1F2428));
  box-shadow: inset 0 2px 4px rgba(0,0,0,.6), inset 0 -1px 0 rgba(255,255,255,.08);
  animation: none;
}
html[data-button-primary="key"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button,.glance-scope-select-lg):focus-visible,
html[data-button-secondary="key"] :is(.outline-btn,.soft-btn,.ghost-btn,.bulk-secondary-btn,.cancel-btn,.modal-btn-secondary,.wizard-secondary-btn,.profile-action-btn.secondary,.product-btn.ghost,.toggle-btn,.detail-back-btn,.archive-sort-btn,.wizard-back-btn,.msg-edit-btn,.profile-action-btn.muted,.logout-btn,.pf-close-btn,.wizard-avatar-btn,.composer-icon-btn,.bedit-btn,.magic-link-btn,.db-button):focus-visible { outline: 2px solid var(--key-bar, #6FE3D6); outline-offset: 3px; }
.light-theme[data-button-primary="key"] :is(.tool-btn,.cta-btn,.wizard-next-btn,.detail-save-btn,.modal-btn-primary,.dg-send-btn,.bulk-process-btn,.accent-btn,.req-btn.primary,.product-btn.primary,.profile-action-btn.primary,.save-btn,.key-btn,.hero-btn,.primary-btn,.push-enable-btn,.load-more-btn,.notif-mark-all-btn,.composer-send-btn,.submit-btn,.link-add-btn,.belt-btn,.dsc-add-btn,.ac-review-btn,.member-pw-btn,.pf-upload-btn,.mact-btn,.comp-btn,.member-message-btn,.ds-btn,.auth-btn,.db-button,.glance-scope-select-lg),
.light-theme[data-button-secondary="key"] :is(.outline-btn,.soft-btn,.ghost-btn,.bulk-secondary-btn,.cancel-btn,.modal-btn-secondary,.wizard-secondary-btn,.profile-action-btn.secondary,.product-btn.ghost,.toggle-btn,.detail-back-btn,.archive-sort-btn,.wizard-back-btn,.msg-edit-btn,.profile-action-btn.muted,.logout-btn,.pf-close-btn,.wizard-avatar-btn,.composer-icon-btn,.bedit-btn,.magic-link-btn,.db-button) { text-shadow: 0 1px 0 rgba(255,255,255,.6); }
@media (prefers-reduced-motion: reduce) {
  html[data-button-primary="key"] :is(.cta-btn,.hero-btn) { animation: none; }
}
