.calculator-dialog .t-dialog__body{display:flex;justify-content:center;align-items:flex-end}@media (orientation: portrait){.calculator-dialog .calculator{--width: 100vw}}@media (orientation: landscape){.calculator-dialog .calculator{--width: min(100vh, 360px)}}.calculator-dialog .calculator{--size: calc(var(--width) * .2);--gap: calc(var(--width) * .04);--small: calc(var(--width) * .06);--large: calc(var(--width) * .08);box-sizing:border-box;width:var(--width);padding:var(--gap);text-align:right}.calculator-dialog .line{display:inline-block;cursor:pointer;margin-bottom:var(--gap)}.calculator-dialog .res{margin-bottom:var(--gap)}.calculator-dialog .res:before{content:"= "}.calculator-dialog .main{font-size:var(--large);transition:all .2s}.calculator-dialog .extra{color:#909090;font-size:var(--small);transition:all .2s}.calculator-dialog .buttons{display:grid;grid-template-columns:var(--size) var(--size) var(--size) var(--size);grid-gap:var(--gap);-webkit-user-select:none;-moz-user-select:none;user-select:none}.calculator-dialog .button{position:relative;border-radius:var(--gap);font-weight:700;text-align:center;line-height:var(--size);cursor:pointer;overflow:hidden;font-size:var(--small)}.calculator-dialog .button:after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;background-color:#0000001a;opacity:0;transition:all .1s}.calculator-dialog .button:active:after{opacity:1}.calculator-dialog .button.num{color:#000c;background-color:#f5f5f5}.calculator-dialog .button.op{color:#fe6d2c;background-color:#f5f5f5}.calculator-dialog .button.confirm{color:#fff;background-color:#fe6d2c}
