.button{--button-cut: 10px;--button-radius: var(--radius-small);--button-soft: 2.5px;--button-fill: transparent;--button-edge: transparent;--button-edge-width: 0px;--_b-edge-at: 0px;position:relative;isolation:isolate;display:inline-flex;flex:none;align-items:center;justify-content:center;gap:var(--space-2);height:var(--control-medium);padding:0 var(--space-4);border:0;background:none;font-family:var(--font-body);font-size:var(--text-14);font-weight:500;line-height:1;white-space:nowrap;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;transition:color var(--duration-hover) var(--ease-out),scale var(--duration-release) var(--ease-spring)}.button:active:not([aria-disabled=true],[aria-busy=true]){scale:var(--scale-press);transition-duration:var(--duration-press);transition-timing-function:var(--ease-out)}.button--small{--button-cut: 8px;--button-soft: 2px;height:var(--control-small);padding:0 var(--space-3);gap:var(--space-1-5)}.button--large{--button-cut: 12px;--button-soft: 3px;height:var(--control-large);padding:0 var(--space-5);font-size:var(--text-16)}.button--icon{padding:0;aspect-ratio:1}.button:before,.button__surface:before,.button__surface:after{--_b-c1: calc(var(--button-cut-top, var(--button-cut)) - var(--_b-d) * .5858);--_b-c2: calc(var(--button-cut-bottom, var(--button-cut)) - var(--_b-d) * .5858);--_b-r1: max(0px, calc(var(--button-radius-top, var(--button-radius)) - var(--_b-d)));--_b-r2: max(0px, calc(var(--button-radius-bottom, var(--button-radius)) - var(--_b-d)));--_b-s1: var(--button-soft-top, var(--button-soft));--_b-s2: var(--button-soft-bottom, var(--button-soft));--_b-s1d: calc(var(--_b-s1) * .7071);--_b-s2d: calc(var(--_b-s2) * .7071);content:"";position:absolute;pointer-events:none;border-radius:0 var(--_b-r1) 0 var(--_b-r2);clip-path:polygon(var(--_b-c1) 0,100% 0,100% calc(100% - var(--_b-c2)),calc(100% - var(--_b-c2)) 100%,0 100%,0 var(--_b-c1))}@supports (clip-path: shape(from 0 0,line to 1px 1px)){.button:before,.button__surface:before,.button__surface:after{border-radius:0;clip-path:shape(from calc(var(--_b-c1) + var(--_b-s1)) 0,hline to calc(100% - var(--_b-r1)),arc to 100% var(--_b-r1) of var(--_b-r1) cw,vline to calc(100% - var(--_b-c2) - var(--_b-s2)),curve to calc(100% - var(--_b-s2d)) calc(100% - var(--_b-c2) + var(--_b-s2d)) with 100% calc(100% - var(--_b-c2)),line to calc(100% - var(--_b-c2) + var(--_b-s2d)) calc(100% - var(--_b-s2d)),curve to calc(100% - var(--_b-c2) - var(--_b-s2)) 100% with calc(100% - var(--_b-c2)) 100%,hline to var(--_b-r2),arc to 0 calc(100% - var(--_b-r2)) of var(--_b-r2) cw,vline to calc(var(--_b-c1) + var(--_b-s1)),curve to var(--_b-s1d) calc(var(--_b-c1) - var(--_b-s1d)) with 0 var(--_b-c1),line to calc(var(--_b-c1) - var(--_b-s1d)) var(--_b-s1d),curve to calc(var(--_b-c1) + var(--_b-s1)) 0 with var(--_b-c1) 0,close)}}.button:before{--_b-d: 0px;--_i-c1: calc(var(--_b-c1) - 1.1716px);--_i-c2: calc(var(--_b-c2) - 1.1716px);--_i-r1: max(0px, calc(var(--_b-r1) - 2px));--_i-r2: max(0px, calc(var(--_b-r2) - 2px));inset:var(--_b-d);z-index:-2;clip-path:polygon(evenodd,var(--_b-c1) 0,100% 0,100% calc(100% - var(--_b-c2)),calc(100% - var(--_b-c2)) 100%,0 100%,0 var(--_b-c1),var(--_b-c1) 0,calc(2px + var(--_i-c1)) 2px,calc(100% - 2px) 2px,calc(100% - 2px) calc(100% - 2px - var(--_i-c2)),calc(100% - 2px - var(--_i-c2)) calc(100% - 2px),2px calc(100% - 2px),2px calc(2px + var(--_i-c1)),calc(2px + var(--_i-c1)) 2px)}@supports (clip-path: shape(evenodd from 0 0,line to 1px 1px)){.button:before{clip-path:shape(evenodd from calc(var(--_b-c1) + var(--_b-s1)) 0,hline to calc(100% - var(--_b-r1)),arc to 100% var(--_b-r1) of var(--_b-r1) cw,vline to calc(100% - var(--_b-c2) - var(--_b-s2)),curve to calc(100% - var(--_b-s2d)) calc(100% - var(--_b-c2) + var(--_b-s2d)) with 100% calc(100% - var(--_b-c2)),line to calc(100% - var(--_b-c2) + var(--_b-s2d)) calc(100% - var(--_b-s2d)),curve to calc(100% - var(--_b-c2) - var(--_b-s2)) 100% with calc(100% - var(--_b-c2)) 100%,hline to var(--_b-r2),arc to 0 calc(100% - var(--_b-r2)) of var(--_b-r2) cw,vline to calc(var(--_b-c1) + var(--_b-s1)),curve to var(--_b-s1d) calc(var(--_b-c1) - var(--_b-s1d)) with 0 var(--_b-c1),line to calc(var(--_b-c1) - var(--_b-s1d)) var(--_b-s1d),curve to calc(var(--_b-c1) + var(--_b-s1)) 0 with var(--_b-c1) 0,close,move to calc(2px + var(--_i-c1) + var(--_b-s1)) 2px,hline to calc(100% - 2px - var(--_i-r1)),arc to calc(100% - 2px) calc(2px + var(--_i-r1)) of var(--_i-r1) cw,vline to calc(100% - 2px - var(--_i-c2) - var(--_b-s2)),curve to calc(100% - 2px - var(--_b-s2d)) calc(100% - 2px - var(--_i-c2) + var(--_b-s2d)) with calc(100% - 2px) calc(100% - 2px - var(--_i-c2)),line to calc(100% - 2px - var(--_i-c2) + var(--_b-s2d)) calc(100% - 2px - var(--_b-s2d)),curve to calc(100% - 2px - var(--_i-c2) - var(--_b-s2)) calc(100% - 2px) with calc(100% - 2px - var(--_i-c2)) calc(100% - 2px),hline to calc(2px + var(--_i-r2)),arc to 2px calc(100% - 2px - var(--_i-r2)) of var(--_i-r2) cw,vline to calc(2px + var(--_i-c1) + var(--_b-s1)),curve to calc(2px + var(--_b-s1d)) calc(2px + var(--_i-c1) - var(--_b-s1d)) with 2px calc(2px + var(--_i-c1)),line to calc(2px + var(--_i-c1) - var(--_b-s1d)) calc(2px + var(--_b-s1d)),curve to calc(2px + var(--_i-c1) + var(--_b-s1)) 2px with calc(2px + var(--_i-c1)) 2px,close)}}.button__surface{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;pointer-events:none}.button__surface:before{--_b-d: 0px;inset:var(--_b-d);background:var(--button-edge)}.button__surface:after{--_b-d: calc(var(--_b-edge-at) + var(--button-edge-width));inset:var(--_b-d);background:var(--button-fill);transition:background-color var(--duration-hover) var(--ease-out)}.button--primary{--button-fill: var(--primary-700);color:var(--on-primary)}.button--primary:hover{--button-fill: var(--primary-800);color:var(--on-primary)}.button--secondary{--button-fill: var(--background-200);--button-edge: var(--gray-alpha-400);--button-edge-width: 1px;color:var(--gray-1000)}.button--secondary:hover{--button-fill: var(--gray-100);color:var(--gray-1000)}.button--tertiary{color:var(--gray-1000)}.button--tertiary:hover{--button-fill: var(--gray-alpha-200);color:var(--gray-1000)}.button--error{--button-fill: var(--red-700);color:var(--on-red)}.button--error:hover{--button-fill: var(--red-800);color:var(--on-red)}.button__icon{display:inline-flex;flex:none}.button__icon>svg{width:16px;height:16px}.button[aria-disabled=true]{--button-fill: var(--gray-100);--button-edge: var(--gray-alpha-400);--button-edge-width: 1px;color:var(--gray-700);cursor:not-allowed}.button[aria-busy=true]{cursor:progress}.button[aria-busy=true]>:not(.button__spinner,.button__surface){opacity:0}.button__spinner{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto}.button:focus-visible{--_b-edge-at: 2px;--button-edge-width: 0px;box-shadow:none}.button:focus-visible:before{background:var(--focus-color)}.button:focus-visible>.button__surface:before{background:transparent}.button:is(.button--primary,.button--error):focus-visible:before{background:var(--gray-1000)}@media(pointer:coarse){.button:after{content:"";position:absolute;top:50%;left:50%;width:max(100%,var(--touch-target));height:max(100%,var(--touch-target));translate:-50% -50%}}@media(forced-colors:active){.button{border:1px solid ButtonText}.button:before,.button__surface{display:none}.button[aria-disabled=true]{border-color:GrayText;color:GrayText}}
