/* Brand Color Intelligence Studio · scoped, premium workbench styling */
.mtd-palette-premium #brand-color-lab.bci-lab{margin-top:20px!important;padding:clamp(17px,2.3vw,27px)!important;border:1px solid #34465c!important;border-radius:18px!important;overflow:hidden}
.mtd-palette-premium .bci-lab h2{font-family:Manrope,Inter,system-ui,sans-serif;font-size:19px;letter-spacing:-.025em;margin:3px 0 6px}
.mtd-palette-premium .bci-lab h3{font-size:13px;font-weight:750;margin:0 0 9px}
.mtd-palette-premium .bci-lab h4{font-size:11px;font-weight:750;margin:0 0 9px}
.mtd-palette-premium .bci-lab p{font-size:12px;line-height:1.55;margin:0}
.mtd-palette-premium .bci-muted{font-size:11.5px!important;line-height:1.58!important;opacity:.76;margin:0 0 11px!important}
.mtd-palette-premium .bci-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:17px}
.mtd-palette-premium .bci-local-label{white-space:nowrap;font-size:10px;font-weight:750;padding:7px 10px;border:1px solid rgba(146, 182, 221,.28);border-radius:99px;color:#79aadf;background:rgba(180, 204, 230,.08)}
.mtd-palette-premium .bci-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-bottom:18px}
.mtd-palette-premium .bci-settings,.mtd-palette-premium .bci-preview-column{background:rgba(6,18,33,.32);border:1px solid #34465c;border-radius:13px;padding:16px;min-width:0}
.mtd-palette-premium .bci-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mtd-palette-premium .bci-role{min-width:0;border:1px solid rgba(118,152,175,.25);border-radius:10px;padding:10px;background:rgba(10,34,51,.35)}
.mtd-palette-premium .bci-role>label{font-size:10.5px!important;font-weight:750!important;display:block;margin-bottom:6px}
.mtd-palette-premium .bci-field{display:flex;align-items:center;gap:5px;min-width:0}
.mtd-palette-premium .bci-field input[type=color]{width:37px!important;min-width:37px!important;height:36px!important;flex:0 0 37px!important;padding:3px!important;background:transparent!important;border:1px solid rgba(117,147,175,.38)!important;border-radius:8px!important}
.mtd-palette-premium .bci-field .bci-hex{width:100%!important;min-width:0!important;min-height:36px!important;padding:7px 6px!important;border-radius:8px!important;font:700 10px/1.2 ui-monospace,SFMono-Regular,monospace!important;letter-spacing:-.015em!important}
.mtd-palette-premium .bci-recommendations{margin-top:12px;padding:11px;border:1px solid rgba(114,151,172,.24);background:rgba(8,28,42,.38);border-radius:10px}
.mtd-palette-premium .bci-advice{display:flex;gap:7px;justify-content:space-between;align-items:center;flex-wrap:wrap;font-size:10.5px;line-height:1.5;margin:8px 0}
.mtd-palette-premium .bci-advice span{flex:1;min-width:140px}
.mtd-palette-premium .bci-success{color:#4f93db!important;font-size:11px!important}
.mtd-palette-premium .bci-btn-small{border:1px solid #3e7aba!important;background:rgba(148, 182, 219,.2)!important;color:#c9def8!important;padding:7px 9px!important;border-radius:8px!important;font-size:10px!important;min-height:30px!important;cursor:pointer}
.mtd-palette-premium .bci-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:11px}
.mtd-palette-premium .bci-segment{border:1px solid #395267;background:rgba(6,18,33,.45);border-radius:9px;padding:2px;display:flex;gap:2px}
.mtd-palette-premium .bci-segment button{font-size:10.5px!important;background:transparent!important;color:#b6cbd4!important;border:0!important;border-radius:7px!important;padding:7px 11px!important;min-height:28px!important;cursor:pointer}
.mtd-palette-premium .bci-segment button.active{background:#3f7cbd!important;color:#e4eefb!important}
.mtd-palette-premium .bci-preview{min-height:198px;padding:19px!important;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;border:1px solid rgba(190,209,224,.15);border-radius:13px;transition:background .15s ease,color .15s ease}
.mtd-palette-premium .bci-preview strong{font-size:clamp(17px,2vw,23px)!important;line-height:1.25!important;letter-spacing:-.02em;font-family:Manrope,Inter,sans-serif}
.mtd-palette-premium .bci-preview .bci-previewer-kicker{font-size:9px;letter-spacing:.14em;font-weight:750}
.mtd-palette-premium .bci-preview p{font-size:11px!important;max-width:340px}
.mtd-palette-premium .bci-preview-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mtd-palette-premium .bci-preview-actions button{font-size:11px!important;font-weight:750!important;min-height:36px!important;border-radius:8px!important;padding:10px 14px!important;border:0!important}
.mtd-palette-premium .bci-preview-actions span{padding:6px 9px;border:1px solid;border-radius:7px;font-size:10px}
.mtd-palette-premium .bci-landing-view{min-height:230px;align-items:center;text-align:center}
.mtd-palette-premium .bci-landing-view .bci-preview-actions{justify-content:center}
.mtd-palette-premium .bci-preview-column>.bci-muted{margin:8px 0 0!important;font-size:10px!important}
.mtd-palette-premium .bci-insights{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.mtd-palette-premium .bci-mini-summary{padding:7px 11px;border-radius:9px;background:rgba(150, 184, 220,.10);color:#7dafe5;border:1px solid rgba(127, 168, 212,.25);font-size:11px;font-weight:750}
.mtd-palette-premium .bci-contrast-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 20px}
.mtd-palette-premium .bci-contrast-row{display:flex;gap:10px;align-items:center;min-width:0;padding:11px;background:rgba(6,18,33,.28);border:1px solid #34465c;border-radius:10px}
.mtd-palette-premium .bci-pair-swatches{display:flex;flex:0 0 auto;align-items:center}
.mtd-palette-premium .bci-pair-swatches i{width:23px;height:28px;display:block;border:1px solid rgba(115,132,148,.38);border-radius:6px;margin-right:-5px}
.mtd-palette-premium .bci-pair-name{min-width:0;flex:1}
.mtd-palette-premium .bci-pair-name strong{display:block;font-size:11px;line-height:1.35}
.mtd-palette-premium .bci-pair-name small{display:block;font-size:9.5px;opacity:.72;line-height:1.4}
.mtd-palette-premium .bci-contrast-result{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px;white-space:nowrap}
.mtd-palette-premium .bci-contrast-result strong{font-size:12px;font-variant-numeric:tabular-nums}
.mtd-palette-premium .bci-pass{font-size:9px;font-weight:850;letter-spacing:.04em;border-radius:5px;padding:3px 6px}
.mtd-palette-premium .bci-pass.yes{color:#aecef2;background:rgba(177, 202, 229,.2)}
.mtd-palette-premium .bci-pass.no{color:#ffd0a7;background:rgba(211,101,35,.2)}
.mtd-palette-premium .bci-export{padding-top:15px;border-top:1px solid rgba(119,152,175,.2);display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.mtd-palette-premium .bci-button-row{display:flex;gap:7px;flex-wrap:wrap}
.mtd-palette-premium .bci-button-row button{padding:9px 11px!important;border-radius:9px!important;min-height:36px!important;font-size:10.5px!important;font-weight:750!important;box-shadow:none!important;cursor:pointer}
.mtd-palette-premium .bci-btn{background:rgba(30,56,77,.6)!important;color:#e2f0fa!important;border:1px solid #426078!important}
.mtd-palette-premium .bci-btn-primary{background:linear-gradient(110deg,#8db2d9,#76a5d8)!important;color:#9cbcde!important;border:1px solid #6596cc!important}
.mtd-palette-premium .bci-project-drop{display:flex;align-items:center;gap:12px;cursor:pointer;border:1px dashed #527285;border-radius:10px;background:rgba(11,34,53,.3);padding:12px;margin-top:15px;min-height:65px}
.mtd-palette-premium .bci-project-drop i{font-size:21px;color:#7aaadd}
.mtd-palette-premium .bci-project-drop span{display:flex;flex-direction:column;gap:4px}
.mtd-palette-premium .bci-project-drop strong{font-size:11px}
.mtd-palette-premium .bci-project-drop small{font-size:10px;line-height:1.4;opacity:.8}
.mtd-palette-premium .bci-project-drop.bci-dragging,.mtd-palette-premium .bci-project-drop:hover{border-color:#87b0db;background:rgba(140, 177, 217,.11)}
.mtd-palette-premium .bci-message{font-size:10.5px;color:#acc2dc;margin-top:9px;line-height:1.5}
.mtd-palette-premium .bci-message.bci-error{color:#ffb0ac}
.mtd-palette-premium .bci-swatch{min-width:0!important;cursor:default!important;padding:6px!important}
.mtd-palette-premium .bci-swatch .bci-swatch-copy{border:0!important;background:transparent!important;width:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important;cursor:pointer!important;min-height:0!important;padding:2px!important}
.mtd-palette-premium .bci-swatch .bci-swatch-copy strong{font-size:11px!important}
.mtd-palette-premium .bci-swatch .bci-swatch-copy small{font-size:9px!important}
.mtd-palette-premium .bci-swatch-controls{display:flex;gap:4px;align-items:center;width:100%;min-width:0;margin-top:5px}
.mtd-palette-premium .bci-swatch-controls input[type=color]{width:28px!important;min-width:28px!important;height:30px!important;flex:0 0 28px!important;padding:2px!important;border-radius:6px!important}
.mtd-palette-premium .bci-swatch-controls select{width:100%!important;min-width:0!important;min-height:30px!important;padding:3px 4px!important;font-size:10px!important;border-radius:6px!important}
.mtd-palette-premium .bci-lab button:focus-visible,.mtd-palette-premium .bci-lab input:focus-visible,.mtd-palette-premium .bci-project-drop:focus-visible{outline:2px solid #86b1de!important;outline-offset:2px}
@media(max-width:1000px){.mtd-palette-premium .bci-layout{grid-template-columns:1fr}.mtd-palette-premium .bci-settings,.mtd-palette-premium .bci-preview-column{padding:14px}}
@media(max-width:640px){.mtd-palette-premium .bci-heading{flex-wrap:wrap}.mtd-palette-premium .bci-roles{grid-template-columns:1fr}.mtd-palette-premium .bci-role{display:flex;justify-content:space-between;align-items:center;gap:12px}.mtd-palette-premium .bci-role>label{margin:0}.mtd-palette-premium .bci-field{max-width:195px}.mtd-palette-premium .bci-contrast-table{grid-template-columns:1fr}.mtd-palette-premium .bci-export{align-items:stretch}.mtd-palette-premium .bci-button-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.mtd-palette-premium .bci-button-row button{white-space:normal!important}.mtd-palette-premium .bci-local-label{white-space:normal}}
@media(max-width:360px){.mtd-palette-premium .bci-role{display:block}.mtd-palette-premium .bci-field{max-width:none}}
/* Compatible with the site's approved light theme. */
body.light-theme.mtd-palette-premium .bci-settings,body.light-theme.mtd-palette-premium .bci-preview-column,body.light-theme.mtd-palette-premium .bci-contrast-row{background:rgba(233,241,248,.75);border-color:#cad5dd}

.mtd-palette-premium #brand-color-lab>div.bci-heading:first-of-type{display:flex!important;grid-template-columns:none!important;align-items:flex-start!important;gap:18px!important}

.mtd-palette-premium .bci-auto-build{font-size:10.5px!important;font-weight:750!important;min-height:36px!important;padding:9px 12px!important;border-radius:9px!important;margin:2px 0 8px!important;cursor:pointer!important}
.mtd-palette-premium .bci-auto-build:disabled{opacity:.45;cursor:not-allowed!important}
.mtd-palette-premium #bci-auto-note{font-size:10px!important}
/* Clear, legible workbench panels when the existing site light theme is selected. */
body.light-theme.mtd-palette-premium #tool-palette .mtd-palette-editor,
body.light-theme.mtd-palette-premium #tool-palette .mtd-palette-results,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-settings,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-preview-column,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-contrast-row{
  background:#f2f7fb!important;border-color:#cbd9e5!important;color:#102b40!important;
}
body.light-theme.mtd-palette-premium #tool-palette #palette-drop,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-recommendations,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-role,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-project-drop{
  background:#e9f2f7!important;border-color:#a8bed8!important;color:#12334a!important;
}
body.light-theme.mtd-palette-premium #tool-palette #palette-drop span,
body.light-theme.mtd-palette-premium #tool-palette #palette-drop strong,
body.light-theme.mtd-palette-premium #tool-palette .result-subtext,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-muted,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-advice,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-pair-name,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-role label,
body.light-theme.mtd-palette-premium #brand-color-lab .bci-project-drop small{
  color:#29465a!important;opacity:1!important;
}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-success{color:#98b9dd!important}
body.light-theme.mtd-palette-premium #tool-palette .mtd-palette-eyebrow,
body.light-theme.mtd-palette-premium #brand-color-lab .mtd-palette-eyebrow{color:#e7eff7!important}
body.light-theme.mtd-palette-premium #tool-palette .bci-swatch{background:#fff!important;color:#17344a!important;border-color:#c4d2df!important}
body.light-theme.mtd-palette-premium #tool-palette .bci-swatch .bci-swatch-copy{color:#12334a!important}
body.light-theme.mtd-palette-premium #tool-palette .bci-swatch .bci-swatch-copy small{color:#547084!important}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-role .bci-hex{background:#fff!important;color:#153046!important;border-color:#bdcad6!important}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-local-label{color:#153e70!important;background:#e5effb!important}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-mini-summary{color:#153e70!important;background:#e4eefb!important}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-btn-small{background:#d4e4f7!important;color:#153e70!important;border-color:#366da9!important}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-btn{background:#f7fbfe!important;color:#234459!important;border-color:#bfcedb!important}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-message{color:#4480c1!important}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-message.bci-error{color:#a52135!important}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-segment{background:#e5eef4!important;border-color:#bed2db!important}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-segment button{color:#234459!important}
body.light-theme.mtd-palette-premium #brand-color-lab .bci-segment button.active{background:#15579e!important;color:#d2e0f0!important}
/* Keep extracted colours visually dominant after adding editing controls. */
.mtd-palette-premium #tool-palette .bci-swatch .bci-swatch-copy .palette-swatch-color{display:block!important;align-self:stretch!important;width:100%!important;min-width:0!important;height:72px!important;border-radius:7px!important}

/* Brand directions: optional exploration; safe scroll at all viewport widths. */
.mtd-palette-premium .bci-lock{display:flex;align-items:center;gap:5px;margin-top:8px;font-size:10px!important;cursor:pointer;color:#96b1d3}
.mtd-palette-premium .bci-lock input{width:auto!important;min-height:0!important;accent-color:#83acd6}
.mtd-palette-premium .bci-exploration{margin:12px 0 23px;border-top:1px solid rgba(119,152,175,.23);border-bottom:1px solid rgba(119,152,175,.23);padding:15px 0}
.mtd-palette-premium .bci-explore-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:11px}
.mtd-palette-premium .bci-explore-top h3{font-size:14px;margin:0 0 5px}
.mtd-palette-premium .bci-explore-top p{margin:0!important}
.mtd-palette-premium .bci-explore-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.mtd-palette-premium .bci-explore-color{display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:left;min-width:0;background:rgba(8,30,47,.45)!important;color:inherit!important;border:1px solid #3d596a!important;border-radius:11px!important;padding:8px!important;cursor:pointer}
.mtd-palette-premium .bci-explore-color .bci-explore-swatch{height:44px;border-radius:7px;display:block;border:1px solid rgba(255,255,255,.15)}
.mtd-palette-premium .bci-explore-color strong{font-size:11px;font-family:ui-monospace,monospace;line-height:1.3}
.mtd-palette-premium .bci-explore-color small{font-size:10px;line-height:1.45;opacity:.75;overflow-wrap:anywhere}
.mtd-palette-premium .bci-tone-title{margin-top:18px}
.mtd-palette-premium .bci-tone-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:5px}
.mtd-palette-premium .bci-tone-color{min-width:0;overflow:hidden;padding:0 0 5px!important;text-align:center;border:1px solid #3d596a!important;border-radius:8px!important;background:rgba(8,30,47,.45)!important;color:inherit!important;cursor:pointer}
.mtd-palette-premium .bci-tone-color span{display:block;height:37px;margin-bottom:5px}
.mtd-palette-premium .bci-tone-color small{display:block;font-size:9px;opacity:.8}
.mtd-palette-premium .bci-tone-color strong{display:block;font-size:9px;font-family:ui-monospace,monospace;overflow-wrap:anywhere;padding:2px}
body.light-theme.mtd-palette-premium .bci-explore-color,body.light-theme.mtd-palette-premium .bci-tone-color{background:#f2f7fb!important;border-color:#c4d5de!important;color:#214156!important}
body.light-theme.mtd-palette-premium .bci-lock{color:#29465a!important}
@media(max-width:640px){.mtd-palette-premium .bci-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mtd-palette-premium .bci-tone-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Ensure the site-wide skip link is visible only for keyboard navigation. */
body.mtd-palette-premium .mtd-phase17-skip:not(:focus){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
