/* Chrome pill: stationary face and arrow, continuously moving visible rim.
   Reflections use gradients and borders; there are no shadow effects. */
.roll.metal-button {
  --metal-rim: 3.5px;
  --metal-face-x: 28px;
  --metal-face-y: 18px;
  --metal-icon-size: 24px;
  --metal-ink: #f2f2f4;
  --metal-face-border: #ffffff25;
  --metal-face-fill: linear-gradient(180deg, #35363c 0%, #24252b 55%, #18191e 100%);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 0;
  max-width: 100%;
  padding: var(--metal-rim) !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 999px !important;
  background: #77777b !important;
  color: var(--metal-ink) !important;
  vertical-align: middle;
  transform: none;
  transition: none;
}
html[data-theme=light] .roll.metal-button {
  --metal-ink: #28282c;
  --metal-face-border: #ffffffb3;
  --metal-face-fill: linear-gradient(180deg, #fbfbfb 0%, #f1f1f1 55%, #e8e8e8 100%);
}
.metal-button::after { content: ''; position: absolute; z-index: 3; inset: 0; border: 1px solid #e4e4ed70; border-radius: inherit; pointer-events: none; }
.metal-flow {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: calc(100% + 80px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  pointer-events: none;
  background: conic-gradient(from 125deg,
    #070708 0deg 49deg, #8e8e99 56deg, #ffffff 63deg,
    #ffc52e 70deg, #ff785f 77deg, #09090c 87deg 142deg,
    #b0b0be 151deg, #ffffff 159deg, #b69aff 167deg,
    #6386ff 175deg, #08080a 187deg 246deg,
    #9494a4 257deg, #ffffff 265deg, #ffc52e 273deg,
    #ff8b58 281deg, #070708 293deg 345deg, #c0c0ce 353deg, #070708 360deg);
  animation: metal-rim-orbit 18s linear infinite;
}
.metal-face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding: var(--metal-face-y) var(--metal-face-x);
  overflow: hidden;
  border: 1px solid var(--metal-face-border);
  border-radius: inherit;
  background: var(--metal-face-fill);
  color: var(--metal-ink);
}
.metal-face::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, #ffffff14, #ffffff00 22%, #00000000 72%, #0000000a); }
.metal-label { position: relative; z-index: 1; display: block; min-width: 0; }
.metal-label .roll-copy { display: block; height: calc(var(--metal-leading, var(--type-cta-leading)) * 1em); line-height: var(--metal-leading, var(--type-cta-leading)); }
.metal-label .roll-copy > span { display: block; transform: none !important; }
.metal-label .roll-copy > [aria-hidden=true] { display: none; }
.metal-icon { position: relative; z-index: 1; display: block; flex: none; width: var(--metal-icon-size); height: var(--metal-icon-size); overflow: hidden; pointer-events: none; }
.metal-icon > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transition: none; }
.metal-glint { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 40%; opacity: 0; pointer-events: none; background: linear-gradient(90deg, #ffffff00, #fff 42%, #fff 55%, #0000000d 72%, #00000000); mix-blend-mode: soft-light; transform: translateX(-180%) skewX(-20deg); }
.roll.metal-button:is(:hover,:focus-visible):not(:disabled):not([aria-disabled=true]) { transform: none; }
.metal-button:is(:hover,:focus-visible):not(:disabled):not([aria-disabled=true]) .metal-glint { animation: metal-face-glint .65s linear both; }
.roll.metal-button:active:not(:disabled):not([aria-disabled=true]) { transform: none; }
.roll.metal-button:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 5px; }
.roll.metal-button:is(:disabled,[aria-disabled=true]) { cursor: default; opacity: .55; }
.metal-button[data-metal-visible=false] .metal-flow,
html[data-metal-paused] .metal-flow,
.metal-button:is(:disabled,[aria-disabled=true]) .metal-flow { animation-play-state: paused; }
.contact-panel .roll.metal-button {
  --metal-rim: 3px;
  --metal-face-x: 18px;
  --metal-face-y: 12px;
  --metal-icon-size: 20px;
  --metal-font-size: 14px;
  --metal-leading: 1.4;
}
@keyframes metal-rim-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes metal-face-glint {
  0% { opacity: 0; transform: translateX(-180%) skewX(-20deg); }
  15% { opacity: .8; }
  85% { opacity: .65; }
  100% { opacity: 0; transform: translateX(380%) skewX(-20deg); }
}
@media(max-width:768.98px) {
  .roll.metal-button { --metal-face-x: 22px; --metal-face-y: 15px; --metal-font-size: 16px; --metal-icon-size: 22px; }
  .contact-panel .roll.metal-button { --metal-face-x: 15px; --metal-face-y: 12px; --metal-font-size: 14px; --metal-icon-size: 18px; }
}
@media(prefers-reduced-motion:reduce) {
  .metal-flow { animation: none; }
  .metal-button .metal-glint { animation: none !important; }
  .roll.metal-button, .metal-icon > svg { transition: none; }
  .roll.metal-button:is(:hover,:focus-visible,:active) { transform: none !important; }
}
@media(forced-colors:active) {
  .roll.metal-button { background: ButtonFace !important; color: ButtonText !important; border: 1px solid ButtonText !important; }
  .metal-face { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .metal-flow, .metal-glint, .metal-button::after, .metal-face::before { display: none; }
  .roll.metal-button:focus-visible { outline-color: Highlight; }
}
/* The secondary action remains the same outlined pill across sections. */
.kompany-notes-all.roll.roll-outline,.faq-reference-head .roll-outline{border-radius:999px;background:transparent;border:1px solid var(--line);color:var(--ink)}
.kompany-notes-all.roll.roll-outline:hover{color:var(--brand-text)}
/* Compact tools share the approved rounded-square utility shape. */
.scroll-top,.mega-menu .theme-button,.contact-panel-close,.download-brief-icon,.brief-back,.team-edit-drawing,.sketch-tool{border-radius:10px}
